/* Pilares Invisíveis · Marcos Paim
   Direção: biblioteca à meia-luz. Preto profundo, dourado envelhecido,
   letras de inscrição (Cinzel) e texto de livro (EB Garamond).
   As colunas de luz no fundo são os "pilares" que dão nome ao livro. */

:root {
  --ink: #0b0a08;
  --ink-2: #12100c;
  --ink-3: #1a1610;
  --line: #2c271e;
  --paper: #efe6d4;
  --paper-2: #ddd2bd;
  --soft: #b4a994;
  --mute: #8a806d;
  --gold: #d8b36a;
  --gold-2: #b58c3c;
  --gold-3: #8f7c55;
  --wa: #25d366;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
  --wrap: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 20px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; font-family: var(--display); font-size: 14px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* Grão de papel sobre tudo, bem sutil */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tipografia base */
.kick { font-family: var(--display); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.16; color: #f6eedd; text-wrap: balance; }
.h2 em, .gold { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(20px, 1.6vw, 23px); color: var(--soft); }
.muted { color: var(--soft); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: #17110a; background: linear-gradient(180deg, #ebcf91 0%, #c49a48 55%, #a87f30 100%);
  padding: 17px 30px; border-radius: 2px; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 34px -14px rgba(216,179,106,.7);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, filter .25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 20px 40px -14px rgba(216,179,106,.8); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--gold); padding: 16px 4px; border-bottom: 1px solid var(--gold-2);
}
.btn-ghost:hover { color: #f0d595; }

/* Cabeçalho */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgba(11,10,8,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { font-family: var(--display); font-size: 16px; letter-spacing: .24em; text-decoration: none; color: #f4ead6; white-space: nowrap; }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--soft); transition: color .2s; }
.nav a:hover { color: var(--gold); }
.nav .nav-cta { color: var(--gold); border: 1px solid var(--gold-2); padding: 10px 16px; }
.nav .nav-cta:hover { background: var(--gold); color: var(--ink); }

/* Seções */
.sec { position: relative; padding-block: clamp(80px, 10vw, 136px); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; justify-items: center; }

/* HERO */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; padding-block: 120px 90px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 78% 45%, #2f2516 0%, rgba(11,10,8,0) 62%), var(--ink); }
.pillars { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: space-around; padding-inline: 4vw; pointer-events: none; }
.pillars i { position: relative; width: clamp(40px, 6vw, 90px); height: 100%; background: linear-gradient(90deg, rgba(216,179,106,0) 0%, rgba(216,179,106,.045) 30%, rgba(216,179,106,.08) 50%, rgba(216,179,106,.045) 70%, rgba(216,179,106,0) 100%); }
.pillars i::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(216,179,106,0), rgba(216,179,106,.22) 40%, rgba(216,179,106,0)); }
.pillars i::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, rgba(216,179,106,0), rgba(232,200,130,.16), rgba(216,179,106,0)); animation: sweep 9s linear infinite; }
.pillars i:nth-child(2)::after { animation-delay: -2s; }
.pillars i:nth-child(3)::after { animation-delay: -5s; }
.pillars i:nth-child(4)::after { animation-delay: -7s; }
.pillars i:nth-child(5)::after { animation-delay: -3.5s; }
@keyframes sweep { to { top: 130%; } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(180deg, rgba(11,10,8,0), var(--ink)); z-index: -1; }

.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { display: grid; gap: 16px; font-weight: 500; }
.hero h1 .book { font-family: var(--display); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.hero h1 .line { font-family: var(--display); font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; color: #f8f0df; text-wrap: balance; }
.hero h1 .line em { font-style: normal; color: var(--gold); background: linear-gradient(180deg, #f0d595, #c49a48 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.seal { display: flex; align-items: center; gap: 14px; font-style: italic; color: var(--mute); font-size: 18px; }
.seal::before { content: ""; width: 38px; height: 1px; background: var(--gold-2); flex: none; }
.seal a { color: var(--soft); text-decoration-color: var(--gold-3); text-underline-offset: 4px; }

.hero-media { position: relative; justify-self: end; width: min(100%, 470px); }
.hero-media::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; border: 1px solid var(--gold-2); opacity: .55; z-index: -1; }
.hero-media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 50px 90px -30px #000, 0 0 0 1px var(--line); }
.hero-media figcaption { position: absolute; left: -28px; bottom: 34px; background: rgba(11,10,8,.88); border: 1px solid var(--line); padding: 12px 16px; font-family: var(--display); font-size: 11px; letter-spacing: .2em; color: var(--gold); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(180deg, var(--gold-2), rgba(181,140,60,0)); }

/* SINOPSE */
.synopsis-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
/* Vitrine iluminada: painel quente e claro atrás da capa preta, como um livro exposto sob luz.
   A capa escura ganha contraste sem clarear a seção inteira (a página continua à meia-luz). */
.cover {
  position: relative; perspective: 1400px; isolation: isolate;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 42%, #fbf1da 0%, #ead3a2 34%, #b8935a 68%, #5e4a2c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 196, .35), inset 0 -60px 90px -40px rgba(30, 22, 10, .55), 0 40px 80px -36px #000;
}
/* Facho de luz vindo de cima e um "pedestal" de sombra embaixo do livro */
.cover::before { content: ""; position: absolute; inset: -30% 15% 40%; z-index: -1; background: radial-gradient(50% 60% at 50% 0%, rgba(255, 250, 235, .7), rgba(255, 250, 235, 0) 70%); pointer-events: none; }
.cover::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: clamp(22px, 3.4vw, 44px); height: 26px; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(20, 14, 6, .55), rgba(20, 14, 6, 0) 70%); filter: blur(4px); pointer-events: none; }
.cover img {
  position: relative; width: 100%; max-width: 330px; margin: 0 auto;
  transform: rotateY(-10deg) rotateX(2deg); transform-origin: left center;
  outline: 1px solid rgba(255, 228, 170, .28); outline-offset: -1px;
  box-shadow: 26px 34px 50px -18px rgba(28, 18, 6, .75), 6px 8px 14px -6px rgba(28, 18, 6, .6), -1px 0 0 rgba(255, 236, 196, .5);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.cover:hover img { transform: rotateY(-2deg); }
.synopsis-text { display: grid; gap: 22px; min-width: 0; }
.synopsis-text p { color: var(--paper-2); max-width: 58ch; }
.synopsis-text .drop::first-letter { font-family: var(--display); float: left; font-size: 74px; line-height: .8; padding: 8px 12px 0 0; color: var(--gold); }
.callout { border-left: 1px solid var(--gold-2); padding: 4px 0 4px 22px; font-style: italic; color: #e9dcc2; font-size: 22px; }

/* PARA QUEM */
.for-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.for-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 16px; color: var(--paper-2); }
.for-list li:first-child { border-top: 1px solid var(--line); }
.for-list li::before { content: ""; width: 9px; height: 9px; margin-top: 12px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* PILARES */
.pillar-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { position: relative; padding: 48px 30px 54px; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; background: linear-gradient(180deg, #15120d, var(--ink)); overflow: hidden; }
.pillar:first-child { border-left: 0; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.pillar:hover::before { transform: scaleX(1); }
.pillar .num { font-family: var(--display); font-size: 12px; letter-spacing: .26em; color: var(--gold-3); }
.pillar h3 { font-family: var(--display); font-weight: 500; font-size: 27px; color: var(--gold); }
.pillar p { font-size: 18px; line-height: 1.5; color: var(--soft); }
.pillar svg { width: 30px; height: 46px; color: var(--gold-2); margin-bottom: 6px; }

/* CITAÇÃO */
.quote { text-align: center; background: radial-gradient(60% 80% at 50% 50%, #1d170f, var(--ink) 70%); }
.quote blockquote p { margin: 0 auto; max-width: 28ch; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.28; color: #f4ead6; text-wrap: balance; }
.quote blockquote p em { font-style: normal; color: var(--gold); }
.quote cite { display: block; margin-top: 26px; font-style: italic; color: var(--soft); }

/* AUTOR */
.author-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.author-photo { position: relative; }
.author-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold-2); opacity: .5; }
.author-photo img { position: relative; width: 100%; aspect-ratio: 47 / 45; object-fit: cover; object-position: center; filter: saturate(.9) contrast(1.03); box-shadow: 0 40px 80px -30px #000; }
.author-text { display: grid; gap: 22px; min-width: 0; }
.author-text p { color: var(--paper-2); max-width: 58ch; }
.author-quote { font-style: italic; font-size: 22px; color: var(--gold); border-left: 1px solid var(--gold-2); padding-left: 22px; }
.author-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* LANÇAMENTO */
.launch-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 56px; }
.launch-grid figure { position: relative; overflow: hidden; background: var(--ink-3); }
.launch-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.launch-grid figure:hover img { transform: scale(1.03); }
.launch-grid .g1 { grid-row: span 2; }
.launch-grid .g1 img { aspect-ratio: auto; min-height: 100%; }
.launch-grid .g2 img, .launch-grid .g3 img { aspect-ratio: 3 / 2; }
.launch-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 16px; font-size: 16px; font-style: italic; color: var(--paper-2); background: linear-gradient(180deg, transparent, rgba(11,10,8,.88)); }

/* DEPOIMENTOS */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.voice { padding: 34px 30px; border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 22px; align-content: space-between; }
.voice blockquote p { font-size: 21px; font-style: italic; color: #ebdfc6; }
.voice figcaption { font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.press { margin-top: 22px; padding: 26px 32px; border: 1px solid var(--gold-2); display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; background: linear-gradient(90deg, rgba(216,179,106,.06), transparent); }
.press b { font-family: var(--display); font-weight: 500; letter-spacing: .12em; color: var(--gold); }
.press p { font-style: italic; color: var(--soft); flex: 1 1 340px; }
.press a { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-underline-offset: 5px; white-space: nowrap; }

/* OFERTA */
.offer-box { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: center; border: 1px solid var(--gold-2); padding: clamp(28px, 4.5vw, 60px); background: radial-gradient(90% 120% at 0% 0%, #261d11, #0f0d0a 70%); }
.offer-box > img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 34px 70px -24px #000; }
.offer-text { display: grid; gap: 22px; min-width: 0; }
.options { border-top: 1px solid var(--line); }
.option { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.option b { font-family: var(--display); font-weight: 500; font-size: 18px; color: #f2e8d4; }
.option span { grid-column: 1; font-size: 17px; color: var(--mute); font-style: italic; }
.option a { grid-row: 1 / span 2; grid-column: 2; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--gold); border: 1px solid var(--gold-2); padding: 11px 14px; white-space: nowrap; transition: background .2s, color .2s; }
.option a:hover { background: var(--gold); color: var(--ink); }
.fine { font-size: 16px; color: var(--mute); }

/* PERGUNTAS */
.faq { max-width: 860px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 24px 0; font-family: var(--display); font-size: 18px; color: #f1e7d2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--soft); max-width: 64ch; }

/* FINAL */
.final { text-align: center; background: radial-gradient(70% 90% at 50% 100%, #2b2115, var(--ink) 70%); }
.final .wrap { display: grid; gap: 26px; justify-items: center; }
.final p { max-width: 50ch; }

/* RODAPÉ */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 16px; color: var(--mute); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { text-decoration: none; color: var(--soft); }
.foot a:hover { color: var(--gold); }
.foot .credit { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); justify-content: center; text-align: center; font-size: 14px; letter-spacing: .02em; color: var(--mute); }
.foot .credit a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(216, 179, 106, .4); text-underline-offset: 4px; }
.foot .credit a:hover { text-decoration-color: var(--gold); }

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed; z-index: 55; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 1; }
/* Pulsação: duas ondas verdes que se abrem em volta do botão, e o próprio botão "respira" junto */
.wa-float { animation: wa-respira 2.6s ease-in-out infinite; }
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); opacity: 0; z-index: 0; pointer-events: none;
  animation: wa-onda 2.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.wa-float::after { animation-delay: 1.3s; }
@keyframes wa-onda { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes wa-respira { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(1); } }
.wa-float:hover { animation-play-state: paused; }
.wa-float:hover::before, .wa-float:hover::after { animation-play-state: paused; }

/* Voltar ao topo: medalhão dourado acima do botão do WhatsApp; aparece depois da abertura */
.to-top {
  position: fixed; z-index: 55;
  right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #1a1209;
  background: radial-gradient(circle at 32% 28%, #f6e2ae 0%, #dcb768 38%, #b8913f 72%, #8c6a26 100%);
  box-shadow: 0 0 0 1px rgba(255, 236, 196, .45) inset, 0 0 0 4px rgba(11, 10, 8, .55), 0 0 0 5px rgba(216, 179, 106, .45), 0 14px 30px -10px rgba(0, 0, 0, .8), 0 0 26px -6px rgba(216, 179, 106, .55);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear .35s, filter .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s, filter .2s; }
.to-top:hover { filter: brightness(1.08); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top:active { transform: scale(.95); }
.to-top svg { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }

/* Entrada suave ao rolar (só com JS; sem JS, tudo aparece) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
/* A abertura anima sozinha, no carregamento, sem depender do script */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 130ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pillars i::after { animation: none; }
  .wa-float, .wa-float::before, .wa-float::after { animation: none; }
  .js .reveal, .js .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  * { transition-duration: .01ms !important; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid, .synopsis-grid, .for-grid, .author-grid, .offer-box { grid-template-columns: 1fr; }
  .hero-media { justify-self: start; width: min(100%, 420px); }
  .hero-media figcaption { left: 12px; }
  .cover img { max-width: 320px; }
  .pillar-row { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .voices { grid-template-columns: 1fr; }
  .author-photo { max-width: 440px; }
  .offer-box > img { max-width: 340px; }
}

/* Celular */
@media (max-width: 600px) {
  body { font-size: 19px; }
  .top .wrap { height: 64px; }
  .brand { font-size: 14px; letter-spacing: .2em; }
  .nav .nav-cta { padding: 8px 12px; font-size: 11px; }
  .hero { padding-top: 104px; }
  .hero h1 .line { font-size: clamp(34px, 9.6vw, 46px); }
  .hero-actions .btn { width: 100%; }
  .hero-media::before { inset: -10px -10px 10px 10px; }
  .pillar-row { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); padding: 36px 6px 40px; }
  .pillar:first-child { border-top: 0; }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-grid .g1 { grid-row: auto; }
  .launch-grid .g1 img { aspect-ratio: 3 / 2; }
  .option { grid-template-columns: 1fr; }
  .option a { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 6px; }
  .press { padding: 22px; }
  .final .btn { width: 100%; }
}

/* Compra segura (PagBank) */
.secure { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border: 1px solid rgba(216, 179, 106, .35); border-radius: 4px; background: linear-gradient(135deg, rgba(216, 179, 106, .1), rgba(216, 179, 106, .02)); }
.secure-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #1a1209; background: radial-gradient(circle at 32% 28%, #f6e2ae 0%, #dcb768 38%, #b8913f 72%, #8c6a26 100%); box-shadow: 0 0 0 1px rgba(255, 236, 196, .45) inset, 0 10px 22px -10px rgba(0, 0, 0, .8); }
.secure-ico svg { width: 24px; height: 24px; }
.secure b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .04em; color: var(--gold); margin-bottom: 6px; }
.secure p { font-size: 17px; line-height: 1.55; color: var(--paper-2); }
.secure-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.secure-tags li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px; }
.secure-tags li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
@media (max-width: 600px) { .secure { grid-template-columns: 1fr; } }

/* Barra de compra fixa: só no celular e tablet em pé */
.buy-bar { display: none; }
@media (max-width: 760px) {
  .buy-bar {
    position: fixed; z-index: 56; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter);
    background: rgba(11, 10, 8, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(216, 179, 106, .4); box-shadow: 0 -18px 40px -18px rgba(0, 0, 0, .9);
    visibility: hidden; transform: translateY(110%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s linear .4s;
  }
  .buy-bar.show { visibility: visible; transform: none; transition: transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .buy-bar img { width: 34px; height: auto; box-shadow: 0 4px 10px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
  .buy-bar p { display: grid; line-height: 1.2; min-width: 0; }
  .buy-bar b { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .08em; color: #f4ead6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar span { font-size: 15px; color: var(--gold); white-space: nowrap; }
  .buy-bar .btn { padding: 12px 14px; font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
  /* Com a barra aberta, o WhatsApp e o voltar ao topo sobem junto */
  .com-barra .wa-float { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .com-barra .to-top { bottom: calc(154px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .buy-bar, .buy-bar.show { transition: none; } }
