/* ══════════════════════════════════════════════════════════════
   LEO SPARKS — PREMIUM LANDING PAGE
   Design: Cinematic · Vibrant · High-Energy
   Fonts: Fredoka (headings) + Nunito (body)
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Core brand */
  --orange:        #F97316;
  --orange-bright: #FF8C30;
  --orange-deep:   #C2540A;
  --orange-glow:   rgba(249,115,22,.35);
  --yellow:        #FBBF24;
  --yellow-dim:    #F59E0B;
  --gold:          #D97706;

  /* Darks */
  --ink:           #060F1E;
  --ink-mid:       #0D1B2A;
  --navy:          #0F2040;
  --navy-mid:      #1A3355;
  --navy-light:    #24466E;

  /* Lights */
  --cream:         #FFFBF2;
  --cream-warm:    #FFF7E6;
  --warm-white:    #FFFEF9;
  --sand:          #FEF3C7;

  /* Text */
  --text-dark:     #0A0F1E;
  --text-body:     #2D3748;
  --text-muted:    #6B7280;
  --text-faint:    #9CA3AF;
  --text-onDark:   rgba(255,255,255,.88);
  --text-onDarkMuted: rgba(255,255,255,.55);

  /* Surfaces */
  --surface-glass: rgba(255,255,255,.07);
  --surface-glass-border: rgba(255,255,255,.12);
  --surface-card:  rgba(255,255,255,.96);
  --surface-light: #FFFFFF;
  --border-light:  rgba(0,0,0,.07);
  --border-warm:   #FDE68A;

  /* Effects */
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-2xl:    40px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,.07);
  --shadow-md:     0 8px 28px rgba(0,0,0,.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.14);
  --shadow-xl:     0 32px 80px rgba(0,0,0,.20);
  --shadow-orange: 0 8px 32px rgba(249,115,22,.40);
  --shadow-glow:   0 0 60px rgba(249,115,22,.20);

  --section-v:     96px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Layout helpers ────────────────────────────────────────── */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--orange);
  border-radius: 1px;
}
.eyebrow-gold { color: var(--yellow); }
.eyebrow-gold::before { background: var(--yellow); }

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 18px;
}
.section-title.on-dark { color: #fff; }
.section-title.center  { text-align: center; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 52px;
  text-align: center;
  line-height: 1.7;
}
.section-sub.on-dark { color: var(--text-onDarkMuted); }

.highlight {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0px;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: 3px;
  opacity: .5;
  transform: scaleX(.9);
}

/* Gradient headline text */
.grad-text {
  background: linear-gradient(135deg, var(--orange-bright) 0%, var(--yellow) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(249,115,22,.50); }
.btn-primary:active { transform: scale(.97); }

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid rgba(0,0,0,.15);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: rgba(249,115,22,.05); }

.btn-ghost-light {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }

.btn-large { padding: 18px 36px; font-size: 16px; border-radius: 999px; }

/* ── Amazon "Available at Amazon" official badge ── */
.amazon-badge-link {
  display: inline-flex;
  align-items: center;
  transition: opacity .2s ease, transform .2s ease;
  border-radius: 8px;
}
.amazon-badge-link:hover  { opacity: .88; transform: translateY(-2px); }
.amazon-badge-link:active { transform: scale(.97); opacity: .8; }
.amazon-badge-svg         { display: block; width: auto; height: 58px; }
.amazon-badge-svg--nav    { height: 40px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-cta {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange-deep) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-orange);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-cta:hover::after { transform: translateX(100%); }
.btn-cta:hover   { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(249,115,22,.50); }
.btn-cta:active  { transform: scale(.97); }
.btn-cta:disabled{ opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Scroll-reveal animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn::after, .btn-cta::after { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   STICKY NAV
══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 32px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-nav.scrolled {
  background: rgba(10,15,30,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  padding: 12px 32px;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* keep legible on both light hero and dark scrolled nav */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
  transition: opacity .3s ease;
}
.nav-logo-img:hover { opacity: .85; }

.nav-cta {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-orange);
  transition: all .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(249,115,22,.5); }

/* ══════════════════════════════════════════════════════════════
   HERO — WARM LIGHT
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 90px;
  overflow: hidden;
  background: #FFFBF0;
  isolation: isolate;
}

/* Layered parallax backgrounds */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Warm mesh gradient — orange glow top-right, soft amber bottom-left */
.hero-bg-mesh {
  background:
    radial-gradient(ellipse 70% 65% at 75% 20%, rgba(249,115,22,.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 10% 80%, rgba(251,191,36,.12) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #FFFBF0 30%, #FFF0D4 100%);
  z-index: 0;
}

/* Subtle dot grid — dark dots on light bg */
.hero-bg-dots {
  z-index: 1;
  background-image: radial-gradient(circle, rgba(15,32,64,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Warm glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(80px);
  will-change: transform;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,.20) 0%, transparent 70%);
  top: -80px; right: -60px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(251,191,36,.18) 0%, transparent 70%);
  bottom: -60px; left: -60px;
  animation: orbFloat2 16s ease-in-out infinite;
}
.hero-orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(254,243,199,.9) 0%, transparent 70%);
  top: 35%; left: 35%;
  animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-40px,30px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-40px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0,0); }
  33%      { transform: translate(20px,-20px); }
  66%      { transform: translate(-20px,10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

/* Speed lines */
.hero-speedlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-speedlines span {
  position: absolute;
  left: -20%;
  height: 1.5px;
  border-radius: 1px;
  background: linear-gradient(to right, transparent, rgba(249,115,22,.35), transparent);
  animation: speedline 4s linear infinite;
}
.hero-speedlines span:nth-child(1)  { width: 30%; top: 18%; animation-delay: 0s;   animation-duration: 3.2s; }
.hero-speedlines span:nth-child(2)  { width: 18%; top: 32%; animation-delay: .6s;  animation-duration: 4.1s; }
.hero-speedlines span:nth-child(3)  { width: 42%; top: 55%; animation-delay: 1.1s; animation-duration: 2.9s; }
.hero-speedlines span:nth-child(4)  { width: 22%; top: 70%; animation-delay: 1.8s; animation-duration: 3.7s; }
.hero-speedlines span:nth-child(5)  { width: 50%; top: 80%; animation-delay: 2.2s; animation-duration: 3.5s; }
.hero-speedlines span:nth-child(6)  { width: 26%; top: 12%; animation-delay: 2.7s; animation-duration: 4.4s; }
.hero-speedlines span:nth-child(7)  { width: 15%; top: 90%; animation-delay: .3s;  animation-duration: 5.0s; }
.hero-speedlines span:nth-child(8)  { width: 36%; top: 45%; animation-delay: 3.1s; animation-duration: 3.0s; }

@keyframes speedline {
  0%  { transform: translateX(0); opacity: 0; }
  8%  { opacity: 1; }
  85% { opacity: .5; }
  100%{ transform: translateX(130vw); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-speedlines { display: none; }
}

/* Hero content */
.hero-inner {
  max-width: 1120px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 10;
}

/* ── Hero text ─────────────────────────────────────────────── */
.hero-text { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(249,115,22,.10);
  border: 1px solid rgba(249,115,22,.25);
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-badge--coming-soon {
  background: rgba(15,32,64,.06);
  border-color: rgba(15,32,64,.2);
  color: var(--navy);
}

/* "Not on Amazon yet" note beneath hero description */
.hero-preorder-note {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: .93rem;
  color: var(--navy);
  margin-top: -8px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.hero-preorder-note svg { flex-shrink: 0; position: relative; top: 1px; }

/* Coming-soon ribbon on cover */
.coming-soon-ribbon {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
  padding: 6px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  z-index: 5;
}

.hero-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero-title-name {
  display: block;
  /* gradient kept as fallback for browsers without img support */
  background: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 55%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(249,115,22,.20));
}

.hero-tagline {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 24px;
}
.hero-tagline strong {
  color: var(--orange);
  font-weight: 700;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Hero visual ────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* parallax data-speed controls translateY in JS */
  will-change: transform;
}

.hero-book-wrap {
  position: relative;
  width: 360px;
}

.hero-book {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.hero-book-wrap:hover .hero-book {
  transform: scale(1.03);
}

/* Fallback cover */
.hero-book-wrap.no-cover .hero-book { display: none; }
.hero-book-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--ink) 100%);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 36px 28px;
  position: relative;
  z-index: 2;
}
.hero-book-wrap.no-cover .hero-book-fallback { display: flex; }
.fallback-bolt { width: 72px; filter: drop-shadow(0 0 16px rgba(251,191,36,.6)); }
.fallback-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.35;
}
.fallback-series {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: .7;
}

.hero-book-glow { display: none; }

/* Floating badges */
.float-badge {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border-warm);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(249,115,22,.18), var(--shadow-sm);
  white-space: nowrap;
  z-index: 5;
  animation: floatBadge 5s ease-in-out infinite;
}
.float-badge--top    { top: -20px;  right: -44px; animation-delay: 0s; }
.float-badge--bottom { bottom: 0;   left: -52px;  animation-delay: 2.5s; }
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .float-badge { animation: none; } }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 10;
  opacity: .45;
  animation: scrollBounce 2.4s ease-in-out infinite;
}
.scroll-cue span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ══════════════════════════════════════════════════════════════
   FEATURE STRIP (between hero and features)
══════════════════════════════════════════════════════════════ */
.feature-strip {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  padding: 22px 32px;
  overflow: hidden;
}
.feature-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.strip-item svg { flex-shrink: 0; opacity: .9; }
.strip-divider {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
@media (max-width: 600px) { .strip-divider { display: none; } }

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════════════════════ */
.features {
  padding: var(--section-v) 0;
  background: var(--warm-white);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.features-grid .feature-card          { grid-column: span 2; }
.features-grid .feature-card:nth-child(4) { grid-column: 2 / span 2; }
.features-grid .feature-card:nth-child(5) { grid-column: 4 / span 2; }

.feature-card {
  background: var(--surface-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: left;
  transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 16px 0 8px;
}
.feature-card p { font-size: .93rem; color: var(--text-muted); line-height: 1.65; }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-icon--orange { background: #FFF0E6; }
.feature-icon--yellow { background: #FFFBEB; }
.feature-icon--navy   { background: #EEF4FF; }
.feature-icon--green   { background: #EDFDF5; }
.feature-icon--purple  { background: #FAF5FF; }

/* ══════════════════════════════════════════════════════════════
   MEET LEO  (parallax section)
══════════════════════════════════════════════════════════════ */
.meet-leo {
  padding: var(--section-v) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Background parallax texture */
.meet-leo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(249,115,22,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 30%,  rgba(251,191,36,.07) 0%, transparent 60%);
}
.meet-leo-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.meet-leo-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 72px;
  position: relative;
  z-index: 2;
}

/* Leo visual */
.leo-image-wrap {
  flex-shrink: 0;
  position: relative;
  width: 320px;
  will-change: transform;
}

/* Decorative ring */
.leo-image-wrap::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(249,115,22,.25), rgba(251,191,36,.1), transparent 60%);
  z-index: 0;
  transform: rotate(3deg);
}

.leo-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255,255,255,.07);
}

.leo-image-wrap.no-leo .leo-image { display: none; }
.leo-fallback {
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy-mid), var(--ink-mid));
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-xl);
  align-items: center;
  justify-content: center;
}
.leo-fallback svg { width: 65%; }
.leo-image-wrap.no-leo .leo-fallback { display: flex; }

.leo-trait {
  position: absolute;
  background: rgba(15,32,64,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.leo-trait-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 4px;
}
.leo-trait--1 { top: 24px;  left: -28px; }
.leo-trait--2 { top: 48%;   right: -32px; transform: translateY(-50%); }
.leo-trait--3 { bottom: 40px; left: -20px; }

/* Leo text */
.leo-content .section-eyebrow { color: var(--yellow); }
.leo-content .section-eyebrow::before { background: var(--yellow); }
.leo-content .section-title { color: #fff; }

.leo-intro {
  font-size: 1.1rem;
  color: var(--text-onDark);
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 16px;
}
.leo-desc {
  font-size: .98rem;
  color: var(--text-onDarkMuted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.leo-desc em {
  color: var(--orange-bright);
  font-style: normal;
  font-weight: 700;
}

.leo-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.leo-stat { display: flex; flex-direction: column; align-items: flex-start; }
.leo-stat-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange-bright), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.leo-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-onDarkMuted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   12 STORIES
══════════════════════════════════════════════════════════════ */
.stories {
  padding: var(--section-v) 0;
  background: var(--cream);
  text-align: center;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 16px;
  text-align: left;
}

.story-card {
  display: flex;
  gap: 16px;
  background: var(--surface-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s ease, border-color .2s;
  position: relative;
  overflow: hidden;
}
.story-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249,115,22,.2);
}
.story-card:hover::after { transform: scaleX(1); }

.story-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(249,115,22,.2);
  min-width: 38px;
  line-height: 1;
  padding-top: 2px;
  transition: color .2s;
}
.story-card:hover .story-num { color: var(--orange); }

.story-content { flex: 1; }
.story-content h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

.story-tag {
  display: inline-block;
  background: var(--sand);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid var(--border-warm);
}

.story-content p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.story-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--orange);
}
.tip-label {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.stories-cta {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   LEO'S TIP SHOWCASE  (dark section with parallax divider)
══════════════════════════════════════════════════════════════ */
.tips-showcase {
  padding: var(--section-v) 0;
  background: var(--ink-mid);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tips-showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 70% at 0% 60%, rgba(249,115,22,.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 100% 30%, rgba(251,191,36,.07) 0%, transparent 60%);
}

.tips-showcase .section-inner { position: relative; z-index: 1; }
.tips-showcase .section-eyebrow { color: var(--yellow); }
.tips-showcase .section-eyebrow::before { background: var(--yellow); }
.tips-showcase .section-title { color: #fff; }
.tips-showcase .section-sub   { color: var(--text-onDarkMuted); }

.tips-header {
  text-align: center;
  margin-bottom: 52px;
}

.tips-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

/* Demo tip card */
.tip-card-demo {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.tip-card-demo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(249,115,22,.3), rgba(201,84,10,.2));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tip-leo-badge {
  width: 62px; height: 62px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(251,191,36,.15);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(251,191,36,.35);
}
.tip-leo-badge img { width: 100%; height: 100%; object-fit: cover; }
.tip-leo-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.tip-leo-fallback svg { width: 90%; height: 90%; }

.tip-card-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
  opacity: .8;
}
.tip-card-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.tip-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tip-card-body p {
  font-size: .93rem;
  color: var(--text-onDark);
  line-height: 1.7;
  font-style: italic;
}
.tip-card-body p::before { content: '"'; opacity: .4; }
.tip-card-body p::after  { content: '"'; opacity: .4; }

.tip-card-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tip-try-it {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-bright);
}
.tip-story { font-size: 11px; color: rgba(255,255,255,.3); }

/* Tips list */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  transition: all .2s ease;
  cursor: default;
}
.tip-mini:hover,
.tip-mini[data-active="true"] {
  background: rgba(249,115,22,.12);
  border-color: rgba(249,115,22,.3);
}
.tip-mini-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  min-width: 30px;
}
.tip-mini-name {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
}
.tip-mini-story {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.tip-mini--more {
  border-style: dashed;
  border-color: rgba(251,191,36,.2);
  background: rgba(251,191,36,.05);
}
.tip-mini--more .tip-mini-num { color: var(--yellow); }
.tip-mini--more .tip-mini-name { color: var(--yellow); opacity: .8; }

/* ══════════════════════════════════════════════════════════════
   AUDIENCE
══════════════════════════════════════════════════════════════ */
.audience {
  padding: var(--section-v) 0;
  background: var(--warm-white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.audience-card {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1.5px solid transparent;
  transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s ease;
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: .25;
  filter: blur(30px);
}
.audience-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.audience-card--kids      { background: #FFFBF0; border-color: var(--border-warm); }
.audience-card--kids::before     { background: var(--yellow); }
.audience-card--parents   { background: #F0F6FF; border-color: #C7DFFF; }
.audience-card--parents::before  { background: #60A5FA; }
.audience-card--educators { background: #F0FDF7; border-color: #A7F3D0; }
.audience-card--educators::before{ background: #34D399; }

.audience-icon { width: 60px; height: 60px; margin-bottom: 22px; }
.audience-icon svg { width: 100%; height: 100%; }

.audience-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.audience-card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.audience-list { display: flex; flex-direction: column; gap: 8px; }
.audience-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-body);
}
.audience-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   FREE STORY — PREMIUM DARK CTA
══════════════════════════════════════════════════════════════ */
.free-story {
  padding: var(--section-v) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Layered background */
.free-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%,  rgba(249,115,22,.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 30%, rgba(251,191,36,.08) 0%, transparent 55%);
  z-index: 0;
}
.free-story::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.free-story-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Text side */
.free-story-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
}
.free-story-title-highlight {
  background: linear-gradient(135deg, var(--orange-bright), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.free-story-desc {
  font-size: 1.02rem;
  color: var(--text-onDarkMuted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.free-story-perks { display: flex; flex-direction: column; gap: 14px; }
.perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-onDark);
}
.perk svg { flex-shrink: 0; margin-top: 2px; }

/* Signup card — glass morphism */
.signup-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}

.signup-card-header { text-align: center; margin-bottom: 30px; }

.signup-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.signup-card-header h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.signup-card-header p {
  font-size: .88rem;
  color: var(--text-onDarkMuted);
}

/* Format selector */
.format-fieldset { border: none; padding: 0; margin-bottom: 22px; }
.format-legend {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.format-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.format-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s ease;
  background: rgba(255,255,255,.04);
  user-select: none;
}
.format-option label:hover {
  border-color: rgba(249,115,22,.5);
  background: rgba(249,115,22,.08);
}
.format-option input:checked + label {
  border-color: var(--orange);
  background: rgba(249,115,22,.14);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.format-option input:focus-visible + label {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.format-icon {
  width: 32px; height: 32px;
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.format-option input:checked + label .format-icon { color: var(--orange-bright); }
.format-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  line-height: 1;
}
.format-detail {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  text-align: center;
  line-height: 1.3;
}

/* Form fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.form-row .form-group { margin-bottom: 0; }

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.form-stack .form-group { margin-bottom: 0; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 7px;
}
.form-group .optional {
  font-size: 10px;
  font-weight: 600;
  opacity: .6;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input::placeholder { color: rgba(255,255,255,.28); }
.form-group input:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

/* Alert */
.alert {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
  line-height: 1.5;
}
.alert.success { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.25); color: #6EE7B7; }
.alert.error   { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.25); color: #FCA5A5; }
.alert.show    { display: block; }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.28);
  margin-top: 14px;
  line-height: 1.55;
}
.privacy-note svg { flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════
   SERIES TEASER  (parallax-enabled divider)
══════════════════════════════════════════════════════════════ */
.series {
  padding: var(--section-v) 0;
  position: relative;
  overflow: hidden;
  background: var(--orange);
  isolation: isolate;
}

.series::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 100% 50%, rgba(255,255,255,.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 0%,     rgba(0,0,0,.12) 0%, transparent 60%);
  z-index: 0;
}

.series-inner {
  display: flex;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.series-bolt {
  flex-shrink: 0;
  width: 90px;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.3));
  opacity: .55;
}
.series-bolt svg path { fill: #fff; }

.series-content h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.series-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 10px;
}
.series-content strong { color: #fff; }

.btn-series {
  margin-top: 28px;
  display: inline-flex;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  gap: 8px;
  transition: all .2s ease;
}
.btn-series:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT THE AUTHOR
══════════════════════════════════════════════════════════════ */
.author {
  padding: var(--section-v) 0;
  background: #F8F9FB;
  border-top: 1px solid var(--border-warm);
}

.author-inner {
  max-width: 720px;
}

.author-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.1em;
}

.author-bio:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 48px 32px;
  background: var(--ink);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

/* Hero name logo */
.hero-name-logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
}

/* Bonus cover in free-story section */
.bonus-cover-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bonus-cover {
  width: 200px;
  aspect-ratio: 2/3;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.08),
    0 32px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.bonus-cover-wrap:hover .bonus-cover {
  transform: rotateY(5deg) rotateX(2deg) scale(1.03);
}
.footer-copy  { font-size: .9rem; color: rgba(255,255,255,.35); margin-bottom: 8px; }
.footer-legal { font-size: .78rem; color: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════════════════════════
   ERROR PAGE
══════════════════════════════════════════════════════════════ */
.error-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100svh;
  padding: 40px 20px; text-align: center; gap: 16px;
  background: var(--ink); color: #fff;
}
.error-page h1 { font-family: 'Fredoka', sans-serif; font-size: 2rem; }
.error-page p  { color: rgba(255,255,255,.5); max-width: 420px; }
.error-page .btn { width: auto; padding: 14px 32px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --section-v: 72px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .feature-card,
  .features-grid .feature-card:nth-child(4),
  .features-grid .feature-card:nth-child(5) { grid-column: span 1; }
  .features-grid .feature-card:nth-child(5) { grid-column: 1 / span 2; justify-self: center; max-width: 380px; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-desc  { margin-left: auto; margin-right: auto; }

  /* text first on mobile — book goes below */
  .hero-visual { order: 1; }
  .hero-book-wrap { width: 280px; }

  .meet-leo-inner {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: center;
  }
  .leo-image-wrap { width: 260px; margin: 0 auto; }
  .leo-trait--1 { left: -10px; }
  .leo-trait--2 { right: -10px; }
  .leo-trait--3 { left: -10px; }
  .leo-stats { justify-content: center; }
  .leo-content .section-title { text-align: center; }
  .leo-content .section-eyebrow { display: flex; justify-content: center; }

  .free-story-inner { grid-template-columns: auto 1fr; gap: 40px; }
  .bonus-cover { width: 160px; }
  .signup-card { grid-column: 1 / -1; }

  .tips-demo {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .series-inner { flex-direction: column; gap: 32px; }
  .series-bolt { width: 64px; }
}

@media (max-width: 640px) {
  :root { --section-v: 56px; }

  .site-nav { padding: 14px 20px; }
  .nav-logo span:not(.nav-bolt) { font-size: 1rem; }

  .hero { padding: 100px 20px 60px; }
  .hero-book-wrap { width: 240px; }
  .float-badge { font-size: 11px; padding: 7px 12px; }
  .float-badge--top    { right: -8px; }
  .float-badge--bottom { left: -8px; }

  .section-inner { padding: 0 20px; }

  .features-grid, .audience-grid { grid-template-columns: 1fr; }
  .features-grid .feature-card:nth-child(5) { grid-column: span 1; max-width: none; justify-self: auto; }
  .stories-grid  { grid-template-columns: 1fr; }
  .feature-card { padding: 20px 18px; }
  .hero-preorder-note { justify-content: center; flex-wrap: wrap; text-align: center; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-large { justify-content: center; }

  .free-story-inner { grid-template-columns: 1fr; gap: 32px; }
  .bonus-cover-wrap { order: -1; }
  .signup-card { grid-column: auto; padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .tips-demo { max-width: 100%; }
  .series-content p { font-size: .94rem; }
}

/* ── Focus visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
