/* =========================================================
   Ebook 1 — PERSUASÃO — landing page
   Design system: handoff "Ebook landing page ebook 1 — 2026"
   (tema claro off-white + acento dourado, placas de foto em
   preto pleno full-bleed).

   Regras do handoff que valem para o arquivo inteiro:
   - sem border-radius em NADA, inclusive botões;
   - sem sombra; sem gradiente decorativo (a única exceção é o
     fundo do hero, #faf8f4 -> #f4efe4);
   - dourado --gold só em fills grandes/filetes; para TEXTO sobre
     claro usa --gold-ink, que tem contraste;
   - breakpoint único em 900px.

   Fora do handoff, preservado do projeto: CTA sticky de mobile e
   o scroll reveal (o script.js depende das classes .cta,
   .cta-sticky, .reveal e de body.has-sticky-cta).
   ========================================================= */

:root {
  --bg: #faf8f4;
  --surface: #f1ece1;
  --plate: #0d0b0a;
  --ink-plate: #17150f;

  --gold: #c9a227;
  --gold-ink: #8a6c0a;
  --gold-deep: #665000;
  --gold-light: #e0b84a;

  --text: #17150f;
  --text-2: #2e281f;
  --text-body: #4a4238;
  --text-dim: #6f685c;
  --text-dimmer: #7c7466;
  --num: #9a9284;
  --attr: #8a827a;

  --plate-text: #f7f2e4;
  --plate-label: #a39a8c;

  --line: #ddd5c6;
  --line-soft: #e4dccc;
  --line-gold: #d8cdb4;
  --line-dark: rgba(247, 242, 228, .16);

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --container: 1440px;
  --gutter: 22px;
}
@media (min-width: 900px) { :root { --gutter: 80px; } }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; text-wrap: pretty; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: #6b5205; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  background: var(--bg);
  display: flex; flex-direction: column;
}

/* Placa de foto: preto pleno, full-bleed, sem crop e sem gradiente.
   As fotos são ~3,1:1 — em tela estreita viram faixas baixas, é
   intencional (handoff). */
.plate { background: var(--plate); }
.plate img { width: 100%; }

.accent { color: var(--gold-ink); }

/* ---------- 1. barra de urgência ---------- */
.urg {
  background: var(--ink-plate);
  color: var(--plate-text);
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 14px;
}
.urg b {
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light); white-space: nowrap;
}
.urg span { font-size: clamp(12.5px, 1.05vw, 14px); line-height: 1.48; font-weight: 300; }
@media (min-width: 900px) {
  .urg { padding: 13px var(--gutter); }
  .urg b { border-right: 1px solid rgba(247, 242, 228, .28); padding-right: 14px; }
}

/* ---------- 2. header ---------- */
.hdr {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 1.5vw, 20px); letter-spacing: .12em;
}
.hdr-meta {
  font-family: var(--font-display);
  font-size: clamp(10px, .9vw, 12px); letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
.hdr-meta-long { display: none; }
@media (min-width: 900px) {
  .hdr { padding: 26px var(--gutter); }
  .hdr-meta-long { display: inline; }
}

/* ---------- 3. tipografia comum ---------- */
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08;
}
h2 { font-family: var(--font-display); font-weight: 600; }
.h2-a { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.14; }
.h2-b { font-size: clamp(27px, 3.1vw, 44px); line-height: 1.12; }
.h2-c { font-size: clamp(27px, 3.2vw, 46px); line-height: 1.12; }
.h2-close { font-weight: 700; font-size: clamp(29px, 3.4vw, 48px); line-height: 1.1; }

.lead {
  font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.68;
  color: var(--text-body); font-weight: 300;
}

.label {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em;
  font-size: clamp(11px, .9vw, 13px);
}

.kicker { display: flex; align-items: center; gap: 10px; }
.kicker i { display: block; flex: none; width: 26px; height: 2px; background: var(--gold); }
.kicker span {
  font-family: var(--font-display); font-size: clamp(11px, .95vw, 13px);
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink);
}
.kicker-long { display: none; }
@media (min-width: 900px) {
  .kicker { gap: 14px; }
  .kicker i { width: 46px; }
  .kicker-long { display: inline; }
  .kicker-short { display: none; }
}

/* ---------- 4. CTA ---------- */
/* Os três CTAs (.cta) apontam para /checkout. O script.js observa
   essas classes para o sticky de mobile, propagação de UTM no href
   e o evento de analytics por posição — não renomear. */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  text-align: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(17px, 1.5vw, 21px); letter-spacing: .05em; line-height: 1.2;
  padding: 20px 16px; min-height: 56px; border-radius: 0;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.cta .arrow { display: none; }
.cta:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.cta-dark { background: var(--ink-plate); color: var(--plate-text); }
.cta-dark:hover { background: var(--gold); color: var(--ink-plate); }

.cta-onGold { background: var(--ink-plate); color: var(--plate-text); }
.cta-onGold:hover { background: var(--bg); color: var(--ink-plate); }

.cta-note {
  font-family: var(--font-display);
  font-size: clamp(11px, .95vw, 12px); letter-spacing: .17em;
  text-transform: uppercase; color: var(--text-dim); text-align: center;
}
@media (min-width: 900px) {
  .cta { align-self: flex-start; padding: 22px 38px; }
  .cta .arrow { display: inline; }
  .cta-note { text-align: left; }
}

/* ---------- 5. dobra 1 — hero ---------- */
.s1 {
  padding: 30px var(--gutter) 38px;
  display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(180deg, #faf8f4 0%, #f4efe4 100%);
}
.s1-left, .s1-right { display: flex; flex-direction: column; gap: 22px; }
.s1-ctawrap { display: flex; flex-direction: column; gap: 12px; }

/* O mockup tem largura FIXA por breakpoint (240 / 360px), nunca 100% —
   é a única imagem da página que não é full-bleed. */
.s1-book { width: 240px; align-self: center; margin: 4px 0; }
.s1-cap {
  font-size: clamp(14.5px, 1.2vw, 16px); line-height: 1.62;
  color: var(--text-body); font-weight: 300; text-align: center;
  border-top: 1px solid var(--line-gold); padding-top: 18px;
  max-width: 36ch; margin-inline: auto;
}
@media (min-width: 900px) {
  .s1 {
    padding: 80px var(--gutter) 88px;
    display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px;
    align-items: center;
  }
  .s1-left { gap: 30px; }
  .s1-right { gap: 26px; align-items: center; }
  .s1-book { width: 360px; margin: 0; }
  .s1-cap { padding-top: 22px; }
  .s1-ctawrap { align-items: flex-start; margin-top: 4px; }
}

/* ---------- 6. dobra 2 — prova social ---------- */
.s2 {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px var(--gutter) 44px;
  display: flex; flex-direction: column; gap: 20px;
}
.s2-head { display: grid; gap: 20px; }
.quotes { display: grid; gap: 14px; margin-top: 4px; }
@media (min-width: 900px) {
  .s2 { padding: 76px var(--gutter) 82px; gap: 44px; }
  .s2-head { grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 0; }
}

.quote {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 20px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  margin: 0;
}
.quote .mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: .6; color: var(--gold);
}
.quote p {
  font-size: clamp(14.5px, 1.15vw, 15.5px); line-height: 1.68;
  color: var(--text-2); font-weight: 300;
}
/* margin-top:auto alinha o rodapé dos três cards mesmo com textos
   de tamanhos diferentes. */
.quote .attr {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(10px, .85vw, 11px); letter-spacing: .16em;
  text-transform: uppercase; color: var(--attr);
  border-top: 1px solid var(--line-soft); padding-top: 12px;
}
@media (min-width: 900px) {
  .quote { padding: 30px 28px 26px; gap: 18px; }
  .quote .mark { font-size: 34px; line-height: .7; }
  .quote .attr { padding-top: 14px; }
}

/* ---------- 7. dobra 3 — autoridade / mecanismo ---------- */
.s3 { padding: 42px 0 0; display: flex; flex-direction: column; gap: 22px; }
.s3-grid { padding-inline: var(--gutter); display: grid; gap: 22px; align-items: start; }
.s3-left { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 900px) {
  .s3 { padding: 88px 0 0; gap: 60px; }
  .s3-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
  .s3-left { gap: 30px; }
}

.stats { display: flex; background: var(--ink-plate); color: var(--plate-text); }
.stats div { flex: 1; padding: 16px 14px; }
.stats div + div { border-left: 1px solid var(--line-dark); }
.stats b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(23px, 2.3vw, 32px); color: var(--gold-light);
}
.stats span {
  display: block; margin-top: 5px;
  font-family: var(--font-display); font-size: clamp(9px, .85vw, 11px);
  letter-spacing: .15em; text-transform: uppercase; color: var(--plate-label);
}
.stats .long { display: none; }
@media (min-width: 900px) {
  .stats div { padding: 24px 26px; }
  .stats .long { display: inline; }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.card .label { color: var(--gold-ink); }
@media (min-width: 900px) { .card { padding: 40px 40px 44px; gap: 24px; } }

.list { margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { list-style: none; display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list em {
  font-family: var(--font-display); font-style: normal;
  font-size: clamp(11px, .9vw, 13px); color: var(--num); padding-top: 3px;
}
.list span { font-size: clamp(14.5px, 1.2vw, 17px); line-height: 1.56; color: var(--text-2); font-weight: 300; }
@media (min-width: 900px) {
  .list li { gap: 18px; padding: 18px 0; }
  .list em { padding-top: 4px; }
}

/* ---------- 8. dobra 4 — o que você recebe ---------- */
.s4 { padding: 40px var(--gutter) 46px; display: flex; flex-direction: column; gap: 24px; }
.s4-book { width: 220px; align-self: center; }
.s4-right { display: flex; flex-direction: column; gap: 24px; }
.s4-cards { display: flex; flex-direction: column; gap: 12px; }
.s4-card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.s4-card b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(12px, 1vw, 13px); letter-spacing: .17em;
  text-transform: uppercase; color: var(--gold-ink);
}
.s4-card span { font-size: clamp(14px, 1.15vw, 15px); line-height: 1.58; color: var(--text-body); font-weight: 300; }
.s4-foot {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: clamp(11px, .95vw, 12px);
  letter-spacing: .17em; text-transform: uppercase; color: var(--text-dim);
}
.s4-foot i { display: block; flex: none; width: 22px; height: 1px; background: var(--gold); }
@media (min-width: 900px) {
  .s4 {
    padding: 84px var(--gutter) 92px;
    display: grid; grid-template-columns: .82fr 1.18fr; gap: 74px;
    align-items: center;
  }
  .s4-book { width: 100%; max-width: 330px; justify-self: center; }
  .s4-right { gap: 32px; }
  .s4-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .s4-card { padding: 26px 24px 28px; gap: 10px; }
  .s4-foot i { width: 28px; }
}

/* ---------- 9. dobra 5 — escassez + fechamento ---------- */
.s5 {
  background: var(--gold); color: var(--ink-plate);
  padding: 40px var(--gutter) 44px;
  display: flex; flex-direction: column; gap: 22px;
}
.s5 .deep { color: var(--gold-deep); }
.s5-right { display: flex; flex-direction: column; gap: 22px; }
.seals { display: flex; flex-wrap: wrap; gap: 8px; }
.seals span {
  border: 1px solid rgba(23, 21, 15, .45); padding: 7px 11px;
  font-family: var(--font-display); font-size: clamp(10px, .85vw, 11px);
  letter-spacing: .15em; text-transform: uppercase;
}
.seals span.solid { background: var(--ink-plate); color: var(--gold-light); border-color: var(--ink-plate); }
@media (min-width: 900px) {
  .s5 {
    padding: 80px var(--gutter) 84px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px;
    align-items: center;
  }
  .s5-right { align-items: flex-start; }
  .seals { gap: 10px; }
  .seals span { padding: 8px 13px; }
}

/* ---------- 10. rodapé ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter) 36px;
}
.legal {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(10.5px, .9vw, 12px); line-height: 1.8; letter-spacing: .04em;
  color: var(--text-dimmer); max-width: 110ch;
}
.legal-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-link:hover { color: var(--gold-ink); }
@media (min-width: 900px) { footer { padding: 30px var(--gutter) 44px; } }

/* ---------- 11. CTA sticky (mobile) ---------- */
/* Fora do handoff (o README marca como sugestão opcional). Mantido do
   projeto: já estava em produção e o script.js depende dele. Só abaixo
   de 900px, e some quando um CTA real está visível — o controle é por
   conjunto de CTAs visíveis, não por contador (bug já corrigido). */
.cta-sticky { display: none; }

@media (max-width: 899px) {
  .cta-sticky {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: var(--gold);
    color: var(--ink-plate);
    border-top: 1px solid var(--gold-deep);
    transform: translateY(100%);
    transition: transform 200ms ease, background-color 140ms ease;
    will-change: transform;
  }
  .cta-sticky.is-visible { transform: translateY(0); }

  /* espaço pra barra não cobrir o fim do disclaimer */
  body.has-sticky-cta footer { padding-bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .cta-sticky { transition: none; }
}

/* ---------- 12. scroll reveal ---------- */
/* Estado padrão = totalmente visível. Só fica oculto/animado quando o
   sistema NÃO pede motion reduzido — assim funciona sem JS e respeita
   prefers-reduced-motion por padrão, sem checar isso via script.
   Placas full-bleed e o CTA sticky nunca são animados. */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 560ms cubic-bezier(0.16, 0.8, 0.24, 1),
                transform 560ms cubic-bezier(0.16, 0.8, 0.24, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* stagger dos itens do card "O que você vai destrinchar" */
.list li:nth-child(1) { --reveal-delay: 0ms; }
.list li:nth-child(2) { --reveal-delay: 70ms; }
.list li:nth-child(3) { --reveal-delay: 140ms; }
.list li:nth-child(4) { --reveal-delay: 210ms; }
.list li:nth-child(5) { --reveal-delay: 280ms; }
