/* =========================================================
   Pr. Kesley Danillo — Entre Princípios & Promessas
   Sistema visual: preto profundo + ouro, marfim como respiro
   ========================================================= */

@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-normal-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-italic-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-normal-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fallbacks métricos para reduzir saltos de layout durante a troca de fonte */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 86%; ascent-override: 106%; descent-override: 33%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; ascent-override: 103%; descent-override: 29%; }

:root {
  --ink: #0E0C08;
  --ink-2: #15120B;
  --ink-3: #1D1910;
  --line-dark: rgba(226, 190, 104, .22);

  --gold-50: #FBF3DA;
  --gold-100: #F6E7B8;
  --gold-200: #EDD48F;
  --gold-300: #E2BE68;
  --gold-400: #D4A645;
  --gold-500: #B8892B;
  --gold-600: #96701F;
  --gold-700: #6F5113;   /* texto dourado sobre marfim (AA) */

  --ivory: #FAF6EC;
  --ivory-2: #F3ECDB;
  --paper: #FFFDF8;

  --text-on-dark: #ECE4D2;
  --muted-on-dark: #B7AC92;
  --text-on-light: #2A2112;
  --muted-on-light: #5E523C;

  --gold-gradient: linear-gradient(100deg, #B8892B 0%, #F3DE9E 26%, #D4A645 50%, #F8EBC4 72%, #C29433 100%);
  --gold-button: linear-gradient(135deg, #F6E3A6 0%, #E2BE68 38%, #C9982F 70%, #E8CB7A 100%);

  --font-serif: "Cormorant", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 18px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--ink); color: var(--text-on-dark);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
em { font-style: italic; }
b, strong { font-weight: 700; }
abbr[title] { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }
::selection { background: var(--gold-300); color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold-200); outline-offset: 3px; border-radius: 6px; }
.section-light :focus-visible, .buy-panel :focus-visible { outline-color: var(--ink); }
.float-btn:focus-visible, .btn-gold:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold-200); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: var(--gold-200); color: var(--ink); padding: .75rem 1.1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.gold-text {
  background: var(--gold-gradient); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: var(--gold-300); -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .8; }
.eyebrow-dark { color: var(--gold-700); }

.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
/* Seções abaixo da dobra: o navegador só faz layout/pintura quando se aproximam da tela */
.section, .statement, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.statement { contain-intrinsic-size: auto 480px; }
.site-footer { contain-intrinsic-size: auto 520px; }
.cv-done .section, .cv-done .statement, .cv-done .site-footer { content-visibility: visible; }
.section-title { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-bottom: 1.5rem; }
.section-title em { color: var(--gold-700); font-weight: 500; }

/* ---------- Botões ---------- */
.btn {
  --pad-y: 1rem; --pad-x: 1.75rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 1px solid transparent;
  font: 700 .98rem/1.2 var(--font-sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .6s var(--ease), color .2s, border-color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { min-height: 44px; --pad-y: .6rem; --pad-x: 1.3rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-gold {
  color: #1A1405; background: var(--gold-button); background-size: 180% 100%; background-position: 0% 50%;
  box-shadow: 0 10px 30px -12px rgba(212, 166, 69, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(226, 190, 104, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { color: var(--gold-100); border-color: rgba(226, 190, 104, .45); background: rgba(226, 190, 104, .04); }
.btn-ghost:hover { border-color: var(--gold-300); background: rgba(226, 190, 104, .1); transform: translateY(-2px); }
.btn-dark { color: var(--gold-100); background: var(--ink); box-shadow: 0 12px 30px -16px rgba(14, 12, 8, .8); }
.btn-dark:hover { background: #241D0F; transform: translateY(-2px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .75; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(14, 12, 8, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--gold-100); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand-text small { font-size: .78em; color: var(--gold-300); font-weight: 500; }

.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.site-nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: .92rem; font-weight: 600; letter-spacing: .04em;
  color: var(--text-on-dark); padding: .6rem 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: var(--gold-300);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="true"] { color: var(--gold-100); }

.menu-toggle {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid rgba(226, 190, 104, .4); background: rgba(14, 12, 8, .5); color: var(--gold-100);
  font: 700 .85rem var(--font-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--gold-200); transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; padding: 1.5rem var(--gutter) 2rem;
    background: rgba(14, 12, 8, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .js .site-nav a:not(.btn) { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(226, 190, 104, .12); }
  .js .site-nav a:not(.btn)::after { display: none; }
  .js .site-nav .btn { margin-top: 1rem; width: 100%; min-height: 52px; font-size: 1rem; }
  .js .site-header.menu-open { background: rgba(14, 12, 8, .97); }
  html:not(.js) .site-nav ul { gap: .9rem; }
  html:not(.js) .site-nav li:not(:last-child) { display: none; }
  .brand-text { font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(212, 166, 69, .2), transparent 70%),
    linear-gradient(180deg, #120F09 0%, var(--ink) 100%);
  display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(226, 190, 104, .55), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-title { font-size: clamp(3rem, min(8.2vw, 10.5svh), 6.6rem); font-weight: 600; line-height: .95; margin-bottom: 1.6rem; }
.hero-title span { display: block; padding-bottom: .06em; }
.hero-title em { font-weight: 500; }
.hero-lead { max-width: 36rem; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--text-on-dark); }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin: 1.8rem 0 2rem; }
.price { font-family: var(--font-serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--gold-200); margin: 0; }
.price-note { font-size: .9rem; color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.arch-frame {
  position: relative; border-radius: 999px 999px 22px 22px; padding: 10px;
  background: linear-gradient(160deg, rgba(246, 231, 184, .9), rgba(184, 137, 43, .55) 40%, rgba(111, 81, 19, .25) 75%, rgba(226, 190, 104, .7));
  box-shadow: 0 28px 48px -26px rgba(0, 0, 0, .9);
}
.arch-frame picture, .arch-frame img { border-radius: 999px 999px 14px 14px; overflow: hidden; }
.arch-frame img { width: 100%; aspect-ratio: 854 / 1126; object-fit: cover; background: #1A170D; }
.arch-frame::before {
  content: ""; position: absolute; inset: -22px; border-radius: 999px 999px 30px 30px; z-index: -1;
  border: 1px solid rgba(226, 190, 104, .28);
}
.hero-book {
  position: absolute; left: -28%; bottom: -12%; width: 64%;
  transform: rotate(-3deg);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%;
}
.scroll-cue span { width: 22px; height: 36px; border: 1.5px solid rgba(226, 190, 104, .6); border-radius: 12px; position: relative; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--gold-200);
}

@media (min-width: 901px) and (max-height: 860px) {
  .hero { padding-top: calc(var(--header-h) + 1.25rem); padding-bottom: 3.5rem; }
  .hero-title { margin-bottom: 1.1rem; }
  .hero-price { margin: 1.2rem 0 1.4rem; }
  .hero-visual { width: min(100%, 380px); }
  .scroll-cue { display: none; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .hero-book { left: -14%; width: 52%; bottom: -10%; }
  .hero-lead { max-width: 30rem; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { width: min(78%, 380px); margin-top: 1rem; justify-self: end; margin-right: 4%; }
  .hero-book { left: -34%; width: 68%; }
  .scroll-cue { display: none; }
}

/* ---------- O Livro (marfim) ---------- */
.section-light {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(226, 190, 104, .18), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  color: var(--text-on-light);
}
.section-light p { color: var(--text-on-light); }
.book-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.book-figure { margin: 0; position: relative; }
.book-figure::before {
  content: ""; position: absolute; inset: 8% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 166, 69, .35), transparent 75%);
}
.book-figure img { position: relative; width: 100%; }
.book-copy > p { max-width: 38rem; font-size: 1.08rem; }

.keys { display: grid; gap: .8rem; margin: 2rem 0 2.4rem; counter-reset: k; }
.keys li {
  display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255, 253, 248, .75);
  border: 1px solid rgba(150, 112, 31, .22); box-shadow: 0 10px 30px -24px rgba(111, 81, 19, .55);
  font-weight: 600; color: var(--text-on-light);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.keys li:hover { transform: translateX(6px); border-color: rgba(150, 112, 31, .5); box-shadow: 0 16px 34px -22px rgba(111, 81, 19, .6); }
.key-num {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: #1A1405;
  background: var(--gold-button);
}

.pull-quote { margin: clamp(4rem, 8vw, 6.5rem) auto 0; text-align: center; max-width: 900px; }
.pull-quote .ornament { width: 56px; height: 56px; margin: 0 auto 1.25rem; }
.pull-quote blockquote p {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; color: var(--text-on-light); margin: 0;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-figure { max-width: min(360px, 86%); margin-inline: auto; }
}

/* ---------- Frase ---------- */
.statement {
  position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0; text-align: center;
  background:
    radial-gradient(60% 120% at 50% 50%, rgba(184, 137, 43, .2), transparent 70%),
    var(--ink);
  border-block: 1px solid var(--line-dark);
}
.statement::before, .statement::after {
  content: ""; position: absolute; left: 50%; width: 1px; height: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(var(--gold-300), transparent);
}
.statement::before { top: 0; }
.statement::after { bottom: 0; transform: rotate(180deg); }
.statement-text {
  font-family: var(--font-serif); font-weight: 500; font-style: italic;
  font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.12; max-width: 1000px; margin: 0 auto;
}

/* ---------- O Autor ---------- */
.section-dark {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(184, 137, 43, .14), transparent 60%),
    var(--ink-2);
}
.author-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.author-figure { margin: 0; }
.gold-frame {
  position: relative; padding: 8px; border-radius: 22px;
  background: linear-gradient(140deg, var(--gold-100), var(--gold-500) 45%, #5B4210 70%, var(--gold-300));
  box-shadow: 0 26px 44px -28px rgba(0, 0, 0, .9);
}
.gold-frame img { border-radius: 15px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.roles {
  margin-top: 1.4rem; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-300);
}
.author-copy p { color: var(--text-on-dark); }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2rem; }
.facts li {
  padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--gold-100); border: 1px solid rgba(226, 190, 104, .35); background: rgba(226, 190, 104, .06);
}
.signature p {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1;
  color: var(--gold-200); margin: 0 0 2rem;
}
.social { display: flex; flex-wrap: wrap; gap: .7rem; }
.social a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--gold-200); border: 1px solid rgba(226, 190, 104, .4);
  transition: background-color .3s, color .3s, transform .35s var(--ease), border-color .3s;
}
.social a:hover { background: var(--gold-300); color: var(--ink); border-color: var(--gold-300); transform: translateY(-3px); }
.social svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .author-grid { grid-template-columns: 1fr; }
}

/* ---------- Comprar ---------- */
.section-buy {
  overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--ink) 0%, #120F08 100%);
}
.buy-glow {
  position: absolute; z-index: -1; left: 50%; top: 10%; width: 90vmax; height: 60vmax; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 166, 69, .16), transparent 70%);
}
.buy-head { text-align: center; max-width: 860px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.buy-head .eyebrow { justify-content: center; }
.buy-head .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .8; }
.buy-head .section-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.buy-head .section-title .gold-text { display: inline; }

.buy-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.buy-summary {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(226, 190, 104, .1), rgba(226, 190, 104, .02));
  border: 1px solid var(--line-dark);
}
.buy-product { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-dark); }
.buy-product picture { margin: -14px; }
.buy-label { margin: 0 0 .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); }
.price-xl { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: .5rem; white-space: nowrap; }
.buy-product > div { min-width: 0; }
.buy-small { font-size: .9rem; color: var(--muted-on-dark); margin: 0; }
.buy-small b { color: var(--text-on-dark); }

.steps { display: grid; gap: 1.25rem; margin: 1.6rem 0; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; }
.step-num {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--gold-300); color: var(--gold-200); font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
}
.steps strong { display: block; color: var(--gold-100); font-size: 1rem; margin-bottom: .15rem; }
.steps span:not(.step-num) { display: block; font-size: .92rem; color: var(--muted-on-dark); line-height: 1.55; }
.steps b { color: var(--text-on-dark); }

.buy-panel {
  position: relative; padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, var(--paper), var(--ivory));
  color: var(--text-on-light);
  box-shadow: 0 30px 56px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(226, 190, 104, .5), 0 0 0 7px rgba(226, 190, 104, .08);
}
.buy-panel p { color: var(--text-on-light); }
.form-intro { font-size: .95rem; }
.req-note { display: block; margin-top: .3rem; font-size: .85rem; color: var(--muted-on-light); }
abbr[title="obrigatório"] { color: #8A2A0A; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem 1rem; margin-bottom: 1rem; }
.field { grid-column: span 3; display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.buy-summary, .buy-panel { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.field label { font-size: .88rem; font-weight: 700; color: var(--text-on-light); }
.field input, .field select, .pix-code {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 12px;
  border: 1.5px solid #9C8A66; background: #FFFEFA; color: var(--text-on-light);
  font: 500 1rem/1.4 var(--font-sans);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #7A6D55; opacity: 1; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236F5113' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.field input:hover, .field select:hover { border-color: var(--gold-600); }
.field input:focus, .field select:focus, .pix-code:focus { outline: none; border-color: var(--gold-700); box-shadow: 0 0 0 4px rgba(184, 137, 43, .35); }
.field input:focus-visible, .field select:focus-visible, .pix-code:focus-visible, .check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pix-panel h3:focus { outline: none; }
.field-error { margin: .1rem 0 0; font-size: .82rem; font-weight: 700; color: #8A2A0A !important; }
.check .field-error { grid-column: 2; }
.field input[aria-invalid="true"] { border-color: #A3290B; background: #FFF6F2; }
.was-validated .field input:invalid, .was-validated .field select:invalid { border-color: #A3290B; background: #FFF6F2; }

.address { border: 0; margin: 0 0 .5rem; padding: 0; }
.address legend { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin-bottom: .8rem; padding: 0; color: var(--text-on-light); }

.check { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; align-items: start; margin: .5rem 0 1rem; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--gold-600); }
.check label { font-size: .88rem; line-height: 1.55; color: var(--text-on-light); }
.privacy { font-size: .8rem; line-height: 1.55; color: var(--muted-on-light) !important; margin-bottom: 1.25rem; }
.form-status { min-height: 1.2em; margin: .9rem 0 .3rem; font-size: .92rem; font-weight: 600; }
.form-status.is-error { color: #8A2A0A; }
.form-status a { color: inherit; font-weight: 700; }
.form-help { font-size: .82rem; color: var(--muted-on-light) !important; margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn[aria-busy="true"] .btn-label::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .6em; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Painel PIX */
.pix-panel:focus { outline: none; }
.pix-ok { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: #E8F3E4; color: #1E5A1B !important; font-weight: 700; font-size: .88rem; }
.pix-ok svg { width: 18px; height: 18px; }
.pix-panel h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 1rem 0 .8rem; color: var(--text-on-light); }
.pix-qr { width: 240px; margin: 1.5rem auto; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(150, 112, 31, .35), 0 20px 40px -26px rgba(111, 81, 19, .7); }
.pix-qr img { width: 100%; height: auto; }
.pix-benef { font-size: .95rem; }
.pix-code-label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .4rem; }
.pix-code { resize: none; font: 500 .82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; margin-bottom: 1rem; }

@media (max-width: 960px) {
  .buy-grid { grid-template-columns: minmax(0, 1fr); }
  .buy-summary { position: static; }
}
@media (max-width: 560px) {
  .address .form-grid { grid-template-columns: minmax(0, 1fr) 5.5rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field, .span-2, .span-3, .span-4 { grid-column: 1 / -1; }
  .address .span-3 { grid-column: 1; } .address .span-1 { grid-column: 2; }
  .buy-product { grid-template-columns: 96px minmax(0, 1fr); gap: .9rem; }
}

/* ---------- Rodapé ---------- */
.site-footer { background: #0A0805; border-top: 1px solid var(--line-dark); padding: clamp(3.5rem, 7vw, 5rem) 0 calc(1.5rem + env(safe-area-inset-bottom)); color: var(--muted-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid p { font-size: .95rem; }
.footer-roles { margin-top: 1.2rem; color: var(--gold-200); font-weight: 700; letter-spacing: .06em; }
.footer-quote { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--gold-200); }
.footer-title { font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 1rem; }
.footer-nav ul { display: grid; gap: .2rem; }
.footer-nav a, .footer-link { display: inline-block; padding: .35rem 0; text-decoration: none; color: var(--text-on-dark); transition: color .2s; }
.footer-nav a:hover, .footer-link:hover { color: var(--gold-200); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(226, 190, 104, .12); text-align: center; }
.footer-bottom p { margin: 0; font-size: .85rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: 150px; }
}

/* ---------- Flutuantes e toast ---------- */
.floating { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: .7rem; }
.float-btn {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .75); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.float-btn:hover { transform: translateY(-3px) scale(1.04); }
.float-btn svg { width: 26px; height: 26px; }
.float-pix { background: var(--gold-button); color: #1A1405; grid-auto-flow: row; gap: 0; font: 800 .62rem/1 var(--font-sans); letter-spacing: .08em; }
.float-pix svg { width: 22px; height: 22px; margin-bottom: 2px; }
.float-wa { background: #0F7A4A; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .75), 0 0 0 2px rgba(255, 255, 255, .15) inset; }

.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 150; translate: -50% 0;
  width: max-content; max-width: min(92vw, 440px); padding: .95rem 1.2rem; border-radius: 14px;
  background: #1C170D; color: var(--gold-50); border: 1px solid rgba(226, 190, 104, .5); font-size: .92rem; line-height: 1.5;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast { visibility: hidden; }
.toast.is-visible { visibility: visible; }
.toast b { color: var(--gold-200); }

/* ---------- Animações de entrada ----------
   O hero é estático de propósito: animações no carregamento forçavam re-rasterização
   da dobra inteira e derrubavam o TBT no Lighthouse mobile. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-book { animation: none; }
}

@media (max-width: 360px) {
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-text { font-size: 1.18rem; }
}
