/* ════════════════════════════════════════════════════════
   LUMOS LEARNING — Marketing Homepage
   Mobile-first · WCAG 2.1 AA · Cozy fantasy theme
   ════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────── */
:root {
  /* Brand palette */
  --indigo:        #5B4FCF;
  --indigo-dark:   #3730A3;
  --indigo-mid:    #6D60D4;
  --indigo-light:  #818CF8;
  --indigo-pale:   #EEF2FF;

  --gold:          #FBBF24;
  --gold-dark:     #F59E0B;
  --gold-pale:     #FEF9C3;

  --math-color:    #FF6B35;
  --math-bg:       #FFF4EF;
  --english-color: #4361EE;
  --english-bg:    #EEF2FF;
  --spanish-color: #22C55E;
  --spanish-bg:    #F0FDF4;

  /* Backgrounds */
  --bg-page:    #FAFAF8;
  --bg-cream:   #FFF8F0;
  --bg-hero:    #0D0A1F;
  --bg-panel:   #FFFFFF;

  /* Text */
  --text:       #1a1a2e;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* Borders */
  --border:     #E5E7EB;
  --border-focus: #5B4FCF;

  /* Status */
  --success:    #16A34A;
  --error:      #DC2626;

  /* CTA (used by inline modal button overrides) */
  --color-cta:  #5B4FCF;
  --color-text-muted: #6B7280;
  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;
  /* Aliases used by inline HTML styles */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --s-sm:   0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --s-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --s-lg:   0 12px 36px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --s-xl:   0 24px 64px rgba(0,0,0,.13), 0 8px 24px rgba(0,0,0,.06);

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }

/* ── 3. TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
p { line-height: 1.7; }

/* ── 4. LAYOUT UTILITIES ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section-pad { padding: clamp(60px, 8vw, 112px) 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header h2 { margin: 10px 0 16px; }
.section-header p  { color: var(--text-muted); font-size: 1.1rem; font-weight: 600; }

.section-label {
  display: inline-block;
  background: var(--indigo-pale);
  color: var(--indigo);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: var(--r-full);
}

/* ── 5. FOCUS & SKIP LINK ──────────────────────────────── */
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

.skip-link {
  position: fixed; top: -120%; left: 16px; z-index: 9999;
  background: var(--indigo); color: #fff;
  padding: 12px 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }

/* ── 6. BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--r-full);
  transition: all .25s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

.btn-sm  { padding: 8px 20px; font-size: .88rem; }
.btn-md  { padding: 12px 28px; font-size: 1rem; }
.btn-lg  { padding: 14px 32px; font-size: 1.05rem; }

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,79,207,.35);
}
.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(91,79,207,.45);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--indigo);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--indigo);
  background: var(--indigo-pale);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
}
.btn-ghost:hover { background: rgba(0,0,0,.05); text-decoration: none; }

/* Hero CTAs */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #1a1a2e;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(251,191,36,.45);
  transition: all .25s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn-hero-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(251,191,36,.55);
  color: #1a1a2e;
  text-decoration: none;
}
.btn-hero-primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: var(--r-full);
  border: 2px solid rgba(255,255,255,.28);
  cursor: pointer;
  transition: all .25s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-hero-secondary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ── 7. NAVIGATION ─────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: box-shadow .25s var(--ease-io);
}
.nav-wrapper.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1;
}
.nav-logo-text span { color: var(--indigo); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: all .15s var(--ease-out);
}
.nav-links a:hover { color: var(--indigo); background: var(--indigo-pale); }

.nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 900px) { .nav-actions { display: flex; } }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r-md);
  transition: background .15s;
}
.nav-hamburger:focus-visible { outline: 3px solid var(--indigo); }
@media (min-width: 900px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s var(--ease-out);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--s-lg);
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }

.mobile-menu ul {
  padding: 12px 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--r-md);
  transition: background .15s;
}
.mobile-menu a:hover { background: var(--indigo-pale); color: var(--indigo); }

.mobile-menu-actions {
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.mobile-menu-actions .btn { justify-content: center; }

/* ── 8. HERO ───────────────────────────────────────────── */
.section-hero {
  position: relative;
  background: linear-gradient(150deg,
    #1E1060 0%,
    #4A1DA8 22%,
    #8B28C8 44%,
    #C2185B 66%,
    #EA5D0A 84%,
    #F8B400 100%
  );
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated star field */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
  opacity: var(--op, .6);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--op, .6); transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Gradient orbs — warm sunset accents */
.section-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(248,180,0,.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.section-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(194,24,91,.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px clamp(16px, 4vw, 48px) 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

.hero-content { display: flex; flex-direction: column; gap: 24px; order: 2; }
@media (min-width: 900px) { .hero-content { order: 1; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,191,36,.14);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(251,191,36,.28);
  width: fit-content;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

.section-hero h1 { color: #fff; }

.highlight {
  color: var(--gold);
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  opacity: .6;
}

.hero-subhead {
  font-size: clamp(.98rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.72);
  font-weight: 600;
  max-width: 520px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.58);
}
.hero-trust-item .icon { font-size: 1rem; }

/* Hero visual / illustration */
.hero-visual { order: 1; display: flex; justify-content: center; align-items: center; }
@media (min-width: 900px) { .hero-visual { order: 2; justify-content: flex-end; } }

.hero-svg {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 24px 64px rgba(91,79,207,.42));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* Floating subject bubbles */
.sparkle-1 { animation: sub-float 5s ease-in-out infinite; }
.sparkle-2 { animation: sub-float 5s ease-in-out infinite .8s; }
.sparkle-3 { animation: sub-float 5s ease-in-out infinite 1.6s; }
@keyframes sub-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(4px, -7px) scale(1.05); }
  66%       { transform: translate(-2px, -4px) scale(.97); }
}

/* ── 9. HOW IT WORKS ───────────────────────────────────── */
.section-how { background: var(--bg-page); }

.subject-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .subject-cards { grid-template-columns: repeat(3, 1fr); } }

.subject-card {
  background: var(--bg-panel);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--s-md);
  border: 1.5px solid var(--border);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}
.subject-card:hover { transform: translateY(-8px); box-shadow: var(--s-xl); }
.subject-card.math    { border-color: rgba(255,107,53,.22); }
.subject-card.english { border-color: rgba(67,97,238,.22); }
.subject-card.spanish { border-color: rgba(34,197,94,.22); }
.subject-card.math:hover    { box-shadow: 0 14px 44px rgba(255,107,53,.14), var(--s-xl); }
.subject-card.english:hover { box-shadow: 0 14px 44px rgba(67,97,238,.14), var(--s-xl); }
.subject-card.spanish:hover { box-shadow: 0 14px 44px rgba(34,197,94,.14), var(--s-xl); }

.subject-card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: var(--r-full);
  z-index: 2;
  backdrop-filter: blur(8px);
}
.subject-card-scene { height: 162px; overflow: hidden; flex-shrink: 0; }
.subject-card-scene svg { width: 100%; height: 100%; object-fit: cover; }
.subject-card-icon { font-size: 2rem; margin: 18px 22px 8px; }
.subject-card h3 { font-size: 1.25rem; margin: 0 22px 10px; }
.subject-card p {
  font-size: .93rem;
  color: var(--text-muted);
  margin: 0 22px;
  font-weight: 600;
}

.see-examples {
  display: inline-block;
  margin: 16px 22px 24px;
  font-size: .85rem;
  font-weight: 800;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .15s, letter-spacing .15s;
}
.subject-card.math    .see-examples { color: var(--math-color); }
.subject-card.english .see-examples { color: var(--english-color); }
.subject-card.spanish .see-examples { color: var(--spanish-color); }
.see-examples:hover { letter-spacing: .01em; text-decoration: underline; }

/* ── 10. GRADE PROGRESSION ─────────────────────────────── */
.section-progression {
  background: linear-gradient(180deg, #f0f0ff 0%, #fff8f0 100%);
  position: relative;
  overflow: hidden;
}
.section-progression::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,79,207,.055) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
}

.grade-path-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.grade-path {
  display: flex;
  position: relative;
  min-width: max-content;
  padding: 32px 0 16px;
}

/* The connecting line */
.grade-path::before {
  content: '';
  position: absolute;
  top: 60px;
  left: calc(10% + 36px);
  right: calc(10% + 36px);
  height: 5px;
  background: linear-gradient(90deg, #22C55E, #4361EE, #5B4FCF, #FF6B35, #FBBF24);
  border-radius: 3px;
  z-index: 0;
}

.grade-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 180px;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.grade-zone-bubble {
  width: 72px; height: 72px;
  background: linear-gradient(145deg, #fff, #f4f0ff);
  border: 3px solid var(--indigo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 18px rgba(91,79,207,.2), inset 0 1px 2px rgba(255,255,255,.9);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: default;
  background-color: #fff;
}
.grade-zone:hover .grade-zone-bubble {
  transform: scale(1.12) translateY(-5px);
  box-shadow: 0 10px 28px rgba(91,79,207,.35);
}

.grade-zone-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.25;
}
.grade-zone-grade {
  display: inline-block;
  margin-top: 7px;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 13px;
  border-radius: var(--r-full);
  color: #fff;
}
.grade-zone-skills {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.grade-zone-skills span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,.85);
  padding: 4px 11px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

/* Zone accent colors */
.grade-zone:nth-child(1) .grade-zone-bubble { border-color: #22C55E; }
.grade-zone:nth-child(2) .grade-zone-bubble { border-color: #4361EE; }
.grade-zone:nth-child(3) .grade-zone-bubble { border-color: #5B4FCF; }
.grade-zone:nth-child(4) .grade-zone-bubble { border-color: #FF6B35; }
.grade-zone:nth-child(5) .grade-zone-bubble { border-color: #D97706; }
.grade-zone:nth-child(1) .grade-zone-grade { background: #22C55E; }
.grade-zone:nth-child(2) .grade-zone-grade { background: #4361EE; }
.grade-zone:nth-child(3) .grade-zone-grade { background: #5B4FCF; }
.grade-zone:nth-child(4) .grade-zone-grade { background: #FF6B35; }
.grade-zone:nth-child(5) .grade-zone-grade { background: #D97706; }

/* ── 11. PARENT DASHBOARD ──────────────────────────────── */
.section-parent { background: var(--bg-page); }

.parent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 900px) {
  .parent-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}

.dashboard-preview { position: relative; }

.dashboard-preview-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--s-xl);
  border: 1px solid var(--border);
}
.dashboard-preview-img img { width: 100%; height: auto; display: block; }

.dashboard-floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--s-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
  border: 1px solid var(--border);
  animation: card-hover 4s ease-in-out infinite;
}
.card-streak { bottom: -18px; right: -18px; animation-delay: 0s; }
.card-progress { top: -18px; left: -18px; animation-delay: 2s; }
@keyframes card-hover {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.card-icon { font-size: 1.6rem; flex-shrink: 0; }
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-text strong { font-size: .92rem; font-weight: 800; color: var(--text); }
.card-text span   { font-size: .75rem; color: var(--text-muted); font-weight: 600; }

.parent-features { display: flex; flex-direction: column; gap: 22px; }
.parent-features h2 { margin: 6px 0 0; }
.parent-features > p { color: var(--text-muted); font-size: 1.05rem; font-weight: 600; }

.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-item-icon {
  width: 46px; height: 46px;
  background: var(--indigo-pale);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.feature-item-text { display: flex; flex-direction: column; gap: 3px; }
.feature-item-text strong { font-size: .98rem; font-weight: 800; }
.feature-item-text span   { font-size: .86rem; color: var(--text-muted); font-weight: 600; }

.trust-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: .86rem;
  font-weight: 700;
  color: #15803D;
}

/* ── 13. PRICING ───────────────────────────────────────── */
.section-pricing { background: var(--indigo-pale); }

/* Single free-forever card */
.pricing-free-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 48px 52px;
  box-shadow: 0 12px 48px rgba(91,79,207,.16);
  border: 2px solid rgba(91,79,207,.2);
}

.pricing-free-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.pricing-free-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.pricing-free-amount {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: 1;
  color: var(--indigo);
}

.pricing-free-price-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pricing-free-price-labels strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}
.pricing-free-price-labels span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-free-pill {
  background: linear-gradient(135deg, var(--indigo), #8B5CF6);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(91,79,207,.3);
}

.pricing-free-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-bottom: 40px;
}
@media (max-width: 560px) {
  .pricing-free-features { grid-template-columns: 1fr; }
}

.pricing-free-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pf-icon {
  color: var(--success);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-free-cta {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.pricing-mission {
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 520px;
  margin: 28px auto 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pricing-free-card { padding: 32px 24px; }
  .pricing-free-top { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── 14. FAQ ───────────────────────────────────────────── */
.section-faq { background: var(--bg-cream); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--s-sm);
  transition: border-color .2s;
}
.faq-item:focus-within { border-color: var(--indigo); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: background .15s;
}
.faq-trigger:hover { background: var(--indigo-pale); }
.faq-trigger:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; border-radius: var(--r-lg); }

.faq-icon {
  font-size: 1.25rem;
  color: var(--indigo);
  flex-shrink: 0;
  transition: transform .3s var(--ease-out);
  line-height: 1;
}
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.faq-body.open { max-height: 400px; }

.faq-body-inner {
  padding: 0 24px 20px;
  font-size: .93rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.75;
}

/* ── 15. FOOTER ────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, #0D0A1F 0%, #1a1038 100%);
  color: rgba(255,255,255,.65);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 64px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.75;
  margin-top: 12px;
  max-width: 280px;
}
.footer-badge {
  display: inline-block;
  margin-top: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-full);
  font-size: .73rem;
  font-weight: 700;
  padding: 6px 14px;
  color: rgba(255,255,255,.55);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .86rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.32); }

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .15s;
}
.footer-bottom-links a:hover { color: #fff; }

/* ── 16. MODAL ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,7,26,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay[hidden] { display: none !important; }
.modal-overlay:not([hidden]) { animation: overlay-in .2s var(--ease-out) forwards; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.modal-container {
  background: #fff;
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 478px;
  max-height: 90svh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
  position: relative;
  animation: modal-in .25s var(--ease-out);
}
@keyframes modal-in {
  from { transform: translateY(18px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Mobile: full-screen sheet */
@media (max-width: 500px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-container {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 95svh;
  }
}

/* Header strip */
.modal-header-strip {
  background: linear-gradient(135deg, #4338CA 0%, #7C3AED 100%);
  padding: 28px 56px 24px 28px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
  overflow: hidden;
}
/* Decorative glow */
.modal-header-strip::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(251,191,36,.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.modal-step-indicator {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
}
.modal-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  transition: all .25s var(--ease-out);
}
.modal-step-dot.active { background: var(--gold); width: 26px; border-radius: 4px; }

.modal-step-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.62);
  margin-bottom: 8px;
}
.modal-title { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin: 0 0 7px; }
.modal-subtitle { font-size: .84rem; color: rgba(255,255,255,.68); font-weight: 600; max-width: 310px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: .88rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 2;
}
.modal-close:hover { background: rgba(255,255,255,.3); }
.modal-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Body */
.modal-body { padding: 26px 28px; }

.modal-step { display: none; }
.modal-step.active { display: block; }

/* OAuth */
.oauth-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .15s var(--ease-out);
  white-space: nowrap;
}
.btn-oauth:hover { border-color: var(--indigo); background: var(--indigo-pale); }
.btn-oauth:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.btn-oauth svg { width: 18px; height: 18px; flex-shrink: 0; }

.or-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: .76rem;
  font-weight: 700;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Form */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .86rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.form-input-wrapper { position: relative; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91,79,207,.14); }
.form-input.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.form-input.success { border-color: var(--success); }
.form-input::placeholder { color: var(--text-light); font-weight: 600; }

.password-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer;
  font-size: 1.05rem;
  opacity: .45;
  transition: opacity .15s;
  padding: 4px;
  line-height: 1;
}
.password-toggle:hover { opacity: 1; }
.password-toggle:focus-visible { outline: 3px solid var(--indigo); border-radius: 4px; }

.grade-select {
  width: 100%;
  padding: 12px 44px 12px 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.grade-select:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91,79,207,.14); }

.form-help { font-size: .76rem; color: var(--text-light); font-weight: 600; margin-top: 5px; }
.form-error { font-size: .76rem; color: var(--error); font-weight: 700; margin-top: 5px; min-height: 18px; }

.form-checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.form-checkbox {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--indigo);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-checkbox:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.form-checkbox-label { font-size: .84rem; font-weight: 600; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form-checkbox-label a { color: var(--indigo); font-weight: 700; }

/* Modal action button */
.modal-actions { margin-top: 20px; }
.modal-actions .btn {
  width: 100%;
  justify-content: center;
  background: var(--color-cta);
  color: #fff;
  border-radius: var(--r-lg) !important;
  font-size: 1.05rem !important;
  font-weight: 800;
  padding: 15px !important;
  box-shadow: 0 4px 18px rgba(91,79,207,.35);
}
.modal-actions .btn:hover:not(:disabled) {
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: 0 7px 26px rgba(91,79,207,.45);
}
.modal-actions .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Step 2 submit override (inline style in HTML is picked up) */
#step2-submit {
  background: linear-gradient(135deg, var(--indigo) 0%, #7C3AED 100%) !important;
}
#step2-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--indigo-dark) 0%, #6D28D9 100%) !important;
}

.security-note { text-align: center; font-size: .73rem; color: var(--text-light); font-weight: 700; margin-top: 14px; }
.modal-secondary-action { text-align: center; font-size: .84rem; color: var(--text-muted); font-weight: 600; }
.modal-secondary-action a { color: var(--indigo); font-weight: 800; }

/* Chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 8px 18px;
  background: var(--bg-page);
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s var(--ease-out);
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-pale); }
.chip.selected, .chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.chip:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }

.modal-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: .86rem; font-weight: 700;
  color: var(--text-muted);
  background: none; border: none;
  cursor: pointer; padding: 0; margin-bottom: 20px;
  transition: color .15s;
}
.modal-back-btn:hover { color: var(--indigo); }
.modal-back-btn:focus-visible { outline: 3px solid var(--indigo); border-radius: 4px; }

/* Loading state */
.modal-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 28px;
  text-align: center;
  min-height: 320px;
}
.modal-loading.active { display: flex; }

.loading-spinner {
  width: 60px; height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.loading-text { font-family: var(--font-display); font-size: 1.45rem; color: var(--text); margin-bottom: 8px; }
.loading-sub { font-size: .86rem; color: var(--text-muted); font-weight: 600; line-height: 1.65; }

/* ── 17. SCROLL ANIMATIONS ─────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

[data-animate-delay="1"] { transition-delay: .10s; }
[data-animate-delay="2"] { transition-delay: .20s; }
[data-animate-delay="3"] { transition-delay: .30s; }
[data-animate-delay="4"] { transition-delay: .40s; }
[data-animate-delay="5"] { transition-delay: .50s; }

/* ── 18. SCROLLBAR STYLING ─────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── 19. REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── 20. MOBILE REFINEMENTS ────────────────────────────── */
@media (max-width: 700px) {
  .hero-inner { padding-top: 80px; padding-bottom: 60px; }
  .hero-svg { max-width: 360px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-hero-primary,
  .hero-ctas .btn-hero-secondary { width: 100%; text-align: center; justify-content: center; }

  .parent-grid { gap: 40px; }
  .card-streak { bottom: -12px; right: -8px; }
  .card-progress { top: -12px; left: -8px; }
  .dashboard-floating-card { min-width: unset; padding: 10px 14px; }

  .mobile-menu-actions .btn { display: flex; justify-content: center; }
}

/* ── 21. DESKTOP MAX WIDTH REFINEMENTS ─────────────────── */
@media (min-width: 1200px) {
  .hero-inner { padding-left: 48px; padding-right: 48px; }
  .parent-grid { gap: 96px; }
}

/* ── 22. MODAL HEADER ILLUSTRATION CHANGE ──────────────── */
.modal-header-strip::before {
  content: '🧙';
  position: absolute;
  right: 26px; bottom: 8px;
  font-size: 4rem;
  opacity: .22;
  pointer-events: none;
  filter: grayscale(0.2);
}
.modal-header-strip.step-2::before { content: '⭐'; }

/* ── 23. SECTION COLOR SEPARATORS ──────────────────────── */
/* Subtle wave-like top border between sections */
.section-how { border-top: 1px solid var(--border); }

/* ── 24. HOW IT WORKS – extra depth ───────────────────── */
.section-how .container { position: relative; }
.section-how .section-header { margin-bottom: 48px; }

/* Floating sparkle beside section title */
.section-how .section-header::after {
  content: '✦';
  position: absolute;
  top: -10px;
  right: 24px;
  font-size: 2rem;
  color: var(--gold);
  opacity: .25;
  pointer-events: none;
}

/* ── 25. PROGRESSION PATH MOBILE ───────────────────────── */
@media (max-width: 699px) {
  .grade-path-wrapper { overflow-x: auto; }
  .grade-path { padding: 20px 0 8px; }
  .grade-zone { min-width: 150px; }
  .grade-zone-bubble { width: 58px; height: 58px; font-size: 1.5rem; }
  .grade-zone-skills { gap: 4px; }
  .grade-zone-skills span { font-size: .72rem; padding: 3px 9px; }
}


/* ── 27. PRICING FREE CARD HIGHLIGHT BAR ───────────────── */
.pricing-free-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), #8B5CF6, var(--gold));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.pricing-free-card { position: relative; overflow: hidden; }

/* ── 28. SAFE FOR KIDS BADGE (inline CTA section) ──────── */
.safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.2);
}

/* ── 29. FOCUS WITHIN CARD HIGHLIGHT ──────────────────── */
.subject-card:focus-within { box-shadow: 0 0 0 3px var(--indigo), var(--s-lg); }

/* ── 30. PRINT STYLES ──────────────────────────────────── */
@media print {
  .nav-wrapper, .modal-overlay, .section-hero { display: none; }
}

