/* A Voz Que Eu Tinha Esquecido — landing page
   Direção: livro, noite que termina em amanhecer. Tema escuro único por identidade
   (a capa e a leitura noturna). Regra de forma: botões em pílula, imagens com 4px,
   seções sem cartões. Um acento só: dourado do amanhecer da capa. */

@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/ebgaramond-400-normal.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/ebgaramond-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --fundo: #0f1513;
  --fundo-2: #141c19;
  --linha: #26312c;
  --texto: #ece6d9;
  --texto-2: #b3ad9f;
  --acento: #e9ab58;
  --acento-texto: #17120a;
  --foco: #f3c98b;

  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largura: 68rem;
  --leitura: 36rem;
  --secao: clamp(4rem, 9vw, 7rem);
  --raio-img: 4px;
  --z-consentimento: 20;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--acento); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; border-radius: 2px; }

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pular {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--acento); color: var(--acento-texto);
  padding: .5rem .9rem; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.pular:focus { top: 1rem; }

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--acento); color: var(--acento-texto);
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, transform .12s ease;
}
.botao:hover { background: #f0bb70; }
.botao:active { transform: translateY(1px) scale(.99); }
.botao--leve {
  background: transparent; color: var(--texto); border-color: var(--linha);
}
.botao--leve:hover { background: var(--fundo-2); }
.botao--pequeno { min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .95rem; }

.link {
  background: none; border: 0; padding: 0; color: var(--texto-2);
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- títulos ---------- */
.secao__titulo {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem); line-height: 1.15;
  margin: 0 0 1.5rem; letter-spacing: -.005em;
}
.rotulo {
  margin: 0 0 1.5rem; color: var(--acento);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; gap: 2rem; align-items: center;
  max-width: var(--largura); margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem clamp(3rem, 7vw, 5rem);
  min-height: min(100dvh, 56rem);
}
.hero { overflow-x: clip; }
.hero::before {
  /* luz do amanhecer, tirada da capa: fica atrás do livro, nunca atrás do texto.
     inset 0 nas laterais: um valor negativo aqui cria rolagem horizontal no celular. */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: auto 0 0 0; height: 70%;
  background: radial-gradient(60% 55% at 72% 55%, rgba(233, 171, 88, .16), transparent 70%);
}
.hero__titulo {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 6.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em;
  margin: 0 0 1.25rem; max-width: 20ch; text-wrap: balance;
}
.hero__sub { margin: 0 0 2rem; color: var(--texto-2); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 34ch; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__capa { margin: 0; justify-self: center; order: -1; width: min(56vw, 15rem); }
.hero__capa img {
  border-radius: var(--raio-img);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(236, 230, 217, .06);
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 4rem; padding-top: 5rem; }
  .hero__capa { order: 0; width: min(100%, 22.5rem); justify-self: end; }
}
@media (max-width: 480px) {
  .hero__acoes .botao { width: 100%; }
}

/* ---------- trecho ---------- */
.trecho {
  max-width: var(--leitura); margin: 0 auto;
  padding: var(--secao) 1.25rem;
  border-top: 1px solid var(--linha);
}
.trecho__texto { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.35rem); line-height: 1.7; }
.trecho__texto p { margin: 0 0 1.2rem; }
.trecho__texto p:first-child::first-letter {
  float: left; font-size: 3.4em; line-height: .85; padding: .08em .12em 0 0; color: var(--acento);
}
.trecho__fala { font-style: italic; color: var(--texto); padding-left: 1rem; border-left: 2px solid var(--acento); }
.trecho__fecho { font-size: 1.15em; }
.trecho__continua { color: var(--texto-2); margin: 2rem 0 1.25rem; }

/* ---------- para quem ---------- */
.para-quem { max-width: var(--largura); margin: 0 auto; padding: var(--secao) 1.25rem; }
.para-quem__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-width: 44rem; }
.para-quem__lista li {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35;
  padding-left: 1.25rem; border-left: 2px solid var(--linha);
}
.para-quem__lista li:hover { border-left-color: var(--acento); }

/* ---------- capítulos ---------- */
.capitulos {
  max-width: var(--largura); margin: 0 auto; padding: var(--secao) 1.25rem;
  border-top: 1px solid var(--linha);
}
.capitulos__nota { color: var(--texto-2); max-width: 46ch; margin: -.5rem 0 2.5rem; }
.capitulos__grade { display: grid; gap: 2.5rem; }
.movimento__titulo {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.35rem; color: var(--acento); margin: 0 0 .75rem;
}
.movimento__lista { margin: 0; padding-left: 1.6rem; display: grid; gap: .45rem; }
.movimento__lista li { padding-left: .25rem; }
.movimento__lista li::marker { color: var(--texto-2); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .capitulos__grade { grid-template-columns: 1fr 1fr 1.3fr; gap: 3rem; }
}

/* ---------- autor ---------- */
.autor {
  max-width: var(--largura); margin: 0 auto; padding: var(--secao) 1.25rem;
  display: grid; gap: 2rem; align-items: center;
}
.autor__foto { width: min(100%, 22rem); border-radius: var(--raio-img); filter: saturate(.9); }
.autor__texto p { color: var(--texto-2); max-width: 44ch; margin: 0 0 1rem; }
.autor__texto p:first-of-type { color: var(--texto); }
@media (min-width: 760px) {
  .autor { grid-template-columns: 22rem 1fr; gap: 4rem; }
}

/* ---------- fatos ---------- */
.fatos {
  max-width: var(--largura); margin: 0 auto; padding: var(--secao) 1.25rem;
  border-top: 1px solid var(--linha);
}
.fatos__grade { display: grid; gap: 1px; margin: 0; background: var(--linha); border: 1px solid var(--linha); }
.fato { background: var(--fundo); padding: 1.5rem 1.25rem; }
.fato dt { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.1rem); line-height: 1.1; margin-bottom: .4rem; }
.fato dd { margin: 0; color: var(--texto-2); }
@media (min-width: 640px) { .fatos__grade { grid-template-columns: 1fr 1fr; } }

/* ---------- perguntas ---------- */
.perguntas { max-width: var(--leitura); margin: 0 auto; padding: var(--secao) 1.25rem; }
.perguntas details { border-bottom: 1px solid var(--linha); }
.perguntas summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-weight: 600;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  color: var(--acento); font-size: 1.4rem; font-weight: 400;
}
.perguntas details[open] summary::after { content: "−"; }
.perguntas details p { margin: 0 0 1.25rem; color: var(--texto-2); }

/* ---------- fim ---------- */
.fim {
  text-align: center; padding: var(--secao) 1.25rem calc(var(--secao) + 1rem);
  border-top: 1px solid var(--linha);
  background: radial-gradient(50% 60% at 50% 100%, rgba(233, 171, 88, .12), transparent 70%);
}
.fim__citacao { margin: 0 auto 2.5rem; max-width: 30ch; }
.fim__citacao p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.25; margin: 0 0 1rem;
}
.fim__citacao footer { color: var(--texto-2); font-size: .95rem; }

/* ---------- rodapé ---------- */
.rodape {
  max-width: var(--largura); margin: 0 auto; padding: 2.5rem 1.25rem 7rem;
  color: var(--texto-2); font-size: .9rem; border-top: 1px solid var(--linha);
}
.rodape nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .75rem 0; }
.rodape a { color: var(--texto-2); }
.rodape__marca { font-size: .8rem; opacity: .8; }

/* ---------- consentimento ---------- */
.consentimento {
  position: fixed; z-index: var(--z-consentimento);
  left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: 34rem; margin: 0 auto; padding: 1rem 1.1rem;
  background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  font-size: .95rem;
}
.consentimento[hidden] { display: none; }
.consentimento p { margin: 0 0 .85rem; color: var(--texto); }
.consentimento__acoes { display: flex; gap: .6rem; }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- como funciona ---------- */
.como { max-width: var(--leitura); margin: 0 auto; padding: var(--secao) 1.25rem 0; }
.como__passos { margin: 0; padding-left: 1.4rem; display: grid; gap: .9rem; font-size: 1.1rem; }
.como__passos li::marker { color: var(--acento); font-weight: 600; }
.como__passos strong { color: var(--texto); }
.como__garantia { margin: 1.5rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--linha); border-radius: 10px; color: var(--texto-2); }

/* Teste de destino (27/09): só a versão sorteada aparece. Sem sorteio (JS bloqueado), fica a Hotmart. */
html:not([data-variante="amazon"]) [data-variante="amazon"],
html[data-variante="amazon"] [data-variante="hotmart"] { display: none !important; }

.nota-compra { margin: .9rem 0 0; max-width: 34rem; color: var(--texto-2); font-size: .9rem; line-height: 1.5; }
.nota-compra a,
.como__garantia a { color: var(--texto); text-decoration: underline; text-underline-offset: .2em; }
.nota-compra a:hover,
.como__garantia a:hover { color: var(--acento); }
