/* ============================================================
   Ulearn — "Why Ulearn" marketing page styles
   Layered on top of styles.css (the dashboard stylesheet).
   Light Ulearn palette: cream canvas / yellow lead / orange
   accent / navy ink / mid-blue support. Professional surface,
   with warmth dialed up in the homeschool + learner showcases.
   ============================================================ */

:root {
  --border-subtle: #ECE2C4;     /* used by reused dashboard CSS */
  --maxw: 1200px;
  --section-gap: 104px;

  /* Design-system tokens (colors_and_type.css isn't loaded here, and
     styles.css uses different names) — define them so every var()
     in the marketing chrome + JSX resolves. Soft & rounded, warm
     navy-tinted shadows, per the Light Ulearn system. */
  --r-xs: 7px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(11,30,63,.06);
  --shadow-sm: 0 2px 6px rgba(11,30,63,.08), 0 1px 2px rgba(11,30,63,.05);
  --shadow-md: 0 6px 18px -4px rgba(11,30,63,.12), 0 2px 6px rgba(11,30,63,.06);
  --shadow-lg: 0 18px 40px -8px rgba(11,30,63,.16), 0 6px 14px rgba(11,30,63,.07);
  --shadow-xl: 0 30px 60px -12px rgba(11,30,63,.22), 0 10px 24px rgba(11,30,63,.10);
  --shadow-sticker: 0 4px 0 0 var(--brand-navy);

  --ease-out: cubic-bezier(.2,.6,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --success-soft: rgba(46,139,94,.16);
  --danger-soft: rgba(192,57,43,.14);
}

html { scroll-behavior: smooth; }
body { font-size: 16px; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
::selection { background: var(--brand-yellow-soft); color: var(--ink); }
a { color: inherit; }

.page { width: 100%; overflow-x: clip; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.sec-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 12px 0 0;
  text-wrap: balance;
}
.sec-lead {
  font-size: 1.12rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 60ch;
  margin: 16px 0 0;
  text-wrap: pretty;
}
.gradient-text {
  background: linear-gradient(120deg, var(--brand-orange-deep), var(--brand-yellow-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   NAV
   ============================================================ */
.mnav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251,243,220,0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.mnav.scrolled { border-bottom-color: var(--rule); box-shadow: 0 4px 20px -12px rgba(11,30,63,.25); }
.mnav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.mlogo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.mlogo img { width: 32px; height: 32px; }
.mlogo .word {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-yellow-deep), var(--brand-orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mnav-links { display: flex; align-items: center; gap: 4px; }
.mnav-links a {
  padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--ink-3); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: color .18s, background .18s;
  border: none; background: transparent; font-family: inherit;
}
.mnav-links a:hover { color: var(--ink); background: rgba(11,30,63,.05); }
.mnav-cta {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep)) !important;
  color: #fff !important; box-shadow: 0 6px 18px -4px rgba(240,192,64,.55);
  margin-left: 6px;
}
.mnav-cta:hover { transform: translateY(-1px); }

/* Resources dropdown — same trigger styling as a nav <a>, plus an
   anchored menu that opens on click. Outside-click + Esc close it
   (wired in page.jsx). */
.mnav-dropdown { position: relative; }
.mnav-drop-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--ink-3); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: color .18s, background .18s;
  border: none; background: transparent; font-family: inherit;
}
.mnav-drop-trigger:hover,
.mnav-drop-trigger.is-open { color: var(--ink); background: rgba(11,30,63,.05); }
.mnav-drop-chev { transition: transform .15s; }
.mnav-drop-trigger.is-open .mnav-drop-chev { transform: rotate(180deg); }
.mnav-drop-menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 12px 28px -10px rgba(11,30,63,.18), 0 4px 10px rgba(11,30,63,.06);
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 110;
}
.mnav-drop-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.mnav-drop-menu a:hover { background: rgba(11,30,63,.05); color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 22px 0 0;
  background:
    radial-gradient(900px 500px at 80% -8%, rgba(240,192,64,.20), transparent 60%),
    radial-gradient(700px 500px at 8% 4%, rgba(16,96,144,.08), transparent 55%);
}
.hero-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  margin: 18px 0 0; text-wrap: balance;
}
.hero .hero-sub {
  font-size: 1.2rem; color: var(--ink-3); line-height: 1.55;
  margin: 20px 0 0; max-width: 42ch; text-wrap: pretty;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-badge { display: flex; align-items: center; gap: 10px; }

/* Hero CTAs — primary + secondary, placed below the sub. Reuses the
   .btn-xl class so size matches the bottom CTA band. .ghost-light is
   a light-canvas variant of .btn-xl.ghost (which is styled for the
   dark cta-band). */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-xl.ghost-light {
  background: var(--paper, #FFFCF3);
  color: var(--ink-2, #2A3B5C);
  border: 1px solid var(--rule, #E3D8B6);
  box-shadow: 0 1px 2px rgba(11,30,63,.06);
}
.btn-xl.ghost-light:hover { background: #fff; color: var(--ink); border-color: var(--rule-strong, #C9BC93); }
.hero-trust {
  margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-3); line-height: 1.5;
}
.hero-badge .hb-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--rule); color: var(--brand-blue);
  box-shadow: var(--shadow-xs);
}
.hero-badge .hb-t { font-weight: 700; font-size: .92rem; line-height: 1.15; }
.hero-badge .hb-s { font-size: .8rem; color: var(--ink-4); }

/* hero owl cluster */
.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-owl-main {
  width: 280px; filter: drop-shadow(0 20px 30px rgba(11,30,63,.22));
  position: relative; z-index: 2;
}
.hero-flip { transform: scale(1.5); z-index: 2; filter: drop-shadow(0 24px 34px rgba(11,30,63,.22)); }
.hero-logo-main { width: 230px; height: 230px; border-radius: 52px; image-rendering: auto; position: relative; z-index: 2; filter: drop-shadow(0 24px 40px rgba(11,30,63,.28)); }
.hero-orbit {
  position: absolute; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 16px; box-shadow: var(--shadow-md); padding: 11px 14px;
  display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .86rem;
  z-index: 3;
}
.hero-orbit .dot { width: 9px; height: 9px; border-radius: 99px; }
.orbit-1 { top: 8%; left: -4%; animation: float 4s ease-in-out infinite; }
.orbit-2 { bottom: 16%; right: -6%; animation: float 4.6s ease-in-out infinite .4s; }
.orbit-3 { bottom: -2%; left: 8%; animation: float 5s ease-in-out infinite .8s; }

/* ============================================================
   ROLE SWITCHER  ("see how it works" pages)
   ============================================================ */
.switcher { margin-top: 54px; }
.switch-heading {
  text-align: center;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
.switch-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 920px; margin: 0 auto;
}
.switch-tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--paper); border: 1.5px solid var(--rule);
  cursor: pointer; font-family: inherit; transition: all .2s var(--ease-out);
  position: relative;
}
.switch-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.switch-tab.active {
  border-color: var(--brand-yellow-deep);
  box-shadow: 0 0 0 3px var(--brand-yellow-soft), var(--shadow-lg);
  transform: translateY(-2px);
}
.switch-tab .st-ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.switch-tab.active .st-ico { transform: scale(1.04); }
.st-fam .st-ico { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep)); }
.st-tea .st-ico { background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy)); }
.st-lea .st-ico { background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep)); }
.switch-tab .st-t { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }

/* ============================================================
   SHOWCASE PANEL (per-role "how it works")
   ============================================================ */
.showcase { padding: 56px 0 0; animation: fadeSwap .45s var(--ease-out); }
@keyframes fadeSwap {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.show-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.show-head .sh-l { max-width: 620px; }

/* dual toggle (child / parent) */
.view-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--cream-deep); border: 1px solid var(--rule); border-radius: var(--r-pill);
}
.view-toggle button {
  padding: 9px 18px; border-radius: var(--r-pill); border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-3);
  background: transparent; transition: all .18s;
}
.view-toggle button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ============================================================
   BROWSER FRAME  (light, on-brand)
   ============================================================ */
.bframe {
  margin-top: 30px; border-radius: 16px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule-strong);
  box-shadow: 0 40px 80px -28px rgba(11,30,63,.38), 0 10px 24px -10px rgba(11,30,63,.18);
}
.bframe-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--cream-deep); border-bottom: 1px solid var(--rule);
}
.bframe-lights { display: flex; gap: 7px; }
.bframe-lights span { width: 12px; height: 12px; border-radius: 99px; }
.bl-r { background: #E86A5E; } .bl-y { background: #E6B43C; } .bl-g { background: #5BB97A; }
.bframe-url {
  flex: 1; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-pill); padding: 6px 14px;
  font-size: .82rem; color: var(--ink-4); font-family: var(--font-mono);
}
.bframe-url svg { width: 13px; height: 13px; color: var(--success); }
.bframe-body { overflow: hidden; background: var(--cream); position: relative; }
.bframe-body .dash { width: 1320px; }
/* scale the embedded dashboard to fit the frame width */
.dash-zoom { transform-origin: top left; }

/* ============================================================
   VALUE PROPS (why) + FEATURE MOCKUPS (what)
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px;
}
.why-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px; transition: all .2s var(--ease-out);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card .wc-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px;
}
.why-card h4 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.why-card p { margin: 0; color: var(--ink-3); line-height: 1.55; font-size: .96rem; }

/* feature mockup row */
.feat-row { margin-top: 64px; }
.feat-row-head { text-align: center; margin-bottom: 36px; }
.mockups {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.mockup {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .22s var(--ease-out);
}
.mockup:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mockup-stage {
  height: 196px; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--paper), var(--cream-deep));
  border-bottom: 1px solid var(--rule);
}
.mockup-cap { padding: 20px 22px 24px; }
.mockup-cap .mc-k { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-blue); }
.mockup-cap h4 { margin: 7px 0 7px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.mockup-cap p { margin: 0; color: var(--ink-3); font-size: .92rem; line-height: 1.5; }

/* ---------- shared mockup widget styling ---------- */
.mw-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 16px;
}
.mw-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 99px; font-size: .72rem; font-weight: 700;
}

/* flashcard flip mock */
.mk-flip { width: 220px; height: 132px; perspective: 1000px; }
.mk-flip-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.mk-flip.flipped .mk-flip-inner { transform: rotateY(180deg); }
.mk-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow-md); }
.mk-face.back { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(46,139,94,.12), rgba(240,192,64,.10)); border-color: rgba(46,139,94,.3); }

/* streak ticker */
.mk-streak { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mk-flame { font-size: 3.4rem; line-height: 1; animation: flamePulse 1.4s ease-in-out infinite; }
@keyframes flamePulse { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.12) rotate(2deg); } }
.mk-streak-num { font-family: var(--font-mono); font-weight: 800; font-size: 2.6rem; letter-spacing: -2px; color: var(--brand-orange-deep); }
.mk-days { display: flex; gap: 5px; }
.mk-day { width: 16px; height: 16px; border-radius: 5px; background: var(--cream-deep); border: 1px solid var(--rule); }
.mk-day.on { background: var(--brand-orange); border-color: var(--brand-orange-deep); }

/* progress ring */
.mk-ring-wrap { display: flex; align-items: center; gap: 18px; }

/* AI grading typing */
.mk-grade .mg-q { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.mk-input { border: 1px solid var(--rule); border-radius: 10px; padding: 9px 12px; font-size: .9rem; background: var(--cream); min-height: 38px; display: flex; align-items: center; }
.mk-caret { display: inline-block; width: 2px; height: 16px; background: var(--brand-blue); margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* transcript mini */
.mk-transcript { width: 244px; }
.mk-tr-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--rule); font-size: .82rem; }
.mk-tr-row:last-child { border-bottom: none; }
.mk-tr-grade { font-family: var(--font-mono); font-weight: 700; }

/* owl journey mini */
.mk-owls { display: flex; align-items: flex-end; gap: 6px; }
.mk-owls img { width: 40px; image-rendering: auto; }

/* games mini grid */
.mk-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; width: 230px; }
.mk-game { border-radius: 12px; padding: 12px; color: #fff; font-weight: 800; font-size: .78rem; display: flex; flex-direction: column; gap: 4px; min-height: 64px; justify-content: space-between; border: 2px solid var(--brand-navy); box-shadow: 0 3px 0 0 var(--brand-navy); }
.mk-game .mg-emoji { font-size: 1.4rem; }

/* character carousel mini */
.mk-chars { display: flex; gap: 10px; align-items: flex-end; }
.mk-char { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(180deg,#B0E5FF,#2C7AC9); border: 2px solid var(--brand-navy); display: grid; place-items: center; box-shadow: 0 3px 0 0 var(--brand-navy); }
.mk-char img { width: 48px; image-rendering: pixelated; }
.mk-char.dim { opacity: .55; }

/* ============================================================
   HOMESCHOOL CHILD — game world
   ============================================================ */
.kid-world {
  --font-display: 'Lilita One', 'Plus Jakarta Sans', system-ui, sans-serif;
  width: 1320px;
  min-height: 860px;
  position: relative;
  font-family: var(--font-sans);
  background:
    radial-gradient(2px 2px at 18% 20%, rgba(255,255,255,.55), transparent),
    radial-gradient(2px 2px at 72% 14%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px at 44% 30%, rgba(255,255,255,.35), transparent),
    radial-gradient(2px 2px at 88% 38%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 26% 50%, rgba(255,255,255,.3), transparent),
    radial-gradient(2px 2px at 62% 46%, rgba(255,255,255,.3), transparent),
    radial-gradient(125% 95% at 50% 28%, #4FB2EE 0%, #2E8FE0 36%, #1E6CB8 66%, #0E3F75 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.kid-clouds { position: absolute; inset: 0; pointer-events: none; }
.kid-cloud { position: absolute; background: rgba(255,255,255,.85); border-radius: 999px; filter: blur(1px); box-shadow: 0 8px 0 rgba(255,255,255,.5); }

/* HUD */
.kid-hud {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; gap: 16px;
}
.kid-hud-left { display: flex; align-items: center; gap: 12px; }
.kid-avatar-chip {
  display: flex; align-items: center; gap: 12px;
  background: #0C2747; border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px; padding: 8px 16px 8px 8px; box-shadow: 0 8px 18px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
}
.kid-avatar-chip .ka-face {
  width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(180deg,#EAF3FB,#CFE2F2);
  display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.15);
}
.kid-avatar-chip .ka-face img { width: 40px; image-rendering: pixelated; }
.kid-avatar-chip .ka-name { color: #fff; font-family: var(--font-display, var(--font-sans)); font-weight: 800; letter-spacing: .3px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.kid-avatar-chip .ka-lv { font-size: .72rem; color: #FFE38A; font-weight: 800; letter-spacing: .5px; }
.kid-coins { display: flex; gap: 10px; }
.kid-coin {
  display: flex; align-items: center; gap: 9px;
  background: #0C2747; border: 1px solid rgba(255,255,255,.10); border-radius: 16px;
  padding: 8px 16px 8px 8px; color: #fff; font-weight: 800; box-shadow: 0 8px 18px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  font-family: var(--font-mono);
}
.kid-coin .kc-emoji { font-size: 1.1rem; }

.kid-stage-area { flex: 1; position: relative; z-index: 2; display: grid; place-items: end center; }
.kid-glow { position:absolute; left:50%; bottom:24px; transform:translateX(-50%); width:460px; height:140px; z-index:1; pointer-events:none; background:radial-gradient(ellipse at center, rgba(255,238,190,.5), rgba(255,238,190,.14) 45%, transparent 72%); }
.kid-hero { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 8px; margin-bottom: 96px; }
.kid-sprite { image-rendering: pixelated; width: 248px; filter: drop-shadow(0 12px 10px rgba(0,0,0,.3)); animation: kidbob 2.6s ease-in-out infinite; }
.kid-pet { image-rendering: pixelated; width: 112px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.3)); animation: kidbob 2.6s ease-in-out infinite .5s; }
@keyframes kidbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.kid-nametag {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  background: var(--paper); border: 2.5px solid var(--brand-navy); border-radius: 12px;
  padding: 3px 12px; font-weight: 800; font-size: .82rem; white-space: nowrap;
  box-shadow: 0 3px 0 0 var(--brand-navy);
}

/* docks */
.kid-dock { position: absolute; z-index: 6; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.kid-dock.left { left: 28px; } .kid-dock.right { right: 28px; }
.dockbtn {
  width: 104px; padding: 14px 8px 12px; border-radius: 20px; cursor: pointer;
  border: 3px solid var(--brand-navy); box-shadow: 0 7px 14px rgba(0,0,0,.30), inset 0 -4px 0 rgba(0,0,0,.14);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--font-display, var(--font-sans)); font-weight: 800; letter-spacing: .5px;
  color: var(--brand-navy); font-size: .82rem; transition: transform .12s, box-shadow .12s;
}
.dockbtn:hover { transform: translateY(-2px); box-shadow: 0 11px 18px rgba(0,0,0,.32), inset 0 -4px 0 rgba(0,0,0,.14); }
.dockbtn:active { transform: translateY(2px); box-shadow: 0 4px 8px rgba(0,0,0,.3), inset 0 -2px 0 rgba(0,0,0,.14); }
.dockbtn .glyph { width: 44px; height: 44px; display: grid; place-items: center; }
.db-shop { background: linear-gradient(180deg,#FFE38A,#F0C040); }
.db-brawl { background: linear-gradient(180deg,#FFC182,#F0902 0); background: linear-gradient(180deg,#FFC182,#F09020); }
.db-games { background: linear-gradient(180deg,#CDB8FF,#9B7BE0); }
.db-club { background: linear-gradient(180deg,#A7E6BE,#4FBD7E); }
.db-fam { background: linear-gradient(180deg,#FFB8C7,#F0728F); }

/* owl pass bar */
.kid-bottom { position: relative; z-index: 6; padding: 0 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.owlpass {
  background: rgba(7,32,65,.5); border: 3px solid var(--brand-navy); border-radius: 18px;
  padding: 14px 18px; box-shadow: 0 5px 0 0 var(--brand-navy); color: #fff;
}
.owlpass-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.owlpass-title { font-family: var(--font-display, var(--font-sans)); font-weight: 800; letter-spacing: .5px; color: #FFE38A; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.owlpass-meta { font-family: var(--font-mono); font-weight: 700; font-size: .82rem; }
.owlpass-track { height: 16px; border-radius: 99px; background: rgba(0,0,0,.3); border: 2px solid var(--brand-navy); overflow: hidden; }
.owlpass-fill { height: 100%; background: linear-gradient(90deg, var(--brand-yellow), var(--brand-orange)); border-radius: 99px; }

/* event card row */
.kid-event {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border: 3px solid var(--brand-navy); border-radius: 18px;
  padding: 14px 18px; box-shadow: 0 5px 0 0 var(--brand-navy);
}
.kid-event .ke-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-yellow-soft); flex-shrink: 0; }
.kid-event .ke-t { font-weight: 800; font-size: 1.05rem; }
.kid-event .ke-s { color: var(--ink-3); font-size: .9rem; }
.kid-play-btn {
  margin-left: auto; background: linear-gradient(180deg,#FFC182,#F09020); color: var(--brand-navy);
  border: 3px solid var(--brand-navy); border-radius: 14px; box-shadow: 0 4px 0 0 var(--brand-navy);
  font-family: var(--font-display, var(--font-sans)); font-weight: 800; letter-spacing: .5px;
  padding: 13px 24px; cursor: pointer; font-size: 1rem; transition: transform .12s, box-shadow .12s;
}
.kid-play-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--brand-navy); }
.kid-play-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 0 var(--brand-navy); }

/* kid overlay (games / characters / badges) */
.kid-overlay { position: absolute; inset: 0; z-index: 30; background: rgba(7,24,52,.78); display: flex; flex-direction: column; animation: fadeSwap .25s ease; }
.kid-overlay-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; }
.kid-overlay-title { font-family: var(--font-display, var(--font-sans)); font-weight: 800; font-size: 1.7rem; letter-spacing: .5px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.kid-overlay-sub { color: #FFE38A; font-size: .9rem; font-weight: 700; }
.kid-close {
  width: 46px; height: 46px; border-radius: 13px; cursor: pointer;
  background: linear-gradient(180deg,#FFB8C7,#E04848); color: #fff; border: 3px solid var(--brand-navy);
  box-shadow: 0 4px 0 0 var(--brand-navy); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem;
}
.kid-overlay-body { flex: 1; overflow-y: auto; padding: 8px 28px 28px; }
.kid-subhead { color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; opacity: .85; margin: 18px 0 12px; display: flex; align-items: center; gap: 8px; }

.games-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gcard { border-radius: 16px; overflow: hidden; border: 3px solid var(--brand-navy); box-shadow: 0 5px 0 0 var(--brand-navy); background: var(--paper); cursor: pointer; transition: transform .12s; }
.gcard:hover { transform: translateY(-3px); }
.gcard-hero { height: 92px; display: grid; place-items: center; position: relative; }
.gcard-emoji { font-size: 2.6rem; }
.gcard-play { position: absolute; top: 8px; right: 8px; background: var(--brand-navy); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .5px; padding: 3px 8px; border-radius: 99px; }
.gcard-body { padding: 11px 13px; }
.gcard-name { font-family: var(--font-display, var(--font-sans)); font-weight: 800; font-size: .92rem; letter-spacing: .3px; }
.gcard-desc { font-size: .76rem; color: var(--ink-3); margin-top: 2px; }

.char-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cchar { border-radius: 16px; padding: 12px 8px 10px; text-align: center; border: 3px solid var(--brand-navy); box-shadow: 0 4px 0 0 var(--brand-navy); background: linear-gradient(180deg,#EAF6FF,#CDEafF); position: relative; cursor: pointer; transition: transform .12s; }
.cchar:hover { transform: translateY(-2px); }
.cchar.owned { background: linear-gradient(180deg,#FFF6D9,#FFE9A8); }
.cchar.locked { filter: saturate(.6); }
.cchar.equipped { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.cchar img { width: 58px; image-rendering: pixelated; }
.cchar .cc-name { font-weight: 800; font-size: .78rem; margin-top: 5px; }
.cchar .cc-cost { font-family: var(--font-mono); font-weight: 700; font-size: .74rem; color: var(--brand-blue); display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 3px; }
.cchar .cc-lock { font-size: .68rem; font-weight: 800; color: var(--ink-4); margin-top: 3px; }
.cchar .cc-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: .6rem; font-weight: 800; letter-spacing: .5px; padding: 2px 8px; border-radius: 99px; background: var(--brand-orange); color: #fff; border: 2px solid var(--brand-navy); white-space: nowrap; }

.badge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.bcard { background: var(--paper); border: 3px solid var(--brand-navy); border-radius: 16px; box-shadow: 0 4px 0 0 var(--brand-navy); padding: 14px; text-align: center; }
.bcard img { width: 72px; }
.bcard.locked img { filter: grayscale(1); opacity: .35; }
.bcard .bc-name { font-weight: 800; font-size: .84rem; margin-top: 6px; }
.bcard .bc-crit { font-size: .72rem; color: var(--ink-3); margin-top: 3px; line-height: 1.3; }
.bcard .bc-tier { display: inline-block; margin-top: 7px; font-size: .62rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; }

/* ============================================================
   HOMESCHOOL CHILD — refined HUD / sunburst / bottom row
   ============================================================ */
.kid-avatar-chip .ka-handle { font-size:.72rem; color:#BFE0F5; font-weight:700; font-family:var(--font-mono); }
.kid-coin .kc-ico { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:.82rem; border:1.5px solid rgba(0,0,0,.25); flex-shrink:0; }
.kc-gold .kc-ico { background:radial-gradient(circle at 35% 30%,#FFE9A0,#E5AE2A); }
.kc-gem .kc-ico  { background:radial-gradient(circle at 35% 30%,#8FEFCE,#1FA37A); }
.kc-star .kc-ico { background:radial-gradient(circle at 35% 30%,#D2B3F5,#7B4FC2); }
.kc-flame .kc-ico{ background:radial-gradient(circle at 35% 30%,#FFC07A,#E5662A); }
.kid-menu { width:56px; height:56px; border-radius:16px; background:#0C2747; border:1px solid rgba(255,255,255,.10); box-shadow:0 8px 18px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08); color:#fff; display:grid; place-items:center; cursor:pointer; }

.kid-sunburst { position:absolute; left:50%; bottom:-40px; transform:translateX(-50%); width:720px; height:720px; z-index:0; pointer-events:none;
  background:repeating-conic-gradient(from 0deg, rgba(255,242,200,.22) 0deg 6deg, transparent 6deg 12deg);
  -webkit-mask:radial-gradient(circle, #000 12%, rgba(0,0,0,.5) 36%, transparent 62%); mask:radial-gradient(circle, #000 12%, rgba(0,0,0,.5) 36%, transparent 62%);
  animation:sunspin 80s linear infinite; }
@keyframes sunspin { to { transform:translateX(-50%) rotate(360deg); } }
.kid-world .kid-hero { margin-bottom:36px; }

.kid-bottom3 { position:relative; z-index:6; padding:0 24px 22px; display:grid; grid-template-columns:300px 1fr 290px; gap:16px; align-items:stretch; }
.owlpass2 { background:linear-gradient(180deg,#7B5BC8,#5A3FA8); border:3px solid var(--brand-navy); border-radius:18px; padding:14px 16px; box-shadow:0 8px 18px rgba(0,0,0,.3); color:#fff; display:flex; flex-direction:column; gap:9px; }
.owlpass2 .op-top { display:flex; align-items:center; gap:11px; }
.owlpass2 .op-ico { width:44px; height:44px; border-radius:12px; background:linear-gradient(180deg,#FFE38A,#F0C040); display:grid; place-items:center; border:2.5px solid var(--brand-navy); font-size:1.4rem; flex-shrink:0; }
.owlpass2 .op-t { font-family:var(--font-display); letter-spacing:.5px; font-size:1.15rem; line-height:1; }
.owlpass2 .op-s { font-size:.64rem; opacity:.9; font-weight:700; letter-spacing:.6px; margin-top:3px; }
.owlpass2 .op-track { height:12px; border-radius:99px; background:rgba(0,0,0,.32); border:2px solid var(--brand-navy); overflow:hidden; }
.owlpass2 .op-fill { height:100%; background:linear-gradient(90deg,var(--brand-yellow),var(--brand-orange)); border-radius:99px; }
.owlpass2 .op-foot { display:flex; align-items:center; justify-content:space-between; font-family:var(--font-mono); font-weight:700; font-size:.78rem; }
.op-lv { background:var(--brand-navy); border:2px solid rgba(255,255,255,.25); border-radius:99px; padding:3px 11px; display:inline-flex; align-items:center; gap:5px; }

.kid-goals { background:#0C2747; border:3px solid var(--brand-navy); border-radius:18px; box-shadow:0 8px 18px rgba(0,0,0,.3); padding:14px 16px; color:#fff; }
.kid-goals .kg-t { font-family:var(--font-display); letter-spacing:.6px; color:#FFE38A; text-shadow:0 2px 0 rgba(0,0,0,.35); margin-bottom:11px; }
.goal-chips { display:flex; gap:10px; flex-wrap:wrap; }
.goal-chip { display:flex; align-items:center; gap:10px; background:var(--paper); border:2.5px solid var(--brand-navy); border-radius:13px; padding:9px 14px; color:var(--brand-navy); box-shadow:0 3px 0 0 var(--brand-navy); }
.goal-chip .gc-box { width:20px; height:20px; border-radius:6px; border:2.5px solid var(--brand-navy); flex-shrink:0; }
.goal-chip .gc-n { font-size:.86rem; font-weight:800; }
.goal-chip .gc-c { font-family:var(--font-mono); font-size:.74rem; color:var(--ink-3); font-weight:700; }

.kid-review { background:#0C2747; border:3px solid var(--brand-navy); border-radius:18px; box-shadow:0 7px 16px rgba(0,0,0,.3); padding:14px 16px; display:flex; flex-direction:column; gap:8px; color:#fff; }
.kid-review .kr-top { display:flex; align-items:center; justify-content:space-between; }
.kid-review .kr-prog { font-family:var(--font-display); font-size:1.5rem; color:#fff; display:flex; align-items:center; gap:9px; }
.kid-review .kr-prog .kr-bk { width:34px; height:34px; border-radius:9px; background:#13315c; border:2px solid rgba(255,255,255,.18); display:grid; place-items:center; font-size:1rem; }
.kid-review .kr-left { color:#5BD89A; font-weight:800; font-size:.82rem; }
.kid-review .kr-s { font-size:.8rem; color:#9FC0DE; }
.kid-review .kr-track { height:8px; border-radius:99px; background:rgba(0,0,0,.35); overflow:hidden; }
.kid-review .kr-fill { height:100%; background:linear-gradient(90deg,var(--brand-yellow),var(--brand-orange)); border-radius:99px; }
.kid-review-btn { margin-top:auto; background:linear-gradient(180deg,#FFE38A,#F0C040); color:var(--brand-navy); border:3px solid var(--brand-navy); border-radius:14px; box-shadow:0 4px 0 0 var(--brand-navy); font-family:var(--font-display); letter-spacing:1px; font-size:1.2rem; padding:13px; cursor:pointer; transition:transform .12s,box-shadow .12s; }
.kid-review-btn:hover { transform:translateY(-2px); box-shadow:0 6px 0 0 var(--brand-navy); }
.kid-review-btn:active { transform:translateY(2px); box-shadow:0 2px 0 0 var(--brand-navy); }

/* ============================================================
   HOMESCHOOL PARENT — family overview + reports
   ============================================================ */
.hsp { width:1320px; min-height:860px; background:var(--cream); display:flex; flex-direction:column; }
.hsp-nav { display:flex; align-items:center; gap:16px; padding:14px 26px; border-bottom:1px solid var(--rule); position:sticky; top:0; background:rgba(251,243,220,.92); backdrop-filter:blur(10px); z-index:30; }
.hsp-nav .hn-back { width:30px; height:30px; border-radius:9px; border:1px solid var(--rule); background:var(--paper); display:grid; place-items:center; color:var(--ink-3); cursor:pointer; }
.hsp-nav .logo { display:flex; align-items:center; gap:9px; }
.hsp-nav .logo img { width:30px; height:30px; }
.hsp-nav .logo .word { font-weight:800; font-size:1.2rem; background:linear-gradient(135deg,var(--brand-yellow-deep),var(--brand-orange)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hsp-navitems { display:flex; align-items:center; gap:3px; margin:0 auto; flex-wrap:wrap; }
.hsp-navbtn { display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border-radius:var(--r-pill); border:1px solid transparent; background:transparent; color:var(--ink-3); font-family:inherit; font-weight:600; font-size:.9rem; cursor:pointer; transition:all .16s; }
.hsp-navbtn svg { width:16px; height:16px; }
.hsp-navbtn:hover { background:rgba(11,30,63,.05); color:var(--ink); }
.hsp-navbtn.active { background:var(--brand-yellow-soft); color:var(--brand-navy); border-color:var(--brand-yellow-deep); font-weight:700; }
.hsp-navbtn-dis { opacity:.4; cursor:not-allowed; }
.hsp-navbtn-dis:hover { background:transparent; color:var(--ink-3); }
.navbtn-dis { opacity:.4; cursor:not-allowed; }
.navbtn-dis:hover { background:transparent !important; color:var(--text-dim) !important; }

.hsp-main { flex:1; padding:30px 40px 48px; max-width:1200px; margin:0 auto; width:100%; }
.hsp-date { color:var(--brand-blue); font-weight:800; letter-spacing:.1em; text-transform:uppercase; font-size:.74rem; }
.hsp-h { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-top:8px; }
.hsp-h h1 { margin:0; font-size:2.3rem; font-weight:800; letter-spacing:-.02em; }
.hsp-h .hsp-sub { color:var(--ink-3); margin-top:5px; font-size:1rem; }
.hsp-h-actions { display:flex; gap:10px; }
.hsp-btn { padding:11px 20px; border-radius:var(--r-pill); font-weight:700; font-size:.92rem; cursor:pointer; font-family:inherit; border:1.5px solid var(--brand-navy); background:var(--paper); color:var(--brand-navy); display:inline-flex; align-items:center; gap:7px; transition:all .16s; }
.hsp-btn:hover { background:var(--cream-deep); }
.hsp-btn.primary { background:linear-gradient(135deg,var(--brand-yellow),var(--brand-yellow-deep)); color:#fff; border-color:transparent; box-shadow:var(--shadow-accent); }
.hsp-divider { height:1px; background:var(--rule); margin:22px 0; }

.hsp-filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.hsp-fchip { display:flex; align-items:center; gap:9px; padding:8px 18px 8px 8px; border-radius:var(--r-pill); border:1.5px solid var(--rule); background:var(--paper); cursor:pointer; font-family:inherit; font-weight:700; font-size:.92rem; color:var(--ink-2); transition:all .16s; }
.hsp-fchip:hover { border-color:var(--rule-strong); }
.hsp-fchip.active { background:var(--brand-navy); color:#fff; border-color:var(--brand-navy); }
.hsp-fchip.fam { padding-left:18px; gap:8px; }
.hsp-fav { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-size:.7rem; font-weight:800; border:2px solid; flex-shrink:0; }
.hsp-fchip.add { border-style:dashed; color:var(--ink-4); }

.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:34px; }
.kpi { background:var(--paper); border:1px solid var(--rule); border-radius:var(--r-lg); padding:20px 22px; box-shadow:var(--shadow-xs); }
.kpi .k-k { font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-4); }
.kpi .k-v { font-size:2.7rem; font-weight:800; letter-spacing:-1.5px; margin:8px 0 2px; line-height:1; }
.kpi .k-s { font-size:.84rem; color:var(--ink-4); }

.hsp-sec-h { font-size:1.5rem; font-weight:800; letter-spacing:-.01em; margin:0 0 3px; }
.hsp-sec-s { color:var(--ink-3); font-size:.92rem; margin:0 0 16px; }

.learner-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:34px; }
.learner-card { background:var(--paper); border:1px solid var(--rule); border-radius:var(--r-lg); padding:20px 22px; transition:all .18s; cursor:pointer; }
.learner-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.learner-top { display:flex; align-items:center; gap:13px; margin-bottom:18px; }
.learner-av { width:52px; height:52px; border-radius:50%; display:grid; place-items:center; font-weight:800; border:2.5px solid; flex-shrink:0; }
.learner-name { font-weight:800; font-size:1.15rem; }
.learner-stage { font-size:.82rem; color:var(--ink-4); }
.learner-stats { display:flex; justify-content:space-between; align-items:flex-end; }
.learner-stats .ls-k { font-size:.68rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-4); }
.learner-stats .ls-v { font-size:1.6rem; font-weight:800; margin-top:3px; }

.needs-card { background:var(--paper); border:1px solid var(--rule); border-radius:var(--r-lg); padding:16px 20px; display:flex; align-items:center; gap:14px; }
.needs-av { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:.78rem; border:2.5px solid; flex-shrink:0; }
.needs-play { width:40px; height:40px; border-radius:11px; background:var(--cream-deep); border:1px solid var(--rule); display:grid; place-items:center; cursor:pointer; flex-shrink:0; }
.needs-name { font-weight:800; color:var(--brand-orange-deep); }
.needs-tag { font-size:.74rem; font-weight:700; padding:3px 11px; border-radius:99px; background:var(--cream-deep); color:var(--ink-3); display:inline-flex; align-items:center; gap:5px; }
.needs-q { font-weight:600; }
.needs-overdue { margin-left:auto; color:var(--danger); font-weight:800; font-size:.78rem; letter-spacing:.04em; }

/* in-app transcript table (Reports) */
.tx { max-width:1120px; margin:0 auto; }
.tx-card { background:var(--paper); border:1px solid var(--rule); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-sm); }
table.tx-table { width:100%; border-collapse:collapse; }
table.tx-table thead { background:var(--cream-deep); }
table.tx-table th { text-align:left; padding:15px 18px; font-size:.7rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
table.tx-table th.num, table.tx-table td.num { text-align:right; font-family:var(--font-mono); }
table.tx-table td { padding:16px 18px; border-top:1px solid var(--rule); vertical-align:middle; }
.tx-subject { display:inline-flex; align-items:center; gap:7px; padding:5px 13px; border-radius:99px; background:var(--cream-deep); font-size:.82rem; font-weight:600; white-space:nowrap; }
.tx-subject .dot { width:8px; height:8px; border-radius:99px; }
.tx-course { font-weight:700; font-size:1rem; }
.tx-score { color:var(--brand-orange-deep); font-weight:800; font-family:var(--font-mono); }
.tx-grade { width:40px; height:40px; border-radius:50%; background:var(--cream-deep); display:grid; place-items:center; font-weight:800; }
.tx-done { color:var(--success); font-weight:600; }
.tx-prog { color:var(--ink-4); }
.tx-remove { padding:8px 18px; border-radius:99px; border:1.5px solid var(--rule-strong); background:transparent; color:var(--ink-3); font-family:inherit; font-weight:600; cursor:pointer; transition:all .16s; }
.tx-remove:hover { border-color:var(--danger); color:var(--danger); }

/* monthly hours chart */
.hours-h { display:flex; align-items:flex-end; justify-content:space-between; margin:40px 0 14px; gap:16px; flex-wrap:wrap; }
.hours-refresh { color:var(--brand-blue); font-weight:600; font-size:.88rem; cursor:pointer; display:inline-flex; gap:6px; align-items:center; background:none; border:none; font-family:inherit; }
.hours-card { background:var(--paper); border:1px solid var(--rule); border-radius:var(--r-lg); padding:26px 30px; box-shadow:var(--shadow-sm); }
.hours-chart { display:grid; grid-template-columns:repeat(9,1fr); gap:12px; align-items:stretch; height:240px; }
.hcol { display:flex; flex-direction:column; align-items:center; height:100%; }
.hcol .h-stack { flex:1; width:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:8px; }
.hcol .h-bar { width:54px; max-width:80%; border-radius:10px 10px 0 0; background:linear-gradient(180deg,#1B72AE,#0D4F78); min-height:4px; transition:height 1s var(--ease-out); }
.hcol .h-val { font-weight:800; font-size:.82rem; color:var(--ink-2); text-align:center; }
.hcol .h-mo { margin-top:10px; font-size:.84rem; color:var(--ink-4); }
.hours-total { display:flex; justify-content:space-between; align-items:center; margin-top:18px; padding-top:16px; border-top:1px solid var(--rule); font-weight:700; }
.hours-total .ht-v { color:var(--success); font-family:var(--font-mono); font-size:1.15rem; }

/* printable serif transcript */
.ptx-wrap { max-width:1120px; margin:36px auto 0; }
.ptx { background:#fff; color:#1a1a1a; max-width:1000px; margin:0 auto; padding:46px 56px; border:1px solid var(--rule); border-radius:10px; box-shadow:var(--shadow-md); font-family:Georgia,'Times New Roman',serif; }
.ptx-school { text-align:center; }
.ptx-school h1 { font-size:2.1rem; font-weight:800; letter-spacing:.05em; margin:0; }
.ptx-school .pa { font-style:italic; color:#555; font-size:.95rem; margin-top:7px; line-height:1.5; }
.ptx-rule { height:2px; background:#1a1a1a; margin:18px 0 28px; }
.ptx-title { text-align:center; font-size:1.25rem; letter-spacing:.34em; font-weight:700; margin:0 0 32px; }
.ptx-meta { display:grid; grid-template-columns:1fr 1fr; gap:20px 56px; margin-bottom:34px; }
.ptx-field { display:grid; grid-template-columns:150px 1fr; align-items:end; gap:12px; }
.ptx-field .pf-k { font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:#444; font-family:var(--font-sans); font-weight:700; line-height:1.3; }
.ptx-field .pf-v { border-bottom:1px solid #aaa; padding-bottom:4px; font-size:1.05rem; min-height:24px; }
.ptx-sec { font-family:var(--font-sans); font-weight:800; letter-spacing:.1em; text-transform:uppercase; font-size:.82rem; border-bottom:2px solid #1a1a1a; padding-bottom:7px; margin:0 0 2px; }
table.ptx-table { width:100%; border-collapse:collapse; font-size:.98rem; margin-bottom:18px; }
table.ptx-table thead tr { background:#efefef; }
table.ptx-table th { text-align:left; padding:11px 12px; font-family:var(--font-sans); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:#333; font-weight:800; }
table.ptx-table th.num, table.ptx-table td.num { text-align:right; }
table.ptx-table td { padding:12px; border-bottom:1px solid #e4e4e4; }
.ptx-total td { font-weight:800; background:#fafafa; border-top:2px solid #1a1a1a; border-bottom:none; }
.ptx-summary { display:flex; gap:42px; flex-wrap:wrap; font-family:var(--font-sans); margin:4px 0 36px; align-items:baseline; }
.ptx-summary .ps-k { font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:#555; }
.ptx-summary .ps-v { font-weight:800; font-size:1.2rem; margin-left:8px; }
.ptx-cert-h { font-family:var(--font-sans); font-weight:800; letter-spacing:.1em; text-transform:uppercase; font-size:.82rem; border-bottom:2px solid #1a1a1a; padding-bottom:7px; margin:0 0 14px; }
.ptx-cert { font-style:italic; color:#333; line-height:1.65; margin:0 0 46px; }
.ptx-sign { display:grid; grid-template-columns:1fr 1fr; gap:56px; }
.ptx-sign .pl { border-top:1px solid #1a1a1a; padding-top:9px; font-size:1rem; }
.ptx-sign .pl .pll { font-family:var(--font-sans); font-size:.76rem; color:#666; margin-top:4px; }

/* blue student ID cards */
.idgrid { display:flex; gap:24px; flex-wrap:wrap; justify-content:center; }
.idcard { width:380px; border-radius:16px; overflow:hidden; background:#fff; border:1px solid var(--rule); box-shadow:var(--shadow-lg); color:var(--ink); }
.idcard-hd { background:linear-gradient(135deg,#2E7BD6,#1A5DB4); padding:14px 18px; display:flex; align-items:center; gap:12px; border-bottom:4px solid var(--brand-yellow); }
.idcard-hd .id-logo { width:42px; height:42px; border-radius:11px; background:linear-gradient(180deg,#FFE38A,#F0C040); display:grid; place-items:center; flex-shrink:0; }
.idcard-hd .id-logo img { width:32px; }
.idcard-hd .id-brand { color:#fff; }
.idcard-hd .id-brand .ib-n { font-weight:800; font-size:1.25rem; letter-spacing:.04em; line-height:1; }
.idcard-hd .id-brand .ib-s { font-size:.62rem; letter-spacing:.18em; opacity:.9; margin-top:3px; }
.idcard-hd .id-pill { margin-left:auto; border:1.5px solid rgba(255,227,138,.8); color:#FFE38A; font-size:.66rem; font-weight:800; letter-spacing:.1em; padding:5px 12px; border-radius:8px; }
.idcard-bd { display:flex; gap:18px; padding:20px; }
.idcard-bd .id-name { font-size:1.5rem; font-weight:800; margin-bottom:12px; }
.idcard-fields { display:flex; flex-direction:column; gap:8px; flex:1; }
.idf { font-size:.88rem; }
.idf b { color:var(--brand-blue); letter-spacing:.02em; }
.idf .idf-mono { font-family:var(--font-mono); }
.idcard-photo { width:96px; height:118px; border-radius:10px; border:2px solid var(--brand-blue); background:#EEF2F6; display:grid; place-items:center; flex-shrink:0; color:#9AA8B8; }
.idcard-photo .ip-l { font-size:.64rem; margin-top:4px; }
.idcard-ft { background:#EEF1F4; padding:9px 18px; display:flex; align-items:center; justify-content:space-between; font-size:.72rem; color:var(--ink-4); }
.idcard-ft img { width:22px; }
.idcard-band { background:linear-gradient(135deg,#2E7BD6,#1A5DB4); padding:13px 18px; display:flex; align-items:center; justify-content:space-between; color:#fff; }
.idcard-band .ibd-l { font-weight:800; letter-spacing:.12em; font-size:.86rem; }
.idcard-band .ibd-y { font-weight:700; letter-spacing:.04em; }
.idcard-band .ibd-g { background:linear-gradient(180deg,#FFE38A,#F0C040); color:var(--brand-navy); border-radius:8px; padding:4px 12px; text-align:center; line-height:1; }
.idcard-band .ibd-g .g-k { font-size:.56rem; font-weight:800; letter-spacing:.1em; }
.idcard-band .ibd-g .g-v { font-weight:800; font-size:1.05rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--cream-deep); border-top: 1px solid var(--rule); padding: var(--section-gap) 0; margin-top: var(--section-gap); }
/* Audience picker + billing toggle each on their own row, centered.
   display: flex + width: fit-content + auto horizontal margins so a
   pill-shaped control stays its natural width but gets a clean
   horizontal centre on its own line. Vertical rhythm: 36px above the
   audience pill, 22px between the pill and the billing toggle. */
.price-aud {
  display: flex; gap: 5px; padding: 5px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  width: fit-content;
  margin: 36px auto 0;
}
.price-aud button { padding: 10px 22px; border: none; background: transparent; border-radius: var(--r-pill); cursor: pointer; font-family: inherit; font-weight: 700; font-size: .94rem; color: var(--ink-3); transition: all .18s; }
.price-aud button.active { background: var(--brand-navy); color: #fff; box-shadow: var(--shadow-sm); }
/* Billing toggle gets its own contained pill so it visually rhymes
   with the audience picker above. */
.billing-toggle {
  display: flex; align-items: center; gap: 14px;
  width: fit-content;
  margin: 22px auto 0;
  padding: 8px 16px 8px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-weight: 600; color: var(--ink-3);
}
.billing-switch { width: 52px; height: 30px; border-radius: 99px; background: var(--rule-strong); border: none; cursor: pointer; position: relative; transition: background .2s; flex-shrink: 0; }
.billing-switch.on { background: var(--brand-yellow-deep); }
.billing-switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: var(--shadow-sm); }
.billing-switch.on .knob { left: 25px; }
.save-pill { background: var(--success-soft, rgba(46,139,94,.16)); color: var(--success); font-weight: 700; font-size: .76rem; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

.tiers { display: grid; gap: 22px; margin-top: 44px; align-items: start; }
.tiers.t2 { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
.tiers.t3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tier {
  background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--r-xl);
  padding: 28px; display: flex; flex-direction: column; transition: all .2s var(--ease-out);
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tier.rec { border-color: var(--brand-yellow-deep); box-shadow: 0 0 0 3px var(--brand-yellow-soft), var(--shadow-lg); position: relative; }
.tier-reclabel { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange)); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 16px; border-radius: 99px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.tier h3 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.tier .tier-price { display: flex; align-items: baseline; gap: 5px; margin: 16px 0 4px; }
.tier .tp-amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -1.5px; font-family: var(--font-mono); }
.tier .tp-per { color: var(--ink-4); font-weight: 600; font-size: .92rem; }
.tier .tier-billed { font-size: .82rem; color: var(--ink-4); min-height: 18px; }
.tier-cta { margin: 22px 0; text-align: center; padding: 13px; border-radius: var(--r-md); font-weight: 700; font-size: .95rem; cursor: pointer; border: 1.5px solid var(--brand-navy); background: var(--paper); color: var(--brand-navy); font-family: inherit; transition: all .18s; }
.tier-cta:hover { background: var(--cream-deep); }
.tier.rec .tier-cta { background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep)); color: #fff; border-color: transparent; box-shadow: var(--shadow-accent); }
.tier-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tier-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.4; }
.tier-feats li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.tier-feats li.on svg { color: var(--success); }
.tier-feats li.off { color: var(--ink-4); }
.tier-feats li.off svg { color: var(--ink-4); }
.tier-feats li.hl { font-weight: 700; }

/* included everywhere */
.included { max-width: 980px; margin: 44px auto 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-xl); padding: 26px 30px; }
.included h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.included p { margin: 0 0 18px; color: var(--ink-3); font-size: .9rem; }
.included-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.inc-item { display: flex; gap: 11px; align-items: flex-start; }
.inc-item svg { width: 18px; height: 18px; color: var(--brand-orange); flex-shrink: 0; margin-top: 2px; }
.inc-item .ii-t { font-weight: 700; font-size: .9rem; }
.inc-item .ii-s { font-size: .8rem; color: var(--ink-4); line-height: 1.35; }

/* ============================================================
   Contact section — lifted from the live ulearnai.org form,
   restyled to the marketing cream / navy / yellow palette.
   Sits between the pricing band and the CTA. Reached via the
   footer "Contact" link (#contact).
   ============================================================ */
.contact-section { padding: var(--section-gap) 0 0; background: var(--cream); }
.contact-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.contact-head .sec-lead { margin-top: 12px; }
.contact-card {
  max-width: 640px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; position: relative; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .contact-row { grid-template-columns: 1fr; } }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field > span {
  font-size: 0.85rem; font-weight: 700;
  color: var(--ink-2); letter-spacing: 0.01em;
}
.contact-field input,
.contact-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream-deep);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brand-yellow-deep);
  box-shadow: 0 0 0 3px var(--brand-yellow-soft);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--ink-4); }
.contact-error {
  color: var(--danger, #C0392B);
  font-size: 0.85rem; font-weight: 600;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
}
.contact-submit {
  font: inherit; font-weight: 800; font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.4);
  transition: transform 0.12s, box-shadow 0.15s, opacity 0.15s;
}
.contact-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(240, 192, 64, 0.5);
}
.contact-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.contact-alt {
  text-align: center; font-size: 0.88rem; color: var(--ink-3);
  margin-top: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.contact-alt a { color: var(--brand-blue); font-weight: 700; text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }
.contact-success {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 8px 0;
}
.contact-success h3 { margin: 0; color: var(--ink); font-size: 1.4rem; }
.contact-success p { margin: 0; color: var(--ink-3); }
.contact-success .btn-ghost {
  margin-top: 8px;
  font: inherit; font-weight: 700;
  background: transparent;
  border: 1.5px solid var(--brand-navy);
  color: var(--brand-navy);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-success .btn-ghost:hover { background: var(--cream-deep); }

/* ============================================================
   CTA strip + footer
   ============================================================ */
.cta-band { padding: var(--section-gap) 0; }
.cta-inner {
  max-width: var(--maxw); margin: 0 auto; border-radius: var(--r-2xl, 36px); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-navy), #14356a);
  padding: 56px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-inner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(240,192,64,.25), transparent 65%); }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0; position: relative; z-index: 2; }
.cta-inner p { color: rgba(255,255,255,.78); margin: 12px 0 0; font-size: 1.05rem; position: relative; z-index: 2; }
.cta-actions { display: flex; gap: 12px; position: relative; z-index: 2; }
.btn-xl { padding: 16px 30px; border-radius: var(--r-pill); font-weight: 800; font-size: 1.02rem; cursor: pointer; border: none; font-family: inherit; transition: transform .15s, box-shadow .15s; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.btn-xl.primary { background: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange)); color: #fff; box-shadow: 0 10px 30px -8px rgba(240,144,32,.6); }
.btn-xl.ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-xl:hover { transform: translateY(-2px); }

.mfooter { background: var(--cream-deep); border-top: 1px solid var(--rule); padding: 56px 0 30px; }
.mfooter-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; }
.mfooter h5 { margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.mfooter a { display: block; color: var(--ink-3); text-decoration: none; font-size: .92rem; padding: 5px 0; cursor: pointer; }
.mfooter a:hover { color: var(--brand-navy); }
.mfooter-bot { max-width: var(--maxw); margin: 36px auto 0; padding: 22px 32px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; color: var(--ink-4); font-size: .84rem; flex-wrap: wrap; gap: 10px; }

/* utility */
.center { text-align: center; }
.tac-tabs-spacer { height: 0; }

/* ============================================================
   How It Works — three-step band with GIF media from the drip
   recordings. Sits between the hero/showcase and the pricing.
   ============================================================ */
.how-band { padding: 72px 0; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.how-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.how-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; }
.how-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.how-step {
  background: var(--bg, var(--cream));
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.how-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px -4px rgba(240,192,64,.6);
}
.how-step-t { margin: 4px 0 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.25; }
.how-step-p { margin: 0; color: var(--ink-3); font-size: .92rem; line-height: 1.5; }
.how-media {
  margin-top: 10px;
  background: var(--brand-navy);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.how-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-vid {
  appearance: none; -webkit-appearance: none;
  display: block;
  width: 100%; height: 100%;
  padding: 0; margin: 0;
  border: 0; background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.how-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-vid-icon {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(11, 30, 63, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.how-vid:hover .how-vid-icon,
.how-vid.is-paused .how-vid-icon { opacity: 1; transform: scale(1); }
/* When paused: make the icon the centered focal point, not the corner. */
.how-vid.is-paused .how-vid-icon {
  right: auto; bottom: auto;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
}
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
}


/* ============================================================
   As Seen On — slim credibility strip beneath the hero
   ============================================================ */
/* ============================================================
   Try-it section: anonymous card-gen demo above the role switcher.
   Sits inside .hero so the gradient background flows behind it.
   ============================================================ */
.tryit {
  margin: 56px auto 8px;
  max-width: 820px;
  padding: 0 16px;
  text-align: center;
}
.tryit-head { margin-bottom: 22px; }
.tryit-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange, #F09020);
  margin-bottom: 10px;
}
.tryit-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink, #0B1E3F);
}
.tryit-sub {
  font-size: 1rem;
  color: var(--ink-3, #5a6a8a);
  margin: 0;
}
.tryit-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 10px;
}
.tryit-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(11,30,63,0.12);
  font: inherit;
  font-size: 0.98rem;
  background: #FFFCF3;
  color: var(--ink);
  outline: none;
  transition: border-color 100ms;
}
.tryit-input:focus { border-color: var(--brand-orange, #F09020); }
.tryit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-orange, #F09020), var(--brand-yellow, #F0C040));
  color: var(--ink, #0B1E3F);
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(240,144,32,0.28);
  transition: transform 100ms, box-shadow 140ms;
}
.tryit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(240,144,32,0.36); }
.tryit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.tryit-quota { margin-top: 4px; font-size: 0.85rem; color: var(--ink-3, #5a6a8a); }
.tryit-progress-wrap {
  margin: 14px auto 6px;
  max-width: 520px;
}
.tryit-progress {
  height: 8px;
  background: rgba(11,30,63,0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.tryit-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-orange, #F09020), var(--brand-yellow, #F0C040));
  border-radius: 999px;
  transition: width 220ms ease-out;
  box-shadow: 0 0 12px rgba(240,144,32,0.4);
}
.tryit-progress-label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-3, #5a6a8a);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tryit-error {
  margin: 12px auto 0;
  max-width: 520px;
  padding: 10px 14px;
  background: #fde0e0;
  color: #8a1f1f;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.tryit-result {
  margin-top: 28px;
  text-align: left;
  background: #FFFCF3;
  border: 1px solid rgba(11,30,63,0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(11,30,63,0.06);
}
.tryit-result-head {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.tryit-result-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tryit-result-topic { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.tryit-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tryit-lessons { display: grid; gap: 12px; }
.tryit-lesson {
  background: var(--cream, #FBF3DC);
  border: 1px solid rgba(11,30,63,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 120ms;
}
.tryit-lesson.open { border-color: rgba(240,144,32,0.5); background: #FFFCF3; }
.tryit-lesson-head {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.tryit-lesson-head:hover { background: rgba(240,144,32,0.06); }
.tryit-lesson-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange, #F09020), var(--brand-yellow, #F0C040));
  color: var(--ink, #0B1E3F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
}
.tryit-lesson-title-block { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tryit-lesson-title { font-weight: 700; color: var(--ink, #0B1E3F); letter-spacing: -0.01em; font-size: 0.98rem; }
.tryit-lesson-summary { font-size: 0.85rem; color: var(--ink-3, #5a6a8a); line-height: 1.4; }
.tryit-lesson-meta { font-size: 0.75rem; font-weight: 700; color: var(--ink-3, #5a6a8a); letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0; }
.tryit-lesson-chev { color: var(--ink-3, #5a6a8a); flex-shrink: 0; transition: transform 160ms; }
.tryit-lesson.open .tryit-lesson-chev { transform: rotate(180deg); }
.tryit-lesson-body {
  display: grid;
  gap: 10px;
  padding: 4px 16px 16px;
  border-top: 1px solid rgba(11,30,63,0.06);
}
.tryit-card {
  background: #FFFCF3;
  border: 1px solid rgba(11,30,63,0.08);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 120ms;
}
.tryit-card-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-orange, #F09020); }
.tryit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tryit-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11,30,63,0.06);
  color: var(--ink, #0B1E3F);
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 100ms, transform 80ms;
}
.tryit-replay-btn:hover { background: rgba(240,144,32,0.18); }
.tryit-replay-btn:active { transform: translateY(1px); }
.tryit-replay-btn svg { color: var(--brand-orange, #F09020); flex-shrink: 0; }
.tryit-card-q { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 12px; }
.tryit-card-why {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(11,30,63,0.04);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* YouTube embed for each lesson */
.tryit-video {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 14px;
  border: 1px solid rgba(11,30,63,0.1);
}
.tryit-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.tryit-video-meta {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--ink-3, #5a6a8a);
  background: rgba(11,30,63,0.03);
}
.tryit-video-channel { font-weight: 700; color: var(--ink-2, #3a4a6b); margin-right: 4px; }
.tryit-video-title { color: var(--ink-3, #5a6a8a); }
.tryit-video-missing {
  padding: 12px 14px;
  background: rgba(11,30,63,0.04);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-style: italic;
}

.tryit-quizzes { display: grid; gap: 10px; }

/* MCQ option buttons -- 4 stacked, click to answer, lock + color
   on click. Correct=green, wrong picked=red, unpicked-after-answer=dim. */
.tryit-options {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.tryit-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid rgba(11,30,63,0.12);
  border-radius: 10px;
  font: inherit;
  font-size: 0.93rem;
  color: var(--ink, #0B1E3F);
  text-align: left;
  cursor: pointer;
  transition: border-color 100ms, background 100ms, transform 80ms;
  line-height: 1.4;
}
.tryit-opt:hover:not(:disabled) { border-color: var(--brand-orange, #F09020); }
.tryit-opt:disabled { cursor: default; }
.tryit-opt-letter {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(11,30,63,0.06);
  color: var(--ink-3, #5a6a8a);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tryit-opt-text { flex: 1; }
.tryit-opt-mark { flex-shrink: 0; font-weight: 800; font-size: 1.05rem; }
.tryit-opt.correct {
  border-color: #2EA46B;
  background: #e8f7ee;
  color: #15693d;
}
.tryit-opt.correct .tryit-opt-letter { background: #2EA46B; color: #fff; }
.tryit-opt.correct .tryit-opt-mark { color: #15693d; }
.tryit-opt.wrong {
  border-color: #C84141;
  background: #fde9e9;
  color: #8a1f1f;
}
.tryit-opt.wrong .tryit-opt-letter { background: #C84141; color: #fff; }
.tryit-opt.wrong .tryit-opt-mark { color: #8a1f1f; }
.tryit-opt.dim { opacity: 0.55; }
.tryit-save { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tryit-save-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink, #0B1E3F); color: #FFFCF3;
  border: 0; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: transform 100ms, box-shadow 140ms;
}
.tryit-save-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,30,63,0.2); }
.tryit-save-hint { font-size: 0.85rem; color: var(--ink-3); }
@media (max-width: 600px) {
  .tryit-form { flex-direction: column; gap: 8px; }
  .tryit-btn { width: 100%; justify-content: center; }
  .tryit-save { flex-direction: column; align-items: stretch; }
  .tryit-save-btn { width: 100%; justify-content: center; }
}

/* Floating pill in the bottom-right of the viewport. Links to the
   college-credit-bio pre-order page. position:fixed so it follows the
   user through scroll. Visually distinct from the rest of the page
   (brand-orange gradient) so it reads as an actionable "new offer"
   shortcut without competing with the main hero copy. */
.floating-cc {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--brand-orange, #F09020), var(--brand-yellow, #F0C040));
  color: var(--brand-navy, #0B1E3F);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(240, 144, 32, 0.32);
  transition: transform 120ms ease, box-shadow 140ms ease;
}
.floating-cc:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(240, 144, 32, 0.42);
}
.floating-cc__arrow {
  font-weight: 800;
  transition: transform 120ms ease;
}
.floating-cc:hover .floating-cc__arrow { transform: translateX(3px); }
@media (max-width: 560px) {
  .floating-cc {
    right: 16px;
    bottom: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

.seen-on-band { padding: 0 0 28px; }
.seen-on {
  width: 100%;
  /* Wider band so three outlets (Barbara · Professor Dave Explains · HSC)
     sit on one line at desktop widths. flex-wrap handles narrow screens. */
  max-width: 920px;
  margin: 0 auto;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.seen-on__label {
  margin: 0;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.seen-on .logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.seen-on .logos__divider {
  width: 1px;
  align-self: stretch;
  min-height: 40px;
  background: var(--rule);
}
.seen-on .outlet { display: flex; align-items: center; gap: 12px; }
.seen-on .outlet__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-navy);
  flex: none;
}
.seen-on .outlet__meta { text-align: left; line-height: 1.15; }
.seen-on .outlet__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.seen-on .outlet__role {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.seen-on .outlet__role em { font-style: italic; }
.seen-on .outlet__hsc {
  width: 108px; height: 52px;
  object-fit: contain;
  display: block;
}
.seen-on .outlet__profdave {
  /* Wider than HSC -- the Professor Dave logo is a horizontal-ish
     character + arched text composition, so it needs more lateral
     room to read at small sizes. Keeps vertical alignment with the
     46px Barbara avatar. */
  width: 132px; height: 58px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .seen-on { padding: 16px 18px; }
  .seen-on .logos { gap: 18px; }
  .seen-on .logos__divider { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 220px; }
  .hero-owl-main { width: 200px; }
  .switch-tabs { grid-template-columns: 1fr; }
  .why-grid, .mockups, .included-grid { grid-template-columns: 1fr; }
  .tiers.t3, .tiers.t2 { grid-template-columns: 1fr; max-width: 460px; }
  .hours-grid { grid-template-columns: 1fr; }
  .mfooter-grid { grid-template-columns: 1fr 1fr; }
}

/* "AI actions" tooltip term — wrapped by AiActionsTerm in
   pricing-section.jsx wherever pricing copy lands as plain text.
   Toggleable popover: opens on click (mobile-friendly), also shows
   on hover/focus for desktop. Dotted underline + ⓘ icon signal
   "interactive." The .is-open class is added by the React handler
   when the user clicks; :hover handles desktop independently. */
.ai-actions-term {
  position: relative;
  border-bottom: 1px dotted var(--ink-3, #4A5568);
  cursor: pointer;
  display: inline;
}
.ai-actions-term:focus-visible {
  outline: 2px solid var(--brand-yellow, #F0C040);
  outline-offset: 2px;
  border-radius: 2px;
}
.ai-actions-info {
  font-size: 0.82em;
  color: var(--ink-3, #4A5568);
  margin-left: 1px;
}
.ai-actions-pop {
  display: none;
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  background: var(--ink, #0B1E3F);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(11, 30, 63, 0.22);
  pointer-events: none;
  white-space: normal;
  text-align: left;
  text-decoration: none;
}
.ai-actions-pop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink, #0B1E3F);
}
.ai-actions-term:hover .ai-actions-pop,
.ai-actions-term:focus-visible .ai-actions-pop,
.ai-actions-term.is-open .ai-actions-pop {
  display: block;
}
.ai-actions-term.is-open .ai-actions-pop { pointer-events: auto; }
@media (max-width: 540px) {
  .ai-actions-pop { max-width: min(280px, 88vw); }
}
