/* ============================================================================
   NEXY Academy — shared stylesheet
   ----------------------------------------------------------------------------
   This file INHERITS the design system of the main marketing site
   (website/index.html). The token blocks below are copied verbatim from that
   file so the Academy reads as a native part of nexarchlabs.com. If the site
   tokens ever change, update them there first and mirror the change here.

   Structure:
     1. Theme tokens (light default + dark) .......... copied from index.html
     2. Base + shared primitives (.wrap/.btn/.reveal) . copied from index.html
     3. Nav / footer ................................. copied from index.html
     4. Academy-specific components .................. new, built on the tokens
     5. Responsive + reduced-motion .................. extends index.html rules
   ========================================================================== */

/* ---------- 1. THEME TOKENS (verbatim from index.html) ---------- */
:root{               /* LIGHT (default) */
  --bg:#F4F7FB; --bg-2:#E9F0F8; --surface:#FFFFFF; --surface-2:#F1F6FB;
  --border:#D9E3F0; --border-hover:rgba(47,107,176,.55);
  --text:#13233E; --muted:#566880; --faint:#8C9BB1;
  --accent:#2F6BB0; --accent-2:#1E3F7A; --accent-3:#1F97B4;
  --grad:linear-gradient(100deg,#1E3F7A,#2F6BB0 55%,#1F97B4);
  --shadow:0 12px 34px rgba(20,45,90,.10);
  --nav-bg:rgba(244,247,251,.82);
  --glow1:#9CC2EC; --glow2:#BfeBe9; --glow-op:.32;
  --net-line:47,107,176; --net-dot:31,151,180;
  /* Academy-only aliases (semantic, still resolve to inherited palette) */
  --ok:#3FB984; --warn:#E8B33C; --err:#E14B4B;
  --accent-rgb:47,107,176;
}
[data-theme="dark"]{
  --bg:#070B14; --bg-2:#0B1220; --surface:rgba(255,255,255,.04); --surface-2:rgba(255,255,255,.07);
  --border:rgba(255,255,255,.10); --border-hover:rgba(90,160,222,.55);
  --text:#E8EEF6; --muted:#94A2B8; --faint:#5E6E84;
  --accent:#5AA0DE; --accent-2:#3E8AD0; --accent-3:#4FD4DE;
  --grad:linear-gradient(100deg,#5AA0DE,#3E9BD6 50%,#4FD4DE);
  --shadow:0 12px 34px rgba(0,0,0,.45);
  --nav-bg:rgba(7,11,20,.80);
  --glow1:#1D4ED8; --glow2:#0D8E9C; --glow-op:.15;
  --net-line:90,160,222; --net-dot:79,212,222;
  --accent-rgb:90,160,222;
}

/* ---------- 2. BASE + SHARED PRIMITIVES (verbatim from index.html) ---------- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:'Source Sans 3',sans-serif;line-height:1.6;overflow-x:hidden;transition:background .4s,color .4s}
::selection{background:rgba(47,107,176,.22)}
h1,h2,h3,h4{font-family:'Fraunces',Georgia,serif;font-weight:600;line-height:1.14;letter-spacing:-.01em}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.grad-text{color:var(--accent);font-style:italic}
.theme-toggle svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .ico-sun{display:none}
[data-theme="dark"] .theme-toggle .ico-moon{display:none}
[data-theme="dark"] .theme-toggle .ico-sun{display:block}
.menu-toggle svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}

.kicker{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.05rem;letter-spacing:.01em;text-transform:none;color:var(--accent-3);font-weight:500;margin-bottom:.9rem;display:flex;align-items:center;gap:.6rem}
.kicker::before{content:"";width:26px;height:1px;background:var(--accent-3);opacity:.65;flex:0 0 auto}
.sec-title{font-size:clamp(1.9rem,3.6vw,2.9rem);max-width:780px;margin-bottom:1.1rem}
.sec-sub{color:var(--muted);max-width:660px;font-size:1.05rem}

.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.72rem 1.5rem;border-radius:12px;font-weight:600;font-size:.92rem;cursor:pointer;transition:transform .2s,box-shadow .2s;border:none;font-family:'Source Sans 3',sans-serif}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 4px 14px rgba(47,107,176,.22)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(47,107,176,.32);background:var(--accent-2)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--border)}
.btn-ghost:hover{border-color:var(--border-hover);background:var(--surface)}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.btn:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.tag{display:inline-flex;align-items:center;gap:.55rem;padding:.45rem 1.05rem;border:1px solid var(--border);border-radius:999px;font-size:.8rem;color:var(--muted);background:var(--surface);margin-bottom:1.6rem}
.tag .pulse{width:7px;height:7px;border-radius:50%;background:var(--accent-3);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(31,151,180,.5)}50%{box-shadow:0 0 0 7px rgba(31,151,180,0)}}

.reveal{opacity:0;transform:translateY(34px);transition:opacity .7s cubic-bezier(.2,.7,.3,1),transform .7s cubic-bezier(.2,.7,.3,1)}
.reveal.visible{opacity:1;transform:none}
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}.reveal.d4{transition-delay:.32s}

/* ---------- 3. NAV / FOOTER (verbatim from index.html) ---------- */
nav{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .35s,border-color .35s,backdrop-filter .35s;border-bottom:1px solid transparent}
nav.scrolled{background:var(--nav-bg);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom-color:var(--border)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:74px}
.logo{display:flex;align-items:center;gap:.6rem}
.logo-mark{height:34px;width:34px}
.logo-word{font-family:'Fraunces',Georgia,serif;font-weight:700;font-size:1.16rem;letter-spacing:.04em}
.logo-word .labs{color:var(--muted);font-weight:400}
.nav-links{display:flex;gap:2rem;align-items:center;font-size:.92rem}
.nav-links a{color:var(--muted);transition:color .2s;position:relative}
.nav-links a:hover{color:var(--text)}
.nav-links a.navlink::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--grad);transition:width .25s;border-radius:2px}
.nav-links a.navlink:hover::after,.nav-links a.navlink.active::after{width:100%}
.nav-links a.navlink.active{color:var(--text)}
/* Button text color must win over the `.nav-links a{color:muted}` rule
   (higher specificity) so the CTA reads as white-on-gradient (WCAG AA). */
.nav-links a.btn-primary{color:#fff}
.nav-links a.btn-ghost{color:var(--text)}
.theme-toggle{background:var(--surface);border:1px solid var(--border);color:var(--text);width:40px;height:40px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.05rem;transition:border-color .2s,transform .2s}
.theme-toggle:hover{border-color:var(--border-hover);transform:translateY(-2px)}
.menu-toggle{display:none;background:none;border:none;color:var(--text);font-size:1.6rem;cursor:pointer}

/* ---------- auth: nav control ---------- */
.auth-slot{display:inline-flex;align-items:center}
.auth-slot:empty{display:none}
.auth-signin{color:var(--muted)}
.auth-menu{position:relative}
.auth-chip{display:inline-flex;align-items:center;gap:.5rem;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:999px;padding:.4rem .9rem;font-family:'Source Sans 3',sans-serif;font-size:.88rem;font-weight:500;cursor:pointer;transition:border-color .2s}
.auth-chip:hover{border-color:var(--border-hover)}
.auth-dot{width:8px;height:8px;border-radius:50%;background:var(--grad)}
.auth-drop{position:absolute;right:0;top:calc(100% + 8px);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:.8rem;min-width:200px;display:none;z-index:120}
.auth-drop.open{display:block}
.auth-email{font-size:.82rem;color:var(--muted);padding:.2rem .3rem .7rem;border-bottom:1px solid var(--border);margin-bottom:.6rem;word-break:break-all}
.auth-signout{width:100%;text-align:left;background:none;border:none;color:var(--text);font-family:'Source Sans 3',sans-serif;font-size:.9rem;padding:.4rem .3rem;border-radius:8px;cursor:pointer}
.auth-signout:hover{background:var(--surface-2)}

/* ---------- auth: gate card on gated lessons ---------- */
.gate{margin-top:1.8rem;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:2.2rem;text-align:center;position:relative;overflow:hidden}
.gate::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--grad)}
.gate-icon{width:56px;height:56px;border-radius:14px;background:var(--surface-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin:0 auto 1.1rem}
.gate-icon svg{width:26px;height:26px;fill:none;stroke:var(--accent);stroke-width:1.8}
.gate h2{font-size:1.5rem;margin-bottom:.6rem}
.gate p{color:var(--muted);max-width:460px;margin:0 auto 1.4rem}
.gate-actions{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap;margin-bottom:1rem}
.gate-fine{font-size:.86rem;color:var(--faint)}
.gate-fine a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}

/* ---------- auth: login page ---------- */
.auth-page{min-height:100vh;display:flex;align-items:center;padding:120px 0 60px}
.auth-card{max-width:460px;margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);padding:2.4rem;position:relative;overflow:hidden;width:100%}
.auth-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--grad)}
.auth-head{text-align:center;margin-bottom:1.6rem}
.auth-head h1{font-size:1.7rem;margin-bottom:.5rem}
.auth-head p{color:var(--muted);font-size:.95rem}
.auth-unconfigured{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:1.1rem;color:var(--muted);font-size:.92rem}
.auth-unconfigured a{color:var(--accent);text-decoration:underline}
.auth-unconfigured code{font-family:ui-monospace,Menlo,monospace;font-size:.85em;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:.05rem .35rem}
.btn-google{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:12px;padding:.8rem 1.2rem;font-family:'Source Sans 3',sans-serif;font-weight:600;font-size:.95rem;cursor:pointer;transition:border-color .2s,transform .2s}
.btn-google:hover{border-color:var(--border-hover);transform:translateY(-1px)}
.auth-or{display:flex;align-items:center;gap:.9rem;color:var(--faint);font-size:.82rem;margin:1.2rem 0}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--border)}
.auth-switch{text-align:center;font-size:.9rem;color:var(--muted);margin-top:1.1rem}
.auth-switch .reset-link{text-decoration:none;font-weight:600}

footer{border-top:1px solid var(--border);padding:2.6rem 0;font-size:.88rem;color:var(--muted);margin-top:2rem}
.foot{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.foot-links{display:flex;gap:1.4rem;flex-wrap:wrap}
.foot-links a:hover{color:var(--text)}

/* ============================================================================
   4. ACADEMY-SPECIFIC COMPONENTS (new — built only from the tokens above)
   ========================================================================== */

/* --- generic page scaffolding --- */
.academy-page{padding-top:74px}                 /* clears the fixed nav */
.section{padding:72px 0;position:relative}
.section.tight{padding:48px 0}

/* --- hero (course home) --- */
.course-hero{position:relative;min-height:88vh;display:flex;align-items:center;overflow:hidden}
#net{position:absolute;inset:0;width:100%;height:100%}
.hero-glow{position:absolute;border-radius:50%;filter:blur(120px);opacity:var(--glow-op);pointer-events:none}
.hero-glow.g1{width:560px;height:560px;background:var(--glow1);top:-160px;right:-120px}
.hero-glow.g2{width:480px;height:480px;background:var(--glow2);bottom:-180px;left:-140px}
.hero-content{position:relative;z-index:2;padding:120px 0 60px}
.course-hero h1{font-size:clamp(2.3rem,5.4vw,4.1rem);max-width:900px;margin-bottom:1.4rem}
.hero-sub{font-size:clamp(1.02rem,1.6vw,1.25rem);color:var(--muted);max-width:680px;margin-bottom:2rem}
.hero-ctas{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.hero-meta{display:flex;gap:2.2rem;flex-wrap:wrap;margin-top:2.6rem}
.hero-meta .num{font-family:'Fraunces',Georgia,serif;font-size:1.7rem;font-weight:700;color:var(--accent)}
.hero-meta .lbl{font-size:.83rem;color:var(--muted)}

/* --- problem statement band --- */
.problem{background:var(--bg-2)}
.problem p{font-size:clamp(1.05rem,1.8vw,1.35rem);color:var(--text);max-width:820px;line-height:1.5}
.problem p .grad-text{font-weight:600}

/* --- progress bar --- */
.progress-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:1.5rem 1.7rem;box-shadow:var(--shadow);display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap}
.progress-card .pc-text{flex:1;min-width:200px}
.progress-card .pc-count{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:1.05rem}
.progress-card .pc-sub{color:var(--muted);font-size:.88rem}
.progress-track{height:10px;border-radius:8px;background:var(--surface-2);border:1px solid var(--border);overflow:hidden;flex-basis:100%;margin-top:.2rem}
.progress-fill{height:100%;background:var(--grad);width:0;transition:width .6s cubic-bezier(.2,.7,.3,1)}
.pc-actions{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.reset-link{background:none;border:none;color:var(--faint);font-size:.82rem;cursor:pointer;text-decoration:underline;font-family:'Source Sans 3',sans-serif;transition:color .2s}
.reset-link:hover{color:var(--muted)}

/* --- module + lesson listing (course home) --- */
.modules{display:flex;flex-direction:column;gap:1.4rem;margin-top:2.6rem}
.module{background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);overflow:hidden;position:relative}
.module::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--grad)}
.module-head{padding:1.4rem 1.7rem .4rem}
.module-head .m-kicker{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:.98rem;letter-spacing:.01em;text-transform:none;color:var(--accent-3);font-weight:500;margin-bottom:.3rem}
.module-head h3{font-size:1.25rem}
.lesson-row{display:flex;align-items:center;gap:1rem;padding:1rem 1.7rem;border-top:1px solid var(--border);transition:background .2s}
.lesson-row:hover{background:var(--surface-2)}
.lesson-row .check{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:.8rem;color:transparent;transition:border-color .25s,background .25s,color .25s}
.lesson-row.done .check{background:var(--grad);border-color:transparent;color:#fff}
.lesson-row .l-num{font-family:'Fraunces',Georgia,serif;font-size:.82rem;color:var(--faint);font-weight:600;flex:0 0 auto;width:1.6rem}
.lesson-row .l-art{width:72px;height:46px;border-radius:9px;overflow:hidden;border:1px solid var(--border);background:var(--surface-2);flex:0 0 auto;color:var(--accent)}
.lesson-row .l-art svg{width:100%;height:100%;display:block}
@media(max-width:560px){.lesson-row .l-art{display:none}}
.lesson-row .l-body{flex:1;min-width:0}
.lesson-row .l-title{font-weight:600;font-size:1rem}
.lesson-row .l-meta{font-size:.82rem;color:var(--muted)}
.lesson-row .l-go{color:var(--accent);font-size:.86rem;font-weight:600;opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s;flex:0 0 auto}
.lesson-row:hover .l-go{opacity:1;transform:none}

/* ============================================================================
   LESSON PAGE
   ========================================================================== */
.lesson-layout{display:grid;grid-template-columns:280px 1fr;gap:2.4rem;align-items:start;padding:40px 0 20px}

/* module rail */
.rail{position:sticky;top:98px;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:1.1rem;max-height:calc(100vh - 120px);overflow:auto}
.rail h4{font-family:'Fraunces',Georgia,serif;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--faint);font-weight:700;margin:1rem .4rem .5rem}
.rail h4:first-child{margin-top:.2rem}
.rail a{display:flex;align-items:center;gap:.6rem;padding:.5rem .55rem;border-radius:10px;font-size:.9rem;color:var(--muted);transition:background .2s,color .2s}
.rail a:hover{background:var(--surface-2);color:var(--text)}
.rail a.current{background:var(--surface-2);color:var(--text);font-weight:600}
.rail a.current .rnum{background:var(--grad);color:#fff;border-color:transparent}
.rail .rnum{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.72rem;font-family:'Fraunces',Georgia,serif;flex:0 0 auto;color:var(--faint)}
.rail a.done .rnum{background:var(--grad);border-color:transparent;color:#fff}
.rail-progress{margin:.2rem .4rem 1rem;font-size:.78rem;color:var(--faint)}

/* main lesson column */
.lesson-main{min-width:0;max-width:760px}
/* abstract lesson artwork (from academy/course-art.js) */
.lesson-art{width:100%;aspect-ratio:16/5;border-radius:16px;overflow:hidden;border:1px solid var(--border);background:var(--surface-2);margin-bottom:1.6rem;color:var(--accent)}
.lesson-art svg{width:100%;height:100%;display:block}
.lesson-eyebrow{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1rem;letter-spacing:.01em;text-transform:none;color:var(--accent-3);font-weight:500;margin-bottom:.6rem}
.lesson-main h1{font-size:clamp(1.8rem,3.4vw,2.5rem);margin-bottom:.5rem}
.lesson-readtime{color:var(--muted);font-size:.9rem;margin-bottom:1.6rem}

/* video placeholder */
.video-slot{position:relative;aspect-ratio:16/9;border-radius:16px;border:1px solid var(--border);background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;overflow:hidden;margin-bottom:2.2rem}
.video-slot::before{content:"";position:absolute;inset:0;background:var(--grad);opacity:.06}
.video-slot .play{width:60px;height:60px;border-radius:50%;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);z-index:1}
.video-slot .play svg{width:22px;height:22px;fill:var(--accent);margin-left:3px}
.video-slot .vlabel{font-size:.9rem;color:var(--muted);z-index:1}
.video-slot .vhint{font-size:.74rem;color:var(--faint);z-index:1}
/* Embed slot: replace the .video-slot markup with an <iframe> here later.
   See README → "Adding a real video". */

/* prose */
.prose{font-family:'Source Serif 4',Georgia,serif;font-size:1.08rem;line-height:1.78;color:var(--text)}
.prose > *+*{margin-top:1.15rem}
.prose h2{font-size:1.5rem;margin-top:2.2rem}
.prose h3{font-size:1.2rem;margin-top:1.8rem}
.prose p{color:var(--text)}
.prose strong{font-weight:600}
.prose em{color:var(--muted)}
.prose ul,.prose ol{padding-left:1.3rem}
.prose li{margin-top:.4rem}
.prose li::marker{color:var(--accent-3)}
.prose a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.prose blockquote{border-left:3px solid var(--accent-3);padding:.4rem 0 .4rem 1.1rem;color:var(--muted);font-style:italic}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:.1rem .4rem}
.prose .analogy{background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--accent-3);border-radius:12px;padding:1.1rem 1.3rem;box-shadow:var(--shadow)}
.prose .analogy .atag{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:.95rem;letter-spacing:.01em;text-transform:none;color:var(--accent-3);font-weight:500;display:block;margin-bottom:.4rem}

/* key takeaways callout */
.takeaways{margin-top:2.6rem;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:1.5rem 1.7rem;position:relative;overflow:hidden}
.takeaways::before{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;background:var(--grad)}
.takeaways h3{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.05rem;letter-spacing:.01em;text-transform:none;color:var(--accent-3);margin-bottom:1rem}
.takeaways ul{list-style:none}
.takeaways li{display:flex;gap:.7rem;padding:.4rem 0;font-size:.98rem}
.takeaways li svg{width:18px;height:18px;stroke:var(--accent);fill:none;stroke-width:2;flex:0 0 auto;margin-top:.25rem}

/* knowledge check (MCQ) */
.quiz{margin-top:2.6rem}
.quiz h3{font-family:'Fraunces',Georgia,serif;font-size:1.15rem;margin-bottom:1.2rem}
.q{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:1.3rem 1.5rem;margin-bottom:1.1rem}
.q .qtext{font-weight:600;margin-bottom:.9rem}
.q .qtext .qi{color:var(--faint);font-family:'Fraunces',Georgia,serif;margin-right:.4rem}
.opt{display:flex;align-items:flex-start;gap:.7rem;width:100%;text-align:left;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:.75rem .9rem;margin-bottom:.6rem;cursor:pointer;font-family:'Source Sans 3',sans-serif;font-size:.95rem;color:var(--text);transition:border-color .2s,background .2s}
.opt:hover:not(:disabled){border-color:var(--border-hover)}
.opt .marker{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--border);flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:.7rem;margin-top:.05rem}
.opt.correct{border-color:var(--ok);background:rgba(63,185,132,.12)}
.opt.correct .marker{background:var(--ok);border-color:var(--ok);color:#fff}
.opt.incorrect{border-color:var(--err);background:rgba(225,75,75,.12)}
.opt.incorrect .marker{background:var(--err);border-color:var(--err);color:#fff}
.opt.dimmed{opacity:.6}
.opt:disabled{cursor:default}
.explain{font-size:.9rem;color:var(--muted);margin-top:.4rem;padding:.7rem .9rem;border-radius:10px;background:var(--surface-2);border:1px solid var(--border);display:none}
.explain.show{display:block}
.explain b{color:var(--text)}

/* lesson footer nav */
.lesson-nav{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:2.8rem;padding-top:1.8rem;border-top:1px solid var(--border);flex-wrap:wrap}
.lesson-nav .spacer{flex:1}
.mark-complete-wrap{display:flex;flex-direction:column;align-items:center;gap:.4rem}
.mark-note{font-size:.78rem;color:var(--faint)}

/* ============================================================================
   COMPLETION PAGE
   ========================================================================== */
.complete-hero{min-height:82vh;display:flex;align-items:center;text-align:center;position:relative;overflow:hidden}
.complete-inner{max-width:640px;margin:0 auto;position:relative;z-index:2}
.badge-wrap{display:flex;justify-content:center;margin-bottom:2rem}
.complete-hero h1{font-size:clamp(2rem,4.6vw,3.2rem);margin-bottom:1rem}
.complete-hero p{color:var(--muted);font-size:1.1rem;margin-bottom:2rem}

/* ============================================================================
   PRO WAITLIST PAGE
   ========================================================================== */
.pro-hero{padding-top:130px}
.pro-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:2.6rem;margin-top:2.4rem;align-items:start}
.pro-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:2rem;position:relative;overflow:hidden}
.pro-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--grad)}
.pro-price{font-family:'Fraunces',Georgia,serif;font-size:2.2rem;font-weight:700}
.pro-price .per{font-size:.95rem;color:var(--muted);font-weight:400}
.pro-price .early{font-size:.82rem;color:var(--accent-3);font-weight:600;display:block;margin-top:.2rem}
.feature-list{list-style:none;margin-top:1.4rem}
.feature-list li{display:flex;gap:.7rem;padding:.5rem 0;font-size:.96rem;color:var(--text)}
.feature-list li svg{width:18px;height:18px;stroke:var(--accent);fill:none;stroke-width:2;flex:0 0 auto;margin-top:.25rem}
.curriculum{margin-top:1rem}
.curriculum .cur-item{border:1px solid var(--border);border-radius:12px;background:var(--surface-2);padding:.9rem 1.1rem;margin-bottom:.7rem}
.curriculum .cur-item .ct{font-weight:600;font-size:.98rem}
.curriculum .cur-item .cd{font-size:.86rem;color:var(--muted)}

/* email capture form */
.capture{display:flex;flex-direction:column;gap:.9rem;margin-top:1.2rem}
.capture label{font-size:.86rem;color:var(--muted)}
input[type=email],input[type=text],input[type=password]{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.95rem 1.1rem;color:var(--text);font-family:'Source Sans 3',sans-serif;font-size:.95rem;transition:border-color .25s;width:100%}
input:focus{outline:none;border-color:var(--border-hover)}
input::placeholder{color:var(--faint)}
.form-msg{font-size:.9rem;padding:.2rem 0;min-height:1.2rem}
.form-msg.ok{color:var(--ok)}
.form-msg.err{color:var(--err)}
.form-fine{font-size:.78rem;color:var(--faint)}

/* inline mini email capture (course home + complete) */
.mini-capture{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem;max-width:460px}
.mini-capture input{flex:1;min-width:200px}

/* ============================================================================
   5. RESPONSIVE + REDUCED MOTION (extends index.html rules)
   ========================================================================== */
@media(max-width:920px){
  .lesson-layout{grid-template-columns:1fr}
  .rail{position:relative;top:0;max-height:none;order:-1}
  .rail-scroll{display:flex;gap:.5rem;overflow-x:auto}
  .pro-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .nav-links{position:fixed;inset:74px 0 auto 0;flex-direction:column;background:var(--nav-bg);padding:2rem;gap:1.4rem;border-bottom:1px solid var(--border);transform:translateY(-130%);transition:transform .35s;backdrop-filter:blur(14px)}
  .nav-links.open{transform:none}
  .menu-toggle{display:block}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none}
}
