/* GERADO por tools/build.py — não editar aqui.
   Editar os ficheiros em src/styles/. */
/* ===== base.css ===== */
/* ============================================================
   CDI — BASE
   Primeira camada: tokens, reset, tipografia, layout e os elementos que
   aparecem em todas as páginas — barra de navegação, hero, botões,
   secções, cartões, acordeões, formulários, rodapé e consentimento.

   Quatro coisas sustentam o aspecto do site e é fácil desfazê-las sem dar
   por isso:

   1. LUZ — uma fonte de luz coerente no topo, a mesma em toda a página,
            com as sombras a cair para o lado certo e a tomarem a cor da
            superfície em vez de cinzento neutro (--e1 … --e4, --lit).
   2. TEXTURA — grão fino sobre tudo (.grain). É o que separa «vector
            exportado» de «objecto real».
   3. CAMADAS — malhas de gradiente que sangram de secção para secção,
            para as transições não terem aresta.
   4. MOVIMENTO — as revelações são CSS + IntersectionObserver, FORA do
            GSAP, de propósito: com o GSAP a revelar, um separador em
            segundo plano congelava o rAF e o conteúdo ficava invisível
            para sempre. O GSAP só faz decoração.
   ============================================================ */

:root {
  color-scheme: light;

  /* O roxo da marca é #9849E9 e continua a ser o dos preenchimentos (ver
     --grad, usado no botão primário). Como TEXTO sobre superfícies claras
     dá 3,6:1 na banda e 4,0 na página — abaixo do AA. O acento do tema
     claro é por isso uma versão mais escura da mesma cor. No escuro,
     `--purple` volta ao valor de marca. */
  --purple:        #7C2FD4;
  --purple-brand:  #9849E9;

  /* O azul da custódia, com o mesmo problema e a mesma solução: como texto
     sobre claro o #3F6FD8 dava 3,6:1 na banda. */
  --custody:       #2B58C4;
  --custody-brand: #3F6FD8;
  --purple-light:  #C279FF;
  --purple-symbol: #AD61FA;
  --blue:          #95ADE5;
  --blue-strong:   #618FFA;
  --blue-soft:     #BACFFF;
  --magenta:       #C650D6;
  --purple-4: #DCBAFF;
  --purple-3: #C68FFE;
  --ink:   #201F1C;

  --grad:      linear-gradient(100deg, #8A3CD8 0%, #9C4DEA 100%);
  --grad-soft: linear-gradient(100deg, var(--purple) 0%, var(--purple-light) 100%);

  /* --- superfícies ------------------------------------------------ */
  /* Três tons, cada um a pelo menos 1,10:1 do vizinho — abaixo disso o
     olho lê-os como a mesma cor, que era o problema do tema claro:
     página quase branca, bandas a 1,05 e cartões brancos por cima de
     branco. Agora a página tem tom e as superfícies destacam-se dela. */
  --bg:         #EDEAF4;   /* página */
  --bg-deep:    #E4DEF1;   /* banda funda, para as secções com malha */
  --surface:    #FFFFFF;   /* cartões, painéis, formulários */
  --surface-2:  #FFFFFF;
  --edge:       rgba(32, 31, 28, .14);
  --edge-lit:   rgba(255, 255, 255, .85);   /* aresta que apanha luz */

  --text:       #1A1A1F;
  --text-muted: #55596B;
  /* #8A8F9C dava 2,7:1 sobre a página — chumbava o AA nas migalhas, nos
     kickers e nas notas pequenas, que é onde este token se usa. */
  --text-dim:   #5C6070;
  --on-tint:    #201F1C;
  --on-purple:  #FFFFFF;

  /* --- elevação: ambiente + direta, nunca uma sombra só ----------- */
  --e1: 0 1px 2px rgba(28, 20, 45, .05), 0 2px 6px -2px rgba(28, 20, 45, .07);
  --e2: 0 2px 4px rgba(28, 20, 45, .05), 0 8px 20px -6px rgba(28, 20, 45, .10);
  --e3: 0 4px 8px rgba(28, 20, 45, .05), 0 18px 44px -14px rgba(28, 20, 45, .17);
  --e4: 0 8px 16px rgba(28, 20, 45, .06), 0 36px 80px -24px rgba(28, 20, 45, .24);
  --lit: inset 0 1px 0 var(--edge-lit);

  /* halo colorido — a sombra herda a cor do objeto, não é cinzenta */
  --halo-purple:  0 20px 60px -20px rgba(152, 73, 233, .55);
  --halo-blue:    0 20px 60px -20px rgba(97, 143, 250, .45);
  --halo-magenta: 0 20px 60px -20px rgba(198, 80, 214, .45);

  --grain-opacity: .05;
  --spot: rgba(152, 73, 233, .07);

  --font-display: "Alumni Sans SC", "Arial Narrow", sans-serif;
  --font-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --w-max: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 140px);
  --r-pill: 48px;
  --r-card: 22px;
  --nav-h: 84px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --purple:     #9849E9;   /* no escuro não há problema de legibilidade */
  --custody:    #7FA3F2;

  --bg:         #131217;
  --bg-deep:    #0C0B10;
  --surface:    rgba(38, 36, 45, .62);
  --surface-2:  rgba(44, 42, 52, .86);
  --edge:       rgba(255, 255, 255, .10);
  --edge-lit:   rgba(255, 255, 255, .13);

  --text:       #F3F1F6;
  --text-muted: #A9A6B4;
  --text-dim:   #7C7987;

  --e1: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 8px -2px rgba(0, 0, 0, .5);
  --e2: 0 2px 6px rgba(0, 0, 0, .5), 0 10px 26px -8px rgba(0, 0, 0, .6);
  --e3: 0 4px 10px rgba(0, 0, 0, .5), 0 22px 50px -16px rgba(0, 0, 0, .7);
  --e4: 0 8px 20px rgba(0, 0, 0, .55), 0 44px 90px -28px rgba(0, 0, 0, .8);

  --halo-purple:  0 20px 60px -18px rgba(152, 73, 233, .6);
  --halo-blue:    0 20px 60px -18px rgba(97, 143, 250, .5);
  --halo-magenta: 0 20px 60px -18px rgba(198, 80, 214, .5);

  --grain-opacity: .07;
  --spot: rgba(194, 121, 255, .10);
}

/* ============================================================
   Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  /* A luz vive no body, não em cada secção: por isso é coerente de
     cima a baixo em vez de reiniciar a cada faixa. */
  background:
    radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--purple) 13%, transparent) 0%, transparent 55%),
    radial-gradient(80% 50% at 88% 12%, color-mix(in srgb, var(--blue-strong) 10%, transparent) 0%, transparent 60%),
    radial-gradient(70% 45% at 6% 32%, color-mix(in srgb, var(--magenta) 8%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* --- grão: a camada que tira o aspeto de vetor exportado --------- */
.grain {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- foco de luz que segue o rato (só em ecrãs com ponteiro) ----- */
.spotlight {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), var(--spot), transparent 70%);
}
@media (hover: hover) and (pointer: fine) {
  body.has-pointer .spotlight { opacity: 1; }
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .9;
  letter-spacing: .012em;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: clamp(2.85rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not([class]) { color: var(--purple); }
[data-theme="dark"] a:not([class]) { color: var(--purple-light); }

:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--purple-light) 25%, transparent);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--purple); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%; max-width: var(--w-max);
  margin-inline: auto; padding-inline: var(--pad-x);
  position: relative; z-index: 1;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.accent {
  background: linear-gradient(100deg, var(--purple) 0%, var(--magenta) 55%, var(--blue-strong) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
[data-theme="dark"] .accent {
  background: linear-gradient(100deg, var(--purple-light) 0%, #E861FA 55%, #8FB0FE 100%);
  -webkit-background-clip: text; background-clip: text;
}

.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-inline: auto;
}

/* --- sobretítulo: dá um terceiro nível tipográfico -------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.1rem;
  padding: .4rem .9rem .4rem .75rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--e1), var(--lit);
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .eyebrow { color: var(--purple-light); }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

/* ============================================================
   Botões
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer;
  padding: 1.05rem 2.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 700;
  letter-spacing: .035em; text-transform: uppercase;
  text-decoration: none; line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
/* brilho que atravessa o botão no hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.32) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--e2), var(--halo-purple), var(--lit);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--e3), 0 26px 70px -18px rgba(152, 73, 233, .7), var(--lit);
}
.btn--primary:active { transform: translateY(-1px); }

.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--edge);
  box-shadow: var(--e2), var(--lit);
  backdrop-filter: blur(10px);
}
.btn--secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--e3), var(--halo-blue), var(--lit);
}

.btn--ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--edge);
}
.btn--ghost:hover { border-color: var(--purple); }

.btn--block { width: 100%; }
.btn--sm { padding: .72rem 1.5rem; font-size: 1.02rem; }
.btn--body {
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; padding: .95rem 2rem;
}

/* ============================================================
   Navbar
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--edge);
  box-shadow: var(--e1);
}

.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  overflow: hidden;
}
.nav__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--grad-soft);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--nav-h);
}
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { width: 178px; height: auto; }
.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark  { display: block; }

.nav__links {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  position: relative; display: block;
  padding: .55rem 1rem;
  color: var(--text-muted); text-decoration: none;
  font-size: 1.0rem; font-weight: 500;
  border-radius: var(--r-pill);
  transition: color .2s ease;
}
/* pílula que aparece por baixo do item, em vez de um sublinhado seco */
.nav__links a::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--surface);
  border: 1px solid transparent;
  opacity: 0; transform: scale(.9);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s ease;
}
.nav__links a span { position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::before { opacity: 1; transform: scale(1); border-color: var(--edge); }
.nav__links a[aria-current="page"] { color: var(--purple); }
.nav__links a[aria-current="page"]::before {
  opacity: 1; transform: scale(1);
  border-color: color-mix(in srgb, var(--purple) 30%, transparent);
  background: color-mix(in srgb, var(--purple) 10%, transparent);
}
[data-theme="dark"] .nav__links a[aria-current="page"] { color: var(--purple-light); }

.nav__actions { display: flex; align-items: center; gap: .9rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: none; border: 1px solid transparent; padding: 0; cursor: pointer;
  color: var(--text); border-radius: 50%;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover {
  background: var(--surface); border-color: var(--edge);
  color: var(--purple); transform: rotate(-12deg);
}
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

.nav__burger { display: none; }

@media (max-width: 1040px) { .nav__links a { padding: .5rem .7rem; font-size: .95rem; } }
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__burger { display: grid; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  /* O painel do telemóvel é definido por inteiro em site.css. Aqui ficava
     um estilo de cartões que já não se usa e que ainda apanhava o botão do
     rodapé do painel — `.nav__mobile a` tem mais especificidade que `.btn`
     e punha-o a `display:block`, com o texto encostado à esquerda. */
  .nav__mobile[hidden] { display: none; }
}
@media (min-width: 1201px) { .nav__mobile { display: none; } }

/* ============================================================
   Secções — sem costuras a direito
   ============================================================ */

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Faixa: em vez de um retângulo de cor, uma malha que sangra para
   fora nas pontas — a transição entre secções deixa de ter aresta. */
.section--mesh::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 60% at 20% 0%, color-mix(in srgb, var(--purple-4) 85%, transparent), transparent 62%),
    radial-gradient(65% 55% at 85% 30%, color-mix(in srgb, var(--blue-soft) 70%, transparent), transparent 65%),
    radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--purple-3) 55%, transparent), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
[data-theme="dark"] .section--mesh::before {
  background:
    radial-gradient(75% 60% at 20% 0%, rgba(152, 73, 233, .30), transparent 62%),
    radial-gradient(65% 55% at 85% 30%, rgba(97, 143, 250, .22), transparent 65%),
    radial-gradient(90% 70% at 50% 100%, rgba(198, 80, 214, .20), transparent 70%);
}

/* Grelha ténue — dá escala e profundidade sem pesar */
.section--grid::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--edge) 1px, transparent 1px),
    linear-gradient(to bottom, var(--edge) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: .6;
}

.section__head { text-align: center; margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section__head h2 { margin-bottom: 1.1rem; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  /* `clip` em vez de `hidden`: corta os orbes que sangram para lá do
     viewport sem criar um contentor de scroll (o sticky da navbar
     continua a funcionar). */
  overflow: clip;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
  min-height: min(92vh, 900px);
  display: grid; align-content: center;
}

/* Símbolo da marca, gigante e desfocado, com paralaxe.
   É a peça que dá "fundo" — o olho lê distância. */
.hero__mark {
  position: absolute; left: 50%; top: 46%;
  width: min(760px, 70vw); aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -2; pointer-events: none;
  /* Discreto de propósito: dá profundidade ao fundo sem competir com o
     título. Acima de .06 começa a ler-se como conteúdo. */
  opacity: .045;
  color: var(--purple);
  filter: blur(2px);
  will-change: transform;
}
[data-theme="dark"] .hero__mark { opacity: .07; }
@media (max-width: 900px) { .hero__mark { width: min(520px, 78vw); opacity: .04; } }
.hero__mark svg { width: 100%; height: 100%; }

.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  z-index: -3; pointer-events: none;
  will-change: transform;
}
.hero__orb--1 { width: 44vw; height: 44vw; max-width: 560px; max-height: 560px;
  left: -8%; top: 4%; background: radial-gradient(circle, rgba(198,80,214,.42), transparent 68%); }
.hero__orb--2 { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px;
  right: -6%; top: 22%; background: radial-gradient(circle, rgba(97,143,250,.40), transparent 68%); }
.hero__orb--3 { width: 46vw; height: 46vw; max-width: 600px; max-height: 600px;
  left: 30%; bottom: -14%; background: radial-gradient(circle, rgba(152,73,233,.38), transparent 68%); }

.hero h1 { margin-inline: auto; }
.hero h1 .line { display: block; }
/* A máscara existe só enquanto as linhas sobem; depois é removida pelo JS,
   senão cortaria a elipse desenhada à volta de «business». */
html.js:not(.no-anim) .hero h1 .line { overflow: hidden; }
.hero h1 .line > span { display: block; will-change: transform; }

.hero__text { margin: 2.1rem auto 0; }
.hero__cta {
  margin-top: 2.6rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* Elipse desenhada à volta da palavra — traçada no scroll */
.underline-draw { position: relative; display: inline-block; isolation: isolate; }
.underline-draw svg {
  position: absolute;
  left: -13%; top: -24%;
  width: 126%; height: 148%;
  z-index: -1; overflow: visible;
}
/* Em ecrãs estreitos a palavra quase preenche a linha: sem isto a elipse
   saía do viewport e era cortada. */
@media (max-width: 620px) {
  .underline-draw svg { left: -5%; top: -20%; width: 110%; height: 140%; }
}
/* Por omissão a elipse está DESENHADA. Só o JS a esconde para a traçar —
   assim, se a animação nunca correr (rAF congelado, GSAP em falta), o que
   fica é o estado bom e não uma elipse invisível. */
.underline-draw path {
  fill: none; stroke: url(#cdi-stroke); stroke-width: 2.5; stroke-linecap: round;
}

.sparkle { position: absolute; width: 26px; height: 26px; color: var(--purple-light); pointer-events: none; }
.sparkle--blue { color: var(--blue-strong); }
.sparkle--lg { width: 44px; height: 44px; }
.sparkle--sm { width: 16px; height: 16px; }
@media (max-width: 900px) { .sparkle { display: none; } }

.scroll-cue {
  display: inline-grid; place-items: center; gap: .5rem;
  margin: 3rem auto 0;
  background: none; border: 0; cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-body); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue__rail {
  width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid var(--edge);
  display: grid; justify-items: center; padding-top: 7px;
  background: var(--surface);
  box-shadow: var(--lit);
}
.scroll-cue__dot {
  width: 4px; height: 8px; border-radius: 3px;
  background: var(--purple);
  animation: railDrop 1.9s cubic-bezier(.6,0,.3,1) infinite;
}
@keyframes railDrop {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  { opacity: 1; }
  70%  { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* ============================================================
   Cartões — vidro, aresta iluminada, inclinação e brilho
   ============================================================ */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  box-shadow: var(--e2), var(--lit);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
/* brilho que segue o ponteiro — as variáveis vêm do JS */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(340px circle at var(--cx, 50%) var(--cy, 50%),
              color-mix(in srgb, var(--purple) 16%, transparent), transparent 65%);
}
.card:hover::before { opacity: 1; }
.card:hover {
  box-shadow: var(--e4), var(--halo-purple), var(--lit);
  border-color: color-mix(in srgb, var(--purple) 28%, var(--edge));
}

@media (hover: hover) and (pointer: fine) {
  .card[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); }
  .card[data-tilt]:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
}

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F2F5FA; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card__media img { transform: scale(1.05); }
/* o media funde-se no corpo do cartão em vez de terminar a direito */
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--surface-2) 92%, transparent) 100%);
}
.card__body { padding: 1.7rem 1.7rem 1.9rem; position: relative; z-index: 2; }
.card h3 {
  font-family: var(--font-body); font-size: 1.28rem; font-weight: 700;
  text-transform: none; line-height: 1.3; margin-bottom: .55rem; color: var(--text);
}
.card p { color: var(--text-muted); font-size: .98rem; }

/* --- número grande de fundo (passos) --------------------------- */
.card__index {
  position: absolute; right: -.4rem; top: -1.2rem; z-index: 0;
  font-family: var(--font-display); font-size: 8rem; line-height: 1;
  color: color-mix(in srgb, var(--purple) 12%, transparent);
  pointer-events: none; user-select: none;
}

/* ============================================================
   Grelhas
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px)  { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   Cartões de valor — cor com volume, não chapada
   ============================================================ */

.value {
  position: relative;
  border-radius: var(--r-card);
  padding: 2.1rem 1.6rem 2.3rem;
  text-align: left;
  overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .22);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
/* brilho superior: sugere uma superfície curva sob a luz do topo */
.value::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 45%);
}
.value::after {
  content: ""; position: absolute; z-index: -1;
  width: 200%; aspect-ratio: 1; right: -70%; bottom: -120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 60%);
}
.value:hover { transform: translateY(-8px); }
.value__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  margin-bottom: 1.3rem;
  background: rgba(255, 255, 255, .26);
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px -8px rgba(0,0,0,.35);
}
.value__icon .i { width: 26px; height: 26px; }
.value h3 { font-size: 1.65rem; margin-bottom: .7rem; }
.value p { font-size: .93rem; line-height: 1.55; opacity: .92; }

.value--1 { background: linear-gradient(150deg, #A85BF0 0%, #8A3CD8 100%); color: var(--on-purple); box-shadow: var(--e3), var(--halo-purple); }
.value--2 { background: linear-gradient(150deg, #DCA8FF 0%, #C279FF 100%); color: var(--on-tint);   box-shadow: var(--e3), var(--halo-purple); }
.value--3 { background: linear-gradient(150deg, #B4C8F2 0%, #95ADE5 100%); color: var(--on-tint);   box-shadow: var(--e3), var(--halo-blue); }
.value--4 { background: linear-gradient(150deg, #86A9FF 0%, #618FFA 100%); color: var(--on-tint);   box-shadow: var(--e3), var(--halo-blue); }
.value--5 { background: linear-gradient(150deg, #C955DA 0%, #A82FB8 100%); color: var(--on-purple); box-shadow: var(--e3), var(--halo-magenta); }
.value--1:hover { box-shadow: var(--e4), 0 30px 80px -20px rgba(152,73,233,.75); }
.value--2:hover, .value--3:hover, .value--4:hover, .value--5:hover { box-shadow: var(--e4), var(--halo-purple); }

.i {
  display: inline-block; background: currentColor;
  -webkit-mask: var(--i) center/contain no-repeat;
          mask: var(--i) center/contain no-repeat;
}

/* ============================================================
   Passos — trilho com progresso ligado ao scroll
   ============================================================ */

.rail { position: relative; }
.rail::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; translate: -50% 0;
  background: var(--edge);
}
.rail::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 2px; height: var(--rail, 0%); translate: -50% 0;
  background: linear-gradient(180deg, var(--purple), var(--magenta), var(--blue-strong));
  box-shadow: 0 0 18px 2px color-mix(in srgb, var(--purple) 45%, transparent);
  transition: height .1s linear;
}
@media (max-width: 900px) { .rail::before, .rail::after { left: 22px; } }

.rail__item {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem; align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}
.rail__item:nth-child(even) .rail__card { grid-column: 3; }
.rail__item:nth-child(even) .rail__media { grid-column: 1; grid-row: 1; }
.rail__node {
  grid-column: 2;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem;
  background: var(--surface-2); color: var(--purple);
  border: 1px solid var(--edge);
  box-shadow: var(--e2), var(--lit);
  backdrop-filter: blur(10px);
  z-index: 2;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease, color .4s ease;
}
.rail__item.is-active .rail__node {
  transform: scale(1.14);
  color: #fff;
  background: var(--grad);
  box-shadow: var(--e3), var(--halo-purple);
}
.rail__media { border-radius: 18px; overflow: hidden; box-shadow: var(--e3), var(--lit); border: 1px solid var(--edge); }
.rail__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.rail__card h3 {
  font-family: var(--font-body); font-size: 1.35rem; font-weight: 700;
  text-transform: none; margin-bottom: .6rem;
}
.rail__card p { color: var(--text-muted); }
.rail__list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.rail__list li { position: relative; padding-left: 1.7rem; font-size: .93rem; color: var(--text-muted); }
.rail__list li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.05rem; height: 1.05rem; background: var(--purple);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 900px) {
  .rail__item { grid-template-columns: 54px 1fr; gap: 1.25rem; padding-left: 0; }
  .rail__node { grid-column: 1; grid-row: 1; }
  .rail__card, .rail__item:nth-child(even) .rail__card { grid-column: 2; grid-row: 1; }
  .rail__media, .rail__item:nth-child(even) .rail__media { grid-column: 2; grid-row: 2; margin-top: 1rem; }
}

/* ============================================================
   Indústrias — separador com deriva horizontal
   ============================================================ */

.industry {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  display: grid; place-items: center; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 6rem);
  isolation: isolate;
  border: 1px solid var(--edge);
  box-shadow: var(--e3), var(--lit);
  background:
    radial-gradient(70% 60% at 22% 12%, color-mix(in srgb, var(--purple-4) 80%, transparent), transparent 60%),
    radial-gradient(60% 55% at 82% 80%, color-mix(in srgb, var(--blue-soft) 65%, transparent), transparent 62%),
    var(--surface-2);
}
[data-theme="dark"] .industry {
  background:
    radial-gradient(70% 60% at 22% 12%, rgba(152,73,233,.32), transparent 60%),
    radial-gradient(60% 55% at 82% 80%, rgba(97,143,250,.24), transparent 62%),
    rgba(30, 28, 36, .8);
}
.industry__swoosh {
  position: absolute; left: -6%; top: 50%; translate: 0 -50%;
  width: 34%; min-width: 220px; color: var(--purple-3);
  opacity: .5; z-index: -2; will-change: transform;
}
.industry__laptop, .industry__phones { position: absolute; z-index: -1; pointer-events: none; will-change: transform; }
.industry__laptop { left: 0; bottom: 0; width: 23%; max-width: 275px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.28)); }
.industry__phones { right: 0; top: 0; width: 29%; max-width: 350px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.28)); }
.industry h3 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.industry p { color: var(--text-muted); max-width: 44ch; margin-inline: auto; }
@media (max-width: 720px) {
  .industry__laptop { width: 40%; opacity: .4; }
  .industry__phones { width: 48%; opacity: .4; }
}

.tabs { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tabs button {
  padding: .6rem 1.3rem; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--edge);
  box-shadow: var(--lit);
  transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.tabs button:hover { transform: translateY(-2px); color: var(--text); }
.tabs button[aria-selected="true"] {
  color: #fff; background: var(--grad); border-color: transparent;
  box-shadow: var(--e2), var(--halo-purple);
}

/* ============================================================
   Painéis, prosa, formulários
   ============================================================ */

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }

.panel {
  position: relative;
  border-radius: 26px;
  padding: clamp(2rem, 4vw, 2.8rem);
  color: var(--on-purple);
  overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, #A85BF0 0%, #8A3CD8 55%, #7A34C6 100%);
  box-shadow: var(--e4), var(--halo-purple);
  border: 1px solid rgba(255,255,255,.2);
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 40%);
}
.panel::after {
  content: ""; position: absolute; z-index: -1;
  width: 130%; aspect-ratio: 1; left: -40%; bottom: -70%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
}
.panel h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1.2rem; }

.disclosure { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .2rem; }
.disclosure > li { border-bottom: 1px solid rgba(255,255,255,.24); }
.disclosure > li:last-child { border-bottom: 0; }
.disclosure button {
  width: 100%; display: flex; align-items: center; gap: .8rem;
  background: none; border: 0; padding: .95rem 0; cursor: pointer;
  color: inherit; font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-align: left;
}
.disclosure .plus {
  margin-left: auto; width: 26px; height: 26px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.2); font-size: 1.1rem; line-height: 1;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background-color .25s ease;
}
.disclosure button[aria-expanded="true"] .plus { transform: rotate(135deg); background: rgba(255,255,255,.35); }
.disclosure .answer { padding: 0 0 1.1rem; font-size: .93rem; opacity: .94; }
.disclosure .answer[hidden] { display: none; }

.quote {
  margin-top: 2rem; padding: 1.6rem;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.quote__brand { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: .6rem; }
.quote blockquote { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; font-size: .8rem; }
.quote__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: .75rem;
  background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.35);
}
.quote strong { display: block; }
.quote figcaption span span { opacity: .82; text-transform: uppercase; letter-spacing: .05em; }

/* --- formulários ------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: 13px;
  padding: .85rem 1rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  box-shadow: var(--lit);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 16%, transparent), var(--lit);
}
.field select { appearance: none; cursor: pointer; }
.field--select { position: relative; }
.field--select::after {
  content: ""; position: absolute; right: 1rem; bottom: 1.15rem;
  width: 11px; height: 7px; background: var(--text-muted); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.field__error { display: block; min-height: 1.15rem; font-size: .8rem; color: #D64545; margin-top: .3rem; }
[data-theme="dark"] .field__error { color: #FF9C9C; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #D64545; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 26px;
  padding: clamp(1.75rem, 4vw, 2.6rem);
  box-shadow: var(--e3), var(--lit);
  backdrop-filter: blur(14px);
}

.form__status { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: 14px; font-size: .92rem; }
.form__status[hidden] { display: none; }
.form__status--ok  { background: color-mix(in srgb, var(--purple) 12%, transparent); color: var(--text); }
.form__status--err { background: rgba(214, 69, 69, .12); color: #B93B3B; }
[data-theme="dark"] .form__status--err { color: #FF9C9C; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* --- comparação problema / solução / benefício ------------------ */
.compare { position: relative; border-radius: var(--r-card); padding: 2rem 1.75rem 2.2rem; overflow: hidden; isolation: isolate;
  border: 1px solid var(--edge); box-shadow: var(--e2), var(--lit); background: var(--surface); backdrop-filter: blur(12px);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease; }
.compare:hover { transform: translateY(-6px); box-shadow: var(--e4), var(--halo-purple); }
.compare__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; margin-bottom: 1.2rem;
  background: color-mix(in srgb, var(--purple) 12%, transparent); color: var(--purple); border: 1px solid var(--edge); }
.compare__icon svg { width: 26px; height: 26px; }
.compare--problem .compare__icon { background: color-mix(in srgb, #D64545 12%, transparent); color: #C24040; }
.compare--benefits .compare__icon { background: color-mix(in srgb, var(--blue-strong) 14%, transparent); color: var(--blue-strong); }
.compare h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.compare > p { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.2rem; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.compare li { position: relative; padding-left: 1.75rem; font-size: .94rem; font-weight: 600; line-height: 1.45; }
.compare li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem;
  background: var(--purple); -webkit-mask: var(--bullet) center/contain no-repeat; mask: var(--bullet) center/contain no-repeat; }
.compare--problem li::before { background: #C24040;
  --bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/%3E%3C/svg%3E"); }
.compare--solution li::before, .compare--benefits li::before {
  --bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E"); }
.compare--benefits li::before { background: var(--blue-strong); }

/* --- FAQ -------------------------------------------------------- */
.faq { display: grid; gap: .8rem; max-width: 840px; margin-inline: auto; }
.faq__item { border: 1px solid var(--edge); border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: var(--e1), var(--lit); backdrop-filter: blur(10px);
  transition: box-shadow .3s ease, border-color .3s ease; }
.faq__item:hover { box-shadow: var(--e2), var(--lit); border-color: color-mix(in srgb, var(--purple) 25%, var(--edge)); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 1rem; background: none; border: 0; cursor: pointer;
  padding: 1.2rem 1.4rem; font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--text); text-align: left; }
.faq__q .plus { margin-left: auto; width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--purple) 12%, transparent); color: var(--purple);
  font-size: 1.05rem; line-height: 1; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.faq__q[aria-expanded="true"] .plus { transform: rotate(135deg); }
.faq__a { padding: 0 1.4rem 1.4rem; color: var(--text-muted); font-size: .98rem; }
.faq__a[hidden] { display: none; }

/* --- prosa ------------------------------------------------------ */
.prose { max-width: 76ch; margin-inline: auto; }
.prose h2 { margin-top: 2.75rem; margin-bottom: .9rem; }
.prose h3 { font-family: var(--font-body); text-transform: none; font-size: 1.1rem; font-weight: 700; margin-top: 1.75rem; margin-bottom: .5rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose code { font-size: .875em; background: color-mix(in srgb, var(--purple) 10%, transparent); padding: .12rem .4rem; border-radius: 5px; }
.todo { background: color-mix(in srgb, #FF8A00 18%, transparent); border: 1px dashed #FF8A00; padding: .1rem .4rem; border-radius: 5px; color: var(--text); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--e1); }
.prose table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--edge); }
.prose thead th { font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--purple) 8%, transparent); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   CTA final e rodapé
   ============================================================ */

.cta-block {
  position: relative;
  border-radius: 32px;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden; isolation: isolate;
  color: #fff;
  background: linear-gradient(140deg, #7A34C6 0%, #9C4DEA 45%, #8A3CD8 100%);
  box-shadow: var(--e4), var(--halo-purple);
  border: 1px solid rgba(255,255,255,.18);
}
.cta-block::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 12% 10%, rgba(232,97,250,.42), transparent 60%),
    radial-gradient(55% 70% at 88% 85%, rgba(97,143,250,.38), transparent 62%);
}
.cta-block::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09; mix-blend-mode: overlay;
}
.cta-block h2 { margin-bottom: 1rem; }
.cta-block .lead { color: rgba(255,255,255,.9); }
.cta-block .btn--secondary { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-block .btn--secondary:hover { background: rgba(255,255,255,.26); }
.cta-block .btn--primary { background: #fff; color: #7A34C6; box-shadow: var(--e3), inset 0 1px 0 rgba(255,255,255,.9); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }

.footer {
  position: relative;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-block: clamp(3rem, 5vw, 4rem) 2.5rem;
  border-top: 1px solid var(--edge);
  overflow: hidden;
}
.footer__glow {
  position: absolute; left: 50%; top: -60%;
  width: 120%; aspect-ratio: 2.6/1; translate: -50% 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--purple) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.footer__top { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer__logo img { width: 190px; }
.footer__pitch { margin-top: 1rem; color: var(--text-muted); font-size: .95rem; }
.footer__label { font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .9rem; }
.footer nav ul { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.footer nav a { color: var(--text-muted); text-decoration: none; font-size: 1rem; transition: color .2s ease; }
.footer nav a:hover { color: var(--purple); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  align-items: center; padding-top: 1.75rem; border-top: 1px solid var(--edge); font-size: .92rem; }
.footer__contacts { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 600; }
.footer__contacts a { color: var(--text); text-decoration: none; }
.footer__contacts a:hover { color: var(--purple); }
.footer__call {
  padding: .65rem 1.4rem; border-radius: var(--r-pill); text-decoration: none;
  font-size: .9rem; font-weight: 600; color: #fff; background: var(--grad);
  box-shadow: var(--e2), var(--halo-purple);
  transition: transform .25s ease, box-shadow .25s ease;
}
.footer__call:hover { transform: translateY(-2px); box-shadow: var(--e3), var(--halo-purple); }
.footer__legal { margin-top: 1.5rem; font-size: .8rem; color: var(--text-dim); }
.footer__legal a { color: var(--text-muted); }

/* ============================================================
   Consentimento
   ============================================================ */

.consent {
  position: fixed; inset: auto 1rem 1rem; z-index: 300;
  max-width: 640px; margin-inline: auto;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: 22px; padding: 1.6rem;
  box-shadow: var(--e4), var(--lit);
  backdrop-filter: blur(20px);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.consent p { font-size: .88rem; color: var(--text-muted); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.consent__actions .btn { padding: .68rem 1.4rem; font-size: .95rem; }
.consent__cats { display: grid; gap: .6rem; margin: 1rem 0; }
.consent__cats label { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; }
.consent__cats input { accent-color: var(--purple); margin-top: .2rem; }

/* ============================================================
   404
   ============================================================ */

.error-page { text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.error-page .code {
  font-family: var(--font-display); font-size: clamp(5rem, 17vw, 11rem); line-height: .8;
  background: linear-gradient(120deg, var(--purple), var(--magenta) 50%, var(--blue-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 18px 40px rgba(152,73,233,.35));
}

/* ============================================================
   Revelação — direcional, não um fade-up para tudo
   ============================================================ */

/* As revelações são CSS puro, comutadas por uma classe que um
   IntersectionObserver acrescenta. Não dependem do ticker de animação:
   se o separador estiver em segundo plano nada fica preso invisível —
   quando volta a estar visível, a transição corre. Uma versão anterior
   deixava conteúdo por revelar. */
html.js [data-reveal],
html.js [data-stagger] > * {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.2,.7,.3,1), transform .75s cubic-bezier(.2,.7,.3,1), filter .75s ease;
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal="up"],    html.js [data-stagger] > * { transform: translateY(38px); }
html.js [data-reveal="down"]  { transform: translateY(-34px); }
html.js [data-reveal="left"]  { transform: translateX(-46px); }
html.js [data-reveal="right"] { transform: translateX(46px); }
html.js [data-reveal="scale"] { transform: scale(.95); filter: blur(6px); }
html.js [data-reveal]:not([data-reveal=""]):not([data-reveal="up"]):not([data-reveal="down"]):not([data-reveal="left"]):not([data-reveal="right"]):not([data-reveal="scale"]) { transform: translateY(38px); }

html.js [data-reveal].is-in,
html.js [data-stagger] > *.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Sem JS, com movimento reduzido, ou se algo correr mal: tudo visível. */
html.no-anim [data-reveal],
html.no-anim [data-stagger] > * {
  opacity: 1 !important; transform: none !important; filter: none !important; transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .scroll-cue__dot { animation: none; }
  .grain, .spotlight { display: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .nav, .footer, .consent, .scroll-cue, .grain, .spotlight { display: none; }
  body { background: #fff; color: #000; }
}

/* ===== components.css ===== */
/* ============================================================
   CDI — COMPONENTES
   Segunda camada. Carrega depois de base.css e só acrescenta: peças
   maiores, usadas numa ou noutra página.

   O quadro do acordo (as duas saídas possíveis), o antes/depois, a
   grelha de portefólio, os critérios de entrada, o ciclo de valor, a
   equipa, o formulário de submissão com upload e as âncoras legais.
   ============================================================ */

/* ------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------ */
.crumbs { padding-top: 1.5rem; }
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .82rem; color: var(--text-dim);
}
.crumbs li + li::before { content: "›"; margin-right: .5rem; opacity: .6; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple); text-decoration: underline; }

/* ------------------------------------------------------------
   Números grandes (12 meses, 5–7 %, 10 dias)
   ------------------------------------------------------------ */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 3rem;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: var(--r-card); padding: 1.6rem 1.5rem;
  box-shadow: var(--e2), var(--lit); backdrop-filter: blur(12px);
  text-align: center;
}
.stat__n {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .95;
  background: linear-gradient(100deg, var(--purple), var(--magenta) 60%, var(--blue-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__l { display: block; margin-top: .5rem; font-size: .92rem; color: var(--text-muted); }

/* ------------------------------------------------------------
   O ACORDO — as duas saídas, lado a lado.
   É o módulo central do site: a proposta da CDI é uma aposta com
   duas saídas conhecidas, e mostrá-las juntas é o argumento.
   ------------------------------------------------------------ */
.deal {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; align-items: stretch;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: var(--e4), var(--lit);
  background: var(--surface-2);
  backdrop-filter: blur(16px);
}
@media (max-width: 900px) { .deal { grid-template-columns: 1fr; } }

.deal__side { padding: clamp(1.75rem, 4vw, 2.6rem); }
.deal__side--win {
  color: var(--on-purple);
  background: linear-gradient(155deg, #A85BF0 0%, #8A3CD8 60%, #7A34C6 100%);
  position: relative; isolation: isolate;
}
.deal__side--win::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.2), transparent 45%);
}
.deal__split {
  display: grid; place-items: center;
  padding: 1rem .75rem;
  background: var(--surface);
  border-inline: 1px solid var(--edge);
}
.deal__split span {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
  writing-mode: vertical-rl; rotate: 180deg;
}
@media (max-width: 900px) {
  .deal__split { border-inline: 0; border-block: 1px solid var(--edge); padding: .6rem; }
  .deal__split span { writing-mode: horizontal-tb; rotate: none; }
}

.deal__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, .22); color: inherit;
  border: 1px solid rgba(255, 255, 255, .3);
}
.deal__side--back .deal__tag {
  background: color-mix(in srgb, var(--blue-strong) 14%, transparent);
  border-color: color-mix(in srgb, var(--blue-strong) 30%, transparent);
  color: var(--blue-strong);
}
.deal h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.deal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.deal li { position: relative; padding-left: 1.9rem; font-size: .97rem; line-height: 1.5; }
.deal li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 1.2rem; height: 1.2rem; background: currentColor;
  -webkit-mask: var(--dot) center/contain no-repeat; mask: var(--dot) center/contain no-repeat;
}
.deal__side--win li::before, .deal__side--back li::before {
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E");
}
.deal__side--back li::before { background: var(--blue-strong); }
.deal__side--back p, .deal__side--back li { color: var(--text-muted); }
.deal__side--back h3 { color: var(--text); }
.deal__note {
  margin-top: 1.4rem; padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: .84rem; opacity: .85;
}

/* ------------------------------------------------------------
   Pipeline de 5 fases (resumo)
   ------------------------------------------------------------ */
.pipeline {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: .75rem; position: relative;
}
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }

.phase {
  position: relative;
  display: block; text-decoration: none; color: inherit;
  padding: 1.6rem 1.15rem;
  border-radius: 18px;
  background: var(--surface); border: 1px solid var(--edge);
  box-shadow: var(--e1), var(--lit); backdrop-filter: blur(10px);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.phase:hover {
  transform: translateY(-5px);
  box-shadow: var(--e3), var(--halo-purple);
  border-color: color-mix(in srgb, var(--purple) 30%, var(--edge));
}
.phase__n {
  display: block; font-family: var(--font-display);
  font-size: .95rem; letter-spacing: .12em; color: var(--purple); margin-bottom: .7rem;
}
[data-theme="dark"] .phase__n { color: var(--purple-light); }
.phase__icon { display: block; width: 30px; height: 30px; color: var(--magenta); margin-bottom: .8rem; }
[data-theme="dark"] .phase__icon { color: var(--purple-light); }
.phase h3 {
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 700;
  text-transform: none; line-height: 1.3; margin-bottom: .35rem;
}
.phase p { font-size: .86rem; color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------
   Antes / depois
   ------------------------------------------------------------ */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }
.ba__col {
  border-radius: var(--r-card); padding: 1.9rem 1.7rem;
  border: 1px solid var(--edge); background: var(--surface);
  box-shadow: var(--e1), var(--lit); backdrop-filter: blur(10px);
}
.ba__col--after {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--purple) 12%, var(--surface-2)),
    var(--surface-2));
  border-color: color-mix(in srgb, var(--purple) 26%, var(--edge));
  box-shadow: var(--e3), var(--halo-purple), var(--lit);
}
.ba h3 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ba li { position: relative; padding-left: 1.8rem; font-size: .95rem; color: var(--text-muted); }
.ba li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 1.15rem; height: 1.15rem;
  -webkit-mask: var(--dot) center/contain no-repeat; mask: var(--dot) center/contain no-repeat;
}
.ba__col--before li::before {
  background: #C24040;
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/%3E%3C/svg%3E");
}
.ba__col--after li::before {
  background: var(--purple);
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   Critérios de entrada (aceitamos / não aceitamos)
   ------------------------------------------------------------ */
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .gate { grid-template-columns: 1fr; } }
.gate__col { border-radius: var(--r-card); padding: 1.8rem 1.6rem; border: 1px solid var(--edge); background: var(--surface); backdrop-filter: blur(10px); }
.gate__col--yes { border-color: color-mix(in srgb, var(--purple) 30%, var(--edge)); box-shadow: var(--e2), var(--lit); }
.gate h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.gate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.gate li { position: relative; padding-left: 1.75rem; font-size: .95rem; color: var(--text-muted); }
.gate li strong { color: var(--text); }
.gate li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.15rem;
  -webkit-mask: var(--dot) center/contain no-repeat; mask: var(--dot) center/contain no-repeat; }
.gate__col--yes li::before { background: var(--purple);
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E"); }
.gate__col--no li::before { background: var(--text-dim);
  --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 13H5v-2h14v2Z'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------
   Ciclo de valor (What we do)
   ------------------------------------------------------------ */
.cycle {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem; align-items: stretch; position: relative;
}
@media (max-width: 900px) { .cycle { grid-template-columns: 1fr; } }
.cycle__node {
  text-align: center; padding: 1.5rem 1rem;
  border-radius: 18px; background: var(--surface);
  border: 1px solid var(--edge); box-shadow: var(--e1), var(--lit);
  backdrop-filter: blur(10px);
}
.cycle__node strong {
  display: block; font-family: var(--font-display);
  font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: .35rem;
}
.cycle__node--cdi {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: var(--e3), var(--halo-purple);
}
.cycle__node span { font-size: .84rem; color: var(--text-muted); }
.cycle__node--cdi span { color: rgba(255,255,255,.9); }

/* ------------------------------------------------------------
   Portefólio
   ------------------------------------------------------------ */
.pf-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pf-grid { grid-template-columns: 1fr; } }

.pf-card {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--surface); border: 1px solid var(--edge);
  box-shadow: var(--e1), var(--lit); backdrop-filter: blur(10px);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--e3), var(--halo-purple);
  border-color: color-mix(in srgb, var(--purple) 26%, var(--edge));
}
.pf-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pf-card__code {
  font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: .1em; color: var(--text-dim);
}
.pf-card h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; text-transform: none; margin-bottom: .5rem; }
.pf-card p { font-size: .92rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.pf-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--purple) 10%, transparent);
  color: var(--purple); border: 1px solid color-mix(in srgb, var(--purple) 22%, transparent);
}
[data-theme="dark"] .tag { color: var(--purple-light); }

.status {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: var(--r-pill); white-space: nowrap;
}
.status--review    { background: color-mix(in srgb, var(--blue) 22%, transparent);        color: #3F5FA8; }
.status--dev       { background: color-mix(in srgb, var(--purple) 16%, transparent);      color: var(--purple); }
.status--launched  { background: color-mix(in srgb, #16A34A 16%, transparent);            color: #15803D; }
.status--returned  { background: color-mix(in srgb, var(--text-dim) 18%, transparent);    color: var(--text-muted); }
[data-theme="dark"] .status--review   { color: #A9C0F5; }
[data-theme="dark"] .status--dev      { color: var(--purple-light); }
[data-theme="dark"] .status--launched { color: #6EE7A0; }

/* ------------------------------------------------------------
   Equipa
   ------------------------------------------------------------ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.team__card {
  text-align: center; padding: 2rem 1.4rem;
  border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--edge); box-shadow: var(--e1), var(--lit); backdrop-filter: blur(10px);
}
.team__avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.8rem; color: #fff;
  background: var(--grad); box-shadow: var(--e2), var(--halo-purple);
}
.team__card h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; text-transform: none; margin-bottom: .2rem; }
.team__role { font-size: .84rem; color: var(--purple); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
[data-theme="dark"] .team__role { color: var(--purple-light); }
.team__card p { font-size: .9rem; color: var(--text-muted); margin-top: .8rem; }

/* ------------------------------------------------------------
   Pictos (How you benefit)
   ------------------------------------------------------------ */
.pictos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
@media (max-width: 1000px) { .pictos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pictos { grid-template-columns: 1fr; } }
.picto {
  padding: 1.5rem 1.2rem; border-radius: 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--edge);
  box-shadow: var(--e1), var(--lit); backdrop-filter: blur(10px);
}
.picto svg { width: 30px; height: 30px; color: var(--purple); margin-bottom: .8rem; }
[data-theme="dark"] .picto svg { color: var(--purple-light); }
.picto strong { display: block; font-size: .98rem; margin-bottom: .3rem; }
.picto span { font-size: .85rem; color: var(--text-muted); }

/* ------------------------------------------------------------
   Callout / nota destacada
   ------------------------------------------------------------ */
.note {
  border-radius: 18px; padding: 1.4rem 1.6rem;
  background: color-mix(in srgb, var(--purple) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--purple) 22%, var(--edge));
  box-shadow: var(--lit);
}
.note strong { color: var(--text); }
.note p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.note--warn {
  background: color-mix(in srgb, #FF8A00 9%, var(--surface));
  border-color: color-mix(in srgb, #FF8A00 28%, var(--edge));
}

/* ------------------------------------------------------------
   Âncoras legais
   ------------------------------------------------------------ */
.anchor-nav {
  position: sticky; top: calc(var(--nav-h) + .5rem); z-index: 20;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  padding: .6rem; margin-bottom: 2.5rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--edge);
  backdrop-filter: blur(14px);
  box-shadow: var(--e1);
}
.anchor-nav a {
  padding: .5rem 1.1rem; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.anchor-nav a:hover { color: var(--text); background: var(--surface); }
.anchor-nav a.is-current { color: #fff; background: var(--grad); }

/* ------------------------------------------------------------
   Formulário de submissão
   ------------------------------------------------------------ */
.fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; }
.fieldset > legend {
  font-family: var(--font-display); font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .02em;
  padding: 0; margin-bottom: .35rem;
}
.fieldset__hint { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.3rem; }

.field__help { display: block; font-size: .8rem; color: var(--text-dim); margin-top: .35rem; }
.field__count { float: right; font-variant-numeric: tabular-nums; }

.check {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--edge);
  font-size: .92rem; cursor: pointer;
  transition: border-color .2s ease;
}
.check + .check { margin-top: .75rem; }
.check:hover { border-color: color-mix(in srgb, var(--purple) 30%, var(--edge)); }
.check input { accent-color: var(--purple); width: 19px; height: 19px; margin-top: .1rem; flex: 0 0 auto; }
.check span { color: var(--text-muted); }
.check[data-invalid="true"] { border-color: #D64545; }

.dropzone {
  display: grid; place-items: center; gap: .5rem;
  padding: 2rem 1.5rem; text-align: center;
  border: 1.5px dashed var(--edge); border-radius: 16px;
  background: var(--surface); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--purple);
  background: color-mix(in srgb, var(--purple) 7%, var(--surface));
}
.dropzone svg { width: 28px; height: 28px; color: var(--purple); }
.dropzone strong { font-size: .98rem; }
.dropzone span { font-size: .82rem; color: var(--text-dim); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.filelist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.filelist li {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .9rem; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--edge);
  font-size: .88rem;
}
.filelist .size { margin-left: auto; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.filelist button {
  background: none; border: 0; cursor: pointer; color: var(--text-dim);
  font-size: 1.1rem; line-height: 1; padding: .15rem .35rem; border-radius: 6px;
}
.filelist button:hover { color: #C24040; }

.linkrow { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: end; }
.linkrow + .linkrow { margin-top: .7rem; }

/* --- ecrã de sucesso --- */
.success {
  border-radius: 26px; padding: clamp(2rem, 4vw, 3rem);
  background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--purple) 28%, var(--edge));
  box-shadow: var(--e4), var(--halo-purple), var(--lit);
  backdrop-filter: blur(16px);
}
.success[hidden] { display: none; }
.success__mark {
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: 1.3rem;
  display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: var(--e2), var(--halo-purple);
}
.success__mark svg { width: 30px; height: 30px; }
.success h2 { margin-bottom: .8rem; }
.success dl {
  margin: 1.75rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--edge);
  display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.5rem;
  font-size: .92rem;
}
.success dt { color: var(--text-dim); font-weight: 600; }
.success dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* ------------------------------------------------------------
   Rodapé em 4 colunas
   ------------------------------------------------------------ */
.footer__top--v3 {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem; align-items: start;
}
@media (max-width: 940px) { .footer__top--v3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top--v3 { grid-template-columns: 1fr; } }
.footer__emails { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__emails a { color: var(--text-muted); text-decoration: none; font-size: .92rem; }
.footer__emails a:hover { color: var(--purple); }
.footer__emails span {
  display: block; font-size: .72rem; color: var(--text-dim);
  letter-spacing: .08em; text-transform: uppercase;
}
.footer__disclaimer { display: inline-block; margin-top: .5rem; opacity: .8; }

/* ------------------------------------------------------------
   Utilitários
   ------------------------------------------------------------ */
.center { text-align: center; }
.stack > * + * { margin-top: 1.5rem; }
.mt-3 { margin-top: 3rem; }
.narrow { max-width: 760px; margin-inline: auto; }

/* ------------------------------------------------------------
   Navbar com seis itens: aperta o espaçamento
   e antecipa o hambúrguer, sem tocar na base.
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Trilho sem bloco de média (What we do).
   A alternância base conta com um .rail__media para ocupar a coluna
   oposta; sem ele, o auto-placement empurrava tudo para a direita.
   ------------------------------------------------------------ */
.rail--solo .rail__item:nth-child(odd)  .rail__card { grid-column: 1; text-align: right; }
.rail--solo .rail__item:nth-child(even) .rail__card { grid-column: 3; }
.rail--solo .rail__item:nth-child(odd) .rail__list li { padding-left: 0; padding-right: 1.7rem; }
.rail--solo .rail__item:nth-child(odd) .rail__list li::before { left: auto; right: 0; }

@media (max-width: 900px) {
  .rail--solo .rail__item:nth-child(odd) .rail__card { grid-column: 2; text-align: left; }
  .rail--solo .rail__item:nth-child(odd) .rail__list li { padding-left: 1.7rem; padding-right: 0; }
  .rail--solo .rail__item:nth-child(odd) .rail__list li::before { left: 0; right: auto; }
}

/* ------------------------------------------------------------
   Glow do hero a sangrar até às margens do ecrã.

   O hero é `.wrap`, portanto tem 1180px, e a base põe-lhe `overflow: clip`
   para os orbes não criarem scroll horizontal. Resultado: o glow era
   cortado a direito nas duas laterais, com costura visível.

   Aqui tira-se o clip e ancoram-se os orbes ao VIEWPORT em vez do
   container: como o `.wrap` é centrado, os 50% do hero coincidem com o
   centro do ecrã, logo `calc(50% - 50vw)` é exactamente a margem
   esquerda real. Ficam a tocar as bordas sem as ultrapassar, por isso
   não há scroll horizontal.
   ------------------------------------------------------------ */
.site .hero { overflow: visible; }

.site .hero__orb--1 { left: calc(50% - 50vw); right: auto; }
.site .hero__orb--2 { right: calc(50% - 50vw); left: auto; }
.site .hero__orb--3 { left: calc(50% - 26vw); right: auto; }

/* O símbolo gigante do fundo também deixava de caber no container. */
.site .hero__mark { max-width: none; }

/* ===== site.css ===== */
/* ============================================================
   CDI — SITE
   Terceira e última camada. Carrega depois de base.css e components.css
   e é o que este site tem de próprio.

   O site vende DOIS serviços, e isso obriga a três coisas:

   1. UMA PORTA DE ENTRADA que faz o visitante identificar-se — sem o
      obrigar, porque um interstício que bloqueia afasta gente e não
      deixa nada para indexar. A escolha é o conteúdo, não uma barreira.
   2. IDENTIDADE POR COR — cada serviço tem o seu acento (azul para a
      custódia, roxo para o Innovation Center), para quem aterra a meio
      saber onde está sem ler.
   3. NAVEGAÇÃO GLOBAL com submenus e um painel de ecrã inteiro no
      telemóvel, igual em todas as páginas.

   Aqui também vive o ritmo tonal do tema claro, sem o qual todas as
   secções se liam como um só bloco branco.
   ============================================================ */

/* ------------------------------------------------------------
   Navbar apertada e glow do hero até às margens
   ------------------------------------------------------------ */
.site .nav__logo img { width: 152px; }
.site .nav__inner   { gap: 1rem; }
.site .nav__actions { gap: .6rem; }
.site .nav__links   { flex-wrap: nowrap; gap: .15rem; }
.site .nav__links a { padding: .5rem .7rem; font-size: .94rem; white-space: nowrap; }
.site .nav__actions .btn--sm { padding: .68rem 1.15rem; font-size: .95rem; white-space: nowrap; }

@media (max-width: 1200px) {
  .site .nav__links { display: none; }
  .site .nav__actions .btn { display: none; }
  .site .nav__burger { display: grid; }
}

/* ------------------------------------------------------------
   MENU DO TELEMÓVEL — painel de ecrã inteiro

   O que estava aqui antes tinha três problemas a olho:
   os dois serviços apareciam como caixas encolhidas (herdavam o
   `display:inline-flex` da versão de secretária) enquanto os outros itens
   eram caixas de largura total; os filhos não tinham caixa nenhuma, só
   uma indentação; e nada tinha margem lateral, com os cartões colados às
   bordas do ecrã. Três linguagens visuais no mesmo menu.

   Agora é um painel que ocupa o ecrã todo por baixo da barra, com uma só
   linguagem: linhas separadas por fios, os serviços como secções com
   rótulo, e o CTA fixo no fundo. `position: fixed` para o conteúdo da
   página não espreitar por baixo, e o scroll do documento é travado
   enquanto está aberto (ver src/scripts/ui.js).
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .site .nav__mobile {
    position: fixed; inset: var(--nav-h) 0 0;
    z-index: 95;
    display: flex; flex-direction: column;
    padding: 0;
    background: var(--bg);
    border-top: 1px solid var(--edge);
    animation: navPanelIn .22s cubic-bezier(.2,.7,.3,1);
  }
  .site .nav__mobile[hidden] { display: none; }

  @keyframes navPanelIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }

  /* a lista rola; o rodapé com o CTA fica sempre à vista */
  .site .nav__mobile-scroll {
    flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: .5rem var(--pad-x) 1.5rem;
  }
  .site .nav__mobile ul { list-style: none; margin: 0; padding: 0; }

  /* UMA linha, para todos os níveis */
  .site .nav__mobile-scroll a {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem .25rem;
    border: 0; border-radius: 0; background: none;
    border-bottom: 1px solid var(--edge);
    color: var(--text); text-decoration: none;
    font-size: 1.08rem; font-weight: 500;
  }
  .site .nav__mobile-scroll a::after {
    content: ""; flex: 0 0 auto;
    width: 7px; height: 7px;
    border-right: 2px solid var(--text-dim); border-top: 2px solid var(--text-dim);
    transform: rotate(45deg);
    opacity: .5;
  }
  .site .nav__mobile-scroll a[aria-current="page"] { color: var(--track-color); font-weight: 700; }
  .site .nav__mobile-scroll a[aria-current="page"]::after { border-color: var(--track-color); opacity: 1; }
  .site .nav__mobile-scroll a:active { background: color-mix(in srgb, var(--purple) 8%, transparent); }

  /* Serviço = secção com rótulo, não mais um link ao mesmo nível */
  .site .nav__group { margin-top: 1.4rem; }
  .site .nav__group:first-child { margin-top: .4rem; }
  .site .nav__group-label {
    display: flex; align-items: center; gap: .55rem;
    margin: 0 0 .1rem;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--grp);
  }
  .site .nav__group-label::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--grp); flex: 0 0 auto;
  }
  .site .nav__group:nth-child(1) { --grp: var(--custody); }
  .site .nav__group:nth-child(2) { --grp: var(--purple); }
    
  /* os filhos são linhas iguais às outras, só um pouco mais leves */
  .site .nav__mobile .nav__sub {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    min-width: 0; margin: 0; padding: 0; overflow: visible;
  }
  /* Especificidade a mais de propósito: a regra do painel de secretária
     (`.site .nav__sub a`) tem a mesma que `.site .nav__mobile-scroll a` e aparece
     mais abaixo no ficheiro, por isso ganhava e devolvia os filhos a
     `display:block`. Aqui repete-se o essencial com um selector que ganha. */
  .site .nav__mobile-scroll .nav__sub a {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem .25rem;
    border-radius: 0; border-bottom: 1px solid var(--edge);
    font-size: 1.02rem; color: var(--text-muted); white-space: normal;
  }
  .site .nav__mobile-scroll .nav__sub a[aria-current="page"] { color: var(--track-color); font-weight: 700; }
  .site .nav__mobile-scroll .nav__sub a::before { content: none; }
  .site .nav__mobile-scroll .nav__sub a::after {
    content: ""; flex: 0 0 auto; width: 7px; height: 7px;
    border-right: 2px solid var(--text-dim); border-top: 2px solid var(--text-dim);
    transform: rotate(45deg); opacity: .5;
  }
  .site .nav__mobile-scroll .nav__sub a[aria-current="page"]::after { border-color: var(--track-color); opacity: 1; }

  /* rodapé fixo do painel */
  .site .nav__mobile-foot {
    flex: 0 0 auto;
    padding: 1rem var(--pad-x) calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--edge);
    background: var(--bg);
  }
}

/* O documento não deve rolar por trás do painel aberto. */
body.nav-open { overflow: hidden; }

/* ------------------------------------------------------------
   SUBMENUS

   Cada serviço é um item de topo com as suas páginas penduradas.
   Abrem só com CSS — `:hover` para o rato, `:focus-within` para o
   teclado. Fechados, os filhos ficam a opacidade 0 e sem eventos de
   rato, NUNCA a `display:none`: um elemento em display:none não é
   focável, e o `:focus-within` que os revela nunca chegaria a
   disparar. O toque não tem hover, mas aí o item de topo é um link
   para a página do serviço, que lista as mesmas páginas — e abaixo
   de 1200px entra o menu do telemóvel, com tudo aberto.
   ------------------------------------------------------------ */
.site .nav__links { position: relative; }
.site .nav__has-sub { position: relative; }
.site .nav__has-sub > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav__chev { width: 13px; height: 13px; opacity: .55; transition: transform .3s ease, opacity .3s ease; }
.site .nav__has-sub:hover > a .nav__chev,
.site .nav__has-sub:focus-within > a .nav__chev { transform: rotate(180deg); opacity: 1; }

/* o item de topo marcado quando se está numa página dele */
.site .nav__links .is-section > a { color: var(--track-color); }

/* O painel não é um cartão flutuante: é uma folha encostada à navegação,
   com o fio de cor do serviço no topo. A linguagem do resto do site é feita
   de fios finos e acentos de cor — as portas da home, os fios das promessas,
   a numeração das fases — e um cartão redondo com sombra grande destoava. */
.site .nav__has-sub { --sub-color: var(--purple); }
.site .nav__has-sub:nth-child(1) { --sub-color: var(--custody); }
.site .nav__has-sub:nth-child(2) { --sub-color: var(--purple); }

.site .nav__sub {
  position: absolute; top: calc(100% + .5rem); left: -.3rem;
  z-index: 60;
  min-width: 14rem;
  list-style: none; margin: 0; padding: 0;
  display: grid;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-top: 2px solid var(--sub-color);
  box-shadow: 0 12px 28px -18px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .2s cubic-bezier(.2,.7,.3,1);
}
.site .nav__has-sub:hover > .nav__sub,
.site .nav__has-sub:focus-within > .nav__sub {
  opacity: 1; pointer-events: auto; transform: none;
}
/* faixa invisível que cobre o intervalo entre o item e o painel, para o
   ponteiro não o perder a meio do caminho */
.site .nav__has-sub::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem;
}

.site .nav__sub li + li { border-top: 1px solid var(--edge); }
.site .nav__sub a {
  position: relative;
  display: block; padding: .7rem 1rem .7rem 1.05rem;
  font-size: .9rem; white-space: nowrap;
  color: var(--text-muted); text-decoration: none;
  transition: color .18s ease, padding-left .18s cubic-bezier(.2,.7,.3,1);
}
/* barra de cor à esquerda, como nos outros componentes — em vez do fundo
   colorido, que fazia o painel parecer um menu de sistema */
.site .nav__sub a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--sub-color);
  transform: scaleY(0); transform-origin: center;
  transition: transform .18s cubic-bezier(.2,.7,.3,1);
}
.site .nav__sub a:hover { color: var(--text); padding-left: 1.25rem; }
.site .nav__sub a:hover::before { transform: scaleY(1); }
.site .nav__sub a[aria-current="page"] { color: var(--sub-color); font-weight: 600; }
.site .nav__sub a[aria-current="page"]::before { transform: scaleY(1); }

/* O glow do hero tem de chegar às margens da página, por isso o .hero não
   pode cortar. Mas sem um travão os orbes e a marca-fantasma empurram o
   documento para lá do viewport e aparece uma barra horizontal. `clip` no
   eixo X resolve os dois: corta exactamente à largura do ecrã e, ao
   contrário de `hidden`, não cria caixa de scroll — o sticky da barra de
   percurso continua a funcionar. */
.site main { overflow-x: clip; }
.site .hero { overflow: visible; }

/* `img, svg { max-width: 100% }` (base.css) esmagava a elipse desenhada até
   à largura da própria palavra. Aqui ela tem de a ultrapassar. */
.site .underline-draw svg { max-width: none; }
.site .hero__orb--1 { left: calc(50% - 50vw); right: auto; }
.site .hero__orb--2 { right: calc(50% - 50vw); left: auto; }
.site .hero__orb--3 { left: calc(50% - 26vw); right: auto; }
.site .hero__mark { max-width: none; }

/* ------------------------------------------------------------
   Identidade de cor por percurso.
   Roxo para a inovação (o roxo é a cor-mãe da marca e a inovação é a
   oferta nova); azul para a custódia, que é a operação, o lado sóbrio.
   ------------------------------------------------------------ */
.site {
  --track-color: var(--purple);
  --track-color-soft: var(--purple-light);
  --track-halo: var(--halo-purple);
  --track-grad: linear-gradient(100deg, #8A3CD8 0%, #9C4DEA 100%);
}
.site[data-track="custody"] {
  --track-color: var(--custody);
  --track-color-soft: var(--blue-strong);
  --track-halo: var(--halo-blue);
  --track-grad: linear-gradient(100deg, #2F5FCC 0%, #4A7BE4 100%);
}

/* ------------------------------------------------------------
   GATEWAY — as duas portas

   Não são cartões. Dois cartões grandes lado a lado obrigam a ler
   dois blocos inteiros antes de perceber seja o que for, e o peso
   visual deles diz «formulário», não «entra».
   Aqui a página abre-se em duas metades separadas por um fio: a
   frase grande é a situação do visitante — ele reconhece-se numa
   delas em dois segundos — e o resto é uma linha e um link.
   ------------------------------------------------------------ */
.paths {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid var(--edge);
}
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }

.path {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(2.1rem, 4vw, 3.2rem) clamp(1.4rem, 3vw, 2.6rem);
  color: inherit;
  transition: background .4s ease;
}
.path + .path { border-left: 1px solid var(--edge); }
@media (max-width: 900px) {
  .path + .path { border-left: 0; border-top: 1px solid var(--edge); }
}

/* fio de cor que se desenha no topo da metade activa */
.path::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--path-color);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.path:hover, .path:focus-within {
  background: color-mix(in srgb, var(--path-color) 7%, transparent);
}
.path:hover::after, .path:focus-within::after { transform: scaleX(1); }

.path--custody    { --path-color: var(--custody); }
.path--innovation { --path-color: var(--purple); }

.path__who {
  display: flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--path-color); margin-bottom: 1.1rem;
}
.path__who::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--path-color); flex: 0 0 auto;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--path-color) 18%, transparent);
}

.path h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  max-width: 16ch;
}
.path__lede {
  color: var(--text-muted); font-size: 1rem;
  margin-bottom: 1.8rem; max-width: 42ch;
}

.path__go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--path-color);
}
.path__go svg { width: 17px; height: 17px; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.path:hover .path__go svg, .path:focus-within .path__go svg { transform: translateX(6px); }

/* Toda a metade é clicável, sem aninhar <a> dentro de <a>. */
.path__link { color: inherit; text-decoration: none; }
.path__link::after { content: ""; position: absolute; inset: 0; }
.path__link:focus-visible { outline: none; }
.path:focus-within { outline: 2px solid var(--path-color); outline-offset: -2px; }

/* ------------------------------------------------------------
   PROMESSAS — o que faz a CDI diferente, em três frases.
   Sem caixa: só um fio de cor à esquerda. É o contraponto de ritmo
   às portas, para a home não ser uma sucessão de rectângulos.
   ------------------------------------------------------------ */
.pledges {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr; } }
.pledge { padding-left: 1.4rem; border-left: 2px solid color-mix(in srgb, var(--purple) 50%, var(--edge)); }
.pledge:nth-child(2) { border-left-color: color-mix(in srgb, var(--magenta) 50%, var(--edge)); }
.pledge:nth-child(3) { border-left-color: color-mix(in srgb, var(--blue-strong) 50%, var(--edge)); }
.pledge h3 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.05;
  margin-bottom: .7rem;
}
.pledge p { color: var(--text-muted); font-size: .97rem; margin: 0; }

/* ------------------------------------------------------------
   Linha de credenciais — factos secos, sem caixa
   ------------------------------------------------------------ */
.trust-line {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem 1.2rem;
  font-size: .88rem; color: var(--text-muted);
}
.trust-line li { display: flex; align-items: center; gap: 1.2rem; }
.trust-line li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-dim); opacity: .55;
}
@media (max-width: 620px) { .trust-line li:not(:last-child)::after { display: none; } }

/* --- «continuar onde estavas», para quem volta ------------------- */
.resume {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem; padding: .9rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--edge);
  box-shadow: var(--lit);
  font-size: .92rem; color: var(--text-muted);
  width: fit-content; margin-inline: auto;
}
.resume[hidden] { display: none; }
.resume a { color: var(--track-color); font-weight: 600; }
.resume button {
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--text-dim); font-size: .86rem; text-decoration: underline;
}

/* ------------------------------------------------------------
   Comparação lado a lado dos dois serviços
   ------------------------------------------------------------ */
.svc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.svc-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 20px; box-shadow: var(--e1); }
.svc-table th, .svc-table td {
  text-align: left; vertical-align: top;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--edge);
}
.svc-table thead th {
  font-family: var(--font-display); font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap; color: var(--text);
  background: color-mix(in srgb, var(--purple) 7%, transparent);
}
.svc-table thead th:nth-child(2) { background: color-mix(in srgb, var(--custody) 9%, transparent); }
.svc-table thead th:nth-child(3) { background: color-mix(in srgb, var(--purple) 11%, transparent); }
.svc-table tbody th {
  font-weight: 600; color: var(--text-dim); font-size: .84rem;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.svc-table tbody td { color: var(--text-muted); }
.svc-table tbody tr:last-child th, .svc-table tbody tr:last-child td { border-bottom: 0; }

/* As colunas repartem o espaço em vez de exigirem um mínimo fixo. O
   `min-width: 220px` por célula obrigava a tabela a pedir 712px dentro de
   um contentor de 614, e o resultado era scroll lateral num ecrã de 1440. */
.svc-table { table-layout: fixed; }
/* O `white-space: nowrap` do cabeçalho de linha vinha da regra base; com
   `table-layout: fixed` a coluna deixa de crescer para o acomodar e o texto
   passava por cima da célula seguinte («WHO OWNS THE PROYou. Always.»). */
.svc-table tbody th { width: 19%; white-space: normal; }
.svc-table thead th:nth-child(2), .svc-table thead th:nth-child(3) { width: 40.5%; }
.svc-table thead th { white-space: normal; }
.svc-table td, .svc-table th { overflow-wrap: break-word; }

/* Abaixo dos 760px a tabela deixa de ser tabela: cada critério passa a um
   bloco com as duas respostas identificadas. Assim não há scroll lateral
   nenhum — nem da página, nem dentro da caixa. */
@media (max-width: 760px) {
  .svc-wrap { overflow-x: visible; border: 0; border-radius: 0; box-shadow: none; }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: auto; }
  .svc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .svc-table tbody tr {
    border: 1px solid var(--edge); border-radius: 16px;
    background: var(--surface); box-shadow: var(--e1);
    padding: 1.15rem 1.25rem; margin-bottom: 1rem;
  }
  .svc-table tbody th {
    width: auto; padding: 0 0 .85rem;
    border-bottom: 1px solid var(--edge);
    font-size: .74rem; letter-spacing: .14em;
  }
  .svc-table tbody td {
    padding: .9rem 0 0; border-bottom: 0;
    font-size: .95rem;
  }
  .svc-table tbody td::before {
    content: attr(data-svc);
    display: flex; align-items: center; gap: .45rem;
    margin-bottom: .3rem;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--td-color);
  }
  .svc-table tbody td::after {
    content: ""; display: block; height: 0;
  }
  .svc-table tbody td[data-svc^="Application"] { --td-color: var(--custody); }
  .svc-table tbody td[data-svc^="Innovation"]  { --td-color: var(--purple); }
      .svc-table tbody tr:last-child td { border-bottom: 0; }
}

/* ------------------------------------------------------------
   Cartões com sotaque do percurso (usados dentro de cada serviço)
   ------------------------------------------------------------ */
.site .eyebrow { color: var(--track-color); }
.site .accent {
  background: linear-gradient(100deg, var(--track-color) 0%, var(--track-color-soft) 55%, var(--blue-strong) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site[data-track="custody"] .btn--primary { background: var(--track-grad); box-shadow: var(--e2), var(--track-halo), var(--lit); }
.site[data-track="custody"] .cta-block {
  background: linear-gradient(140deg, #24509E 0%, var(--custody) 45%, #2F5FCC 100%);
  box-shadow: var(--e4), var(--halo-blue);
}
.site[data-track="custody"] .cta-block .btn--primary { background: #fff; color: #24509E; }
.site[data-track="custody"] .panel {
  background: linear-gradient(155deg, #4A7BE4 0%, #2F5FCC 55%, #24509E 100%);
  box-shadow: var(--e4), var(--halo-blue);
}
.site[data-track="custody"] .rail__node { color: var(--track-color); }
.site[data-track="custody"] .rail__item.is-active .rail__node { background: var(--track-grad); color: #fff; }
.site[data-track="custody"] .rail::after { background: linear-gradient(180deg, #2F5FCC, #4A7BE4, #7FA3F2); }
.site[data-track="custody"] .rail__list li::before,
.site[data-track="custody"] .faq__q .plus { background: var(--track-color); }
.site[data-track="custody"] .faq__q .plus { background: color-mix(in srgb, var(--track-color) 14%, transparent); color: var(--track-color); }
.site[data-track="custody"] .card:hover { border-color: color-mix(in srgb, var(--track-color) 30%, var(--edge)); box-shadow: var(--e4), var(--halo-blue); }
.site[data-track="custody"] .card::before { background: radial-gradient(340px circle at var(--cx,50%) var(--cy,50%), color-mix(in srgb, var(--track-color) 16%, transparent), transparent 65%); }

/* ------------------------------------------------------------
   Rodapé em 4 colunas com bloco de marca
   ------------------------------------------------------------ */
.footer__top--v4 {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem; align-items: start;
}
@media (max-width: 1000px) { .footer__top--v4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer__top--v4 { grid-template-columns: 1fr; } }
.footer__brand { max-width: 34ch; }

/* ------------------------------------------------------------
   Ajustes finos
   ------------------------------------------------------------ */
.site .crumbs { padding-top: 1.25rem; }
.lede-lg { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 62ch; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  .path, .path__go svg { transition: none; }
}

/* Palavra curta dentro da elipse: com a largura normal (126%) a forma
   fecha-se num círculo. Alarga e achata para voltar a ler-se como o
   traço à mão do brandbook. */
.underline-draw--short svg { left: -32%; width: 164%; top: -20%; height: 140%; }
@media (max-width: 620px) { .underline-draw--short svg { left: -18%; width: 136%; } }

/* Palavra média (5–7 letras) no fim de uma linha. A geometria de origem
   é assimétrica (−13% à esquerda, largura 126%), o que encostava a curva
   à última letra; aqui a folga é igual dos dois lados. */
.underline-draw--mid svg { left: -15%; width: 130%; top: -26%; height: 152%; }
@media (max-width: 620px) { .underline-draw--mid svg { left: -10%; width: 120%; } }

/* ------------------------------------------------------------
   SWITCHER das páginas partilhadas (Portfolio e FAQ)

   Portfolio e FAQ pertencem aos dois serviços. Em vez de duplicar as
   páginas, filtram-se aqui dentro. O estado vive no URL (`?s=custody`)
   para que um link partilhado abra já filtrado, e sem JavaScript
   aparecem simplesmente as duas secções seguidas — filtrar é uma
   comodidade, não uma condição para ver o conteúdo.
   ------------------------------------------------------------ */
.switcher {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .3rem;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  padding: .3rem;
  width: fit-content;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--lit);
}
.switcher__btn {
  appearance: none; cursor: pointer;
  border: 0; background: none;
  padding: .6rem 1.2rem;
  border-radius: var(--r-pill);
  font-family: inherit; font-size: .92rem; font-weight: 600;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .25s ease, color .25s ease;
}
.switcher__btn::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sw-color, var(--text-dim)); opacity: .5;
  transition: opacity .25s ease, box-shadow .25s ease;
}
.switcher__btn[data-filter="all"]        { --sw-color: var(--text-dim); }
.switcher__btn[data-filter="custody"]    { --sw-color: var(--custody); }
.switcher__btn[data-filter="innovation"] { --sw-color: var(--purple); }


/* Em toque, 37px de altura ficava abaixo do mínimo de 44 recomendado. */
@media (max-width: 620px) {
  .switcher__btn { padding-block: .85rem; }
}

.switcher__btn:hover { color: var(--text); }
.switcher__btn[aria-pressed="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--sw-color) 16%, transparent);
  box-shadow: var(--e1);
}
.switcher__btn[aria-pressed="true"]::before {
  opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-color) 24%, transparent);
}

/* Cabeçalho de cada metade. Fica visível mesmo com filtro activo: é o que
   diz de que serviço é aquilo que se está a ver. */
.svc-group + .svc-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.svc-group[hidden] { display: none; }
.svc-group__head {
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: 1.75rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--edge);
}
.svc-group__head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0;
}
.svc-group__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grp-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--grp-color) 20%, transparent);
}
.svc-group__count { margin-left: auto; font-size: .85rem; color: var(--text-muted); }
.svc-group[data-service="custody"]    { --grp-color: var(--custody); }
.svc-group[data-service="innovation"] { --grp-color: var(--purple); }

/* Cartões de cliente em custódia. Não têm estado nem código de referência
   como os das tecnologias: o que se mostra é quem é e o que a CDI lhe corre. */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .client-grid { grid-template-columns: 1fr; } }
.client {
  display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem;
  border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--edge);
  box-shadow: var(--e1), var(--lit); backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.client:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--custody) 32%, var(--edge));
  box-shadow: var(--e3), var(--halo-blue);
}
.client__mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em;
  color: #fff; background: linear-gradient(140deg, #4A7BE4, #2F5FCC);
}
.client h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.client__what { font-size: .86rem; color: var(--text-dim); margin-bottom: .9rem; }
.client__runs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.client__runs li {
  font-size: .78rem; padding: .28rem .6rem; border-radius: var(--r-pill);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--custody) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--custody) 22%, var(--edge));
}

/* Sub-título dentro de um grupo de serviço na FAQ */
.faq__group {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .04em;
  color: var(--text-dim);
  margin: 2.25rem 0 1rem;
}
.faq__group:first-of-type { margin-top: 0; }

/* ------------------------------------------------------------
   PERCURSO EM FASES

   Substitui o que eram três secções em três páginas — o resumo em
   fases, o detalhe por fase e as «cinco disciplinas». Uma espinha
   numerada, com a substância pendurada em cada fase. Lista ordenada
   a sério, porque é isso que é.
   ------------------------------------------------------------ */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stage {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--edge);
}
.stage:last-child { border-bottom: 1px solid var(--edge); }
@media (max-width: 620px) { .stage { grid-template-columns: 1fr; gap: .8rem; } }

.stage__n {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  color: var(--track-color); opacity: .75;
  min-width: 2.4rem; padding-top: .15rem;
}
.stage__body h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: .55rem; }
.stage__body > p { color: var(--text-muted); margin: 0; max-width: 68ch; }

.stage__list {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: grid; gap: .7rem;
}
.stage__list li {
  position: relative; padding-left: 1.5rem;
  font-size: .95rem; color: var(--text-muted); max-width: 68ch;
}
.stage__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--track-color); opacity: .6;
}
.stage__list strong { color: var(--text); }

/* ============================================================
   TEMA CLARO — ritmo entre secções

   O tema claro era quase todo branco: página a #FBFAFC, bandas a 1,05:1
   dela e cartões brancos por cima de branco. Nada separava nada, e o
   conjunto lia-se como um só bloco — «deslavado», e cansativo de ler.

   A base mudou (ver `:root` em base.css): a página passou a ter tom e as
   superfícies ficaram brancas. Aqui monta-se o ritmo por cima disso, com
   três tons alternados e pelo menos 1,10:1 entre vizinhos:

       secção normal   →  página        #EDEAF4
       secção --grid   →  branco        #FFFFFF   (mais clara que a página)
       secção --mesh   →  banda funda   #E4DEF1   (mais escura)

   Só tema claro. O escuro fica exactamente como estava.
   ============================================================ */
[data-theme="light"] .site {
  --grid-line: rgba(32, 31, 28, .13);
}

/* Banda funda por baixo dos lavados de cor que já existiam. A máscara
   vertical do ::before continua a esbater as pontas, por isso a mudança
   de tom não deixa aresta. */
[data-theme="light"] .site .section--mesh::before {
  background:
    linear-gradient(0deg, var(--bg-deep), var(--bg-deep)),
    radial-gradient(75% 60% at 20% 0%, color-mix(in srgb, var(--purple-4) 60%, transparent), transparent 62%),
    radial-gradient(65% 55% at 85% 30%, color-mix(in srgb, var(--blue-soft) 52%, transparent), transparent 65%),
    radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--purple-3) 38%, transparent), transparent 70%);
  background-blend-mode: normal, multiply, multiply, multiply;
}

/* A secção da grelha vai ao contrário: mais clara que a página. Entra e
   sai em gradiente para não haver costura. */
[data-theme="light"] .site .section--grid {
  background: linear-gradient(180deg,
    var(--bg) 0%, #FFFFFF 7%, #FFFFFF 93%, var(--bg) 100%);
}
[data-theme="light"] .site .section--grid::after {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  opacity: 1;
}

/* O HERO precisa de ser o momento mais forte da página, e era o mais
   apagado: os orbes desapareciam sobre o branco. Ganha um fundo próprio,
   que desce até à cor da página para a passagem não ter aresta. */
[data-theme="light"] .site .hero::before {
  /* O `.hero` é um `.wrap`, portanto tem 1180px. Sem sangrar até às margens
     o fundo ficava uma faixa com arestas a meio do ecrã. */
  content: ""; position: absolute; z-index: -4;
  top: -1px; bottom: 0; left: calc(50% - 50vw); width: 100vw;
  background:
    radial-gradient(70% 55% at 18% 12%, #E3D4F7 0%, transparent 62%),
    radial-gradient(60% 50% at 84% 24%, #D7E1FB 0%, transparent 66%),
    linear-gradient(180deg, #E7E0F4 0%, var(--bg) 88%);
  /* Os dois lavados radiais ainda têm cor no limite de baixo da caixa, e
     sem isto ficavam cortados a direito — via-se uma linha horizontal a
     atravessar o ecrã onde o hero acaba. A máscara esbate a camada toda
     antes de lá chegar. */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 97%);
  pointer-events: none;
}
[data-theme="light"] .site .hero__orb { opacity: .55; }

/* Cartões e painéis: brancos sobre a página com tom, e com o fio de
   contorno já reforçado no token --edge. */
[data-theme="light"] .site .card,
[data-theme="light"] .site .stat,
[data-theme="light"] .site .client,
[data-theme="light"] .site .pf-card,
[data-theme="light"] .site .gate__col,
[data-theme="light"] .site .team__card,
[data-theme="light"] .site .note,
[data-theme="light"] .site .switcher,
[data-theme="light"] .site .svc-wrap,
[data-theme="light"] .site .faq__item,
[data-theme="light"] .site .form-card {
  background: #FFFFFF;
}

/* Dentro da secção branca, os cartões precisam do contorno para se verem. */
[data-theme="light"] .site .section--grid .card,
[data-theme="light"] .site .section--grid .stat,
[data-theme="light"] .site .section--grid .faq__item {
  border-color: rgba(32, 31, 28, .18);
}

/* ------------------------------------------------------------
   FAQ — largura

   A página estava toda dentro de `.wrap narrow` (760px, 616 úteis),
   contra os 1180 (1036 úteis) de todas as outras. Era 40% mais estreita,
   e o filtro de serviço — 571px de componente — ficava com 45px de folga
   quando no Portfolio, o mesmo componente, tem 465.

   O resto do site limita o TEXTO, não o contentor: as fases e os leads
   têm `max-width` no elemento e o contentor fica nos 1180. A FAQ fazia o
   contrário, e isso arrastava o filtro junto. Passa a seguir a mesma
   regra: contentor normal, medida de leitura garantida na resposta.
   ------------------------------------------------------------ */
.site .svc-group .faq { max-width: none; }

/* ~70 caracteres por linha, que é onde as respostas já estavam antes e
   dentro da zona confortável de leitura (45–75). Não são 70ch: a unidade
   `ch` mede o «0», mais largo que a média dos glifos desta fonte, e 70ch
   dava 81 caracteres reais. Medido, não estimado. */
.site .faq__a { max-width: 60ch; }

/* ------------------------------------------------------------
   Tabelas do texto legal em ecrã estreito

   São listas de rótulo e valor — «Legal name → …», «Rate → …» — mas
   `.prose table` tem `min-width: 640px`, o que num ecrã de 375 as punha a
   fazer scroll lateral dentro da caixa. Ler os termos de um contrato a
   arrastar a tabela para o lado não é aceitável; empilham.
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .site .table-wrap { overflow-x: visible; border: 0; border-radius: 0; box-shadow: none; }
  .site .prose table { min-width: 0; display: block; }
  .site .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site .prose tbody, .site .prose tr, .site .prose th, .site .prose td { display: block; width: auto; }
  .site .prose tbody tr {
    border: 1px solid var(--edge); border-radius: 14px;
    background: var(--surface); box-shadow: var(--e1);
    padding: .9rem 1.1rem; margin-bottom: .75rem;
  }
  .site .prose tbody th {
    padding: 0 0 .4rem; border-bottom: 1px solid var(--edge);
    font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
  }
  .site .prose tbody td { padding: .6rem 0 0; border-bottom: 0; }
  .site .prose tbody tr:last-child td { border-bottom: 0; }
}

/* ------------------------------------------------------------
   SELECTOR DE LÍNGUA

   Mesma mecânica dos submenus da navegação: abre com `:hover` e
   `:focus-within`, sem uma linha de JavaScript, e os filhos nunca
   estão em `display:none` para o teclado lhes chegar.

   Os nomes das línguas aparecem sempre no próprio idioma — quem
   procura a sua língua procura a palavra que conhece, não a
   tradução dela.
   ------------------------------------------------------------ */
.lang { position: relative; display: flex; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .6rem;
  background: none; border: 0; cursor: pointer;
  color: var(--text-muted); font: inherit;
  border-radius: var(--r-pill);
  transition: color .2s ease, background .2s ease;
}
.lang__btn svg { width: 18px; height: 18px; }
.lang__code { font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.lang:hover .lang__btn, .lang:focus-within .lang__btn {
  color: var(--text); background: color-mix(in srgb, var(--purple) 10%, transparent);
}

.lang__menu {
  position: absolute; top: calc(100% + .5rem); right: 0;
  z-index: 60; min-width: 11rem;
  list-style: none; margin: 0; padding: 0;
  display: grid; border-radius: 4px; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-top: 2px solid var(--purple);
  box-shadow: 0 12px 28px -18px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .16s ease, transform .2s cubic-bezier(.2,.7,.3,1);
}
.lang:hover .lang__menu, .lang:focus-within .lang__menu {
  opacity: 1; pointer-events: auto; transform: none;
}
/* faixa que cobre o intervalo até ao painel, para o ponteiro não o perder */
.lang::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; }

.lang__menu li + li { border-top: 1px solid var(--edge); }
.lang__menu a {
  position: relative; display: block;
  padding: .6rem .9rem;
  font-size: .9rem; white-space: nowrap;
  color: var(--text-muted); text-decoration: none;
  transition: color .18s ease, padding-left .18s cubic-bezier(.2,.7,.3,1);
}
.lang__menu a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--purple); transform: scaleY(0);
  transition: transform .18s cubic-bezier(.2,.7,.3,1);
}
.lang__menu a:hover { color: var(--text); padding-left: 1.1rem; }
.lang__menu a:hover::before { transform: scaleY(1); }
.lang__menu a[aria-current="true"] { color: var(--purple); font-weight: 600; }
.lang__menu a[aria-current="true"]::before { transform: scaleY(1); }

/* No painel do telemóvel é uma linha de opções, não um dropdown. */
.lang-mobile { margin-bottom: 1rem; }
.lang-mobile__label {
  margin: 0 0 .5rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
}
.lang-mobile__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.lang-mobile__list a {
  /* .55rem dava 43,9px de altura — um fio abaixo do alvo de toque de 44px. */
  padding: .6rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--edge); background: var(--surface);
  font-size: .92rem; color: var(--text-muted); text-decoration: none;
}
.lang-mobile__list a[aria-current="true"] {
  color: var(--purple); border-color: color-mix(in srgb, var(--purple) 40%, var(--edge));
  font-weight: 700;
}

/* Abaixo do ponto de corte a barra fica só com o tema e o hambúrguer:
   a língua vive no painel, com espaço para os nomes por extenso. */
@media (max-width: 1200px) { .lang { display: none; } }
