/* =====================================================================
   HOME, VERSÃO D DO REDESENHO (novembro de 2026): a A com a limpeza da C
   Identidade v2 sem exceções: cantos retos, sem sombras nem vidro, tudo
   alinhado à esquerda, Montserrat. Fundo misto: carvão no topo, na caixa da
   conta e no fecho; o miolo em névoa, com cartões brancos. Um só Ponto camel
   por ecrã. Carregada depois de tmi.css e v8.css (pageCssFim). Só vale em body.rd.
   Ponto de quebra: 900px, como o resto do site.
   ===================================================================== */

body.rd {
  --rd-tinta: #181818;
  --rd-grafite: #5C5C5C;      /* 5,3:1 sobre névoa, 6,7:1 sobre branco */
  --rd-cinza: #9A9A9A;        /* 6,3:1 sobre carvão */
  --rd-linha: #CFCFCF;
  --rd-linha-escura: #333333;
  --rd-sec: clamp(64px, 8vw, 128px);   /* 64 no telemóvel, até 128 no computador (DESIGN.md) */
  font-variant-numeric: tabular-nums;
}
body.rd .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.rd button { appearance: none; -webkit-appearance: none; }

/* ---------------------------------------------------------------------
   1. PRIMEIRO ECRÃ (carvão)
   --------------------------------------------------------------------- */
body.rd .rd-hero { padding: 36px 0 clamp(64px, 7vw, 112px); }
body.rd .rd-hero .eyebrow { margin: 0 0 24px; }
body.rd .rd-hero__grelha {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; align-items: start;
}
body.rd .rd-hero__texto { grid-column: 1 / span 6; grid-row: 1 / span 2; padding-right: 24px; }
body.rd .rd-hero__tese {
  margin: 0;
  font-size: clamp(32px, 3vw, 41px);
  font-weight: 600; line-height: 1.08; letter-spacing: -.03em;
}
body.rd .rd-hero__tese span {
  display: block; margin-top: .4em;
  font-size: .58em; font-weight: 300; line-height: 1.2; letter-spacing: -.02em;
  color: #E5E5E5;
}
/* Os três exemplos da mensagem larga: logo por baixo do título, a branco */
body.rd .rd-hero__exemplos { margin: 18px 0 0; max-width: 54ch; font-size: 17px; font-weight: 500; line-height: 1.5; color: #FFFFFF; }
/* A porta de entrada: «Começamos pelos pedidos de orçamento:» a 600, o resto em névoa */
body.rd .rd-hero__lead { margin: 18px 0 0; padding-top: 18px; max-width: 54ch; border-top: 1px solid var(--rd-linha-escura); font-size: 17px; line-height: 1.6; color: #E5E5E5; }
body.rd .rd-hero__lead b { font-weight: 600; color: #FFFFFF; }
/* Para quem: logo por baixo do subtítulo, a branco e a 600 */
body.rd .rd-hero__quem { margin: 12px 0 0; max-width: 44ch; font-size: 16px; font-weight: 600; line-height: 1.5; color: #FFFFFF; }
body.rd .rd-hero__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 22px; }
/* A garantia, junto ao botão: névoa, porque é a frase que tira o medo de marcar */
/* «30 minutos, sem custo» e a linha de quem veio do telefone, logo por baixo do botão */
body.rd .rd-hero__trinta { font-size: 15px; font-weight: 600; line-height: 1.4; color: #FFFFFF; }
body.rd .rd-hero__telefone { margin: 6px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.55; color: #E5E5E5; }
body.rd .rd-hero__garantia { margin: 16px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.55; color: #E5E5E5; }
body.rd .rd-hero__nota { margin: 12px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.55; color: var(--rd-cinza); }
body.rd .rd-nobr { white-space: nowrap; }
body.rd .rd-hero__depois { grid-column: 7 / -1; grid-row: 2; margin: 14px 0 0; padding-top: 14px; max-width: 56ch; border-top: 1px solid var(--rd-linha-escura); font-size: 16px; line-height: 1.55; color: #E5E5E5; }
body.rd .rd-hero__depois b { font-weight: 600; color: #FFFFFF; }

/* ---------------------------------------------------------------------
   2. A JANELA DO SISTEMA (clicável)
   --------------------------------------------------------------------- */
body.rd .rd-janela {
  grid-column: 7 / -1; grid-row: 1; position: relative; margin: 0;
  background: #181818; border: 1px solid var(--rd-linha-escura);
}
body.rd .rd-janela__barra {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--rd-linha-escura);
}
body.rd .rd-janela__titulo { font-size: 13px; line-height: 1.35; color: var(--rd-cinza); }
body.rd .rd-janela__titulo b { display: block; margin-bottom: 2px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #FFFFFF; }
body.rd .rd-janela__ficticio {
  flex: none; padding: 7px 12px; border: 1px solid var(--rd-linha-escura);
  font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--rd-cinza);
}
body.rd .rd-janela__corpo { position: relative; overflow: hidden; }

body.rd .rd-lista__cab, body.rd .rd-linha {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px 66px 168px;
  column-gap: 12px; align-items: center; padding: 0 24px;
}
body.rd .rd-lista__cab {
  min-height: 40px; border-bottom: 1px solid var(--rd-linha-escura);
  font-size: 12px; font-weight: 500; color: var(--rd-cinza);
}
body.rd .rd-linha {
  width: 100%; min-height: 68px; margin: 0;
  background: none; border: 0; border-bottom: 1px solid var(--rd-linha-escura);
  font: inherit; font-size: 14px; line-height: 1.3; color: #E5E5E5; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 120ms linear;
}
body.rd .rd-linha:last-child { border-bottom: 0; }
body.rd .rd-linha:active, body.rd .rd-linha.is-aberta { background: #262626; }
@media (hover: hover) and (pointer: fine) { body.rd .rd-linha:hover { background: #1F1F1F; } body.rd .rd-linha:active { background: #262626; } }
body.rd .rd-linha:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -4px; }
body.rd .rd-linha__nome b { display: block; font-weight: 600; color: #FFFFFF; }
body.rd .rd-linha__nome i { display: block; margin-top: 2px; font-style: normal; font-size: 12px; line-height: 1.35; color: var(--rd-cinza); }
body.rd .rd-linha__resp { display: flex; align-items: center; }
body.rd .rd-linha__prazo { white-space: nowrap; }
body.rd .rd-linha__estado { display: flex; align-items: center; font-size: 13px; }
body.rd .rd-linha--alerta .rd-linha__estado, body.rd .rd-linha--atraso .rd-linha__estado { font-weight: 600; color: #FFFFFF; white-space: nowrap; }
body.rd .rd-linha--novo { background: rgba(255, 255, 255, .04); }
body.rd .rd-inicial {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; margin-right: 8px;
  border: 1px solid #4A4A4A; font-size: 12px; font-weight: 600; line-height: 1; color: #E5E5E5;
}
body.rd .rd-ponto { --tmi-ponto-tamanho: 12px; margin: 0 8px 0 0; vertical-align: 0; }

/* A folha do pedido. Sem script: um cartão parado por baixo da lista. */
body.rd .rd-veu { display: none; }
body.rd .rd-folha {
  position: relative; margin: 0; padding: 0 0 24px;
  background: #E5E5E5; color: var(--rd-tinta);
}
body.rd .rd-folha__pega { position: relative; padding: 24px 72px 0 24px; }
body.rd .rd-folha__grip, body.rd .rd-folha__fechar { display: none; }
body.rd .rd-folha .rd-folha__t { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; color: var(--rd-tinta); }
body.rd .rd-folha__pega p { margin: 3px 0 0; font-size: 14px; line-height: 1.4; color: var(--rd-grafite); }
body.rd .rd-folha__dentro { padding: 14px 24px 0; }
body.rd .rd-folha__texto { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.5; }
body.rd .rd-folha__texto:empty { display: none; }
body.rd .rd-folha__dados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
body.rd .rd-folha__dados div { padding: 12px 14px; background: #FFFFFF; }
body.rd .rd-folha__dados dt { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--rd-grafite); }
body.rd .rd-folha__dados dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
body.rd .rd-folha__nota { margin: 12px 0 0; font-size: 14px; font-weight: 600; }

/* Com script: a folha passa a camada presa ao fundo da janela */
body.rd .rd-viva .rd-lista { padding-bottom: 150px; }
body.rd .rd-viva .rd-veu {
  display: block; position: absolute; inset: 0;
  background: rgba(24, 24, 24, .84); opacity: 0; pointer-events: none;
}
body.rd .rd-viva .rd-veu.is-on { pointer-events: auto; }
body.rd .rd-viva .rd-folha {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: 22px; border-top: 1px solid #FFFFFF;
  will-change: transform; touch-action: pan-y;
}
body.rd .rd-viva .rd-folha__pega { padding-top: 38px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
body.rd .rd-viva .rd-folha.is-agarrada .rd-folha__pega { cursor: grabbing; }
/* o gesto de agarrar é a Diagonal, o traço do corte do M */
body.rd .rd-viva .rd-folha__grip {
  display: block; position: absolute; left: 24px; top: 9px;
  width: 18px; height: 14px; background: var(--rd-tinta);
  clip-path: polygon(calc(100% - 4px) 0, 100% 0, 4px 100%, 0 100%);
}
body.rd .rd-viva .rd-folha__fechar {
  display: grid; place-items: center; position: absolute; right: 12px; top: 14px;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.rd .rd-viva .rd-folha__fechar::before {
  content: ""; grid-area: 1 / 1; width: 30px; height: 30px;
  border: 1px solid var(--rd-tinta);
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--rd-tinta) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 12px 12px no-repeat,
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--rd-tinta) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 12px 12px no-repeat;
  transition: background-color 120ms linear;
}
body.rd .rd-viva .rd-folha__fechar:active::before { background-color: #D0D0D0; }
body.rd .rd-viva .rd-folha__fechar:focus-visible { outline: 2px solid var(--rd-tinta); outline-offset: -2px; }

/* ---------------------------------------------------------------------
   3. COMO FUNCIONA (névoa, cartões brancos)
   --------------------------------------------------------------------- */
body.rd .rd-como { padding: 0 0 var(--rd-sec); }
body.rd .rd-como h2, body.rd .rd-construido h2, body.rd .rd-faq h2 {
  margin: 0; max-width: 18ch;
  font-size: clamp(36px, 4.4vw, 64px); font-weight: 300; line-height: 1.06; letter-spacing: -.03em;
}
body.rd .rd-trilho { margin: clamp(40px, 4vw, 64px) auto 0; padding: 0 var(--tmi-margem); max-width: calc(1280px + 2 * var(--tmi-margem)); }
body.rd .rd-blocos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
body.rd .rd-bloco { display: flex; flex-direction: column; min-height: 440px; padding: clamp(32px, 3.4vw, 48px); background: #FFFFFF; }
body.rd .rd-bloco__n { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--rd-grafite); }
body.rd .rd-bloco h3 { margin: 28px 0 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
body.rd .rd-bloco > p { margin: 14px 0 36px; max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-frag { margin-top: auto; padding: 18px 20px; border: 1px solid var(--rd-linha); font-size: 15px; line-height: 1.45; }
body.rd .rd-frag p { margin: 0; }
body.rd .rd-frag__rotulo { font-size: 13px; font-weight: 500; color: var(--rd-grafite); }
body.rd .rd-frag__linha { margin-top: 8px !important; }
body.rd .rd-frag__linha b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
body.rd .rd-frag__linha span { display: block; margin-top: 2px; font-size: 14px; color: var(--rd-grafite); }
body.rd .rd-frag__estado { display: flex; align-items: center; gap: 10px; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--rd-linha); font-size: 14px; font-weight: 600; }
body.rd .rd-visto { position: relative; flex: none; width: 18px; height: 18px; background: var(--rd-tinta); }
body.rd .rd-visto::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 9px; border-right: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; transform: rotate(40deg); }
body.rd .rd-frag__fichas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
body.rd .rd-frag__fichas > span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px 0 6px; border: 1px solid var(--rd-tinta); font-size: 14px; font-weight: 600; }
body.rd .rd-frag__fichas > span:last-child { padding-left: 14px; }
body.rd .rd-frag .rd-inicial { border-color: var(--rd-linha); color: var(--rd-tinta); }
body.rd .rd-frag__aviso { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px !important; font-size: 16px; line-height: 1.45; }
body.rd .rd-aviso__marca { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--rd-tinta); color: #FFFFFF; font-size: 13px; font-weight: 800; line-height: 1; }
body.rd .rd-pontos { display: none; }
/* O ganho fecha a secção; a nota de sempre fica por baixo */
body.rd .rd-como__ganho { margin: clamp(40px, 4vw, 64px) 0 0; max-width: 40ch; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--rd-tinta); }
body.rd .rd-como__nota { margin: 16px 0 0; max-width: 56ch; font-size: 16px; line-height: 1.55; color: var(--rd-grafite); }

/* ---------------------------------------------------------------------
   4. ONDE OS PEDIDOS FICAM PARADOS (névoa; a conta passou a uma linha com ligação)
   --------------------------------------------------------------------- */
body.rd .rd-problema { padding: var(--rd-sec) 0; }
body.rd .rd-h2-pequeno { margin: 0; max-width: 30ch; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--rd-grafite); }
body.rd .rd-manifesto { margin: 20px 0 0; max-width: 1040px; font-size: clamp(28px, 3.8vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: var(--rd-grafite); }
body.rd .rd-manifesto__item { display: block; }
body.rd .rd-manifesto__item + .rd-manifesto__item { margin-top: .4em; }
body.rd .rd-manifesto b { font-weight: 600; color: var(--rd-tinta); }
body.rd .rd-calc-linha { margin: clamp(40px, 4vw, 64px) 0 0; max-width: 62ch; font-size: 17px; line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-calc-linha .tmi-link { white-space: nowrap; }

/* ---------------------------------------------------------------------
   4b. O QUE JÁ CONSTRUÍMOS (névoa): três ecrãs reais, em faixa leve.
   As etiquetas de estado são as da página Trabalho (.tool__state).
   No telemóvel a faixa desliza de lado, como os quatro passos.
   --------------------------------------------------------------------- */
body.rd .rd-construido { padding: 0 0 var(--rd-sec); }
body.rd .rd-construido__entrada { margin: 24px 0 0; max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-ecras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
body.rd .rd-ecra { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
body.rd .rd-ecra__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; background: #FFFFFF; border: 1px solid var(--rd-linha); }
body.rd .rd-ecra .tool__state { margin-top: 20px; }
body.rd .rd-ecra h3 { margin: 14px 0 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
body.rd .rd-ecra p { margin: 8px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-construido__pe { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: 32px 0 0; font-size: 15px; line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-construido__pe .tmi-link { font-size: 16px; }

/* ---------------------------------------------------------------------
   5. QUEM RESPONDE POR ISTO (névoa)
   --------------------------------------------------------------------- */
body.rd .rd-fundador { padding: 0 0 var(--rd-sec); }
body.rd .rd-fundador__grelha { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
body.rd .rd-fundador__foto { grid-column: 1 / span 4; margin: 0; }
body.rd .rd-fundador__foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
body.rd .rd-fundador__texto { grid-column: 6 / -1; }
body.rd .rd-fundador__texto h2 { margin: 0; max-width: 12ch; font-size: clamp(36px, 4.6vw, 68px); font-weight: 300; line-height: 1.04; letter-spacing: -.034em; }
body.rd .rd-fundador__texto h2 em { display: block; font-style: normal; font-weight: 600; }
/* A frase de posicionamento (saiu do primeiro ecrã) vem por cima da frase do fundador */
body.rd .rd-fundador__posicao { margin: 32px 0 0; max-width: 46ch; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--rd-tinta); }
body.rd .rd-fundador__bio { margin: 16px 0 0; max-width: 44ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.42; letter-spacing: -.012em; }
body.rd .rd-fundador__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 18px 0 0; font-size: 15px; }
/* Vídeos alinhados à esquerda pela grelha, como o resto (antes iam ao centro) */
body.rd .rd-video { margin: clamp(48px, 5vw, 80px) 0 0; max-width: 920px; }
body.rd .rd-video figcaption { margin-top: 12px; font-size: 14px; color: var(--rd-grafite); }
body.rd .rd-compromissos { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin: clamp(48px, 5vw, 80px) 0 0; padding: 0; list-style: none; }
body.rd .rd-compromissos li { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 3vw, 44px); background: #FFFFFF; }
body.rd .rd-compromissos li:first-child { grid-row: 1 / span 2; min-height: 380px; background: #181818; color: #E5E5E5; }
body.rd .rd-compromissos b { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.14; letter-spacing: -.022em; }
body.rd .rd-compromissos li:first-child b { max-width: 12ch; font-size: clamp(34px, 4.4vw, 60px); font-weight: 300; line-height: 1.04; letter-spacing: -.03em; color: #FFFFFF; }
body.rd .rd-compromissos span { display: block; margin-top: 12px; max-width: 42ch; font-size: 17px; line-height: 1.5; color: var(--rd-grafite); }
body.rd .rd-compromissos li:first-child span { margin-top: 20px; color: #E5E5E5; }
body.rd .rd-honestidade { display: flex; align-items: center; gap: 24px; margin: clamp(40px, 4vw, 56px) 0 0; max-width: 780px; font-size: 16px; line-height: 1.6; color: var(--rd-grafite); }
body.rd .rd-honestidade .tmi-traco-diagonal { --tmi-traco-altura: 56px; --tmi-traco-espessura: 10px; flex: none; color: var(--rd-tinta); }
body.rd .rd-honestidade b { font-weight: 600; color: var(--rd-tinta); }

/* ---------------------------------------------------------------------
   6. COMO TRABALHAMOS (névoa): o lema em faixa e o vídeo
   --------------------------------------------------------------------- */
body.rd .rd-metodo { padding: 0 0 var(--rd-sec); }
body.rd .rd-faixa { padding-top: 32px; border-top: 1px solid var(--rd-linha); }
body.rd .rd-faixa h2 { margin: 0; max-width: 34ch; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--rd-grafite); }
body.rd .rd-faixa__etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
body.rd .rd-faixa__etapas li { display: block; }
body.rd .rd-faixa__etapas b { display: block; margin-top: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
body.rd .rd-faixa__etapas .rd-grupo__d { display: block; margin-top: 6px; font-size: 15px; max-width: 34ch; }
body.rd .rd-faixa__link { margin: 28px 0 0; font-size: 15px; }
body.rd .rd-grupo__rotulo { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rd-grafite); }
body.rd .rd-grupo__d { font-size: 16px; line-height: 1.55; color: var(--rd-grafite); }

/* ---------------------------------------------------------------------
   6b. O PASSO SEGUINTE (névoa): a amplitude, encolhida para cerca de um
   ecrã de computador. Título e apoio lado a lado, departamentos em três
   colunas compactas, os modos de trabalhar numa linha de três.
   --------------------------------------------------------------------- */
body.rd .rd-amplitude { padding: 0 0 var(--rd-sec); }
body.rd .rd-amplitude__topo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding-top: 32px; border-top: 1px solid var(--rd-linha); }
body.rd .rd-amplitude h2 { grid-column: 1 / span 7; margin: 0; max-width: 20ch; font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; line-height: 1.08; letter-spacing: -.028em; }
body.rd .rd-amplitude__apoio { grid-column: 8 / -1; margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-deptos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(32px, 3vw, 48px) 0 0; padding: 0; list-style: none; }
body.rd .rd-deptos li { display: flex; flex-direction: column; padding: 28px 28px 32px; background: #FFFFFF; }
body.rd .rd-deptos__servico { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rd-grafite); }
body.rd .rd-deptos h3 { margin: 16px 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.1; letter-spacing: -.024em; }
body.rd .rd-deptos p { margin: 10px 0 0; max-width: 38ch; font-size: 15px; line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-amplitude__outros { margin: 20px 0 0; max-width: 64ch; font-size: 15px; line-height: 1.55; color: var(--rd-grafite); }
body.rd .rd-amplitude__modos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(32px, 3.4vw, 56px); }
body.rd .rd-amplitude__como { grid-column: 1 / span 3; margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 300; line-height: 1.15; letter-spacing: -.022em; }
body.rd .rd-modos { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
body.rd .rd-modos li { margin: 0; padding-top: 16px; border-top: 2px solid var(--rd-tinta); }
body.rd .rd-modos b { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; color: var(--rd-tinta); }
body.rd .rd-modos .rd-grupo__d { display: block; margin-top: 6px; font-size: 15px; }

/* ---------------------------------------------------------------------
   7. PERGUNTAS E CONTACTO
   --------------------------------------------------------------------- */
body.rd .rd-grupo { margin: 0; padding: 0; list-style: none; background: #FFFFFF; }
body.rd .rd-faq { padding: 0 0 var(--rd-sec); }
body.rd .rd-faq__grelha { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
body.rd .rd-faq h2 { grid-column: 1 / span 5; max-width: 11ch; font-size: clamp(34px, 4vw, 56px); }
body.rd .rd-grupo--faq { grid-column: 6 / -1; }
body.rd .rd-grupo--faq details { padding: 0 clamp(24px, 3vw, 40px); }
body.rd .rd-grupo--faq details + details { border-top: 1px solid var(--rd-linha); }
body.rd .rd-grupo--faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 0; list-style: none; cursor: pointer;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.3; letter-spacing: -.014em;
  -webkit-tap-highlight-color: transparent;
}
body.rd .rd-grupo--faq summary::-webkit-details-marker { display: none; }
body.rd .rd-grupo--faq summary:focus-visible { outline: 2px solid var(--rd-tinta); outline-offset: 2px; }
body.rd .rd-mais { position: relative; flex: none; width: 16px; height: 16px; }
body.rd .rd-mais::before, body.rd .rd-mais::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--rd-tinta); transition: transform 160ms var(--tmi-curva-decisao); }
body.rd .rd-mais::after { transform: rotate(90deg); }
body.rd .rd-grupo--faq details[open] .rd-mais::after { transform: rotate(0deg); }
body.rd .rd-grupo--faq details p { margin: 0; padding: 0 0 24px; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--rd-grafite); }

/* O contacto continua o mesmo; só perde o fio e ganha espaço */
body.rd .v8-contacto { padding: 0 0 var(--rd-sec); border-top: 0; }
/* A linha dos dois projetos, logo a seguir ao texto do contacto */
body.rd.v8 .v8-contacto .v8-contacto__texto > p.rd-capacidade { margin: -12px 0 32px; max-width: 40ch; font-size: 15px; line-height: 1.55; color: var(--rd-grafite); }

/* Fecho (carvão): a linha da frente, depois a assinatura, e o Ponto no fim */
body.rd .rd-fecho { padding: var(--rd-sec) 0; }
body.rd .rd-fecho p { margin: 0; max-width: 26ch; font-size: clamp(28px, 3.6vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; color: #FFFFFF; }
body.rd .rd-fecho p > span { display: block; margin-top: .22em; font-weight: 300; color: #E5E5E5; }

/* ---------------------------------------------------------------------
   8. MOVIMENTO
   Cada cena corre uma vez, só com transform, opacity e cor. Os estados de
   partida só existem se o script correr (classes rd-historia e rd-mov), por
   isso um script partido nunca esconde nada. Durações em múltiplos de 160 ms.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* 8.1 A história do painel: o pedido entra, preenche-se, o Ponto pousa, a folha espreita */
  body.rd .rd-historia .rd-linha--novo { opacity: 0; transform: translate(calc(var(--tmi-mov-d) * -.51), var(--tmi-mov-d)); }
  body.rd .rd-historia .rd-linha--novo.is-in { opacity: 1; transform: none; transition: opacity var(--tmi-dur-medio) var(--tmi-curva-decisao), transform var(--tmi-dur-medio) var(--tmi-curva-decisao), background-color 800ms linear; }
  body.rd .rd-historia .rd-linha--novo [data-rd-celula] { opacity: 0; transform: translate(-6px, 8px); }
  body.rd .rd-historia .rd-linha--novo [data-rd-celula].is-in { opacity: 1; transform: none; transition: opacity var(--tmi-dur-curto) var(--tmi-curva-decisao), transform var(--tmi-dur-curto) var(--tmi-curva-decisao); }
  body.rd .rd-historia .rd-ponto { transform: scale(0); transform-origin: 50% 100%; }
  body.rd .rd-historia .rd-ponto.is-in { transform: none; transition: transform var(--tmi-dur-curto) var(--tmi-curva-decisao); }

  /* 8.2 Os quatro passos: cada bloco conta a sua pequena história ao entrar */
  .rd-mov body.rd .rd-bloco .rd-frag { opacity: 0; transform: translate(calc(var(--tmi-mov-d) * -.51), var(--tmi-mov-d)); transition: opacity var(--tmi-dur-medio) var(--tmi-curva-decisao) 160ms, transform var(--tmi-dur-medio) var(--tmi-curva-decisao) 160ms; }
  .rd-mov body.rd .rd-bloco.is-cena .rd-frag { opacity: 1; transform: none; }
  .rd-mov body.rd .rd-bloco :is(.rd-frag__linha, .rd-frag__estado, .rd-frag__fichas > span, .rd-frag__aviso) {
    opacity: 0; transform: translate(-6px, 10px);
    transition: opacity var(--tmi-dur-curto) var(--tmi-curva-decisao), transform var(--tmi-dur-curto) var(--tmi-curva-decisao);
  }
  .rd-mov body.rd .rd-bloco.is-cena :is(.rd-frag__linha, .rd-frag__estado, .rd-frag__fichas > span, .rd-frag__aviso) { opacity: 1; transform: none; }
  .rd-mov body.rd .rd-bloco.is-cena .rd-frag__linha { transition-delay: 640ms; }
  .rd-mov body.rd .rd-bloco.is-cena .rd-frag__estado { transition-delay: 960ms; }
  .rd-mov body.rd .rd-bloco.is-cena .rd-frag__fichas > span:nth-child(1) { transition-delay: 640ms; }
  .rd-mov body.rd .rd-bloco.is-cena .rd-frag__fichas > span:nth-child(2) { transition-delay: 960ms; }
  .rd-mov body.rd .rd-bloco.is-cena .rd-frag__aviso { transition-delay: 800ms; }
  .rd-mov body.rd .rd-bloco .rd-visto { transform: scale(0); transform-origin: 50% 100%; transition: transform var(--tmi-dur-curto) var(--tmi-curva-decisao); }
  .rd-mov body.rd .rd-bloco.is-cena .rd-visto { transform: none; transition-delay: 1120ms; }
  .rd-mov body.rd .rd-bloco--4.is-cena .rd-frag__linha > span { transition-delay: 960ms; }

  /* 8.3 Onde os pedidos ficam parados: as frases acendem ao passar */
  .rd-mov body.rd .rd-manifesto__item b { color: #A8A8A6; transition: color var(--tmi-dur-medio) linear; }
  .rd-mov body.rd .rd-manifesto__item > span { color: #BDBDBB; transition: color var(--tmi-dur-medio) linear 160ms; }
  .rd-mov body.rd .rd-manifesto__item.is-on b { color: var(--rd-tinta); }
  .rd-mov body.rd .rd-manifesto__item.is-on > span { color: var(--rd-grafite); }

  /* 8.4 Listas agrupadas: as linhas entram em escada */
  .rd-mov body.rd [data-rd-escada] > li { opacity: 0; transform: translate(-6px, 12px); transition: opacity var(--tmi-dur-curto) var(--tmi-curva-decisao), transform var(--tmi-dur-curto) var(--tmi-curva-decisao); }
  .rd-mov body.rd [data-rd-escada].is-in > li { opacity: 1; transform: none; }
  .rd-mov body.rd [data-rd-escada].is-in > li:nth-child(2) { transition-delay: 160ms; }
  .rd-mov body.rd [data-rd-escada].is-in > li:nth-child(3) { transition-delay: 320ms; }

  /* 8.5 Fecho: a linha da frente, depois a assinatura; o Ponto pousa por último */
  .v8-motion body.rd .rd-fecho p > span { opacity: 0; transform: translate(calc(var(--tmi-mov-d) * -.51), var(--tmi-mov-d)); transition: opacity var(--tmi-dur-medio) var(--tmi-curva-decisao), transform var(--tmi-dur-medio) var(--tmi-curva-decisao); }
  .v8-motion body.rd .rd-fecho p.is-in > span { opacity: 1; transform: none; transition-delay: 320ms; }
  .v8-motion body.rd .rd-fecho p.is-in .v8-ponto-regra { transition-delay: 1120ms; }
  .v8-motion body.rd .rd-compromissos li:nth-child(2) { transition-delay: 160ms; }
  .v8-motion body.rd .rd-compromissos li:nth-child(3) { transition-delay: 320ms; }
}
@media (prefers-reduced-motion: reduce) {
  body.rd .rd-viva .rd-folha { transition: opacity 160ms linear; }
}
@media (prefers-contrast: more) {
  body.rd { --rd-grafite: #3C3C3C; --rd-linha: #7A7A7A; }
  body.rd .rd-bloco, body.rd .rd-grupo, body.rd .rd-deptos li, body.rd .rd-compromissos li { outline: 1px solid #181818; outline-offset: -1px; }
}

/* ---------------------------------------------------------------------
   9. TABLET (900 a 1199 px)
   --------------------------------------------------------------------- */
@media (min-width: 900px) and (max-width: 1199px) {
  body.rd .rd-lista__cab, body.rd .rd-linha { grid-template-columns: minmax(0, 1fr) 92px 168px; }
  body.rd .rd-linha__prazo, body.rd .rd-lista__cab span:nth-child(3) { display: none; }
  body.rd .rd-janela__barra { flex-wrap: wrap; row-gap: 10px; }
  body.rd .rd-hero__texto { padding-right: 0; }
  body.rd .rd-deptos li { padding: 24px 22px 26px; }
  body.rd .rd-amplitude__modos { display: block; }
  body.rd .rd-modos { margin-top: 20px; }
}

/* ---------------------------------------------------------------------
   10. TELEMÓVEL (abaixo de 900 px)
   --------------------------------------------------------------------- */
@media (max-width: 899px) {
  body.rd .rd-hero { padding: 24px 0 64px; }
  body.rd .rd-hero .eyebrow { margin-bottom: 24px; }
  body.rd .rd-hero__grelha { display: flex; flex-direction: column; }
  body.rd .rd-hero__texto { display: contents; }
  body.rd .rd-hero__tese { order: 1; }
  body.rd .rd-hero__exemplos { order: 1; }
  body.rd .rd-hero__lead { order: 2; }
  body.rd .rd-hero__quem { order: 3; }
  body.rd .rd-hero__acoes { order: 4; }
  body.rd .rd-hero__trinta { display: block; margin-top: 10px; }
  body.rd .rd-hero__telefone { order: 5; }
  body.rd .rd-hero__garantia { order: 5; }
  /* o painel logo a seguir ao botão e à garantia; a nota e a linha do passo seguinte vêm depois */
  body.rd .rd-janela { order: 6; }
  body.rd .rd-hero__nota { order: 7; margin-top: 20px; }
  body.rd .rd-hero__depois { order: 8; margin-top: 16px; }
  body.rd .rd-hero__tese { font-size: clamp(31px, 8.4vw, 44px); }
  body.rd .rd-hero__tese span { font-size: .6em; }
  body.rd .rd-hero__exemplos { font-size: 16px; }
  body.rd .rd-hero__lead { margin-top: 16px; padding-top: 16px; font-size: 16px; }
  body.rd .rd-hero__acoes { display: block; margin-top: 28px; }
  body.rd .rd-hero__acoes .btn { width: 100%; }
  body.rd .rd-hero__acoes .tmi-link { display: inline-block; margin-top: 8px; padding: 12px 0; font-size: 15px; }
  body.rd .rd-hero__garantia { margin-top: 8px; }
  body.rd .rd-janela { margin-top: 32px; }
  body.rd .rd-janela__barra { flex-wrap: wrap; row-gap: 10px; padding: 16px; }
  body.rd .rd-janela__ficticio { order: -1; flex: 1 0 100%; }
  body.rd .rd-lista__cab { display: none; }
  body.rd .rd-linha {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nome resp" "estado prazo";
    row-gap: 6px; min-height: 0; padding: 14px 16px;
  }
  body.rd .rd-linha__nome { grid-area: nome; }
  body.rd .rd-linha__nome i { display: none; }
  body.rd .rd-linha__resp { grid-area: resp; justify-self: end; font-size: 14px; }
  body.rd .rd-linha__resp .rd-inicial { order: 2; margin: 0 0 0 8px; }
  body.rd .rd-linha__prazo { grid-area: prazo; justify-self: end; font-size: 13px; color: var(--rd-cinza); }
  body.rd .rd-linha__estado { grid-area: estado; font-size: 13px; color: var(--rd-cinza); }
  body.rd .rd-linha--alerta .rd-linha__estado { color: #FFFFFF; }
  body.rd .rd-lista .rd-linha:nth-child(n+6) { display: none; }
  body.rd .rd-folha__pega { padding-left: 16px; }
  body.rd .rd-folha__dentro { padding: 12px 16px 0; }
  body.rd .rd-folha__dados { gap: 8px; }
  body.rd .rd-folha__dados div { padding: 10px; }
  body.rd .rd-folha__dados dd { font-size: 14px; }
  body.rd .rd-viva .rd-lista { padding-bottom: 132px; }
  body.rd .rd-viva .rd-folha__grip { left: 16px; }

  body.rd .rd-trilho { margin-top: 28px; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--tmi-margem); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body.rd .rd-trilho::-webkit-scrollbar { display: none; }
  body.rd .rd-blocos { display: flex; gap: 12px; width: max-content; padding: 0 var(--tmi-margem); }
  body.rd .rd-bloco { width: min(82vw, 400px); min-height: 440px; padding: 28px 24px 24px; scroll-snap-align: start; }
  body.rd .rd-bloco h3 { font-size: 28px; }
  body.rd .rd-pontos { display: flex; gap: 6px; margin: 16px var(--tmi-margem) 0; }
  body.rd .rd-pontos span { width: 20px; height: 2px; background: #B4B4B2; transition: background-color 160ms linear; }
  body.rd .rd-pontos span.is-ativo { background: var(--rd-tinta); }
  body.rd .rd-como__ganho { margin-top: 32px; }

  body.rd .rd-ecras { display: flex; gap: 12px; width: max-content; padding: 0 var(--tmi-margem); }
  body.rd .rd-ecra { width: min(82vw, 400px); scroll-snap-align: start; }
  body.rd .rd-construido__pe { display: block; margin-top: 24px; }
  body.rd .rd-construido__pe .tmi-link { display: inline-block; margin-top: 4px; }

  body.rd .rd-fundador__grelha, body.rd .rd-faq__grelha { display: block; }
  body.rd .rd-fundador__foto { max-width: 280px; }
  body.rd .rd-fundador__texto { margin-top: 36px; }
  body.rd .rd-compromissos { grid-template-columns: 1fr; gap: 12px; }
  body.rd .rd-compromissos li:first-child { grid-row: auto; min-height: 300px; }
  body.rd .rd-honestidade { align-items: flex-start; gap: 16px; font-size: 15px; }
  body.rd .rd-honestidade .tmi-traco-diagonal { --tmi-traco-altura: 40px; --tmi-traco-espessura: 8px; margin-top: 4px; }

  body.rd .rd-amplitude__topo { display: block; }
  body.rd .rd-amplitude__apoio { margin-top: 16px; }
  body.rd .rd-deptos { grid-template-columns: 1fr; gap: 12px; }
  body.rd .rd-deptos li { padding: 20px 20px 22px; }
  body.rd .rd-deptos h3 { margin-top: 12px; }
  body.rd .rd-amplitude__modos { display: block; }
  body.rd .rd-modos { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  body.rd .rd-grupo__d { display: block; margin-top: 8px; }
  body.rd .rd-faixa__etapas { grid-template-columns: 1fr; gap: 20px; }
  body.rd .rd-faq h2 { margin-bottom: 32px; }
  body.rd .rd-grupo--faq details { padding: 0 20px; }
}

/* ---------------------------------------------------------------------
   11. TELEMÓVEL: UMA CHAMADA FIXA DE CADA VEZ E ALVOS DE TOQUE DE 44 PX
   (lote 2 de 17/11/2026; só na home, que é a única página com body.rd)
   --------------------------------------------------------------------- */
@media (max-width: 899px) {
  /* Com a barra de baixo à vista, o botão do cabeçalho sai: ficam o logótipo e o menu.
     visibility guarda o lugar (o menu não salta) e tira o botão do Tab. */
  body.rd .header .nav__right .btn--sm { transition: opacity 160ms linear, visibility 0s; }
  body.rd.v8-barra-on .header .nav__right .btn--sm { opacity: 0; visibility: hidden; transition: opacity 160ms linear, visibility 0s linear 160ms; }

  /* Ligações dentro de uma frase: o padding vertical de uma ligação em linha alarga a área
     de toque sem mexer na linha nem no texto. */
  body.rd :is(.rd-hero__nota, .rd-hero__telefone, .rd-faixa__link, .rd-calc-linha, .rd-construido__pe, .rd-grupo--faq, .v8-contacto__alt) a { padding-block: 12.5px; }
  /* Email, telefone e WhatsApp do contacto, um por linha: 44 px entre linhas para as áreas não se taparem */
  body.rd .v8-contacto__alt { line-height: 44px; }
  body.rd .rd-fundador__links { row-gap: 0; margin-top: 8px; }
  body.rd .rd-fundador__links a { padding-block: 10px; }

  /* Rodapé da home: cada ligação com 44 px de altura; o texto fica igual, só o passo entre linhas cresce */
  body.rd .footer .footer__logo { padding-block: 6px; margin: -6px 0 18px; }
  body.rd .footer .footer__top a:not(.footer__logo) { padding-block: 10px; margin-bottom: 0; }
  body.rd .footer .footer__top h3 + a { margin-top: -10px; }
  body.rd .footer .footer__social { row-gap: 0; }
  body.rd .footer .footer__social a { padding-block: 11px; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  body.rd .header .nav__right .btn--sm,
  body.rd.v8-barra-on .header .nav__right .btn--sm { transition: none; }
}

/* O que pode confirmar antes de pagar (lote 3): quatro pontos em cartões brancos */
body.rd .rd-confirma { padding: var(--rd-sec) 0 0; }
body.rd .rd-confirma__lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
body.rd .rd-confirma__lista li { display: flex; flex-direction: column; padding: 24px 24px 28px; background: #FFFFFF; }
body.rd .rd-confirma__lista b { display: block; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
body.rd .rd-confirma__lista span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--rd-grafite); }
/* A devolução da primeira metade: uma faixa por baixo dos quatro pontos, a toda a largura */
body.rd .rd-confirma__devolucao { margin-top: 24px; padding: 24px 24px 26px; background: #181818; color: #E5E5E5; }
body.rd .rd-confirma__devolucao p { margin: 0; max-width: 78ch; font-size: 16px; line-height: 1.6; }
body.rd .rd-confirma__devolucao p + p { margin-top: 10px; font-size: 15px; color: #CFCFCF; }
body.rd .rd-confirma__devolucao b { font-weight: 600; color: #FFFFFF; }
/* O botão do fecho: por baixo da linha da frente, sem herdar o corpo grande dela */
body.rd .rd-fecho__acao { margin-top: 32px; }
@media (max-width: 599px) { body.rd .rd-fecho__acao .btn { width: 100%; } }
@media (max-width: 1023px) { body.rd .rd-confirma__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { body.rd .rd-confirma__lista { grid-template-columns: 1fr; gap: 12px; } }

/* Formulário: a primeira opção («Pedidos de orçamento e propostas (Sales Automation)») é longa;
   o corpo desce um pouco para caber inteira no computador, e no telemóvel corta com reticências
   (a lista aberta mostra o texto todo). */
body.rd .v8-form .field select { font-size: 15px; padding-right: 44px; text-overflow: ellipsis; }
