/* Geist variable, self-hosted (taste-skill 4.1: Inter discouraged as default). */
@font-face {
  font-family: Geist;
  src: url(/fonts/geist-var.woff2) format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* SHAPE LOCK (4.4): interactive 8px · panel 12px. Nothing rounder.
   THEME LOCK (4.11): one light theme throughout.
   COLOR (4.2): neutral base + ink-black actions. No brass, no purple, no glow.
   STRUCTURE (4.4): hairlines and whitespace do the grouping. Cards only where
   elevation means something, which here is the form alone.                   */
:root {
  --paper: #FFFFFF;
  --paper-2: #F7F8F8;
  --ink: #0C1116;
  --ink-2: #414B54;
  --ink-3: #6B757E;
  --rule: #E4E7E9;
  --rule-2: #EFF1F2;
  --accent: #0F6E4E;        /* used sparingly, never as a fill */

  --r-interactive: 8px;
  --r-panel: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 3.4vw, 2.875rem); letter-spacing: -0.032em; line-height: 1.12; }
h2 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); letter-spacing: -0.02em; }
h3 { font-size: 0.9375rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.75rem; }
.section { padding: 4.25rem 0; border-top: 1px solid var(--rule-2); }
.section-title { margin-bottom: 0.75rem; max-width: 26ch; }
.section-lead { color: var(--ink-3); max-width: 56ch; margin: 0 0 2.5rem; font-size: 0.9375rem; }
.sprite { display: none; }

/* ================= hero ================= */

.hero { padding: 4rem 0 3.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: 4.5rem;
  align-items: start;
}

.hero-copy { max-width: 32rem; padding-top: 0.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}
.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 1.1rem 0 0;
  max-width: 38ch;
}

.hero-note {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-2);
  font-size: 0.875rem;
  color: var(--ink-3);
  max-width: 34rem;
}

/* ================= form (the one elevated surface) ================= */

.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(12, 17, 22, 0.04), 0 8px 24px -16px rgba(12, 17, 22, 0.18);
  scroll-margin-top: 2rem;
}
.form-title { font-size: 1rem; margin-bottom: 0.35rem; }
.form-sub { font-size: 0.8125rem; color: var(--ink-3); margin: 0 0 1.25rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { margin-bottom: 0.875rem; display: flex; flex-direction: column; gap: 0.375rem; }

.field label { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-interactive);
  padding: 0.55rem 0.7rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { resize: vertical; min-height: 3.75rem; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #CBD1D6; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(12, 17, 22, 0.08);
}

button, .button-primary {
  display: inline-block;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--paper);                  /* 17.9:1 on --ink */
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-interactive);
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 140ms ease, transform 100ms ease;
}
button { width: 100%; padding: 0.7rem 1.15rem; }
button:hover:not(:disabled), .button-primary:hover { background: #1D262E; color: var(--paper); }
button:active:not(:disabled), .button-primary:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: default; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.status { margin: 0.75rem 0 0; font-weight: 500; font-size: 0.875rem; }
.status:empty { margin: 0; }
.status.err { color: #A32316; }
.status.ok { color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= metric row (hairlines, not cards) ================= */

.strip { padding: 0 0 4rem; }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.stats li { padding: 1.25rem 1.5rem 0 0; }
.stats li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule-2); }
.stats strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stats span { font-size: 0.875rem; color: var(--ink-3); }

/* ================= course ================= */

.slab-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 2.25rem;
}
.slab-head p { color: var(--ink-3); font-size: 0.9375rem; margin: 0.6rem 0 0; max-width: 42ch; }

.rail { margin: 0; display: grid; gap: 0.9rem; align-content: start; }
.rail > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
.rail dt { font-size: 0.875rem; color: var(--ink-3); }
.rail dd { margin: 0; font-size: 0.875rem; color: var(--ink); font-weight: 500; }


.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.5rem;
}
.modules li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--rule-2);
  align-items: baseline;
}
.modules .num { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.modules .mod { color: var(--ink); font-weight: 500; font-size: 0.9375rem; }
.modules .mod-desc { grid-column: 2; color: var(--ink-3); font-size: 0.875rem; margin: 0.15rem 0 0; }

/* ================= what you'll learn ================= */

.learn {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.5rem;
}
.learn li { padding: 1.5rem 0; border-top: 1px solid var(--rule-2); }
.learn h3 { margin: 0.75rem 0 0.35rem; }
.learn p { margin: 0; color: var(--ink-3); font-size: 0.9375rem; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-interactive);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.badge svg { width: 1rem; height: 1rem; fill: currentColor; }
.step { display: none; }

/* ================= who ================= */

.who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
.who-grid p { color: var(--ink-2); margin: 0 0 1rem; }
.who-grid p:last-child { margin-bottom: 0; }

/* ================= access ================= */

.price-card {
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}
.price-term { font-size: 0.875rem; color: var(--ink-3); margin: 0 0 0.35rem; }
.price-figure {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.5rem;
  line-height: 1;
}
.price-figure span { font-size: 0.9375rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.price-note { font-size: 0.8125rem; color: var(--ink-3); margin: 0; }

.includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
}
.includes li { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.9375rem; color: var(--ink); }
.includes li::before {
  content: '';
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-0.15rem);
}

/* ================= closing cta ================= */

.cta { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { margin: 0; }
.cta p { color: var(--ink-3); font-size: 0.9375rem; margin: 0.35rem 0 0; }

/* ================= footer ================= */

footer { border-top: 1px solid var(--rule); padding: 2.25rem 0 2.75rem; }
.foot { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; }
.foot p { margin: 0; font-size: 0.875rem; }
.foot-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 500; color: var(--ink); }
.foot-mark { width: 1.125rem; height: 1.125rem; border-radius: 4px; flex: none; }
.foot-note { color: var(--ink-3); flex-basis: 100%; max-width: 52ch; }

/* ================= plain pages served by the functions ================= */

.plain-main { padding: 4.5rem 0; }
.plain-main h1 { margin-bottom: 0.75rem; }
.eyebrow { color: var(--ink-3); font-size: 0.8125rem; margin-bottom: 0.6rem; }
.standfirst { font-size: 1.0625rem; color: var(--ink-2); }
.lede { color: var(--ink-2); }
.band, .band-white { background: var(--paper); }

/* ================= responsive ================= */

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { max-width: none; }
  .slab-head { grid-template-columns: 1fr; gap: 1.75rem; }
  .who-grid { grid-template-columns: 1fr; gap: 0; }
  .price-card { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 44rem) {
  .section { padding: 3rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .strip { padding: 0 0 2.5rem; }
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 1rem 0; border-top: 1px solid var(--rule-2); }
  .stats li:first-child { border-top: 0; }
  .stats li + li { padding-left: 0; border-left: 0; }
  .modules, .learn { grid-template-columns: 1fr; column-gap: 0; }
  .includes { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .rail > div { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; }
}

/* ================= colour ================= */

:root { --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; }

.badge { background: #ECF5F1; border-color: #CFE6DB; color: var(--accent); }
.modules .num { color: var(--accent); font-weight: 500; }
.section-tint { background: #F8FAF9; }

.hero-graphic { display: block; width: 15rem; max-width: 100%; height: auto; margin: 2rem 0 0; }

/* ================= simulated session ================= */

.showcase { padding: 0 0 4rem; }

.term {
  margin: 0;
  border: 1px solid #1B242C;
  border-radius: var(--r-panel);
  background: #0C1116;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 17, 22, 0.06), 0 24px 60px -34px rgba(12, 17, 22, 0.55);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: #121A21;
  border-bottom: 1px solid #1B242C;
}
.tl { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #2A343D; flex: none; }
.term-title {
  margin-left: 0.65rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #6B757E;
}

.term-body { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); }

.term-nav {
  padding: 1.05rem 1rem;
  border-right: 1px solid #1B242C;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.95;
  color: #8A949C;
}
.term-root { color: #C7CED4; margin: 0 0 0.35rem; }
.term-nav ul { list-style: none; margin: 0; padding: 0; }
.term-nav .d { color: #7FB39A; }
.term-nav .s { padding-left: 1.1rem; }
.term-nav .f2 { padding-left: 2.2rem; }

.term-main {
  padding: 1.2rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: #C7CED4;
}
.term-main .ln { margin: 0; }
.term-main .tool { color: #A7B1B9; }
.term-main .out { color: #C7CED4; margin-top: 0.7rem; max-width: 62ch; }
.term-main .second { margin-top: 1.15rem; }
.pr { color: #FFFFFF; margin-right: 0.4rem; }
.ok { color: #3FBF8F; margin-right: 0.45rem; }
.pa { color: #8FB6D6; }
.mu { color: #6B757E; }

.caret {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  background: #3FBF8F;
  vertical-align: text-bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.1s steps(1, end) infinite; }
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.term-cap { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--ink-3); }

@media (max-width: 52rem) {
  .term-body { grid-template-columns: 1fr; }
  .term-nav { border-right: 0; border-bottom: 1px solid #1B242C; }
  .term-main { font-size: 0.75rem; }
}

/* ================= hero: demo left of the registration ================= */

.hero-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem);
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}
.term-wrap { min-width: 0; }
.hero-copy { max-width: 46rem; }

/* ================= module progression bars ================= */

.modules li { position: relative; padding-bottom: 1.5rem; }
.bar {
  grid-column: 2;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0F6E4E, #2E9877);
  margin-top: 0.55rem;
}
.modules li:nth-child(1) .bar { width: 24%; background: #C8E4D8; }
.modules li:nth-child(2) .bar { width: 38%; background: #A8D8C3; }
.modules li:nth-child(3) .bar { width: 52%; background: #7FC7AB; }
.modules li:nth-child(4) .bar { width: 66%; background: #4FAF8C; }
.modules li:nth-child(5) .bar { width: 82%; background: #26946F; }
.modules li:nth-child(6) .bar { width: 100%; }

/* ================= more colour ================= */

.section-tint { background: #F7F9FA; }

/* alternate the long white run so the page is not one flat field */
.strip { background: #FAFBFB; padding-top: 2.5rem; }
.stats { border-top: 0; }
.stats strong { color: var(--accent); }
.stats span { color: var(--ink-2); }

.hero { background: linear-gradient(180deg, #F6FAF8 0%, #FFFFFF 62%); }

button, .button-primary {
  background: var(--accent);            /* 6.2:1 with white text */
  border-color: var(--accent);
}
button:hover:not(:disabled), .button-primary:hover { background: #0C5A40; border-color: #0C5A40; }

.form-card { border-top: 3px solid var(--accent); }

.chip { color: var(--accent); font-weight: 500; }

.rail dd { color: var(--ink); }
.rail dt { color: var(--accent); }

.who { border-left: 3px solid #CFE6DB; padding-left: 1.75rem; }

.cta {
  background: #F7F9FA;
  border: 1px solid var(--rule);
  border-radius: var(--r-panel);
  padding: 2.25rem;
}

@media (max-width: 60rem) {
  .hero-demo { grid-template-columns: 1fr; }
  .who { padding-left: 1.25rem; }
}

/* ================= what you'll work with / keep ================= */

.cover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }

.cover-head {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #CFE6DB;
}

.cover-list { margin: 0; display: grid; }
.cover-list > div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule-2); }
.cover-list > div:last-child { border-bottom: 0; }
.cover-list dt { font-weight: 500; color: var(--ink); font-size: 0.9375rem; margin-bottom: 0.2rem; }
.cover-list dd { margin: 0; color: var(--ink-3); font-size: 0.875rem; line-height: 1.6; }
.cover-list code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  background: #F1F6F4;
  border: 1px solid #DCEAE4;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  color: var(--accent);
}
.cover-list dd code { color: var(--ink-2); background: var(--paper-2); border-color: var(--rule); }

@media (max-width: 60rem) {
  .cover-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.form-note { font-size: 0.75rem; color: var(--ink-3); margin: 0.7rem 0 0; line-height: 1.5; }

/* ================= hero: four-cell grid ================= */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem);
  gap: 2.25rem 2.5rem;
  align-items: end;
}
.hero-grid > .term-wrap,
.hero-grid > .form-card { align-self: start; }

.hero-copy { max-width: 34rem; padding-top: 0; }
.hero-copy .sub { margin-bottom: 0; }

.hero-aside {
  border-left: 3px solid #CFE6DB;
  padding: 0.15rem 0 0.15rem 1.25rem;
}
.hero-aside p { font-size: 0.9375rem; color: var(--ink-3); margin: 0 0 0.6rem; }
.hero-aside-note { color: var(--ink-2); font-weight: 500; margin: 0 !important; }

.hero { padding: 3.25rem 0 3.5rem; }

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
  .hero-copy { max-width: none; }
}

/* ================= navigation ================= */
/* Single line at desktop, 64px tall (taste-skill 4.7 caps this at 80px). */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule-2);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex: none;
}
.brand img { display: block; border-radius: 7px; }
.brand:hover { color: var(--ink); }

.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta { padding: 0.45rem 1rem; font-size: 0.875rem; flex: none; }

/* sections clear the sticky bar when jumped to */
#course, #learn, #access, .form-card { scroll-margin-top: 5rem; }

@media (max-width: 44rem) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-inner { height: 58px; gap: 1rem; }
}

/* ---- nav: colour ---- */

.nav {
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.94), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(15, 110, 78, 0.04);
}
/* accent hairline along the very top edge */
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #0F6E4E, #2E9877 45%, #7FE0B0);
}
.nav { position: sticky; }

.nav-links a { position: relative; color: var(--ink-2); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.brand span { color: var(--ink); }

/* ---- hero metrics occupy the top-right cell ---- */

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 0;
  gap: 0;
}
.hero-stats li {
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 2px solid #CFE6DB;
  border-top: 0;
}
.hero-stats li + li { padding-left: 1rem; border-left: 2px solid #CFE6DB; }
.hero-stats strong { font-size: 1rem; }
.hero-stats span { font-size: 0.8125rem; }

/* ================= background ================= */
/* Soft washes only. The repeating grid read as tacky, so no tiled geometry. */

/* the hero sits on a soft wash above the pattern */
.hero {
  background: linear-gradient(180deg, #F7F9FA 0%, #FFFFFF 78%);
}

/* alternating sections keep their own ground so the pattern reads as rhythm */
.section { background: var(--paper); }
.section:nth-of-type(even) { background: #FCFDFD; }
.section-tint { background: #F7F9FA; }

/* panels stay opaque so text never sits on the pattern */
.form-card, .term, .price-card, .cta { background-color: var(--paper); }
.term { background-color: #0C1116; }
.cta { background: #F7F9FA; }

footer { background: var(--paper); }

/* ---- why: three columns with accent rules ---- */

.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 3.5rem; }
.why-grid > div { border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.why-grid h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.why-grid p { margin: 0 0 0.85rem; color: var(--ink-3); font-size: 0.9375rem; }
.why-grid p:last-child { margin-bottom: 0; }

@media (max-width: 60rem) { .why-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ================= instructor ================= */

.bio-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }

.bio-name { font-size: 1.0625rem; font-weight: 600; color: var(--ink); margin: 0; }

.bio-list { margin: 0; border-top: 2px solid var(--ink); }
.bio-list > div:first-child { padding-top: 0.9rem; }
.bio-list > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.bio-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.15rem;
}
.bio-list dd { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

@media (max-width: 60rem) {
  .bio-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .bio-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

.foot-brand a { color: var(--ink); text-decoration-thickness: 1px; }
.foot-brand a:hover { color: var(--accent); }

.bio-photo {
  display: block;
  width: 100%;
  height: 18rem;              /* explicit: aspect-ratio loses to the intrinsic size */
  object-fit: cover;
  object-position: 50% 38%;   /* framed on the face, not the torso */
  border-radius: var(--r-panel);
  border: 1px solid var(--rule);
  margin: 0 0 1.1rem;
}
@media (max-width: 60rem) { .bio-photo { width: 11rem; height: 13.25rem; } }

.guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

/* PDFs read slightly warmer than the markdown and data files */
.term-nav li[class*="f"]:not(.mu) { color: #8A949C; }
.term-nav .f2 { color: #9AA6AE; }
.term-nav .mu { color: #5C666E; }

.req { color: var(--ink-2); font-size: 0.9375rem; }
.req strong { color: var(--ink); font-weight: 600; }
