/* ============================================================
   Alder — main.css
   Warm riso / Swiss editorial ledger. Flat is the brand:
   no shadows, no gradients. Tokens from Design System v1.2.
   ============================================================ */

:root {
  /* Surfaces */
  --color-cream: #F2EADC;
  --color-paper: #EDE4D1;

  /* Anchor */
  --color-charcoal-50:  #F5F3EF;
  --color-charcoal-100: #E8E5DE;
  --color-charcoal-200: #CBC6BC;
  --color-charcoal-300: #A8A296;
  --color-charcoal-400: #857F73;
  --color-charcoal-500: #656055;
  --color-charcoal-600: #4D4841;
  --color-charcoal-700: #3A3733;
  --color-charcoal-800: #282521;
  --color-charcoal-900: #161411;

  /* Brand */
  --color-rose-100: #F2DFDF;
  --color-rose-300: #D4A5A5;
  --color-rose-500: #AE7070;
  --color-rose-700: #784646;
  --color-cornflower-100: #DCE3EF;
  --color-cornflower-300: #8FA5C9;
  --color-cornflower-400: #7089B4;
  --color-cornflower-500: #556F9F;
  --color-mustard-100: #F4E7C2;
  --color-mustard-300: #C9A961;
  --color-mustard-500: #917636;
  --color-mustard-700: #56431D;
  --color-brick-100: #F4CFC8;
  --color-brick-300: #B85A4A;
  --color-brick-400: #9A4638;
  --color-brick-500: #7E362A;

  /* On-dark */
  --cream-78: rgba(242, 234, 220, 0.78);
  --cream-65: rgba(242, 234, 220, 0.65);
  --cream-40: rgba(242, 234, 220, 0.4);
  --cream-18: rgba(242, 234, 220, 0.18);

  /* Semantic */
  --color-text: var(--color-charcoal-700);
  --color-text-muted: var(--color-charcoal-500);
  --color-border: var(--color-charcoal-200);
  --color-border-subtle: var(--color-charcoal-100);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease-brand: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-brand-enter: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-default: 250ms;
  --duration-slow: 400ms;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --nav-h: 64px;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
  /* Paper-fiber texture: two faint dot fields, no gradients in the visual sense */
  background-image:
    radial-gradient(rgba(58, 55, 51, 0.025) 1px, transparent 1px),
    radial-gradient(rgba(58, 55, 51, 0.018) 1px, transparent 1px);
  background-size: 28px 28px, 17px 17px;
  background-position: 0 0, 9px 7px;
}

/* ---------- Type utilities ---------- */
.t-display {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.t-h1 {
  font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.t-h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.t-h4 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 600;
}
.t-h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
}
.t-body-lg { font-size: 1.125rem; line-height: 1.6; }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-charcoal-600);
  max-width: 38em;
}

.marker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal-500);
  display: flex;
  align-items: center;
  gap: 10px;
}
.marker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-brick-300);
  flex: none;
}

.control-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal-500);
  margin-bottom: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-charcoal-700);
  color: var(--color-cream);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus-visible { left: 0; }

/* ---------- Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
}
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }

.icon-tile {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-charcoal-300);
  border-radius: var(--radius-md);
  display: inline-grid;
  place-items: center;
  color: var(--color-charcoal-700);
  flex: none;
}
.icon-tile .icon { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: none;
  transition: background-color var(--duration-fast) var(--ease-brand),
              border-color var(--duration-fast) var(--ease-brand),
              color var(--duration-fast) var(--ease-brand);
}
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--color-charcoal-700);
  color: var(--color-cream);
}
.btn-primary:hover { background: var(--color-charcoal-800); }
.btn-primary:active { background: var(--color-charcoal-900); }

.btn-secondary {
  border-color: var(--color-charcoal-200);
  color: var(--color-charcoal-700);
}
.btn-secondary:hover {
  background: var(--color-charcoal-50);
  border-color: var(--color-charcoal-300);
}

.btn-brand {
  background: var(--color-brick-300);
  color: var(--color-cream);
}
.btn-brand:hover { background: var(--color-brick-400); }
.btn-brand:active { background: var(--color-brick-500); }

.btn-ghost {
  border-color: var(--cream-40);
  color: var(--color-cream);
}
.btn-ghost:hover { background: var(--cream-18); }

:focus-visible {
  outline: 2px solid var(--color-cornflower-400);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.band {
  padding-block: 72px;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.band-paper { background: var(--color-paper); }
.band-dark {
  background: var(--color-charcoal-700);
  color: var(--color-cream);
}
.band-dark .marker { color: var(--cream-65); }
.band-dark .marker::before { background: var(--color-rose-300); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .marker { margin-bottom: 20px; }
.section-head .lede { margin-top: 16px; }
.section-head .t-h1 { text-wrap: balance; }

@media (min-width: 1024px) {
  .band { padding-block: 112px; }
  .section-head { margin-bottom: 64px; }
}

/* ---------- Urgency band ---------- */
.urgency {
  background: var(--color-charcoal-700);
  color: var(--cream-78);
  padding: 10px 24px;
}
.urgency p {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  max-width: 1200px;
  margin-inline: auto;
}
.urgency strong {
  color: var(--color-mustard-300);
  font-weight: 500;
}
.urgency a {
  color: var(--color-cream);
  white-space: nowrap;
  margin-left: 8px;
}
.urgency a:hover { color: var(--color-mustard-300); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 234, 220, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-charcoal-700);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-links {
  display: none;
  gap: 28px;
  margin-inline: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-charcoal-600);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-brand);
}
.nav-links a:hover { color: var(--color-charcoal-900); }
.nav-cta { display: none; gap: 10px; margin-left: auto; }

.nav-burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 1.5px solid var(--color-charcoal-200);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--color-border-subtle);
  background: var(--color-cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  text-decoration: none;
  color: var(--color-charcoal-700);
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.mobile-menu-cta {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}
.mobile-menu-cta .btn { flex: 1; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-burger, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { overflow: clip; }
.hero-grid {
  display: grid;
  gap: 40px;
  padding-block: 56px 64px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal-600);
  margin-bottom: 24px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-rose-100);
  color: var(--color-rose-700);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
}
.hero-copy .lede { margin-top: 24px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { color: var(--color-mustard-500); }

.hero-stage {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
}
.hs-chip-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  fill: var(--color-charcoal-800);
  text-anchor: middle;
}

/* One-shot load orchestration: gentle fades, a small rise, and the
   salary band filling in. Final state is the resting state, so with
   reduced motion (or no CSS animation support) everything just shows. */
@media (prefers-reduced-motion: no-preference) {
  .hs-sheet { animation: hs-rise var(--duration-slow) var(--ease-brand-enter) both; }
  .hs-bar, .hs-chip, .hs-plant, .hs-bubble { animation: hs-fade 300ms var(--ease-brand-enter) both; }
  .hs-bubble { animation: hs-rise var(--duration-slow) var(--ease-brand-enter) both 850ms; }
  .hs-plant { animation-delay: 700ms; }
  .hs-range {
    transform-box: fill-box;
    transform-origin: left center;
    animation: hs-grow 500ms var(--ease-brand) both 500ms;
  }
  .hs-d1 { animation-delay: 180ms; }
  .hs-d2 { animation-delay: 250ms; }
  .hs-d3 { animation-delay: 320ms; }
  .hs-d4 { animation-delay: 390ms; }
  .hs-d5 { animation-delay: 460ms; }
  .hs-d6 { animation-delay: 1000ms; }
  .hs-d7 { animation-delay: 1090ms; }
  .hs-d8 { animation-delay: 1180ms; }
}
@keyframes hs-fade {
  from { opacity: 0; }
}
@keyframes hs-rise {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes hs-grow {
  from { transform: scaleX(0.12); }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 56px;
    padding-block: 88px 96px;
  }
  .hero-stage { max-width: 480px; }
}

/* Stats ledger */
.ledger-wrap {
  border-top: 1px solid var(--color-border);
}
.ledger {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ledger-cell {
  padding: 28px 20px 28px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.ledger-cell:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--color-border-subtle); }
.ledger-cell:nth-child(n+3) { border-bottom: none; }
.ledger-num {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  color: var(--color-charcoal-800);
}
.ledger-unit {
  font-size: 0.5em;
  color: var(--color-brick-300);
  margin-left: 4px;
  letter-spacing: 0;
}
.ledger-label {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-charcoal-500);
  max-width: 24em;
}

@media (min-width: 1024px) {
  .ledger { grid-template-columns: repeat(4, 1fr); }
  .ledger-cell,
  .ledger-cell:nth-child(even) { border-bottom: none; padding: 36px 28px; border-left: 1px solid var(--color-border-subtle); }
  .ledger-cell:first-child { border-left: none; padding-left: 0; }
}

/* ---------- № 01 · Inside a module ---------- */
.inside-grid {
  display: grid;
  gap: 48px;
}
.inside-demo { order: -1; }

.device {
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.device-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-charcoal-500);
}
.device-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--color-charcoal-100);
  overflow: hidden;
}
.device-progress div {
  height: 100%;
  background: var(--color-mustard-300);
  border-radius: 999px;
}
.device-q {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.device-scenario {
  background: var(--color-rose-100);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-charcoal-700);
}
.device-scenario .who {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-rose-700);
  margin-bottom: 8px;
}
.device-ask {
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 1.5px solid var(--color-charcoal-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-brand),
              background-color var(--duration-fast) var(--ease-brand);
}
.choice:hover { border-color: var(--color-charcoal-400); }
.choice .dot {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 999px;
  border: 1.5px solid var(--color-charcoal-300);
  flex: none;
  transition: border-color var(--duration-fast) var(--ease-brand),
              background-color var(--duration-fast) var(--ease-brand),
              box-shadow var(--duration-fast) var(--ease-brand);
}
.choice.selected {
  border-color: var(--color-charcoal-700);
  background: var(--color-charcoal-50);
}
.choice.selected .dot {
  border-color: var(--color-charcoal-700);
  background: var(--color-charcoal-700);
  box-shadow: inset 0 0 0 3px var(--color-cream);
}
.device-feedback { }
.feedback-card {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.feedback-card p { margin-top: 6px; color: var(--color-charcoal-600); }
.feedback-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feedback-card[data-tone="good"] {
  background: var(--color-mustard-100);
  border-left: 4px solid var(--color-mustard-500);
}
.feedback-card[data-tone="good"] .feedback-label { color: var(--color-mustard-700); }
.feedback-card[data-tone="warn"] {
  background: var(--color-rose-100);
  border-left: 4px solid var(--color-rose-500);
}
.feedback-card[data-tone="warn"] .feedback-label { color: var(--color-brick-500); }

.device-progress div {
  transition: width var(--duration-slow) var(--ease-brand);
}

.device-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-charcoal-500);
}
.device-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--color-charcoal-500);
  text-align: center;
}

.learner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.learner-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

@media (min-width: 1024px) {
  .inside-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
  .inside-demo { order: 0; }
  .device { padding: 32px; }
}

/* ---------- № 02 · Problem (dark) ---------- */
.problem-grid {
  display: grid;
  gap: 48px;
}
.problem-copy p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--cream-78);
  max-width: 36em;
}
.problem-copy p + p { margin-top: 20px; }
.problem-copy .pull-quote {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-rose-300);
  margin-block: 28px;
  max-width: 16em;
}
.problem-copy .problem-close {
  font-weight: 500;
  color: var(--color-cream);
}
.problem-data {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--cream-18);
}
.problem-data li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--cream-65);
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-18);
}
.spread-board {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
}
.sb-code {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  fill: var(--color-charcoal-800);
  text-anchor: middle;
}
.sb-dim { fill: rgba(242, 234, 220, 0.13); }
.sb-empty {
  fill: none;
  stroke: var(--cream-18);
  stroke-width: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  .spread-board.live .sb-tile {
    animation: sb-light 350ms var(--ease-brand-enter) both;
  }
  .spread-board.live .sb-named {
    transform-box: fill-box;
    transform-origin: center;
    animation-name: sb-pop;
  }
  .spread-board.live .sb-d1 { animation-delay: 100ms; }
  .spread-board.live .sb-d2 { animation-delay: 280ms; }
  .spread-board.live .sb-d3 { animation-delay: 460ms; }
  .spread-board.live .sb-d4 { animation-delay: 620ms; }
  .spread-board.live .sb-d5 { animation-delay: 780ms; }
  .spread-board.live .sb-d6 { animation-delay: 930ms; }
  .spread-board.live .sb-d7 { animation-delay: 1080ms; }
  .spread-board.live .sb-d8 { animation-delay: 1220ms; }
  .spread-board.live .sb-d9 { animation-delay: 1420ms; }
}
@keyframes sb-light {
  from { opacity: 0; }
}
@keyframes sb-pop {
  from { opacity: 0; transform: scale(0.94); }
}

@media (min-width: 768px) {
  .problem-data { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 40px; }
  .problem-data li { border-bottom: none; padding: 16px 0 0; }
}
@media (min-width: 1024px) {
  .problem-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
    align-items: start;
  }
}

/* ---------- № 03 · Coverage ---------- */
.finder { margin-bottom: 40px; }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1.5px solid var(--color-charcoal-200);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  color: var(--color-charcoal-600);
  transition: background-color var(--duration-fast) var(--ease-brand),
              border-color var(--duration-fast) var(--ease-brand),
              color var(--duration-fast) var(--ease-brand);
}
.chip:hover { border-color: var(--color-charcoal-400); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--color-charcoal-700);
  border-color: var(--color-charcoal-700);
  color: var(--color-cream);
}
.finder-note {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-mustard-500);
  min-height: 1.5em;
}

.coverage-grid {
  display: grid;
  gap: 48px;
}
.state-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.state-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  margin-left: -12px;
  transition: background-color var(--duration-default) var(--ease-brand),
              border-color var(--duration-default) var(--ease-brand);
}
.state-list .code {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-charcoal-300);
  min-width: 2.1em;
}
.state-list .name {
  font-weight: 600;
  font-size: 1.0625rem;
}
.state-list .sub {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
  margin-top: 2px;
}
.state-list .versions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.state-list .v {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: 1px solid var(--color-charcoal-200);
  border-radius: var(--radius-sm);
  color: var(--color-charcoal-500);
}
.match-check {
  display: none;
  color: var(--color-mustard-500);
  stroke-width: 2;
}
.state-list li.is-matched {
  background: var(--color-mustard-100);
  border-left-color: var(--color-mustard-500);
}
.state-list li.is-matched .code { color: var(--color-charcoal-600); }
.state-list li.is-matched .match-check { display: block; }

.tracker-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 500;
  color: var(--color-charcoal-700);
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-charcoal-300);
  padding-bottom: 2px;
  transition: border-color var(--duration-fast) var(--ease-brand);
}
.tracker-link:hover { border-color: var(--color-charcoal-700); }

.tracks-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  align-self: start;
}
.tracks-card > p {
  margin-top: 10px;
  color: var(--color-charcoal-600);
  font-size: 0.9375rem;
}
.tracks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.track {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.track strong { font-size: 0.9375rem; }
.track p {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
}
.track-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-charcoal-800);
}
.track-dot-hr { background: var(--color-mustard-300); font-size: 0.625rem; }
.track-dot-m { background: var(--color-rose-300); }
.track-dot-e { background: var(--color-cornflower-300); }

@media (min-width: 1024px) {
  .coverage-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 72px;
  }
  .tracks-card {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
  .state-list li {
    grid-template-columns: auto 1fr auto auto;
  }
  .state-list .versions { grid-column: auto; }
}

/* ---------- № 04 · Features ---------- */
.feature-index {
  list-style: none;
  counter-reset: none;
  border-top: 1px solid var(--color-border);
}
.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num  body"
    "spot body";
  gap: 16px 24px;
  padding-block: 40px;
  border-bottom: 1px solid var(--color-border);
}
.feature-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-charcoal-300);
}
.feature-spot { grid-area: spot; align-self: start; }
.feature-spot img {
  width: 132px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}
/* Secondary rise: the spot settles in just after its row reveals */
html.js .feature-row[data-reveal] .feature-spot img {
  opacity: 0;
  transform: translateY(6px) scale(0.99);
  transition: opacity var(--duration-slow) var(--ease-brand-enter) 150ms,
              transform var(--duration-slow) var(--ease-brand-enter) 150ms;
}
html.js .feature-row.in-view .feature-spot img {
  opacity: 1;
  transform: none;
}
.feature-body { grid-area: body; max-width: 36em; }
.feature-body p {
  margin-top: 12px;
  color: var(--color-charcoal-600);
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 90px 240px 1fr;
    grid-template-areas: "num spot body";
    gap: 40px;
    align-items: center;
    padding-block: 48px;
  }
  .feature-row:nth-child(even) {
    grid-template-columns: 90px 1fr 240px;
    grid-template-areas: "num body spot";
  }
  .feature-spot img { width: 100%; max-width: 240px; }
}

/* ---------- № 05 · How a course is built ---------- */
.how-grid {
  display: grid;
  gap: 48px;
}
.how-rail { margin-bottom: 0; }
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num  num"
    "spot body";
  gap: 18px 24px;
  padding-block: 36px;
  border-top: 1px solid var(--color-border);
}
.step:first-child { border-top: none; padding-top: 0; }
.step-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brick-400);
}
.step-spot { grid-area: spot; }
.step-spot svg {
  display: block;
  width: 144px;
  height: auto;
}

/* Staggered detail reveals inside the step spot illustrations.
   Resting CSS is the finished drawing; the "hidden" start state only
   exists with JS, before the parent step scrolls into view. The
   animated wrappers carry no SVG transform attributes (those live on
   inner groups), so CSS transforms here never clobber geometry. */
html.js .step[data-reveal] :is(.sq-bar, .sq-rise, .sq-slide, .sq-stamp, .sq-sweep, .sq-stem, .sq-leaf) {
  opacity: 0;
  transform-box: fill-box;
  transition: opacity 300ms var(--ease-brand-enter),
              transform 350ms var(--ease-brand-enter);
}
html.js .step[data-reveal] .sq-bar {
  transform: scaleX(0.3);
  transform-origin: left center;
}
html.js .step[data-reveal] .sq-sweep {
  transform: scaleX(0);
  transform-origin: left center;
}
html.js .step[data-reveal] .sq-rise { transform: translateY(6px); }
html.js .step[data-reveal] .sq-slide { transform: translate(10px, 8px); }
html.js .step[data-reveal] .sq-stamp {
  transform: scale(1.25);
  transform-origin: center;
  transition-duration: 300ms, 250ms;
}
html.js .step[data-reveal] .sq-stem {
  transform: scaleY(0.3);
  transform-origin: center bottom;
}
html.js .step[data-reveal] .sq-leaf {
  transform: scale(0.7);
  transform-origin: center;
}
html.js .step.in-view :is(.sq-bar, .sq-rise, .sq-slide, .sq-stamp, .sq-sweep, .sq-stem, .sq-leaf) {
  opacity: 1;
  transform: none;
}
html.js .step.in-view .sq-d1 { transition-delay: 150ms; }
html.js .step.in-view .sq-d2 { transition-delay: 250ms; }
html.js .step.in-view .sq-d3 { transition-delay: 350ms; }
html.js .step.in-view .sq-d4 { transition-delay: 450ms; }
html.js .step.in-view .sq-d5 { transition-delay: 550ms; }
html.js .step.in-view .sq-d6 { transition-delay: 650ms; }
.step > div:last-child { grid-area: body; }
.step p {
  margin-top: 10px;
  color: var(--color-charcoal-600);
  max-width: 34em;
}

@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 80px;
    align-items: start;
  }
  .how-rail {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }
  .step {
    grid-template-columns: 88px 176px 1fr;
    grid-template-areas: "num spot body";
    gap: 32px;
    align-items: center;
    padding-block: 44px;
  }
  .step:first-child { padding-top: 0; }
  .step-spot svg { width: 176px; }
}

/* ---------- № 06 · Pricing ---------- */
.pricing-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}
.track-toggle {
  display: grid;
  gap: 10px;
}
.track-opt {
  text-align: left;
  padding: 14px 18px;
  border: 1.5px solid var(--color-charcoal-200);
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-brand),
              background-color var(--duration-fast) var(--ease-brand);
}
.track-opt:hover { border-color: var(--color-charcoal-400); }
.track-opt.active {
  border-color: var(--color-charcoal-700);
  background: var(--color-cream);
}
.track-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.track-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-cornflower-100);
  color: var(--color-cornflower-500);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.track-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  color: var(--color-charcoal-500);
}

@media (min-width: 768px) {
  .track-toggle { grid-template-columns: 1fr 1fr; max-width: 640px; }
}

.tier-stage {
  display: grid;
  gap: 20px;
}
.also-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal-400);
  align-self: end;
}

.tier {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.tier-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal-500);
}
.tier-price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.tier-price strong {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier-price small {
  font-size: 0.9375rem;
  color: var(--color-charcoal-500);
}
.tier-meta {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
}
.tier-monthly {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--color-mustard-500);
  margin-top: 8px;
}
.tier ul {
  list-style: none;
  margin: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tier ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.tier ul .icon {
  stroke-width: 2;
  color: var(--color-mustard-500);
  margin-top: 2px;
}
.tier .btn { width: 100%; }

@media (min-width: 768px) {
  .tier-stage { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* JS-enhanced pricing: one featured card + compact alternates */
html.js .tier-stage {
  grid-template-columns: 1fr;
}
html.js .also-label { display: block; }
html.js .tier--featured {
  background: var(--color-charcoal-700);
  border-color: var(--color-charcoal-700);
  color: var(--color-cream);
  padding: 36px;
}
html.js .tier--featured .tier-name { color: var(--cream-65); }
html.js .tier--featured .tier-price strong { font-size: 3rem; }
html.js .tier--featured .tier-price small,
html.js .tier--featured .tier-meta { color: var(--cream-65); }
html.js .tier--featured .tier-monthly { color: var(--color-mustard-300); }
html.js .tier--featured ul li { color: var(--cream-78); }
html.js .tier--featured ul .icon { color: var(--color-mustard-300); }
html.js .tier--featured .btn {
  background: var(--color-brick-300);
  border-color: transparent;
  color: var(--color-cream);
}
html.js .tier--featured .btn:hover { background: var(--color-brick-400); }
html.js .tier--compact { padding: 20px 24px; }
html.js .tier--compact ul,
html.js .tier--compact .tier-monthly { display: none; }
html.js .tier--compact .tier-price { margin-top: 8px; }
html.js .tier--compact .tier-price strong { font-size: 1.5rem; }
html.js .tier--compact .btn {
  width: auto;
  align-self: start;
  margin-top: 16px;
  padding: 8px 16px;
  font-size: 0.875rem;
  background: none;
  border-color: var(--color-charcoal-200);
  color: var(--color-charcoal-700);
}
html.js .tier--compact .btn:hover {
  background: var(--color-charcoal-50);
  border-color: var(--color-charcoal-300);
}

@media (min-width: 900px) {
  html.js .tier-stage {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-auto-flow: row;
  }
  html.js .also-label { grid-column: 2; grid-row: 1; }
  html.js .tier--featured { grid-column: 1; grid-row: 1 / span 3; }
  html.js .tier--compact { grid-column: 2; }
}

.enterprise-block {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.enterprise-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.enterprise-card .btn { grid-column: 1 / -1; justify-self: start; }
.enterprise-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.enterprise-price strong {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.enterprise-price small {
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
}
.enterprise-note {
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
  max-width: 44em;
}

@media (min-width: 768px) {
  .enterprise-card { grid-template-columns: 1fr auto auto; }
  .enterprise-card .btn { grid-column: auto; }
}

.self-serve-callout {
  margin-top: 56px;
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-left: 4px solid var(--color-mustard-300);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.self-serve-callout p {
  margin-top: 12px;
  color: var(--color-charcoal-600);
  max-width: 62em;
}

/* ---------- № 07 · Trust ---------- */
.trust-grid {
  display: grid;
  gap: 48px;
}
.trust-quote {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  align-self: start;
}
.quote-mark {
  position: absolute;
  top: 2px;
  left: 20px;
  font-size: 6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-rose-300);
  pointer-events: none;
}
.trust-quote blockquote {
  position: relative;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 500;
  padding-top: 24px;
}
.trust-quote figcaption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.trust-quote .name {
  display: block;
  font-weight: 600;
}
.trust-quote .role {
  display: block;
  font-size: 0.875rem;
  color: var(--color-charcoal-500);
  margin-top: 2px;
}
.proof-grid {
  display: grid;
  gap: 32px;
}
.proof h3 {
  margin-top: 16px;
}
.proof p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--color-charcoal-600);
  max-width: 30em;
}
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  vertical-align: 2px;
  margin-left: 6px;
}
.badge-pending {
  background: var(--color-mustard-100);
  color: var(--color-mustard-700);
}

@media (min-width: 640px) {
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}

/* ---------- № 08 · FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 40px;
}
.faq-rail { margin-bottom: 0; }
.faq-list {
  border-top: 1px solid var(--color-border);
}
.faq-list details {
  border-bottom: 1px solid var(--color-border);
}
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--color-charcoal-300);
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--color-charcoal-600);
}
.faq-list .plus .icon {
  transition: transform var(--duration-default) var(--ease-brand);
}
.faq-list details[open] .plus .icon { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 4px 24px;
  color: var(--color-charcoal-600);
  max-width: 60em;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 80px;
    align-items: start;
  }
  .faq-rail {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }
}

/* ---------- CTA band ---------- */
.cta-band .t-h1 { text-wrap: balance; }
.cta-grid {
  display: grid;
  gap: 40px;
}
.cta-grid .t-body-lg {
  margin-top: 18px;
  color: var(--cream-78);
  max-width: 34em;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-meta { margin-top: 12px; color: var(--cream-65); }
.cta-meta .icon { color: var(--color-mustard-300); }

@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
    align-items: center;
  }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--color-border);
  padding-block: 56px 32px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
.foot-brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--color-charcoal-500);
  max-width: 26em;
}
.foot-col h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-charcoal-500);
  margin-bottom: 14px;
}
.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col a {
  text-decoration: none;
  color: var(--color-charcoal-600);
  font-size: 0.9375rem;
  transition: color var(--duration-fast) var(--ease-brand);
}
.foot-col a:hover { color: var(--color-charcoal-900); }
.foot-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-charcoal-400);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  transform: translateY(102%);
  transition: transform var(--duration-default) var(--ease-brand);
}
.sticky-cta.visible { transform: none; }
.sticky-cta-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-charcoal-500);
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ---------- Reveal on scroll (JS-gated) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-slow) var(--ease-brand-enter),
              transform var(--duration-slow) var(--ease-brand-enter);
}
html.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
