/* ============================================================================
   forms.overbuild.com.br — style.css  (MOBILE-FIRST)
   ----------------------------------------------------------------------------
   Tokens herdados do site principal (/overbuild/style.css): mesmo âmbar
   #F37E35, mesmo preto quente #0d0b09, mesmas três famílias. Só o que este
   projeto usa foi trazido — nada de arrastar 140kb de CSS de lá pra cá.

   Ordem do arquivo:
     1. fontes          5. painel esquerdo (canteiro)
     2. tokens          6. cabeçalho do fluxo (voltar + progresso + contador)
     3. reset/base      7. etapas: pergunta, campos, opções, erro
     4. layout split    8. sucesso · rodapé/selo · desktop · reduced-motion
   ========================================================================== */

/* ---------- 1. fontes self-hosted ---------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geistmono-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  /* o arquivo tem wght 500-600 apenas — declarar 100 900 faria o browser
     sintetizar bold falso. Ver a nota longa no style.css do site. */
  font-weight: 500 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. tokens ----------------------------------------------------- */
:root {
  --surface-base: #0d0b09;
  --surface-1: oklch(0.19 0.008 65);
  --surface-2: oklch(0.23 0.010 66);
  --surface-inset: oklch(0.12 0.006 62);

  --text-primary: oklch(0.94 0.012 78);
  --text-secondary: oklch(0.84 0.012 76);
  --text-muted: oklch(0.66 0.012 72);
  --text-faint: oklch(0.50 0.010 70);
  --text-on-accent: oklch(0.17 0.010 55);

  --accent: #F37E35;
  --accent-hot: oklch(0.790 0.125 49);
  --accent-flare: oklch(0.895 0.075 58);
  --accent-hover: oklch(0.755 0.160 49);
  --accent-line: oklch(0.560 0.116 49);
  --accent-dim: oklch(0.450 0.065 49);
  --accent-wash: oklch(0.350 0.058 49);
  --accent-glow: oklch(0.714 0.166 49 / 0.30);

  --border-subtle: oklch(0.26 0.008 66);
  --border-default: oklch(0.34 0.010 66);
  --focus-ring: oklch(0.790 0.165 49);
  --danger: oklch(0.68 0.155 25);
  --success: oklch(0.72 0.105 150);

  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-forge: 4px;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-spring: cubic-bezier(.22, 1, .36, 1);
  --ease-curtain: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: .2s;
  --dur-step: .5s;

  /* respiro de barra do sistema no iOS (viewport-fit=cover no <meta>) */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- 3. reset / base ---------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  /* 100svh: no mobile a barra do navegador não empurra o rodapé pra fora */
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-wash); color: var(--text-primary); }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

a { color: var(--text-secondary); text-decoration-color: var(--accent-dim); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* barra de rolagem da casa (webkit) — detalhe pequeno, custo zero */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-inset); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 99px; border: 3px solid var(--surface-inset); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* grão: SVG fractal em data-uri. Aquece o preto e mata o banding do glow. */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. layout split ---------------------------------------------- */
/* MOBILE: uma coluna. O canteiro vira faixa fina no topo; o fluxo pega o resto
   e é o único elemento que rola. */
.split {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
}
/* item de grid nasce com min-width:auto — ou seja, NÃO encolhe abaixo do
   conteúdo. Com o .step-host em max-width:34rem (544px) isso empurrava a
   coluna pra 544px dentro de uma tela de 390px e vazava tudo pra direita
   (pergunta cortada, contador fora da tela). Medido no Chrome a 390px. */
.split > * { min-width: 0; }

/* ---------- 5. painel esquerdo — o canteiro ------------------------------ */
.stage {
  position: relative;
  overflow: hidden;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem .9rem;
  display: flex; align-items: center; gap: .9rem;
}

/* grade holográfica: dois gradientes repetidos, nenhuma imagem */
.stage-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, oklch(0.560 0.116 49 / .07) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.560 0.116 49 / .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.stage-glow {
  position: absolute; left: -10%; bottom: -60%; width: 60%; aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  filter: blur(28px);
}

.stage-top { position: relative; }
/* MOBILE: a faixa do topo é SÓ a logo.
   O "ESCOPO 05" que morava aqui saiu: o trilho logo abaixo já diz a mesma
   coisa (01/10) com mais precisão, e a repetição sujava a única faixa de
   marca da tela. No desktop o .stage-body volta (é o numeral gigante do
   canteiro) — ver a media query de 900px. */
.stage-body { display: none; }
.stage-foot { display: none; }

.stage-phase {
  font-family: var(--font-mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
/* o numeral: no mobile é discreto; no desktop vira o objeto da tela */
.stage-num {
  font-family: var(--font-mono); font-size: .875rem; font-weight: 300;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.stage-line { display: none; }

/* a marca no canteiro (mesma logo do selo, só maior) */
.brand { display: inline-flex; align-items: flex-end; gap: .3rem; }
.brand svg { height: 1.05rem; width: auto; display: block; }
.brand .ob-seal__w { fill: var(--text-primary); }
.brand .ob-seal__b, .brand .ob-seal__dot { fill: var(--accent); }
.brand .ob-seal__dot { animation: ob-blink 1.5s ease-in-out infinite; }

@keyframes ob-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .16; }
}

/* ---------- 6. cabeçalho do fluxo ---------------------------------------- */
.flow {
  display: flex; flex-direction: column;
  min-height: 0;                       /* deixa o corpo encolher e rolar */
  padding: 0 1.25rem calc(1.25rem + var(--safe-b));
}

.flow-head {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 0 .25rem;
}

.back {
  flex: none;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-forge);
  background: transparent; color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur-micro), border-color var(--dur-micro), background var(--dur-micro);
}
.back:hover:not(:disabled) { color: var(--accent); border-color: var(--accent-dim); background: oklch(0.350 0.058 49 / .18); }
.back:disabled { opacity: .3; cursor: not-allowed; }

/* o fio de solda: trilho frio, preenchimento quente, ponta que estoura */
.rail {
  flex: 1 1 auto; height: 2px; position: relative;
  background: var(--border-subtle); border-radius: 99px; overflow: visible;
}
.rail-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 99px;
  transition: width .55s var(--ease-curtain);
  position: relative;
}
.rail-fill::after {           /* a ponta acesa */
  content: ""; position: absolute; right: -1px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--accent-flare);
  box-shadow: 0 0 10px 2px var(--accent-glow);
  opacity: 0; transition: opacity var(--dur-micro);
}
.rail-fill[style*="width"]::after { opacity: 1; }
.rail-fill[data-empty="1"]::after { opacity: 0; }

.counter {
  flex: none;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 400;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.counter b { color: var(--text-secondary); font-weight: 500; }

/* ---------- 7. corpo: uma etapa por vez ---------------------------------- */
.flow-body {
  flex: 1 1 auto; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 0;
}

.step-host { width: 100%; max-width: 100%; }

/* entrada da etapa: sobe + revela. A saída (classe .is-leaving) desliza no
   sentido da navegação — pra frente sai pra esquerda, pra trás sai pra direita.
   É a coreografia que dá direção ao fluxo. */
.step { animation: step-in var(--dur-step) var(--ease-curtain) both; }
.step.is-leaving { animation: step-out .22s ease-in both; }
.step.is-back { animation: step-in-back var(--dur-step) var(--ease-curtain) both; }
.step.is-leaving.is-back { animation: step-out-back .22s ease-in both; }

@keyframes step-in      { from { opacity: 0; transform: translate3d(14px, 8px, 0); } }
@keyframes step-in-back { from { opacity: 0; transform: translate3d(-14px, 8px, 0); } }
@keyframes step-out     { to   { opacity: 0; transform: translate3d(-18px, 0, 0); } }
@keyframes step-out-back{ to   { opacity: 0; transform: translate3d(18px, 0, 0); } }

.eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
  /* escalonamento: a sobrancelha chega antes da pergunta */
  animation: fade-up .5s var(--ease-curtain) .05s both;
}

.question {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 6.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
  animation: fade-up .5s var(--ease-curtain) .1s both;
}
.question em { font-style: normal; color: var(--accent); }
.question, .eyebrow { overflow-wrap: anywhere; }

.hint {
  margin-top: .6rem;
  font-size: .875rem; color: var(--text-muted); max-width: 46ch;
  animation: fade-up .5s var(--ease-curtain) .16s both;
}

.field { margin-top: 1.75rem; animation: fade-up .5s var(--ease-curtain) .2s both; }

@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

/* --- campos de texto: documento editorial, não formulário de SaaS.
       Só filete embaixo; o filete acende no foco. --- */
.input, .textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--text-primary);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--border-default);
  border-radius: 0;                 /* iOS arredonda input por padrão */
  padding: .7rem .1rem;
  transition: border-color var(--dur-micro), box-shadow var(--dur-micro);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent), 0 6px 22px -14px var(--accent-glow);
}
/* o autofill do Chrome pinta o campo de azul-claro e derruba o dark inteiro.
   Sem `background-color` funcional em :-webkit-autofill — a saída é a sombra
   interna gigante, que o Chrome respeita. */
.input:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-base) inset;
  transition: background-color 9999s;
}

/* --- opções: cartões macios com respiro ----------------------------------
   Eram fileiras de registro coladas (1px de gap, cantos vivos, marca
   quadrada) — leitura dura, "muito quadrada". Agora cada opção é um cartão
   próprio, com raio do sistema (--radius-lg) e ar entre eles.
   A marca virou REDONDA: o grupo é um radiogroup (escolha única), então o
   círculo é o desenho semanticamente certo — e é o que tira o peso. */
.options { display: flex; flex-direction: column; gap: .5rem; }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.opt-face {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-base);
  font-size: .9375rem; color: var(--text-secondary);
  transition:
    color var(--dur-micro),
    background var(--dur-micro),
    border-color var(--dur-micro),
    box-shadow var(--dur-micro),
    transform var(--dur-micro) var(--ease-spring);
}

/* brilho âmbar que nasce na borda esquerda — o "calor" entrando no cartão.
   Fica atrás do conteúdo (z-index) e não intercepta o clique. */
.opt-face::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, oklch(0.350 0.058 49 / .28) 0%, transparent 42%);
  opacity: 0; transition: opacity var(--dur-micro);
}
/* o texto vai embrulhado num span de propósito: assim ele sobe pro z-index 1
   junto com a marca e nunca fica por baixo do brilho do ::before. */
.opt-face > * { position: relative; z-index: 1; }
.opt-text { flex: 1; }

/* a marca: anel frio que acende em âmbar e ganha o miolo quando marcado */
.opt-box {
  flex: none; width: 17px; height: 17px;
  border: 1.5px solid var(--border-default); border-radius: 50%;
  position: relative;
  transition: border-color var(--dur-micro), box-shadow var(--dur-micro);
}
.opt-box::after {
  content: ""; position: absolute; inset: 3.5px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(.3);
  transition: opacity var(--dur-micro), transform var(--dur-micro) var(--ease-spring);
}

.opt:hover .opt-face {
  color: var(--text-primary);
  background: var(--surface-1);
  border-color: var(--accent-dim);
  transform: translateX(4px);
}
.opt:hover .opt-face::before { opacity: .55; }
.opt:hover .opt-box { border-color: var(--accent-dim); }

.opt input:checked + .opt-face {
  color: var(--text-primary);
  border-color: var(--accent);
  background: oklch(0.350 0.058 49 / .14);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 6px 22px -14px var(--accent-glow);
  transform: translateX(4px);
}
.opt input:checked + .opt-face::before { opacity: 1; }
.opt input:checked + .opt-face .opt-box { border-color: var(--accent); box-shadow: 0 0 12px -2px var(--accent-glow); }
.opt input:checked + .opt-face .opt-box::after { opacity: 1; transform: scale(1); }
.opt input:focus-visible + .opt-face { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* escape textual (ex.: "ainda não tenho empresa") — link, não botão */
.escape {
  display: inline-block; margin-top: 1rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: .8125rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
}
.escape:hover { color: var(--accent); border-bottom-color: var(--accent-dim); }

/* --- erro --- */
.error {
  display: block; margin-top: .6rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .02em;
  color: var(--danger);
  animation: shake .3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* --- botão avançar: Forge Line (canto reto, solda que acende) --- */
.actions { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  animation: fade-up .5s var(--ease-curtain) .26s both; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-on-accent);
  background: var(--accent);
  border: 0; border-radius: var(--radius-forge);
  padding: .95rem 1.6rem;
  cursor: pointer;
  transition: background var(--dur-micro), box-shadow var(--dur-micro), transform var(--dur-micro);
  min-height: 48px;                      /* alvo de toque confortável */
}
.btn:hover { background: var(--accent-hover); box-shadow: 0 8px 26px -12px var(--accent-glow); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }

/* trava do aceite: enquanto o check não é marcado o botão não é só "apagado"
   — ele perde o âmbar por inteiro e vira contorno. Fica óbvio que falta algo,
   sem parecer que a página quebrou. */
.btn--locked, .btn--locked:hover {
  background: transparent;
  color: var(--text-faint);
  box-shadow: inset 0 0 0 1px var(--border-default);
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}
.btn--locked .arrow { opacity: .5; transform: none; }
.btn .arrow { transition: transform var(--dur-micro) var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }

.enter-hint {
  font-family: var(--font-mono); font-size: .6875rem; color: var(--text-faint);
}
.enter-hint kbd {
  font: inherit; border: 1px solid var(--border-subtle); border-radius: 3px;
  padding: .05rem .3rem; color: var(--text-muted);
}


/* atalhos de teclado só existem onde há teclado: num touch de 390px a coluna
   de letras A/B/C e o "ou aperte Enter" são ruído puro. Escondidos por
   ponteiro grosso (dedo) — não por largura, que erra em tablet com teclado. */
@media (pointer: coarse) {
  .enter-hint { display: none; }
}

/* ---------- 8a. tela de sucesso ------------------------------------------ */
.done { max-width: 34rem; }
.done .question { margin-bottom: 1rem; }
.done-body { color: var(--text-secondary); font-size: .9375rem; max-width: 48ch;
  animation: fade-up .5s var(--ease-curtain) .18s both; }
.done-body + .done-body { margin-top: .75rem; }

/* o carimbo: quadrado de solda que se acende ao entrar */
.stamp {
  width: 42px; height: 42px; margin-bottom: 1.5rem;
  border: 1px solid var(--accent); border-radius: var(--radius-forge);
  display: grid; place-items: center; color: var(--accent);
  box-shadow: 0 0 24px -8px var(--accent-glow);
  animation: stamp-in .6s var(--ease-spring) both;
}
@keyframes stamp-in { from { opacity: 0; transform: scale(.5) rotate(-12deg); } }

.done-actions { margin-top: 2rem; animation: fade-up .5s var(--ease-curtain) .3s both; }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent-dim); box-shadow: none; }

/* ---------- 8b. rodapé + selo -------------------------------------------- */
.flow-foot { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding-top: .5rem; }

/* O consentimento passivo ("ao continuar você concorda…") saiu do rodapé:
   virou ACEITE ATIVO acima do botão da primeira etapa — ver .gate abaixo. */

/* ---------- 8c. aceite (gate da etapa 1) ---------------------------------
   Checkbox real (não div com role): teclado, leitor de tela e o :checked do
   CSS vêm de graça. O input fica invisível mas focável; o desenho é o .gate-box. */
.gate {
  display: flex; align-items: flex-start; gap: .7rem;
  margin-top: 1.75rem; cursor: pointer;
  font-size: .8125rem; line-height: 1.55; color: var(--text-muted);
  max-width: 52ch;
  animation: fade-up .5s var(--ease-curtain) .22s both;
}
.gate input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.gate-box {
  flex: none; width: 18px; height: 18px; margin-top: .1rem;
  border: 1.5px solid var(--border-default); border-radius: 6px;
  position: relative; background: var(--surface-base);
  transition: border-color var(--dur-micro), background var(--dur-micro), box-shadow var(--dur-micro);
}
/* o tique: desenhado em CSS (duas bordas giradas), sem SVG e sem fonte de ícone */
.gate-box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 5px; height: 9px;
  border: solid var(--text-on-accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.4); opacity: 0;
  transition: opacity var(--dur-micro), transform var(--dur-micro) var(--ease-spring);
}
.gate:hover .gate-box { border-color: var(--accent-dim); }
.gate input:checked + .gate-box {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 14px -3px var(--accent-glow);
}
.gate input:checked + .gate-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.gate input:focus-visible + .gate-box { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.gate a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-default); }
.gate a:hover { color: var(--accent); text-decoration-color: var(--accent-dim); }

/* quando o aceite falta, a mensagem de erro aponta pro check */
.gate.is-missing .gate-box { border-color: var(--danger); }

.noscript { border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 1.25rem; color: var(--text-secondary); }

/* selo — mesmo componente de /overbuild/assinatura.html */
.ob-seal {
  --ob-h: 13px; --ob-accent: #F37E35; --ob-ink: #F7F0DF; --ob-text: #6b635c;
  --ob-glow: none;
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-sans); font-size: var(--ob-h); line-height: 1;
  color: var(--ob-text); text-decoration: none;
  transition: color .25s ease;
}
.ob-seal__logo { height: calc(var(--ob-h) * 1.05); width: auto; filter: var(--ob-glow); transition: filter .25s ease; }
.ob-seal__w { fill: var(--ob-ink); }
.ob-seal__b, .ob-seal__dot { fill: var(--ob-accent); }
.ob-seal__dot { animation: ob-blink 1.5s ease-in-out infinite; }
.ob-seal:hover { --ob-text: var(--ob-accent); --ob-glow: drop-shadow(0 0 calc(var(--ob-h) * .6) rgba(243,126,53,.5)); }

/* ---------- 8c. desktop: o split de verdade ------------------------------ */
@media (min-width: 900px) {
  .split {
    grid-template-rows: none;
    grid-template-columns: 40fr 60fr;
    height: 100svh;
  }

  /* o canteiro vira painel inteiro: numeral gigante como objeto da tela */
  .stage {
    flex-direction: column; align-items: flex-start; justify-content: space-between;
    padding: 2.5rem;
    border-bottom: 0; border-right: 1px solid var(--border-subtle);
  }
  .stage-grid { background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 0%, transparent 92%); }
  .stage-glow { left: -25%; bottom: -35%; width: 95%; filter: blur(46px); }

  /* volta a existir no desktop, onde é o objeto da tela (e não repete o trilho) */
  .stage-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-left: 0; }
  .stage-phase { font-size: .6875rem; margin-bottom: .5rem; }

  .stage-num {
    font-size: clamp(6rem, 13vw, 11rem);
    font-weight: 200;
    line-height: .85;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    /* o numeral trocando é a segunda técnica de movimento da página */
    animation: num-in .5s var(--ease-curtain) both;
  }
  .stage-line {
    display: block; margin-top: 1.25rem;
    font-size: .875rem; line-height: 1.6; color: var(--text-muted);
    max-width: 32ch;
    animation: fade-up .5s var(--ease-curtain) .1s both;
  }
  @keyframes num-in { from { opacity: 0; transform: translate3d(0, 22px, 0); } }

  .stage-foot { display: block; position: relative; }
  .stage-meta {
    font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-faint);
  }
  .brand svg { height: 1.25rem; }

  .flow { padding: 0 3.5rem 2.5rem; overflow-y: auto; }
  .flow-head { padding: 2.5rem 0 .5rem; }
  .flow-body { padding: 3rem 0; }
  .step-host { max-width: 36rem; }
  .question { font-size: clamp(2rem, 2.9vw, 2.6rem); }
  /* com o consentimento fora do rodapé, sobrou só o selo: mantido à direita,
     onde ele já estava, em vez de escorregar pra esquerda sozinho. */
  .flow-foot { flex-direction: row; align-items: center; justify-content: flex-end; gap: 2rem; }
  .consent { max-width: 56ch; }
}

@media (min-width: 1400px) {
  .flow { padding-inline: 5rem; }
  .stage { padding: 3.5rem; }
}

/* ---------- 8d. quem pediu menos movimento ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ob-seal__dot, .brand .ob-seal__dot { animation: none; opacity: 1; }
}
