/* LearnerX — True North
   Brand v2 Arctic Compass: Midnight Navy + Arctic Blue, Georgia + Inter
   Responsive multi-page site
*/

:root {
  --navy: #0A1628;
  --navy-2: #142240;
  --blue: #00B4D8;
  --blue-hi: #0098B5;
  --blue-dark-hi: #22D3EE;
  --warm: #FFB347;
  --pause: #FF8C42;
  --green: #7BD389;

  /* Light theme */
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --card-elev: #FFFFFF;
  --text: #0A1628;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: #E5E7EB;
  --border-subtle: #EEF1F5;
  --nav-bg: rgba(245, 247, 250, 0.88);
  --shadow-card: 0 30px 60px -30px rgba(10, 22, 40, 0.18);
  --shadow-cta: 0 8px 20px -8px rgba(0, 180, 216, 0.5);

  --pad-x: 56px;
  --section-y: 120px;
  --section-y-tight: 80px;
  --max-w: 1440px;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, ui-monospace, monospace;
}

html[data-theme="dark"] {
  --bg: #0A1628;
  --card: #142240;
  --card-elev: #142240;
  --text: #F9FAFB;
  --text-2: #9CA3AF;
  --text-3: rgba(249, 250, 251, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(10, 22, 40, 0.85);
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: var(--navy); }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section-tight { padding: var(--section-y-tight) 0; }
.section-card {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-bg { background: var(--bg); }
.section-navy { background: var(--navy); color: #F9FAFB; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #F9FAFB; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; margin: 0; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 7.5vw, 96px); line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; color: var(--text-2); line-height: 1.6; }
.body-lg { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); }
.body-sm { font-size: 14px; }
em { font-style: italic; }
.accent { color: var(--blue); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 999px; background: var(--blue);
}
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 8px; border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }

.btn-primary { background: var(--blue); color: var(--navy); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hi); box-shadow: var(--shadow-cta); }
html[data-theme="dark"] .btn-primary:hover { background: var(--blue-dark-hi); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }

.btn-dark { background: var(--navy); color: var(--bg); border-color: var(--navy); }
html[data-theme="dark"] .btn-dark { background: var(--blue); color: var(--navy); border-color: var(--blue); }

.btn-play-icon {
  width: 22px; height: 22px; border-radius: 999px; background: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-play-icon svg { width: 8px; height: 8px; fill: var(--bg); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  max-width: var(--max-w); margin: 0 auto;
  gap: 24px;
  position: relative;
}
.nav-logo { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-logo-text { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text); }
.nav-links {
  display: flex; gap: 32px; list-style: none; padding: 0; margin: 0;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-2); padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--blue); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-signin { color: var(--text-2); font-size: 14px; cursor: pointer; }
.nav-signin:hover { color: var(--text); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px; border: 1px solid var(--border);
  background: transparent; border-radius: 8px;
  align-items: center; justify-content: center;
}
.mobile-toggle svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; }
.theme-toggle {
  width: 36px; height: 36px; border: 1px solid var(--border);
  background: transparent; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px var(--pad-x) 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}
.hero h1 { margin: 24px 0; }
.hero-sub { max-width: 520px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.hero-stat {
  padding: 20px 4px; border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-k { font-family: var(--font-mono); font-size: 10px; color: var(--text-2); letter-spacing: 0.16em; }
.hero-stat-v { font-family: var(--font-serif); font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; color: var(--text); margin-top: 4px; }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 540px;
}
.hero-visual-meta {
  position: absolute; font-family: var(--font-mono); font-size: 10px;
  color: var(--text-2); letter-spacing: 0.12em; line-height: 1.6;
}
.hero-visual-meta.tl { top: 16px; left: 0; }
.hero-visual-meta.br { bottom: 16px; right: 0; text-align: right; }

/* ---------- Tagline band ---------- */
.tagline-band {
  background: var(--blue); color: var(--navy);
  padding: 20px 0; overflow: hidden; white-space: nowrap;
}
.tagline-track {
  display: inline-flex; align-items: center;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(20px, 2.5vw, 30px); letter-spacing: -0.01em;
  animation: tagline-scroll 36s linear infinite;
  padding-left: 24px;
}
.tagline-track .x { margin: 0 24px; opacity: 0.6; }
.tagline-track .t { margin-right: 24px; }
@keyframes tagline-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tagline-track { animation: none; }
}

/* ---------- Surfaces (3-card with mini bars) ---------- */
.surfaces-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 64px; flex-wrap: wrap;
}
.surfaces-head .lead { max-width: 640px; }
.surfaces-head h2 { margin-top: 20px; }
.surfaces-head p { max-width: 320px; }
.surface-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; height: 100%;
  cursor: pointer; transition: transform 200ms, box-shadow 200ms;
}
.surface-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.surface-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.surface-mono { font-family: var(--font-mono); font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: 0.14em; }
.surface-arrow {
  width: 32px; height: 32px; border-radius: 999px; background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.surface-arrow svg { width: 14px; height: 14px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.surface-card h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.surface-card p { margin-bottom: 24px; flex: 1; }
.surface-bars {
  height: 44px; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 3px;
}
.surface-bars span { flex: 1; background: var(--blue); border-radius: 1px; }

/* ---------- Console / parent dashboard mock ---------- */
.console-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.console-grid h2 { margin: 20px 0 24px; }
.console-grid .lead { margin-bottom: 28px; }

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; }
.check-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--blue); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.check-list .ttl { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--text); }
.check-list .des { margin-top: 2px; font-size: 15px; color: var(--text-2); line-height: 1.5; }

.console-mock {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-card);
}
.console-mock-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.console-mock-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.console-mock-trans { padding: 20px; border-right: 1px solid var(--border); }
.console-mock-mast { padding: 20px; }
.console-mono { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.14em; }
.transcript-line { margin-bottom: 12px; padding-left: 12px; border-left: 2px solid var(--blue); }
.transcript-line.child { border-left-color: var(--text); }
.transcript-line .who { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; margin-bottom: 3px; font-weight: 600; color: var(--blue); }
.transcript-line.child .who { color: var(--text); }
.transcript-line .txt { font-size: 13px; color: var(--text); line-height: 1.5; }
.listening { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--blue); margin-top: 4px; }
.listening::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--blue); }
.listening span { animation: pulse 1.6s infinite; }
.mastery-row { margin-bottom: 12px; }
.mastery-row .label { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 12px; color: var(--text); }
.mastery-row .pct { font-family: var(--font-mono); color: var(--blue); font-weight: 600; }
.mastery-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.mastery-bar > span { display: block; height: 100%; background: var(--blue); }
.approval-card { margin-top: 18px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.approval-card .h { font-family: var(--font-mono); font-size: 11px; color: var(--blue); font-weight: 600; margin-bottom: 6px; letter-spacing: 0.14em; }
.approval-card .t { font-size: 12px; color: var(--text); line-height: 1.4; }
.approval-actions { display: flex; gap: 6px; margin-top: 8px; }
.chip { padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.chip-primary { background: var(--blue); color: var(--navy); }
.chip-ghost { border: 1px solid var(--border); color: var(--text); }

/* ---------- Pillars grid ---------- */
.pillars-head { max-width: 740px; margin-bottom: 64px; }
.pillars-head h2 { margin-top: 20px; }
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--border); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; gap: 1px;
}
.pillar { background: var(--card); padding: 36px 28px; height: 100%; }
.pillar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pillar-head .x svg { width: 22px; height: 22px; stroke: var(--text); stroke-width: 2; stroke-linecap: round; fill: none; }
.pillar h3 { font-size: 26px; margin-bottom: 12px; }
.pillar p { font-size: 15px; }

/* ---------- Quote section ---------- */
.quote-section { padding: var(--section-y) 0; background: var(--navy); color: #F9FAFB; }
.quote-inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad-x); }
.quote-rule { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.quote-rule .b { width: 40px; height: 4px; background: var(--blue); }
.quote-rule .l { font-family: var(--font-mono); font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: 0.14em; }
.quote-text {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 4.6vw, 56px); line-height: 1.15;
  letter-spacing: -0.02em; color: #F9FAFB; margin: 0;
}
.quote-text em { font-style: italic; color: var(--blue); }
.quote-attr { margin-top: 36px; font-family: var(--font-mono); color: rgba(249,250,251,0.5); font-size: 11px; letter-spacing: 0.14em; display: block; }

/* ---------- CTA section ---------- */
.cta-section { padding: var(--section-y) 0; background: var(--bg); }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 var(--pad-x); }
.cta-inner img { width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 28px; }
.cta-inner h2 { font-size: clamp(36px, 5.5vw, 56px); margin-bottom: 16px; }
.cta-inner .sub { max-width: 520px; margin: 0 auto 28px; }
.cta-form {
  display: flex; max-width: 520px; margin: 0 auto; gap: 8px;
  padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px;
}
.cta-form input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 14px 16px; font-size: 15px; color: var(--text);
}
.cta-form input::placeholder { color: var(--text-3); }
.cta-foot { margin-top: 14px; font-size: 12px; color: var(--text-2); }
.cta-foot.success { color: var(--blue); }
.cta-foot.error { color: #FF6464; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 96px var(--pad-x) 64px; max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { margin: 24px 0; font-size: clamp(40px, 7vw, 88px); }
.page-hero p { max-width: 720px; font-size: clamp(17px, 1.8vw, 22px); }

/* ---------- Parents page: control table ---------- */
.control-table { border-top: 1px solid var(--border); }
.control-row {
  display: grid; grid-template-columns: 1.4fr 0.8fr 2fr; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.control-row .lbl { font-family: var(--font-serif); font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.control-row .des { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.action-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 4px; display: inline-block;
}
.action-approval { background: var(--blue); color: var(--navy); }
.action-pause { background: var(--pause); color: var(--navy); }
.action-notify { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

.bullet-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.bullet-list li { display: flex; gap: 14px; align-items: center; font-size: 17px; color: var(--text); }
.bullet-list li::before { content: ''; width: 8px; height: 8px; background: var(--blue); flex-shrink: 0; }

/* ---------- Photography placeholder ---------- */
.placeholder {
  border-radius: 14px; background: var(--card);
  background-image: repeating-linear-gradient(135deg, rgba(10,22,40,0.06) 0 1px, transparent 1px 18px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  position: relative; overflow: hidden;
  min-height: 320px;
}
html[data-theme="dark"] .placeholder {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 18px);
  border-color: rgba(0,180,216,0.18);
}
.placeholder-label {
  font-family: var(--font-mono); font-size: 11px; color: rgba(10,22,40,0.5);
  letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
}
html[data-theme="dark"] .placeholder-label { color: rgba(249,250,251,0.55); }
.placeholder::before, .placeholder::after { content: ''; position: absolute; width: 10px; height: 10px; }
.placeholder::before { top: 8px; left: 8px; border-top: 1px solid rgba(10,22,40,0.5); border-left: 1px solid rgba(10,22,40,0.5); }
.placeholder::after { top: 8px; right: 8px; border-top: 1px solid rgba(10,22,40,0.5); border-right: 1px solid rgba(10,22,40,0.5); }
.placeholder > .crn-bl, .placeholder > .crn-br { display: block; position: absolute; width: 10px; height: 10px; }
.placeholder > .crn-bl { bottom: 8px; left: 8px; border-bottom: 1px solid rgba(10,22,40,0.5); border-left: 1px solid rgba(10,22,40,0.5); }
.placeholder > .crn-br { bottom: 8px; right: 8px; border-bottom: 1px solid rgba(10,22,40,0.5); border-right: 1px solid rgba(10,22,40,0.5); }
html[data-theme="dark"] .placeholder::before,
html[data-theme="dark"] .placeholder::after,
html[data-theme="dark"] .placeholder > .crn-bl,
html[data-theme="dark"] .placeholder > .crn-br { border-color: rgba(249,250,251,0.55); }

/* ---------- Children page: kid dashboard ---------- */
.kid-dash {
  background: #0A1628; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(10,22,40,0.4);
  border: 1px solid rgba(0,180,216,0.2);
  color: #F9FAFB;
}
.kid-bar {
  padding: 20px 28px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap; gap: 12px;
}
.kid-avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--blue); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
}
.kid-bar .meta-line { font-family: var(--font-serif); font-size: 18px; color: #F9FAFB; }
.kid-bar .meta-sub { font-size: 12px; color: rgba(249,250,251,0.5); }
.kid-streak { font-family: var(--font-mono); font-size: 11px; color: var(--blue); letter-spacing: 0.14em; }
.kid-cog {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center; color: #F9FAFB;
}
.kid-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.kid-main { padding: 40px 32px; border-right: 1px solid rgba(255,255,255,0.06); }
.kid-side { padding: 40px 32px; }
.kid-mono { font-family: var(--font-mono); font-size: 11px; color: rgba(249,250,251,0.5); letter-spacing: 0.14em; display: block; }
.kid-now-h { font-family: var(--font-serif); font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; color: #F9FAFB; margin: 8px 0 16px; line-height: 1.1; }
.kid-quests { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.kid-quest {
  background: #142240; border-radius: 14px; padding: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}
.kid-quest-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kid-quest-icon {
  width: 36px; height: 36px; border-radius: 8px; color: var(--navy);
  font-size: 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.kid-quest-t { font-family: var(--font-serif); font-size: 17px; color: #F9FAFB; font-weight: 700; }
.kid-quest-sub { font-size: 12px; color: rgba(249,250,251,0.6); margin-bottom: 10px; }
.kid-quest-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.kid-quest-bar > span { display: block; height: 100%; }
.tutor-card {
  background: #142240; border-radius: 16px; padding: 24px;
  border: 1px solid rgba(0,180,216,0.18); text-align: center; margin-bottom: 24px;
}
.tutor-bubble {
  width: 88px; height: 88px; border-radius: 999px; margin: 0 auto 16px;
  background: radial-gradient(circle, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--blue);
  font-family: var(--font-serif); font-size: 30px; color: #F9FAFB; font-weight: 700;
}
.tutor-name { font-family: var(--font-serif); font-size: 22px; color: #F9FAFB; font-weight: 700; }
.tutor-line { color: rgba(249,250,251,0.6); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.tutor-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.tutor-action { padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tutor-action.talk { background: var(--blue); color: var(--navy); }
.tutor-action.type { background: rgba(255,255,255,0.08); color: #F9FAFB; font-weight: 600; }
.garden-card { background: #142240; border-radius: 16px; padding: 16px; border: 1px solid rgba(255,255,255,0.06); }
.garden-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.garden-grid span { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,0.06); display: block; }
.garden-grid span.f { background: var(--blue); }
.garden-foot { color: rgba(249,250,251,0.6); font-size: 12px; margin-top: 12px; }
.garden-foot strong { color: var(--blue); }

/* ---------- Tutor page demo ---------- */
.tutor-demo-shell {
  background: var(--card); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.tutor-demo-bar {
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; background: var(--bg);
  flex-wrap: wrap; gap: 12px;
}
.tutor-demo-bar .left { display: flex; align-items: center; gap: 12px; }
.tutor-demo-bar .right { display: flex; gap: 8px; }
.tutor-demo-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: 6px 14px; border-radius: 6px; font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.1em;
}
.tutor-demo-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.tutor-transcript {
  padding: 32px; height: 540px; overflow-y: auto;
  border-right: 1px solid var(--border);
}
.tutor-msg { margin-bottom: 24px; display: flex; gap: 14px; }
.tutor-msg.child { flex-direction: row-reverse; }
.tutor-msg-avatar {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  background: radial-gradient(circle, var(--blue), var(--navy));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; color: #F9FAFB; font-size: 16px;
}
.tutor-msg.child .tutor-msg-avatar { background: var(--warm); }
.tutor-msg-bubble { max-width: 78%; }
.tutor-msg .who { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.14em; margin-bottom: 4px; display: block; }
.tutor-msg.child .who { text-align: right; }
.tutor-msg .text {
  padding: 14px 18px; border-radius: 14px;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  border: 1px solid var(--border);
}
.tutor-msg.child .text { background: var(--blue); color: var(--navy); border-color: var(--blue); }
.cursor {
  display: inline-block; width: 2px; height: 14px; background: var(--blue);
  margin-left: 2px; vertical-align: middle; animation: blink 1s infinite;
}
.tutor-msg.child .cursor { background: var(--navy); }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.tutor-state {
  padding: 28px; background: var(--bg);
}
.tutor-state-rows { display: flex; flex-direction: column; gap: 14px; }
.tutor-state-row .l { font-family: var(--font-mono); font-size: 11px; color: var(--blue); font-weight: 600; margin-bottom: 4px; display: block; letter-spacing: 0.14em; }
.tutor-state-row .v { font-size: 14px; color: var(--text); font-family: var(--font-serif); }
.voice-card { margin-top: 28px; padding: 16px; background: var(--card); border-radius: 10px; border: 1px solid var(--border); }
.voice-bars { display: flex; align-items: flex-end; gap: 2px; height: 36px; }
.voice-bars span { flex: 1; background: var(--blue); border-radius: 1px; transition: height 200ms; }

/* ---------- Curriculum ---------- */
.subjects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.subject-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px; height: 100%;
  transition: transform 200ms, box-shadow 200ms;
}
.subject-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(10,22,40,0.12); }
.subject-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.subject-card h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.subject-card p { margin-bottom: 24px; font-size: 17px; }
.topic-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.topic-tag {
  padding: 6px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; font-size: 12px; color: var(--text);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

.week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.day-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 14px; text-align: center; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.day-card.free {
  background: transparent; border-style: dashed;
  justify-content: center;
}
.day-card .d { font-family: var(--font-mono); font-size: 11px; color: var(--blue); font-weight: 600; margin-bottom: 12px; display: block; letter-spacing: 0.14em; }
.day-card.free .d { color: var(--text-2); }
.day-card .item {
  font-size: 11px; color: var(--text); padding: 6px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.day-card .item:first-of-type { border-top: none; }
.day-card.free .free-text { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--text-2); }

/* ---------- Pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1100px; }
.plan {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; height: 100%;
  position: relative; overflow: hidden;
}
.plan.highlight {
  background: var(--navy); color: #F9FAFB; border-color: var(--navy);
  box-shadow: 0 30px 60px -30px rgba(10,22,40,0.4);
}
.plan-ribbon {
  position: absolute; top: 24px; right: -36px; transform: rotate(35deg);
  background: var(--blue); color: var(--navy); padding: 4px 40px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; font-weight: 700;
}
.plan-tag { font-family: var(--font-mono); font-size: 11px; color: var(--blue); font-weight: 600; margin-bottom: 16px; display: block; letter-spacing: 0.14em; }
.plan-name { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 48px); font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-price .v { font-family: var(--font-serif); font-size: clamp(56px, 8vw, 84px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.plan-price .u { font-size: 16px; color: var(--text-2); }
.plan.highlight .plan-price .u { color: rgba(249,250,251,0.5); }
.plan-sub { color: var(--text-2); margin-bottom: 28px; }
.plan.highlight .plan-sub { color: rgba(249,250,251,0.6); }
.plan-features { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-features li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.plan-tick {
  width: 18px; height: 18px; border-radius: 999px; background: var(--blue); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.plan-note { margin-top: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-2); }
.plan.highlight .plan-note { color: rgba(249,250,251,0.5); }

.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; max-width: 1200px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-q-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer; background: transparent; border: none; width: 100%; text-align: left; padding: 0;
}
.faq-q { font-family: var(--font-serif); font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.faq-toggle {
  width: 36px; height: 36px; border-radius: 999px; background: var(--bg);
  border: none; color: var(--text); font-size: 18px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 200ms;
}
.faq-item.open .faq-toggle { background: var(--blue); color: var(--navy); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms ease, margin-top 300ms ease; font-size: 17px; color: var(--text-2); line-height: 1.6; max-width: 640px; }
.faq-item.open .faq-a { max-height: 500px; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px var(--pad-x) 40px; background: var(--navy-2); color: #F9FAFB; }
.site-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.site-footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px; margin-bottom: 40px;
}
.site-footer-brand-block { display: block; }
.site-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-footer-brand-name { font-family: var(--font-serif); font-size: 24px; font-weight: 700; }
.site-footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: rgba(249,250,251,0.6); }
.site-footer-col-h { font-family: var(--font-mono); font-size: 10px; color: var(--blue); letter-spacing: 0.18em; font-weight: 600; margin-bottom: 16px; }
.site-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer-col li a { font-size: 14px; color: rgba(249,250,251,0.75); }
.site-footer-col li a:hover { color: #F9FAFB; }
.site-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; border-top: 1px solid rgba(249,250,251,0.1);
  font-size: 12px; color: rgba(249,250,251,0.5);
}

/* ============== RESPONSIVE ============== */

@media (max-width: 1280px) {
  :root { --pad-x: 40px; --section-y: 96px; --section-y-tight: 64px; }
  .hero-grid { gap: 40px; }
  .console-grid { gap: 40px; }
}

@media (max-width: 1024px) {
  :root { --pad-x: 32px; --section-y: 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .hero-visual svg { max-width: 480px; height: auto; }
  .hero-visual-meta.tl { top: 0; }
  .hero-visual-meta.br { bottom: 0; }
  .console-grid { grid-template-columns: 1fr; gap: 56px; }
  .console-mock-grid { grid-template-columns: 1fr; }
  .console-mock-trans { border-right: none; border-bottom: 1px solid var(--border); }
  .grid-2 { grid-template-columns: 1fr; gap: 56px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .kid-grid { grid-template-columns: 1fr; }
  .kid-main { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tutor-demo-grid { grid-template-columns: 1fr; }
  .tutor-transcript { border-right: none; border-bottom: 1px solid var(--border); height: auto; max-height: 540px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; --section-y: 64px; --section-y-tight: 48px; }

  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 24px var(--pad-x); margin: 0;
  }
  .nav-actions .nav-signin { display: none; }
  .mobile-toggle { display: inline-flex; }

  .hero { padding: 56px var(--pad-x) 64px; }
  .hero-cta { margin-bottom: 40px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .hero-visual { min-height: 320px; }
  .hero-visual-meta { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2-card { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }

  .surfaces-head { flex-direction: column; align-items: flex-start; }

  .control-row { grid-template-columns: 1fr; gap: 8px; }

  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .day-card { min-height: 140px; }
  .day-card.free { grid-column: 1 / -1; min-height: 80px; }

  .kid-quests { grid-template-columns: 1fr; }
  .kid-bar { padding: 14px 18px; }
  .kid-main, .kid-side { padding: 28px 20px; }

  .tutor-demo-bar { padding: 12px 16px; }
  .tutor-transcript { padding: 20px; }
  .tutor-state { padding: 20px; }

  .page-hero { padding: 56px var(--pad-x) 48px; }

  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer-brand-block { grid-column: 1 / -1; }

  .quote-text { font-size: clamp(24px, 6vw, 36px); }
  .plan { padding: 28px; }

  .cta-form { flex-direction: column; }
  .cta-form .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .nav-actions .btn { padding: 8px 12px; font-size: 13px; }
  .surface-card { padding: 24px; }
  .pillar { padding: 28px 22px; }
  .subject-card { padding: 24px; }
  .topic-tags { gap: 6px; }
  .topic-tag { padding: 5px 10px; font-size: 11px; }
  .site-footer-grid { grid-template-columns: 1fr; }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: var(--navy);
  padding: 8px 16px; border-radius: 4px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }
