/* =========================================================
   Northland Driving — Design System
   Warm & modern. Palette is built out from the coral already
   in the brand mark, on warm stone neutrals and espresso darks.
   No cold blue-greys anywhere — that is what "warm" means here.

   Tokens are semantic (--accent, --ink, --paper). The older
   names (--sage, --gold, --asphalt) are kept as aliases so
   existing rules keep working; prefer the semantic names in
   anything new.

   Theming: an inline script in each <head> stamps
   data-theme="light|dark" on <html> before first paint, so
   there is exactly one dark block below and no flash.
   ========================================================= */

:root {
  /* ---- Warm stone backgrounds ---- */
  --paper: #faf8f7;
  --paper-2: #f5f0ec;
  --paper-3: #ebe2dc;
  --surface: #ffffff;
  --surface-warm: #fffcfb;

  /* ---- Warm ink (never blue-grey) ---- */
  --ink: #1c1917;
  --ink-soft: #3f3733;
  --muted: #6d625c;
  --faint: #9b8f88;

  /* ---- Warm lines ---- */
  --line: #eae1db;
  --line-2: #d8ccc4;

  /* ---- Accent: clay/coral, taken from the brand mark ---- */
  --accent: #c0533a;
  --accent-hover: #a4432d;
  --accent-light: #fcf0ec;
  --accent-border: #f2d2c6;
  --accent-glow: rgba(192, 83, 58, 0.22);
  --accent-grad: linear-gradient(135deg, #d4674a 0%, #a8462f 100%);

  /* ---- Highlight: soft blush for badges and flags ---- */
  --highlight: #b4552f;
  --highlight-hover: #94421f;
  --highlight-bg: #fbeee8;
  --highlight-border: #f1d7cc;
  --highlight-ink: #8a3a22;
  --highlight-grad: linear-gradient(135deg, #cf7a4e 0%, #a8542c 100%);

  /* ---- Espresso dark panels (warm, not charcoal-blue) ---- */
  --dark: #201814;
  --dark-2: #2a201b;
  --dark-3: #3a2c25;
  --dark-line: #4c3a31;

  /* ---- Legacy aliases — existing rules resolve through these ---- */
  --sage: var(--accent);
  --sage-hover: var(--accent-hover);
  --sage-light: var(--accent-light);
  --sage-border: var(--accent-border);
  --sage-glow: var(--accent-glow);
  --gold: var(--highlight);
  --gold-hover: var(--highlight-hover);
  --gold-bg: var(--highlight-bg);
  --gold-border: var(--highlight-border);
  --gold-ink: var(--highlight-ink);
  --gold-grad: var(--highlight-grad);
  --asphalt: var(--dark);
  --asphalt-2: var(--dark-2);
  --asphalt-3: var(--dark-3);
  --asphalt-line: var(--dark-line);

  /* ---- Typography ---- */
  --f-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Shape ---- */
  --container: 1140px;
  --header-h: 74px;
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* ---- Elevation (warm-tinted, not neutral black) ---- */
  --shadow-sm: 0 2px 4px rgba(40, 26, 20, 0.04), 0 1px 2px rgba(40, 26, 20, 0.05);
  --shadow: 0 4px 14px -2px rgba(40, 26, 20, 0.06), 0 12px 28px -4px rgba(40, 26, 20, 0.07);
  --shadow-lg: 0 18px 42px -6px rgba(40, 26, 20, 0.11), 0 6px 16px -2px rgba(40, 26, 20, 0.05);
  --shadow-gold: 0 6px 18px rgba(180, 85, 47, 0.26);
  --shadow-sage: 0 8px 24px rgba(192, 83, 58, 0.24);

  /* ---- Fixed header surface ---- */
  --header-bg: rgba(250, 248, 247, 0.84);
  --header-bg-stuck: rgba(250, 248, 247, 0.95);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

/* =========================================================
   Dark theme — warm espresso, not blue-black.
   Applied by [data-theme="dark"], which the head script sets
   from a saved choice or the OS preference.
   ========================================================= */
:root[data-theme="dark"] {
  --paper: #17120f;
  --paper-2: #1e1815;
  --paper-3: #2a211c;
  --surface: #211a16;
  --surface-warm: #271f1a;

  --ink: #f8f3ef;
  --ink-soft: #e0d4cc;
  --muted: #a89a91;
  --faint: #7e716a;

  --line: #332a25;
  --line-2: #473a33;

  /* Coral lifts on a dark ground so it keeps its contrast */
  --accent: #e8785a;
  --accent-hover: #f29074;
  --accent-light: rgba(232, 120, 90, 0.14);
  --accent-border: rgba(232, 120, 90, 0.38);
  --accent-glow: rgba(232, 120, 90, 0.28);
  --accent-grad: linear-gradient(135deg, #e8785a 0%, #c0533a 100%);

  --highlight: #e09068;
  --highlight-hover: #eda67f;
  --highlight-bg: rgba(224, 144, 104, 0.15);
  --highlight-border: rgba(224, 144, 104, 0.36);
  --highlight-ink: #f2bd9c;
  --highlight-grad: linear-gradient(135deg, #e09068 0%, #b4552f 100%);

  --dark: #120e0b;
  --dark-2: #1a1411;
  --dark-3: #261d18;
  --dark-line: #3a2c25;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 6px 18px rgba(224, 144, 104, 0.22);
  --shadow-sage: 0 8px 24px rgba(232, 120, 90, 0.22);

  --header-bg: rgba(23, 18, 15, 0.82);
  --header-bg-stuck: rgba(23, 18, 15, 0.94);

  color-scheme: dark;
}

/* No-JS fallback: honour the OS preference when nothing stamped
   data-theme. Kept to the same values as the block above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #17120f;
    --paper-2: #1e1815;
    --paper-3: #2a211c;
    --surface: #211a16;
    --surface-warm: #271f1a;
    --ink: #f8f3ef;
    --ink-soft: #e0d4cc;
    --muted: #a89a91;
    --faint: #7e716a;
    --line: #332a25;
    --line-2: #473a33;
    --accent: #e8785a;
    --accent-hover: #f29074;
    --accent-light: rgba(232, 120, 90, 0.14);
    --accent-border: rgba(232, 120, 90, 0.38);
    --highlight: #e09068;
    --highlight-bg: rgba(224, 144, 104, 0.15);
    --highlight-border: rgba(224, 144, 104, 0.36);
    --highlight-ink: #f2bd9c;
    --dark: #120e0b;
    --dark-2: #1a1411;
    --dark-3: #261d18;
    --dark-line: #3a2c25;
    --header-bg: rgba(23, 18, 15, 0.82);
    --header-bg-stuck: rgba(23, 18, 15, 0.94);
    color-scheme: dark;
  }
}

/* =========================================================
   Base & Resets
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Anchor targets must clear the fixed header. */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal, .card, .btn, .qa .ans {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink-soft);
  background-color: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem; /* 17px base */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* `clip`, not `hidden`: it stops sideways scroll without turning body
     into a scroll container, which is what broke the pinned header. */
  overflow-x: clip;
  /* The header is fixed, so the page needs to start below it. */
  padding-top: var(--header-h);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

::selection {
  background: var(--gold-bg);
  color: var(--gold-ink);
}

/* Headings with Outfit font & fluid sizing */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h4 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
}

/* =========================================================
   Layout Helpers
   ========================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-sm {
  padding: clamp(48px, 6vw, 80px) 0;
}

.narrow {
  max-width: 740px;
}

.center {
  text-align: center;
}

.center .lead,
.center .eyebrow {
  margin-inline: auto;
}

/* =========================================================
   Typography Helpers & Badges
   ========================================================= */
.mono {
  font-family: var(--f-mono);
}

/* Eyebrows: Warm Gold Badge Style */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(180, 85, 47, 0.06);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  flex: 0 0 auto;
}

.lead {
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  color: var(--muted);
  max-width: 58ch;
  margin-top: 18px;
  line-height: 1.62;
}

.kicker {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* =========================================================
   Buttons & Links
   ========================================================= */
.btn {
  --bg: var(--ink);
  --fg: #ffffff;
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
  position: relative;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

/* Soft Warm Sage Primary Button */
.btn-primary {
  --bg: var(--sage);
  --fg: #ffffff;
  --bd: var(--sage);
  box-shadow: var(--shadow-sage);
}

.btn-primary:hover {
  --bg: var(--sage-hover);
  --bd: var(--sage-hover);
  box-shadow: 0 12px 28px rgba(192, 83, 58, 0.35);
}

.btn-dark {
  --bg: var(--ink);
  --fg: #ffffff;
  --bd: var(--ink);
}

.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  --bd: var(--line-2);
}

.btn-ghost:hover {
  --bd: var(--sage);
  --fg: var(--sage);
  background: var(--sage-light);
}

.btn-light {
  --bg: #ffffff;
  --fg: var(--ink);
  --bd: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: var(--paper-2);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 1.05rem;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.center .btn-row {
  justify-content: center;
}

.textlink {
  color: var(--sage);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s var(--ease);
}

.textlink svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.textlink:hover {
  color: var(--sage-hover);
}

.textlink:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   Glassmorphism Header & Navigation
   ========================================================= */
/* Fixed, not sticky. `body` carries `overflow-x: clip` to stop sideways
   scroll; when that was `hidden` it made body a scroll container and
   silently killed `position: sticky` here — the header would not pin. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 222, 212, 0.6);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-stuck {
  background: var(--header-bg-stuck);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(17, 22, 27, 0.84);
    border-bottom-color: rgba(44, 56, 71, 0.6);
  }
  .site-header.is-stuck {
    background: rgba(17, 22, 27, 0.95);
    border-bottom-color: var(--line);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-bounce);
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: var(--r-full);
  position: relative;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(40, 26, 20, 0.05);
}

@media (prefers-color-scheme: dark) {
  .main-nav a:hover {
    background: rgba(240, 244, 248, 0.08);
  }
}

.main-nav a[aria-current="page"] {
  color: var(--sage);
  font-weight: 700;
  background: var(--sage-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle (light / dark) */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease), transform 0.18s var(--ease);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Show the icon for the theme you would switch *to*. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.nav-toggle:hover {
  background: rgba(40, 26, 20, 0.04);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .header-inner {
    gap: 12px;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    background: rgba(250, 248, 247, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(20px, 5vw, 44px) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  @media (prefers-color-scheme: dark) {
    .main-nav {
      background: rgba(17, 22, 27, 0.97);
    }
  }
  .main-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 13px 18px;
    font-size: 1.05rem;
    border-radius: var(--r-sm);
  }
  .header-actions .btn {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.02rem;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   Hero Section
   ========================================================= */
/* =========================================================
   Hero Section & Full-Width Cinematic Banner Architecture
   ========================================================= */
/* Type-only hero. With no banner image below it the headline carries the
   whole opening, so it gets real vertical room rather than the tighter
   padding that suited a hero sitting on top of a picture. */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content.center {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5.8vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero .lead {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
  max-width: 58ch;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--muted);
}

.center-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 36px;
}

/* Centered Benefit Pills Row */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.hero-pills .item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-pills .item:hover {
  transform: translateY(-2px);
  border-color: var(--sage-border);
  box-shadow: var(--shadow);
  background: var(--surface-warm);
}

.hero-pills .item svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
  flex: 0 0 auto;
}

/* Legacy .hero-figure compatibility for other pages/images */
.hero-figure {
  position: relative;
  border-radius: var(--r-lg);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--sage-border), var(--shadow-lg);
}

.hero-img,
img.hero-img,
img[src*="hero"],
img[src*="instructor"],
img[src*="og"] {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--r-lg) - 4px);
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.hero-figure:hover .hero-img,
.portrait:hover img {
  transform: scale(1.025);
}

/* Smooth Responsive Scaling for Hero across Tablet and Mobile */
@media (max-width: 900px) {
  .hero-pills {
    gap: 10px 14px;
    padding-top: 22px;
  }
  .hero-pills .item {
    font-size: 0.88rem;
    padding: 7px 14px;
  }
}

@media (max-width: 600px) {
  .center-btn-row {
    flex-direction: column;
    width: 100%;
  }
  .center-btn-row .btn {
    width: 100%;
  }
}

/* =========================================================
   Generic Dark Panel / Asphalt Theme
   ========================================================= */
.panel-dark {
  background: var(--asphalt);
  color: #eceef1;
  position: relative;
  overflow: hidden;
}

.panel-dark h1,
.panel-dark h2,
.panel-dark h3 {
  color: #ffffff;
}

.panel-dark .lead {
  color: #b7bcc4;
}

.panel-dark .eyebrow {
  color: var(--gold-ink);
  background: rgba(180, 85, 47, 0.18);
  border-color: rgba(180, 85, 47, 0.4);
}

.panel-dark .eyebrow::before {
  background: var(--gold);
}

.blueprint {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 75%);
}

/* =========================================================
   Section Headings
   ========================================================= */
.sec-head {
  max-width: 660px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.center .sec-head {
  margin-inline: auto;
}

/* =========================================================
   Cards & Feature Grids
   ========================================================= */
.grid {
  display: grid;
  gap: 22px;
}

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 990px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-border);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--sage-light);
  color: var(--sage);
  border: 1px solid var(--sage-border);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.06);
  background: var(--sage);
  color: #ffffff;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* =========================================================
   Steps / Stages Route
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 840px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-border);
}

.step .n {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: var(--r-full);
  display: inline-block;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 1.02rem;
}

.step .glyph {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  color: var(--line-2);
  transition: color 0.25s var(--ease);
}

.step:hover .glyph {
  color: var(--sage);
}

/* =========================================================
   Pricing Cards
   ========================================================= */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .tiers {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tier:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tier.is-featured {
  border: 2px solid var(--sage);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--sage-light) 100%);
}

/* Featured Badge in Warm Gold */
.tier .flag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--gold-grad);
  color: #ffffff;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-gold);
}

.tier .t-name {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier .price {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 3.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin: 16px 0 6px;
}

.tier .price .per {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--f-body);
}

.tier .sub {
  color: var(--muted);
  font-size: 0.96rem;
  min-height: 2.6em;
}

.tier ul {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
}

.tier li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.tier li svg {
  width: 20px;
  height: 20px;
  color: var(--sage);
  flex: 0 0 auto;
  margin-top: 2px;
}

.tier .btn {
  margin-top: auto;
  width: 100%;
}

/* =========================================================
   Timeline & Facts (Permit Page)
   ========================================================= */
.timeline {
  position: relative;
  margin-top: 16px;
  padding-left: 44px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(var(--line-2) 0 8px, transparent 8px 16px);
}

.tl-item {
  position: relative;
  padding: 0 0 36px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item .dot {
  position: absolute;
  left: -44px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 0 4px var(--paper-2);
}

.tl-item h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.tl-item p {
  color: var(--muted);
  font-size: 1.02rem;
}

.tl-item p b {
  color: var(--ink);
}

/* Fact Blocks */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 740px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.fact h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fact h3 .num {
  font-family: var(--f-mono);
  color: var(--sage);
  font-size: 0.9em;
  font-weight: 700;
}

.fact ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.fact ul li {
  margin: 0.6em 0;
}

.fact ul li b {
  color: var(--ink);
}

.cost {
  display: inline-block;
  background: var(--asphalt);
  color: var(--gold);
  font-family: var(--f-mono);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.92em;
}

/* Notice Banner */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold-ink);
  padding: 18px 22px;
  border-radius: var(--r);
  font-size: 0.98rem;
  max-width: 76ch;
  box-shadow: var(--shadow-sm);
}

.notice svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Link Lists */
.linklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.linklist a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 11px 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}

.linklist a:hover {
  border-color: var(--sage);
  color: var(--sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.linklist a svg {
  width: 15px;
  height: 15px;
  color: var(--sage);
}

/* =========================================================
   About Page & Photo Frame
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--asphalt-2);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.portrait:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--sage-border), var(--shadow-lg);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The source is landscape (1500x1200) in a 4:5 portrait frame, so cover
     shows roughly the middle 64% of its width. Mary stands right of centre;
     a default 50% crop pushes her against the right edge. Bias the window
     right so she sits in the frame. Revisit if the photo is ever re-shot
     portrait. */
  object-position: 62% center;
  transition: transform 0.5s var(--ease);
}

.portrait:hover img {
  transform: scale(1.03);
}

.portrait .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #6b7585;
  text-align: center;
  padding: 24px;
}

.portrait .ph svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  color: #4a5462;
}

/* Floating Glassmorphism Tag */
.portrait .frame-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(20, 25, 30, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portrait .frame-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.pull {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--sage);
  margin: 8px 0 24px;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 520px) {
  .values {
    grid-template-columns: 1fr;
  }
}

.value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value svg {
  width: 24px;
  height: 24px;
  color: var(--sage);
  flex: 0 0 auto;
  margin-top: 2px;
}

.value h4 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.value p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Stat Strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 620px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: var(--surface);
  padding: 32px 28px;
  text-align: center;
}

.stat .big {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat .lbl {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq {
  max-width: 780px;
}

.center .faq {
  margin-inline: auto;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--line);
}

.qa button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 24px 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.18s var(--ease);
}

.qa button:hover {
  color: var(--sage);
}

.qa button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.qa .icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
}

.qa .icon::before,
.qa .icon::after {
  content: "";
  position: absolute;
  background: var(--sage);
  border-radius: 2px;
  transition: transform 0.24s var(--ease);
}

.qa .icon::before {
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
}

.qa .icon::after {
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
}

.qa[aria-expanded="true"] .icon::after {
  transform: scaleY(0);
}

.qa .ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s var(--ease);
}

.qa .ans p {
  color: var(--muted);
  margin: 0 0 24px 6px;
  max-width: 66ch;
  line-height: 1.65;
}

/* =========================================================
   CTA Band & Contact Form
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  max-width: 18ch;
}

.cta-band p {
  color: #b7bcc4;
  margin-top: 12px;
  max-width: 46ch;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 840px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.book-form {
  background: var(--asphalt-2);
  border: 1px solid var(--asphalt-line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa4b2;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--asphalt-line);
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.18s, outline 0.18s, box-shadow 0.18s;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7787;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(180, 85, 47, 0.2);
}

.book-form .btn {
  width: 100%;
  margin-top: 8px;
}

.book-form .fine {
  color: #838e9e;
  font-size: 0.84rem;
  text-align: center;
  margin: 14px 0 0;
}

.contact-lines {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.contact-lines li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-lines li svg {
  width: 22px;
  height: 22px;
  color: var(--sage);
  flex: 0 0 auto;
}

.contact-lines a {
  font-weight: 600;
  color: var(--ink);
}

.contact-lines a:hover {
  color: var(--sage);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--asphalt);
  color: #a3acb9;
  padding: clamp(56px, 7vw, 84px) 0 42px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}

@media (max-width: 840px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.site-footer .brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-blurb {
  font-size: 0.95rem;
  color: #848e9c;
  max-width: 36ch;
}

.site-footer h4 {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #727c8a;
  margin: 0 0 16px;
}

.site-footer nav a {
  display: block;
  padding: 6px 0;
  color: #c0c6cf;
  font-size: 0.96rem;
  transition: color 0.18s var(--ease);
}

.site-footer nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding-top: 26px;
  color: #727c8a;
  font-size: 0.86rem;
}

.footer-bottom .owned {
  font-family: var(--f-mono);
  letter-spacing: 0.03em;
}

/* =========================================================
   Reveal Animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* Skip Link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* Lane Accent Rule */
.lane-rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 24px, transparent 24px 44px);
  opacity: 0.75;
}

/* =========================================================
   Study Quiz Component
   ========================================================= */
.quiz {
  max-width: 740px;
  margin-inline: auto;
}

.quiz-progress {
  height: 8px;
  background: var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz-progress > span {
  display: block;
  height: 100%;
  background: var(--sage);
  border-radius: var(--r-full);
  transition: width 0.4s var(--ease);
}

.quiz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.quiz-meta b {
  color: var(--ink);
}

.quiz-q {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.38rem;
  letter-spacing: -0.01em;
  line-height: 1.28;
  margin: 0 0 24px;
}

.quiz-opts {
  display: grid;
  gap: 12px;
}

.quiz-opt {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.18s;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--sage-border);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quiz-opt:disabled {
  cursor: default;
}

.quiz-opt:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.quiz-opt .mk {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: all 0.18s;
}

.quiz-opt .mk svg {
  width: 14px;
  height: 14px;
}

.quiz-opt.correct {
  border-color: var(--sage);
  background: var(--sage-light);
  color: var(--ink);
}

.quiz-opt.correct .mk {
  border-color: var(--sage);
  background: var(--sage);
}

.quiz-opt.wrong {
  border-color: #d94f37;
  background: #fdf0ed;
}

.quiz-opt.wrong .mk {
  border-color: #d94f37;
  background: #d94f37;
}

.quiz-explain {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.quiz-result {
  text-align: center;
}

.quiz-score {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 3.8rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.quiz-score small {
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 700;
}

.quiz-msg {
  color: var(--muted);
  margin: 12px auto 28px;
  font-size: 1.08rem;
  max-width: 42ch;
}

.quiz-result .btn-row {
  justify-content: center;
  margin-top: 0;
}
