/* Insolitudes · página de venda
   Duas superfícies alternam: a NOITE (preto e ouro da capa, o palco do arlequim)
   e o PAPEL (creme de folheto de cordel). */

:root {
  --noite: #0c0c0d;
  --noite-2: #141313;
  --ouro: #edb55d;
  --ouro-tenue: rgba(237, 181, 93, .22);
  --nevoa: #b9b1a1;
  --papel: #ece2cb;
  --cartao: #f5eedc;
  --tinta: #1d1812;
  --tinta-suave: #5b5145;
  --rubro: #a63f26;

  --display: "Cormorant Garamond", "Garamond", Georgia, serif;
  --texto: "EB Garamond", "Garamond", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --largura: 1180px;
  --raio: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--papel);
  font-family: var(--texto);
  font-size: clamp(18px, 1.1vw + 12px, 20px);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
.papel :focus-visible { outline-color: var(--rubro); }

/* Superfícies ----------------------------------------------------------- */
.noite { background: var(--noite); color: var(--papel); }
.papel {
  background: var(--papel);
  color: var(--tinta);
  background-image:
    radial-gradient(rgba(60, 40, 10, .05) 1px, transparent 1.4px),
    radial-gradient(rgba(60, 40, 10, .04) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}
section { padding: clamp(72px, 10vw, 128px) var(--gutter); position: relative; }

.rotulo {
  font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ouro); margin-bottom: 14px;
}
.papel .rotulo { color: var(--rubro); }

.sec-cabeca { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.sec-cabeca h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.sec-lede { margin-top: 18px; font-size: 1.05em; color: var(--tinta-suave); }

/* Botões ---------------------------------------------------------------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border: 1px solid var(--ouro); border-radius: var(--raio);
  background: var(--ouro); color: var(--noite);
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: .05em; text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.botao:hover { background: #f6c97c; transform: translateY(-1px); }
.botao-linha { background: transparent; color: var(--ouro); }
.botao-linha:hover { background: var(--ouro-tenue); }
.papel .botao:not(.botao-linha) { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.papel .botao:not(.botao-linha):hover { background: #000; }
.papel .botao-linha { color: var(--rubro); border-color: var(--rubro); }
.papel .botao-linha:hover { background: rgba(166, 63, 38, .08); }
.botao-mini { padding: .5em 1em; font-size: .92rem; }
.botao[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.botao.pendente { flex-wrap: wrap; row-gap: 0; }
.botao.pendente::after { content: "em breve"; flex-basis: 100%; text-align: center; font-weight: 500; font-size: .72em; letter-spacing: .12em; text-transform: uppercase; }

/* Topo ------------------------------------------------------------------ */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(12, 12, 13, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(237, 181, 93, .1);
}
.topo-marca { font-family: var(--display); font-weight: 700; letter-spacing: .2em; color: var(--ouro); font-size: 1rem; }

/* 1 · Hero -------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto; padding-top: 110px;
}
.sobretitulo { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.hero-sub { margin-top: 22px; max-width: 32em; font-size: 1.12em; color: var(--nevoa); }

.bala { margin: clamp(26px, 3.6vw, 40px) 0; padding-left: 22px; border-left: 1px solid var(--ouro-tenue); }
.bala-verso {
  font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  animation: verso .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.6s + var(--i) * .7s);
}
.bala figcaption { margin-top: 8px; font-size: .82rem; color: var(--nevoa); letter-spacing: .04em; opacity: 0; animation: verso .6s 3.8s forwards; }
@keyframes verso { to { opacity: 1; transform: none; } }
.alvo { position: relative; color: var(--ouro); white-space: nowrap; }
.alvo svg { position: absolute; left: 32%; top: -42%; width: 118%; height: 190%; overflow: visible; pointer-events: none; }
.alvo path { fill: none; stroke: var(--ouro); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: risco 1s 3.2s ease-out forwards; }
@keyframes risco { to { stroke-dashoffset: 0; } }

.hero-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-formatos { font-size: .9rem; color: var(--nevoa); letter-spacing: .03em; }

.hero-livro { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; perspective: 1600px; min-height: 520px; padding: 40px 0; }
.hero-halo {
  position: absolute; width: 130%; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%);
  opacity: .16; mix-blend-mode: lighten; filter: blur(1px);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
}

/* Livro 3D (hero e oferta) */
.livro-3d {
  position: relative; width: min(330px, 70vw);
  transform: rotateY(-20deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
  box-shadow: 40px 40px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(237, 181, 93, .08);
  animation: surge 1.4s .2s ease-out both;
}
.livro-3d:hover { transform: rotateY(-6deg) rotateX(2deg); }
.livro-3d img { width: 100%; border-radius: 1px 3px 3px 1px; }
.livro-3d::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22px; transform-origin: left; transform: rotateY(90deg);
  background: linear-gradient(90deg, #070707, #1a1918);
}
.livro-3d::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .12) 0, rgba(255, 255, 255, 0) 3%, rgba(0, 0, 0, .25) 4%, rgba(0, 0, 0, 0) 7%);
}
@keyframes surge { from { opacity: 0; transform: rotateY(-35deg) rotateX(6deg) translateY(20px); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 92px; min-height: auto; }
  .hero-livro { order: -1; min-height: 0; padding: 12px 0 8px; }
  .livro-3d { width: min(220px, 56vw); }
}

/* 2 · Para quem é ------------------------------------------------------- */
.lista-quem { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 0; }
.lista-quem li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(29, 24, 18, .16); }
.lista-quem li:first-child { border-top: 1px solid rgba(29, 24, 18, .16); }
.lista-quem p { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.3; }
.marca { color: var(--rubro); font-size: 1rem; }

/* 3 · Ganchos ----------------------------------------------------------- */
.dentro { padding-top: 0; }
.ganchos {
  max-width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px);
}
.gancho {
  position: relative; background: var(--cartao); border: 1px solid rgba(29, 24, 18, .14); border-radius: var(--raio);
  padding: clamp(24px, 2.6vw, 34px); padding-top: 46px;
  box-shadow: 0 18px 40px -30px rgba(60, 40, 10, .5);
}
.gancho-pag {
  position: absolute; top: 16px; right: 18px; font-family: var(--display); font-style: italic; font-size: .95rem; color: var(--tinta-suave);
}
.gancho h3 { font-size: clamp(1.45rem, 2vw, 1.7rem); margin-bottom: 12px; }
.gancho p { color: var(--tinta-suave); font-size: .98em; }
.gancho-citacao { margin-top: 14px; font-family: var(--display); font-style: italic; font-size: 1.35rem !important; line-height: 1.3; color: var(--rubro) !important; }
.nos-amostra {
  margin-top: 16px; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 18px;
  font-size: .95rem; line-height: 1.5; color: var(--tinta);
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
}
.gancho-escuro { background: #0b0b0b; border-color: #000; }
.gancho-escuro h3 { color: #d8cfbd; }
.gancho-escuro p { color: #8a8478; }
.gancho-escuro .gancho-pag { color: #6b665c; }
.gato { margin-top: 16px; font-family: var(--display); font-size: 1.7rem !important; line-height: 1.3; color: #77716a !important; }
.olho {
  position: relative; display: inline-block; width: .62em; height: .78em; margin: 0 .04em; vertical-align: -.06em;
  border: .08em solid var(--ouro); border-radius: 50%;
  box-shadow: 0 0 18px rgba(237, 181, 93, .55), inset 0 0 10px rgba(237, 181, 93, .35);
  background: radial-gradient(circle, rgba(237, 181, 93, .35), transparent 70%);
  transition: transform .12s;
}
.olho i {
  position: absolute; left: 50%; top: 50%; width: .14em; height: .42em; margin: -.21em 0 0 -.07em;
  background: #0b0b0b; border-radius: 50%; transform: translate(var(--ox, 0), var(--oy, 0));
}
.olho.pisca { transform: scaleY(.08); }
@media (max-width: 960px) { .ganchos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ganchos { grid-template-columns: 1fr; } }

/* 4 · Arlequinsulado (demo travada) ------------------------------------ */
.vida {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto;
}
.vida h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 16px; }
.vida-lede { color: var(--nevoa); }
.vida-trilho { display: block; margin: 30px 0 10px; }
.vida-trilho input { width: 100%; accent-color: var(--ouro); height: 28px; cursor: pointer; }
.vida-marcas { display: flex; justify-content: space-between; font-family: var(--display); font-style: italic; color: var(--nevoa); font-size: .95rem; }
.vida-contador { margin-top: 10px; color: var(--nevoa); font-size: .9rem; font-variant-numeric: lining-nums; }
.vida-palco { position: relative; }
.vida-estrofe {
  margin: 0; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--ouro-tenue); border-radius: var(--raio);
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; min-height: 7.2em;
  display: flex; flex-direction: column; justify-content: center; transition: filter .4s, opacity .4s;
}
.vida-estrofe span { display: block; }
.vida-estrofe .pergunta { color: var(--ouro); font-style: italic; }
.vida-estrofe.troca span { animation: verso .45s ease-out both; }
.vida-estrofe.troca span:nth-child(4) { animation-delay: .15s; }
.vida-estrofe.borrada { filter: blur(9px); opacity: .35; user-select: none; }
.vida-tranca {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  text-align: center; padding: 24px;
}
.vida-tranca-titulo { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--ouro); }
.vida-tranca p:not(.vida-tranca-titulo) { color: var(--nevoa); margin-bottom: 8px; }
@media (max-width: 800px) { .vida { grid-template-columns: 1fr; } .vida-marcas span:nth-child(2), .vida-marcas span:nth-child(4) { display: none; } }

/* 5 · Amostra ----------------------------------------------------------- */
.folha-palco { max-width: 520px; margin: 0 auto; perspective: 1400px; }
.folha {
  position: relative; background: #fbf7ec; border: 1px solid rgba(29, 24, 18, .14); border-radius: 2px 6px 6px 2px;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px) clamp(40px, 5vw, 56px);
  min-height: 460px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: inset 14px 0 18px -14px rgba(60, 40, 10, .3), 0 24px 50px -32px rgba(60, 40, 10, .6);
  transform-origin: left center;
}
.folha.vira { animation: vira .55s cubic-bezier(.3, .6, .3, 1); }
@keyframes vira { from { opacity: 0; transform: rotateY(-28deg) translateX(-12px); } }
.folha-pag { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: .85rem; color: var(--tinta-suave); font-variant-numeric: lining-nums; }
.folha h3 { font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.folha p { font-size: 1.2em; line-height: 1.6; }
.ouro { color: var(--rubro); }
.perdra {
  display: flex; justify-content: center; margin: 0 0 26px;
  font-family: var(--display); font-size: clamp(3.6rem, 9vw, 5.4rem); line-height: 1; font-weight: 500; color: var(--tinta);
}
.perdra span { display: inline-block; will-change: transform; }
.perdra span:nth-child(3), .perdra span:nth-child(4) { color: var(--rubro); }
.sozinho { display: block; padding-left: 7em; font-style: italic; color: var(--rubro); }
.acena { display: inline-block; font-style: italic; transform-origin: 20% 100%; animation: acena 3.4s ease-in-out infinite; }
@keyframes acena { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }
.folha-fim { align-items: center; text-align: center; gap: 10px; }
.folha-fim-titulo { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.2rem) !important; line-height: 1.2; }
.folha-fim p:not(.folha-fim-titulo) { color: var(--tinta-suave); margin-bottom: 14px; }
.folha-controles { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.folha-controles .botao { padding: .6em 1.2em; font-size: 1rem; }
.folha-contador { font-variant-numeric: lining-nums; color: var(--tinta-suave); font-size: .95rem; min-width: 3.5em; text-align: center; }

/* 6 · Depoimentos ------------------------------------------------------- */
.depoimentos-lista { max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.depoimento { margin: 0; padding: 28px; border: 1px solid var(--ouro-tenue); border-radius: var(--raio); }
.depoimento p { font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1.35; }
.depoimento cite { color: var(--ouro); }

/* 7 · Autor ------------------------------------------------------------- */
.autor { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto; }
.autor-foto img { width: 100%; border-radius: 2px; filter: sepia(.18) saturate(.85); box-shadow: 0 30px 60px -30px #000; outline: 1px solid var(--ouro-tenue); outline-offset: 10px; }
.autor h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--ouro); margin-bottom: 22px; font-weight: 500; }
.autor-texto p { color: var(--nevoa); }
.autor-texto p + p { margin-top: 1em; }
.autor-texto .linhagem { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ouro-tenue); font-family: var(--display); font-style: italic; font-size: 1.15rem; line-height: 1.6; color: var(--papel); }
.linhagem i { font-style: normal; color: var(--ouro); padding: 0 .2em; }
@media (max-width: 800px) { .autor { grid-template-columns: 1fr; } .autor-foto { max-width: 360px; } }

/* 8 · Oferta ------------------------------------------------------------ */
.oferta { padding-top: 0; }
.oferta-caixa {
  max-width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: clamp(32px, 5vw, 72px); border: 1px solid var(--ouro-tenue); border-radius: 6px;
  background: radial-gradient(120% 90% at 20% 30%, rgba(237, 181, 93, .08), transparent 60%), var(--noite-2);
}
.oferta-capa { display: flex; justify-content: center; perspective: 1600px; }
.oferta h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--ouro); font-weight: 500; margin-bottom: 22px; }
.leva { list-style: none; margin: 0 0 26px; padding: 0; }
.leva li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid rgba(237, 181, 93, .1); }
.leva li::before { content: "✓"; position: absolute; left: 2px; top: 8px; color: var(--ouro); font-weight: 700; }
.preco { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--papel); margin-bottom: 18px; font-variant-numeric: lining-nums; }
.compra { display: flex; flex-wrap: wrap; gap: 12px; }
.oferta-nota { margin-top: 18px; font-size: .9rem; color: var(--nevoa); }
@media (max-width: 800px) {
  .oferta-caixa { grid-template-columns: 1fr; padding: 28px 20px; }
  .oferta-capa .livro-3d { width: min(200px, 52vw); }
  .compra .botao { flex: 1 1 100%; }
}

/* 9 · Perguntas --------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(29, 24, 18, .2); }
.faq details:first-child { border-top: 1px solid rgba(29, 24, 18, .2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--rubro); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--tinta-suave); max-width: 40em; }

/* 10 · CTA final -------------------------------------------------------- */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final-arte { width: min(640px, 100%); mix-blend-mode: lighten; margin-bottom: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.final-verso { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--ouro); line-height: 1.2; }
.final-sub { color: var(--nevoa); margin-bottom: 14px; font-size: 1.1em; }

/* Rodapé ---------------------------------------------------------------- */
.rodape { padding: 56px var(--gutter) 96px; text-align: center; border-top: 1px solid rgba(237, 181, 93, .1); }
.rodape-epigrafe { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--papel); }
cite { display: block; margin-top: 10px; font-family: var(--texto); font-style: normal; font-size: .82rem; letter-spacing: .04em; color: var(--nevoa); }
.rodape-ficha { margin-top: 24px; font-size: .85rem; color: var(--nevoa); letter-spacing: .04em; }
.rodape a { color: var(--ouro); text-decoration: none; }

/* Botão flutuante (só celular) ------------------------------------------ */
.flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  padding: .75em 1.3em; border-radius: 999px; background: var(--ouro); color: var(--noite);
  font-family: var(--display); font-weight: 700; text-decoration: none; letter-spacing: .04em;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7);
  transform: translateY(160%); transition: transform .35s ease;
}
.flutuante.on { transform: none; }
@media (max-width: 760px) { .flutuante { display: block; } }

/* Revelação ao rolar ---------------------------------------------------- */
[data-revela] { transition: opacity .8s ease, transform .8s ease; }
.js [data-revela]:not(.visivel) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
