/* ── Fontes self-hosted (Fraunces + Hanken Grotesk, OFL) — sem CDN externo ──────
   Fontes variáveis baixadas do Google Fonts e servidas de static/fonts/. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  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";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =============================================================================
   Pareto OAB — Design System (CSS custom, sem build)
   -----------------------------------------------------------------------------
   Direção: minimalismo editorial jurídico. Autoridade sóbria, premium, preciso.
   Paleta do docs/04-ui-ux-brief.md: papel quase-branco, grafite, preto jurídico,
   dourado contido como acento, teal discreto p/ status, vermelho só p/ bloqueio.

   MIGRAÇÃO PARA TAILWIND (futuro): os tokens abaixo (:root) mapeiam direto para
   theme.extend.colors / fontFamily / spacing de um tailwind.config. As classes
   utilitárias (.container, .stack, .btn, .badge, .panel...) têm equivalentes
   diretos em utilitários Tailwind, então a troca é incremental e sem reescrever
   a marca visual. Enquanto isso, este arquivo único serve o portal sem Node.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --paper:        #faf9f6;   /* fundo claro quase-branco, levemente quente */
  --paper-panel:  #f2f0ea;   /* painel/superfície sutil */
  --ink:          #2b2b2e;   /* texto grafite */
  --ink-soft:     #5d5d64;   /* texto secundário */
  --ink-faint:    #6b6b73;   /* legendas/auxiliar (≥4.5:1 sobre --paper, WCAG AA) */
  --legal-black:  #16161b;   /* preto jurídico (títulos fortes, rodapé) */
  --gold:         #b88a2e;   /* âmbar contido (acento de precisão; ecoa o ícone) */
  --gold-deep:    #7d5c1e;   /* âmbar escuro p/ texto/hover (P5R-1: AA com folga tb sobre --paper-panel) */
  --teal:         #0f6f66;   /* status positivo, discreto */
  --danger:       #b02a30;   /* bloqueios/alertas — uso raro */
  --line:         color-mix(in srgb, var(--legal-black) 12%, transparent);
  --line-strong:  color-mix(in srgb, var(--legal-black) 22%, transparent);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 68rem;
  --radius: 4px;            /* cantos discretos, editoriais (nada de pílula) */
  --shadow: 0 1px 2px rgba(22, 22, 27, 0.04), 0 8px 30px rgba(22, 22, 27, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset enxuto ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* atmosfera: grão de papel sutil + halo dourado muito leve no topo */
  background-image:
    radial-gradient(120% 60% at 50% -10%,
      color-mix(in srgb, var(--gold) 7%, transparent), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Tipografia ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--legal-black);
  font-weight: 540;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.18rem; font-weight: 600; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 0.86rem; }

/* ── Layout / utilitários ───────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow { max-width: 40rem; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap { gap: 1rem; }
.gap-sm { gap: 0.5rem; }
.grid { display: grid; gap: 1.25rem; }
.divider { height: 1px; background: var(--line); border: 0; }
.rule-gold { height: 2px; width: 3.5rem; background: var(--gold); border: 0; border-radius: 2px; }
main { flex: 1 0 auto; }

/* ── Botões ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
  padding: 0.6rem 1.35rem; min-height: 2.75rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--legal-black); color: var(--paper); }
.btn--primary:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--legal-black); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--legal-black); }
/* V3-7 (CRO): CTA de CONVERSÃO — verde-petróleo canônico da V3 (var(--teal)). Modificador SELETIVO,
   aplicado JUNTO de .btn (e geralmente .btn--primary) SÓ nas ações primárias de conversão
   (amostra/diagnóstico/checkout). Vem DEPOIS de .btn--primary para sobrepor o preto SEM alterá-lo —
   .btn--primary global segue preto; portal/navegação/utilidades intocados. Espelha .sp3-cta--purchase
   da V3 (par teal/paper + hover gold-deep). Foco (.btn:focus-visible), active e disabled são herdados. */
.btn--conversion { background: var(--teal); color: var(--paper); border-color: transparent; }
.btn--conversion:hover { background: var(--gold-deep); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 0.9rem 1.6rem; font-size: 1.04rem; }

/* link com sublinhado revelado */
.link-underline { color: var(--gold-deep); font-weight: 600; position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ── Header / nav ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brand__icon {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  box-shadow: 0 1px 2px rgba(22, 22, 27, 0.18);
}
.brand__mark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: var(--legal-black); white-space: nowrap;
}
.brand__mark .dot { color: var(--gold); }
.brand__sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: 0.95rem; color: var(--ink-soft); transition: color 0.18s var(--ease); }
.nav a:hover { color: var(--legal-black); }
.nav__cta { display: inline-flex; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-top: 0.6rem; }
.hero .lead { margin-top: 1.25rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero__note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-faint); max-width: 30rem; }
/* Pré-headline (gancho de dor) acima do H1 do hero. */
.hero__pre { margin-top: 0.6rem; font-family: var(--font-display); font-weight: 600; color: var(--gold-deep); font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.3; max-width: 32rem; }

/* ── Hero: visual do método (Pareto em português claro) — CSS, sem imagem ──── */
.method-viz {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.method-viz__lead { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.method-viz__bars { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.7rem; }
.method-viz__head { display: flex; align-items: baseline; gap: 0.5rem; }
.method-viz__n {
  font-family: var(--font-display); font-weight: 600; color: var(--legal-black); font-size: 1.05rem;
}
.method-viz__label { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0; }
.method-viz__bar {
  display: block; height: 0.5rem; width: var(--w, 100%); margin-top: 0.3rem; border-radius: 3px;
  background: var(--line-strong);
}
.method-viz__bars li.is-core .method-viz__bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.method-viz__bars li.is-core .method-viz__label { color: var(--gold-deep); font-weight: 600; }
.method-viz__peak { margin-top: 1rem; font-size: 0.92rem; color: var(--ink); }
.method-viz__peak strong { font-family: var(--font-display); color: var(--legal-black); }

/* ── Trilhas por prazo (30/60/véspera): cards sóbrios, sem card-dentro-de-card ── */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.track-card {
  display: flex; flex-direction: column; gap: 0.35rem; min-width: 0;
  padding: 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
.track-card--reco { border-left: 3px solid var(--gold); }
.track-card__when {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0;
  text-transform: uppercase; color: var(--gold-deep);
}
/* Selo "Recomendado": no fluxo normal, discreto, alinhado à esquerda (sem position:absolute). */
.track-card__tag {
  align-self: flex-start; font-family: var(--font-body); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0; text-transform: uppercase; color: var(--gold-deep);
  background: color-mix(in srgb, var(--gold) 14%, var(--paper));
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.track-card h3 { font-size: 1.1rem; margin-top: 0.1rem; }
.track-card p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 640px) { .tracks { grid-template-columns: 1fr; } }

/* Revisões Guiadas em Áudio (P5E-1): casos de uso, sem card-in-card. */
.audio-uses { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.audio-uses li { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; background: var(--paper); min-width: 0; }
.audio-uses__k { display: block; font-weight: 600; color: var(--legal-black); font-size: 0.95rem; }
.audio-uses__v { display: block; margin-top: 0.25rem; color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 640px) { .audio-uses { grid-template-columns: 1fr; } }

/* ── Painéis / itens de lista (sem card-dentro-de-card) ─────────────────── */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.feature { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.feature h3 { display: flex; align-items: baseline; gap: 0.6rem; }
.feature__num { font-family: var(--font-display); color: var(--gold); font-size: 0.95rem; }
.feature p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.96rem; }

.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding-block: 1.15rem; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); color: var(--gold-deep); font-size: 1rem; padding-top: 0.1rem;
}
.step h3 { margin-bottom: 0.2rem; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ── Aviso honesto / callout ────────────────────────────────────────────── */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: var(--paper-panel); border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.notice--block { border-left-color: var(--danger); }
.notice strong { color: var(--legal-black); }

/* ── Sales page (Versão C) ──────────────────────────────────────────────── */
.section--alt { background: var(--paper-panel); }

.proof-line { margin-top: 1.5rem; font-family: var(--font-display); color: var(--ink-soft); font-size: 0.92rem; }

/* CTA placeholder (ex.: diagnóstico "em breve") — não-clicável, discreto */
.btn.is-disabled {
  opacity: 0.6; cursor: default; pointer-events: none;
  background: transparent; color: var(--ink-faint); border-color: var(--line);
}

.pain-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.pain-list li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); }
.pain-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold-deep); }

/* Funil de concentração histórica */
.funnel { margin-top: 1.75rem; display: grid; gap: 0.35rem; max-width: 42rem; }
.funnel__step {
  width: var(--w, 100%); min-width: min(100%, 16rem);
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  border-radius: var(--radius); padding: 0.75rem 1rem; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.funnel__step--lead { border-left-color: var(--gold); }
.funnel__step--peak { border-left-color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 8%, var(--paper)); color: var(--ink); }
.funnel__n { font-family: var(--font-display); color: var(--legal-black); font-weight: 600; font-size: 1.1rem; margin-right: 0.35rem; }
.funnel__arrow { color: var(--ink-faint); font-size: 0.9rem; line-height: 1; padding-left: 0.6rem; }

/* Entregáveis em módulos — cards com prévia real do PDF (sem card-dentro-de-card) */
.modules {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem; margin-top: 1.75rem;
}
.module-card {
  display: flex; flex-direction: column; margin: 0; min-width: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
/* Thumb uniforme: aspect fixo + contain topo (não corta texto; o fundo paper funde com o fade
   das prévias mais curtas, mantendo os títulos dos cards alinhados na grade). */
.module-card__thumb {
  display: block; aspect-ratio: 800 / 566; overflow: hidden;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.module-card__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.module-card__body { padding: 1rem 1.1rem 1.2rem; }
.module-card__num { font-family: var(--font-display); color: var(--gold); font-size: 0.85rem; letter-spacing: 0; }
.module-card h3 { margin-top: 0.2rem; }
.module-card p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.94rem; }

/* Urgência honesta OAB47: callout centralizado premium (sem alarme/escassez), logo abaixo do hero. */
.urgency .container { padding-block: 1.75rem; }
.urgency__card {
  max-width: 44rem; margin-inline: auto; text-align: center; padding: 1.5rem 1.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line-strong));
  border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 6%, var(--paper));
  box-shadow: var(--shadow);
}
.urgency__head {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 0.5rem 0.7rem;
}
.urgency__tag {
  display: inline-block; padding: 0.18rem 0.6rem;
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 12%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line-strong)); border-radius: 999px;
}
.urgency__date { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-soft); }
.urgency__date strong { color: var(--gold-deep); font-weight: 600; }
.urgency__lead {
  margin: 0.7rem 0 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2;
  color: var(--ink);
}
.urgency__note { margin: 0.6rem auto 0; max-width: 34rem; font-size: 0.85rem; color: var(--ink-faint); }
/* Countdown honesto (server-rendered): destaque discreto, sem cronômetro/urgência falsa. */
.urgency__count { margin: 0.55rem auto 0; font-size: 0.98rem; color: var(--ink-soft); }
.urgency__count strong { color: var(--gold-deep); font-weight: 700; }

/* ── VSL (P5M-1): container 16:9 com poster textual click-to-play ─────────────── */
.vsl-section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.vsl { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--legal-black, #16161b); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
/* P5R-14: VSL como mídia principal do hero (célula do grid não pode estourar). */
.hero__grid .vsl { min-width: 0; width: 100%; }
/* P5R-14: method-viz desceu do hero para uma faixa própria pós-VSL — card contido. */
.method-viz--strip { max-width: 620px; margin-inline: auto; }
.vsl__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vsl__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; border: 0; cursor: pointer; text-align: center; color: #f5f2ea; background: radial-gradient(ellipse at center, #26262e 0%, #16161b 70%); }
.vsl__poster--placeholder { cursor: default; }
.vsl__headline { font-family: var(--font-display); font-size: clamp(1.15rem, 3.4vw, 1.9rem); font-weight: 600; max-width: 26ch; line-height: 1.25; }
.vsl__play { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--gold-deep, #a8842c); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.vsl__play::before { content: ""; display: block; width: 0; height: 0; border-style: solid; border-width: 0.65rem 0 0.65rem 1.05rem; border-color: transparent transparent transparent #fff; margin-left: 0.2rem; }
.vsl__poster:hover .vsl__play { transform: scale(1.06); }
.vsl__badge { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245, 242, 234, 0.75); border: 1px solid rgba(245, 242, 234, 0.3); border-radius: 999px; padding: 0.3rem 0.75rem; }
/* P5R-11: poster com capa editorial real — a arte já contém play/headline/badge. */
.vsl__poster--image { padding: 0; background: var(--legal-black, #16161b); }
.vsl__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 160ms ease; }
.vsl__poster--image:hover .vsl__cover { filter: brightness(1.06); }
/* P5R-12C: `hidden` era anulado pelo display:flex do poster (capa presa com áudio
   tocando por baixo). Regras explícitas + estado .vsl--playing do analytics.js. */
.vsl__poster[hidden] { display: none !important; }
.vsl__video[hidden] { display: none !important; }
.vsl--playing .vsl__poster { display: none !important; pointer-events: none; }
.vsl--playing .vsl__video { display: block; z-index: 1; }
/* CRO-2: iframe do Cloudflare Stream ocupa o MESMO container 16:9 (aspect-ratio já
   reservado em .vsl → zero CLS). Fica ATRÁS da thumbnail aprovada (o poster vem depois
   no DOM) até o playback real; .vsl--playing esconde o poster e o iframe assume com os
   controles nativos do Stream. CRO-2-FIX1: enquanto coberto, o iframe não recebe cliques
   (pointer-events:none) — o único controle da fachada é o poster; só ao revelar o iframe
   vira interativo. */
.vsl__stream { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; pointer-events: none; }
.vsl--playing .vsl__stream { z-index: 1; pointer-events: auto; }
/* CRO-2-FIX8: estado DEGRADADO honesto — sem reprodução confirmada, o iframe oficial é revelado (o
   usuário PODE tocar em reproduzir SE houver player embutido), mas NADA se afirma sobre ele: a
   recuperação (status + ações) vive FORA do 16:9 (.vsl-recovery, abaixo do player). Espelha o
   stacking de .vsl--playing: a thumbnail e o spinner saem e o iframe fica clicável. */
.vsl--degraded .vsl__poster { display: none !important; pointer-events: none; }
.vsl--degraded .vsl__stream { z-index: 1; pointer-events: auto; }
.vsl--degraded .vsl__loading { display: none !important; }
/* P5R-15A: clique mantém a CAPA com overlay de carregamento até o vídeo ter frame
   pronto (r2.dev pode demorar no 1º Range) — sem tela preta. Overlay controlado só
   por classe de estado (nunca por [hidden] — lição do P5R-12C). */
.vsl__loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 0.6rem; background: rgba(22, 22, 27, 0.45); color: #f5f2ea; font-size: 0.9rem; letter-spacing: 0.02em; pointer-events: none; z-index: 2; }
.vsl--loading .vsl__loading { display: flex; }
.vsl--playing .vsl__loading { display: none !important; }
.vsl__spinner { width: 1.1rem; height: 1.1rem; border: 2px solid rgba(245, 242, 234, 0.35); border-top-color: var(--gold-deep, #a8842c); border-radius: 50%; animation: vsl-spin 0.9s linear infinite; }
@keyframes vsl-spin { to { transform: rotate(360deg); } }
/* Rebuffer DEPOIS do início: indicador discreto no canto, sem cobrir os controles. */
.vsl--waiting::after { content: ""; position: absolute; top: 0.75rem; right: 0.75rem; width: 1rem; height: 1rem; border: 2px solid rgba(245, 242, 234, 0.35); border-top-color: var(--gold-deep, #a8842c); border-radius: 50%; animation: vsl-spin 0.9s linear infinite; z-index: 2; pointer-events: none; }
@media (max-width: 560px) {
  .urgency__card { padding: 1.25rem 1.1rem; }
  .urgency__date { font-size: 1rem; }
  .urgency__lead { font-size: 1.15rem; }
}

/* Prova visual da área do aluno: mosaico de screenshots reais mobile + bullets.
   Flex com wrap/center acomoda 2 telas (flag de áudio OFF) ou 4 (flag ON) sem buracos. */
.area-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.25rem; margin-top: 1.75rem; }
.area-shot { margin: 0; min-width: 0; flex: 1 1 180px; max-width: 230px; }
.area-shot picture { display: block; }
.area-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 560 / 665; object-fit: cover; object-position: top center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow);
}
.area-shot figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.8rem; color: var(--ink-faint); }
.area-feats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 2rem; }
.area-feat { padding-top: 0.85rem; border-top: 1px solid var(--line); }
.area-feat strong { display: block; color: var(--ink); }
.area-feat span { display: block; margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 560px) { .area-feats { grid-template-columns: 1fr; } }

/* Autoridade: foto do criador + bio (editorial, sem pílula) */
.author { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 1.25rem; }
.author__photo { flex: 0 0 auto; width: 150px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.author__photo img { display: block; width: 100%; height: auto; }
.author__bio { flex: 1 1 0; min-width: 0; }
@media (max-width: 640px) { .author { flex-direction: column; gap: 1rem; } .author__photo { width: 128px; } }

/* Prova visual: strip compacto de prévias reais perto da oferta */
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.6rem; }
.proof-strip figure { margin: 0; }
.proof-strip img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 640px) { .proof-strip { gap: 0.5rem; } }

/* CTA fixo (sticky) só no mobile: barra inferior discreta com preço + botão. */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -4px 16px color-mix(in srgb, var(--legal-black) 12%, transparent);
  }
  .sticky-cta__info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .sticky-cta__name { font-size: 0.82rem; color: var(--ink-soft); }
  .sticky-cta__price { font-family: var(--font-display); font-weight: 600; color: var(--legal-black); }
  .sticky-cta .btn { flex: 0 0 auto; }
  /* Espaço no fim do body (após o rodapé) para a barra fixa não cobrir o footer/CTA final. */
  body.has-sticky-cta { padding-bottom: 5.5rem; }
}

/* Oferta */
.offer__price { font-family: var(--font-display); font-size: 2.2rem; color: var(--legal-black); margin-top: 0.6rem; line-height: 1; }
/* Nota junto ao preço ("— preço de lançamento"): discreta, sem riscado nem percentual. */
.offer__price-note { font-size: 0.42em; color: var(--ink-soft); font-weight: 400; font-family: var(--font-ui, inherit); vertical-align: middle; }
.offer__list { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: 0.6rem; }
.offer__list li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.96rem; }
.offer__list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.offer__expansion { margin-top: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--paper); }
/* Objeções críticas perto da oferta: lista simples (sem card dentro de card). */
.objections { display: grid; gap: 0; }
.objections dt { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: 0.8rem; }
.objections dt:first-child { border-top: 0; padding-top: 0; }
.objections dd { margin: 0.25rem 0 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }
/* Selo de reversão de risco (direito CDC), sóbrio — não é caixa nem promessa. */
.offer__guarantee { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.9rem; }
.offer__guarantee::before { content: "✓"; color: var(--gold-deep); font-weight: 700; }

/* Acesso protegido: passos + prévia ilustrativa do leitor lado a lado. */
.access__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.75rem; align-items: center; margin-top: 1.5rem; }
/* Mockup do leitor online: frame (barra) + prévia recortada de um Mapa da amostra pública.
   Não publica a página completa; é apenas um teaser visual. */
/* Fluxo de acesso (compra → leitor → download) — stepper sóbrio, CSS-only */
.access-flow { display: grid; gap: 0.6rem; }
.access-flow__step {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line-strong); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: var(--shadow);
}
.access-flow__n {
  display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem;
  border-radius: 999px; background: color-mix(in srgb, var(--gold) 16%, var(--paper));
  color: var(--gold-deep); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.access-flow__step h3 { font-size: 1rem; }
.access-flow__step p { margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.9rem; }

/* Prévia dos Mapas de Memorização (sales page + squeeze): cards sóbrios. */
.maps-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1.25rem; }
.map-card {
  display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; margin: 0; overflow: hidden;
  padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
/* Variante com prévia recortada (teaser): a imagem é só o topo do mapa, com fade já "baked"
   na própria imagem. Sangra até as bordas do card (sem card-dentro-de-card). */
.map-card__thumb {
  display: block; margin: -1rem -1rem 0; overflow: hidden;
}
.map-card__thumb img {
  display: block; width: 100%; height: auto;
}
.map-card figcaption { display: flex; flex-direction: column; gap: 0.3rem; }
.map-card__disc {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
.map-card__theme { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
@media (max-width: 640px) { .maps-preview { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .access__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* FAQ — acordeão acessível (details/summary), sem JS */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-family: var(--font-display); color: var(--legal-black); font-size: 1.05rem; font-weight: 540;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; color: var(--gold-deep); font-size: 1.3rem; line-height: 1; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1rem; font-size: 0.96rem; max-width: 44rem; }

/* ── Diagnóstico (quiz) ─────────────────────────────────────────────────── */
.quiz { display: grid; gap: 1.5rem; }
.quiz__q { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0; min-width: 0; background: var(--paper); }
.quiz__q legend {
  font-family: var(--font-display); color: var(--legal-black); font-weight: 540;
  font-size: 1.05rem; line-height: 1.25; padding: 0 0.25rem; margin-bottom: 0.75rem;
}
.quiz__qnum { color: var(--gold-deep); }
.quiz__opt {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.6rem 0.7rem; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; color: var(--ink-soft); font-size: 0.96rem;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.quiz__opt + .quiz__opt { margin-top: 0.15rem; }
.quiz__opt:hover { background: color-mix(in srgb, var(--gold) 6%, var(--paper)); }
.quiz__opt input { margin-top: 0.28rem; flex: none; accent-color: var(--gold-deep); }
.quiz__opt:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--paper)); color: var(--ink); }

.quiz__result { }
.quiz__score { font-family: var(--font-display); color: var(--gold-deep); font-size: 1rem; margin-top: 0.4rem; }

/* Diagnóstico (P5C-5): bloco "Como funciona" + progresso + validação inline. */
.quiz__howto { margin-top: 1.25rem; }
.quiz__howto-title { font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--legal-black); }
.quiz__howto-list { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }
.quiz__progress { margin-bottom: 0.25rem; }
.quiz__progress-text { font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.quiz__q--pending { border-color: var(--danger, #b00020); }
.quiz__error { color: var(--danger, #b00020); font-size: 0.9rem; margin-top: 1rem; }

/* ── Badges de status ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.28rem 0.66rem; border-radius: 999px; border: 1px solid transparent;
}
.badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.badge--active { color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, transparent); border-color: color-mix(in srgb, var(--teal) 25%, transparent); }
.badge--pending { color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 12%, transparent); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.badge--blocked { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }

/* ── Painel (área do aluno) ─────────────────────────────────────────────── */
.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 1.1rem; }
.meta { }
.meta__label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.meta__value { font-family: var(--font-display); font-size: 1.45rem; color: var(--legal-black); margin-top: 0.15rem; }
.progress { height: 7px; background: var(--paper-panel); border-radius: 999px; overflow: hidden; margin-top: 0.4rem; }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 999px; }

/* ── Formulários (login) ────────────────────────────────────────────────── */
.auth-wrap { display: grid; place-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.auth-card { width: 100%; max-width: 25rem; }
.field { display: block; }
.field + .field { margin-top: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
.field input {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  padding: 0.7rem 0.85rem; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.form-errors { color: var(--danger); font-size: 0.88rem; }

/* Checkbox de consentimento: caixa à ESQUERDA do texto (não esticada). Fora de .field
   para não herdar input{width:100%}. */
.form-check { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.form-check input[type="checkbox"] {
  flex: none; width: 1rem; height: 1rem; margin-top: 0.2rem; accent-color: var(--gold-deep);
}
.form-check__label { font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); font-weight: 400; }

/* Campo de senha com botão de mostrar/ocultar (olho). Toggle acessível, sem libs. */
.password-field { position: relative; }
.password-field input { padding-right: 3rem; }
.password-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-faint);
}
.password-toggle:hover { color: var(--ink-soft); }
.password-toggle svg { width: 1.2rem; height: 1.2rem; display: block; }
.password-toggle .icon-eye-off { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye-off { display: block; }
.form-errors ul { padding-left: 1.1rem; }

/* ── Leitor protegido ─────────────────────────────────────────────────────── */
/* Root do leitor: espaçamento próprio (menos que .section) e alvo do modo imersivo.
   --reader-max limita a largura da página no desktop; --reader-zoom é controlado por JS. */
.reader { padding-block: 1.5rem 2.75rem; }
.reader__inner { --reader-max: 60rem; }

/* Defesa: a página do leitor NUNCA rola horizontalmente. Componentes internos (chips)
   rolam dentro do próprio container; nada vaza para a página. `clip` preserva position:sticky.
   A leitura confortável vem do modo imersivo (zoom legível + pan interno), não de pinch-zoom. */
body.page-reader { overflow-x: clip; }
.reader, .reader__inner, .reader-bar, .reader-nav, .reader-docs { max-width: 100%; min-width: 0; }

/* Defesa equivalente para as páginas públicas de captura (amostra dos mapas,
   obrigado e diagnóstico — body.lead-page): a página nunca rola horizontalmente.
   Dupla declaração de overflow-x: `hidden` é o fallback para navegadores sem
   suporte a `clip`; `clip` vence onde suportado e preserva position:sticky.
   Regras conservadoras e scoped: só neutralizam min-content overflow (fieldset
   do quiz, labels e botões longos) sem esconder scroll interno legítimo de
   componentes que rolam no próprio container. */
body.lead-page { overflow-x: hidden; overflow-x: clip; }
.lead-page form, .lead-page .panel, .lead-page .notice { max-width: 100%; min-width: 0; }
.lead-page fieldset { min-inline-size: 0; max-width: 100%; }
.lead-page label { max-width: 100%; min-width: 0; overflow-wrap: break-word; }
.lead-page .btn { max-width: 100%; white-space: normal; }

/* Toolbar sóbria, fixa no topo durante a leitura. */
.reader-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem;
  flex-wrap: wrap; padding: 0.6rem 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.reader-bar__meta { min-width: 0; flex: 1 1 12rem; }
.reader-bar__title {
  font-family: var(--font-display); font-size: 1rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader-tools { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; }

/* Botão icônico compacto com área de toque >=44px (zoom/imersivo); só com JS ativo. */
.reader-iconbtn {
  display: none; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0.4rem 0.65rem;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; line-height: 1;
  color: var(--legal-black); background: transparent;
  border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
body[data-reader-js] .reader-iconbtn { display: inline-flex; }
.reader-iconbtn:hover { border-color: var(--legal-black); }
.reader-iconbtn:disabled { opacity: 0.4; cursor: default; }
.reader-iconbtn[aria-pressed="true"] {
  background: var(--legal-black); color: var(--paper); border-color: var(--legal-black);
}
/* Botão de imersivo com rótulo (ícone + texto) — CTA claro, ainda >=44px de toque. */
.reader-iconbtn--label { gap: 0.4rem; padding-inline: 0.8rem; }

/* Navegação de páginas: botões grandes + indicador central. */
.reader-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: 1rem;
}
.reader-nav .btn { flex: 0 0 auto; }
.reader-page-indicator {
  flex: 1 1 auto; text-align: center; min-width: 0;
  font-size: 0.92rem; color: var(--ink-soft); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Âncora de navegação em estado de limite: aparência de desabilitada, sem clique. */
a.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* Seletor de documentos do release: chips sóbrios em tira ROLÁVEL (nunca quebram a tela). */
.reader-docs {
  display: flex; flex-wrap: nowrap; gap: 0.5rem; margin-top: 1rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.4rem; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.reader-docs__item {
  flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start;
  font-size: 0.9rem; color: var(--ink-soft); padding: 0.5rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.reader-docs__item:hover { border-color: var(--legal-black); color: var(--legal-black); }
.reader-docs__item.is-current { border-color: var(--gold-deep); color: var(--gold-deep); font-weight: 600; }

/* Estado "em preparação" (sem documento). */
.reader-stage {
  position: relative; display: grid; place-items: center;
  min-height: 56vh; margin-top: 1.5rem;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--legal-black) 3%, transparent) 14px 15px),
    var(--paper-panel);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  overflow: hidden;
}
.reader-stage__note { position: relative; z-index: 1; text-align: center; max-width: 32rem; padding: 1.5rem; }

/* Página renderizada: AJUSTAR À LARGURA por padrão (sem scroll lateral do body).
   O scroll fica INTERNO ao .reader-page e só aparece quando há zoom (>1). */
.reader-page {
  margin-top: 1.25rem; padding: clamp(0.6rem, 2vw, 1.25rem);
  background: var(--paper-panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: auto; -webkit-overflow-scrolling: touch;
}
.reader-page img {
  display: block; margin-inline: auto; height: auto;
  width: 100%; max-width: var(--reader-max, 60rem);
  background: #fff; box-shadow: var(--shadow);
}
/* Zoom: imagem maior que o container → scroll interno (margin auto colapsa p/ 0 → sem corte). */
.reader-page.is-zoomed img { width: calc(var(--reader-zoom, 1) * 100%); max-width: none; }

/* Dissuasão de cópia casual: sem seleção/arraste da página (não impede print/foto/captura). */
.reader-page, .reader-page img {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}
/* Impressão: não imprime a página do leitor; mostra só um aviso simples. */
.reader-print-note { display: none; }
@media print {
  .page-reader .reader { display: none !important; }
  .page-reader .reader-print-note {
    display: block !important; text-align: center; margin-top: 2rem; font-size: 1rem;
  }
}

/* ── Modo de leitura imersiva ──────────────────────────────────────────────
   Classe .is-immersive é o caminho PRIMÁRIO (funciona no iOS Safari, que não tem
   Element Fullscreen). A Fullscreen API é usada em paralelo quando existe (desktop).
   O container ocupa a viewport (100dvh + safe-area), header/footer somem e a página
   vira o container de PAN (scroll interno X/Y) — o body nunca rola. */
/* Wrapper de toolbar+chips: invisível no layout normal (não quebra o sticky do toolbar);
   no imersivo vira a barra superior overlay. */
.reader-head { display: contents; }

body.reader-immersive { overflow: hidden; }
body.reader-immersive .site-header,
body.reader-immersive .site-footer { display: none; }

.reader.is-immersive {
  position: fixed; inset: 0; z-index: 60;
  height: 100vh; height: 100dvh;
  background: var(--paper); overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.reader.is-immersive .reader__inner { position: relative; height: 100%; max-width: none; padding: 0; }

/* O PDF ocupa TODA a área útil; os controles são OVERLAY por cima (não empurram o PDF). */
.reader.is-immersive .reader-page {
  position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0;
  overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
  background: var(--paper);
}
.reader.is-immersive .reader-page img { margin: 0 auto; }
.reader.is-immersive .reader-extras { display: none; }

/* Overlay superior (toolbar + chips) e inferior (navegação), translúcidos. */
.reader.is-immersive .reader-head {
  display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 0.4rem clamp(0.5rem, 2vw, 1rem);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.reader.is-immersive .reader-bar { position: static; backdrop-filter: none; border-bottom: 0; }
.reader.is-immersive .reader-docs { margin-top: 0.4rem; }
.reader.is-immersive .reader-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0;
  padding: 0.4rem clamp(0.5rem, 2vw, 1rem);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
/* Controles ocultos: saem da tela SEM reflow do PDF (tap alterna). */
.reader.is-immersive.controls-hidden .reader-head { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.reader.is-immersive.controls-hidden .reader-nav  { opacity: 0; transform: translateY(100%);  pointer-events: none; }

/* Dica temporária do modo imersivo (some sozinha). */
.reader-tip { display: none; }
.reader.is-immersive .reader-tip {
  display: block; position: absolute; left: 50%; bottom: 16%; z-index: 3;
  max-width: 86%; text-align: center; white-space: normal;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  background: color-mix(in srgb, var(--legal-black) 88%, transparent); color: var(--paper);
  font-size: 0.85rem; line-height: 1.35;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.reader.is-immersive .reader-tip.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Fullscreen API (desktop): garante fundo. */
.reader:fullscreen { background: var(--paper); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 4rem; background: var(--legal-black); color: color-mix(in srgb, var(--paper) 78%, transparent); }
.site-footer a { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.site-footer a:hover { color: var(--paper); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer .brand__mark { color: var(--paper); }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 55%, transparent); margin-bottom: 0.75rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.5rem; font-size: 0.82rem; color: color-mix(in srgb, var(--paper) 55%, transparent); }

/* Rodapé discreto da área do aluno (sem fundo preto, sem colunas): suporte + legal mínimo. */
.student-foot { margin-top: 3rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-faint); }
.student-foot a { color: inherit; text-decoration: underline; }
.student-foot a:hover { color: var(--ink); }

/* ── Mensagens (django.contrib.messages) ────────────────────────────────── */
.messages { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.messages li { padding: 0.65rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-panel); font-size: 0.92rem; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: rise 0.7s var(--ease) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .feature-list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav { gap: 0.6rem; }
  .nav a:not(.nav__cta) { display: none; }   /* mobile: mantém só o CTA, nada vaza */
}
@media (max-width: 640px) {
  /* leitor: a barra quebra em linhas; o subtítulo recolhe; a navegação cabe em 375px */
  .reader-bar__sub { display: none; }
  .reader-nav { gap: 0.5rem; }
  .reader-nav .btn { padding-inline: 1rem; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  /* header enxuto: o monograma é a marca; o wordmark recolhe para não vazar */
  .brand__mark { display: none; }
  .site-header__inner { gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ── Consentimento de cookies (P3A) ───────────────────────────────────────── */
.btn--sm { padding: 0.5rem 0.85rem; font-size: 0.86rem; }
.linklike {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.linklike:hover { color: var(--gold-deep); }

.consent {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(46rem, calc(100% - 1.5rem)); z-index: 60;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 6px 14px rgba(22, 22, 27, 0.10), 0 18px 50px -20px rgba(22, 22, 27, 0.35);
}
.consent[hidden] { display: none; }
.consent__inner { padding: 1rem 1.15rem; }
.consent__text { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.consent__text a { color: var(--gold-deep); }
.consent__title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.35rem; }
.consent__actions {
  display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.9rem; justify-content: flex-end;
}
.consent--panel { width: min(30rem, calc(100% - 1.5rem)); }
.consent__opt {
  display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.7rem;
  font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45;
}
.consent__opt input { margin-top: 0.18rem; flex: none; width: 1rem; height: 1rem; accent-color: var(--gold-deep); }
.consent__opt strong { color: var(--ink); }

@media (min-width: 641px) {
  /* P5R-3: card compacto no canto inferior-DIREITO — nunca sobrepõe a zona de
     preço/CTA/garantia do hero no 1º load (defeito nº 1 da auditoria, 5/5 lentes).
     Medição em 1280×900: a coluna ESQUERDA do hero (preço+CTA) desce até ~y=889,
     então o canto esquerdo colidiria com o CTA; à direita só existe o aside
     decorativo de barras — o card compacto toca no máximo a borda dele. */
  .consent:not(.consent--panel) {
    left: auto; right: 1rem; bottom: 1rem; transform: none;
    width: min(21rem, calc(100% - 2rem));
  }
  .consent:not(.consent--panel) .consent__inner { padding: 0.75rem 0.9rem; }
  .consent:not(.consent--panel) .consent__text { font-size: 0.82rem; line-height: 1.45; }
  .consent:not(.consent--panel) .consent__actions { margin-top: 0.55rem; gap: 0.4rem; }
}
@media (max-width: 480px) {
  .consent { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; transform: none; width: auto; }
  .consent__actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  /* P5R-3: no mobile o banner sobe para NÃO cobrir o sticky de compra (único CTA persistente). */
  body.has-sticky-cta .consent:not(.consent--panel) {
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* Preview interno de áudio (P5F-4) — player + transcrição sincronizada. */
.audio-player__el { width: 100%; display: block; }
.audio-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.audio-controls__sep { color: var(--ink-faint); }
.audio-controls .btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-deep); }
.audio-transcript__block {
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.audio-transcript__block:hover { background: var(--paper-panel); }
.audio-transcript__block.is-active {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-left-color: var(--gold);
}

/* Progresso de áudio (P5F-5). */
.audio-progress__bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.audio-progress__fill { display: block; height: 100%; background: var(--gold); transition: width 0.2s var(--ease); }
.audio-progress__row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
#audio-mark-heard[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); }

/* ==========================================================================
   P5G-1 — Trilha de estudo, índice do leitor e progresso da área do aluno.
   ========================================================================== */

/* Foco visível discreto (a11y) — inputs de formulário já têm ring próprio. */
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
.reader-iconbtn:focus-visible,
.audio-transcript__block:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Trilha de materiais no dashboard. */
.track { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.track__item { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.85rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.track__num { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
  border-radius: 999px; background: var(--paper-panel); color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; }
.track__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.18rem; }
.track__title { font-weight: 600; }
.track__bar { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 0.15rem; }
.track__fill { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.track__cta { flex: 0 0 auto; }
.track__item--concluido .track__num { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.track__item--andamento .track__num { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold-deep); }

/* Índice de materiais do leitor (substitui os chips horizontais). */
.reader-index { margin-top: 0.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); max-width: 100%; }
.reader-index__summary { cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.9rem; min-height: 2.75rem; font-weight: 600; }
.reader-index__summary::-webkit-details-marker { display: none; }
.reader-index__label::before { content: "\1F4DA\00A0"; }
.reader-index__list { list-style: none; margin: 0; padding: 0.25rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
/* Itens do índice são grid children: min-width:0 impede que o título longo force a coluna
   além do container (o track já é minmax(0,1fr)); assim o ellipsis do título ativa de fato. */
.reader-index__item { min-width: 0; }
.reader-index__item a { display: flex; align-items: center; gap: 0.6rem; min-width: 0; max-width: 100%;
  padding: 0.55rem 0.65rem; border-radius: 8px; text-decoration: none; color: var(--ink); min-height: 2.75rem; }
.reader-index__item a:hover { background: var(--paper-panel); }
.reader-index__item.is-current a { background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold-deep); font-weight: 600; }
.reader-index__num { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
  border-radius: 999px; background: var(--paper-panel); font-size: 0.78rem; color: var(--ink-soft); }
.reader-index__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-index__meta { flex: 0 0 auto; }

/* P5L-6: descrição didática curta por material (secundária: cinza claro, fonte menor). */
.track__desc { line-height: 1.35; }
.reader-index__item a { align-items: flex-start; }
.reader-index__main { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.1rem; }
.reader-index__desc { line-height: 1.3; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* "Ir para a página" + feedback de carregamento + próximo material. */
.reader-goto { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.reader-goto__input { width: 4.5rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line-strong);
  border-radius: 8px; font: inherit; text-align: center; }
.reader-page.is-loading { position: relative; }
.reader-page.is-loading img { opacity: 0.45; transition: opacity 0.15s var(--ease); }
.reader-page.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px;
  margin: -14px 0 0 -14px; border-radius: 999px; border: 3px solid var(--line-strong); border-top-color: var(--gold-deep);
  animation: reader-spin 0.7s linear infinite; }
@keyframes reader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reader-page.is-loading::after { animation: none; } }
.reader-next-doc { margin-top: 1.25rem; display: grid; gap: 0.5rem; padding: 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper-panel); }

/* Áudios: "continuar ouvindo", busca e progresso parcial por item. */
.audio-resume { display: flex; align-items: center; justify-content: space-between; gap: 0.85rem; flex-wrap: wrap; }
.audio-search { margin-top: 1.5rem; display: grid; gap: 0.35rem; }
.audio-search__input { width: 100%; max-width: 28rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; }
.audio-item { display: flex; gap: 0.85rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.audio-item__body { flex: 1 1 14rem; min-width: 0; display: grid; gap: 0.3rem; }
.audio-item__head { display: flex; align-items: baseline; flex-wrap: wrap; }
.audio-item__bar { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; max-width: 16rem; }
.audio-item__fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

/* ── P5O-1: sumário real da área do aluno (12 materiais) — índice de obra ── */
.area-inventory { border: 1px solid var(--line, #e6e3db); border-radius: 12px; background: var(--panel, #fffdf9); padding: 0.35rem 1.1rem; }
.area-inventory summary { cursor: pointer; padding: 0.65rem 0; font-size: 0.95rem; color: var(--muted, #5b5e66); list-style-position: inside; }
.area-inventory summary:hover { color: inherit; }
.area-inventory__list { margin: 0.25rem 0 0.5rem; padding: 0 0 0 1.4rem; columns: 2; column-gap: 2.5rem; }
.area-inventory__list li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px dashed var(--line, #e6e3db); font-size: 0.92rem; }
.area-inventory__title { font-weight: 600; }
.area-inventory__pages { float: right; font-variant-numeric: tabular-nums; color: var(--muted, #5b5e66); font-size: 0.85rem; }
.area-inventory__desc { display: block; clear: both; margin-top: 0.15rem; }
@media (max-width: 700px) { .area-inventory__list { columns: 1; } }

/* ── P5Q-3: checkout transparente (Payment Brick) ─────────────────────────────
   Página única mobile-first; reusa tokens/utilitários do design system. */
.ckt-banner {
  display: block;
  width: 100%;
  height: auto;
  max-width: 880px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
}
.ckt-card { max-width: 640px; margin: 0 auto; }
.ckt-section-title { margin: 0.6rem 0 0.2rem; font-size: 1.02rem; }
.ckt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .ckt-grid2 { grid-template-columns: 1fr; } }
.ckt-hidden { display: none; }
.ckt-state {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line, #e6e3db);
  border-radius: 12px;
  background: var(--paper, #faf9f6);
}
.ckt-state--ok { border-color: #2f7d54; }
.ckt-state--error { border-color: #b03a3a; }
.ckt-pix-qr { display: block; margin: 0.6rem auto; width: 240px; height: 240px; }
.ckt-pix-code {
  display: block;
  margin: 0.4rem 0;
  padding: 0.5rem 0.6rem;
  border: 1px dashed var(--line, #e6e3db);
  border-radius: 8px;
  font-size: 0.78rem;
  word-break: break-all;
}

/* ── P5R-1: página de vendas — CTAs intermediários e sticky com parcelas ── */
.inline-cta { display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap; }
.sticky-cta__installments { display: block; white-space: nowrap; font-family: var(--font-body); font-weight: 400; font-size: 0.76rem; color: var(--ink-soft); }

/* ── P5R-4: sticky desktop CSS-only + prova/ritmo do método ───────────────────
   A barra .desk-sticky é position: sticky dentro de .desk-sticky-scope (urgência→
   autoridade): gruda sob o header e SOLTA no fim do scope — nunca cobre a oferta,
   o CTA final nem o cookie banner (que é bottom). Mobile segue com .sticky-cta. */
.desk-sticky-scope { position: relative; }
.desk-sticky { display: none; }
@media (min-width: 961px) {
  .desk-sticky {
    position: sticky; top: 4.35rem; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.55rem 1.5rem;
  }
  .desk-sticky__info { font-size: 0.95rem; color: var(--ink-soft); }
  .desk-sticky__info strong { font-family: var(--font-display); color: var(--legal-black); }
  .desk-sticky__note { font-size: 0.82rem; color: var(--ink-faint); }
  .desk-sticky .btn { flex: 0 0 auto; padding-block: 0.5rem; }
}

.stat-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem;
  list-style: none; padding: 0; margin: 0.9rem 0 0;
}
.stat-strip li { display: flex; flex-direction: column; line-height: 1.2; }
.stat-strip strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--legal-black); }
.stat-strip span { font-size: 0.78rem; color: var(--ink-soft); }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 0.85rem 1rem; } }

.method-callouts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 52rem;
}
.method-callout {
  border-left: 3px solid var(--gold); padding: 0.15rem 0 0.15rem 1rem;
}
.method-callout strong { font-family: var(--font-display); color: var(--legal-black); }
.method-callout p { margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 720px) { .method-callouts { grid-template-columns: 1fr; } }

/* ── P5R-6: prova visual do Anexo (págs 1-3 reais, derivadas do PDF hash-gated) ── */
.anexo-proof {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 0.75rem; margin-top: 1rem; max-width: 38rem;
}
.anexo-proof figure { margin: 0; }
.anexo-proof__main { grid-row: 1 / span 2; }
.anexo-proof img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff;
}
@media (max-width: 560px) {
  .anexo-proof { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .anexo-proof__main { grid-row: auto; grid-column: 1 / -1; }
}
