/* ═══════════════════════════════════════════════
   ADONESSE — Design System
   Navy #0A1628 + Gold #C9A84C + Cream #F8F6F1
═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --navy:      #0A1628;
  --navy-mid:  #0F2044;
  --navy-sur:  #162952;
  --navy-brd:  rgba(201,168,76,0.18);
  --gold:      #D4AE52;
  --gold-lt:   #F0D078;
  --gold-dim:  rgba(201,168,76,0.12);
  --gold-rul:  rgba(201,168,76,0.35);
  --cream:     #F8F6F1;
  --cream2:    #F0EDE7;
  --white:     #FFFFFF;
  --ink:       #1A1A2E;
  --ink2:      #3D3C52;
  --ink3:      #7A7A9A;
  --red-soft:  #c0392b;
  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16,1,0.3,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
body {
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.eyebrow {
  font-family: var(--fb);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.gold-rule {
  display: block; width: 64px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.02em; color: var(--ink);
  text-wrap: balance; margin-bottom: .875rem;
}
.section-lead {
  font-size: 1rem; color: var(--ink2);
  max-width: 56ch; line-height: 1.75;
}
.section-header { margin-bottom: 3.25rem; }
section { padding: 5.5rem 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.58); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold); color: var(--navy);
  padding: .8rem 1.6rem; border-radius: 4px;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.28);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  padding: .8rem 1.6rem;
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  transition: color .2s, border-color .2s, transform .15s;
}
.btn-secondary:hover { color: var(--gold); border-color: var(--gold-rul); transform: translateY(-2px); }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); padding: .8rem 1.6rem;
  border: 1px solid rgba(10,22,40,.25); border-radius: 4px;
  transition: color .2s, border-color .2s, background .2s;
}
.btn-outline-dark:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.btn-charity {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--red-soft); color: #fff;
  padding: .8rem 1.6rem; border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-charity:hover { background: #e74c3c; transform: translateY(-2px); }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-brd);
  transition: box-shadow .3s;
}
.header-inner {
  display: flex; align-items: center;
  height: 76px; gap: 1.5rem;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 58px; width: auto; object-fit: contain; }

nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav-link {
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: .45rem .75rem; border-radius: 4px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--gold); background: var(--gold-dim); }
.nav-link.active { color: var(--gold); }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-item:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy-mid);
  border: 1px solid var(--navy-brd); border-radius: 8px;
  padding: .5rem 0; min-width: 150px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap; z-index: 200;
}
.dropdown a {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding: .5rem 1.1rem;
  transition: color .15s, background .15s;
}
.dropdown a:hover { color: var(--gold); background: var(--gold-dim); }

.nav-outlined {
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); padding: .4rem .85rem;
  border: 1px solid var(--gold-rul); border-radius: 4px;
  background: transparent;
  transition: color .2s, border-color .2s, background .2s; white-space: nowrap;
}
.nav-outlined:hover { color: var(--gold-lt); border-color: var(--gold-lt); background: var(--gold-dim); }

.nav-lang {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45); padding: .35rem .7rem;
  border: 1px solid var(--navy-brd); border-radius: 4px;
  cursor: pointer; transition: color .2s, border-color .2s; white-space: nowrap;
}
.nav-lang:hover { color: var(--gold); border-color: var(--gold-rul); }
.nav-cta {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--gold); color: var(--navy);
  padding: .45rem 1.1rem; border-radius: 4px;
  transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-lt); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; transition: .3s; }

/* ── MUSIC TOGGLE ── */
.music-toggle {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--navy-brd); border-radius: 50%;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: color .2s, border-color .2s, background .2s;
  position: relative; cursor: pointer;
}
.music-toggle:hover { color: var(--gold); border-color: var(--gold-rul); background: var(--gold-dim); }
.music-toggle .music-note-icon { display: block; }
.music-toggle .bars { display: none; align-items: center; gap: 2px; height: 13px; }
.music-toggle .bars span { display: block; width: 2px; background: currentColor; border-radius: 1px; height: 4px; }
.music-toggle.playing .music-note-icon { display: none; }
.music-toggle.playing .bars { display: flex; }
.music-toggle.playing .bars span { animation: bar-bounce 0.9s ease-in-out infinite; }
.music-toggle.playing .bars span:nth-child(1) { animation-delay: 0s; }
.music-toggle.playing .bars span:nth-child(2) { animation-delay: .15s; }
.music-toggle.playing .bars span:nth-child(3) { animation-delay: .3s; }
@keyframes bar-bounce {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle.playing .bars span { animation: none; height: 9px; }
}

/* ── NEURON BACKGROUND (home only) ── */
.neuron-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.neuron-bg canvas { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  .neuron-bg { display: none; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-brd);
  padding: 4.5rem 0 2.25rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.75rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--navy-brd);
  margin-bottom: 2.25rem;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: 12.5px; color: rgba(255,255,255,.38); line-height: 1.6; margin-bottom: 1.375rem; max-width: 26ch; }
.footer-socials { display: flex; gap: .65rem; }
.social-btn {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--navy-brd); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.social-btn:hover { background: var(--gold-dim); color: var(--gold); border-color: var(--gold-rul); }
.footer-col-title {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-link { font-size: 13px; color: rgba(255,255,255,.48); transition: color .2s; }
.footer-link:hover { color: rgba(255,255,255,.82); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .875rem;
}
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,.28); }
.footer-legal { display: flex; gap: 1.375rem; }
.footer-legal a { font-size: 11.5px; color: rgba(255,255,255,.28); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.58); }
.footer-disclaimer { font-size: 10.5px; color: rgba(255,255,255,.18); line-height: 1.6; max-width: 680px; margin-top: .875rem; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy); padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,168,76,.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow { margin-bottom: 1rem; }
.page-hero-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700; color: #fff;
  letter-spacing: -.02em; line-height: 1.15;
  text-wrap: balance; margin-bottom: 1.1rem;
}
.page-hero-title em { font-style: italic; color: var(--gold); }
.page-hero-lead { font-size: 1.0625rem; color: rgba(255,255,255,.58); max-width: 52ch; line-height: 1.75; }

/* ── BOOK CARDS (shared) ── */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.875rem; }
.book-card {
  background: var(--white); border: 1px solid rgba(0,0,0,.07);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.1); }
.book-img-wrap { aspect-ratio: 2/3; overflow: hidden; background: var(--cream2); }
.book-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.book-card:hover .book-img-wrap img { transform: scale(1.04); }
.book-body { padding: 1.375rem; display: flex; flex-direction: column; flex: 1; }
.book-tag { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .45rem; }
.book-title { font-family: var(--fd); font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: .5rem; }
.book-desc { font-size: 13px; color: var(--ink2); line-height: 1.65; margin-bottom: 1.1rem; flex: 1; }
.book-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-mid);
  background: transparent;
  border: 1px solid rgba(15,32,68,.25);
  border-radius: 30px;
  padding: .6rem 1.1rem;
  transition: color .2s, border-color .2s, background .2s;
}
.book-link:hover { color: var(--gold); border-color: var(--gold-rul); background: var(--gold-dim); }
.book-link.is-soon {
  color: var(--ink3);
  border-color: rgba(0,0,0,.12);
  cursor: default;
}
.book-link.is-soon:hover { color: var(--ink3); background: transparent; border-color: rgba(0,0,0,.12); }

/* ── CHARITY BANNER ── */
.charity-banner {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a0a0a 60%, #1c0e00 100%);
  border-top: 1px solid rgba(201,168,76,.25);
  border-bottom: 1px solid rgba(201,168,76,.25);
  position: relative; overflow: hidden; padding: 3.25rem 0;
}
.charity-banner::before {
  content: ''; position: absolute; top: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 70%);
  pointer-events: none;
}
.charity-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 3rem; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  position: relative; z-index: 1;
}
.charity-book { width: 130px; flex-shrink: 0; border-radius: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(201,168,76,.2); }
.charity-label { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #e05c5c; margin-bottom: .6rem; }
.charity-title { font-family: var(--fd); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: .75rem; }
.charity-title span { color: var(--gold); font-style: italic; }
.charity-text { font-size: .9375rem; color: rgba(255,255,255,.58); line-height: 1.7; max-width: 56ch; margin-bottom: 1.5rem; }
.charity-text strong { color: rgba(255,255,255,.85); font-weight: 500; }
.charity-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.charity-raised { text-align: center; flex-shrink: 0; min-width: 160px; }
.raised-amount { font-family: var(--fd); font-size: 2.25rem; font-weight: 700; color: var(--gold); line-height: 1; }
.raised-label { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: .3rem; margin-bottom: 1rem; }
.raised-bar-bg { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.raised-bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-lt)); border-radius: 3px; transition: width 1s var(--ease); }
.raised-goal { font-size: 11px; color: rgba(255,255,255,.3); margin-top: .4rem; }

/* ── COMING SOON CARD ── */
.coming-soon-card {
  background: var(--white); border: 1px dashed rgba(0,0,0,.15);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  opacity: .85;
}
.coming-soon-cover {
  aspect-ratio: 2/3; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .75rem;
  position: relative;
}
.coming-soon-cover::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid var(--gold-rul); border-radius: 4px;
}
.coming-soon-icon { font-size: 2rem; opacity: .7; }
.coming-soon-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.coming-soon-body { padding: 1.375rem; display: flex; flex-direction: column; flex: 1; }
.coming-soon-desc { flex: 1; }
.coming-soon-title { font-family: var(--fd); font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.coming-soon-desc { font-size: 13px; color: var(--ink2); line-height: 1.65; }

/* ── REVIEWS ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.625rem; }
.review-card { background: var(--white); border: 1px solid rgba(0,0,0,.06); border-radius: 10px; padding: 1.875rem; display: flex; flex-direction: column; gap: .875rem; }
.review-stars { display: flex; gap: 3px; color: var(--gold); }
.review-stars svg { width: 15px; height: 15px; fill: currentColor; }
.review-title { font-family: var(--fd); font-size: .9375rem; font-weight: 700; color: var(--ink); font-style: italic; }
.review-text { font-size: 13.5px; line-height: 1.7; color: var(--ink2); flex: 1; }
.review-author { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; color: var(--ink3); border-top: 1px solid rgba(0,0,0,.07); padding-top: .875rem; }

/* ── CTA BAND ── */
.cta-band { background: var(--navy-mid); padding: 4.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -80px; right: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(201,168,76,.09) 0%, transparent 70%); pointer-events: none; }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-title { font-family: var(--fd); font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 700; color: #fff; margin-bottom: .875rem; margin-top: .6rem; }
.cta-desc { font-size: .9375rem; color: rgba(255,255,255,.5); max-width: 44ch; margin: 0 auto 2.25rem; }
.cta-form { display: flex; max-width: 420px; margin: 0 auto; }
.cta-input { flex: 1; font-family: var(--fb); font-size: 13.5px; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-right: none; border-radius: 4px 0 0 4px; padding: .8rem 1.1rem; outline: none; transition: border-color .2s; }
.cta-input::placeholder { color: rgba(255,255,255,.32); }
.cta-input:focus { border-color: var(--gold-rul); }
.cta-submit { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: .8rem 1.4rem; border-radius: 0 4px 4px 0; transition: background .2s; }
.cta-submit:hover { background: var(--gold-lt); }
.cta-note { font-size: 11px; color: rgba(255,255,255,.28); margin-top: .875rem; }

/* ── REVEALS ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
  .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .charity-inner { grid-template-columns: 1fr; text-align: center; }
  .charity-book { margin: 0 auto; }
  .charity-raised { min-width: auto; }
  .charity-actions { justify-content: center; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy-mid); padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--navy-brd); gap: .4rem; z-index: 99;
  }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-input { border-right: 1px solid rgba(255,255,255,.14); border-radius: 4px; }
  .cta-submit { border-radius: 4px; }
  section { padding: 4rem 0; }
}

/* ═══════════════════════════════════════════
   PRODUCT PAGE TEMPLATE (full book detail page)
═══════════════════════════════════════════ */

/* Product hero */
.product-hero { background: var(--navy); position: relative; overflow: visible; padding: 4rem 0 0; }
.product-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 75% 30%, rgba(201,168,76,.08) 0%, transparent 70%); pointer-events: none; }
.product-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 280px 1fr 340px; gap: 3rem; align-items: start; padding-bottom: 3.5rem; }
.product-hero-text-col { display: flex; flex-direction: column; }
.product-cover-frame { position: relative; overflow: visible; }
.product-cover-frame::before { content: ''; position: absolute; inset: -12px; border: 1px solid var(--gold-rul); border-radius: 6px; pointer-events: none; z-index: 0; }
.product-cover-frame img { position: relative; z-index: 1; width: 100%; border-radius: 4px; box-shadow: 0 28px 64px rgba(0,0,0,.5); display: block; }
.product-meta { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.product-title { font-family: var(--fd); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; color: #fff; line-height: 1.1; letter-spacing: -.02em; margin-bottom: .6rem; }
.product-subtitle { font-family: var(--fd); font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 400; font-style: italic; color: var(--gold-lt); margin-bottom: 1.25rem; }
.product-desc { font-size: 1rem; color: rgba(255,255,255,.6); line-height: 1.8; max-width: 60ch; margin-bottom: 1.5rem; }
.product-author-line { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 1.75rem; }
.product-buy-box { background: rgba(255,255,255,.05); border: 1px solid var(--navy-brd); border-radius: 10px; padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.product-buy-box-spacer { flex: 1; }
.product-price { font-family: var(--fd); font-size: 2rem; font-weight: 700; color: var(--gold); margin-bottom: .25rem; }
.product-price-note { font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 1.25rem; }
.lang-buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.lang-buy-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: .65rem .5rem; transition: background .2s, border-color .2s; }
.lang-buy-btn:hover { background: var(--gold-dim); border-color: var(--gold-rul); color: var(--gold-lt); }
.lava-buy-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85);
  background: rgba(201,168,76,.1); border: 1px solid var(--gold-rul);
  border-radius: 6px; padding: .7rem .75rem; width: 100%;
  margin-bottom: 1rem; transition: background .2s, border-color .2s;
}
.lava-buy-btn:hover { background: var(--gold-dim); border-color: var(--gold-lt); }
.lava-buy-btn .lava-flag { font-size: 14px; }

/* Pain points */
.pain-quote { font-family: var(--fd); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-style: italic; color: var(--ink); line-height: 1.6; max-width: 64ch; margin: 0 auto 2.5rem; text-align: center; }
.pain-quote span { color: var(--gold); }
.pain-list { display: flex; flex-direction: column; gap: 1rem; max-width: 720px; margin: 0 auto; }
.pain-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--white); border: 1px solid rgba(0,0,0,.07); border-radius: 8px; }
.pain-icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: rgba(192,57,43,.08); color: var(--red-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.pain-text { font-size: 14.5px; color: var(--ink2); line-height: 1.6; padding-top: .15rem; }

/* Chapters */
.chapters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.chapter-card { background: var(--white); border: 1px solid rgba(0,0,0,.07); border-radius: 10px; padding: 1.75rem; }
.chapter-num { font-family: var(--fd); font-size: 1.75rem; font-weight: 700; color: var(--gold-rul); line-height: 1; margin-bottom: .85rem; }
.chapter-title { font-family: var(--fd); font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: .6rem; }
.chapter-desc { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* What you get / toolkit */
.toolkit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.toolkit-item { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.25rem; background: rgba(255,255,255,.04); border: 1px solid var(--navy-brd); border-radius: 8px; }
.toolkit-check { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--gold-dim); border: 1px solid var(--gold-rul); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.toolkit-text { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.55; padding-top: .1rem; }

/* Foreword quote */
.foreword-block { max-width: 740px; margin: 0 auto; text-align: center; }
.foreword-text { font-family: var(--fd); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-style: italic; color: var(--ink); line-height: 1.65; margin-bottom: 1.25rem; }
.foreword-attr { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Author mini block */
.author-mini { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; align-items: center; max-width: 720px; margin: 0 auto; }
.author-mini img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: center 15%; box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.author-mini-name { font-family: var(--fd); font-size: 1.375rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.author-mini-role { font-size: 12.5px; font-weight: 500; color: var(--gold); margin-bottom: .85rem; }
.author-mini-bio { font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--white); border: 1px solid rgba(0,0,0,.07); border-radius: 8px; overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.faq-question::after { content: '+'; font-size: 18px; color: var(--gold); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 1.4rem 1.1rem; font-size: 13.5px; color: var(--ink2); line-height: 1.65; }

/* Series carousel */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.25rem; max-width: 760px; margin: 0 auto; }
.series-item { border-radius: 8px; overflow: hidden; transition: transform .25s var(--ease); }
.series-item:hover { transform: translateY(-4px); }
.series-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: 0 12px 28px rgba(0,0,0,.12); border-radius: 8px; }

@media (max-width: 1100px) and (min-width: 901px) {
  .product-hero-inner { grid-template-columns: 240px 1fr 300px; gap: 2rem; }
}
@media (max-width: 900px) {
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-cover-frame { max-width: 260px; margin: 0 auto; }
  .product-buy-box { height: auto; }
  .author-mini { grid-template-columns: 1fr; text-align: center; }
  .author-mini img { width: 110px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════
   PRELOADER (full-bleed reference image, animated entry)
═══════════════════════════════════════════ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
  overflow: hidden;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Image is placed in a fixed 1536x1024 aspect-ratio box, scaled to fit the
   viewport (contain) and centered. The hotspot is positioned as a percentage
   of THIS box, so it always lines up with the tree/portal in the artwork
   regardless of screen size. */
.preloader-stage {
  position: relative;
  width: 100%; height: 100%;
  max-width: 100vw; max-height: 100vh;
}
.preloader-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.preloader-overlay-box {
  position: absolute;
  /* this box is sized/centered to exactly match the rendered image's
     content box when object-fit:contain letterboxes the 1536x1024 image */
  inset: 0;
  margin: auto;
  aspect-ratio: 1536 / 1024;
  width: min(100vw, 150vh);
  height: min(100vh, 66.67vw);
}

/* Clickable circle over the tree portal — positioned as % of the image box.
   Measured from the artwork: ring center ~50% across, ~31% down; ring outer
   diameter ~47% of image width. */
.preloader-hotspot {
  position: absolute;
  top: 31%; left: 50%;
  width: 47%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.preloader-hotspot-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232,201,106,.35);
  animation: hotspot-pulse 2.6s ease-in-out infinite;
}
.preloader-hotspot-ring.r2 { animation-delay: .9s; }
@keyframes hotspot-pulse {
  0%   { transform: scale(0.82); opacity: 0; }
  35%  { opacity: .8; }
  100% { transform: scale(1.08); opacity: 0; }
}
.preloader-hotspot:hover .preloader-hotspot-ring { border-color: rgba(245,230,184,.7); animation-duration: 1.4s; }

/* Text reveal: grows from a point of light in the book (~64% down the image box) */
.preloader-text-wrap {
  position: absolute;
  left: 50%; top: 64%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 80%;
  max-width: 640px;
  z-index: 2;
}
.preloader-welcome {
  font-family: var(--fd);
  font-size: clamp(1.1rem, 3.4vw, 2rem);
  font-style: italic; font-weight: 600;
  color: #fffdf5;
  text-shadow: 0 0 30px rgba(245,230,184,.6), 0 0 60px rgba(201,168,76,.4);
  opacity: 0;
  transform: scale(0.2);
  animation: preloader-text-grow 2.2s var(--ease) forwards;
  animation-delay: .5s;
  letter-spacing: .01em;
}
@keyframes preloader-text-grow {
  0%   { opacity: 0; transform: scale(0.15); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

.preloader-hint {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  opacity: 0; animation: preloader-hint-fade 1s ease forwards;
  animation-delay: 2.4s;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}
@keyframes preloader-hint-fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .preloader-hotspot-ring { animation: none; opacity: .5; }
  .preloader-welcome { animation: none; opacity: 1; transform: scale(1); }
  .preloader-hint { animation: none; opacity: 1; }
}
@media (max-width: 600px) {
  .preloader-welcome { font-size: clamp(.95rem, 4.2vw, 1.5rem); }
}

/* ═══════════════════════════════════════════
   TREE-OF-LIFE HERO BACKGROUND (home page)
═══════════════════════════════════════════ */
.tree-hero {
  position: relative; background: var(--navy); overflow: hidden;
}
.tree-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.tree-hero-bg canvas { width: 100%; height: 100%; display: block; }
.tree-hero-bg::after {
  /* gradient fade at bottom so hero flows into next section */
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 35%;
  background: linear-gradient(to bottom, transparent 0%, var(--navy) 100%);
  pointer-events: none; z-index: 1;
}
.tree-hero-image {
  position: absolute; z-index: 0;
  opacity: .85; mix-blend-mode: screen;
  pointer-events: none;
}

/* Smooth gradient transition from hero into next section */
.gradient-flow-down {
  position: relative;
}
.gradient-flow-down::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom, var(--navy) 0%, transparent 100%);
  pointer-events: none; z-index: 5;
}

/* ═══════════════════════════════════════════
   SUBSCRIBE + FOOTER WITH NEURAL BRAIN
═══════════════════════════════════════════ */
.brand-statement {
  background: var(--navy); position: relative; overflow: hidden;
  padding: 5rem 0 0;
}
.brand-statement-bg { position: absolute; inset: 0; z-index: 0; }
.brand-statement-bg canvas { width: 100%; height: 100%; display: block; }
.brand-statement-inner { position: relative; z-index: 2; text-align: center; }
.brand-statement-title {
  font-family: var(--fd); font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; font-style: italic; color: #fff;
  line-height: 1.4; max-width: 46ch; margin: 0 auto 2.5rem;
}
.subscribe-box {
  max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--navy-brd);
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  backdrop-filter: blur(6px);
}
.subscribe-box-title { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.subscribe-form { display: flex; gap: .6rem; }
.subscribe-input {
  flex: 1; font-family: var(--fb); font-size: 13.5px; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px; padding: .8rem 1.3rem; outline: none;
  transition: border-color .2s;
}
.subscribe-input::placeholder { color: rgba(255,255,255,.32); }
.subscribe-input:focus { border-color: var(--gold-rul); }
.subscribe-submit {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--navy);
  padding: .8rem 1.5rem; border-radius: 30px; white-space: nowrap;
  transition: background .2s;
}
.subscribe-submit:hover { background: var(--gold-lt); }

.footer-with-brain { background: var(--navy); position: relative; padding-top: 3rem; }
.footer-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: start; max-width: 1200px; margin: 0 auto; padding: 0 2rem 3rem; position: relative; z-index: 2; }
.footer-col-nav { display: flex; flex-direction: column; gap: .65rem; }
.footer-col-nav.align-right { align-items: flex-end; text-align: right; }
.footer-col-heading { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.footer-brain-wrap { position: relative; width: 280px; height: 200px; display: flex; align-items: center; justify-content: center; }
.footer-brain-wrap img { width: 100%; height: 100%; object-fit: contain; opacity: 1; }
.footer-brain-canvas { position: absolute; inset: -20px; pointer-events: none; }
.footer-socials-row { display: flex; gap: .75rem; justify-content: center; margin-top: 1rem; }

.footer-bottom-line {
  border-top: 1px solid var(--navy-brd);
  padding: 1.75rem 0; position: relative; z-index: 2;
}
.footer-bottom-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-bottom-grid .legal-center { text-align: center; }
.footer-bottom-grid .legal-center a { font-size: 12px; color: rgba(255,255,255,.45); }
.footer-bottom-grid .legal-center a:hover { color: var(--gold); }
.footer-copy-left { font-size: 11px; color: rgba(255,255,255,.28); }
.footer-copy-right { font-size: 11px; color: rgba(255,255,255,.28); text-align: right; }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .footer-col-nav, .footer-col-nav.align-right { align-items: center; text-align: center; }
  .footer-brain-wrap { margin: 0 auto; width: 180px; height: 180px; }
  .footer-bottom-grid { grid-template-columns: 1fr; text-align: center; gap: .6rem; }
  .footer-copy-right { text-align: center; }
  .subscribe-form { flex-direction: column; }
  .subscribe-submit { border-radius: 30px; }
}

/* ── REVIEW LOCK NOTICE (comment form gated for verified buyers) ── */
.review-lock-notice {
  max-width: 640px; margin: 2.5rem auto 0;
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px dashed rgba(0,0,0,.15);
  border-radius: 10px; padding: 1.5rem 1.75rem;
}
.review-lock-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--gold-rul);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.review-lock-icon svg { width: 17px; height: 17px; }
.review-lock-text { font-size: 13.5px; color: var(--ink2); line-height: 1.55; }
.review-lock-text strong { color: var(--ink); font-weight: 600; }

/* ═══════════════════════════════════════════════
   DESIGN POLISH — Emil / Impeccable
═══════════════════════════════════════════════ */

/* ── Custom easing curves (stronger than built-in) ── */
:root {
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── Button :active feedback (press feeling) ── */
.btn-primary:active    { transform: scale(0.97) translateY(0); box-shadow: none; transition: transform 100ms var(--ease-out); }
.btn-secondary:active  { transform: scale(0.97) translateY(0); transition: transform 100ms var(--ease-out); }
.btn-outline-dark:active { transform: scale(0.97); transition: transform 100ms var(--ease-out); }

/* ── Improved reveal animation with better easing ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .d1 { transition-delay: .05s; }
  .d2 { transition-delay: .12s; }
  .d3 { transition-delay: .19s; }
  .d4 { transition-delay: .26s; }
}

/* ── Book cards — richer hover ── */
.book-card {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
}
.book-card:hover .book-img-wrap img {
  transform: scale(1.04);
}
.book-img-wrap img {
  transition: transform .5s var(--ease-out);
}

/* ── Chapter cards — gold accent on hover ── */
.chapter-card {
  transition: transform .25s var(--ease-out), border-color .25s, background .25s;
  will-change: transform;
}
.chapter-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-rul);
  background: rgba(201,168,76,.04);
}

/* ── Stagger for books-grid ── */
.books-grid .book-card:nth-child(1).in { transition-delay: .05s; }
.books-grid .book-card:nth-child(2).in { transition-delay: .12s; }
.books-grid .book-card:nth-child(3).in { transition-delay: .19s; }
.books-grid .book-card:nth-child(4).in { transition-delay: .26s; }

/* ── Stagger for chapters-grid ── */
.chapters-grid .chapter-card:nth-child(1) { animation-delay: 0ms; }
.chapters-grid .chapter-card:nth-child(2) { animation-delay: 50ms; }
.chapters-grid .chapter-card:nth-child(3) { animation-delay: 100ms; }
.chapters-grid .chapter-card:nth-child(4) { animation-delay: 150ms; }
.chapters-grid .chapter-card:nth-child(5) { animation-delay: 200ms; }
.chapters-grid .chapter-card:nth-child(6) { animation-delay: 250ms; }

/* ── Product hero buy box — micro-polish ── */
.lang-buy-btn {
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out), transform .15s var(--ease-out);
}
.lang-buy-btn:hover  { transform: translateY(-1px); }
.lang-buy-btn:active { transform: scale(0.97); transition-duration: 80ms; }

/* ── Series items hover ── */
.series-item {
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.series-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

/* ── Pillar items — subtle entrance feel ── */
.pillar {
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.pillar:hover {
  background: rgba(201,168,76,.16);
  border-color: var(--gold-rul);
  transform: translateX(4px);
}

/* ── Hero stats — number glow on hover ── */
.stat-item {
  transition: background .2s;
}
.stat-item:hover .stat-num {
  text-shadow: 0 0 24px rgba(201,168,76,.5);
}

/* ── Nav CTA — press feedback ── */
.nav-cta:active { transform: scale(0.96); transition: transform 80ms; }

/* ── Product buy box — elevated shadow ── */
.product-buy-box {
  transition: box-shadow .3s var(--ease-out);
}
.product-buy-box:hover {
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(201,168,76,.2);
}

/* ── Review cards — lift on hover ── */
.review-card {
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

/* ── Hover-only guard for touch devices ── */
@media (hover: none) {
  .book-card:hover,
  .chapter-card:hover,
  .series-item:hover,
  .pillar:hover,
  .review-card:hover { transform: none; box-shadow: none; }
}

/* ── reduced-motion: no movement, keep opacity ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity .3s ease; transform: none; }
  .btn-primary:active, .btn-secondary:active, .btn-outline-dark:active { transform: none; }
  .book-card:hover, .series-item:hover { transform: none; }
}
