/* ============================================================
   MO-211 Expert Prep — landing page styles
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand greens */
  --green-900: #084a2c;
  --green-800: #0a5b36;
  --green-700: #0f6f3f;
  --green-600: #169051;
  --green-500: #21a557;
  --green-400: #4cc97c;
  --green-100: #e6f6ec;
  --green-50:  #f1fbf5;

  /* Accents */
  --amber-500: #f5b042;
  --amber-100: #fff3dc;
  --blue-500:  #2563eb;
  --blue-100:  #dbeafe;
  --purple-500:#7c3aed;
  --purple-100:#ede9fe;

  /* Neutrals */
  --ink-950: #07120c;
  --ink-900: #0e1a14;
  --ink-800: #15241d;
  --ink-700: #2a3a32;
  --ink-600: #3d4d44;
  --ink-500: #5a6b62;
  --ink-400: #7d8d84;
  --ink-300: #a7b3ac;
  --ink-200: #c9d2cc;
  --ink-100: #e4ece7;

  --paper:        #ffffff;
  --paper-soft:   #f6faf7;
  --paper-warm:   #fbfdfb;
  --line:         #e4ece7;
  --line-strong:  #cfdcd5;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(11, 81, 50, 0.05);
  --shadow-sm: 0 1px 2px rgba(11, 81, 50, 0.06), 0 1px 3px rgba(11, 81, 50, 0.04);
  --shadow-md: 0 8px 22px rgba(11, 81, 50, 0.08), 0 2px 6px rgba(11, 81, 50, 0.04);
  --shadow-lg: 0 22px 48px rgba(11, 81, 50, 0.14), 0 4px 12px rgba(11, 81, 50, 0.05);
  --shadow-xl: 0 36px 80px rgba(11, 81, 50, 0.18), 0 8px 20px rgba(11, 81, 50, 0.06);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max-w: 1180px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--green-800); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  color: var(--ink-900);
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-700); }
ul, ol { padding-left: 1.1em; }

::selection { background: var(--green-100); color: var(--green-900); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section-alt { background: var(--paper-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(33, 165, 87, 0.18);
}
.eyebrow-center { display: inline-flex; }
.section-title { margin-bottom: 12px; }
.section-title-center { text-align: center; max-width: 22ch; margin-left: auto; margin-right: auto; }
.section-sub { color: var(--ink-500); margin-bottom: 44px; max-width: 60ch; font-size: 1.05rem; }
.section-sub-center { text-align: center; margin-left: auto; margin-right: auto; }

.grad {
  background: linear-gradient(135deg, var(--green-700) 10%, var(--green-500) 60%, var(--green-400) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); font-weight: 700; font-family: var(--font-display); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
  box-shadow: 0 6px 14px rgba(15, 111, 63, 0.25);
}
.brand-text { letter-spacing: -0.01em; font-size: 0.98rem; }
.brand-accent { color: var(--green-700); font-weight: 600; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { color: var(--ink-700); font-weight: 500; font-size: 0.95rem; }
.primary-nav a:hover { color: var(--green-700); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 111, 63, 0.24), 0 2px 6px rgba(15, 111, 63, 0.12);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 36px rgba(15, 111, 63, 0.30), 0 4px 10px rgba(15, 111, 63, 0.14); }
.btn-secondary {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--green-500); color: var(--green-800); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line-strong);
  padding: 9px 16px;
  font-size: 0.92rem;
}
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-800); }
.btn-ghost-on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-ghost-on-dark:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.10); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0 clamp(64px, 8vw, 104px);
  background: linear-gradient(180deg, #fbfffd 0%, #ffffff 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-a {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(33, 165, 87, 0.55), rgba(33, 165, 87, 0) 65%);
}
.blob-b {
  width: 600px; height: 600px;
  top: -100px; right: -180px;
  background: radial-gradient(circle, rgba(76, 201, 124, 0.45), rgba(15, 111, 63, 0) 70%);
}
.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15, 111, 63, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 70%);
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-copy > * { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 70ms; }
.hero-copy > *:nth-child(3) { animation-delay: 140ms; }
.hero-copy > *:nth-child(4) { animation-delay: 210ms; }
.hero-copy > *:nth-child(5) { animation-delay: 280ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-700);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -0.02em;
}
.hero-stats span { color: var(--ink-500); font-size: 0.9rem; }

.hero-art {
  position: relative;
  animation: floatIn 900ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 200ms;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(0.6deg);
  background: linear-gradient(135deg, var(--green-100), #d6efe1);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(15, 111, 63, 0.08) 100%);
  pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  animation: bob 5s ease-in-out infinite;
}
.float-card-a { left: -18px; bottom: 28px; animation-delay: 0s; }
.float-card-b { right: -14px; top: 36px; animation-delay: 1.2s; }
.fc-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-700);
  flex-shrink: 0;
}
.fc-icon-amber { background: var(--amber-100); color: #b8761c; }
.fc-body { display: flex; flex-direction: column; line-height: 1.2; }
.fc-title { font-weight: 700; color: var(--ink-900); font-size: 0.92rem; }
.fc-meta { color: var(--ink-500); font-size: 0.78rem; margin-top: 2px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.trust-lede {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}
.trust-lede strong { color: var(--green-700); }
.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0;
}
.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: 0.9rem;
  font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green  { background: var(--green-500); box-shadow: 0 0 0 3px rgba(33,165,87,0.18); }
.dot-blue   { background: var(--blue-500);  box-shadow: 0 0 0 3px rgba(37,99,235,0.18); }
.dot-amber  { background: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,176,66,0.22); }
.dot-purple { background: var(--purple-500);box-shadow: 0 0 0 3px rgba(124,58,237,0.18); }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 14px;
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
}
.why-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-100), #d8f0e2);
  color: var(--green-700);
  border-radius: 12px;
  margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 6px; }
.why-card p  { margin: 0; color: var(--ink-600); font-size: 0.97rem; }

/* ---------- Learn (curriculum) ---------- */
.learn-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.learn-head { position: sticky; top: 90px; }
.learn-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.learn-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 500;
  color: var(--ink-800);
  font-size: 0.96rem;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.learn-grid li:hover {
  transform: translateY(-2px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-sm);
}
.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
  margin-top: 1px;
}

/* ---------- Modules ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.module-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 220ms ease;
}
.module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
  text-decoration: none;
}
.module-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), #d6efe1);
}
.module-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease;
}
.module-card:hover .module-thumb img { transform: scale(1.05); }
.module-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.module-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green-700);
}
.module-body h3 { margin: 2px 0 4px; font-size: 1.22rem; }
.module-body p  { color: var(--ink-600); margin-bottom: 12px; font-size: 0.97rem; }
.module-link { margin-top: auto; color: var(--green-700); font-weight: 600; }

/* ---------- How it works (steps) ---------- */
.steps-grid {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.step-card:hover { transform: translateY(-3px); border-color: var(--green-400); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--green-700), var(--green-400));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p  { margin: 0; color: var(--ink-600); font-size: 0.97rem; }

/* ---------- Free banner ---------- */
.section-free {
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(900px 320px at 110% 0%, rgba(33, 165, 87, 0.16), transparent 60%),
    radial-gradient(700px 260px at 0% 100%, rgba(76, 201, 124, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, #f1fbf5);
}
.free-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4.5vw, 48px);
  box-shadow: var(--shadow-md);
}
.free-mark {
  width: 132px; height: 132px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
  text-align: center;
  box-shadow: 0 18px 30px rgba(15, 111, 63, 0.28);
  position: relative;
}
.free-mark::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 111, 63, 0.25);
  animation: spin 22s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.free-mark-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.free-mark-label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-top: 4px;
}
.free-body h2 { margin-bottom: 10px; }
.free-body p { margin-bottom: 18px; color: var(--ink-700); max-width: 60ch; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.about-copy p { color: var(--ink-700); font-size: 1.02rem; }
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.about-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.about-avatar {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
}
.about-card-title { margin: 0; font-weight: 700; color: var(--ink-900); font-size: 1.05rem; font-family: var(--font-display); }
.about-card-sub   { margin: 2px 0 0; font-size: 0.88rem; color: var(--ink-500); }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.96rem;
}
.about-list li:first-child { border-top: 0; }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-100);
  background-image: linear-gradient(135deg, var(--green-700), var(--green-500));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}
.about-list code {
  background: var(--green-100);
  color: var(--green-900);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.faq-head { position: sticky; top: 90px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  transition: border-color 180ms ease, box-shadow 220ms ease;
}
.faq-item:hover { border-color: var(--green-400); }
.faq-item[open] { border-color: var(--green-400); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 600;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary em { color: var(--green-700); font-style: normal; }
.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  position: relative;
  transition: transform 220ms ease, background 220ms ease;
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-toggle::before { width: 12px; height: 2px; }
.faq-toggle::after  { width: 2px; height: 12px; transition: transform 220ms ease; }
.faq-item[open] .faq-toggle { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff; }
.faq-item[open] .faq-toggle::after { transform: scaleY(0); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--ink-700); }
.faq-item code {
  background: var(--green-100);
  color: var(--green-900);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Final CTA ---------- */
.section-cta {
  background:
    radial-gradient(900px 360px at 50% -20%, rgba(33, 165, 87, 0.30), transparent 70%),
    linear-gradient(135deg, #0a1f15 0%, #0e2a1c 60%, #0a1612 100%);
  color: #e7f1ec;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.section-cta h2 { color: #fff; margin-bottom: 10px; }
.section-cta p  { color: #b9cdc1; margin-bottom: 26px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.eyebrow-on-dark { background: rgba(255,255,255,0.08); color: #b8e8c9; }
.cta-row { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #07120c;
  color: #c9d6d0;
  padding: 60px 0 26px;
}
.site-footer h3, .site-footer p { color: #e7eee9; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; font-family: var(--font-display); }
.footer-heading {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa298;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9d6d0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.muted { color: #8fa298; }
.small { font-size: 0.85rem; padding-top: 22px; border-top: 1px solid #142019; margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 560px; margin: 0 auto; }
  .learn-wrap { grid-template-columns: 1fr; }
  .learn-head { position: static; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .free-banner { grid-template-columns: 1fr; text-align: left; }
  .free-mark { margin: 0 0 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .header-burger { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 22px 22px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 200ms ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a:not(.btn) {
    display: block;
    padding: 12px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a:not(.btn):last-of-type { border-bottom: 0; }
  .primary-nav .btn { margin-top: 10px; align-self: flex-start; }
  .trust .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .learn-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 1.5rem; }
  .float-card { padding: 10px 14px; }
  .float-card-a { left: 8px; bottom: 16px; }
  .float-card-b { right: 8px; top: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-title-center { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   COURSE PAGES — outline, module overview, lesson layout
   ============================================================ */

/* ---------- Course outline (course/index.html) ---------- */
.course-hero {
  position: relative;
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(900px 420px at 0% -20%, rgba(33, 165, 87, 0.14), transparent 60%),
    radial-gradient(700px 320px at 100% 0%, rgba(76, 201, 124, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfffd, #ffffff);
  overflow: hidden;
}
.course-hero h1 { max-width: 18ch; }
.course-hero .lede { max-width: 56ch; margin-bottom: 28px; }
.course-hero .breadcrumbs { margin-bottom: 18px; }

.outline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.outline-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 220ms ease;
}
.outline-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.outline-card-thumb {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), #d6efe1);
}
.outline-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.outline-card:hover .outline-card-thumb img { transform: scale(1.04); }
.outline-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.outline-card-body h3 { margin: 4px 0 4px; font-size: 1.22rem; }
.outline-card-body p  { color: var(--ink-600); margin-bottom: 10px; font-size: 0.97rem; }
.lp-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-700);
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}
.lp-list li:first-child { border-top: 0; padding-top: 8px; }
.lp-num {
  min-width: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green-700);
}
.lp-more {
  color: var(--ink-500);
  font-style: italic;
  border-top: 1px dashed var(--line) !important;
  padding-top: 8px !important;
}

/* ---------- Course shell (sidebar + main) ---------- */
.course-page { background: var(--paper); }

/* On the course outline page, the sidebar is hidden on desktop (the
   page itself shows the curriculum). On mobile it's the drawer. */
@media (min-width: 981px) {
  body.course-outline .course-sidebar { display: none; }
}

.course-shell {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}

.course-sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100vh - 68px);
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
}
.sidebar-inner {
  height: 100%;
  overflow-y: auto;
  padding: 24px 18px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-200) transparent;
}
.sidebar-inner::-webkit-scrollbar { width: 8px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 4px; }
.sidebar-inner::-webkit-scrollbar-track { background: transparent; }

.course-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 14px;
  padding: 4px 8px;
  border-radius: 6px;
}

/* "New here?" start cue on the course outline hero */
.start-here {
  display: inline-block;
  padding: 12px 18px;
  margin: 8px 0 22px;
  background: linear-gradient(135deg, var(--green-50), #ffffff);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  color: var(--ink-800);
  font-size: 0.97rem;
  max-width: 60ch;
}
.start-here strong { color: var(--green-800); }
.start-here a { color: var(--green-700); font-weight: 600; }

/* Extras grid below the four module cards on the course outline */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.extras-card {
  display: flex;
  gap: 16px;
  padding: 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.extras-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.extras-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-100), #d8f0e2);
  color: var(--green-700);
}
.extras-body { flex: 1; min-width: 0; }
.extras-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.extras-body h3 code { background: var(--green-100); color: var(--green-900); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }
.extras-body p { margin: 0 0 10px; color: var(--ink-600); font-size: 0.94rem; }
.extras-link { color: var(--green-700); font-weight: 600; font-size: 0.86rem; }
.extras-card-cta {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  border-color: transparent;
}
.extras-card-cta .extras-body h3,
.extras-card-cta .extras-body p,
.extras-card-cta .extras-link { color: #fff; }
.extras-card-cta .extras-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Progress tracker (injected by JS as the first child of .course-nav) */
.course-nav-progress {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--green-50), #ffffff);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  cursor: default;
  user-select: none;
}
.course-nav-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-600);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.course-nav-progress-label strong {
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}
.course-nav-progress-track {
  height: 6px;
  background: rgba(15, 111, 63, 0.10);
  border-radius: 999px;
  overflow: hidden;
}
.course-nav-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  border-radius: 999px;
  transition: width 400ms cubic-bezier(.2,.7,.2,1);
}

/* Visited-lesson checkmark in the sidebar */
.nav-lesson.is-visited .nav-lesson-num {
  position: relative;
}
.nav-lesson.is-visited .nav-lesson-num::after {
  content: "";
  position: absolute;
  top: -4px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green-500);
  background-image: linear-gradient(135deg, var(--green-700), var(--green-500));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 9px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 9px no-repeat;
  box-shadow: 0 0 0 2px var(--paper);
}

.course-nav-search {
  position: relative;
  margin: 0 0 16px;
}
.course-nav-search-icon {
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}
.course-nav-filter {
  width: 100%;
  padding: 9px 12px 9px 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink-900);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.course-nav-filter::placeholder { color: var(--ink-400); }
.course-nav-filter:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(33, 165, 87, 0.15);
}
.course-nav-filter::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 16px; width: 16px;
  background: var(--ink-300);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>") center / 12px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>") center / 12px no-repeat;
  cursor: pointer;
}
@media (hover: hover) {
  .course-nav-home:hover { color: var(--green-700); background: var(--green-50); text-decoration: none; }
}

.nav-module {
  border-radius: 10px;
  margin-bottom: 4px;
  background: transparent;
}
.nav-module > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-800);
  font-size: 0.92rem;
  transition: background 160ms ease, color 160ms ease;
}
.nav-module > summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
  .nav-module > summary:hover { background: var(--green-50); color: var(--green-800); }
}
.nav-module.is-current > summary { color: var(--green-800); }
.nav-mod-num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-mod-title { flex: 1; }
.nav-chevron {
  width: 14px; height: 14px;
  position: relative;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.nav-chevron::before {
  content: "";
  position: absolute;
  top: 4px; left: 3px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink-400);
  border-bottom: 2px solid var(--ink-400);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.nav-module[open] > summary .nav-chevron { transform: rotate(90deg); }

.nav-lessons {
  list-style: none;
  padding: 4px 0 8px 12px;
  margin: 0;
  border-left: 1px dashed var(--line-strong);
  margin-left: 22px;
}
.nav-lesson {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--ink-600);
  font-weight: 500;
  line-height: 1.35;
  transition: background 140ms ease, color 140ms ease;
}
@media (hover: hover) {
  .nav-lesson:hover { background: var(--green-50); color: var(--green-800); text-decoration: none; }
}
.nav-lesson-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-400);
  font-size: 0.78rem;
  min-width: 28px;
  margin-top: 2px;
}
.nav-lesson-title { flex: 1; }
.nav-lesson.is-current {
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 600;
  position: relative;
}
.nav-lesson.is-current::before {
  content: "";
  position: absolute;
  left: -13px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(33,165,87,0.2);
}
.nav-lesson.is-current .nav-lesson-num { color: var(--green-700); }

/* ---------- Header burger (mobile course nav trigger) ---------- */
.header-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin-right: 6px;
  margin-left: -6px;
  color: var(--ink-800);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease, transform 100ms ease;
  -webkit-tap-highlight-color: rgba(15, 111, 63, 0.15);
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.header-burger svg { pointer-events: none; display: block; }
.header-burger:hover { background: var(--green-50); color: var(--green-700); }
.header-burger:active { background: var(--green-100); color: var(--green-700); transform: scale(0.94); }
.header-burger:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
/* Legacy FAB removed — use the burger in the header */
.sidebar-toggle { display: none !important; }

/* ---------- Course main ---------- */
.course-main { min-width: 0; padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.lesson-wrap { max-width: 760px; margin: 0 auto; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--green-700); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--ink-800); font-weight: 600; }
.breadcrumbs span[aria-hidden] { color: var(--ink-300); }

.lesson-head { margin-bottom: 28px; position: relative; }
.lesson-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lesson-title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-500);
  font-weight: 500;
  padding: 4px 0;
}
.edit-link:hover { color: var(--green-700); text-decoration: none; }

.module-tagline {
  font-size: 1.1rem;
  color: var(--ink-600);
  max-width: 60ch;
  margin: 6px 0 4px;
}

/* ---------- Lesson content typography ---------- */
.lesson-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-800);
}
.lesson-content > * + * { margin-top: 1.1em; }
.lesson-content h1,
.lesson-content h2,
.lesson-content h3,
.lesson-content h4 {
  color: var(--ink-900);
  letter-spacing: -0.015em;
  scroll-margin-top: 100px;
}
.lesson-content h2 {
  font-size: 1.55rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.lesson-content h3 {
  font-size: 1.2rem;
  margin-top: 1.8em;
  font-weight: 700;
  color: var(--green-800);
}
.lesson-content h4 { font-size: 1.05rem; margin-top: 1.4em; font-weight: 700; }
.lesson-content p { color: var(--ink-700); }
.lesson-content strong { color: var(--ink-900); font-weight: 700; }
.lesson-content em { color: inherit; }
.lesson-content a {
  color: var(--green-700);
  font-weight: 500;
  border-bottom: 1px solid rgba(15, 111, 63, 0.25);
  transition: border-color 140ms ease, color 140ms ease;
}
.lesson-content a:hover { color: var(--green-800); border-bottom-color: var(--green-700); text-decoration: none; }
.lesson-content ul,
.lesson-content ol { padding-left: 1.4em; color: var(--ink-700); }
.lesson-content li { margin-bottom: 0.5em; }
.lesson-content li > p { margin: 0; }
.lesson-content li > ul,
.lesson-content li > ol { margin-top: 0.3em; }

.lesson-content code {
  background: var(--green-50);
  color: var(--green-900);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  border: 1px solid rgba(15, 111, 63, 0.12);
}
.lesson-content pre {
  background: #0a1612;
  color: #e7f1ec;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.92em;
  border: 1px solid #142019;
  line-height: 1.6;
}
.lesson-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: inherit;
}

.lesson-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--green-500);
  background: var(--green-50);
  color: var(--ink-800);
  border-radius: 0 10px 10px 0;
}
.lesson-content blockquote > :first-child { margin-top: 0; }
.lesson-content blockquote > :last-child { margin-bottom: 0; }

.lesson-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2em 0;
}

.lesson-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.96em;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
.lesson-content table thead { background: var(--green-50); }
.lesson-content table th,
.lesson-content table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.lesson-content table th {
  font-weight: 700;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 0.92em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lesson-content table tbody tr:last-child td { border-bottom: 0; }
.lesson-content table tbody tr:hover { background: var(--paper-soft); }

.lesson-content img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 1em 0;
}

/* GitHub-style alerts: > [!NOTE] / [!IMPORTANT] / etc. */
.callout {
  margin: 1.4em 0;
  padding: 16px 20px 18px;
  border-radius: 12px;
  border-left: 4px solid var(--ink-400);
  background: var(--paper-soft);
  color: var(--ink-800);
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.callout-note      { border-left-color: var(--blue-500);   background: #eff5ff; }
.callout-note .callout-title      { color: var(--blue-500); }
.callout-tip       { border-left-color: var(--green-500);  background: var(--green-50); }
.callout-tip .callout-title       { color: var(--green-700); }
.callout-important { border-left-color: var(--purple-500); background: #f5f3ff; }
.callout-important .callout-title { color: var(--purple-500); }
.callout-warning   { border-left-color: var(--amber-500);  background: var(--amber-100); }
.callout-warning .callout-title   { color: #b8761c; }
.callout-caution   { border-left-color: #e0405e;           background: #ffeef1; }
.callout-caution .callout-title   { color: #c41e3a; }

/* ---------- Lesson pager (prev/next) ---------- */
.lesson-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-800);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}
.pager-link:hover {
  transform: translateY(-3px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--green-800);
}
.pager-prev { text-align: left; }
.pager-next { text-align: right; }
.pager-direction {
  font-size: 0.82rem;
  color: var(--green-700);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pager-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-900);
}

/* ---------- Module overview specific ---------- */
.module-head { margin-bottom: 32px; }
.module-overview { font-size: 1.05rem; }
.module-overview p { color: var(--ink-700); }

.section-h {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 48px 0 18px;
  letter-spacing: -0.015em;
}
.lesson-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.lesson-card {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-900);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}
.lesson-card:hover {
  transform: translateX(2px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.lesson-card-num {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-100), #d6efe1);
  color: var(--green-800);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.lesson-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.lesson-card-body h3 { margin: 2px 0 0; font-size: 1.05rem; font-weight: 700; }
.lesson-card-cta {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-700);
}

.next-module {
  margin-top: 56px;
  padding: 28px 30px;
  background: linear-gradient(135deg, var(--green-50), #ffffff);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
}
.next-module h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.next-module p  { color: var(--ink-700); margin-bottom: 16px; }

/* ---------- Course responsive ---------- */
@media (max-width: 980px) {
  .course-shell { grid-template-columns: 1fr; }
  .course-sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: -400px;
    right: auto;
    width: 360px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(11, 81, 50, 0.12), 0 4px 12px rgba(11, 81, 50, 0.05);
    transition: left 260ms cubic-bezier(.2,.7,.2,1);
    z-index: 60;
  }
  .course-sidebar.is-open { left: 0; }
  .course-sidebar .sidebar-inner {
    padding-top: 18px;
    background: #ffffff;
  }

  /* Backdrop: real element injected by JS, sits behind drawer */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 12, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
    z-index: 55;
  }
  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Show the header burger on mobile */
  .header-burger { display: inline-flex; }

  .lesson-pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
}

@media (max-width: 720px) {
  .lesson-content { font-size: 1rem; line-height: 1.7; }
  .lesson-title { font-size: 1.7rem; }
  .lesson-card { padding: 14px 16px; gap: 14px; }
  .lesson-card-num { width: 44px; height: 44px; font-size: 0.9rem; }
}

