/* ═══════════════════════════════════════════════════════════
   SINGLA PUBLISHERS — Black & Gold Luxury Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0b0d;
  --bg-2: #101014;
  --bg-3: #16161c;
  --ink: #f2ede2;
  --ink-dim: #a9a49a;
  --ink-faint: #6d6a63;
  --gold: #d4af37;
  --gold-bright: #f0d878;
  --gold-deep: #9a7b1e;
  --gold-grad: linear-gradient(120deg, #8a6d1c 0%, #d4af37 35%, #f6e6a2 50%, #d4af37 65%, #8a6d1c 100%);
  --line: rgba(212, 175, 55, 0.18);
  --card: rgba(255, 255, 255, 0.025);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h1 em, h2 em, .final-cta em {
  font-style: italic;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ─── Eyebrow ─── */
.eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.4rem;
}
.eyebrow.centered { justify-content: center; }
.eyebrow-line { display: inline-block; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow.centered .eyebrow-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.section-sub { color: var(--ink-dim); font-size: 1.05rem; max-width: 560px; margin: 1.1rem auto 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.micro { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer; transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-grad); background-size: 200% auto;
  color: #17130a;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 8px 34px rgba(212, 175, 55, 0.4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { font-size: 0.72rem; padding: 0.62rem 1.15rem; border-radius: 3px; }
.btn:not(.btn-sm):not(.btn-lg):not(.btn-xl) { font-size: 0.78rem; padding: 0.85rem 1.6rem; border-radius: 3px; }
.btn-lg { font-size: 0.82rem; padding: 1.05rem 2.1rem; border-radius: 3px; }
.btn-xl { font-size: 0.9rem; padding: 1.25rem 2.9rem; border-radius: 3px; }
.btn s.muted { opacity: 0.55; font-weight: 400; }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 1.05rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25)); }
.brand-name { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); transition: color 0.3s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.currency-toggle {
  background: transparent; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink-dim); font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; padding: 0.55rem 0.8rem; cursor: pointer; transition: border-color 0.3s;
}
.currency-toggle:hover { border-color: var(--gold); }
.currency-toggle .sep { margin: 0 0.35rem; opacity: 0.4; }
.currency-toggle span[data-cur].active { color: var(--gold-bright); font-weight: 700; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--gold); transition: 0.3s; }

/* ─── Hero ─── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 8.5rem 2rem 0; overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.13) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.83 0 0 0 0 0.69 0 0 0 0 0.22 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; flex: 1;
}
.hero-sub { color: var(--ink-dim); font-size: 1.12rem; max-width: 520px; margin: 1.6rem 0 2.4rem; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.8rem; list-style: none; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-badges li { font-size: 0.82rem; color: var(--ink-dim); letter-spacing: 0.04em; }

/* Fanned book stack */
.hero-stack { position: relative; height: 560px; perspective: 1400px; }
.stack-book {
  position: absolute; width: 240px; border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.12);
  transition: transform 0.6s var(--ease);
  animation: floaty 7s ease-in-out infinite;
}
.stack-book.b1 { left: 2%;  top: 16%; transform: rotate(-10deg); z-index: 1; animation-delay: 0s; }
.stack-book.b2 { left: 22%; top: 8%;  transform: rotate(-4deg);  z-index: 2; animation-delay: 0.9s; }
.stack-book.b3 { left: 42%; top: 4%;  transform: rotate(3deg);   z-index: 3; animation-delay: 1.8s; }
.stack-book.b4 { left: 60%; top: 10%; transform: rotate(10deg);  z-index: 4; animation-delay: 2.7s; }
.hero-stack:hover .stack-book.b1 { transform: rotate(-13deg) translateY(-14px); }
.hero-stack:hover .stack-book.b2 { transform: rotate(-5deg) translateY(-22px); }
.hero-stack:hover .stack-book.b3 { transform: rotate(4deg) translateY(-22px); }
.hero-stack:hover .stack-book.b4 { transform: rotate(13deg) translateY(-14px); }
@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

/* Marquee */
.hero-marquee { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; margin-top: 4rem; overflow: hidden; }
.marquee-track { display: flex; gap: 3rem; align-items: center; white-space: nowrap; animation: marquee 24s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.5em; color: var(--ink-faint); }
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ─── Stats ─── */
.stats {
  max-width: 1100px; margin: 0 auto; padding: 4.5rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.stat strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gold-bright); font-weight: 600; }
.stat span { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }

/* ─── Books ─── */
.books { max-width: 1240px; margin: 0 auto; padding: 6rem 2rem; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.book-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 2.2rem; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.book-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.07), transparent 45%);
  transition: opacity 0.4s;
}
.book-card:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.book-card:hover::before { opacity: 1; }
.book-visual { position: relative; }
.book-visual img {
  border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease);
}
.book-card:hover .book-visual img { transform: scale(1.04) rotate(-1.5deg); }
.book-step {
  position: absolute; top: -14px; left: -14px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 0.95rem; color: #17130a;
  background: var(--gold-grad); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}
.book-info h3 { font-size: 1.55rem; margin-bottom: 0.3rem; }
.book-tag { font-family: var(--serif); font-style: italic; color: var(--gold-bright); font-size: 0.98rem; margin-bottom: 0.8rem; }
.book-desc { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 1rem; }
.book-points { list-style: none; margin-bottom: 1.1rem; }
.book-points li { font-size: 0.85rem; color: var(--ink-dim); padding-left: 1.2rem; position: relative; margin-bottom: 0.35rem; }
.book-points li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.62rem; top: 0.28em; }
.book-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.book-meta span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); padding: 0.25rem 0.65rem; border-radius: 20px; }
.book-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.price strong { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-bright); font-weight: 600; }
.price s { color: var(--ink-faint); font-size: 0.95rem; }
.save-chip {
  font-style: normal; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold-bright); background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.22rem 0.6rem; border-radius: 20px; text-transform: uppercase;
}
.save-chip.big { font-size: 0.78rem; padding: 0.4rem 0.9rem; }

/* ─── Bundle ─── */
.bundle { position: relative; padding: 7rem 2rem; background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(212, 175, 55, 0.09), transparent 65%), var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bundle-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bundle-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; perspective: 1000px; }
.bundle-covers img {
  border-radius: 4px; box-shadow: 0 22px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.1);
  transition: transform 0.5s var(--ease);
}
.bundle-covers img:nth-child(odd) { transform: rotate(-2.5deg); }
.bundle-covers img:nth-child(even) { transform: rotate(2.5deg) translateY(1.6rem); }
.bundle-covers:hover img { transform: rotate(0) translateY(0); }
.bundle-list { list-style: none; margin: 1.8rem 0 2.2rem; }
.bundle-list li { padding: 0.85rem 0; border-bottom: 1px solid rgba(212, 175, 55, 0.1); font-size: 0.98rem; }
.bundle-list li b { font-family: var(--serif); color: var(--gold); margin-right: 0.6rem; font-weight: 600; }
.bundle-list li span { color: var(--ink-faint); font-size: 0.85rem; }
.bundle-price { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.bp-main { display: flex; align-items: baseline; gap: 0.8rem; }
.bp-main strong { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--gold-bright); font-weight: 700; line-height: 1; }
.bp-main s { color: var(--ink-faint); font-size: 1.3rem; }
.bundle .micro { margin-top: 1.1rem; }

/* ─── Testimonials ─── */
.testimonials { max-width: 1240px; margin: 0 auto; padding: 6.5rem 2rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testi {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2rem;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.testi:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-4px); }
.testi .stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.85rem; margin-bottom: 1rem; }
.testi blockquote { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.6; color: var(--ink); margin-bottom: 1.2rem; }
.testi figcaption { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-faint); }

/* ─── Author ─── */
.author { padding: 6rem 2rem; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.author-copy p { color: var(--ink-dim); margin-top: 1.4rem; font-size: 1.02rem; }
.author-copy p strong { color: var(--ink); }
.author-quote {
  font-family: var(--serif) !important; font-style: italic; font-size: 1.35rem !important;
  color: var(--gold-bright) !important; margin-top: 2rem !important;
}

/* ─── FAQ ─── */
.faq { max-width: 780px; margin: 0 auto; padding: 6.5rem 2rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.4rem 0;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-bright); }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.35s var(--ease); }
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq-icon::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
details[open] .faq-icon::after { transform: rotate(90deg); }
.faq-list details p { padding: 0 0 1.6rem; color: var(--ink-dim); font-size: 0.95rem; max-width: 640px; }
.faq-list details a { color: var(--gold-bright); border-bottom: 1px solid rgba(212, 175, 55, 0.4); }

/* ─── Final CTA ─── */
.final-cta {
  text-align: center; padding: 7rem 2rem;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(212, 175, 55, 0.1), transparent 70%);
}
.final-cta p { color: var(--ink-dim); margin: 1.2rem 0 2.4rem; font-size: 1.08rem; }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 4rem 2rem 3rem;
  display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 3rem;
}
.footer-brand p { color: var(--ink-faint); font-size: 0.85rem; margin-top: 1.2rem; }
.footer-col h4 { font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--ink-dim); font-size: 0.88rem; margin-bottom: 0.6rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-addr { color: var(--ink-faint); font-size: 0.8rem; margin-top: 0.8rem; }
.footer-bar {
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  max-width: 1240px; margin: 0 auto; padding: 1.4rem 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bar p { font-size: 0.75rem; color: var(--ink-faint); }

/* ─── Cart button (nav) ─── */
.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 3px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-dim);
  transition: border-color 0.3s, color 0.3s;
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  font-size: 0.66rem; font-weight: 700; color: #17130a;
  background: var(--gold-grad); border-radius: 10px;
}

/* ─── Cart Drawer ─── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(6px);
  animation: fadeIn 0.3s;
}
.drawer-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(430px, 100vw);
  background: var(--bg-3); border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column;
  animation: drawerIn 0.4s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(60px); opacity: 0; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.8rem; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 1.4rem; }
.drawer-close {
  background: none; border: none; color: var(--ink-faint); font-size: 1.8rem;
  cursor: pointer; line-height: 1; transition: color 0.3s;
}
.drawer-close:hover { color: var(--gold); }
.drawer-items { flex: 1; overflow-y: auto; padding: 1.2rem 1.8rem; }
.cart-empty { text-align: center; color: var(--ink-faint); padding: 3rem 0; font-size: 0.95rem; line-height: 1.9; }
.cart-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.cart-item img { width: 44px; border-radius: 2px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); flex-shrink: 0; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.ci-info strong { font-family: var(--serif); font-size: 0.98rem; font-weight: 600; }
.ci-info span { font-size: 0.72rem; color: var(--ink-faint); }
.ci-price { font-family: var(--serif); color: var(--gold-bright); font-size: 1rem; }
.ci-remove {
  background: none; border: none; color: var(--ink-faint); font-size: 1.3rem;
  cursor: pointer; line-height: 1; padding: 0.3rem; transition: color 0.3s;
}
.ci-remove:hover { color: #e06c6c; }
.bundle-hint {
  margin: 0 1.8rem; padding: 0.85rem 1.1rem;
  font-size: 0.82rem; color: var(--ink-dim);
  background: rgba(212, 175, 55, 0.07); border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 6px;
}
.bundle-hint.applied { border-style: solid; color: var(--gold-bright); }
.bundle-hint .hint-add {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--gold-bright); font-size: inherit; font-family: inherit;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
}
.drawer-foot { padding: 1.3rem 1.8rem 1.6rem; border-top: 1px solid var(--line); }
.coupon-row { margin-bottom: 1rem; }
.coupon-row input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em;
  transition: border-color 0.3s;
}
.coupon-row input:focus { outline: none; border-color: var(--gold); }
.coupon-row input::placeholder { color: var(--ink-faint); }
.drawer-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.drawer-total > span { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.drawer-total strong { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-bright); }
.drawer-total s { color: var(--ink-faint); font-size: 0.95rem; margin-left: 0.5rem; }
.drawer-foot .btn { width: 100%; }
.drawer-foot .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.drawer-foot .micro { text-align: center; margin-top: 0.8rem; }
.cart-status.error { color: #e06c6c; }

/* ─── Legal pages ─── */
.legal { max-width: 820px; margin: 0 auto; padding: 9rem 2rem 5rem; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 0.4rem; }
.legal .effective { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 3rem; }
.legal h2 { font-size: 1.45rem; margin: 2.6rem 0 0.9rem; color: var(--gold-bright); }
.legal h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 0.9rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--ink); }
.legal a { color: var(--gold-bright); border-bottom: 1px solid rgba(212,175,55,0.4); }
.legal .back { display: inline-block; margin-bottom: 2.5rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); border: none; }
.legal .back:hover { color: var(--gold-bright); }
.legal-contact { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 2rem; margin-top: 2.5rem; }
.legal-contact p { margin-bottom: 0.4rem; }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-stack { height: 400px; max-width: 620px; margin: 0 auto; width: 100%; }
  .stack-book { width: 170px; }
  .book-grid { grid-template-columns: 1fr; }
  .bundle-inner { grid-template-columns: 1fr; gap: 3rem; }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11, 11, 13, 0.97); backdrop-filter: blur(18px);
    padding: 1.6rem 2rem 2rem; gap: 1.3rem; border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .book-card { grid-template-columns: 1fr; }
  .book-visual { max-width: 210px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 7rem; }
  .stack-book { width: 130px; }
  .hero-stack { height: 300px; }
  .brand-name { display: none; }
  .modal { padding: 1.8rem; }
}
