/* ============================================================
   QUEST — Landing Page Styles
   Palette: monochromatic purple + gold accent (Duolingo-style tokens)
   ============================================================ */

:root {
  /* Brand core */
  --purple:        #7C4DEF;
  --purple-sh:     #5B33CC;
  --purple-dk:     #1A0A40;
  --purple-mid:    #6A4FD0;
  --purple-soft:   #A48BF0;

  /* Surfaces — single hue family (ColorFYI / Duolingo: white canvas + tints) */
  --white:         #FFFFFF;
  --canvas:        #FFFFFF;
  --surface:       #FFFFFF;
  --surface-tint:  #F4F0FF;
  --surface-muted: #EBE5FA;
  --line:          #DDD5F0;
  --line-strong:   #C9BEF0;

  /* Reward accent — CTAs, streaks, XP only (not panel fills) */
  --gold:          #FFC800;
  --gold-sh:       #D99700;
  --gold-lt:       #FFF6D6;

  /* Streak / flame accent (warm reward) */
  --flame:         #FF7A1A;
  --flame-sh:      #E5630A;
  --flame-lt:      #FFEEDD;

  /* Text */
  --ink:           #1A0A40;
  --muted:         #5C5480;
  --purple-text:   #5B3CC4;

  /* Semantic */
  --good:          #2FBF71;
  --good-lt:       #EEFBF3;
  --good-text:     #1A7A4A;
  --good-badge:    #1A7A4A;
  --muted-on-dark: rgba(255, 255, 255, 0.88);
  --fine-on-dark:  rgba(255, 255, 255, 0.72);

  /* Legacy alias */
  --cream:         var(--surface-tint);
  --purple-lt:     var(--surface-tint);
  --hero-bg:       var(--surface-tint);
  --values-bg:     var(--surface-muted);

  /* Subject accents — purple/gold family, livelier spread (no full rainbow) */
  --sub-a:         #7C4DEF;
  --sub-b:         #9A5BF0;
  --sub-c:         #5B33CC;
  --sub-d:         #B07CF2;
  --sub-e:         #4A2DB0;
  --sub-f:         #FFC800;

  --maxw:        1140px;
  --r-sm:        12px;
  --r:           20px;
  --r-lg:        28px;

  --font-display: 'Baloo 2', 'Nunito', sans-serif;
  --font-body:    'Nunito', sans-serif;
  --font-ar:      'Cairo', 'Baloo 2', sans-serif;

  /* Illustration (Quest shape language) */
  --ill-purple:   #7B5BE0;
  --ill-gold:     #FFC800;
  --ill-ink:      #1A0A40;
  --ill-shadow:   #C9BEF0;
  --ill-r-tile:   26px;
}

/* ---------- Quest illustration system ---------- */
/* Illustrated icons (match generated art tiles) */
.quest-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 14px;
}

.quest-icon--xs {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  flex-shrink: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.ar {
  font-family: var(--font-ar);
  direction: rtl;
  letter-spacing: normal !important;
  text-transform: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--purple-dk);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.btn-gold:focus-visible {
  outline-color: var(--purple-dk);
}

.btn-ghost-light:focus-visible {
  outline-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .sub-card:hover,
  .aud-panel:hover,
  .btn-gold:hover,
  .btn-gold:active {
    transform: none;
  }

  .mastery-fill {
    animation: none;
    width: 68%;
  }

  /* Disable mascot motion + scroll reveal; show content immediately */
  .mascot-bounce,
  .mascot-bounce .m-arm-l,
  .mascot-bounce .m-arm-r,
  .mascot-bounce .m-pupil,
  .scene-tile,
  .cta-confetti {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padded {
  padding: 72px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-text);
  margin-bottom: 16px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  margin-bottom: 18px;
}

h1 .hl {
  color: var(--purple);
  position: relative;
  display: inline-block;
}

h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: rgba(255, 210, 63, 0.4);
  z-index: -1;
  border-radius: 2px;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}

.section-head {
  max-width: 560px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 15px 26px;
  border-radius: 16px;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--purple-dk);
  box-shadow: 0 5px 0 var(--gold-sh);
}

.btn-gold:hover {
  background: #FFD633;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--gold-sh);
}

.btn-gold:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--gold-sh);
}

.btn-ghost {
  background: var(--white);
  color: var(--purple-dk);
  box-shadow: inset 0 0 0 2px var(--line), 0 5px 0 var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(124, 77, 239, 0.05);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--purple), 0 7px 0 var(--line-strong);
  color: var(--purple);
}

.btn-ghost:active {
  transform: translateY(5px);
  box-shadow: inset 0 0 0 2px var(--purple), 0 0 0 var(--line-strong);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 5px 0 rgba(0, 0, 0, 0.25);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--gold), 0 7px 0 rgba(0, 0, 0, 0.25);
  color: var(--gold);
}

.btn-ghost-light:active {
  transform: translateY(5px);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 rgba(0, 0, 0, 0.25);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 32px;
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--line-strong);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  display: block;
  margin-bottom: 20px;
  box-shadow: none;
  padding: 0;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--purple-dk);
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

/* ============================================================
   MASCOT (logo-consistent character)
   ============================================================ */
.mascot {
  display: block;
  width: 96px;
  height: auto;
  overflow: visible;
}

/* gentle idle bounce + arm sway */
.mascot-bounce { animation: mascot-bob 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.mascot-bounce .m-arm-l { animation: mascot-arm-l 3.4s ease-in-out infinite; transform-origin: 16px 60px; }
.mascot-bounce .m-arm-r { animation: mascot-arm-r 3.4s ease-in-out infinite; transform-origin: 84px 60px; }
.mascot-bounce .m-pupil { animation: mascot-blink 5.2s ease-in-out infinite; transform-origin: center; }

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(-1.5deg); }
}
@keyframes mascot-arm-l {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-10deg); }
}
@keyframes mascot-arm-r {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(10deg); }
}
@keyframes mascot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96%           { transform: scaleY(0.1); }
}

/* ============================================================
   SCROLL-IN REVEAL (added by app.js IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* stagger siblings within a row */
.reveal.is-in:nth-child(2) { transition-delay: 0.08s; }
.reveal.is-in:nth-child(3) { transition-delay: 0.16s; }
.reveal.is-in:nth-child(4) { transition-delay: 0.10s; }
.reveal.is-in:nth-child(5) { transition-delay: 0.18s; }
.reveal.is-in:nth-child(6) { transition-delay: 0.26s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
  box-shadow: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--purple-dk);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 2px solid var(--line);
  padding: 16px 24px 24px;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 10, 64, 0.05);
}

.mobile-menu .btn {
  margin-top: 12px;
  width: 100%;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero-sec {
  padding: 48px 0 64px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-tint) 0%, var(--white) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero-copy .lead {
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.proof-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  max-width: 520px;
}

.proof-strip li {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.proof-strip li:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: rgba(26, 10, 64, 0.35);
}

/* --- Hero & section illustrations --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.section-art {
  margin: 0 auto 36px;
  max-width: 960px;
}

/* Inline SVG illustration scenes (mascot + tiles), replacing the old JPGs */
.scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.scene .mascot { width: auto; }

/* gentle float on the scene tiles */
.scene-tile { animation: tile-float 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene-tile:nth-child(2) { animation-delay: 0.4s; }
.scene-tile:nth-child(3) { animation-delay: 0.8s; }
.scene-tile:nth-child(4) { animation-delay: 1.2s; }
.scene-tile:nth-child(5) { animation-delay: 1.6s; }
.scene-tile:nth-child(6) { animation-delay: 2s; }

@keyframes tile-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.cta-confetti { animation: confetti-pulse 3s ease-in-out infinite; }
@keyframes confetti-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}


.subjects-art {
  margin-bottom: 36px;
}

.phone-frame {
  width: 268px;
  background: var(--purple-dk);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(26, 10, 64, 0.22);
  border: 4px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--cream);
  border-radius: 28px;
  padding: 14px;
  font-size: 12px;
}

.app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.app-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--purple-text);
}

.app-difficulty {
  font-size: 9px;
  font-weight: 700;
  color: var(--good-text);
  background: var(--good-lt);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.app-card {
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.app-question {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dk);
  line-height: 1.35;
  margin-bottom: 4px;
}

.app-question.ar {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--purple);
}

.app-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.app-opt {
  background: var(--cream);
  border: 1.5px solid var(--line);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
}

.app-opt.correct {
  border-color: var(--good);
  background: var(--good-lt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-ok {
  font-size: 9px;
  background: var(--good-badge);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 10px;
}

.app-explanation {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-bottom: 12px;
}

.app-mastery {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.mastery-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--purple-dk);
  margin-bottom: 6px;
}

.mastery-pct {
  color: var(--purple);
}

.mastery-bar {
  height: 8px;
  background: var(--purple-lt);
  border-radius: 20px;
  overflow: hidden;
}

.mastery-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--purple-sh), var(--purple));
  border-radius: 20px;
  animation: mastery-grow 1.2s ease-out forwards;
}

@keyframes mastery-grow {
  from { width: 0; }
  to { width: 68%; }
}

.hero-mascot-wrap {
  position: absolute;
  bottom: -6px;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.hero-mascot {
  width: 76px;
}

.hero-bubble {
  position: static;
  z-index: 4;
  margin: 0 0 12px;
  background: var(--white);
  color: var(--purple-dk);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 8px 24px rgba(26, 10, 64, 0.12);
  border: 1.5px solid var(--line);
  max-width: 130px;
  line-height: 1.3;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--surface-tint);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 16px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.trust-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dk);
  white-space: nowrap;
}

.trust-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.trust-badge {
  background: var(--gold-lt);
  color: var(--gold-sh);
  border: 2px solid var(--gold);
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 0 var(--gold-sh);
}

@media (max-width: 720px) {
  .trust-sep { display: none; }
  .trust-inner { gap: 8px 14px; }
  .trust-item { font-size: 13px; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-sec {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  counter-reset: step;
  align-items: stretch;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  border-bottom: 4px solid var(--purple);
}

.step:nth-child(2) { border-bottom-color: var(--gold); }
.step:nth-child(3) { border-bottom-color: var(--purple-dk); }

.step-num {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--purple-dk);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--gold-sh);
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--purple-dk);
}

.step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   2. VALUE BENTO
   ============================================================ */
.values-sec {
  background: var(--white);
  padding-top: 56px;
  padding-bottom: 56px;
}

.values-bento .card {
  box-shadow: 0 4px 0 var(--line-strong);
}

.bento-adaptive {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  border-bottom: 4px solid var(--purple);
}

.values-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 28px 36px;
  align-items: center;
}

.values-art {
  margin: 0;
}

.values-art .scene {
  max-width: 100%;
}

.values-bento {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-feedback,
.bento-mastery {
  padding: 24px;
}

.card-icon-sm {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

/* Mini UI snippets (decorative) */
.mini-ui {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.mini-diff-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mini-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--white);
  color: var(--muted);
  border: 2px solid var(--line);
  box-shadow: none;
}

.mini-pill.is-active {
  background: var(--good);
  color: var(--white);
  border-color: #1A7A4A;
  box-shadow: 0 2px 0 #1A7A4A;
}

.mini-skill {
  margin-bottom: 8px;
}

.mini-skill span:first-child {
  font-size: 10px;
  font-weight: 700;
  color: var(--purple-dk);
  display: block;
  margin-bottom: 4px;
}

.mini-bar {
  height: 6px;
  background: var(--purple-lt);
  border-radius: 20px;
  overflow: hidden;
}

.mini-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-sh), var(--purple));
  border-radius: 20px;
}

.mini-bar-fill.is-gold {
  background: linear-gradient(90deg, var(--gold-sh), var(--gold));
}

.mini-ui-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-fb {
  font-size: 10px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.mini-fb.correct {
  background: var(--good-lt);
  border-color: var(--good);
  color: var(--good-text);
}

.mini-fb.explain {
  color: var(--purple-text);
  font-size: 11px;
}

.mini-mastery-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--purple-dk);
  margin-bottom: 4px;
  margin-top: 6px;
}

.mini-mastery-row:first-child {
  margin-top: 0;
}

.mini-pct {
  color: var(--purple);
}

/* ============================================================
   3. AUDIENCE PANELS
   ============================================================ */
.audience-sec {
  background: var(--surface-tint);
}

.audience-sec .section-head {
  margin-bottom: 40px;
}

.audience-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.aud-panel {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aud-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--line-strong);
}

.aud-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.aud-panel h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--purple-dk);
  letter-spacing: -0.02em;
}

.aud-lead {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--muted);
}

/* Schools panel leads — give it the gold (reward) accent */
.aud-schools {
  border-top: 4px solid var(--gold);
}

.aud-parents {
  border-top: 4px solid var(--purple);
}

.aud-students {
  border-top: 4px solid var(--purple-dk);
}

.aud-points {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: auto;
}

.aud-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--purple-dk);
  margin-bottom: 12px;
}

.aud-points li:last-child {
  margin-bottom: 0;
}

.aud-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--good);
  border-radius: 50%;
}

.aud-check svg {
  width: 13px;
  height: 13px;
  display: block;
}

/* trust-strip icons */
.trust-ic {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 7px;
}

/* product-mockup checks */
.badge-check,
.mini-check {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
  margin-right: 3px;
}

.mini-check { width: 13px; height: 13px; vertical-align: -2px; }
.mini-check use { stroke: var(--good-text) !important; }
.badge-check use { stroke: #fff !important; }

/* ============================================================
   4. SUBJECTS
   ============================================================ */
.subjects-sec {
  background: var(--white);
}

.subject-grid {
  margin-bottom: 32px;
}

.sub-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 2px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.15s ease;
  box-shadow: 0 4px 0 var(--line-strong);
  border-bottom: 4px solid var(--sub-accent, var(--purple));
}

.sub-math   { --sub-accent: var(--sub-a); }
.sub-science { --sub-accent: var(--sub-b); }
.sub-think  { --sub-accent: var(--sub-c); }
.sub-bio    { --sub-accent: var(--sub-d); }
.sub-chem   { --sub-accent: var(--sub-e); }
.sub-physics { --sub-accent: var(--sub-f); }

.sub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--line-strong);
}

.sub-icon {
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  border-radius: 14px;
  display: block;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}

.sub-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--purple-dk);
}

.sub-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.subjects-footer {
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   5. STREAK / XP HABIT
   ============================================================ */
.streak-sec {
  background: var(--surface-tint);
}

.streak-head {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  flex-direction: column;
}

.streak-mascot {
  width: 96px;
  flex-shrink: 0;
}

.streak-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.streak-card {
  display: flex;
  flex-direction: column;
  border-bottom: 4px solid var(--purple);
}

.streak-card:first-child { border-bottom-color: var(--flame); }
.streak-card:nth-child(2) { border-bottom-color: var(--gold); }

.streak-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

/* icon-flame.jpg is a 2-up sprite (flame + XP tile); show only the flame half */
.streak-icon-flame {
  width: 44px;
  overflow: hidden;
  border-radius: 14px;
}

.streak-icon-flame .quest-icon {
  width: 200%;
  border-radius: 0;
  object-fit: cover;
  object-position: left center;
}

.streak-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--purple-dk);
}

.streak-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.streak-card > .mini-bar,
.streak-card > .mini-mastery-row,
.streak-flames,
.xp-row {
  margin-top: auto;
}

/* weekly flame strip */
.streak-flames {
  display: flex;
  gap: 6px;
}

.flame-day {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  background: var(--surface-muted);
  color: var(--muted);
  border: 2px solid var(--line);
}

.flame-day.on {
  background: var(--flame-lt);
  color: var(--flame-sh);
  border-color: var(--flame);
  box-shadow: 0 2px 0 var(--flame-sh);
}

/* XP row */
.xp-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xp-row .mini-bar {
  flex: 1;
}

.xp-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--purple-dk);
  background: var(--surface-muted);
  border: 2px solid var(--line);
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.xp-amt {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-sh);
  white-space: nowrap;
}

/* ============================================================
   FOUNDING-SCHOOLS FAQ
   ============================================================ */
.faq-sec {
  background: var(--surface-tint);
}

.faq-wrap {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 4px 0 var(--line-strong);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--purple-dk);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 24px 20px;
}

.faq-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   DEMO FORM (on dark CTA section)
   ============================================================ */
.demo-form {
  margin: 24px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-on-dark);
}

.form-field span em {
  font-style: normal;
  font-weight: 500;
  color: var(--fine-on-dark);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 56px;
}

/* honeypot — visually hidden, off-screen */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  font-size: 14px;
  font-weight: 700;
  min-height: 1px;
  margin: 0;
}

.form-status.is-ok { color: #5BE584; }
.form-status.is-err { color: #FF9B8A; }

.cta-fine-link {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 700;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 16px; padding: 16px 18px; }
  .faq-body { padding: 0 18px 16px; }
}

/* ============================================================
   6. FINAL CTA
   ============================================================ */
.final-cta-sec {
  background: var(--purple-dk);
  color: var(--white);
  border-top: 5px solid var(--gold);
}

.cta-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.1fr);
  gap: 28px 48px;
  align-items: center;
}

.cta-art {
  margin: 0;
  justify-self: center;
}

.cta-art .scene {
  display: block;
  width: 100%;
  max-width: 400px;
}

.cta-box {
  max-width: 520px;
  text-align: left;
}

.cta-box h2 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 12px;
}

.cta-box .lead {
  color: var(--muted-on-dark);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.cta-fine {
  font-size: 14px;
  color: var(--fine-on-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #11072B;
  color: var(--muted-on-dark);
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

.footer-bottom .ar {
  color: var(--fine-on-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-copy .lead,
  .proof-strip {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .proof-strip {
    justify-content: center;
  }

  .values-layout {
    grid-template-columns: 1fr;
  }

  .values-art {
    max-width: 400px;
    margin: 0 auto 8px;
  }

  .values-bento {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .bento-adaptive {
    grid-row: span 1;
  }

  .audience-panels {
    grid-template-columns: 1fr;
  }

  .streak-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-padded {
    padding: 56px 0;
  }

  .hero-sec {
    padding: 24px 0 40px;
  }

  .hero-actions .btn,
  .cta-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .proof-strip li {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .hero-grid {
    gap: 20px;
  }

  .hero-sec {
    padding: 16px 0 32px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  h1 {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .hero-copy .lead {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero-actions {
    gap: 8px;
    margin-bottom: 12px;
  }

  .btn-lg {
    padding: 13px 18px;
    font-size: 13px;
  }

  .proof-strip li {
    font-size: 11px;
  }

  .phone-frame {
    width: 248px;
  }

  .hero-art,
  .hero-mascot-wrap {
    display: none;
  }
}

@media (min-width: 921px) {
  .hero-grid {
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
  }
}
