/* ============================================================
   The Business Lab — Stylesheet
   Premium edtech. Lab Ink on Lab Canvas, indigo accent with a
   warm saffron secondary for streak/alive states.
   ============================================================ */

:root {
  /* --- "Lab" palette ---
     Lab Canvas (cool, paper-clean) replaces Soft Clay so the brand reads
     as modern edtech rather than editorial-warm. Lab Ink is a deep navy-
     leaning charcoal that keeps body copy intentional at small sizes.
     Lab Indigo is the brand accent — credible, modern, not playful.
     Saffron is reserved for streaks/alive states only (not body chrome). */
  --bg: #f7f8fb;            /* Lab Canvas */
  --bg-muted: #eef1f7;      /* Slightly deeper canvas for muted sections */
  --surface: #ffffff;

  --ink: #0e1726;           /* Lab Ink — body and headings */
  --ink-soft: #3a4658;      /* Muted ink for paragraphs */
  --ink-mute: #7a8497;      /* Slate for meta text */
  --line: #e3e7ee;          /* Hairlines / borders */

  --accent: #4f46e5;        /* Lab Indigo — primary brand accent */
  --accent-soft: #eef0fe;   /* Pale wash, badges */
  --accent-ink: #312e81;    /* Strong-accent text on light bg */

  /* Secondary accent for "streak / alive" states — a warm saffron that
     pops against indigo without competing. Used sparingly. */
  --warm: #d97706;          /* Saffron — streaks, alive states only */

  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 23, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 23, 38, 0.12);
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: 960px; }
.container-reading { max-width: 820px; }

/* Utility for hiding elements on mobile */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  grid-row: span 2;
}
.logo-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-accent { color: var(--accent); font-style: normal; font-weight: 700; }
.logo-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .logo-tagline { display: none; }
  .logo-text { font-size: 18px; }
}

.site-nav {
  display: flex;
  gap: 8px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-muted); }
.site-nav a.active { color: var(--ink); background: var(--bg-muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}
.hero-inner { max-width: 780px; position: relative; }
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 144;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: #000;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-muted { background: var(--bg-muted); }
.section-header {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Subject Grid ---------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.subject-card {
  display: block;
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink);
}
.subject-icon {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.subject-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.subject-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.lesson-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: block;
}

/* ---------- Article Cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
}
.date {
  font-size: 13px;
  color: var(--ink-mute);
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.article-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}
.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Subject Page ---------- */
.subject-hero {
  padding: 56px 0 48px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--ink); }
.subject-hero-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.subject-hero-icon {
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}
.subject-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 10px 0 16px;
}
.subject-hero-desc {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 20px;
  line-height: 1.5;
}
.subject-stats {
  font-size: 14px;
  color: var(--ink-mute);
}
.subject-stats strong { color: var(--ink); font-weight: 600; }
.subject-stats .dot { margin: 0 10px; }

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.module-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--bg-muted), var(--surface));
}
.module-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.module-header h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 6px;
}
.module-count {
  font-size: 13px;
  color: var(--ink-mute);
}
.module-articles {
  display: flex;
  flex-direction: column;
}
.module-article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.module-article:last-child { border-bottom: none; }
.module-article:hover { background: var(--bg); }
.module-article:hover .article-arrow { transform: translateX(4px); color: var(--accent); }
.article-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  font-style: italic;
}
.article-info h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  line-height: 1.3;
}
.article-info p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.article-arrow {
  font-size: 20px;
  color: var(--ink-mute);
  transition: transform 0.2s, color 0.2s;
}

/* ---------- Article Page ---------- */
.article {
  padding: 48px 0 80px;
}
.article-breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--ink-mute); transition: color 0.15s; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-header { margin-bottom: 48px; }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 144;
}
.article-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
}
.module-tag {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-muted);
  color: var(--ink-soft);
  border-radius: 999px;
}
.read-time::before { content: "•"; margin-right: 12px; color: var(--line); }

.article-body {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 400;
  font-variation-settings: "opsz" 14;
}
.article-body > *:first-child::first-line {
  font-weight: 600;
}
.article-body p {
  margin: 0 0 24px;
}
.article-body p:first-of-type {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 48px 0 18px;
}
.article-body ul {
  margin: 0 0 28px;
  padding-left: 24px;
}
.article-body ul li {
  margin-bottom: 10px;
  padding-left: 8px;
}
.article-body ul li::marker {
  color: var(--accent);
}
.article-body .callout {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 18px;
  font-style: italic;
  color: var(--accent-ink);
  line-height: 1.5;
}

.article-footer {
  margin-top: 64px;
  padding: 32px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  text-align: center;
}
.footer-cta {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 18px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.nav-link:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.nav-link.empty {
  background: transparent;
  border: 1px dashed var(--line);
  opacity: 0.3;
}
.nav-link.next { text-align: right; }
.nav-label {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.nav-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: var(--bg);
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-text { color: var(--bg); }
.footer-brand .logo-accent { color: #f59e0b; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  margin: 0;
  color: var(--bg);
  opacity: 0.9;
}
.footer-fine {
  font-size: 13px;
  color: var(--bg);
  opacity: 0.5;
  margin: 0;
}

/* ---------- Quiz ---------- */
.quiz {
  margin-top: 64px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.quiz-intro { margin-bottom: 28px; }
.quiz-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.quiz-intro h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.quiz-intro p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}
.quiz-question {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.quiz-question:first-child { padding-top: 8px; }
.quiz-q-head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 18px;
}
.quiz-q-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}
.quiz-q-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.quiz-options {
  display: grid;
  gap: 10px;
  padding-left: 30px;
}
.quiz-option {
  text-align: left;
  padding: 14px 18px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--surface);
}
.quiz-option:active:not(:disabled) { transform: scale(0.99); }
.quiz-option:disabled { cursor: default; opacity: 0.7; }
.quiz-option.correct {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  opacity: 1;
  font-weight: 500;
}
.quiz-option.wrong {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  opacity: 1;
  font-weight: 500;
}
.quiz-feedback {
  margin-top: 14px;
  margin-left: 30px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  line-height: 1.4;
}
.quiz-feedback.right {
  background: #ecfdf5;
  color: #065f46;
}
.quiz-feedback.wrong {
  background: #fef2f2;
  color: #991b1b;
}
.quiz-result {
  margin-top: 28px;
  padding: 24px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  text-align: center;
}
.quiz-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.quiz-score strong { font-weight: 700; }
.quiz-score-msg {
  font-size: 15px;
  color: var(--accent-ink);
  margin: 0 0 18px;
}
.quiz-reset { margin-top: 4px; }

/* ---------- Audience Selector (hero chips) ---------- */
.audience-selector {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.audience-label {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 12px;
  font-weight: 500;
}
.audience-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.audience-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.18s ease;
}
.audience-chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ---------- Progress Widget ---------- */
.progress-widget {
  margin: 32px 0 28px;
  max-width: 440px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.progress-track {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.progress-status {
  font-weight: 600;
  color: var(--ink);
}
.progress-pct {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* ---------- Large CTA button variant ---------- */
.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Journey Section ---------- */
.section-journey {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  margin-bottom: 48px;
}
.journey-grid::before {
  /* The connecting line between steps */
  content: "";
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0 8px,
    transparent 8px 14px
  );
  z-index: 0;
}
.journey-step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.journey-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink);
}
.journey-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--bg);
  background: var(--ink);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}
.journey-step[data-step="1"] .journey-num {
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.3);
}
.journey-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.journey-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.journey-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
}
.journey-content p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.journey-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.journey-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  transition: gap 0.2s;
}
.journey-step:hover .journey-link { gap: 10px; }
.journey-link-disabled {
  color: var(--ink-mute);
  cursor: not-allowed;
}
.journey-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.journey-note {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- Relatability Strip ---------- */
.relatability {
  background: var(--ink);
  color: var(--bg);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.relatability::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.relatability-inner {
  position: relative;
  max-width: 900px;
}
.relatability-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 32px;
  color: var(--bg);
}
.relatability-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: #f59e0b;
  margin-top: 18px;
  border-radius: 2px;
}
.relatability-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 36px;
}
.relatability-list li {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bg);
  opacity: 0.92;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.relatability-list li span {
  color: #f59e0b;
  font-weight: 600;
  font-style: italic;
  flex-shrink: 0;
}

/* ---------- Problem-first Subject Cards (refined) ---------- */
.subject-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.subject-name-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 5px 10px;
  background: var(--bg);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.subject-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 10px;
}
.subject-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 22px;
}
.subject-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.subject-card {
  display: flex;
  flex-direction: column;
}
.subject-arrow {
  color: var(--ink-mute);
  font-size: 18px;
  transition: transform 0.2s, color 0.2s;
}
.subject-card:hover .subject-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ---------- Article cards — read badge + is-read state ---------- */
.read-time-badge {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.article-card.is-read {
  position: relative;
}
.article-card.is-read::after {
  content: "✓ Read";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #065f46;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #10b981;
}
.journey-step.is-read { border-color: #10b981; }

/* ---------- Social Proof ---------- */
.social-proof {
  padding: 72px 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.proof-stat { text-align: center; }
.proof-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}
.proof-num .proof-small {
  font-size: 0.5em;
  color: var(--ink-mute);
  font-weight: 500;
}
.proof-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.proof-dot {
  font-size: 32px;
  color: var(--ink-mute);
  line-height: 1;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  font-weight: 700;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 18px;
  color: var(--ink);
  position: relative;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tt-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.tt-role {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { height: 60px; }
  .site-nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 48px 0 40px; }
  .hero-meta { gap: 16px; font-size: 13px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .subject-hero { padding: 40px 0 36px; }
  .subject-hero-inner { gap: 16px; }
  .subject-hero-icon { font-size: 56px; }
  .module-header { padding: 22px 22px 18px; }
  .module-article { padding: 18px 22px; grid-template-columns: auto 1fr; gap: 14px; }
  .article-arrow { display: none; }
  .article { padding: 32px 0 56px; }
  .article-body { font-size: 17px; line-height: 1.7; }
  .article-body p:first-of-type { font-size: 19px; }
  .article-nav { grid-template-columns: 1fr; }
  .nav-link.next { text-align: left; }
  .nav-link.empty { display: none; }
  .article-footer { padding: 24px 20px; }
  .quiz { padding: 24px 20px; margin-top: 40px; }
  .quiz-intro h2 { font-size: 24px; }
  .quiz-options { padding-left: 0; }
  .quiz-feedback { margin-left: 0; }
  .quiz-q-text { font-size: 17px; }

  /* Audience selector */
  .audience-chips { gap: 8px; }
  .audience-chip { font-size: 13px; padding: 9px 14px; }

  /* Progress widget */
  .progress-widget { padding: 14px 16px; margin: 24px 0 22px; }

  /* Journey */
  .section-journey { padding: 56px 0; }
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .journey-grid::before { display: none; }
  .journey-step { padding: 22px 20px; }
  .journey-num { width: 48px; height: 48px; font-size: 26px; margin-bottom: 14px; }
  .journey-content h3 { font-size: 21px; }

  /* Relatability */
  .relatability { padding: 48px 0; }
  .relatability-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .relatability-list li { font-size: 17px; }

  /* Problem-first subject cards */
  .subject-headline { font-size: 20px; }
  .subject-card-top { margin-bottom: 16px; }

  /* Social proof */
  .social-proof { padding: 48px 0; }
  .proof-header { gap: 16px; margin-bottom: 36px; padding-bottom: 28px; }
  .proof-dot { display: none; }
  .testimonials { grid-template-columns: 1fr; gap: 16px; }
  .testimonial { padding: 22px; }

  /* Read-badge position on smaller cards */
  .article-card.is-read::after { top: 10px; right: 10px; }
}

/* ============================================================
   ============================================================
   V3 UPGRADE — new sections added per product spec
   ============================================================
   ============================================================ */

/* ---------- Hero subtitle & trust line refinements ---------- */
.hero-subtitle {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-trust {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 560px;
}

/* ---------- Streak Card (replaces simple progress widget) ---------- */
.streak-card {
  margin: 32px 0 28px;
  max-width: 560px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.streak-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.streak-flame {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.streak-msg { flex: 1; min-width: 0; }
.streak-headline {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.streak-sub {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
}

/* ---------- Email Capture (hero + article + big footer variant) ---------- */
.email-capture {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.email-capture-hero { max-width: 560px; }
.email-capture-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.email-capture-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.email-capture-copy span {
  font-size: 13px;
  color: var(--ink-mute);
}
.email-capture-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.email-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.email-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}
.email-capture-fine {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
}
.email-capture-message {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.email-capture-message.success {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #10b981;
}
.email-capture-message.error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #ef4444;
}

/* Big email section variant (near footer) */
.email-section { padding: 48px 0 72px; }
.email-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 48px;
}
.email-big-left h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.email-big-left p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.email-capture-big {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

/* ---------- Onboarding Section ---------- */
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.onboarding-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.onboarding-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.onboarding-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}
.onboarding-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
}
.onboarding-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.onboarding-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.onboarding-note {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- Career Connect ---------- */
.section-career {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.career-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.2s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.career-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.career-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}
.career-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
}
.career-card > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.career-example {
  margin-top: auto;
  padding: 14px 16px;
  background: #fef7e6;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
}
.career-example-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 6px;
}
.career-example p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}

/* ---------- Social Proof: schools line ---------- */
.proof-schools {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.proof-schools strong {
  color: var(--ink);
  font-weight: 600;
}

/* Third testimonial needs 3-column layout */
.social-proof .testimonials {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
  .social-proof .testimonials { grid-template-columns: 1fr; }
}

/* ---------- About Section ---------- */
.section-about {
  padding: 80px 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-story h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}
.about-story h3:not(:first-child) { margin-top: 28px; }
.about-story p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.about-trust {
  margin-top: 20px !important;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink) !important;
  font-size: 17px !important;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}
.about-founder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.about-founder-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}
.about-founder h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 14px;
}
.about-founder-creds {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.about-founder-why {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- Contact Section ---------- */
.section-contact {
  padding: 80px 0;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-value:hover { color: var(--accent); }
.contact-note {
  padding: 16px 20px;
  background: #fef7e6;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}
.contact-form-message {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
}
.contact-form-message.success {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #10b981;
}
.contact-form-message.error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #ef4444;
}

/* ---------- Article: Scenario Block ---------- */
.scenario {
  margin: 48px 0 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fef7e6 0%, #fef3c7 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-lg);
  position: relative;
}
.scenario-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 10px;
}
.scenario h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}
.scenario-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 14px;
}
.scenario-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 500;
}
.scenario-answer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #f59e0b;
}
.scenario-answer summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.scenario-answer summary::-webkit-details-marker { display: none; }
.scenario-answer summary:hover { color: #9a3412; }
.scenario-answer[open] summary { margin-bottom: 12px; }
.scenario-answer p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* ---------- Article: Share Bar ---------- */
.share-bar {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.share-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-body);
}
.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.share-wa:hover { background: #25d366; color: white; border-color: #25d366; }
.share-tw:hover { background: #0f0f0f; color: white; border-color: #0f0f0f; }
.share-li:hover { background: #0a66c2; color: white; border-color: #0a66c2; }
.share-copy:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share-icon { font-size: 14px; line-height: 1; font-weight: 700; }

/* ---------- Article: End-of-article email capture ---------- */
.article-email-capture {
  margin: 40px 0 24px;
  padding: 32px 32px;
  background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
  border-radius: var(--radius-lg);
  color: var(--bg);
}
.article-email-capture h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--bg);
}
.article-email-copy p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(247, 244, 238, 0.75);
  margin: 0 0 18px;
}
.article-email-capture .email-capture {
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.article-email-capture .email-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--bg);
}
.article-email-capture .email-input::placeholder { color: rgba(247, 244, 238, 0.5); }
.article-email-capture .email-input:focus {
  border-color: #f59e0b;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}
.article-email-capture .email-capture-fine { color: rgba(247, 244, 238, 0.55); }

/* ---------- Footer redesign (multi-column) ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-brand { gap: 14px; }
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-muted {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}
.footer-fine {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

/* ---------- Mobile Sticky CTA ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.mobile-sticky-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}

/* ---------- Section background variants ---------- */
.section-muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Mobile for all new sections ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-founder { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .email-big { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .career-grid { grid-template-columns: 1fr; gap: 16px; }
  .onboarding-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 24px; }
}

@media (max-width: 640px) {
  /* Show sticky CTA on mobile, add bottom padding so footer content isn't hidden */
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 80px; }

  /* Streak + email */
  .streak-card { padding: 16px 18px; margin: 24px 0 22px; }
  .streak-headline { font-size: 16px; }
  .email-capture { padding: 18px 18px; }
  .email-capture-row { flex-direction: column; gap: 10px; }
  .email-capture-row .btn { width: 100%; justify-content: center; }

  /* Onboarding & career cards */
  .onboarding-card, .career-card { padding: 22px 20px; }
  .onboarding-card h3, .career-card h3 { font-size: 20px; }

  /* Section padding */
  .section-career, .section-about, .section-contact { padding: 56px 0; }
  .email-section { padding: 32px 0 56px; }

  /* Relatability — add more items to 2-col? Keep 1-col for mobile */
  .relatability-list { grid-template-columns: 1fr; }

  /* Article: scenario and share */
  .scenario { padding: 22px 20px; margin: 32px 0 24px; }
  .scenario h3 { font-size: 22px; }
  .share-bar {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .article-email-capture { padding: 26px 22px; }
  .article-email-capture h3 { font-size: 22px; }

  /* Contact form */
  .contact-form { padding: 24px 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Header nav — hide "About"/"Contact" text links, keep core */
  .site-nav a { font-size: 14px; }
}


/* ==========================================================================
   The Business Lab — Callouts, TLDR, Hook, Career (v3 content blocks)
   Uses the site's existing variables so callouts feel native.
   ========================================================================== */

/* ---- TLDR box at top of article ---------------------------------------- */
.tldr-box {
  margin: 20px 0 32px;
  padding: 20px 24px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.tldr-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tldr-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.tldr-list li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 4px 0;
}

/* ---- Hook (3 punchy opening lines) ------------------------------------- */
.article-body .hook {
  margin: 0 0 28px;
  padding: 20px 0 18px;
  border-bottom: 2px solid var(--line);
}
.article-body .hook-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  margin: 4px 0;
  letter-spacing: -0.015em;
}
.article-body .hook-line:last-child {
  color: var(--accent);
}

/* ---- Section heading inside article body ------------------------------- */
.article-body .section-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

/* ---- Shared callout box ------------------------------------------------ */
.callout-box {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.callout-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}
.callout-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
}
.callout-box p {
  margin: 6px 0;
  line-height: 1.6;
  color: var(--ink);
}

/* Concept (terracotta accent, matches site) ----------------------------- */
.callout-concept {
  background: #fef3ec;
  border-color: #f5d4be;
  border-left: 4px solid var(--accent);
}
.callout-concept .callout-label { color: var(--accent); }
.callout-steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.callout-steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed #e8c8ab;
  line-height: 1.55;
  color: var(--ink);
}
.callout-steps li:first-child { border-top: none; padding-top: 4px; }
.callout-steps .step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
}
.callout-steps .step-text { flex: 1; }

/* Example (green, "real story") ---------------------------------------- */
.callout-example {
  background: #ecf7f0;
  border-color: #c9e6d4;
  border-left: 4px solid #2f7a4e;
}
.callout-example .callout-label { color: #2f7a4e; }

/* Data point (big number) ---------------------------------------------- */
.callout-data {
  background: #f1edfb;
  border-color: #d6cdef;
  border-left: 4px solid #5e3fb3;
}
.callout-data .callout-label { color: #5e3fb3; }
.callout-data-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  color: #5e3fb3;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
}
.callout-data-context {
  font-size: 16px;
  color: var(--ink-soft);
}

/* Scene (dark, cinematic) ---------------------------------------------- */
.callout-scene {
  background: #1a1a1a;
  color: #f5f5f5;
  border-color: #2a2a2a;
  border-left: 4px solid #ffd88a;
  box-shadow: var(--shadow-md);
}
.callout-scene .callout-label { color: #ffd88a; }
.callout-scene .scene-line {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  margin: 6px 0;
  color: #f5f5f5;
}

/* Insight & Closing (blockquote-based) --------------------------------- */
.callout.callout-insight,
.callout.callout-closing {
  margin: 28px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 500;
}
.callout.callout-insight {
  background: #fff8e1;
  border-left: 4px solid #c49a28;
  color: var(--ink);
}
.callout.callout-insight strong { color: #8a6b12; }
.callout.callout-closing {
  background: #fef3ec;
  border-left: 4px solid var(--accent);
  color: var(--ink);
}
.callout.callout-closing strong { color: var(--accent); }

/* ---- Career relevance block ------------------------------------------ */
.career-relevance {
  margin: 40px 0 24px;
  padding: 24px 26px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.career-relevance .section-heading {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 24px;
}
.career-role {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.career-role:first-of-type { border-top: none; padding-top: 0; }
.career-role-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.career-role p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink);
  font-size: 16px;
}

/* ---- Mini quiz variant ----------------------------------------------- */
.quiz.quiz-mini {
  background: #fef3ec;
  border-color: #f5d4be;
}
.quiz.quiz-mini .quiz-intro h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 4px;
  color: var(--ink);
}
.quiz.quiz-mini .quiz-label { color: var(--accent); }

/* ---- Mobile polish for the new blocks -------------------------------- */
@media (max-width: 600px) {
  .tldr-box,
  .callout-box,
  .career-relevance {
    padding: 16px 18px;
    border-radius: 12px;
  }
  .callout-data-number { font-size: 30px; }
  .article-body .hook-line { font-size: 20px; }
  .article-body .section-heading { font-size: 22px; margin-top: 30px; }
  .callout.callout-insight,
  .callout.callout-closing { font-size: 17px; padding: 16px 18px; }
  .callout-scene .scene-line { font-size: 17px; }
}

/* ==========================================================================
   V4 UPGRADES — additive only, reuses existing tokens
   Flow diagram · Scene/Quote upgrades · LinkedIn share · Section TOC
   Quiz polish · CTA polish · Pattern-break rhythm
   ========================================================================== */

/* ---- Reading width: generous container, paragraph-level measure ---------- */
/* The container is wide so callouts, flow diagrams, quiz cards, and the
   LinkedIn box have room to breathe. Prose paragraphs are constrained to
   a comfortable ~65-70 char measure via .article-body p (below). */
.container-reading { max-width: 920px; }

/* ---- Pattern-break rhythm: every callout gets consistent breathing room --- */
.article-body .callout-box,
.article-body .callout,
.article-body .tldr-box,
.article-body .flow-container {
  margin-top: 40px;
  margin-bottom: 40px;
}
.article-body > *:first-child { margin-top: 0; }

/* ---- Vertical flow diagram (connected step stack) ------------------------ */
/* Replaces the old horizontal-scroll flow. Renders steps top-to-bottom with
   a connecting line — no scrolling, scales to any step count, reads in the
   same direction as the article. */
.flow-container.flow-vertical {
  list-style: none;
  margin: 20px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  counter-reset: flow;
}
.flow-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}
.flow-item-marker {
  flex: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  position: relative;
}
.flow-item-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(194, 65, 12, 0.15);
  z-index: 1;
}
.flow-connector {
  flex: 1 0 auto;
  width: 2px;
  min-height: 28px;
  background: var(--accent);
  opacity: 0.3;
  margin-top: 4px;
  margin-bottom: 4px;
}
.flow-item-body {
  flex: 1 1 auto;
  padding: 6px 0 28px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
.flow-item:last-child .flow-item-body {
  padding-bottom: 4px;
}

/* Hide the old numbered <ol> sibling — the vertical flow replaces it cleanly
   on both desktop and mobile, so the fallback list is now redundant. */
.callout-concept .flow-container + .callout-steps { display: none; }

/* Old horizontal-flow rules kept for back-compat but won't trigger now that
   we render .flow-vertical. Remove if no longer needed. */
.flow-step { }
.flow-arrow { display: none; }

/* ---- Quote block (scroll-stopper) ---------------------------------------- */
/* Upgrades the existing .callout-insight — bigger, centered, with dividers. */
.article-body .callout.callout-insight {
  text-align: center;
  font-size: 26px;
  line-height: 1.45;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border-left: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 40px 8px;
  margin: 52px auto;
  max-width: 640px;
}
.article-body .callout.callout-insight strong { color: var(--accent); font-style: normal; }
@media (max-width: 600px) {
  .article-body .callout.callout-insight {
    font-size: 20px;
    padding: 28px 8px;
    margin: 36px auto;
  }
}

/* ---- Generic .quote-block (alias for writers who use it directly) -------- */
.article-body .quote-block {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.45;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 8px;
  margin: 52px auto;
  max-width: 640px;
}

/* ---- Scene block (soft, real-life snapshot) ------------------------------ */
/* The existing .callout-scene is dark/cinematic — we keep it for dramatic use
   but add .scene / .scene-soft for the lighter "moment" variant the brief
   describes: soft background, slight italic, clearly different from prose. */
.article-body .scene,
.article-body .callout-box.scene-soft {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.article-body .scene p:last-child,
.article-body .callout-box.scene-soft p:last-child { margin-bottom: 0; }

/* ---- Quiz polish: hover scale + smoother feedback colors ----------------- */
.quiz-option {
  transition: transform 0.15s ease, border-color 0.15s ease,
              background 0.15s ease, box-shadow 0.15s ease;
}
.quiz-option:not(:disabled):hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.quiz-option:not(:disabled):active {
  transform: scale(0.99);
}
.quiz-option.correct {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  animation: quizPop 0.35s ease;
}
.quiz-option.wrong {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
  animation: quizShake 0.35s ease;
}
@keyframes quizPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes quizShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.quiz-feedback {
  animation: quizFadeIn 0.3s ease;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- LinkedIn ready-to-share box ----------------------------------------- */
.linkedin-share-box {
  margin: 40px 0 48px;
  padding: 28px 28px 24px;
  background: #f4f8fd;
  border: 1px solid #d6e4f3;
  border-radius: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.linkedin-share-box.no-linkedin { display: none; }
.linkedin-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a66c2;
  margin-bottom: 14px;
}
.linkedin-header-icon { font-size: 16px; }
.linkedin-share-box #linkedinText {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 20px;
  white-space: pre-wrap;
  word-break: break-word;
}
.linkedin-copy-btn {
  background: #0a66c2;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.18);
}
.linkedin-copy-btn:hover {
  background: #084d94;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.28);
}
.linkedin-copy-btn:active { transform: translateY(0); }
.linkedin-copy-btn.is-copied {
  background: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.linkedin-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-mute);
}
@media (max-width: 600px) {
  .linkedin-share-box { padding: 22px 20px; border-radius: 14px; }
  .linkedin-share-box #linkedinText { font-size: 15px; }
}

/* ---- Section TOC — sticky vertical sidebar in the left gutter ----------- */
/* On wide screens (1100px+), the TOC floats in the empty space to the left
   of the article container. On narrower screens it gracefully disappears —
   users scroll normally. We intentionally don't fall back to a horizontal
   bar on mobile: it clutters the top and forces horizontal scroll for what
   is a convenience feature, not a critical one. */
.article-toc {
  display: none; /* hidden by default; only shown on wide screens */
}

@media (min-width: 1100px) {
  .article-toc {
    display: block;
    position: fixed;
    top: 120px;               /* below sticky header + breathing room */
    left: 24px;
    width: 220px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    z-index: 5;

    /* Subtle left rule, no box — feels like part of the page, not a widget */
    border-left: 2px solid var(--line);
  }
  .article-toc-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 0 0 14px 16px;
    margin-bottom: 4px;
  }
  .article-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
  }
  .article-toc-list li {
    display: block;
    padding: 0;
    margin: 0;
  }
  .article-toc-list a {
    display: block;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink-mute);
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    margin-left: -2px;       /* overlap the parent's left rule */
    white-space: normal;     /* allow wrapping */
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .article-toc-list a:hover {
    color: var(--ink);
    border-left-color: var(--ink-mute);
    background: transparent;
  }
  .article-toc-list a.is-active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
  }
  /* Slim scrollbar when the TOC itself overflows (very long articles) */
  .article-toc::-webkit-scrollbar { width: 4px; }
  .article-toc::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
}

/* Extra-wide screens — give it a bit more room from the edge */
@media (min-width: 1400px) {
  .article-toc {
    left: calc((100vw - 920px) / 2 - 260px);
    width: 230px;
  }
}

/* ---- Article email CTA — stronger contrast & centered -------------------- */
.article-email-capture {
  text-align: center;
}
.article-email-capture h3 {
  font-size: 28px;
  line-height: 1.2;
}
.article-email-capture .email-capture {
  margin-left: auto;
  margin-right: auto;
}
.article-email-capture .email-capture-row {
  justify-content: center;
}
@media (max-width: 600px) {
  .article-email-capture h3 { font-size: 22px; }
}

/* ---- Paragraph-level measure for optimal line length --------------------- */
/* Container is 920px (wide enough for callouts/cards), but prose paragraphs
   are capped at ~68ch so each line stays readable. Callouts, the flow
   diagram, quiz, LinkedIn box, and share bar are NOT constrained — they
   use the full container width by design. */
.article-body p,
.article-body ul,
.article-body ol {
  max-width: 68ch;
}
/* Section headings align to the same left edge as prose but can run wider */
.article-body h2.section-heading {
  max-width: 72ch;
}
/* Bump line-height a touch now that the measure is wider */
.article-body {
  line-height: 1.75;
}
.article-body p {
  line-height: 1.75;
}
/* Slightly more space between paragraphs helps at this width */
.article-body p {
  margin-bottom: 26px;
}
/* TOC, LinkedIn box, share bar, quiz, email capture — full container width */
.article-toc,
.linkedin-share-box,
.share-bar,
.article-email-capture,
.article-footer,
.article-nav,
.quiz,
.callout-box,
.tldr-box,
.flow-container {
  max-width: none;
}

/* ---- Reading progress bar ------------------------------------------------ */
/* Sits above the sticky header (z-index: 30 vs header's 20). Thin, subtle,
   doesn't fight with the content. Fill animates smoothly via width transition. */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 30;
  pointer-events: none;
}
.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(194, 65, 12, 0.35);
}
/* On very small screens keep it at the top but slightly thinner so it doesn't
   dominate the tiny viewport */
@media (max-width: 480px) {
  .reading-progress { height: 2px; }
}

/* ---- Scroll offset for TOC jumps ----------------------------------------- */
/* When the user clicks a TOC link, browser jumps that heading's top edge to
   the viewport's top edge — which hides it behind the sticky header. The
   scroll-margin-top fix tells the browser to leave 90px of breathing room. */
.article-body h2.section-heading {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   V4.1 — TL;DR → "In short" redesign + Scene block lightening
   ========================================================================== */

/* ---- "In short" box — editorial, inviting, first impression matters ------ */
/* The old TL;DR was a generic grey-with-left-bar box — functional but cold.
   This redesign treats the summary as an editorial lead: a dotted top rule
   (like a magazine deck), warm off-white ground, serif bullets with accent
   dashes instead of dots. Feels like the opening of a thoughtful piece,
   not a "skip the article" shortcut. */
.tldr-box {
  position: relative;
  margin: 12px 0 40px;
  padding: 28px 30px 26px;
  background: #fdfbf5;               /* warm off-white, lifts from bg */
  border: 1px solid var(--line);
  border-left: none;                 /* kill the old left bar */
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.03);
}
/* Thin top accent rule — reads as a magazine deck, not a callout box */
.tldr-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 42px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}
.tldr-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.tldr-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tldr-list li {
  position: relative;
  padding: 0 0 0 22px;
  margin: 0 0 12px;
  font-family: var(--font-display);   /* match article body serif */
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.tldr-list li:last-child { margin-bottom: 0; }
/* Custom dash bullet in accent color — warmer than a filled dot */
.tldr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
@media (max-width: 600px) {
  .tldr-box { padding: 22px 22px 20px; border-radius: 12px; }
  .tldr-box::before { left: 22px; }
  .tldr-list li { font-size: 16px; padding-left: 20px; }
  .tldr-list li::before { top: 0.7em; width: 10px; }
}

/* ---- Scene block — light, soft, "a moment not an explanation" ----------- */
/* Overrides the old dark cinematic scene. The brief said "feels like a
   moment, not explanation" — dark mode was doing the opposite (feels like
   a dramatic cutaway). Now it's a soft cream panel with italic serif lines
   and a subtle left accent — reads as observational prose. */
.article-body .callout-scene {
  background: #f9f2e2;               /* soft warm cream, distinct from page */
  color: var(--ink);
  border: 1px solid #ecdcb8;
  border-left: 3px solid #b8884a;    /* muted amber accent */
  box-shadow: none;
  padding: 26px 30px 24px;
  border-radius: 14px;
}
.article-body .callout-scene .callout-label {
  color: #8a6319;                    /* muted amber that harmonises */
  font-size: 11px;
  letter-spacing: 0.14em;
}
.article-body .callout-scene .scene-line {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;                  /* was 500 bold, now regular weight */
  font-style: italic;                /* key change — makes it feel observed */
  line-height: 1.55;
  margin: 8px 0;
  color: var(--ink);
}
.article-body .callout-scene .scene-line:first-of-type { margin-top: 10px; }
.article-body .callout-scene .scene-line:last-of-type { margin-bottom: 0; }
@media (max-width: 600px) {
  .article-body .callout-scene { padding: 20px 22px; border-radius: 12px; }
  .article-body .callout-scene .scene-line { font-size: 16.5px; }
}

/* ==========================================================================
   WAVE 1 — Hero story strip, before/after, streak levels, onboarding steps,
   auth header chips, auth modal. All additive, reuses existing tokens.
   ========================================================================== */

/* ---- Header auth controls ------------------------------------------------ */
.auth-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}
.auth-signed-out {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-btn {
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.auth-btn.auth-login {
  color: var(--ink-soft);
}
.auth-btn.auth-login:hover {
  color: var(--ink);
  background: var(--bg-muted);
}
.auth-btn.auth-signup {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.auth-btn.auth-signup:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Signed-in chip */
.auth-signed-in { position: relative; }
.auth-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, border-color 0.15s;
}
.auth-chip:hover { background: var(--surface); border-color: var(--ink-mute); }
.auth-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-chip-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 25;
}
.auth-menu-user {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.auth-menu-name { font-weight: 600; font-size: 14px; }
.auth-menu-email { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.auth-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.auth-menu-item:hover { background: var(--bg-muted); color: var(--ink); }

@media (max-width: 640px) {
  .auth-controls { margin-left: 0; }
  .auth-btn.auth-login { display: none; }  /* save space — signup alone on mobile */
  .auth-chip-name { display: none; }        /* avatar only on mobile */
}

/* ---- Auth modal ---------------------------------------------------------- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: authFade 0.2s ease;
}
.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 24px;
  animation: authSlide 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes authSlide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink-mute);
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.auth-modal-close:hover { background: var(--bg-muted); color: var(--ink); }
.auth-modal-header { text-align: center; margin-bottom: 20px; }
.auth-modal-icon { font-size: 32px; margin-bottom: 6px; }
.auth-modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.auth-modal-sub {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-muted);
  border-radius: 10px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-field { margin-bottom: 14px; }
.auth-field[hidden] { display: none; }
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}
.auth-error {
  font-size: 13px;
  color: #b91c1c;
  margin: 4px 0 10px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 8px;
}
.auth-submit { width: 100%; margin-top: 6px; }
.auth-fine {
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ---- Hero before/after shift -------------------------------------------- */
.hero-shift {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 28px auto 0;
  max-width: 640px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.hero-shift-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hero-shift-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-shift-text {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
}
.hero-shift-before .hero-shift-text { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--ink-mute); text-decoration-thickness: 1px; }
.hero-shift-after .hero-shift-text { color: var(--ink); font-style: normal; }
.hero-shift-after .hero-shift-label { color: var(--accent); }
.hero-shift-arrow {
  align-self: center;
  color: var(--ink-mute);
  font-size: 20px;
  font-weight: 300;
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .hero-shift { flex-direction: column; gap: 10px; padding: 16px; }
  .hero-shift-arrow { transform: rotate(90deg); align-self: center; }
}

/* ---- Story preview strip ------------------------------------------------ */
.story-strip-wrap {
  margin: 24px -20px 8px;
  padding: 4px 0;
}
.story-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.story-strip::-webkit-scrollbar { height: 6px; }
.story-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.story-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-mute);
}
.story-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.story-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  flex: 1;
  /* Clamp to 3 lines for consistency */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-mute);
}
.story-card-arrow {
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.18s ease;
}
.story-card:hover .story-card-arrow { transform: translateX(3px); }
/* Subject color flourishes */
.story-card-finance .story-card-tag { color: #1e6c4d; }
.story-card-marketing .story-card-tag { color: var(--accent); }
.story-card-strategy .story-card-tag { color: #5b21b6; }
.story-card-economics .story-card-tag { color: #1e40af; }
.story-card-entrepreneurship .story-card-tag { color: #b91c1c; }

/* ---- Streak levels ------------------------------------------------------ */
.streak-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.streak-card[data-level="beginner"] .streak-level,
.streak-card[data-level="serious"] .streak-level,
.streak-card[data-level="pro"] .streak-level { color: var(--accent); }
.streak-card[data-level="serious"] { border-color: rgba(194, 65, 12, 0.4); }
.streak-card[data-level="pro"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(194, 65, 12, 0.12);
}
.streak-card[data-level="pro"] .streak-flame,
.streak-card[data-level="serious"] .streak-flame {
  animation: streakPulse 2.2s ease-in-out infinite;
}
@keyframes streakPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.streak-card[data-level="paused"] {
  border-color: var(--line);
  opacity: 0.92;
}

/* ---- Onboarding step flow ---------------------------------------------- */
.onboarding-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 14px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.onboarding-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.onboarding-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-mute);
}
.onboarding-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.onboarding-step-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.onboarding-step-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.onboarding-step-icon { font-size: 28px; line-height: 1; }
.onboarding-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.onboarding-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.onboarding-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--ink-mute);
  font-size: 22px;
  font-weight: 300;
  user-select: none;
}
@media (max-width: 820px) {
  .onboarding-flow { flex-direction: column; }
  .onboarding-arrow { transform: rotate(90deg); margin: -4px 0; }
  .onboarding-step { padding: 20px; }
}


/* ==========================================================================
   WAVE 2 — Journey states, Subject featuring, Latest lessons "why read",
   Social proof avatars + dynamic stats, scroll-reveal animation
   ========================================================================== */

/* ---- Journey state (current / locked / completed) ----------------------- */
.journey-step {
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.journey-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.journey-state-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.journey-num { position: relative; }
.journey-num-text {
  display: inline-block;
  position: relative;
  z-index: 1;
}
.journey-state-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  z-index: 2;
}

/* Completed */
.journey-step[data-state="completed"] {
  opacity: 0.85;
}
.journey-step[data-state="completed"] .journey-state-badge {
  display: inline-flex;
  background: #10b981;
  color: #fff;
}
.journey-step[data-state="completed"] .journey-state-badge::before {
  content: "✓";
}
.journey-step[data-state="completed"] .journey-state-label { color: #10b981; }
.journey-step[data-state="completed"] .journey-link {
  background: transparent;
  color: var(--ink-soft);
}
.journey-step[data-state="completed"] .journey-link::after { content: " ✓"; }

/* Current */
.journey-step[data-state="current"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.journey-step[data-state="current"] .journey-state-label {
  color: var(--accent);
}

/* Locked */
.journey-step[data-state="locked"] {
  opacity: 0.65;
}
.journey-step[data-state="locked"] .journey-link {
  pointer-events: none;
  background: var(--bg-muted);
  color: var(--ink-mute);
}
.journey-step[data-state="locked"] .journey-link::after { content: " 🔒"; font-size: 11px; margin-left: 6px; }
.journey-step[data-state="locked"] .journey-state-label::before {
  content: "🔒 ";
}

/* Journey sub (subject + time estimate) */
.journey-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.journey-sub-subject {
  font-weight: 600;
  color: var(--ink-soft);
}
.journey-sub-dot { color: var(--line); }
.journey-sub-time { color: var(--ink-mute); }

/* ---- Subject cards: "Featuring" chips ---------------------------------- */
.subject-featuring {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.subject-featuring-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex: 0 0 auto;
}
.subject-featuring-list {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.subject-featuring-chip {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-muted);
  color: var(--ink-soft);
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.subject-card:hover .subject-featuring-chip {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink-mute);
}

/* Subject-specific accent colours (very subtle — only on icon + hover) */
.subject-card-finance .subject-icon { color: #1e6c4d; }
.subject-card-marketing .subject-icon { color: var(--accent); }
.subject-card-strategy .subject-icon { color: #5b21b6; }
.subject-card-economics .subject-icon { color: #1e40af; }
.subject-card-entrepreneurship .subject-icon { color: #b91c1c; }
.subject-card-operations .subject-icon { color: #0e7490; }
.subject-card-hr .subject-icon { color: #b45309; }

/* ---- Latest lessons: "Why read this" + trim to 3 ----------------------- */
.article-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .article-grid-three { grid-template-columns: 1fr; } }
.article-why {
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: var(--bg-muted);
  border-radius: 10px;
}
.article-why-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.article-why p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.latest-cta {
  margin-top: 28px;
  text-align: center;
}

/* ---- Social proof: avatars + dynamic stats ----------------------------- */
.testimonial {
  margin: 0;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tt-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tt-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
}
.tt-head .tt-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.tt-head .tt-role {
  display: block;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 1px;
}
.testimonial blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
}
.testimonial blockquote::before { content: "“"; margin-right: 2px; color: var(--accent); font-weight: 700; }
.testimonial blockquote::after  { content: "”"; margin-left: 2px; color: var(--accent); font-weight: 700; }

/* Dynamic activity row */
.proof-activity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.proof-activity-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.proof-activity-item strong {
  color: var(--ink);
  font-weight: 700;
}
.proof-activity-icon { font-size: 14px; line-height: 1; }
@media (max-width: 640px) {
  .proof-activity-item { font-size: 12px; padding: 7px 12px; }
}

/* ---- Scroll reveal ------------------------------------------------------ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   PATH B — Premium palette migration, Learning Path, Progress Rings,
            Mobile Bottom Nav. Additive; all existing tokens now resolve
            to Oxford Blue / Turmeric Gold / Soft Clay automatically.
   ========================================================================== */

/* ---- Palette rebalance — rules that referenced specific old hex values ---- */
/* The hero background glow used the old terracotta wash. Reroute to gold. */
.hero::before { background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); }

/* Testimonial quote marks looked good in terracotta, stay in gold now */
.testimonial blockquote::before,
.testimonial blockquote::after { color: var(--accent); }

/* Terracotta is now the "warm" secondary — streak hot states, completion
   celebrations — not the primary accent. Update the big streak-card glow. */
.streak-card[data-level="pro"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(184, 135, 42, 0.15);
}
.reading-progress-fill { box-shadow: 0 0 8px rgba(184, 135, 42, 0.35); }

/* Auth modal primary button + focus ring */
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 135, 42, 0.18);
}

/* ========================================================================
   LEARNING PATH — vertical track with connecting rail + state dots
   Replaces the old .journey-grid layout. The rail runs down the left
   through the number circles; each card flows to the right.
   ======================================================================== */
.learning-path {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  position: relative;
}

/* Vertical connecting rail — absolute-positioned line behind the numbers.
   Uses a gradient so the "completed" portion at the top is solid accent
   and the "locked" portion at the bottom fades to the line color. */
.learning-path::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 35px;          /* centers behind the 02/04x journey-num circles */
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    var(--accent) 33%,
    var(--line) 66%,
    var(--line) 100%
  );
  border-radius: 3px;
  z-index: 0;
}

/* Each step = horizontal row with number circle + card */
.learning-path .journey-step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 0;
  padding: 14px 0;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Reset the Wave-2 journey-step box styling — it lived inside a grid.
   In the learning path, the card styling moves to .journey-content. */
.learning-path .journey-step[data-state="current"] {
  box-shadow: none;
}

/* Number circle (the "node" on the rail) */
.learning-path .journey-num {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-mute);
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* State-specific node styling */
.learning-path .journey-step[data-state="completed"] .journey-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.learning-path .journey-step[data-state="completed"] .journey-num-text::before {
  content: "✓";
  font-size: 28px;
}
.learning-path .journey-step[data-state="completed"] .journey-num-text {
  font-size: 0; /* hide digits, show only checkmark */
}

.learning-path .journey-step[data-state="current"] .journey-num {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  animation: pathPulse 2.2s ease-in-out infinite;
}
@keyframes pathPulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 9px var(--accent-soft); }
}

.learning-path .journey-step[data-state="locked"] .journey-num {
  background: var(--bg-muted);
  border-color: var(--line);
  color: var(--ink-mute);
  opacity: 0.7;
}

/* Card to the right of the node */
.learning-path .journey-content {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.learning-path .journey-step[data-state="current"] .journey-content {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.learning-path .journey-step[data-state="current"] .journey-content:hover {
  transform: translateY(-2px);
}
.learning-path .journey-step[data-state="locked"] .journey-content {
  background: var(--bg-muted);
  opacity: 0.85;
}

/* Connecting arrow from node to card (small, decorative) */
.learning-path .journey-content::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -9px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.learning-path .journey-step[data-state="current"] .journey-content::before {
  border-color: var(--accent);
}
.learning-path .journey-step[data-state="locked"] .journey-content::before {
  background: var(--bg-muted);
}

.learning-path .journey-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
  color: var(--ink);
}
.learning-path .journey-content p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* Mobile: shrink the rail-node to stay tidy */
@media (max-width: 640px) {
  .learning-path::before { left: 24px; }
  .learning-path .journey-num {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    font-size: 17px;
    border-width: 2px;
  }
  .learning-path .journey-step { gap: 14px; padding: 10px 0; }
  .learning-path .journey-content { padding: 16px 18px; border-radius: 14px; }
  .learning-path .journey-content::before { top: 22px; left: -7px; width: 12px; height: 12px; }
  .learning-path .journey-content h3 { font-size: 18px; }
}

/* ========================================================================
   SUBJECT PROGRESS RINGS
   SVG ring wraps the subject icon. Track = muted line, fill = accent.
   Animated via stroke-dashoffset from JS. r=26 means circumference ≈ 163.36.
   ======================================================================== */
.subject-icon-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subject-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);   /* start fill at 12 o'clock */
  pointer-events: none;
}
.subject-ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}
.subject-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.subject-card.is-complete .subject-ring-fill {
  stroke: #10b981;             /* celebrate 100% with green */
}
.subject-card .subject-icon {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  z-index: 1;
}
.subject-progress-text {
  font-weight: 700;
  color: var(--ink);
}
.subject-card.has-progress .lesson-count { color: var(--ink-soft); }
.subject-card.is-complete .subject-progress-text::after {
  content: " ✓";
  color: #10b981;
}

/* ========================================================================
   MOBILE BOTTOM NAV
   Shows under 720px only. Above that, the top nav handles everything.
   Fixed at the bottom with safe-area inset for modern iOS.
   ======================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 720px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--line);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0)) 4px;
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -1px 0 rgba(11, 27, 43, 0.03);
  }
  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    color: var(--ink-mute);
    background: transparent;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    min-height: 52px;            /* thumb-friendly */
  }
  .mbn-item:hover,
  .mbn-item:active,
  .mbn-item.active {
    color: var(--accent);
    background: var(--accent-soft);
  }
  .mbn-icon {
    width: 22px;
    height: 22px;
  }
  .mbn-label {
    font-size: 10.5px;
    letter-spacing: 0.01em;
  }
  /* Leave room for the bottom bar so it doesn't overlap footer content.
     Main content gets ~70px bottom padding on mobile. */
  body { padding-bottom: 70px; }
  /* Hide original top nav on mobile, header keeps the logo + auth buttons */
  .site-nav { display: none; }
}

/* ========================================================================
   Small palette-aware polish
   ======================================================================== */
/* TL;DR accent dash now uses the gold accent */
.tldr-box::before { background: var(--accent); }
.tldr-list li::before { background: var(--accent); }

/* Quiz correct state — keep green (good UX signal) but ensure it still
   reads well against the new clay background */
.quiz-option.correct {
  background: #f0fdf5;
  border-color: #10b981;
  color: #065f46;
}


/* ============================================================
   The Business Lab — Compliance & rebrand additions
   Appended on top of the legacy stylesheet so new tokens cascade
   through every existing component without breaking layout.
   ============================================================ */

/* Compliance disclaimer in the footer — warm-bordered callout that
   makes the "not a degree program" message unmistakable without
   shouting. */
.footer-disclaimer {
  margin: 24px 0 16px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.footer-disclaimer strong {
  color: var(--ink);
  font-weight: 600;
}

/* Compliance microcopy under email-capture forms and About story.
   Sits as a subtle, italic clarification — present, but not alarming. */
.email-capture-compliance,
.about-compliance {
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-mute);
  margin: 6px 0 0;
  letter-spacing: 0.01em;
}
.about-compliance {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-style: normal;
}

/* The dark email-capture-big block has white-ish text. Make sure the
   compliance line stays legible there. */
.email-capture-big .email-capture-compliance {
  color: rgba(255, 255, 255, 0.7);
}

/* Subtle hover lift across the existing card components — uses the
   new shadow tokens so everything inherits the "Lab" feel without
   per-component restyling. */
.subject-card,
.module-article,
.testimonial,
.story-card {
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
}
.subject-card:hover,
.module-article:hover,
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .subject-card, .module-article, .testimonial, .story-card {
    transition: none;
  }
  .subject-card:hover, .module-article:hover, .story-card:hover {
    transform: none;
  }
}

/* ============================================================
   GAMIFICATION SYSTEM
   Subject progress, mission cards, level chips, badges,
   challenge card, achievements grid. Self-contained block —
   uses existing palette tokens so it never clashes.
   ============================================================ */

/* ---------- Subject card progress block --------------------------- */
.subject-card-progress {
  margin: 16px 0 4px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.subject-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 500;
}
.subject-level-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.subject-level-pill[data-tier="2"] { background: #fef3c7; color: #92400e; }
.subject-level-pill[data-tier="3"] { background: #ddd6fe; color: #5b21b6; }
.subject-level-pill[data-tier="4"] {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  box-shadow: 0 1px 2px rgba(120, 53, 15, 0.15);
}
.subject-credits-text {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.subject-progress-bar {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.subject-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(.2,.8,.2,1);
}
.subject-cert-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #fef9c3, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #78350f;
}
.subject-cert-icon { font-size: 14px; }

/* ---------- Game strip (in streak card) --------------------------- */
.game-strip {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.game-strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.game-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.game-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.game-pill-icon {
  font-size: 18px;
  line-height: 1;
}
.game-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.game-pill-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  font-weight: 600;
}
.game-pill-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.game-pill-level {
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border-color: rgba(79, 70, 229, 0.15);
}
.game-pill-credits .game-pill-value { color: var(--accent); }
.game-pill-bonus {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
}
.game-pill-bonus .game-pill-value { color: var(--warm); }

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-muted);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-mute);
  opacity: 0.55;
  transition: all 0.2s ease;
}
.game-badge.is-earned {
  background: linear-gradient(135deg, var(--accent-soft), #ede9fe);
  color: var(--accent-ink);
  opacity: 1;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.12);
}
.game-badge.is-earned:hover {
  transform: translateY(-1px) scale(1.03);
}
.game-badge-icon { font-size: 13px; }

.game-strip-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--accent-ink);
  font-weight: 500;
}
.game-next-icon { font-size: 14px; }

/* ---------- Missions section ------------------------------------ */
.section-missions {
  background: var(--bg);
}
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.mission-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  opacity: 0.7;
}
.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mission-card.is-complete {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.mission-card.is-complete::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  opacity: 1;
}
.mission-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.mission-emoji {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
}
.mission-head-text { flex: 1; min-width: 0; }
.mission-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.mission-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.mission-status {
  background: var(--bg-muted);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  align-self: center;
}
.mission-progress {
  height: 5px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.mission-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  transition: width 0.8s cubic-bezier(.2,.8,.2,1);
  border-radius: 999px;
}
.mission-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mission-lesson {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.mission-tick {
  color: var(--ink-mute);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.2s ease;
}
.mission-lesson.is-done .mission-tick {
  color: #10b981;
  font-size: 16px;
}
.mission-lesson.is-done .mission-lesson-title {
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(122, 132, 151, 0.4);
}
.mission-lesson-title {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mission-lesson-title:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.mission-complete {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #78350f;
}
.mission-complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #f59e0b;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.mission-empty {
  color: var(--ink-mute);
  font-style: italic;
}

/* ---------- Quick challenge ------------------------------------- */
.section-challenge {
  background: var(--bg-muted);
}
.challenge-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.challenge-card.is-unlocked {
  background: linear-gradient(180deg, #fff, var(--accent-soft));
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-md);
}
.challenge-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.challenge-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  font-size: 24px;
  flex-shrink: 0;
}
.challenge-card.is-unlocked .challenge-icon {
  background: var(--accent);
  color: #fff;
}
.challenge-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.challenge-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.challenge-unlock {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.challenge-question {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 12px;
}
.challenge-prompt {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 20px;
}
.challenge-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.challenge-fine {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ---------- Achievements --------------------------------------- */
.section-achievements {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.achievement-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.achievement-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #818cf8);
}
.achievement-cert::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.achievement-final::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  height: 6px;
}
.achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.achievement-final {
  background: linear-gradient(180deg, #fffbeb, #fff);
  border-color: #fde68a;
}
.achievement-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.achievement-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.achievement-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.achievement-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.achievements-empty {
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  padding: 40px 20px;
}

/* ---------- Mobile tweaks --------------------------------------- */
@media (max-width: 720px) {
  .game-strip-row {
    gap: 8px;
  }
  .game-pill {
    padding: 6px 10px;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .mission-card { padding: 20px; }
  .mission-emoji { width: 38px; height: 38px; font-size: 22px; }
  .mission-title { font-size: 17px; }
  .challenge-card { padding: 24px; }
  .challenge-question { font-size: 19px; }
  .achievement-icon { font-size: 32px; }
}

/* ---------- Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .subject-progress-fill,
  .mission-progress-fill,
  .game-pill,
  .game-badge,
  .mission-card,
  .achievement-card,
  .challenge-card { transition: none; }
}
