/* ============================================================
   PARABELLUM — PROFUNDIDADE · styles.css
   Paleta (nada além disto entra na peça):
     Abissal  #04070E   fundo da página/canvas
     Névoa    #0A1220   cor do fog e dos gradientes
     Ruído    #C9D4DA   glifos não organizados, 12–18% alpha
     Acento   #CBD3DC   prata da marca — dado organizado, HUD, pulsos, wordmark
     Tipo     #E8EEF0
   Estados no <html>:
     .gl    → cena WebGL ativa: seções transparentes, copy revelado
              via [data-visible], HUD e micro-rótulos visíveis.
     .no-gl → fallback estático (main.js aplica em falha/reduced-motion).
     nenhum → JS desligado: o fallback é o padrão. Por isso os estilos
              de fallback usam html:not(.gl) — .no-gl implica :not(.gl)
              (main.js remove .gl antes de adicionar .no-gl).
   ============================================================ */

/* ---------- reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* identidade Parabellum: serifa lapidar (Trajan-like), vendorada — sem CDN */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./vendor/fonts/cinzel-latin.woff2') format('woff2');
}

:root {
  --abissal: #04070E;
  --nevoa: #0A1220;
  --ruido: #C9D4DA;
  --acento: #CBD3DC;
  --prata: #C9CFD6;
  --tipo: #E8EEF0;
  --font-brand: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
  --font-display: -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --mono-size: clamp(0.625rem, 0.3vw + 0.55rem, 0.75rem);
  color-scheme: dark;
}

html {
  background: var(--abissal);
  scroll-behavior: auto; /* scroll nativo, nunca sequestrado */
}

body {
  background: var(--abissal);
  color: var(--tipo);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(203, 211, 220, 0.25); color: var(--tipo); }

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 1px solid rgba(203, 211, 220, 0.85);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- abertura (logo Parabellum sobre preto, some no primeiro gesto) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.1s ease 0.1s, visibility 0s linear 1.25s;
}
.intro__logo {
  width: min(66vw, 560px);
  height: auto;
  opacity: 0;
  transform: scale(0.965);
  animation: introLogo 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes introLogo {
  0% { opacity: 0; transform: scale(0.965); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .intro__logo { animation: none; opacity: 1; transform: none; }
}

/* ---------- canvas ---------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: var(--abissal);
}
html:not(.gl) #gl { display: none; }

/* ---------- nav fixa ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(16px, 3vh, 28px) clamp(16px, 4vw, 40px);
  pointer-events: none;
}
.nav a { pointer-events: auto; }
.nav__brand,
.nav__acesso {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 400;
  color: rgba(232, 238, 240, 0.4);
  transition: color 0.4s ease-out;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-brand);
  font-size: 13px;
  letter-spacing: 0.26em;
  color: rgba(232, 238, 240, 0.72);
}
.nav__ele {
  height: 26px;
  width: auto;
  mix-blend-mode: screen;
  opacity: 0.95;
}
.nav__brand:hover, .nav__brand:focus-visible,
.nav__acesso:hover, .nav__acesso:focus-visible {
  color: rgba(232, 238, 240, 0.8);
}

/* ---------- estrutura dos capítulos ---------- */
main { position: relative; z-index: 1; }

.chapter { position: relative; }

/* alturas ≈ janelas de u_progress (corpo total ≈ 700vh) */
.ch--superficie { min-height: 100vh; }
.ch--correnteza { min-height: 140vh; }
.ch--cardumes   { min-height: 150vh; }
.ch--formas     { min-height: 150vh; }
.ch--painel     { min-height: 110vh; }
.ch--marca      { min-height: 100vh; }

.chapter__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.chapter__copy {
  padding-left: clamp(24px, 8vw, 128px);
  padding-right: 24px;
  max-width: min(92vw, 680px);
}

/* ---------- tipografia ---------- */
.chapter__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: rgba(203, 211, 220, 0.55);
  margin-bottom: clamp(14px, 2.2vh, 24px);
}

.chapter__headline {
  font-family: var(--font-brand);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.2vw + 0.7rem, 4rem);
  letter-spacing: 0.055em;
  line-height: 1.14;
  color: var(--tipo);
  margin-bottom: clamp(16px, 2.6vh, 28px);
}

.chapter__sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 0.5vw + 0.85rem, 1.2rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 36ch;
  color: rgba(232, 238, 240, 0.92);
}

/* ---------- capítulo final · marca ---------- */
.ch--marca .chapter__sticky { justify-content: center; }
.chapter__copy--marca {
  padding: 0 24px;
  max-width: 92vw;
  text-align: center;
}

.wordmark {
  font-family: var(--font-brand);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 5.6rem);
  letter-spacing: 0.1em;
  line-height: 1.08;
  /* prata cromada da marca */
  background: linear-gradient(178deg, #f6f8fa 8%, #cdd3da 34%, #878f9b 52%, #e9edf1 72%, #98a1ac 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: clamp(18px, 3vh, 32px);
  margin-right: -0.1em;
}
.wordmark::after {
  content: ' ✦';
  font-size: 0.3em;
  vertical-align: 0.5em;
  letter-spacing: 0;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--prata);
  color: var(--prata);
}

/* elefante da marca (fundo preto some via screen-blend sobre o dark) */
.brand-ele {
  display: block;
  height: 54px;
  width: auto;
  mix-blend-mode: screen;
  opacity: 0.92;
  margin: 0 0 12px;
}

.chapter__sub--marca { margin: 0 auto clamp(40px, 7vh, 72px); }

.chapter__footer {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: rgba(232, 238, 240, 0.6);
}
.chapter__footer a { color: rgba(232, 238, 240, 0.6); transition: color 0.4s ease-out; }
.chapter__footer a:hover, .chapter__footer a:focus-visible { color: rgba(232, 238, 240, 0.9); }
.chapter__footer-sep { margin: 0 1.2em; color: rgba(232, 238, 240, 0.3); }
.chapter__footer-acesso { color: rgba(232, 238, 240, 0.4); }

/* ---------- revelação do copy (SÓ em modo GL) ----------
   main.js alterna [data-visible] via IntersectionObserver.
   Sem .gl (fallback / sem JS), o copy fica sempre visível. */
.gl [data-copy] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.gl [data-copy][data-visible] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HUD de profundidade (diegético, só em GL) ---------- */
.hud {
  display: none;
  position: fixed;
  left: clamp(16px, 4vw, 40px);
  bottom: clamp(14px, 3vh, 28px);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: rgba(203, 211, 220, 0.55);
  pointer-events: none;
  transition: opacity 1.4s ease-out;
}
.gl .hud { display: block; }
.hud.is-out { opacity: 0; }

/* ---------- micro-rótulos do CH 1 (criados por scene.js) ---------- */
.labels {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.gl .labels { display: block; }

.micro-label {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: rgba(232, 238, 240, 0.6);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s linear; /* blink de 200ms */
  will-change: transform, opacity;
}
.micro-label.is-on { opacity: 1; }

/* placa de estátua: nome (serifa da marca) + história */
.plaque {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  max-width: 250px;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.66), rgba(3, 6, 12, 0.78));
  border: 1px solid rgba(203, 211, 220, 0.16);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.plaque.is-on { opacity: 1; }
.plaque__name {
  font-family: var(--font-brand);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(222, 229, 237, 0.95);
  text-shadow: 0 0 14px rgba(203, 211, 220, 0.3);
}
.plaque__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(203, 211, 220, 0.5);
}
.plaque__story {
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(232, 238, 240, 0.68);
}
@media (max-width: 767px) {
  .plaque { max-width: 200px; padding: 8px 11px 10px; }
  .plaque__story { font-size: 10px; }
}

/* hotspot de estátua: ponto de prata + anel pulsante = "toque/passe o mouse".
   Único filho interativo de .labels (pointer-events reativado aqui). */
.hotspot {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
  /* toque não deve disparar seleção de texto / lupa / menu de contexto */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hotspot.is-on { opacity: 1; }
/* no touch o alvo cresce (dedo), mas o ponto/anel visuais continuam iguais */
@media (max-width: 767px) {
  .hotspot { width: 56px; height: 56px; }
}
.hotspot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: rgba(222, 229, 237, 0.95);
  box-shadow: 0 0 10px rgba(203, 211, 220, 0.8);
}
.hotspot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 1px solid rgba(203, 211, 220, 0.65);
  animation: hs-pulse 2.2s ease-out infinite;
}
.hotspot:hover::before { background: #fff; box-shadow: 0 0 16px rgba(222, 229, 237, 1); }
.hotspot:hover::after { animation-play-state: paused; opacity: 0.9; transform: scale(0.8); }
@keyframes hs-pulse {
  0% { transform: scale(0.45); opacity: 0.9; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* rótulo de Casa (dourado, acima do monumento) */
.micro-label--casa {
  color: rgba(203, 211, 220, 0.85);
  text-shadow: 0 0 14px rgba(203, 211, 220, 0.35);
  font-size: 11px;
}

/* ---------- vinheta (overlay, não é render pass) ---------- */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 90% at 50% 50%,
    transparent 58%,
    rgba(4, 7, 14, 0.55) 100%
  );
}

/* ============================================================
   FALLBACK ESTÁTICO — html:not(.gl)
   (sem WebGL2, prefers-reduced-motion, erro na cena, ou JS off)
   A descida pintada em gradientes; todo o copy legível; zero JS.
   ============================================================ */

/* textura de glifos: SVG inline (mono, ~6% de opacidade), tile 320px */
html:not(.gl) .ch--superficie::before,
html:not(.gl) .ch--correnteza::before,
html:not(.gl) .ch--cardumes::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='320'%20height='320'%3E%3Cg%20fill='%23C9D4DA'%20fill-opacity='0.06'%20font-family='Menlo,Consolas,monospace'%20font-size='11'%20letter-spacing='2'%3E%3Ctext%20x='14'%20y='30'%3E4412%3C/text%3E%3Ctext%20x='150'%20y='54'%3EA1:F44%3C/text%3E%3Ctext%20x='262'%20y='24'%3E%25%3C/text%3E%3Ctext%20x='58'%20y='98'%3ER$%3C/text%3E%3Ctext%20x='206'%20y='122'%3E7830%3C/text%3E%3Ctext%20x='24'%20y='168'%3ED+1%3C/text%3E%3Ctext%20x='128'%20y='192'%3E0,38%3C/text%3E%3Ctext%20x='268'%20y='214'%3E118%3C/text%3E%3Ctext%20x='84'%20y='252'%3Eboleto%3C/text%3E%3Ctext%20x='198'%20y='296'%3E03%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* CH 1 — superfície: névoa clara + feixe de luz vertical */
html:not(.gl) .ch--superficie {
  background:
    radial-gradient(38% 62% at 52% -10%, rgba(201, 212, 218, 0.10), rgba(201, 212, 218, 0.03) 55%, transparent 78%),
    linear-gradient(#0A1220, #070C16);
}
html:not(.gl) .ch--superficie::before { opacity: 1; }

/* CH 2 — correnteza: mais escuro, textura de glifos esmaecendo */
html:not(.gl) .ch--correnteza {
  background:
    radial-gradient(30% 40% at 52% -12%, rgba(201, 212, 218, 0.04), transparent 70%),
    linear-gradient(#070C16, #060A14);
}
html:not(.gl) .ch--correnteza::before { opacity: 0.55; }

/* CH 3 — cardumes: quase escuridão total, glifos quase sumindo */
html:not(.gl) .ch--cardumes {
  background: linear-gradient(#060A14, #05080F);
}
html:not(.gl) .ch--cardumes::before { opacity: 0.25; }

/* CH 4 — formas: quase preto + três fitas finas de ciano */
html:not(.gl) .ch--formas {
  background-image:
    linear-gradient(105deg, transparent 31.6%, rgba(203, 211, 220, 0.14) 31.85%, rgba(203, 211, 220, 0.03) 32.3%, transparent 32.7%),
    linear-gradient(78deg, transparent 54.6%, rgba(203, 211, 220, 0.10) 54.85%, rgba(203, 211, 220, 0.02) 55.35%, transparent 55.8%),
    linear-gradient(118deg, transparent 70.6%, rgba(203, 211, 220, 0.08) 70.85%, rgba(203, 211, 220, 0.02) 71.3%, transparent 71.7%),
    linear-gradient(#05080F, #04070E);
}

/* CH 5 — painel: retícula de pontos de ciano tênue,
   um pulso estático (região central levemente mais clara) */
html:not(.gl) .ch--painel {
  background-image:
    radial-gradient(ellipse 46% 40% at 50% 46%, rgba(203, 211, 220, 0.09), transparent 62%),
    radial-gradient(rgba(203, 211, 220, 0.22) 1px, transparent 1.6px),
    linear-gradient(#04070E, #04070E);
  background-size: 100% 100%, 28px 28px, 100% 100%;
}

/* CH 6 — marca: preto absoluto */
html:not(.gl) .ch--marca {
  background: linear-gradient(#04070E, #000 34%, #000);
}

/* acentos de glifos ciano (só no fallback; estáticos, sem animação) */
.fx-glyphs { display: none; }
html:not(.gl) .fx-glyphs {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fx-glyphs span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--acento);
}
/* CH 2 — primeiros sinais capturados (opacidade escalonada via nth-child) */
.ch--correnteza .fx-glyphs span:nth-child(1) { top: 22%; left: 16%; opacity: 0.30; }
.ch--correnteza .fx-glyphs span:nth-child(2) { top: 38%; left: 70%; opacity: 0.18; }
.ch--correnteza .fx-glyphs span:nth-child(3) { top: 58%; left: 42%; opacity: 0.24; }
.ch--correnteza .fx-glyphs span:nth-child(4) { top: 74%; left: 80%; opacity: 0.14; }
.ch--correnteza .fx-glyphs span:nth-child(5) { top: 86%; left: 12%; opacity: 0.20; }
/* CH 3 — os quatro cardumes, intensidades 0.4 / 0.6 / 0.8 / 1.0 do mesmo ciano */
.ch--cardumes .fx-glyphs span:nth-child(1) { top: 24%; left: 62%; opacity: 0.16; } /* 0.4 */
.ch--cardumes .fx-glyphs span:nth-child(2) { top: 44%; left: 14%; opacity: 0.24; } /* 0.6 */
.ch--cardumes .fx-glyphs span:nth-child(3) { top: 64%; left: 72%; opacity: 0.32; } /* 0.8 */
.ch--cardumes .fx-glyphs span:nth-child(4) { top: 82%; left: 34%; opacity: 0.40; } /* 1.0 */

/* ---------- responsivo até 360px ---------- */
@media (max-width: 767px) {
  .chapter__sticky { align-items: flex-end; }
  .chapter__copy {
    padding-left: clamp(16px, 6vw, 28px);
    padding-bottom: 16vh; /* bloco no terço inferior-esquerdo */
    max-width: 92vw;
  }
  .ch--marca .chapter__sticky { align-items: center; }
  .chapter__copy--marca { padding-bottom: 0; }
  .hud { font-size: 10px; left: 16px; bottom: 14px; }
  .nav { padding: 14px 16px; }
  html:not(.gl) .ch--painel { background-size: 100% 100%, 22px 22px, 100% 100%; }
  .fx-glyphs span { letter-spacing: 0.12em; }
}

/* ---------- prefers-reduced-motion: nenhum movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  /* se o usuário ativar reduced-motion com a cena já de pé,
     o copy nunca pode ficar preso em opacity:0 */
  .gl [data-copy] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   LANDING — SPIN · cards · formulário · contato (sobre a cena 3D)
   ============================================================ */

/* barra de NÍVEL segmentada (gamificada) no topo */
.levelbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; gap: 3px; padding: 7px clamp(16px, 4vw, 40px) 0;
  pointer-events: none;
}
.levelbar i {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(120, 170, 180, 0.13);
  transition: background .45s ease, box-shadow .45s ease;
}
.levelbar i.on { background: var(--acento); box-shadow: 0 0 8px rgba(203, 211, 220, 0.7); }
html:not(.gl) .levelbar { display: none; }

/* scrim do topo: nav sempre legível, conteúdo alto passa por baixo sem colidir */
.nav {
  background: linear-gradient(180deg, rgba(4, 7, 14, 0.82) 0%, rgba(4, 7, 14, 0.42) 55%, transparent 100%);
  padding-bottom: clamp(22px, 4vh, 36px);
}

/* etapa do diagnóstico no eyebrow (nada de jargão interno tipo "SPIN") */
.spin { color: var(--acento); }

/* scrim de leitura à esquerda (narrativa sobre a cena) */
.gl .chapter__sticky::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 100% at 0% 50%, rgba(4, 7, 14, 0.74) 0%, rgba(4, 7, 14, 0.34) 36%, transparent 62%);
}

/* cue do hero */
.cue {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-top: clamp(24px, 4vh, 40px);
  font-family: var(--font-mono); font-size: var(--mono-size);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(232, 238, 240, 0.72);
  border: 1px solid rgba(203, 211, 220, 0.35); border-radius: 999px;
  padding: 0.72em 1.35em; transition: color .35s, border-color .35s, background .35s;
}
.cue:hover, .cue:focus-visible { color: var(--tipo); border-color: rgba(203, 211, 220, 0.85); background: rgba(203, 211, 220, 0.06); }
.cue span { transition: transform .35s; }
.cue:hover span { transform: translateY(3px); }
.hero__title {
  font-size: clamp(1.9rem, 3.4vw + 0.7rem, 3.5rem);
  letter-spacing: 0.06em;
  margin-bottom: clamp(16px, 3vh, 28px);
}

/* ---------- perguntas gamificadas (chips de tocar) ---------- */
.chapter__headline--q {
  font-size: clamp(1.6rem, 3.6vw + 0.6rem, 3rem);
  letter-spacing: 0.06em; margin-bottom: clamp(12px, 2vh, 20px);
}
.quiz__q {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem); line-height: 1.4;
  color: var(--tipo); margin-bottom: clamp(12px, 1.8vh, 18px); max-width: 34ch;
}
.quiz__hint { color: rgba(232, 238, 240, 0.5); font-size: 0.86em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 48ch; }
.chip { cursor: pointer; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 0.62em 1.15em; border-radius: 999px;
  font-size: 0.98rem; color: rgba(232, 238, 240, 0.9);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(120, 170, 180, 0.28);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chip:hover span { border-color: rgba(203, 211, 220, 0.55); color: var(--tipo); transform: translateY(-1px); }
.chip input:focus-visible + span { outline: 2px solid rgba(203, 211, 220, 0.7); outline-offset: 2px; }
.chip input:checked + span {
  background: var(--acento); color: #04070E; border-color: var(--acento); font-weight: 500;
  box-shadow: 0 8px 22px -8px rgba(203, 211, 220, 0.75);
}
.field--wide { grid-column: 1 / -1; }

/* ---------- painéis de vidro (solução + formulário) ---------- */
.ch--painel, .ch--marca { display: flex; align-items: center; }
.chapter__panel {
  position: relative; width: min(92vw, 760px); margin: 0 auto;
  padding: clamp(24px, 3.6vw, 44px); border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.74), rgba(3, 6, 12, 0.86));
  border: 1px solid rgba(120, 170, 180, 0.14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}
.chapter__headline--sm {
  text-transform: none; font-weight: 300; letter-spacing: 0.005em;
  font-size: clamp(1.5rem, 2.4vw + 0.8rem, 2.4rem); line-height: 1.16;
  margin-bottom: clamp(8px, 1.4vh, 14px);
}
.chapter__panel .chapter__sub { max-width: 54ch; }

/* ---------- cards de produto ---------- */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.3vw, 15px); margin-top: clamp(18px, 3vh, 28px);
}
.card { cursor: pointer; display: block; }
.card input { position: absolute; opacity: 0; width: 0; height: 0; }
.card__box {
  display: block; height: 100%; position: relative;
  padding: clamp(15px, 1.6vw, 20px); border-radius: 14px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(120, 170, 180, 0.18);
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.card:hover .card__box { border-color: rgba(203, 211, 220, 0.42); transform: translateY(-2px); }
.card input:focus-visible + .card__box { outline: 2px solid rgba(203, 211, 220, 0.7); outline-offset: 2px; }
.card input:checked + .card__box {
  border-color: rgba(203, 211, 220, 0.85); background: rgba(203, 211, 220, 0.08);
  box-shadow: 0 0 0 1px rgba(203, 211, 220, 0.4), 0 14px 34px -14px rgba(203, 211, 220, 0.5);
}
.card__icon { display: block; width: 26px; height: 26px; margin-bottom: 12px; color: var(--acento); }
.card__icon path, .card__icon circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__title { display: block; font-size: 1.02rem; font-weight: 500; color: var(--tipo); margin-bottom: 5px; }
.card__desc { display: block; font-size: 0.86rem; line-height: 1.42; color: rgba(232, 238, 240, 0.62); }
.card__check {
  position: absolute; top: 14px; right: 14px; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid rgba(120, 170, 180, 0.4); transition: all .25s;
}
.card input:checked + .card__box .card__check {
  border-color: var(--acento); background: var(--acento); box-shadow: 0 0 10px rgba(203, 211, 220, 0.85);
}
.card input:checked + .card__box .card__check::after {
  content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 9px;
  border: solid #04070E; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- formulário ---------- */
.form__wordmark {
  font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: 0.18em; margin-right: -0.18em;
  margin-bottom: 4px; text-align: left;
}
.motto {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.3em; color: rgba(203, 211, 220, 0.55);
  margin: 0 0 clamp(14px, 2vh, 20px);
}
.chapter__panel--form .chapter__sub--marca { margin: 0 0 clamp(18px, 2.6vh, 28px); text-align: left; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 18px); margin: clamp(18px, 2.6vh, 26px) 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(232, 238, 240, 0.5); }
.field input, .field select {
  font-family: var(--font-display); font-size: 1rem; color: var(--tipo);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(120, 170, 180, 0.22);
  border-radius: 10px; padding: 0.75em 0.9em; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: rgba(232, 238, 240, 0.3); }
.field input:focus, .field select:focus {
  outline: none; border-color: rgba(203, 211, 220, 0.8);
  background: rgba(203, 211, 220, 0.05); box-shadow: 0 0 0 3px rgba(203, 211, 220, 0.14);
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23CBD3DC' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9em center; padding-right: 2.2em;
}
.field select option { background: #0A1220; color: var(--tipo); }

.submit {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; letter-spacing: 0.005em;
  color: #04070E; cursor: pointer; width: 100%;
  background: linear-gradient(180deg, #f4f7fa, #b6c0cb); border: none; border-radius: 12px; padding: 0.95em 1.6em;
  box-shadow: 0 16px 36px -14px rgba(203, 211, 220, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.submit:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 22px 46px -14px rgba(203, 211, 220, 0.85); }
.submit:active { transform: translateY(0); }
.submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.lead__contact { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(232, 238, 240, 0.45); }
.lead__contact a { color: rgba(203, 211, 220, 0.85); border-bottom: 1px solid rgba(203, 211, 220, 0.3); padding-bottom: 1px; }
.lead__contact a:hover { color: var(--acento); }
.lead__done { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(203, 211, 220, 0.08); border: 1px solid rgba(203, 211, 220, 0.35); color: var(--tipo); font-size: 0.95rem; line-height: 1.5; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .cards { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .chapter__panel { width: 92vw; padding: 22px 18px; border-radius: 16px; }
  .ch--painel, .ch--marca { align-items: flex-start; padding: 13vh 0; }
  .gl .chapter__sticky::before { background: linear-gradient(180deg, transparent 0%, rgba(4, 7, 14, 0.72) 58%); }
  .cue { padding: 0.8em 1.4em; }
}
