/* ═══════════════════════════════════════════════════════════════════════
   Skoral · THEME — single source of truth for the whole app
   ───────────────────────────────────────────────────────────────────────
   Skoral landing-page system: soft paper canvas · white cards · blue
   wordmark · yellow orbital mark · clean sans everywhere, EXCEPT the Skoral
   wordmark + the student's name (handwritten Caveat).

   HOW TO RE-SKIN THE ENTIRE APP: edit the SEMANTIC TOKENS in the :root
   block below. Every screen (classic .sk views, the gamified .game app,
   the .tr2 results page, Content Studio) reads from these — change a value
   here and it propagates everywhere. Do NOT hardcode colors/fonts in
   component CSS; add a token here and reference it with var(--…).

   Loaded AFTER styles.css in index.html, so this layer wins.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── 1 · PALETTE — "Skoral wireframe" (paper blue canvas, bright trusted
        blue, yellow mascot mark, rich soft learning pastels). ───────────── */
  --c-canvas:     #f4f7fb;
  --c-white:      #ffffff;
  --c-ink:        #13223a;
  --c-ink-soft:   #33425b;
  --c-muted:      #68758b;
  --c-border:     #cdd6e5;
  --c-shadow:     rgba(19,34,58,.13);
  --c-green:      #16784a;
  --c-green-hi:   #bff3d0;
  --c-green-soft: #e7f9ed;
  --c-green-line: #9edfb9;
  --c-blue:       #3157e3;
  --c-blue-dark:  #233fb2;
  --c-blue-soft:  #e9edff;
  --c-blue-trust: #6699ff;
  --c-peach:      #fff6d9;
  --c-peach-line: #f2d88f;
  --c-red:        #ff7a66;
  --c-red-soft:   #fff0ed;
  --c-red-line:   #ffc8be;
  --c-gold:       #ffd166;
  --c-lilac:      #e8dcff;

  /* ── 2 · TYPOGRAPHY ──────────────────────────────────────────────────── */
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Bricolage Grotesque', 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif;
  --font-brand:   'Caveat', cursive;             /* ONLY the wordmark + the user's name */
  --fs-base: 16px;  --lh-base: 1.5;
  --fw-heading: 800;  --ls-heading: -.4px;

  /* ── 3 · RADIUS / SHADOW / BORDER ────────────────────────────────────── */
  --radius-card: 22px;
  --radius-btn:  999px;
  --radius-pill: 999px;
  --border-card: 1px solid var(--c-border);
  --shadow-card: 0 18px 48px rgba(49, 87, 227, .10), 0 2px 0 rgba(19, 34, 58, .04);
  --shadow-btn:  0 10px 24px rgba(49, 87, 227, .10);
  --shadow-solid:0 14px 30px rgba(49, 87, 227, .26);
  --shadow-ink:  0 14px 30px rgba(19, 34, 58, .20);

  /* ── 4 · SEMANTIC ROLES (the dials you turn to retheme) ──────────────── */
  --page-bg:     var(--c-canvas);
  --surface:     var(--c-white);   /* cards */
  --surface-2:   #eef3ff;
  --text:        var(--c-ink);
  --text-soft:   var(--c-ink-soft);
  --text-muted:  var(--c-muted);
  --accent:      var(--c-blue);
  --accent-soft: var(--c-blue-soft);
  --highlight:   var(--c-green-hi);   /* green active/underline highlight */
  --highlight-soft: var(--c-green-soft);
  --topbar-bg:   rgba(255, 255, 255, .84);
  --nav-bg:      #ffffff;
  --banner-bg:   var(--c-peach);
  --banner-line: var(--c-peach-line);
  --banner-text: #6a4a1c;

  /* ── 5 · LEGACY BRIDGE — map the OLD token names onto the new roles ──── */
  /* so the existing classic (.sk) + gamified (.game) CSS re-skins itself. */
  --paper:       var(--surface);
  --paper-2:     var(--surface-2);
  --paper-3:     #dde6f7;
  --ink:         var(--text);
  --ink-soft:    var(--text-soft);
  --muted:       var(--text-muted);
  --dim:         var(--c-border);
  --field-line:  rgba(104,117,139,.32);
  --accent-soft: var(--c-blue-soft);
  --sk-line:     var(--c-border);
  --hand:        var(--font-body);
  --head:        var(--font-heading);
  --good:        var(--c-green);   --good-soft: var(--c-green-soft);
  --bad:         var(--c-red);     --bad-soft:  var(--c-red-soft);
  --warn:        #b7791f;          --warn-soft: var(--c-peach);
}

/* ═══ APPLICATION — maps tokens onto the app's components ═════════════════ */

/* ── BASE ────────────────────────────────────────────────────────────── */
html, body { background: var(--page-bg); color: var(--text); font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-base); }

/* ── LAYOUT · app shell, topbar, side nav ────────────────────────────── */
.app, .app.game {
  max-width: none; margin: 0; height: 100vh; min-height: 0;
  background: var(--page-bg) !important; border: 0 !important; border-radius: 0;
}
/* The gamified app re-declares --head/--hand locally (Kalam/Caveat) — override
   them here so its body + headings use the central sans tokens too. Brand and
   the student name opt back into handwriting via --font-brand (see below). */
.app.game { --head: var(--font-heading); --hand: var(--font-body); }
.topbar, .game .topbar {
  background: var(--topbar-bg) !important; border-bottom: 1px solid var(--c-border) !important; border-style: solid !important;
  -webkit-backdrop-filter: saturate(1.15) blur(3px); backdrop-filter: saturate(1.15) blur(3px);
  /* lift the bar (and its profile dropdown) above the scrolling content */
  position: relative; z-index: 50;
}
.profile-menu { z-index: 200; }
.leftnav, .game .leftnav, .stage > .leftnav {
  background: var(--nav-bg) !important; border-right: 1px solid var(--c-border) !important; border-style: solid !important;
}
.content { gap: 16px; }
/* Full-bleed: drop the old 1120px readable-width cap so the app fills the
   whole screen (the cat-grid's auto-fill columns then expand to the edge). */
.content, .game .content { padding-inline: 26px !important; }
.game .cat-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }

/* ── HEADINGS + TEXT (sans) ──────────────────────────────────────────── */
.h1, .h2, .h3, .h4, .h-hand,
.game .h1, .game .h2, .game .h3,
.display, .kpi-big, .metric .mv, .game .metric .mv {
  font-family: var(--font-heading); letter-spacing: var(--ls-heading);
}
.h1, .h2, .h3, .game .h1, .game .h2 { font-weight: var(--fw-heading); }
.softink { color: var(--text-soft); }
.muted, .div-lbl { color: var(--text-muted); }

/* ── BRAND + STUDENT NAME (the only handwriting) ─────────────────────── */
.brand, .game .brand, .handname, .av, .game .av, .tr2-brand {
  font-family: var(--font-brand) !important; font-weight: 700;
}
/* Caveat has a small x-height — nudge the inline name up so it matches the
   surrounding sans heading. */
.handname { font-size: 1.12em; }
.brand, .game .brand, .tr2-brand { letter-spacing: .3px; color: var(--accent); }
.brand,
.game .brand,
.stutor .stutor-top .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.brand-dot,
.game .brand-dot,
.stutor .stutor-top .brand-dot,
.cb-head .brand-dot {
  position: relative !important;
  display: inline-flex !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--c-ink) !important;
  background:
    radial-gradient(circle at 36% 34%, #fff7c7 0 16%, transparent 17%),
    var(--c-gold) !important;
  box-shadow: 2px 2px 0 var(--c-ink) !important;
  margin: 0 !important;
  vertical-align: middle;
  overflow: visible;
}
.brand-dot::before,
.game .brand-dot::before,
.stutor .stutor-top .brand-dot::before,
.cb-head .brand-dot::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 8px;
  top: 9px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 9px -2px 0 var(--c-blue), 12px 10px 0 #73b6ff;
}
.brand-dot::after,
.game .brand-dot::after,
.stutor .stutor-top .brand-dot::after,
.cb-head .brand-dot::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 5px;
  border-bottom: 2px solid var(--c-ink);
  border-radius: 0 0 16px 16px;
}
.cb-head .brand-dot {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  box-shadow: 1px 1px 0 var(--c-ink) !important;
}
.cb-head .brand-dot::before { transform: scale(.62); transform-origin: left top; left: 5px; top: 5px; }
.cb-head .brand-dot::after { left: 5px; right: 5px; bottom: 4px; height: 4px; }

/* ── SURFACES · cards ────────────────────────────────────────────────── */
.card, .game .card, .auth-card {
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card-dim, .game .card-dim { background: var(--surface-2); }

/* Kill the hand-drawn sketch wobble everywhere → crisp 1px borders.
   (Both systems draw borders via a filtered ::after; we just drop the
   filter + recolor. Box-shadows above provide the depth.) */
.sk::after { filter: none !important; border-width: 1px !important; border-color: var(--c-border) !important; }
.game .sketchy::after,
.game .card::after, .game .cat-tile::after, .game .citem::after, .game .ctype::after,
.game .cat-ico::after, .game .feed-ico::after, .game .res-ico::after, .game .lb-row::after, .game .rule-card::after,
.game .store-card::after, .game .playbar::after, .game .playbtn::after,
.game .badge::after, .game .av::after, .game .tag::after, .game .sp::after, .game .btn::after,
.game .seg::after, .game .ph::after, .game .rollup .node::after {
  filter: none !important; border-width: 1px !important;
}
.brand-dot, .div-line { filter: none !important; }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn, .game .btn {
  font-family: var(--font-body); border-radius: var(--radius-btn);
  background: var(--surface); box-shadow: var(--shadow-btn);
}
.btn.sk::after, .game .btn::after { border-color: var(--c-border) !important; }
.btn-solid, .btn.primary, .game .btn-solid { background: var(--accent) !important; color: #fff !important; box-shadow: var(--shadow-solid); }
.btn-ink, .btn.solid, .game .btn-ink { background: var(--text) !important; color: #fff !important; box-shadow: var(--shadow-ink); }
.btn-good, .game .btn-done { background: var(--c-green) !important; color: #fff !important; }
.btn:active, .game .btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 transparent; }

/* ── PILLS · tags · avatar · streak ──────────────────────────────────── */
.tag, .game .tag { background: var(--surface); border-radius: var(--radius-pill); }
.streak, .game .streak { background: var(--c-green-soft); color: #1c6b3c; }
.av, .game .av { background: var(--accent); color: #fff; }
.pill { background: var(--surface-2); }

/* ── PROGRESS BARS (on lavender) ─────────────────────────────────────── */
.bar, .game .bar { background: rgba(22,29,31,.10); border: 1px solid var(--c-border); }

/* ── BANNERS · AI note, nudges, info strips ──────────────────────────── */
.ai-note, .content > .ai-note {
  background: var(--banner-bg); color: var(--banner-text);
  border: 1px solid var(--banner-line) !important; border-radius: var(--radius-card);
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.site-foot, .foot, footer, .footer { color: var(--text-soft); }

/* ── FORM CONTROLS ───────────────────────────────────────────────────── */
input.inp, select.inp { border-radius: var(--radius-btn); border-color: var(--field-line) !important; background: var(--surface); }
textarea.inp {
  min-height: 88px;
  border-radius: 12px !important;
  border-color: var(--field-line) !important;
  background: var(--surface);
  resize: vertical;
  overflow: auto;
}
input.inp:focus, select.inp:focus, textarea.inp:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── SUBJECT TILES · pastel mosaic (Modern Sketch) ───────────────────────
   The tile's pastel background + accent are set inline by game.js
   (subjectTint(): first character of the name → a fixed pastel, so the
   same letter always gets the same colour). Here we just make the icon
   chip white, tint the progress fill, and keep a crisp hairline border. */
.game .cat-tile {
  background: var(--tile-bg, var(--surface));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.game .cat-tile::after { border-color: var(--c-border) !important; }
.game .cat-tile .cat-ico {
  background: #fff; color: var(--tile-accent, var(--accent));
  border-radius: 10px; border: 1px solid var(--c-border);
}
.game .cat-tile .cat-ico::after { display: none; }   /* white chip, no sketch frame */
.game .cat-tile .bar { background: rgba(22,29,31,.10); }
.game .cat-tile .bar > i { background: var(--tile-accent, var(--accent)); }
.game .cat-tile .h3 { color: var(--c-ink); }

/* ── GREEN HIGHLIGHT (active states + heading underline) ─────────────────
   The bright mint from the mock, used sparingly for "you are here". */
.game .navitem.active { background: var(--highlight-soft); color: var(--c-ink); }
.game .navitem.active .ni-ico { color: #0e7a47; }
.game .tag.solid, .seg > span.on, .game .seg > span.on { background: var(--c-ink); color: #fff; }
.streak, .game .streak { background: var(--highlight-soft); color: #0e6b3c; }
/* a hand-marker style underline you can wrap around a word: <span class="hl-mark">library</span> */
.hl-mark { background: linear-gradient(180deg, transparent 62%, var(--highlight) 62%); padding: 0 2px; }

/* ── PASTEL SECTIONS (Home) ──────────────────────────────────────────────
   The Stitch pages feel alive because sections carry soft colour. Give the
   Home "Continue" card a gentle tint and split the stat strip into four
   pastel cells (Level / Sparks / Streak / Rank) instead of one flat card. */
.game .grad-accent { background: linear-gradient(135deg, #eef5ff, #f5f0ff) !important; }

/* stat strip → individual pastel cells. Scoped to .statstrip-pastel (the Home
   strip only) so other stat rows — My Learning Performance, Leaderboard — keep
   their clean neutral look. */
.game .card-dim:has(.statstrip-pastel) { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.game .card-dim:has(.statstrip-pastel)::after { display: none !important; }
.game .statstrip-pastel { display: flex; flex-wrap: wrap; gap: 14px; grid-template-columns: none; }
.game .statstrip-pastel > div { flex: 1 1 180px; border-right: 0 !important; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.game .statstrip-pastel > div:nth-child(1) { background: #fff3e0; }   /* amber — Sparks */
.game .statstrip-pastel > div:nth-child(2) { background: #e8f5e9; }   /* green — Streak */
.game .statstrip-pastel > div:nth-child(3) { background: #e3f2fd; }   /* blue  — To do  */
.game .statstrip-pastel .mv { color: var(--c-ink); }

/* ── CHAPTER PAGE · pastel hero + tinted accents ─────────────────────────
   .chap is a display:contents wrapper carrying --tile-bg/--tile-accent
   (subjectTint of the chapter name), inherited by everything below. */
.game .chap-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--tile-bg, var(--surface)); border: 1px solid var(--c-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 20px 22px; margin-bottom: 4px;
}
.game .chap .cat-ico { background: #fff; color: var(--tile-accent, var(--accent)); border: 1px solid var(--c-border); border-radius: 12px; }
.game .chap .cat-ico::after { display: none; }
/* vary the section tints so the page isn't one flat colour */
.game .chap .grad-accent { background: #eaf7ef !important; }                 /* "What you'll learn" → green */
.game .chap .card-dim { background: #fbf2e6 !important; }                    /* "Builds on" → warm amber  */
.game .chap .col > .card:not(.card-dim) { background: #eef3ff !important; }  /* "Completion rolls up" → blue */
/* content-row icons coloured by item TYPE (lesson / tutor / practice / test) */
.game .chap .ctype { color: #fff; }
.game .chap .ctype::after { display: none; }
.game .chap .citem[data-type="lesson"]   .ctype { background: #1e88e5; }
.game .chap .citem[data-type="tutor"]    .ctype { background: #7c4ddb; }
.game .chap .citem[data-type="practice"] .ctype { background: #fb8c00; }
.game .chap .citem[data-type="test"]     .ctype { background: #43a047; }
.game .chap .citem[data-type="feedback"] .ctype { background: #00acc1; }
/* kill the ugly beige "art" placeholder thumbnails */
.game .chap .cthumb { display: none !important; }
.game .chap .bar > i { background: var(--tile-accent, var(--accent)); }
.game .chap .citem.cur { --skc: var(--tile-accent, var(--accent)); }

/* ── SIDEBAR · Stitch touches (grade card + Ask AI + Support) ─────────────
   The leftnav is a full-height flex column; the grade card sits on top, a
   spacer pushes the Ask-AI button + Support link to the bottom. */
.game .leftnav { width: 212px; padding: 16px 14px; gap: 4px; }
.game .nav-grade-name { font-size: 1.3em; color: var(--text); }
.game .nav-grade {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 11px 12px; border-radius: 12px; background: var(--c-blue-soft);
  border: 1px solid var(--c-border);
}
.game .nav-grade-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--c-blue);
  border: 1px solid var(--c-border);
}
.game .nav-grade .handname { font-size: 1.1em; color: var(--text-soft); }
.game .nav-askai {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 6px 2px; padding: 10px 14px; border-radius: 11px;
  background: var(--c-blue); color: #fff; font-weight: 700; font-size: 14px;
  border: 1px solid var(--c-border); box-shadow: var(--shadow-btn); text-decoration: none;
}
.game .nav-minor { opacity: .8; }
.game .navitem.active { background: var(--highlight-soft); color: var(--c-ink); font-weight: 700; }
.game .navitem.active .ni-ico { color: #0e7a47; }

/* ── QUIZ BUILDER · chapter accordion (inline topics + whiteboard launch) ──
   Click a chapter to expand its subtopics in place; each has a checkbox (for
   the test) and a "Whiteboard" button that opens the tutor on that topic.
   Works in both the classic (.app.sk) and gamified (.app.game) shells. */
.qb-chap { border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.qb-chap-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.qb-chap.open .qb-chap-head { background: var(--c-blue-soft); }
.qb-chev { opacity: .45; transition: transform .15s; }
.qb-chap.open .qb-chev { transform: rotate(180deg); }
.qb-topics { border-top: 1px solid var(--c-border); padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.qb-topic { display: flex; align-items: center; gap: 10px; padding: 5px 7px; border-radius: 8px; }
.qb-topic:hover { background: var(--surface-2); }
.qb-topic .qb-wb { flex-shrink: 0; }

/* ═══ PUBLIC WEBSITE · wireframe-to-production refresh ═══════════════════ */
.landing-wireframe-shell {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #f4f7fb;
}
.landing-wireframe-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f4f7fb;
}

/* Sign-in / start-learning page — ported from wireframe 13, scoped so it does
   not leak its button/nav/card rules into the logged-in app shell. */
.auth-wire {
  --aw-ink: #13223a;
  --aw-ink-2: #33425b;
  --aw-muted: #68758b;
  --aw-paper: #f4f7fb;
  --aw-white: #fff;
  --aw-line: #cdd6e5;
  --aw-blue: #3157e3;
  --aw-blue-dark: #233fb2;
  --aw-blue-soft: #e9edff;
  --aw-mint: #bff3d0;
  --aw-mint-dark: #16784a;
  --aw-sun: #ffd166;
  --aw-coral: #ff7a66;
  --aw-lilac: #e8dcff;
  --aw-shadow: 0 18px 45px rgba(31,49,82,.10);
  --aw-shadow-sm: 0 8px 22px rgba(31,49,82,.08);
  --aw-display: var(--font-heading);
  --aw-body: var(--font-body);
  --aw-brand: var(--font-brand);
  min-height: 100vh;
  overflow-x: clip;
  background: var(--aw-paper);
  color: var(--aw-ink);
  font: 15px/1.6 var(--aw-body);
}
.auth-wire *,
.auth-wire *::before,
.auth-wire *::after { box-sizing: border-box; }
.auth-wire button,
.auth-wire input,
.auth-wire select,
.auth-wire a { font: inherit; }
.auth-wire button { color: inherit; }
.auth-wire a { color: inherit; text-decoration: none; }
.auth-wire h1,
.auth-wire h2,
.auth-wire h3,
.auth-wire p { margin-top: 0; }
.auth-wire h1,
.auth-wire h2,
.auth-wire h3 {
  font-family: var(--aw-display);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.auth-wire h1 { font-size: clamp(46px, 6.5vw, 78px); }
.auth-wire h2 { font-size: 34px; }
.auth-wire h3 { font-size: 22px; }
.auth-wire .shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.auth-wire .wire-note {
  padding: 7px 20px;
  background: var(--aw-ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
}
.auth-wire .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--aw-line);
  border-radius: 999px;
  background: #fff;
  color: var(--aw-ink-2);
  font-size: 11px;
  font-weight: 800;
}
.auth-wire .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aw-mint-dark); }
.auth-wire .nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(205,214,229,.86);
  background: rgba(244,247,251,.93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.auth-wire .nav-in { height: 74px; display: flex; align-items: center; gap: 28px; }
.auth-wire .brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.auth-wire .brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  border: 1px solid var(--aw-ink);
  border-radius: 50%;
  background: var(--aw-sun);
  box-shadow: 2px 2px 0 var(--aw-ink);
}
.auth-wire .brand-mark::before,
.auth-wire .brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--aw-blue);
}
.auth-wire .brand-mark::before { width: 8px; height: 8px; left: 6px; top: 7px; }
.auth-wire .brand-mark::after { width: 5px; height: 5px; right: 6px; bottom: 6px; }
.auth-wire .wordmark { font: 700 31px/1 var(--aw-brand); color: var(--aw-blue-dark); }
.auth-wire .nav-links { display: flex; gap: 24px; margin-left: auto; color: var(--aw-ink-2); font-size: 13px; font-weight: 700; }
.auth-wire .nav-links a:hover { color: var(--aw-blue); }
.auth-wire .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--aw-ink);
  border-radius: 12px;
  background: #fff;
  color: var(--aw-ink);
  box-shadow: 3px 3px 0 var(--aw-ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-wire .btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--aw-ink); }
.auth-wire .btn.primary { background: var(--aw-blue); color: #fff; }
.auth-wire .btn.quiet { border-color: var(--aw-line); box-shadow: none; color: var(--aw-ink-2); }
.auth-wire .btn.quiet:hover { border-color: var(--aw-ink); box-shadow: none; transform: none; }
.auth-wire .auth {
  position: relative;
  padding: 58px 0 74px;
  isolation: isolate;
}
.auth-wire .auth::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18vw;
  top: 0;
  width: 62vw;
  height: 88%;
  background: radial-gradient(circle at 40% 35%, #d9e8ff, #edf3ff 48%, transparent 72%);
}
.auth-wire .auth-grid {
  display: grid;
  grid-template-columns: .96fr minmax(410px,.72fr);
  grid-template-areas: "story card" "support card";
  gap: 30px 52px;
  align-items: center;
}
.auth-wire .story { grid-area: story; }
.auth-wire .story-support { grid-area: support; }
.auth-wire .auth-card { grid-area: card; }
.auth-wire .story h1 { max-width: 680px; margin: 18px 0 20px; }
.auth-wire .story h1 em { font: 700 1.05em/1 var(--aw-brand); color: var(--aw-blue); white-space: nowrap; }
.auth-wire .story > p { max-width: 610px; margin-bottom: 26px; color: var(--aw-ink-2); font-size: 17px; }
.auth-wire .story-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.auth-wire .path-card {
  position: relative;
  max-width: 650px;
  overflow: hidden;
  border: 1px solid var(--aw-ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 8px 9px 0 var(--aw-ink);
}
.auth-wire .path-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--aw-line);
  background: #f9fbfe;
}
.auth-wire .path-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--aw-line); }
.auth-wire .path-top i:nth-child(1) { background: var(--aw-coral); }
.auth-wire .path-top i:nth-child(2) { background: var(--aw-sun); }
.auth-wire .path-top i:nth-child(3) { background: var(--aw-mint-dark); }
.auth-wire .path-body { display: grid; grid-template-columns: 1fr 185px; gap: 20px; padding: 22px; }
.auth-wire .next-lesson { padding: 18px; border: 1px solid var(--aw-line); border-radius: 16px; background: var(--aw-blue-soft); }
.auth-wire .next-lesson small,
.auth-wire .mini-plan small {
  display: block;
  margin-bottom: 8px;
  color: var(--aw-blue-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-wire .next-lesson h3 { margin-bottom: 9px; }
.auth-wire .next-lesson p { margin-bottom: 16px; color: var(--aw-ink-2); font-size: 12px; }
.auth-wire .progress { height: 9px; border: 1px solid var(--aw-ink); border-radius: 999px; background: #fff; overflow: hidden; }
.auth-wire .progress i { display: block; width: 68%; height: 100%; background: linear-gradient(90deg, var(--aw-blue), var(--aw-coral)); }
.auth-wire .mini-plan { display: grid; gap: 10px; }
.auth-wire .plan-item { padding: 12px; border: 1px solid var(--aw-line); border-radius: 13px; background: #fff; }
.auth-wire .plan-item b { display: block; font: 800 14px var(--aw-display); }
.auth-wire .plan-item span { color: var(--aw-muted); font-size: 10px; }
.auth-wire .trust-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; max-width: 650px; margin-top: 18px; }
.auth-wire .trust { padding: 14px; border: 1px solid var(--aw-line); border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: var(--aw-shadow-sm); }
.auth-wire .trust b { display: block; font: 800 15px var(--aw-display); }
.auth-wire .trust span { color: var(--aw-muted); font-size: 10px; }
.auth-wire .auth-card {
  position: relative;
  border: 1px solid var(--aw-ink) !important;
  border-radius: 24px;
  background: #fff;
  box-shadow: 9px 10px 0 var(--aw-ink) !important;
  overflow: hidden;
  max-width: none;
  display: block;
}
.auth-wire .auth-card::before {
  content: "";
  position: absolute;
  right: -72px;
  top: -78px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--aw-lilac);
  opacity: .75;
}
.auth-wire .auth-inner { position: relative; z-index: 1; padding: 24px; }
.auth-wire .mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 1px solid var(--aw-line); border-radius: 14px; background: var(--aw-paper); margin-bottom: 20px; }
.auth-wire .mode-tab { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--aw-muted); font-weight: 900; cursor: pointer; }
.auth-wire .mode-tab.on { background: var(--aw-ink); color: #fff; box-shadow: 2px 2px 0 rgba(19,34,58,.12); }
.auth-wire .auth-head { margin-bottom: 18px; }
.auth-wire .auth-head h2 { margin-bottom: 7px; }
.auth-wire .auth-head p { margin: 0; color: var(--aw-ink-2); font-size: 13px; }
.auth-wire .role-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0; }
.auth-wire .role { min-height: 70px; padding: 10px; border: 1px solid var(--aw-line); border-radius: 13px; background: #fff; text-align: left; cursor: pointer; }
.auth-wire .role b { display: block; font: 800 13px var(--aw-display); }
.auth-wire .role span { display: block; color: var(--aw-muted); font-size: 9px; }
.auth-wire .role.on { border-color: var(--aw-ink); background: var(--aw-sun); box-shadow: 2px 2px 0 var(--aw-ink); }
.auth-wire .form { display: grid; gap: 12px; }
.auth-wire .field { display: grid; gap: 6px; }
.auth-wire .field label,
.auth-wire .label { color: var(--aw-ink-2); font-size: 11px; font-weight: 900; }
.auth-wire .field input,
.auth-wire .field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--aw-line);
  border-radius: 12px;
  background: #fff;
  padding: 0 13px;
  color: var(--aw-ink);
  outline: 0;
}
.auth-wire .field input:focus,
.auth-wire .field select:focus { border-color: var(--aw-ink); box-shadow: 0 0 0 3px var(--aw-blue-soft); }
.auth-wire .field-help { color: var(--aw-muted); font-size: 10px; }
.auth-wire .password-wrap { position: relative; }
.auth-wire .password-wrap input { padding-right: 64px; }
.auth-wire .show-pass { position: absolute; right: 7px; top: 7px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--aw-blue-soft); color: var(--aw-blue-dark); font-size: 10px; font-weight: 900; cursor: pointer; }
.auth-wire .row,
.auth-wire .start-only-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-wire .form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--aw-muted); font-size: 11px; }
.auth-wire .remember { display: flex; align-items: center; gap: 7px; }
.auth-wire .remember input { width: 16px; height: 16px; }
.auth-wire .link { border: 0; background: transparent; color: var(--aw-blue-dark); font-weight: 900; cursor: pointer; }
.auth-wire .consent-note { display: flex; gap: 9px; align-items: flex-start; color: var(--aw-ink-2); font-size: 10px; line-height: 1.45; cursor: pointer; }
.auth-wire .consent-note input { flex: 0 0 auto; margin-top: 2px; }
.auth-wire .auth-submit { width: 100%; margin-top: 4px; }
.auth-wire .divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 11px; margin: 18px 0; color: var(--aw-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.auth-wire .divider::before,
.auth-wire .divider::after { content: ""; border-top: 1px solid var(--aw-line); }
.auth-wire .sso-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.auth-wire .sso { min-height: 42px; border: 1px solid var(--aw-line); border-radius: 11px; background: #fff; font-weight: 900; cursor: pointer; }
.auth-wire .sso:hover { border-color: var(--aw-ink); }
.auth-wire .safe-note { display: flex; gap: 9px; margin-top: 18px; padding: 12px; border-radius: 13px; background: #f8fbff; color: var(--aw-ink-2); font-size: 10px; }
.auth-wire .safe-note i { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid var(--aw-ink); border-radius: 8px; background: var(--aw-mint); font-style: normal; font-weight: 900; }
.auth-wire .track-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.auth-wire .track-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--aw-line);
  border-radius: 11px;
  background: #fff;
  color: var(--aw-ink-2);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.auth-wire .track-tab.on { border-color: var(--aw-ink); background: var(--aw-sun); box-shadow: 2px 2px 0 var(--aw-ink); color: var(--aw-ink); }
.auth-wire .track-tab .ic { width: 15px; height: 15px; }
.auth-wire .signup-path-card { padding: 12px; border: 1px solid var(--aw-line); border-radius: 14px; background: var(--aw-blue-soft); }
.auth-wire .handoff { padding: 36px 0 70px; }
.auth-wire .handoff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.auth-wire .handoff-card { min-height: 190px; padding: 20px; border: 1px solid var(--aw-line); border-radius: 18px; background: #fff; box-shadow: var(--aw-shadow-sm); }
.auth-wire .handoff-card:nth-child(2) { background: #fff8e4; }
.auth-wire .handoff-card:nth-child(3) { background: #eef8ff; }
.auth-wire .handoff-card span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 30px; border: 1px solid var(--aw-ink); border-radius: 12px; background: var(--aw-mint); box-shadow: 2px 2px 0 var(--aw-ink); font-weight: 900; }
.auth-wire .handoff-card h3 { font-size: 20px; }
.auth-wire .handoff-card p { margin: 0; color: var(--aw-ink-2); font-size: 12px; }
.auth-wire .footer { padding: 34px 0; border-top: 1px solid var(--aw-line); background: #fff; }
.auth-wire .footer-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--aw-muted); font-size: 11px; }
.auth-wire button:focus-visible,
.auth-wire a:focus-visible,
.auth-wire input:focus-visible,
.auth-wire select:focus-visible { outline: 3px solid var(--aw-coral); outline-offset: 3px; }

@media (max-width: 980px) {
  .auth-wire .nav-links { display: none; }
  .auth-wire .auth-grid { grid-template-columns: 1fr; grid-template-areas: "story" "card" "support"; }
  .auth-wire .auth-card { max-width: 640px; margin-inline: auto; }
  .auth-wire .path-card { max-width: none; }
  .auth-wire .trust-row,
  .auth-wire .handoff-grid { grid-template-columns: 1fr 1fr; }
  .auth-wire .handoff-card:last-child { grid-column: 1 / -1; }
  .auth-wire .auth::before { right: -45vw; width: 120vw; }
}
@media (max-width: 700px) {
  .auth-wire .shell { width: min(100% - 28px, 1180px); }
  .auth-wire .wire-note { font-size: 9px; }
  .auth-wire .nav-in { height: 66px; }
  .auth-wire .auth { padding: 42px 0 50px; }
  .auth-wire .story h1 { font-size: clamp(41px, 12vw, 52px); }
  .auth-wire .story > p { font-size: 16px; }
  .auth-wire .story-actions .btn { width: 100%; }
  .auth-wire .path-body { grid-template-columns: 1fr; padding: 16px; }
  .auth-wire .trust-row,
  .auth-wire .handoff-grid,
  .auth-wire .role-picker,
  .auth-wire .row,
  .auth-wire .start-only-fields,
  .auth-wire .sso-grid,
  .auth-wire .track-tabs { grid-template-columns: 1fr; }
  .auth-wire .handoff-card:last-child { grid-column: auto; }
  .auth-wire .auth-inner { padding: 18px; }
  .auth-wire .role { min-height: auto; }
  .auth-wire .form-foot { align-items: flex-start; flex-direction: column; }
  .auth-wire .footer-in { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 440px) {
  .auth-wire .brand-mark { width: 29px; height: 29px; }
  .auth-wire .wordmark { font-size: 29px; }
  .auth-wire .path-card,
  .auth-wire .auth-card { border-radius: 18px; box-shadow: 6px 7px 0 var(--aw-ink) !important; }
  .auth-wire .mode-tabs { grid-template-columns: 1fr; }
  .auth-wire .safe-note { font-size: 9px; }
}
@media (hover: none) {
  .auth-wire .btn:hover { transform: none; box-shadow: 3px 3px 0 var(--aw-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-wire *,
  .auth-wire *::before,
  .auth-wire *::after { transition-duration: .01ms !important; }
}

.site {
  width: min(100% - 28px, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 42px;
}
.skoral-brand { flex-shrink: 0; color: var(--c-blue-dark); }
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  flex-shrink: 0;
  color: var(--c-blue-dark);
  text-decoration: none;
}
.public-brand .brand-mark {
  position: relative;
  width: var(--public-brand-size, 31px);
  height: var(--public-brand-size, 31px);
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.public-brand .brand-mark::before,
.public-brand .brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--c-blue);
}
.public-brand .brand-mark::before {
  width: 26%;
  height: 26%;
  left: 19%;
  top: 23%;
}
.public-brand .brand-mark::after {
  width: 16%;
  height: 16%;
  right: 19%;
  bottom: 19%;
}
.public-brand .wordmark {
  font: 700 var(--public-brand-size, 31px)/1 var(--font-brand);
  color: var(--c-blue-dark);
  letter-spacing: .2px;
}
.tr2-top .public-brand.tr2-brand-logo {
  flex: 0 0 auto;
  gap: 7px;
  text-decoration: none;
}
.tr2-top .public-brand.tr2-brand-logo .wordmark {
  color: var(--tr-blue, var(--c-blue-dark));
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  margin: 0 -4px;
  padding: 16px 4px;
  background: rgba(244,247,251,.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.site-links {
  align-items: center;
  gap: 20px;
  margin-left: 10px;
}
.site-links a,
.text-link {
  color: var(--c-ink-soft);
  font-weight: 800;
  font-size: 13px;
}
.site-links a:hover,
.text-link:hover { color: var(--c-blue); }
.btn.primary,
.btn-solid,
.btn.btn-solid,
.btn.solid {
  background: var(--c-blue) !important;
  color: #fff !important;
  border-color: var(--c-blue) !important;
}
.btn.ghost { background: #fff; color: var(--c-ink); }
.btn.big { min-height: 48px; padding: 12px 24px; font-weight: 850; }

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: 690px;
  padding: 34px 0 54px;
}
.hero-copy { gap: 18px; }
.pill {
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-blue-dark);
  box-shadow: 0 8px 24px rgba(49,87,227,.08);
  font-weight: 850;
}
.display {
  font-size: clamp(58px, 8vw, 108px);
  line-height: .88;
  letter-spacing: -.07em;
}
.u-accent {
  color: var(--c-blue);
  background: linear-gradient(180deg, transparent 62%, rgba(255,209,102,.78) 0);
}
.lede {
  max-width: 46ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions,
.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-proof {
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 13px;
}
.hero-proof span {
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
}
.hero-proof b { color: var(--c-ink); }

.hero-board {
  min-height: 540px;
  padding: 18px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(49,87,227,.18);
  overflow: hidden;
}
.hero-board::before {
  content: "";
  position: absolute;
  inset: -70px auto auto -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--c-lilac);
  opacity: .45;
}
.demo-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.eyebrow,
.game .eyebrow {
  color: var(--c-blue-dark);
  font-weight: 900;
  letter-spacing: .12em;
}
.demo-top h3 {
  margin: 3px 0 0;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
}
.lesson-switcher {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 6px;
  margin: 18px 0;
  background: var(--c-blue-soft);
  border: 1px solid var(--c-border);
  border-radius: 999px;
}
.lesson-chip {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: transparent;
  color: var(--c-ink-soft);
  font: 850 13px/1 var(--font-body);
  cursor: pointer;
}
.lesson-chip.on {
  background: var(--c-blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(49,87,227,.24);
}
.demo-canvas {
  position: relative;
  min-height: 380px;
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(rgba(205,214,229,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205,214,229,.35) 1px, transparent 1px),
    #fbfdff;
  background-size: 28px 28px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.demo-canvas svg {
  display: block;
  width: 100%;
  height: 260px;
  overflow: visible;
}
.demo-canvas p {
  margin: 10px 0 0;
  color: var(--c-ink-soft);
  font-size: 14px;
}
.demo-hint {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 9px 12px 9px 30px;
  border-radius: 999px;
  background: rgba(255,122,102,.12);
  color: #9f2f24;
  border: 1px solid rgba(255,122,102,.34);
  font-size: 12px;
  font-weight: 900;
  animation: hintFloat 1.8s ease-in-out infinite;
}
.demo-hint::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-red);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(255,122,102,.44);
  animation: ping 1.4s infinite;
}
@keyframes hintFloat { 50% { transform: translateY(-4px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(255,122,102,0); } }

.demo-line,
.axis,
.grid {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.grid { stroke: rgba(104,117,139,.24); stroke-width: 1; }
.heavy { stroke-width: 4; }
.arc { fill: none; stroke: var(--c-blue); stroke-width: 2; stroke-dasharray: 5 8; }
.ball { fill: var(--c-gold); stroke: var(--c-ink); stroke-width: 2; }
.force { stroke: var(--c-blue); stroke-width: 4; marker-end: url(#arrow); }
.gravity { stroke: var(--c-red); stroke-width: 4; }
.physics-demo text,
.math-demo text,
.biology-demo text { fill: var(--c-ink-soft); font: 800 14px var(--font-body); }
.pendulum { transform-origin: 210px 48px; animation: pendulumSwing 3s ease-in-out infinite alternate; }
@keyframes pendulumSwing { from { transform: rotate(-11deg); } to { transform: rotate(13deg); } }

.math-demo .poly {
  fill: none;
  stroke: var(--c-blue);
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 10px rgba(49,87,227,.22));
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(var(--stretch));
  transition: transform .16s ease;
}
.demo-slider {
  width: min(100%, 360px);
  accent-color: var(--c-blue);
}
.cell-wall { fill: #e7f9ed; stroke: var(--c-green); stroke-width: 4; }
.cell-fill { fill: rgba(191,243,208,.55); stroke: rgba(22,120,74,.28); stroke-width: 2; }
.nucleus { fill: var(--c-lilac); stroke: #7a54d4; stroke-width: 3; }
.mito { fill: #ffdca0; stroke: #b7791f; stroke-width: 3; }
.er { fill: none; stroke: var(--c-blue); stroke-width: 7; stroke-linecap: round; }
.vacuole { fill: #cdeaff; stroke: #287bb8; stroke-width: 3; }
.organelle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .18s ease, filter .18s ease;
}
.organelle:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 9px 12px rgba(19,34,58,.18));
}

.site-section {
  padding: 64px 0;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}
.section-head h2,
.safety-panel h2 {
  margin: 4px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 58px);
  line-height: .96;
  letter-spacing: -.04em;
}
.section-head p,
.safety-panel p {
  margin: 0 auto;
  color: var(--c-ink-soft);
  font-size: 17px;
  line-height: 1.55;
}
.feats,
.curriculum-grid,
.audience-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}
.feats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.feat,
.course-path-card,
.audience-card,
.faq-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}
.feat-ico {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--c-blue-soft);
  color: var(--c-blue);
}
.loop-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  padding: 24px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}
.loop-step {
  padding: 14px;
  border-radius: 18px;
  background: var(--c-blue-soft);
  border: 1px solid var(--c-border);
}
.loop-step.on { background: var(--c-ink); color: #fff; }
.loop-step b { display: block; font-family: var(--font-heading); font-size: 22px; }
.loop-step span { display: block; margin-top: 4px; font-size: 12px; opacity: .82; }
.loop-visual { grid-column: 1 / -1; }
.loop-board {
  min-height: 230px;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 26px;
  background:
    linear-gradient(rgba(205,214,229,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205,214,229,.35) 1px, transparent 1px),
    #fff;
  background-size: 30px 30px;
  position: relative;
}
.curriculum-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.course-path-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.path-ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gold);
  border: 1px solid var(--c-ink);
  font-family: var(--font-heading);
  font-size: 26px;
}
.path-meta {
  margin-top: 18px;
  color: var(--c-blue-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.course-path-card b {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 30px;
}
.course-path-card p {
  color: var(--c-ink-soft);
  line-height: 1.45;
}
.course-path-card em {
  margin-top: auto;
  color: var(--c-blue);
  font-style: normal;
  font-weight: 900;
}
.curriculum-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px dashed var(--c-border);
  border-radius: 18px;
  color: var(--c-ink-soft);
}
.audience-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.audience-card span {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--c-blue-dark);
}
.audience-card p { color: var(--c-ink-soft); }
.safety-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
  background: var(--c-blue-trust);
  color: var(--c-ink);
  box-shadow: 0 28px 68px rgba(102,153,255,.26);
}
.safety-panel .eyebrow { color: #173a8a; }
.safety-panel p { color: #243c63; }
.safety-cards {
  display: grid;
  gap: 12px;
}
.safety-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.5);
}
.safety-card b { display: block; font-family: var(--font-heading); font-size: 26px; }
.safety-card span { color: #243c63; }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-card summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 24px;
}
.faq-card p { color: var(--c-ink-soft); line-height: 1.55; }
.site-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 30px 0;
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.site-foot {
  border-top: 1px solid var(--c-border);
  padding: 24px 0 0;
}
.site-foot .brand { color: var(--c-blue-dark); }
.foot-links { row-gap: 10px; }

/* Auth / policy pages */
.auth-wrap {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,209,102,.34), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(232,220,255,.64), transparent 25%),
    var(--c-canvas);
}
.auth-card {
  max-width: 1060px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--c-border) !important;
  border-radius: 30px;
  box-shadow: 0 32px 76px rgba(19,34,58,.16);
}
.auth-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,209,102,.42), transparent 24%),
    linear-gradient(145deg, #fff, var(--c-blue-soft));
  border-right: 1px solid var(--c-border);
}
.auth-hero::after {
  content: "learn → practice → diagnose";
  position: absolute;
  right: -20px;
  bottom: 28px;
  transform: rotate(-7deg);
  font-family: var(--font-heading);
  font-size: 42px;
  color: rgba(35,63,178,.11);
}
.admin-auth-wrap {
  background:
    radial-gradient(circle at 9% 16%, rgba(178,231,197,.42), transparent 27%),
    radial-gradient(circle at 84% 12%, rgba(232,220,255,.56), transparent 25%),
    linear-gradient(135deg, #fffaf0 0%, #f7fbff 48%, #fff 100%);
}
.admin-auth-card {
  max-width: 1080px;
  min-height: 610px;
  overflow: hidden;
}
.admin-auth-hero {
  gap: 22px;
  padding: 40px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255,209,102,.5), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(89,125,255,.13), transparent 28%),
    linear-gradient(150deg, #fff, #eef8ff 55%, #f5fff7);
}
.admin-auth-hero::after {
  content: "source → review → publish";
  right: -30px;
  bottom: 18px;
  color: rgba(19,34,58,.09);
}
.admin-login-brand {
  align-self: flex-start;
}
.admin-auth-copy {
  display: grid;
  gap: 10px;
  max-width: 470px;
}
.admin-auth-copy .eyebrow {
  color: var(--c-blue-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-auth-copy .h2 {
  max-width: 460px;
  line-height: .98;
}
.admin-auth-points {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.admin-auth-point {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(19,34,58,.07);
}
.admin-auth-point > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  grid-row: span 2;
  border: 1px solid var(--c-ink);
  border-radius: 13px;
  background: var(--c-peach);
  color: var(--c-blue-dark);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.admin-auth-point:nth-child(2) > span { background: var(--c-green-soft); }
.admin-auth-point:nth-child(3) > span { background: var(--c-lilac); }
.admin-auth-point b {
  color: var(--c-ink);
  font-family: var(--font-heading);
  font-size: 15px;
}
.admin-auth-point small {
  color: var(--c-ink-soft);
  font-size: 11px;
  line-height: 1.45;
}
.admin-auth-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(19,34,58,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  color: var(--c-ink-soft);
  font-size: 11px;
  font-weight: 750;
}
.admin-auth-note .ic {
  flex: 0 0 auto;
  color: var(--c-blue-dark);
}
.admin-auth-form {
  justify-content: center;
  gap: 14px;
}
.admin-auth-form .h3 {
  margin-bottom: 4px;
}
.auth-point {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  color: var(--c-ink-soft);
  font-size: 14px;
  font-weight: 750;
}
.auth-form { background: #fff; }
.role-tab {
  border-color: var(--c-border);
  border-radius: 16px;
  background: var(--c-canvas);
  font-family: var(--font-body);
  font-weight: 850;
}
.role-tab.on {
  background: var(--c-blue);
  color: #fff;
  border-color: var(--c-blue);
}
.signup-path-card {
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: var(--c-blue-soft);
}

.support-site {
  max-width: 1220px;
}
.support-wrap {
  display: grid;
  gap: 22px;
  justify-content: stretch;
  padding: 34px 0 64px;
}
.support-card {
  width: 100%;
  max-width: none;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}
.support-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .82fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--c-border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 9% 12%, rgba(255,209,102,.32), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(102,153,255,.18), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f5f8ff 62%, #eef4ff 100%);
  box-shadow: 12px 14px 0 rgba(19,34,58,.10), var(--shadow-card);
  overflow: hidden;
}
.support-hero::after {
  content: "";
  position: absolute;
  inset: auto -52px -78px auto;
  width: 230px;
  height: 230px;
  border: 1px dashed rgba(19,34,58,.22);
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, rgba(102,153,255,.14) 0 10px, transparent 10px 20px);
  pointer-events: none;
}
.support-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.support-hero h1 {
  max-width: 780px;
  margin: 8px 0 14px;
  color: var(--c-ink);
  font: 800 clamp(42px, 6vw, 76px)/.94 var(--font-heading);
  letter-spacing: -.055em;
}
.support-hero p {
  max-width: 66ch;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.58;
}
.support-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.support-system-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--c-ink);
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  box-shadow: 6px 7px 0 var(--c-ink);
  backdrop-filter: blur(14px);
}
.support-system-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.support-system-head b,
.support-panel-title,
.support-assurance h2 {
  color: var(--c-ink);
}
.support-system-head span:not(.support-pulse),
.support-status-row,
.support-flow small,
.support-assurance span {
  color: var(--text-soft);
}
.support-pulse {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.support-pulse::before,
.support-pulse::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.support-pulse::before {
  inset: 10px;
  background: #fff;
}
.support-pulse::after {
  width: 9px;
  height: 9px;
  right: 7px;
  top: 7px;
  background: var(--c-gold);
  animation: supportPing 1.8s ease-in-out infinite;
}
@keyframes supportPing {
  0%, 100% { transform: scale(.78); opacity: .72; }
  50% { transform: scale(1.18); opacity: 1; }
}
.support-flow {
  display: grid;
  gap: 10px;
}
.support-flow div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-canvas);
}
.support-flow span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-gold);
  font-weight: 900;
}
.support-flow b,
.support-flow small {
  line-height: 1.2;
}
.support-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 800;
}
.support-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
}
.support-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.support-lane,
.support-panel,
.support-assurance {
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-card);
}
.support-lane {
  min-height: 190px;
  padding: 20px;
  border-radius: 24px;
}
.support-lane h2 {
  margin: 14px 0 8px;
  color: var(--c-ink);
  font: 800 24px/1.02 var(--font-heading);
  letter-spacing: -.025em;
}
.support-lane p,
.support-panel p,
.support-panel li {
  color: var(--text-soft);
  line-height: 1.46;
}
.support-lane-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-ink);
  border-radius: 15px;
  background: var(--c-blue-soft);
  color: var(--c-blue-dark);
  box-shadow: 2px 2px 0 var(--c-ink);
}
.support-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .62fr);
  gap: 18px;
  align-items: start;
}
.support-contact-card {
  padding: clamp(22px, 3vw, 32px);
}
.support-wrap-light {
  max-width: 1020px;
  margin: 0 auto;
  gap: 18px;
  padding-top: 28px;
}
.support-hero-light {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f6f8ff 100%);
  box-shadow: 0 20px 60px rgba(19,34,58,.10);
}
.support-hero-light::after {
  display: none;
}
.support-hero-light h1 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}
.support-hero-light p {
  max-width: 60ch;
  font-size: 16px;
}
.support-mini-strip {
  display: grid;
  gap: 9px;
  min-width: 245px;
  padding: 15px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
}
.support-mini-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.support-main-grid-light {
  grid-template-columns: 1fr;
}
.support-main-grid-light .support-contact-card {
  border: 1px solid var(--c-border);
  border-radius: 22px;
  box-shadow: 0 18px 54px rgba(19,34,58,.10);
}
.support-plain-btn,
.support-submit {
  border-radius: 10px;
  box-shadow: none;
}
.support-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.support-form {
  margin-top: 18px;
}
.support-form .label {
  margin-bottom: 7px;
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}
.support-form .skf {
  border-radius: 14px;
  background: var(--surface);
}
.support-form .skf::after {
  border-color: var(--c-border);
  border-radius: 14px;
  filter: none;
}
.support-form .skf:focus-within {
  background: #fff;
}
.support-form .skf:focus-within::after {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(102,153,255,.16);
}
.support-form input.inp,
.support-form textarea.inp {
  min-height: 48px;
  border: 1px solid var(--c-border) !important;
  border-radius: 10px !important;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: none !important;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.support-form input.inp {
  padding: 12px 14px;
}
.support-form input.inp:focus,
.support-form textarea.inp:focus {
  border-color: var(--c-blue) !important;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102,153,255,.16) !important;
}
.support-form textarea.inp {
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
}
.support-form-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: rgba(102,153,255,.10);
  color: var(--text-soft);
  font-size: 12px;
}
.support-form-note span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-blue-dark);
  font-weight: 900;
}
.support-side-stack {
  display: grid;
  gap: 14px;
}
.support-panel {
  padding: 18px;
  border-radius: 22px;
}
.support-panel-blue {
  background:
    radial-gradient(circle at 100% 0, rgba(255,209,102,.24), transparent 34%),
    var(--c-blue-soft);
}
.support-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 900;
}
.support-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}
.support-assurance {
  display: grid;
  grid-template-columns: minmax(230px, .6fr) 1fr;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(102,153,255,.13), transparent 42%),
    rgba(255,255,255,.88);
}
.support-assurance h2 {
  margin: 8px 0 0;
  font: 800 clamp(28px, 3.4vw, 44px)/1 var(--font-heading);
  letter-spacing: -.04em;
}
.support-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.support-assurance-grid div {
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: var(--c-canvas);
}
.support-assurance-grid b,
.support-assurance-grid span {
  display: block;
}
.support-assurance-grid b {
  margin-bottom: 8px;
  color: var(--c-ink);
}
@media (max-width: 920px) {
  .support-hero,
  .support-main-grid,
  .support-assurance {
    grid-template-columns: 1fr;
  }
  .support-mini-strip {
    min-width: 0;
  }
  .support-lanes,
  .support-assurance-grid {
    grid-template-columns: 1fr;
  }
  .support-nav-link {
    display: none;
  }
}
@media (max-width: 560px) {
  .support-hero {
    padding: 24px 18px;
    border-radius: 26px;
  }
  .support-system-card {
    box-shadow: 4px 5px 0 var(--c-ink);
  }
  .support-card-head {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .support-pulse::after {
    animation: none;
  }
}
.legal h2 {
  color: var(--c-ink);
  letter-spacing: -.02em;
}
.cookie-table {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}
.cookie-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-canvas);
}
.cookie-row .pill {
  justify-self: end;
  white-space: nowrap;
  background: #fff;
}
.cookie-bar {
  border: 1px solid var(--c-border);
  box-shadow: 0 24px 64px rgba(19,34,58,.20);
}
.cookie-msg b { color: var(--c-ink); }

/* Logged-in app refinement */
.game .topbar,
.topbar {
  min-height: 64px;
}
.game .brand,
.topbar .brand {
  color: var(--c-blue-dark);
}
.game .content {
  background:
    radial-gradient(circle at 8% 0%, rgba(255,209,102,.20), transparent 24%),
    radial-gradient(circle at 86% 6%, rgba(232,220,255,.34), transparent 20%),
    var(--page-bg);
}
.game .card,
.game .cat-tile,
.game .citem,
.student-hero {
  border-color: var(--c-border) !important;
}
.student-hero {
  background: linear-gradient(135deg, #fff, var(--c-blue-soft));
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}
.game .grad-accent {
  background: linear-gradient(135deg, #fff, var(--c-blue-soft)) !important;
}
.game .game-home-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,209,102,.32), transparent 22%),
    linear-gradient(135deg, #fff, var(--c-blue-soft));
  border-radius: 28px;
}
.game .game-home-hero .h2 {
  font-size: clamp(32px, 4vw, 48px);
}

@media (max-width: 980px) {
  .site-hero,
  .safety-panel,
  .loop-card {
    grid-template-columns: 1fr;
  }
  .site-hero { min-height: 0; }
  .hero-board { min-height: 500px; }
  .feats,
  .curriculum-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site { width: min(100% - 20px, 1200px); }
  .site-nav { gap: 10px; }
  .site-links { display: none; }
  .site-hero { padding-top: 20px; }
  .hero-board { min-height: 470px; padding: 12px; }
  .demo-canvas { min-height: 340px; padding: 16px; }
  .demo-canvas svg { height: 235px; }
  .loop-steps,
  .feats,
  .curriculum-grid,
  .audience-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-foot,
  .site-final {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-card { grid-template-columns: 1fr; }
  .auth-hero { display: flex; min-height: 260px; border-right: 0; border-bottom: 1px solid var(--c-border); }
  .cookie-row { grid-template-columns: 1fr; }
  .cookie-row .pill { justify-self: start; }
  .game .game-home-hero { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .pendulum,
  .demo-hint,
  .demo-hint::before {
    animation: none !important;
  }
  * { scroll-behavior: auto !important; }
}
