/* ============================================================
   aiQ — Marketing landing page styles
   Built on the aiQ design tokens (colors_and_type.css).
   ============================================================ */

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Body copy weight — Quicksand 500/600 (from the brand's Google import) */
.lead, p.body { font-weight: 500; }

/* ---- Shared helpers --------------------------------------- */
.wrap { width: min(1120px, 90vw); margin-inline: auto; }
.eyebrow {
  font: var(--type-label);
  letter-spacing: var(--type-tracking);
  text-transform: uppercase;
  color: var(--fg-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.on-coral { color: var(--aiq-coral-200); }
.eyebrow .dot { color: currentColor; opacity: .6; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: var(--type-tracking); text-transform: uppercase; }

.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section-head { max-width: 600px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  font-size: clamp(28px, 4vw, 46px);
  margin: 20px 0 0;
  letter-spacing: -0.01em;
}
.section-head .lead {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
  color: var(--aiq-ink-700);
  margin-top: 22px;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font: var(--type-button); font-size: 14px;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-bounce), filter var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-coral { background: var(--aiq-coral-800); color: #fff; }
.btn-coral:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-cream { background: var(--aiq-cream-50); color: var(--fg); }
.btn-cream:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--fg); height: 44px; padding: 0 16px; }
.btn-ghost:hover { background: rgba(0,0,0,.05); }

/* App Store badge ------------------------------------------- */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px 0 16px;
  background: var(--aiq-ink-900); color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-bounce), filter var(--dur-base);
}
.appstore:hover { transform: translateY(-2px); filter: brightness(1.12); }
.appstore:active { transform: scale(0.97); }
.appstore svg { width: 22px; height: 26px; flex: none; }
.appstore .as-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.appstore .as-small { font-family: var(--font-mono); font-weight: 500; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.appstore .as-big { font-family: var(--font-display); font-weight: 700; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  transition: background var(--dur-base), box-shadow var(--dur-base), backdrop-filter var(--dur-base);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav.scrolled {
  background: color-mix(in srgb, var(--aiq-cream-200) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(33,25,22,.06);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.brand .iq { color: var(--aiq-coral-800); }
.nav .brand { color: var(--aiq-coral-800); }
.nav .brand .iq { color: inherit; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.navlink {
  font: var(--type-button); font-size: 13px;
  padding: 9px 12px; border-radius: var(--radius-pill);
  color: var(--aiq-ink-700);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-links a.navlink:hover { background: rgba(0,0,0,.05); color: var(--fg); }
.nav-cta { margin-left: 6px; height: 40px; padding: 0 18px; font-size: 13px; }
.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); overflow: hidden; }
.hero-blob {
  position: absolute; z-index: 0; border-radius: 999px; filter: blur(50px); opacity: .55;
  pointer-events: none;
}
.hero-blob.b1 { width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle at 40% 40%, var(--aiq-coral-400), transparent 65%); }
.hero-blob.b2 { width: 520px; height: 520px; left: -200px; bottom: -160px; background: radial-gradient(circle at 50% 50%, var(--aiq-purple-200), transparent 62%); opacity: .4; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 4vw, 56px); align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.hero-copy h1 .hl { color: var(--aiq-coral-800); }
.hero-copy .lead {
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; color: var(--aiq-ink-700);
  margin: 26px 0 0; max-width: 34ch;
}
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.hero-trust .stars { color: var(--aiq-warning); font-size: 17px; letter-spacing: 2px; }
.hero-trust .mono { color: var(--fg-muted); font-size: 12px; }

/* Hero mascot + floating chips */
.hero-stage { position: relative; min-height: 400px; display: grid; place-items: center; }
.hero-mascot { width: clamp(240px, 28vw, 360px); height: auto; filter: drop-shadow(0 16px 24px rgba(33,25,22,.16)); position: relative; z-index: 2; }

/* Confetti canvas — sits behind the mascot but in front of the blobs */
.hero .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Generic flapping mascot — used by the final CTA */
.mascot-flap { position: relative; aspect-ratio: 606 / 772.99; }
.mascot-flap .wing { position: absolute; left: 0; top: 0; display: block; }
.mascot-flap .wing-up { width: 100%; opacity: 0; }
.mascot-flap .wing-down { width: 95.71%; top: 36.09%; opacity: 1; }
.mascot-flap.wings-up .wing-up { opacity: 1; }
.mascot-flap.wings-up .wing-down { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .mascot-flap.wings-up .wing-up { opacity: 0; }
  .mascot-flap.wings-up .wing-down { opacity: 1; }
}
.float {
  position: absolute; background: var(--aiq-cream-50); border-radius: 18px;
  box-shadow: var(--shadow-card); padding: 12px 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  animation: floaty 5s var(--ease-out) infinite;
}
.float .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .ft { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.float .ft .k { font-family: var(--font-mono); font-weight: 500; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.float .ft .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.float.f-streak { top: 8%; left: -4%; animation-delay: 0s; }
.float.f-aiq { bottom: 14%; right: -6%; animation-delay: 1.4s; }
.float.f-correct { bottom: -2%; left: 6%; animation-delay: .7s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   AI BAND (coral, full bleed)
   ============================================================ */
.band-ai { background: var(--aiq-coral-800); color: #fff; overflow: hidden; }
.band-ai .section-head h2 { font-size: clamp(28px, 4vw, 48px); }
.band-ai .section-head .lead { color: rgba(255,255,255,.86); }
.ai-demo {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
}
.ai-prompt {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-xl); padding: 18px 20px; backdrop-filter: blur(4px);
}
.ai-prompt .k { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--aiq-coral-200); }
.ai-prompt .q { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 21px); margin-top: 14px; line-height: 1.25; }
.ai-prompt .cursor { display: inline-block; width: 2px; height: 1em; background: #fff; margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-arrow { display: grid; place-items: center; }
.ai-arrow .ico { width: 46px; height: 46px; border-radius: 999px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.ai-arrow .ico svg { width: 20px; height: 20px; }
.ai-course {
  background: var(--aiq-cream-50); color: var(--fg); border-radius: var(--radius-2xl);
  padding: 16px; box-shadow: 0 14px 32px rgba(0,0,0,.28);
}
.ai-course .thumb { height: 96px; border-radius: var(--radius-md); background: var(--aiq-grad-topic-a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); transition: background var(--dur-base) var(--ease-out); }
.ai-course.swap { animation: courseSwap .5s var(--ease-bounce); }
@keyframes courseSwap { 0% { transform: scale(.97); } 55% { transform: scale(1.015); } 100% { transform: scale(1); } }
.ai-course h3 { margin: 18px 0 0; font-size: 20px; }
.ai-course .by { margin-top: 8px; }
.ai-course .by, .ai-course .meta { font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); }
.ai-course .lessons { display: flex; gap: 6px; margin-top: 18px; }
.ai-course .lessons span { flex: 1; height: 5px; border-radius: 5px; background: var(--aiq-cream-300); }
.ai-course .lessons span.done { background: var(--aiq-coral-800); }
.ai-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 44px); }
.ai-pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 14px; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

/* ============================================================
   HOW IT WORKS (3 steps)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(44px, 5vw, 56px); }
.step {
  background: var(--aiq-cream-50); border-radius: var(--radius-2xl); padding: 28px 26px 30px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-bounce);
}
.step:hover { transform: translateY(-6px); }
.step .num { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--aiq-coral-800); }
.step .glyph { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 16px 0 22px; }
.step .glyph svg { width: 30px; height: 30px; }
.step h3 { font-size: 21px; }
.step p { margin-top: 14px; font-weight: 500; color: var(--aiq-ink-700); line-height: 1.6; font-size: 14.5px; }

/* ============================================================
   FEATURE SHOWCASE (phone mockups)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 64px); align-items: center; }
.feature-first { margin-top: clamp(48px, 6vw, 72px); }
.feature + .feature { margin-top: clamp(72px, 9vw, 116px); }
.feature.flip .feat-copy { order: 2; }
.feat-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.01em; margin: 18px 0 0; }
.feat-copy .lead { font-size: 16px; line-height: 1.65; color: var(--aiq-ink-700); margin-top: 20px; }
.feat-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.feat-list .li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.feat-list .tick { width: 22px; height: 22px; border-radius: 999px; background: var(--aiq-success-bg); color: var(--aiq-info); display: grid; place-items: center; flex: none; font-size: 12px; }
.feat-stage { display: grid; place-items: center; position: relative; }
.feat-stage .glow { position: absolute; inset: 10% 18%; border-radius: 999px; filter: blur(46px); opacity: .45; z-index: 0; }

/* ---- Phone mockup ----------------------------------------- */
.phone {
  position: relative; z-index: 1;
  width: 264px; height: 540px;
  background: var(--aiq-ink-900);
  border-radius: 40px; padding: 10px;
  box-shadow: 0 26px 50px rgba(33,25,22,.28), var(--shadow-card);
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--aiq-cream-200); position: relative;
  display: flex; flex-direction: column;
}
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: var(--aiq-ink-900); border-radius: 999px; z-index: 5; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 4px; font-family: var(--font-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; }
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.statusbar .sb-icons span { width: 16px; height: 11px; border-radius: 2px; background: var(--fg); display: inline-block; }
.statusbar .sb-icons span.batt { width: 22px; }

.scr-pad { padding: 40px 16px 0; overflow: hidden; flex: 1; display: flex; flex-direction: column; position: relative; }

/* phone bottom nav */
.m-nav {
  position: absolute; left: 14px; right: 14px; bottom: 44px; z-index: 4;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--aiq-ink-900); border-radius: 999px; padding: 10px 8px;
  box-shadow: var(--shadow-card);
}
.m-nav::before {
  content: ""; position: absolute; left: -14px; right: -14px; bottom: 100%; height: 56px;
  background: linear-gradient(to top, var(--aiq-cream-200), transparent);
  pointer-events: none; z-index: -1;
}
.m-nav span { font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.m-nav span.on { color: #fff; }
.m-submit {
  margin: auto -2px 14px; background: var(--aiq-coral-800); color: #fff; text-align: center;
  border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 13px; box-shadow: var(--shadow-card);
}

/* home mock */
.m-stats { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.m-stat { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.m-hi { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 8px; }
.m-streak {
  background: var(--aiq-coral-800); color: #fff; border-radius: var(--radius-xl);
  padding: 14px 14px 12px; margin-top: 14px; box-shadow: var(--shadow-card);
}
.m-streak .k { font-family: var(--font-mono); font-weight: 500; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--aiq-coral-200); }
.m-streak .big { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; margin-top: 7px; display: flex; align-items: center; gap: 7px; }
.m-streak .cta { background: var(--aiq-cream-50); color: var(--fg); border-radius: 999px; text-align: center; font-weight: 700; font-size: 12px; padding: 10px; margin-top: 12px; box-shadow: var(--shadow-card); }
.m-eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg); margin: 14px 0 8px; }
.m-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-card { background: var(--aiq-cream-50); border-radius: 16px; padding: 10px; box-shadow: var(--shadow-card); }
.m-card .th { height: 48px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.m-card .t { font-family: var(--font-display); font-weight: 700; font-size: 13px; margin-top: 8px; }
.m-card .by { font-family: var(--font-mono); font-weight: 500; font-size: 7px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); margin-top: 3px; }

/* quiz mock (also used by interactive demo styling) */
.m-quiztop { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.m-back { width: 26px; height: 26px; border-radius: 999px; background: var(--aiq-cream-300); display: grid; place-items: center; font-size: 14px; }
.m-prog { flex: 1; height: 8px; border-radius: 5px; background: var(--aiq-cream-300); overflow: hidden; }
.m-prog i { display: block; height: 100%; width: 66%; background: var(--aiq-coral-800); border-radius: 5px; }
.m-hearts { display: flex; gap: 3px; color: var(--aiq-coral-800); }
.m-qmeta { font-family: var(--font-mono); font-weight: 500; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--aiq-coral-800); margin-top: 16px; }
.m-q { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.14; margin-top: 8px; }
.m-answers { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* answer pill (shared by mock + interactive) */
.apill {
  display: flex; align-items: center; gap: 11px; padding: 0 12px;
  height: 48px; border-radius: var(--radius-xl);
  background: var(--aiq-cream-50); box-shadow: var(--shadow-card);
  cursor: pointer; user-select: none;
  transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-base) var(--ease-out), color var(--dur-base);
  border: 1px solid transparent;
}
.apill .let { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: 11px; background: rgba(163,155,153,.5); color: var(--fg); flex: none; transition: background var(--dur-base), color var(--dur-base); }
.apill .lbl { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.apill .mk { margin-left: auto; font-family: var(--font-mono); font-weight: 500; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; opacity: 0; transition: opacity var(--dur-base); }
.apill:hover { transform: translateY(-1px); }
.apill.is-correct { background: var(--aiq-success); color: #fff; }
.apill.is-correct .let { background: rgba(255,255,255,.6); }
.apill.is-correct .mk { opacity: 1; color: rgba(255,255,255,.9); }
.apill.is-wrong { background: var(--aiq-danger); color: #fff; }
.apill.is-wrong .let { background: rgba(255,255,255,.5); }
.apill.is-wrong .mk { opacity: 1; color: rgba(255,255,255,.9); }
.apill.locked { cursor: default; }
.apill.dim { opacity: .5; }

/* ============================================================
   INTERACTIVE QUIZ DEMO
   ============================================================ */
.band-try { background: var(--aiq-cream-300); }
.try-head { margin: 0 auto; text-align: center; }
.try-head .eyebrow { justify-content: center; }
.try-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(40px, 5vw, 60px);
}
.quizcard {
  background: var(--aiq-cream-50); border-radius: var(--radius-2xl);
  padding: 24px; box-shadow: 0 18px 40px rgba(33,25,22,.16);
  max-width: 420px; width: 100%; position: relative; overflow: hidden;
}
.quizcard .qc-top { display: flex; align-items: center; gap: 10px; }
.quizcard .qc-prog { flex: 1; height: 8px; border-radius: 5px; background: var(--aiq-cream-300); overflow: hidden; }
.quizcard .qc-prog i { display: block; height: 100%; background: var(--aiq-coral-800); border-radius: 5px; transition: width var(--dur-slow) var(--ease-out); }
.quizcard .qc-hearts { display: flex; gap: 4px; color: var(--aiq-coral-800); font-size: 14px; }
.quizcard .qc-hearts svg { transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-bounce); }
.quizcard .qc-hearts svg.lost { color: var(--aiq-ink-300); transform: scale(0.82); }
.quizcard .qc-meta { font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--aiq-coral-800); margin-top: 22px; }
.quizcard .qc-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.25; margin-top: 14px; }
.quizcard .qc-answers { display: flex; gap: 12px; margin-top: 24px; }
.quizcard .apill .lbl { font-size: 16px; }
/* True / False cards */
.tf-card {
  flex: 1; height: 124px; border-radius: var(--radius-2xl);
  background: var(--aiq-cream-50); color: var(--aiq-coral-800);
  box-shadow: var(--shadow-card); cursor: pointer; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-base) var(--ease-out), color var(--dur-base);
}
.tf-card .gly { font: 700 44px/0.9 var(--font-display); letter-spacing: .04em; }
.tf-card .lab { font: 500 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 12px; }
.tf-card:hover { transform: translateY(-3px); }
.tf-card:active { transform: scale(0.97); }
.tf-card.is-correct { background: var(--aiq-success); color: #fff; }
.tf-card.is-wrong { background: var(--aiq-danger); color: #fff; }
.tf-card.locked { cursor: default; }
.tf-card.locked:hover { transform: none; }
.tf-card.dim { opacity: .45; }

/* End-of-quiz result block (replaces T/F cards inside .qc-answers) */
.qc-answers.is-result { flex-direction: column; }
.qc-result {
  flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 124px;
  border-radius: var(--radius-2xl); padding: 26px 20px;
  box-shadow: var(--shadow-card);
  animation: courseSwap .5s var(--ease-bounce);
}
.qc-result.perfect { background: var(--aiq-success); color: #fff; }
.qc-result.partial { background: var(--aiq-cream-300); color: var(--aiq-coral-800); }
.qc-result.fail { background: var(--aiq-danger); color: #fff; }
.qc-result .big { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -0.01em; }
.qc-result .mk { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.qc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; min-height: 46px; }
.qc-status { font-family: var(--font-display); font-weight: 700; font-size: 17px; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-base), transform var(--dur-base); }
.qc-status.show { opacity: 1; transform: none; }
.qc-status.ok { color: var(--aiq-info); }
.qc-status.no { color: var(--aiq-danger); }
.qc-next { opacity: 0; pointer-events: none; transition: opacity var(--dur-base); }
.qc-next.show { opacity: 1; pointer-events: auto; }
/* reward pop */
.reward {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, 0) scale(.6);
  background: var(--aiq-coral-800); color: #fff; font-family: var(--font-mono); font-weight: 500;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px;
  box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; z-index: 6;
}
.reward.pop { animation: reward 1.1s var(--ease-bounce) forwards; }
@keyframes reward {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); }
  30% { opacity: 1; transform: translate(-50%, -8px) scale(1.05); }
  70% { opacity: 1; transform: translate(-50%, -22px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -44px) scale(.95); }
}
.try-side {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.try-side .mascot-mini { width: 84px; margin: 0 0 18px; }

/* Generic blinking mascot — used in the try-quiz side panel */
.mascot-blink { position: relative; aspect-ratio: 224 / 584; }
.mascot-blink .eyes-open, .mascot-blink .eyes-closed { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mascot-blink .eyes-closed { opacity: 0; }
.mascot-blink.is-closed .eyes-closed { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .mascot-blink.is-closed .eyes-closed { opacity: 0; }
}
.try-side .lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--aiq-ink-700);
  margin: 0;
}
.try-side .appstore { margin-top: 24px; }
.quizcard { flex: 0 1 420px; }

/* ============================================================
   STREAKS / GAMIFICATION
   ============================================================ */
.band-streak { background: var(--bg); }
.gami { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 5vw, 64px); align-items: center; margin-top: 8px; }
.gami-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.01em; margin: 20px 0 0; }
.gami-lead { font-size: 16px; line-height: 1.65; color: var(--aiq-ink-700); margin-top: 22px; max-width: 42ch; }
.gami-list { margin-top: 28px; }
.gami-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; max-width: 400px; }
.gstat { background: var(--aiq-cream-50); border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow-card); }
.gstat .n { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; display: flex; align-items: center; gap: 7px; }
.gstat .k { font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); margin-top: 8px; }
.gami-visual { display: grid; place-items: center; }
.streakhero {
  background: var(--aiq-coral-800); color: #fff; border-radius: var(--radius-2xl);
  padding: 24px; width: 100%; max-width: 340px; box-shadow: 0 18px 40px rgba(232,64,37,.32);
}
.streakhero .k { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--aiq-coral-200); }
.streakhero .big { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1; margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.streakhero .flame { font-size: 32px; }
.streakhero .week { display: flex; justify-content: space-between; gap: 6px; margin-top: 20px; }
.streakhero .day { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .03em; text-transform: uppercase; }
.streakhero .day .ring { width: 26px; height: 26px; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.streakhero .day.on .ring { background: #fff; border-color: #fff; }
.streakhero .day.on .ring::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--aiq-coral-800); border-bottom: 2px solid var(--aiq-coral-800); transform: rotate(-45deg) translateY(-1px); }
.achv { display: flex; gap: 10px; margin-top: 18px; }
.achv .tile { width: 54px; height: 68px; border-radius: 14px; box-shadow: var(--shadow-card); display: grid; place-items: center; }
.achv .tile svg { width: 26px; height: 26px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.band-final { background: var(--aiq-coral-800); color: #fff; text-align: center; overflow: hidden; position: relative; }
.band-final .fblob { position: absolute; width: 460px; height: 460px; border-radius: 999px; background: radial-gradient(circle, var(--aiq-purple-600), transparent 62%); opacity: .4; filter: blur(40px); }
.band-final .fblob.l { left: -140px; top: -120px; }
.band-final .fblob.r { right: -140px; bottom: -140px; background: radial-gradient(circle, var(--aiq-coral-500), transparent 62%); opacity: .5; }
.final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-mascot { width: 140px; margin-bottom: 4px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.22)); }
.band-final h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.01em; max-width: 16ch; margin-top: 20px; }
.band-final .lead { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; color: rgba(255,255,255,.88); margin-top: 20px; max-width: 44ch; }
.band-final .appstore { margin-top: 32px; background: #fff; color: var(--aiq-ink-900); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--aiq-cream-200); padding: 56px 0 28px; }
.footer-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer .brand { font-size: 26px; }
.footer .brand .iq { color: var(--aiq-coral-800); }
.footer .tag { font-weight: 500; font-size: 14px; color: var(--aiq-ink-700); margin-top: 14px; max-width: 38ch; line-height: 1.55; }
.footer-bot { display: flex; justify-content: center; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--aiq-cream-300); }
.footer-bot .mono { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Base state is VISIBLE. The hidden-then-animate behaviour only turns on
   once JS adds .anim-ready to <html> (i.e. the animation clock is live),
   so content can never get stuck invisible. */
.reveal { opacity: 1; transform: none; }
html.anim-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-bounce); }
html.anim-ready .reveal.in { opacity: 1; transform: none; }
html.anim-ready .reveal.d1 { transition-delay: .08s; }
html.anim-ready .reveal.d2 { transition-delay: .16s; }
html.anim-ready .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .reveal { opacity: 1 !important; transform: none !important; }
  .float, .ai-prompt .cursor { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---- Tablet ≤940px ---------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-stage { min-height: 340px; order: -1; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  /* keep floats inside the stage so they don't bleed off-screen or overlap copy */
  .float.f-streak  { top: 4%; left: 4%; }
  .float.f-aiq     { bottom: 8%; right: 4%; }
  .float.f-correct { top: 52%; right: 6%; left: auto; bottom: auto; }

  .ai-demo { grid-template-columns: 1fr; gap: 16px; }
  .ai-arrow { transform: rotate(90deg); }
  .ai-prompt, .ai-course { max-width: 480px; margin-left: auto; margin-right: auto; width: 100%; }
  .ai-pills { justify-content: center; }

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

  .feature, .feature.flip .feat-copy { grid-template-columns: 1fr; order: 0; text-align: center; }
  .feature .feat-copy { order: 0; }
  .feat-list { align-items: flex-start; max-width: 360px; margin-left: auto; margin-right: auto; }

  .gami { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .gami-lead { margin-left: auto; margin-right: auto; }
  .gami-list { align-items: flex-start; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* ---- Phone ≤720px ----------------------------------------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .hero-actions { gap: 12px; flex-direction: column; align-items: stretch; max-width: 280px; margin-left: auto; margin-right: auto; }
  .hero-actions .appstore, .hero-actions .btn { width: 100%; justify-content: center; }
  .float.f-correct { display: none; } /* fewer chips on tight screens */
  .gami-stats { grid-template-columns: 1fr 1fr; }
  /* compressed footer */
  .footer { padding: 36px 0 20px; }
  .footer .brand { font-size: 22px; }
  .footer .tag { font-size: 13px; margin-top: 10px; max-width: 28ch; }
  .footer-bot { margin-top: 22px; padding-top: 18px; }
}

/* ---- Small phone ≤480px ----------------------------------- */
@media (max-width: 480px) {
  .section { padding: clamp(56px, 14vw, 88px) 0; }
  .wrap { width: 92vw; }
  .hero { padding-top: 24px; padding-bottom: 40px; }
  .hero-stage { min-height: 280px; }
  .hero-mascot { width: clamp(200px, 60vw, 280px); }
  .float { padding: 10px 14px; border-radius: 16px; }
  .float .ico { width: 28px; height: 28px; }
  .float .ft .v { font-size: 13px; }
  .ai-prompt .q { font-size: 17px; }
  .phone { width: 244px; height: 500px; }
  .quizcard { padding: 20px; }
  .tf-card { height: 108px; }
  .tf-card .gly { font-size: 38px; }
  .final-mascot { width: 116px; }
}
