/* Prova Real · design system (Cisne-negro layout · Onca-pintada build) · ONDA-PROVA-REAL-LANDING-ELITE-2026-06-28
   Tokens + componentes compartilhados (landing agora · lab adota depois). Zero dependencia externa. */

:root {
  /* paleta (reuso do canon existente · Pavao) */
  --bg: #0b0e13; --bg2: #0e1219; --panel: #121822; --panel2: #161e29; --line: #212c3b;
  --text: #e8eef5; --muted: #8d99aa; --soft: #aeb9c8;
  --good: #3fb950; --bad: #f0625a; --gold: #e0b341; --blue: #4c93fd;
  --line-strong: #5c6c88; /* borda de controle · 3.35:1 sobre --panel · 3.64:1 sobre --bg (WCAG 1.4.11 · verificado) */

  /* escala de spacing 4/8pt (sem valor magico · Cisne Art.2) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius: 16px; --radius-sm: 12px; --radius-xs: 10px; --radius-pill: 999px;
  --maxw: 1040px;

  --glow: rgba(224, 179, 65, .13);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px rgba(0,0,0,.24);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.3), 0 4px 18px rgba(0,0,0,.18);
  --ring: 0 0 0 3px rgba(224,179,65,.45);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Inter", sans-serif;
  --speed: .3s; --ease: ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--glow), transparent 55%),
    radial-gradient(900px 600px at -10% 12%, rgba(76,147,253,.05), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== acessibilidade ===== */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #1a1205; font-weight: 700;
  padding: var(--s2) var(--s4); border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.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;
}

/* ===== layout ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
section { padding: var(--s9) 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.accent { color: var(--gold); } .c-good { color: var(--good); } .c-bad { color: var(--bad); }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; margin: var(--s4) 0 var(--s5); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; margin: 0 0 var(--s3); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 700; margin: var(--s2) 0; }
p.lead { font-size: 1.18rem; color: var(--soft); max-width: 64ch; }

/* ===== header sticky (glass + fallback) ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 19, .82);
  transition: box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(11, 14, 19, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }
.nav { display: flex; align-items: center; gap: var(--s4); height: 60px; }
.brandrow { display: flex; align-items: center; gap: var(--s3); font-weight: 700; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); flex: none; }
.prov { color: var(--muted); font-size: .78rem; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; }
.nav-links { display: flex; gap: var(--s5); margin-left: auto; align-items: center; }
.nav-links a { color: var(--soft); text-decoration: none; font-size: .92rem; font-weight: 600; transition: color var(--speed) var(--ease); }
.nav-links a:hover { color: var(--text); }

/* ===== botoes ===== */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 700; padding: 13px 24px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 0; font-size: 1rem; font-family: inherit;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.btn-primary { background: linear-gradient(180deg, #ecc154, #d9a92f); color: #1a1205; box-shadow: 0 6px 20px rgba(224,179,65,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(224,179,65,.34); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }

/* ===== hero ===== */
.hero { padding: var(--s9) 0 var(--s8); background: radial-gradient(900px 400px at 70% -10%, rgba(212,167,44,.10), transparent 60%); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* ===== cards / grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s4); }
.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(224,179,65,.34); box-shadow: var(--shadow); }
.card .icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: var(--s2); }
.card .n { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
/* ordinal de passo (01/02/03): NAO e prestigio · dourado fica so no numero-prova (Pavao · parcimonia) */
.card .step { color: var(--muted); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.card p { color: var(--soft); font-size: .96rem; }

/* ===== prova: contraste in-sample vs out-of-sample ===== */
.contrast { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s4); align-items: stretch; margin-top: var(--s5); }
.face { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-soft); }
.face .tag { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.face .big { font-size: 2.6rem; font-weight: 800; margin: var(--s2) 0 var(--s1); font-variant-numeric: tabular-nums; }
.face .sub { color: var(--muted); font-size: .95rem; }
.arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.arrow svg { width: 26px; height: 26px; }
.verdict { margin-top: var(--s4); background: linear-gradient(180deg, rgba(248,81,73,.08), transparent); border: 1px solid rgba(248,81,73,.35); border-radius: var(--radius-sm); padding: var(--s5) var(--s5); }
.verdict .v { font-size: 1.5rem; font-weight: 800; color: var(--bad); }

/* ===== tabela ===== */
table { width: 100%; border-collapse: collapse; margin-top: var(--s4); font-size: .98rem; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
caption { caption-side: bottom; color: var(--muted); font-size: .84rem; padding-top: var(--s3); text-align: left; }
tbody th[scope="row"] { color: var(--text); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .98rem; }

/* ===== badge SURF / EVITA (compartilhado · lab usa depois) ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid transparent; }
.badge-surf { color: var(--good); background: rgba(63,185,80,.12); border-color: rgba(63,185,80,.4); }
.badge-evita { color: var(--bad); background: rgba(240,98,90,.10); border-color: rgba(240,98,90,.4); }

/* ===== tooltip (?) compartilhado ===== */
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; cursor: help; vertical-align: middle; }
.tip:hover, .tip:focus-visible { color: var(--gold); border-color: var(--gold); }
.tip > span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 10px 12px; color: var(--soft); font-size: .82rem; font-weight: 400; line-height: 1.5; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity var(--speed) var(--ease); z-index: 20; text-align: left; }
.tip:hover > span, .tip:focus-visible > span { opacity: 1; visibility: visible; }

/* ===== listas nunca/sempre ===== */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s2); }
.checklist { list-style: none; }
.checklist li { color: var(--soft); padding-left: 26px; position: relative; margin-bottom: var(--s2); }
.checklist.no li::before { content: "\2715"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }
.checklist.yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

/* ===== FAQ (details nativo · acessivel sem JS) ===== */
.faq { margin-top: var(--s5); display: grid; gap: var(--s3); }
.faq details { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--s5); transition: border-color var(--speed) var(--ease); }
.faq details[open] { border-color: rgba(224,179,65,.3); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; padding: var(--s4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400; transition: transform var(--speed) var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--soft); font-size: .98rem; padding: 0 0 var(--s4); max-width: 70ch; }

/* ===== formulario ===== */
.form { max-width: 540px; margin-top: var(--s5); }
.form label.field { display: block; color: var(--soft); font-weight: 600; font-size: .85rem; margin-bottom: 7px; }
.form input[type=email], .form input[type=text] {
  width: 100%; background: var(--panel); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: var(--radius-xs); padding: 12px 14px; font-size: 1rem; font-family: inherit;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.form input:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.form input[aria-invalid="true"] { border-color: var(--bad); }
.form fieldset { border: 0; padding: 0; margin: var(--s5) 0; }
.form legend { color: var(--soft); font-weight: 600; font-size: .85rem; margin-bottom: var(--s3); }
.form .opt { display: flex; align-items: center; gap: var(--s2); color: var(--soft); cursor: pointer; min-height: 44px; padding: 6px 4px; border-radius: 8px; }
.form .opt input { accent-color: var(--gold); }
.form .consent { display: flex; gap: var(--s3); color: var(--muted); font-size: .9rem; margin-bottom: var(--s4); cursor: pointer; min-height: 44px; padding: 6px 4px; border-radius: 8px; align-items: flex-start; }
.form .consent input { accent-color: var(--good); margin-top: 3px; flex: none; }
/* foco visivel no controle inteiro (radio/checkbox sao minusculos · WCAG foco perceptivel) */
.form .opt:focus-within, .form .consent:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-msg { margin-top: var(--s3); font-size: .95rem; min-height: 1.4em; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--good); text-shadow: 0 0 18px rgba(63,185,80,.45); }

/* ===== footer ===== */
footer { padding: var(--s7) 0 var(--s8); color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); }
.disclaimer { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s5) var(--s5); color: var(--muted); font-size: .9rem; margin-top: var(--s4); }
.foot-links { display: flex; gap: var(--s5); margin: var(--s4) 0; flex-wrap: wrap; }
.foot-links a { color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }

a { color: var(--gold); }

/* ===== perf: secoes longas fora da viewport ===== */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ===== scroll-reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
:target { scroll-margin-top: 80px; }

/* ===== responsivo ===== */
@media (max-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .nav-links { gap: var(--s4); }
  .nav-links .nav-extra { display: none; }
  .grid-3, .grid-2, .cols { grid-template-columns: 1fr; }
  .contrast { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); }
  section { padding: var(--s8) 0; }
}

/* ===== respeita prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   POTENCIALIZACAO 2026-06-29 (ADITIVO · ONDA-LAB-LANDING-POTENCIALIZACAO)
   Componentes novos compartilhados (Onca build · Tucano a11y · Cisne layout · Aranha SVG).
   Nao substitui nada acima. Prioridade founder: Acessibilidade > Performance > Usabilidade > Estetica.
   ============================================================================ */
:root { --glass-bg: rgba(18,24,34,.55); --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace; }

/* glassmorphism (B2) · fallback solido onde nao ha backdrop-filter */
.glass { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@supports (backdrop-filter: blur(12px)) {
  .glass { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255,255,255,.07); }
}

/* numeros estilo terminal financeiro (B2) · monoespacado tabular */
.mono, .num-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* selo oficial "NAO PROVADO" (B2) */
.seal { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--bad); border: 2px solid rgba(240,98,90,.55); border-radius: var(--radius-sm); padding: 8px 16px; transform: rotate(-3deg); background: rgba(240,98,90,.06); }
.seal::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 12px var(--bad); flex: none; }

/* badges de veredito de hipotese (A4) · WCAG >=4.5:1 (a11y > 'suave') · estende .badge */
.badge-hipotese { color: #1a1205; background: var(--gold); border-color: var(--gold); }
.badge-reprovado { color: #fff; background: #a52219; border-color: #a52219; }
.badge-aprovado { color: #fff; background: #1a7f37; border-color: #1a7f37; }

/* icones de sinal (A4) · forma + cor, nunca so cor (WCAG 1.4.1) */
.sig { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .85rem; }
.sig-up { color: var(--good); } .sig-down { color: var(--bad); } .sig-wait { color: var(--muted); }

/* mini-grafico de payoff inline (A2) · area verde=lucro · vermelha=prejuizo */
.payoff { display: block; width: 100%; height: 52px; overflow: visible; }
.payoff .pl-profit { fill: rgba(63,185,80,.16); stroke: var(--good); stroke-width: 1.6; }
.payoff .pl-loss { fill: rgba(240,98,90,.13); stroke: var(--bad); stroke-width: 1.6; }
.payoff .pl-zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }

/* spinner de carregamento (A1) · honra reduced-motion pelo global acima */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* card interativo do arsenal (A2) · hover preserva o realce da borda esquerda (box-shadow, nao border-color) */
.strat-card { transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.strat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* B1 · entrada suave e escalonada do hero (honra reduced-motion pelo global acima) */
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .wrap > * { animation: heroIn .7s var(--ease) both; }
.hero .wrap > *:nth-child(2) { animation-delay: .08s; }
.hero .wrap > *:nth-child(3) { animation-delay: .16s; }
.hero .wrap > *:nth-child(4) { animation-delay: .24s; }

/* B2 · numeros da prova em fonte de terminal financeiro (mono) */
#prova td.num, #prova .face .big { font-family: var(--mono); }

/* ============================================================================
   CRO · FUNIL (ADITIVO · ONDA-PROVA-REAL-CRO-FUNIL-2026-06-30 · Tucano-toco a11y)
   Selos honestos + sub-CTA + micro-copia + sticky mobile. WCAG AA: contraste do
   dourado (texto #1a1205 sobre gradiente = >7:1) · foco visivel · alvo >=44px ·
   cor nunca o unico sinal · respeita prefers-reduced-motion (global acima).
   ============================================================================ */
.selos { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); list-style: none; padding: 0; margin: var(--s4) 0 0; }
.selos li { color: var(--soft); font-size: .82rem; font-weight: 600; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 7px; }
.selos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-sub-cta { margin: var(--s3) 0 0; font-size: .92rem; }
.hero-sub-cta a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
.hero-sub-cta a:hover { color: var(--gold); }
.form-hint { margin-top: var(--s2); font-size: .82rem; color: var(--muted); }
.sticky-cta { display: none; }
.sticky-cta:focus-visible { outline: none; box-shadow: var(--ring); }
/* banner de consentimento LGPD (Crocodilo · nao-modal · alcancavel por teclado · so ativa com GA4 id + Politica) */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: var(--s4); flex-wrap: wrap; padding: 14px var(--s4); background: var(--panel2); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
.consent-banner[hidden] { display: none; }
.consent-text { margin: 0; max-width: 640px; font-size: .9rem; color: var(--soft); }
.consent-text a { color: var(--gold); text-decoration: underline; }
.consent-actions { display: flex; gap: var(--s3); flex: none; }
/* "Caminho da Integridade" (metodologia) · lista ordenada de passos · reusa .card + .step */
.caminho { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s4); }
@media (min-width: 760px) { .caminho { grid-template-columns: 1fr 1fr; } }
/* paginas legais (termos/riscos/privacidade) · medida de leitura mais estreita + listas legiveis */
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; font-size: 1.15rem; }
.legal ul { padding-left: 1.4em; margin: 8px 0; }
.legal li { margin: 5px 0; color: var(--soft); }
.legal p { color: var(--soft); }
.legal .lead { color: var(--text); }
@media (max-width: 760px) {
  .sticky-cta {
    display: inline-flex; align-items: center; justify-content: center;
    position: fixed; left: var(--s4); right: var(--s4);
    bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px));
    z-index: 50; min-height: 48px; padding: 12px 18px;
    border-radius: var(--radius-pill); font-weight: 700; text-decoration: none;
    background: linear-gradient(180deg, #ecc154, #d9a92f); color: #1a1205;
    box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 2px 10px rgba(224,179,65,.3);
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  }
  .sticky-cta.is-hidden { opacity: 0; transform: translateY(140%); pointer-events: none; }
  body { padding-bottom: 84px; } /* reserva o espaco do sticky · nao cobre o footer */
  /* fix pre-existente: o header transbordava 390px e CLIPAVA o botao dourado "Lista de espera".
     Esconde a tagline + deixa o nav quebrar linha (altura automatica) em vez de cortar o CTA. */
  .site-header .nav-extra { display: none; }
  .nav { height: auto; flex-wrap: wrap; row-gap: 8px; padding: 8px 0; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  /* o banner de consentimento (quando aparece) tem prioridade sobre o sticky no mobile · sem sobreposicao */
  .consent-banner:not([hidden]) ~ .sticky-cta { display: none; }
}
