/* ============================================================
   Fiscalina Academy — learn the whole app, beginner → expert.
   Shares the landing "ledger" palette + self-hosted fonts.
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/landing/fonts/bricolage-var.woff2') format('woff2');
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/landing/fonts/publicsans-var.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/landing/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/landing/fonts/plexmono-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}

:root {
  --ink: #13293f;
  --ink-soft: #3d5568;
  --ink-faint: #6b8093;
  --navy: #1a4469;
  --navy-deep: #12314d;
  --teal: #379ca3;
  --teal-deep: #26767c;
  --teal-tint: #e9f5f6;
  --paper: #f7f9fa;
  --card: #ffffff;
  --rule: #d9e2e8;
  --rule-soft: #e7edf1;
  --red-ink: #b23a2e;
  --gold: #c58b2f;
  --shadow-lg: 0 24px 60px -18px rgba(19, 41, 63, 0.28);
  --shadow-md: 0 10px 30px -12px rgba(19, 41, 63, 0.22);
  --shadow-sm: 0 4px 14px -8px rgba(19, 41, 63, 0.3);
  --font-display: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --rail: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.24rem; font-weight: 650; }
h4 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--teal-deep); }
button { font: inherit; }
code, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep);
  margin: 0 0 12px;
}

/* keyboard key chips */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; padding: 1px 7px; border-radius: 6px;
  background: #fff; border: 1px solid var(--rule); border-bottom-width: 2.5px;
  font-family: var(--font-mono); font-size: 0.82em; font-weight: 600; color: var(--navy);
  line-height: 1.5; box-shadow: var(--shadow-sm);
}

/* ---------- top bar ---------- */
.abar {
  position: sticky; top: 0; z-index: 60; height: 60px;
  background: rgba(247, 249, 250, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
  display: flex; align-items: center; gap: 18px; padding: 0 22px;
}
.abar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.abar-logo img { width: 132px; height: auto; }
.abar-badge {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; background: var(--teal);
  padding: 3px 8px; border-radius: 5px; font-weight: 600;
}
.abar-spacer { flex: 1; }
.abar-search {
  position: relative; width: min(300px, 42vw);
}
.abar-search input {
  width: 100%; border: 1.5px solid var(--rule); border-radius: 9px;
  padding: 8px 12px 8px 34px; font: inherit; font-size: 0.9rem; background: #fff;
}
.abar-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(55,156,163,0.16); }
.abar-search .mag { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 0.9rem; pointer-events: none; }
.abar-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 340px; overflow: auto;
}
.abar-search-results[hidden] { display: none; }
.abar-search-results a {
  display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: 0.9rem;
}
.abar-search-results a:hover, .abar-search-results a.hi { background: var(--teal-tint); }
.abar-search-results .sr-track { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.abar-search-results .sr-empty { padding: 10px; color: var(--ink-faint); font-size: 0.88rem; }
.abar-btn {
  border: 1.5px solid var(--rule); background: #fff; color: var(--navy);
  border-radius: 9px; padding: 8px 15px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.abar-btn:hover { border-color: var(--navy); }
.abar-btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.abar-btn.primary:hover { background: var(--navy-deep); }
@media (max-width: 720px) { .abar-search { display: none; } .abar-logo img { width: 116px; } .abar-hide-sm { display: none; } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: var(--rail) 1fr; align-items: start; }
@media (max-width: 940px) { .layout { grid-template-columns: 1fr; } }

/* ---------- sidebar ---------- */
.rail {
  position: sticky; top: 60px; align-self: start;
  height: calc(100vh - 60px); overflow-y: auto;
  border-right: 1px solid var(--rule-soft); background: #fff;
  padding: 24px 16px 60px;
}
.rail-progress { margin: 0 8px 20px; }
.rail-progress .bar { height: 8px; border-radius: 99px; background: var(--rule-soft); overflow: hidden; }
.rail-progress .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--navy)); border-radius: 99px; transition: width 0.6s cubic-bezier(0.2,0.8,0.3,1); }
.rail-progress .label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 8px; letter-spacing: 0.04em; }
.rail-progress .label b { color: var(--navy); }

.rail-nav { list-style: none; margin: 0; padding: 0; counter-reset: lesson; }
.rail-nav li { margin: 1px 0; }
.rail-link {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border-radius: 9px; text-decoration: none;
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; border: 0; background: none;
  cursor: pointer; text-align: left; transition: background 0.15s ease, color 0.15s ease;
}
.rail-link:hover { background: var(--paper); color: var(--navy); }
.rail-link.active { background: var(--teal-tint); color: var(--navy-deep); font-weight: 650; }
.rail-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 600; background: var(--paper);
  border: 1px solid var(--rule); color: var(--ink-faint);
}
.rail-link.active .rail-num { background: var(--navy); color: #fff; border-color: var(--navy); }
.rail-link.done .rail-num { background: var(--teal); border-color: var(--teal); color: #fff; }
.rail-link.done .rail-num::before { content: '✓'; }
.rail-link.done .rail-num .n { display: none; }
.rail-title { flex: 1; }
.rail-foot { margin: 22px 8px 0; padding-top: 16px; border-top: 1px solid var(--rule-soft); font-size: 0.8rem; color: var(--ink-faint); }
.rail-foot a { display: block; margin-top: 8px; }

/* mobile rail toggle */
.rail-toggle { display: none; }
@media (max-width: 940px) {
  .rail {
    position: fixed; inset: 60px 0 auto 0; height: auto; max-height: calc(100vh - 60px);
    z-index: 55; transform: translateY(-120%); transition: transform 0.28s ease;
    box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--rule);
  }
  .rail.open { transform: none; }
  .rail-toggle {
    display: inline-flex; align-items: center; gap: 8px;
  }
}

/* ---------- main ---------- */
.main { min-width: 0; padding: 0 clamp(20px, 5vw, 72px) 120px; }
.lesson { display: none; max-width: 820px; margin: 0 auto; padding-top: 46px; animation: none; }
.lesson.active { display: block; animation: lesson-in 0.4s ease both; }
@keyframes lesson-in { from { opacity: 0; transform: translateY(10px); } }
.lesson-eyebrow { display: flex; align-items: center; gap: 12px; }
.lesson-eyebrow .step { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.lesson-eyebrow .dur { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
.lesson h1 { margin-top: 6px; }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 680px; }
.lesson h2 { margin-top: 2.2em; padding-top: 6px; scroll-margin-top: 74px; }
.lesson h3 { margin-top: 1.7em; }
.lesson p { color: var(--ink-soft); }
.lesson strong { color: var(--ink); }
.lesson ul, .lesson ol { color: var(--ink-soft); padding-left: 1.3em; }
.lesson li { margin: 0.35em 0; }
.lesson li::marker { color: var(--teal-deep); }

/* pill nav objectives */
.objectives {
  background: linear-gradient(180deg, var(--teal-tint), #fff);
  border: 1px solid var(--rule-soft); border-radius: 14px;
  padding: 18px 22px; margin: 26px 0 8px;
}
.objectives .eyebrow { margin-bottom: 10px; }
.objectives ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.objectives li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.95rem; margin: 0; }
.objectives li::before { content: '◆'; position: absolute; left: 4px; top: 1px; color: var(--teal); font-size: 0.7rem; }

/* ---------- annotated screenshot ("shot") ---------- */
.shot { margin: 30px 0; }
.shot-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rule); background: #fff; box-shadow: var(--shadow-md);
}
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 9px 13px; background: #eef2f5; border-bottom: 1px solid var(--rule-soft); }
.shot-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #cdd8df; }
.shot-url { margin-left: 10px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); background: #fff; border: 1px solid var(--rule-soft); border-radius: 6px; padding: 2px 12px; }
.shot-img { position: relative; }
.shot-img > img { width: 100%; display: block; }

/* hotspots */
.hotspot {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 0; cursor: pointer; z-index: 3;
  background: var(--navy); color: #fff; font-family: var(--font-mono);
  font-weight: 600; font-size: 0.86rem; box-shadow: 0 3px 10px rgba(18,49,77,0.5);
  display: grid; place-items: center;
}
.hotspot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: 0.9; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
.hotspot.active { background: var(--teal); }
.hotspot.active::after { animation: none; border-color: #fff; }
.hotspot:hover { transform: scale(1.12); }

.shot-caption { margin-top: 12px; font-size: 0.86rem; color: var(--ink-faint); text-align: center; }
.shot-notes { margin-top: 14px; display: grid; gap: 8px; }
.shot-note {
  display: none; gap: 12px; padding: 12px 15px; border-radius: 11px;
  background: #fff; border: 1px solid var(--rule-soft); box-shadow: var(--shadow-sm);
  align-items: flex-start; animation: note-in 0.28s ease both;
}
.shot-note.active { display: flex; }
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } }
.shot-note .badge {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
}
.shot-note b { color: var(--ink); }
.shot-note p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.shot-hint { text-align: center; font-size: 0.8rem; color: var(--ink-faint); margin-top: 10px; font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ---------- callout boxes ---------- */
.callout {
  display: flex; gap: 14px; padding: 15px 18px; border-radius: 12px; margin: 22px 0;
  border: 1px solid var(--rule-soft); background: #fff; box-shadow: var(--shadow-sm);
}
.callout .ic { flex-shrink: 0; font-size: 1.2rem; line-height: 1.5; }
.callout p { margin: 0; font-size: 0.94rem; }
.callout.tip { background: var(--teal-tint); border-color: #bfe3e5; }
.callout.warn { background: #fdf4e7; border-color: #f0dcb6; }
.callout.key { background: #f2f6fb; border-color: #cfdcea; }
.callout b { color: var(--ink); }

/* step lists */
.steps { list-style: none; counter-reset: step; margin: 22px 0; padding: 0; }
.steps > li {
  position: relative; padding: 4px 0 20px 46px; margin: 0;
  border-left: 2px solid var(--rule-soft); margin-left: 15px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -15px; top: -2px; width: 30px; height: 30px;
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
}
.steps > li h4 { margin: 3px 0 4px; }
.steps > li p { margin: 0; font-size: 0.93rem; }

/* feature cards grid */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--rule-soft); border-radius: 12px; padding: 16px 18px;
}
.card h4 { margin: 0 0 5px; display: flex; align-items: center; gap: 8px; }
.card .ic { font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.9rem; }

/* ---------- interactive: mini kanban ---------- */
.demo {
  border: 1px dashed var(--teal); border-radius: 16px; padding: 20px;
  background: linear-gradient(180deg, #fff, var(--teal-tint)); margin: 26px 0;
}
.demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.demo-head .tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--teal); color: #fff; padding: 3px 8px; border-radius: 5px; font-weight: 600; }
.demo-head h4 { margin: 0; }
.demo-sub { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 16px; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
.kcol { background: #fff; border: 1px solid var(--rule-soft); border-radius: 10px; padding: 8px; min-height: 120px; transition: background 0.15s ease, border-color 0.15s ease; }
.kcol.dragover { background: var(--teal-tint); border-color: var(--teal); }
.kcol-h { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); padding: 4px 6px 8px; display: flex; justify-content: space-between; }
.kcard {
  background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--teal);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 7px; cursor: grab; box-shadow: var(--shadow-sm);
  font-size: 0.82rem; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: 0.4; }
.kcard .client { font-weight: 650; color: var(--ink); }
.kcard .kind { color: var(--ink-faint); font-size: 0.74rem; }
.kcard.pop { animation: kpop 0.4s ease; }
@keyframes kpop { 0% { transform: scale(1); } 40% { transform: scale(1.06); box-shadow: 0 10px 22px -8px rgba(55,156,163,0.6); } 100% { transform: scale(1); } }
.demo-done { margin-top: 14px; font-size: 0.86rem; color: var(--teal-deep); font-weight: 600; display: none; }
.demo-done.show { display: block; animation: note-in 0.3s ease; }

/* ---------- interactive: palette demo ---------- */
.palette-demo { max-width: 520px; margin: 24px auto; }
.palette {
  background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.palette-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); }
.palette-in .mag { color: var(--ink-faint); }
.palette-in .typed { font-size: 1.05rem; color: var(--ink); font-family: var(--font-body); }
.palette-in .caret { display: inline-block; width: 2px; height: 20px; background: var(--teal); margin-left: 1px; animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }
.palette-list { padding: 6px; max-height: 240px; overflow: hidden; }
.palette-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; font-size: 0.9rem; color: var(--ink-soft); }
.palette-row .pic { width: 22px; text-align: center; }
.palette-row.sel { background: var(--teal-tint); color: var(--navy-deep); font-weight: 600; }
.palette-row .k { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); }
.palette-demo .cap { text-align: center; font-size: 0.82rem; color: var(--ink-faint); margin-top: 10px; }

/* ---------- knowledge check ---------- */
.quiz { border: 1px solid var(--rule); border-radius: 16px; padding: 22px 24px; margin: 34px 0 10px; background: #fff; box-shadow: var(--shadow-sm); }
.quiz .eyebrow { color: var(--gold); }
.quiz h3 { margin: 4px 0 14px; }
.quiz-q { font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.quiz-opts { display: grid; gap: 9px; }
.quiz-opt {
  text-align: left; border: 1.5px solid var(--rule); background: #fff; border-radius: 10px;
  padding: 11px 15px; cursor: pointer; font-size: 0.92rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px; transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:hover { border-color: var(--teal); }
.quiz-opt .mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rule); flex-shrink: 0; display: grid; place-items: center; font-size: 0.7rem; }
.quiz-opt.correct { border-color: var(--teal); background: var(--teal-tint); color: var(--navy-deep); font-weight: 600; }
.quiz-opt.correct .mark { background: var(--teal); border-color: var(--teal); color: #fff; }
.quiz-opt.wrong { border-color: #e7bcb5; background: #fdf1ef; color: var(--red-ink); }
.quiz-opt.wrong .mark { border-color: var(--red-ink); color: var(--red-ink); }
.quiz-fb { margin: 14px 0 0; font-size: 0.9rem; display: none; }
.quiz-fb.show { display: block; animation: note-in 0.3s ease; }
.quiz-fb.ok { color: var(--teal-deep); }
.quiz-fb.no { color: var(--red-ink); }

/* ---------- lesson footer nav ---------- */
.lesson-foot { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule-soft); }
.done-btn {
  border: 1.5px solid var(--teal); background: var(--teal); color: #fff; border-radius: 11px;
  padding: 11px 20px; font-weight: 650; cursor: pointer; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.done-btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.done-btn.is-done { background: #fff; color: var(--teal-deep); }
.next-btn {
  margin-left: auto; border: 1.5px solid var(--rule); background: #fff; color: var(--navy);
  border-radius: 11px; padding: 11px 20px; font-weight: 650; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.next-btn:hover { border-color: var(--navy); }
.prev-btn { border: 0; background: none; color: var(--ink-faint); cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.prev-btn:hover { color: var(--navy); }

/* ---------- welcome / hero lesson ---------- */
.welcome { text-align: center; max-width: 760px; }
.welcome .badge-lg {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--rule-soft); border-radius: 99px; padding: 7px 16px 7px 8px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}
.welcome .badge-lg span.d { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 0.9rem; }
.welcome h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
.welcome .lead { margin: 0 auto 26px; text-align: center; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 34px 0; text-align: left; }
.track-card {
  background: #fff; border: 1px solid var(--rule-soft); border-radius: 14px; padding: 18px;
  cursor: pointer; text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  display: flex; flex-direction: column; gap: 6px;
}
.track-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule); }
.track-card .tnum { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
.track-card .tico { font-size: 1.5rem; }
.track-card h4 { margin: 2px 0 0; }
.track-card p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.track-card.done { border-color: var(--teal); }
.track-card.done .tnum::after { content: ' ✓'; color: var(--teal); font-weight: 700; }

/* graduation */
.grad { text-align: center; }
.grad .cap-ico { font-size: 4rem; margin-bottom: 10px; }
.cert {
  max-width: 560px; margin: 30px auto; background: #fffdf8; border: 1px solid #e5ddcb;
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 40px 44px; position: relative;
}
.cert::before { content: ''; position: absolute; inset: 10px; border: 1.5px double var(--navy); border-radius: 4px; pointer-events: none; }
.cert .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-deep); }
.cert h2 { font-size: 2rem; margin: 12px 0 4px; color: var(--navy); }
.cert .name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--rule); display: inline-block; padding: 0 30px 6px; margin: 14px 0; min-width: 260px; }
.cert .sig { display: flex; justify-content: space-between; margin-top: 26px; font-size: 0.8rem; color: var(--ink-faint); }
.cert .sig b { display: block; color: var(--ink); font-family: var(--font-display); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; opacity: 0.9; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: 0.5; } }

/* misc */
.divider { border: 0; border-top: 1px solid var(--rule-soft); margin: 40px 0; }
.pathline { font-family: var(--font-mono); font-size: 0.86rem; color: var(--navy); background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 7px; padding: 2px 8px; white-space: nowrap; }
.faq-mini { margin: 22px 0; }
.faq-mini details { background: #fff; border: 1px solid var(--rule-soft); border-radius: 11px; padding: 2px 18px; margin-bottom: 10px; }
.faq-mini summary { cursor: pointer; font-weight: 600; padding: 13px 0; list-style: none; position: relative; padding-right: 28px; color: var(--ink); }
.faq-mini summary::-webkit-details-marker { display: none; }
.faq-mini summary::after { content: '+'; position: absolute; right: 2px; top: 12px; font-family: var(--font-mono); font-size: 1.15rem; color: var(--teal-deep); }
.faq-mini details[open] summary::after { content: '−'; }
.faq-mini details p { margin: 0 0 14px; font-size: 0.92rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lesson.active, .shot-note, .quiz-fb, .demo-done, .kcard.pop { animation: none !important; }
  .hotspot::after { animation: none; }
  .rail-progress .fill { transition: none; }
  .confetti { display: none; }
}
