/* ==========================================================================
   NeuraIQ design system - one token set, two themes.
   Replaces six divergent palettes (--text/--fg/--ink, --border/--hair/--line,
   --pos-neg/--up-down/--done-breach) with one semantic vocabulary.
   Theme is driven by data-theme on <html>; OS preference is the default.
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  --bg:         #FBF7FF;
  --bg-sunk:    #F4ECFF;
  --surface:    rgba(255, 255, 255, .72);
  --surface-2:  rgba(255, 255, 255, .9);
  --elev:       #FFFFFF;
  --line:       rgba(24, 6, 51, .10);
  --line-soft:  rgba(24, 6, 51, .06);
  --text:       #1A0A33;
  --muted:      #59477F;
  --faint:      #6E5C94;
  --gold:       #D6006E;
  --gold-hi:    #D6006E;
  --gold-wash:  rgba(214, 0, 110, .10);
  --pos:        #00795A;
  --neg:        #C4183C;
  --warn:       #8A5D0B;
  --info:       #0E7C93;
  --pos-wash:   rgba(20,114,74,.10);
  --neg-wash:   rgba(166,41,31,.10);
  --ring:       rgba(214, 0, 110, .5);
  --shadow-sm:  0 2px 8px rgba(26, 10, 51, .07);
  --shadow:     0 10px 36px rgba(26, 10, 51, .10);
  --shadow-lg:  0 24px 70px rgba(26, 10, 51, .14);
  --s1:         .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5:         1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;    --s9: 6rem;
  --r-sm:       12px; --r: 18px; --r-lg: 26px; --r-xl: 34px;
  --font-ui:    "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono:  "Plus Jakarta Sans", ui-monospace, monospace;
  --figure-bg:  #0E1420;
  --figure-line: #1E2635;
  --measure:    68ch;
  --header-h:   64px;
  --container:  1180px;
  color-scheme: light;
  --accent:     #D6006E;
  --accent-2:   #0A7C93;
  --accent-3:   #5B21B6;
  --on-accent:  #FFFFFF;
}

/* Dark, when the OS says so and the reader has not chosen light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg:         #0A0620;
  --bg-sunk:    #070417;
  --surface:    rgba(255, 255, 255, .055);
  --surface-2:  rgba(255, 255, 255, .085);
  --elev:       rgba(255, 255, 255, .11);
  --line:       rgba(255, 255, 255, .12);
  --line-soft:  rgba(255, 255, 255, .07);
  --text:       #F3EEFF;
  --muted:      #B6ACD8;
  --faint:      #9287BC;
  --gold:       #FF61B6;
  --gold-hi:    #FF2E9A;
  --gold-wash:  rgba(255, 46, 154, .14);
  --pos:        #3DF5B0;
  --neg:        #FF6B8A;
  --warn:       #FFD166;
  --info:       #22D3EE;
  --pos-wash:   rgba(61, 245, 176, .12);
  --neg-wash:   rgba(255, 107, 138, .12);
  --ring:       rgba(255, 46, 154, .55);
  --shadow-sm:  0 2px 8px rgba(6, 2, 20, .3);
  --shadow:     0 10px 40px rgba(6, 2, 20, .45);
  --shadow-lg:  0 24px 80px rgba(6, 2, 20, .6);
  color-scheme: dark;
  --accent:     #FF2E9A;
  --accent-2:   #22D3EE;
  --accent-3:   #7C3AED;
  --on-accent:  #FFFFFF;
}
}

/* And when the reader chooses dark explicitly, so the toggle wins both ways. */
:root[data-theme="dark"] {
  --bg:         #0A0620;
  --line:       rgba(255, 255, 255, .12);
  --text:       #F3EEFF;
  --gold:       #FF61B6;
  --pos:        #3DF5B0;
  --pos-wash:   rgba(61, 245, 176, .12);
  --ring:       rgba(255, 46, 154, .55);
  --shadow-sm:  0 2px 8px rgba(6, 2, 20, .3);
  --shadow:     0 10px 40px rgba(6, 2, 20, .45);
  --shadow-lg:  0 24px 80px rgba(6, 2, 20, .6);
  color-scheme: dark;
  --bg-sunk:    #070417;
  --surface:    rgba(255, 255, 255, .055);
  --surface-2:  rgba(255, 255, 255, .085);
  --elev:       rgba(255, 255, 255, .11);
  --line-soft:  rgba(255, 255, 255, .07);
  --muted:      #B6ACD8;
  --faint:      #9287BC;
  --accent:     #FF2E9A;
  --accent-2:   #22D3EE;
  --accent-3:   #7C3AED;
  --on-accent:  #FFFFFF;
  --gold-hi:    #FF2E9A;
  --gold-wash:  rgba(255, 46, 154, .14);
  --neg:        #FF6B8A;
  --warn:       #FFD166;
  --info:       #22D3EE;
  --neg-wash:   rgba(255, 107, 138, .12);
}

/* ---------- 1b. LEGACY ALIASES ------------------------------------------
   The lesson, revise, practice and playground bodies are still styled by the
   older ACADEMY_CSS component rules, which name tokens this system renamed.
   Aliasing rather than find-and-replacing means those pages theme correctly
   the moment they are wrapped in the shell, and the aliases can be deleted
   one at a time as each page is rewritten.
   ------------------------------------------------------------------------ */
:root {
  --panel:  var(--surface);
  --border: var(--line);
  --dim:    var(--muted);
  --mute2:  var(--faint);
  --gold2:  var(--accent-2);   /* emphasis: cyan, same as the cockpit alias */
  --blue:   var(--info);
  --bg2:    var(--bg-sunk);
}

/* ---------- 2. RESET / BASE --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  /* Explicit colour, not only a gradient: a gradient alone leaves the canvas
     unpainted wherever it has faded out. */
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 12% -8%, var(--gold-wash), transparent 60%),
    radial-gradient(900px 520px at 108% -6%, rgba(124,143,203,.10), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--gold-wash); }

/* ---------- 3. TYPOGRAPHY ------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15;
                 letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }
p  { text-wrap: pretty; }

.eyebrow { font-family: var(--font-ui); font-size: .75rem; font-weight: 600;
           letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lede    { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.small   { font-size: .875rem; }
.tiny    { font-size: .8rem; }
.muted   { color: var(--muted); }
.faint   { color: var(--faint); }
.num     { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pos { color: var(--pos); } .neg { color: var(--neg); } .warnc { color: var(--warn); }
.accent { color: var(--gold); }   /* NOT .hi - legacy markup uses .hi for Hindi text */

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.section { padding-block: clamp(3rem, 5vw, 6rem); }
.section-sunk { background: var(--bg-sunk); border-block: 1px solid var(--line-soft); }

.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: var(--s4); align-items: center; justify-content: space-between; flex-wrap: wrap; }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.section-head { margin-bottom: var(--s6); }
.section-head .eyebrow { display: block; margin-bottom: var(--s2); }
.section-head p { color: var(--muted); max-width: 62ch; margin-top: var(--s3); }

/* ---------- 5. SKIP LINK + HEADER --------------------------------------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200;
        background: var(--gold); color: #fff; padding: var(--s3) var(--s4); border-radius: 0 0 var(--r) 0; }
.skip:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700;
         font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
/* The mark itself is drawn by the active concept - each brand direction has
   its own logomark. This only reserves the box. */
.brand-mark { width: 28px; height: 28px; flex: none; display: block; position: relative; }
.brand em { font-style: normal; color: var(--gold); }

/* Full-viewport ornament layer (grid, aurora, texture). Concept-owned, empty
   by default, and always behind content and never interactive. */
.brand-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav a.navlink {
  position: relative; padding: .5rem .7rem; border-radius: var(--r-sm);
  color: var(--muted); text-decoration: none; font-size: .925rem; font-weight: 500; white-space: nowrap;
}
.nav a.navlink:hover { color: var(--text); background: var(--surface-2); }
.nav a.navlink[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a.navlink[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem;
  height: 2px; border-radius: 2px; background: var(--gold);
}
.nav-actions { display: flex; align-items: center; gap: var(--s2); margin-left: var(--s2); }

.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; flex: none;
            border: 1px solid var(--line); border-radius: var(--r-sm);
            background: var(--surface); color: var(--muted); font-size: .95rem; }
.icon-btn:hover { color: var(--text); border-color: var(--gold-hi); }

.nav-toggle { display: none; }

/* ---------- 6. BUTTONS --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.15rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  font-size: .925rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s, background .18s;
}
.btn:hover { text-decoration: none; border-color: var(--gold-hi); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-hi), #A8801F);
               border-color: transparent; color: #17130A; }
.btn-primary:hover { box-shadow: var(--shadow); filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .42rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- 7. CARDS / SURFACES ----------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s;
}
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; transform: translateY(-2px);
                   box-shadow: var(--shadow); border-color: var(--gold-hi); }
.card-flush { padding: 0; overflow: hidden; }
.card-quiet { background: var(--surface-2); box-shadow: none; }
.card h3 { margin-bottom: var(--s2); }

.stat { text-align: center; padding: var(--s5) var(--s4); }
.stat .stat-v { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem);
                font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat .stat-l { margin-top: var(--s2); font-size: .82rem; color: var(--muted); }

/* ---------- 8. BADGES / CHIPS ------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .5rem;
         border-radius: var(--r-full); font-size: .7rem; font-weight: 700;
         letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line);
         background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-gold { color: var(--gold); border-color: var(--gold-hi); background: var(--gold-wash); }
.badge-pos  { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, transparent); background: var(--pos-wash); }
.badge-neg  { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); background: var(--neg-wash); }
.badge-beginner { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.badge-core { color: var(--gold); border-color: var(--gold-hi); }
.badge-pro  { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .7rem;
        border: 1px solid var(--line); border-radius: var(--r-full);
        background: var(--surface); font-size: .82rem; color: var(--muted); text-decoration: none; }
.chip:hover { border-color: var(--gold-hi); color: var(--text); text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--gold-wash); border-color: var(--gold-hi);
                             color: var(--gold); font-weight: 600; }

/* ---------- 9. PROGRESS --------------------------------------------------
   .progress, NOT .bar: the cockpit detail pages use .bar for their header row,
   and a 6px overflow-hidden progress track applied to a header clipped the
   title to a black band (reported from /postmortem/PRESTIGE, 3-Sep-2026). */
.progress { height: 6px; border-radius: var(--r-full); background: var(--bg-sunk);
       overflow: hidden; border: 1px solid var(--line-soft); }
.progress > i { display: block; height: 100%; border-radius: inherit;
           background: linear-gradient(90deg, var(--gold-hi), var(--gold)); transition: width .5s ease; }

/* ---------- 10. LESSON LIST --------------------------------------------- */
.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li + li { border-top: 1px solid var(--line-soft); }
.lesson-row { display: flex; align-items: center; gap: var(--s4);
              padding: .8rem var(--s5); text-decoration: none; color: inherit; }
.lesson-row:hover { background: var(--surface-2); text-decoration: none; }
.lesson-n { font-family: var(--font-mono); font-size: .78rem; color: var(--faint); width: 2.4ch; flex: none; }
.lesson-t { flex: 1; min-width: 0; }
.lesson-t b { display: block; font-weight: 600; font-size: .95rem; }
.lesson-t span { display: block; font-size: .82rem; color: var(--muted); }
.lesson-meta { display: flex; align-items: center; gap: var(--s3); flex: none; }
.lesson-row.is-done .lesson-n { color: var(--pos); }
.lesson-row.is-soon { opacity: .5; }

/* ---------- 11. PROSE (lesson body) ------------------------------------- */
.prose { max-width: var(--measure); font-size: 1.05rem; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s2); }
.prose strong { font-weight: 650; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: .12em .38em;
              border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.prose blockquote { border-left: 3px solid var(--gold-hi); padding-left: var(--s4);
                    color: var(--muted); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--s6); }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--gold-hi);
           border-radius: var(--r); background: var(--surface-2); padding: var(--s4) var(--s5); }
.callout-pos { border-left-color: var(--pos); background: var(--pos-wash); }
.callout-neg { border-left-color: var(--neg); background: var(--neg-wash); }

/* ---------- 11b. BILINGUAL QUIZ OPTIONS ---------------------------------
   Quiz answers render <span class=nqen>EN</span><span class=nqhi>HI</span> back
   to back. Everywhere else that pairing is stacked (.predict, .playcta, .wild
   all do this); the quiz options were missed, so in "दोनों" mode the two ran
   together mid-word - "...may be coilingVolatility — squeeze...".
   Safe against the language toggle: the single-language rules hide with
   !important, so they still win over this display value.
   ------------------------------------------------------------------------ */
.qopt .ot .nqhi, .qq .nqhi, .qwhy .nqhi {
  display: block; margin-top: .3rem; color: var(--muted); font-size: .92em;
}

/* ---------- 12. TABLES --------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: .62rem .9rem; text-align: left; white-space: nowrap; }
table.data thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
                      color: var(--faint); font-weight: 600; border-bottom: 1px solid var(--line); }
table.data tbody tr + tr td { border-top: 1px solid var(--line-soft); }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- 13. FOOTER --------------------------------------------------- */
.site-footer { margin-top: var(--s9); border-top: 1px solid var(--line);
               background: var(--bg-sunk); padding-block: var(--s7) var(--s6); }
/* Explicit tracks, not an auto-fit repeat: CSS forbids combining an auto-fit
   repeat() with a flexible track in the same list, so `1.6fr repeat(auto-fit,
   minmax(140px,1fr))` was dropped whole and the footer fell to one column. */
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 2.2fr 1fr 1fr 1fr; }
.footer-col h5 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
                 color: var(--faint); font-weight: 600; margin-bottom: var(--s3); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: .45rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-soft);
                 display: flex; gap: var(--s4); justify-content: space-between; flex-wrap: wrap;
                 font-size: .8rem; color: var(--faint); }
.disclaimer { font-size: .8rem; color: var(--faint); max-width: 70ch; line-height: 1.55; }

/* ---------- 14. MOBILE --------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s4) var(--s5) var(--s6);
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); margin-left: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav a.navlink { padding: .8rem .25rem; font-size: 1.02rem; border-radius: 0; }
  .nav a.navlink + a.navlink { border-top: 1px solid var(--line-soft); }
  .nav a.navlink[aria-current="page"]::after { left: .25rem; right: auto; width: 18px; bottom: .5rem; }
  .nav-actions { margin: var(--s4) 0 0; }
  .nav-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .lesson-row { padding-inline: var(--s4); }
  .lesson-meta .badge { display: none; }
}

/* ---------- 15. MOTION / PRINT ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .001ms !important; }
}
@media print {
  .site-header, .site-footer, .nav, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   BRAND LAYER - Aurora Glass (chosen 3-Sep-2026 from three directions).
   Ornament, logomark and component character. The palette above is
   already Aurora's; this is everything that is not a token.
   ========================================================================== */

/* ---------- ground: a drifting aurora ------------------------------------ */
body { background-image: none; }

.brand-bg {
  overflow: hidden;
  background:
    radial-gradient(46rem 34rem at 12% 8%,  color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
    radial-gradient(40rem 30rem at 88% 2%,  color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 60%),
    radial-gradient(52rem 38rem at 62% 82%, color-mix(in srgb, var(--accent-3) 34%, transparent), transparent 64%);
  filter: blur(38px) saturate(1.25);
  animation: auroraDrift 26s ease-in-out infinite alternate;
  opacity: .95;
}
/* Scrim. The aurora is bright enough to swallow body text on its hot spots, so
   the ground the text actually sits on is held to a known value rather than
   whatever colour happens to drift underneath. Contrast is then a property of
   the tokens, not of the animation frame. */
.brand-bg::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.06); }
  50%  { transform: translate3d(3%, 2%, 0)   scale(1.14); }
  100% { transform: translate3d(-2%, 3%, 0)  scale(1.08); }
}

/* ---------- logomark: a glowing prism ------------------------------------ */
.brand-mark {
  border-radius: 10px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent));
  box-shadow: 0 0 26px -6px var(--accent), inset 0 0 0 1px rgba(255,255,255,.35);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 5px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.brand-word { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.brand em {
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- glass everywhere --------------------------------------------- */
.site-header {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
}
.card {
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-color: var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.16);
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.28); }
.section-sunk { background: color-mix(in srgb, var(--bg-sunk) 55%, transparent); backdrop-filter: blur(14px); }

/* ---------- type: big, soft, confident ----------------------------------- */
h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-weight: 800; letter-spacing: -.035em; }
h3 { font-weight: 600; letter-spacing: -.02em; }

.eyebrow {
  font-weight: 700; letter-spacing: .18em; font-size: .7rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--gold-wash); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent); display: inline-block;
}
.accent {
  background: linear-gradient(96deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .stat-v {
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--accent) 70%, var(--text)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}

/* ---------- buttons: gradient pill ---------------------------------------- */
.btn { border-radius: 999px; font-weight: 700; }
.btn-primary {
  background: linear-gradient(96deg, var(--accent), var(--accent-3));
  border-color: transparent; color: var(--on-accent);
  box-shadow: 0 8px 28px -8px var(--accent);
}
.btn-primary:hover { filter: brightness(1.08) saturate(1.1); box-shadow: 0 14px 38px -8px var(--accent); }
.btn:not(.btn-primary) { background: var(--surface-2); backdrop-filter: blur(10px); }
.btn:not(.btn-primary):hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.badge, .chip { border-radius: 999px; }
.progress { border-radius: 999px; }
.progress > i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.lesson-row:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.footer-col h5 { color: var(--accent); letter-spacing: .16em; }
.site-footer { background: color-mix(in srgb, var(--bg-sunk) 60%, transparent); backdrop-filter: blur(16px); }

@media (prefers-reduced-motion: reduce) { .brand-bg { animation: none; } }

/* ---------- click-to-copy (every page; the handler lives in the shared head) ---------- */
[data-copy], .tk[data-t] { cursor: copy; }
[data-copy]:hover { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.nq-toast { position: fixed; left: 50%; bottom: 52px; transform: translate(-50%, 8px); padding: 8px 14px; border-radius: 999px;
            font-size: 12px; font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--bg-sunk, var(--bg)) 92%, var(--surface, var(--bg)));
            border: 1px solid var(--line); box-shadow: var(--shadow-lg, 0 12px 30px -12px rgba(0,0,0,.5)); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 30; }
.nq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
