/* ============ Fontes (auto-hospedadas, sem Google Fonts) ============ */
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Libre Bodoni"; src: url("/assets/fonts/libre-bodoni-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Bodoni"; src: url("/assets/fonts/libre-bodoni-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ============ Tokens (cores aproximadas da capa — confirmar com o designer) ============ */
:root {
  --ink: #1f1d1d;
  --char: #2a2828;
  --char-2: #363333;
  --red: #c1272d;
  --red-dark: #9e1f24;
  --cream: #efe1d0;
  --paper: #f6efe6;
  --paper-2: #ebe1d4;
  --text: #e9e2d9;
  --muted: #b3aaa0;
  --dark-text: #262222;
  --dark-muted: #6a615a;
  --ok: #2f7a4b;
  --cta: #ff6a00;        /* laranja vivo dos botões de compra (texto escuro: contraste 5,8:1) */
  --cta-hover: #ff8533;
  --cta-text: #1f1d1d;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --quote: "Libre Bodoni", Georgia, serif;

  --radius: 10px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
.paper { background: var(--paper); color: var(--dark-text); }
.red { color: var(--red); }
strong, b { font-weight: 600; }

/* ============ Tipografia ============ */
.kicker { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
.kicker--light { color: var(--cream); opacity: .75; }
.kicker--pre { display: flex; align-items: center; flex-wrap: wrap; }
.kicker__pre { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .06em; color: var(--cream); background: var(--red); padding: 6px 12px 5px; border-radius: 3px; margin-right: .3em; }
.causa .kicker--light { color: var(--cream); opacity: .9; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .005em; color: var(--cream); margin: 0 0 24px; }
.display em { font-style: normal; }
.display--md { font-size: clamp(36px, 5vw, 60px); }
.display--sm { font-size: 36px; }
.display--dark { color: var(--dark-text); }
.display small { display: block; font-family: var(--sans); font-size: 15px; letter-spacing: .12em; color: var(--dark-muted); margin-top: 10px; }
.lead { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.5; margin: 0 0 20px; }
.lead--dark { color: var(--dark-text); }
p { margin: 0 0 16px; }

/* ============ Botões ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--cta); color: var(--cta-text); font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-decoration: none; border: 0; border-radius: 999px; padding: 16px 28px; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.paper .btn:focus-visible, .paper input:focus-visible, .paper select:focus-visible, .paper button:focus-visible { outline-color: var(--red); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ============ Topo ============ */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(31, 29, 29, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(239, 225, 208, .08); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; }
.topbar__name { font-weight: 600; font-size: 12px; letter-spacing: .42em; text-transform: uppercase; text-decoration: none; color: var(--cream); white-space: nowrap; }
.topbar__nav { display: flex; gap: 28px; font-size: 13px; }
.topbar__nav a { text-decoration: none; color: var(--muted); }
.topbar__nav a:hover { color: var(--cream); }

/* ============ Hero ============ */
.hero { padding: 72px 0 96px; background: radial-gradient(ellipse at 75% 40%, #3a3636 0%, var(--ink) 62%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .display { font-size: clamp(54px, 8.4vw, 112px); margin-bottom: 28px; }
.hero .display span { display: block; }
.hero__sub { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 21px); color: var(--text); max-width: 32em; }
.hero__sub strong { color: var(--cream); }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: 32px 0 28px; }
.hero__ship { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.seal { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); border: 1px solid rgba(239, 225, 208, .18); border-radius: 999px; padding: 10px 18px; margin: 0; }
.seal__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

/* Livro 3D (capa recomposta em HTML a partir da arte) */
.hero__book { perspective: 1600px; display: flex; justify-content: center; }
.book3d { position: relative; width: min(380px, 78vw); aspect-ratio: 16 / 23; transform: rotateY(-22deg) rotateX(3deg); transform-style: preserve-3d; transition: transform .6s ease; }
.book3d:hover { transform: rotateY(-8deg) rotateX(1deg); }
.book3d__cover { position: absolute; inset: 0; background: #1c1b1b; overflow: hidden; border-radius: 2px 6px 6px 2px; box-shadow: 30px 30px 60px rgba(0, 0, 0, .55), inset 4px 0 8px rgba(255, 255, 255, .06); container-type: inline-size; }
.book3d__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book3d__spine { position: absolute; top: 0; left: 0; width: 11.3%; height: 100%; background: var(--red) url("/assets/img/lombada.webp?v=2") center / 100% 100% no-repeat; transform: rotateY(-90deg); transform-origin: left; }

/* ============ Contador ============ */
.contador { background: var(--char); padding: 36px 0; border-top: 1px solid rgba(239, 225, 208, .08); }
.contador__in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.contador__num { margin: 0; font-family: var(--display); font-size: clamp(56px, 7vw, 84px); line-height: .9; color: var(--cream); display: flex; flex-direction: column; }
.contador__num small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--red); margin-top: 10px; }
.contador__bar { height: 14px; background: rgba(239, 225, 208, .12); border-radius: 999px; overflow: hidden; }
.contador__bar span { display: block; height: 100%; width: 14%; background: linear-gradient(90deg, var(--red-dark), var(--red)); border-radius: 999px; transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.contador__legenda { margin: 12px 0 0; font-size: 15px; color: var(--text); }
.contador__legenda b { color: var(--cream); }
.contador__reais { color: var(--muted); }
@media (max-width: 900px) {
  .contador__in { grid-template-columns: 1fr; gap: 18px; }
  .contador__cta { justify-self: start; }
}

/* ============ Causa ============ */
.causa { background: var(--red); color: #fff; }
.causa .display { color: var(--cream); }
.causa__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.causa__text p { color: #fff; }
.causa__quote { margin: 32px 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--cream); font-family: var(--quote); font-weight: 700; font-style: italic; font-size: 21px; line-height: 1.45; color: var(--cream); }
.causa__quote cite { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-top: 12px; opacity: .85; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
details p a, .footer a { color: var(--cream); }

/* ============ Livro ============ */
.folha__synopsis { max-width: 42em; }
.partes { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--paper-2); border: 1px solid var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.partes li { background: var(--paper); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 10px; }
.partes__n { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--red); }
.partes__t { font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1.02; color: var(--dark-text); }
.partes__d { font-family: var(--serif); font-size: 16px; color: var(--dark-muted); }

/* ============ Folheie (duplas) ============ */
.folheie { background: var(--char); }
.folheie__hint { color: var(--muted); font-size: 14px; display: none; }
.spreads { display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 32px; scrollbar-color: var(--red) transparent; }
.spread { flex: none; width: min(920px, 88vw, 100vh); margin: 0; scroll-snap-align: center; display: grid; grid-template-columns: 1fr 1fr; position: relative; container-type: inline-size; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.spread::after { content: ""; position: absolute; top: 0; bottom: 34px; left: 50%; width: 60px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .16) 45%, rgba(0, 0, 0, .22) 50%, rgba(0, 0, 0, .16) 55%, transparent); pointer-events: none; }
.spread figcaption { grid-column: 1 / -1; background: var(--char); color: var(--muted); font-size: 13px; letter-spacing: .08em; padding-top: 12px; height: 34px; }
/* Páginas da Introdução: 27 linhas por página com as mesmas quebras do miolo diagramado (cqw = largura útil da página) */
.page { background: #fbf8f3; color: #231f20; aspect-ratio: 442 / 646; overflow: hidden; position: relative; font-family: var(--serif); container-type: inline-size; }
.page--esq { padding: 17% 9.9% 10% 8%; }
.page--dir { padding: 17% 8% 10% 9.9%; }
.page__body { margin: 0; font-size: 2.9cqw; line-height: 1.82; text-align: justify; hyphens: auto; text-indent: 2.64em; }
.page__body--cont { text-indent: 0; }
.page__body--brk { text-align-last: justify; }
.page__run, .page__num { position: absolute; margin: 0; font-family: var(--sans); color: #6b6566; }
.page__run { top: 6.2%; right: 8%; font-size: 1.58cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.page__num { top: 94%; font-size: 1.8cqw; text-align: center; }
.page--esq .page__num { left: 8%; right: 9.9%; }
.page--dir .page__num { left: 9.9%; right: 8%; }
.page--abertura { padding: 0; }
.page--abertura::before { content: ""; position: absolute; top: 8.5%; right: 12.9%; bottom: 10.1%; left: 15.8%; background: #231f20; }
.page--abertura .page__num { left: 15.8%; right: 12.9%; }
.page__bloco { position: absolute; top: 45.8%; left: 19%; right: 15.8%; color: #fff; }
.page__secao { margin: 0; padding-bottom: 1.6cqw; border-bottom: 1px solid rgba(255, 255, 255, .55); font-family: var(--sans); font-weight: 600; font-size: 2.26cqw; letter-spacing: .06em; text-transform: uppercase; }
.page__titulo { margin: 1.4cqw 0 0; font-family: "Bodoni Moda", var(--serif); font-weight: 400; font-size: 5.75cqw; line-height: 1.1; white-space: nowrap; color: #fff; }
.page__rosto { margin: 34% 0 0; padding: 0 14%; text-align: center; font-family: "Bodoni Moda", var(--serif); font-size: 3.6cqw; line-height: 1.35; color: #231f20; }

/* Leitor de páginas (montado pelo main.js a partir das páginas acima). Sem JS, valem as páginas originais. */
.folheie--folha .spreads, .folheie--folha .folheie__hint { display: none; }
.folha__wrap { padding-top: 8px; padding-bottom: 8px; }
.folha { --paper: #fbf8f3; --tinta: #231f20; --pt: 46px; --pb: 46px; }
.folha__vp { position: relative; width: calc(var(--P) * var(--n)); height: var(--H); margin: 0 auto; overflow: hidden; background: var(--paper); border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.folha__vp:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
/* lombada no meio do livro aberto */
.folha.is-duplo .folha__vp::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 70px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .07) 40%, rgba(0, 0, 0, .16) 50%, rgba(0, 0, 0, .07) 60%, transparent); pointer-events: none; z-index: 2; }
.folha__flow { position: absolute; top: var(--pt); left: var(--px); height: calc(var(--H) - var(--pt) - var(--pb)); width: calc(var(--P) - 2 * var(--px)); column-width: calc(var(--P) - 2 * var(--px)); column-gap: calc(2 * var(--px)); column-fill: auto; color: var(--tinta); transition: transform .5s cubic-bezier(.3, .7, .2, 1); will-change: transform; }

.folha__rosto, .folha__abertura, .folha__fim { height: 100%; break-inside: avoid; box-sizing: border-box; }
.folha__rosto { display: none; break-after: column; align-items: center; justify-content: center; text-align: center; }
.folha.is-duplo .folha__rosto { display: flex; }
.folha__rosto p { margin: 0; font-family: "Bodoni Moda", var(--serif); font-size: 22px; line-height: 1.35; }
.folha__abertura { break-after: column; background: var(--tinta); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 9% 22%; }
.folha__secao { margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .55); font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.folha__titulo { margin: 12px 0 0; font-family: "Bodoni Moda", var(--serif); font-weight: 400; font-size: clamp(26px, calc(var(--P) * .072), 34px); line-height: 1.12; color: #fff; }

.folha__texto p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.62; text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-indent: 1.6em; orphans: 2; widows: 2; }
.folha__texto p:first-child { text-indent: 0; }
.folha__texto p:first-child::first-letter { float: left; font-family: "Bodoni Moda", var(--serif); font-size: 3.3em; line-height: .8; margin: .07em .08em 0 0; color: var(--red); }
.folha__texto i { font-style: italic; }

.folha__fim { break-before: column; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.folha__fim-k { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
.folha__fim-t { margin: 10px 0 26px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--dark-muted); max-width: 16em; }

/* cabeçalho e número de cada página visível */
.folha__slots { position: absolute; inset: 0; display: flex; pointer-events: none; }
.folha__slot { position: relative; width: var(--P); flex: none; }
.folha__run, .folha__num { position: absolute; font-family: var(--sans); color: #8a8282; opacity: 0; transition: opacity .2s; }
.folha__run { top: 18px; right: var(--px); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.folha__num { bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11px; }
.folha__slot.is-texto .folha__run, .folha__slot.is-texto .folha__num { opacity: 1; }
.folha.is-duplo .folha__slot:first-child .folha__run { right: auto; left: var(--px); }

/* controles */
.folha__ctrl { display: flex; align-items: center; gap: 16px; width: calc(var(--P) * var(--n)); max-width: 100%; margin: 22px auto 0; }
.folha__nav { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(239, 225, 208, .5); background: transparent; color: var(--cream); font-size: 26px; line-height: 1; padding: 0 0 3px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.folha__nav:hover:not(:disabled) { background: var(--cream); color: var(--dark-text); border-color: var(--cream); }
.folha__nav:disabled { opacity: .25; cursor: default; }
.folha__info { flex: 1; text-align: center; }
.folha__prog { height: 3px; background: rgba(239, 225, 208, .15); border-radius: 3px; overflow: hidden; }
.folha__prog span { display: block; height: 100%; width: 0; background: var(--red); transition: width .4s ease; }
.folha__pag { margin: 10px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.folha__dica { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); opacity: .8; }
@media (max-width: 640px) {
  .folha__texto p { font-size: 16.5px; line-height: 1.6; text-align: left; }
  .folha__nav { width: 42px; height: 42px; }
}

/* ============ Depoimentos (holofote: cada um ganha o destaque por vez) ============ */
.depo__stage { display: grid; background: var(--dark-text); color: var(--cream); border-radius: var(--radius); padding: 48px 56px 44px; position: relative; }
.depo__stage::before { content: "“"; position: absolute; top: 4px; left: 22px; font-family: var(--quote); font-size: 120px; line-height: 1; color: var(--red); opacity: .55; pointer-events: none; }
.depo__item { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.depo__item + .depo__item { margin-top: 40px; }
.depo__item p { font-family: var(--quote); font-weight: 700; font-size: clamp(19px, 2.1vw, 25px); line-height: 1.45; margin: 0 0 22px; }
.depo__item cite { font-style: normal; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.depo__item cite b { font-size: 13px; color: var(--cream); letter-spacing: .1em; }
.depo__tabs { display: none; }

/* Com JS: todos os depoimentos ocupam a mesma área (altura do maior), um visível por vez */
.depo--live .depo__item { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.depo--live .depo__item.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease .2s, transform .4s ease .2s, visibility 0s; }
.depo--live .depo__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.depo__tab { position: relative; text-align: left; background: #fff; border: 0; border-radius: var(--radius); padding: 18px 16px 16px; cursor: pointer; font: inherit; color: var(--dark-muted); display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.depo__tab::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--paper-2); }
.depo__tab::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--red); }
.depo__tab b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-text); }
.depo__tab span { font-size: 12px; line-height: 1.35; }
.depo__tab:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(38, 34, 34, .12); }
.depo__tab:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.depo__tab.is-active { background: var(--dark-text); color: var(--muted); }
.depo__tab.is-active b { color: var(--cream); }
.depo__tab.is-active::after { width: 100%; }
/* barra de tempo: enche enquanto o depoimento está em destaque e passa para o próximo */
.depo--auto .depo__tab.is-active::after { animation: depo-tempo 9s linear forwards; }
.depo--paused .depo__tab.is-active::after { animation-play-state: paused; }
@keyframes depo-tempo { from { width: 0; } to { width: 100%; } }

/* ============ Autor ============ */
.autor__grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.autor__photo img { border-radius: var(--radius); filter: contrast(1.02); }
.autor p:not(.kicker):not(.lead):not(.autor__agenda) { color: var(--text); font-family: var(--serif); font-size: 18px; }
.autor__agenda { margin: 32px 0 0; padding: 18px 22px; border-left: 3px solid var(--red); background: rgba(239, 225, 208, .06); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 18px; color: var(--cream); }
.autor__agenda-tag { display: block; margin-bottom: 6px; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--red); }

/* ============ Compra ============ */
.compra__wrap { max-width: 820px; }
.compra__intro { font-family: var(--serif); font-size: 18px; color: var(--dark-muted); }
.steps { display: flex; list-style: none; padding: 0; margin: 36px 0 20px; gap: 8px; counter-reset: s; }
.steps__item { flex: 1; font-size: 13px; font-weight: 600; color: var(--dark-muted); border-top: 3px solid var(--paper-2); padding-top: 10px; counter-increment: s; }
.steps__item::before { content: counter(s) ". "; }
.steps__item.is-active, .steps__item.is-done { color: var(--dark-text); border-top-color: var(--red); }
.card { background: #fff; color: var(--dark-text); border-radius: 14px; padding: 36px; box-shadow: 0 1px 0 var(--paper-2), 0 20px 40px -20px rgba(60, 40, 30, .18); }
.card--ok { border-top: 4px solid var(--ok); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d8cfc4; border-radius: 999px; padding: 10px 18px; margin: 0 8px 8px 0; cursor: pointer; font-size: 14px; }
.chip:has(input:checked) { border-color: var(--red); background: #fdf3f2; }
.chip input { accent-color: var(--red); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 16px; }
.field { grid-column: span 2; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field--wide { grid-column: span 3; }
.field--sm { grid-column: span 1; }
label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--dark-text); }
.opt { font-weight: 400; color: var(--dark-muted); }
input, select { font: inherit; font-size: 16px; color: var(--dark-text); background: #fff; border: 1px solid #d8cfc4; border-radius: 8px; padding: 12px 14px; width: 100%; min-width: 0; }
input:focus, select:focus { border-color: var(--red); }
input.is-invalid, select.is-invalid { border-color: var(--red); background: #fff7f6; }
.hint { font-size: 13px; color: var(--dark-muted); margin: 6px 0 0; }
.qty { margin: 28px 0 8px; padding: 22px 0; border-top: 1px solid var(--paper-2); border-bottom: 1px solid var(--paper-2); display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px 20px; }
.qty label { margin: 0; }
.qty__ctrl { display: flex; align-items: center; }
.qty__ctrl input { width: 72px; text-align: center; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.qty__ctrl input::-webkit-inner-spin-button, .qty__ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn { width: 44px; height: 48px; border: 1px solid #d8cfc4; background: var(--paper); font-size: 20px; cursor: pointer; color: var(--dark-text); }
.qty__btn:first-child { border-radius: 8px 0 0 8px; border-right: 0; }
.qty__btn:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.qty__total { margin: 0; text-align: right; font-size: 15px; }
.qty__total strong { font-family: var(--display); font-size: 30px; font-weight: 400; margin-left: 6px; }
.qty__total span { display: block; font-size: 12px; color: var(--ok); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 20px 0; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--red); }
.turnstile { margin: 0 0 16px; min-height: 65px; }
.form-error { background: #fdecea; color: #8a1c1f; border-radius: 8px; padding: 12px 14px; font-size: 14px; }

.pay__order { font-size: 14px; color: var(--dark-muted); margin: 0; letter-spacing: .04em; }
.pay__order strong { color: var(--dark-text); font-size: 18px; letter-spacing: .08em; }
.pay__total { font-size: 15px; margin: 4px 0 24px; }
.pay__total strong { font-family: var(--display); font-weight: 400; font-size: 34px; margin-left: 6px; }
.pay__grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.qr { background: #fff; border: 1px solid var(--paper-2); border-radius: 10px; padding: 12px; }
.qr img { width: 100%; image-rendering: pixelated; }
.pay__label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.copy { display: flex; gap: 8px; margin-bottom: 24px; }
.copy input { font-size: 13px; font-family: ui-monospace, Consolas, monospace; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.bank dt { color: var(--dark-muted); }
.bank dd { margin: 0; font-weight: 600; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--paper-2); margin: 32px 0; }
.file { display: flex; align-items: center; gap: 14px; border: 1px dashed #cdbfb1; border-radius: 10px; padding: 14px; margin: 14px 0 16px; cursor: pointer; font-weight: 400; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.file__btn { background: var(--paper); border: 1px solid #d8cfc4; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; flex: none; }
.file__name { font-size: 14px; color: var(--dark-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ FAQ ============ */
.faq__wrap { max-width: 820px; }
details { border-bottom: 1px solid rgba(239, 225, 208, .14); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; color: var(--cream); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; color: var(--red); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { font-family: var(--serif); font-size: 17px; color: var(--text); padding-bottom: 8px; }

/* ============ Páginas legais ============ */
body.paper { background: var(--paper); }
.legal h2 { font-family: var(--sans); font-size: 18px; margin: 36px 0 10px; color: var(--dark-text); }
.legal p, .legal li { font-family: var(--serif); font-size: 17px; color: var(--dark-text); }
.legal a { color: var(--red); }

/* ============ Rodapé ============ */
.footer { background: #141313; padding: 48px 0; font-size: 14px; color: var(--muted); }
.footer__in p { margin: 0 0 6px; }
.footer__title { font-family: var(--display); text-transform: uppercase; font-size: 22px; color: var(--cream); }

/* ============ Responsivo ============ */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .topbar__nav { display: none; }
  .hero { padding-top: 40px; }
  .hero__grid, .causa__grid, .autor__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__book { order: -1; }
  .book3d { width: min(260px, 62vw); }
  .partes { grid-template-columns: 1fr 1fr; }
  .depo__stage { padding: 44px 26px 30px; }
  .depo__item p { font-size: 18px; }
  .depo__stage::before { font-size: 90px; left: 14px; }
  .depo--live .depo__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; }
  .depo--live .depo__tabs::-webkit-scrollbar { display: none; }
  .depo__tab { flex: 0 0 62%; scroll-snap-align: start; }
  .depo__tab:hover { transform: none; box-shadow: none; }
  .autor__photo { max-width: 340px; }
  .folheie__hint { display: block; }
  .spread { width: 92vw; }
}
@media (max-width: 640px) {
  .topbar__name { letter-spacing: .25em; font-size: 11px; }
  .sm-hide { display: none; }
  .topbar .btn--sm { white-space: nowrap; }
  .partes { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .field, .field--wide { grid-column: 1 / -1; }
  .field--sm { grid-column: span 1; }
  .qty { grid-template-columns: 1fr; }
  .qty__total { text-align: left; }
  .pay__grid { grid-template-columns: 1fr; }
  .pay__qr { max-width: 260px; }
  .copy { flex-direction: column; }
  .chip { white-space: nowrap; }
  /* No celular, cada dupla vira duas páginas empilhadas, em tamanho legível */
  .spread { width: 84vw; grid-template-columns: 1fr; }
  .spread::after { display: none; }
  .page--esq, .page--dir { aspect-ratio: auto; padding: 46px 7% 54px; }
  .page__body, .page__body--brk { font-size: clamp(14px, 4.4cqw, 16px); line-height: 1.6; text-align: left; text-align-last: auto; }
  .page__run { top: 18px; right: 7%; font-size: 10px; }
  .page__num { top: auto; bottom: 18px; font-size: 11px; }
  .page--esq .page__num, .page--dir .page__num { left: 0; right: 0; }
  .page--abertura { aspect-ratio: 442 / 646; padding: 0; }
  .page--abertura .page__num { left: 15.8%; right: 12.9%; bottom: auto; top: 94%; }
  .page--rosto { display: none; }
  .page + .page { border-top: 1px solid #e6ddd0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book3d, .btn, .contador__bar span, .depo__item, .depo__tab, .folha__flow, .folha__prog span { transition: none !important; }
}

/* ============ Marca Bionexo Tasy (fonte e cores do logo em bionexo.com) ============ */
.bnx { font-family: "Poppins", "Montserrat", Arial, sans-serif; font-weight: 600; font-size: .94em; letter-spacing: -.01em; color: #34cdd7; white-space: nowrap; }
.bnx span { color: #3a76b0; }  /* mesmo azul em fundo claro e escuro (contraste 4,2:1 no papel, 3,5:1 no grafite) */
