/* ============================================================================
   tableaucourses.com
   Editorial course directory. Hand-authored CSS, no framework.

   Locks (do not break without revisiting the whole page):
   - ONE accent: vermilion. Light #c33c17, dark #ff7d55. Nothing else is accented.
   - ONE radius scale: 3px everywhere, 6px on large panels. No pills.
   - ONE theme strategy: prefers-color-scheme, both modes designed.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}

/* --------------------------------------------------------------- tokens */
:root {
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --paper: #f7f8fa;
  --paper-2: #eceff4;
  --paper-3: #dfe4ec;
  --ink: #0f1319;
  --ink-2: #38414f;
  --ink-3: #555f6e;
  --rule: #d3d9e3;
  --rule-soft: #e4e8ef;
  --accent: #1b52bd;
  --accent-ink: #ffffff;
  --accent-wash: #e8eefb;
  --accent-edge: #b9cbee;
  --field: radial-gradient(115% 88% at 8% -12%, #cfdcf5 0%, #e2eaf8 34%, rgb(247 248 250 / 0) 72%);

  --r: 3px;
  --r-lg: 6px;

  --shadow: 0 1px 2px rgb(21 23 28 / 0.04), 0 8px 24px -12px rgb(21 23 28 / 0.12);

  --wrap: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1016;
    --paper-2: #12171f;
    --paper-3: #1a2029;
    --ink: #e8ecf3;
    --ink-2: #aab4c3;
    --ink-3: #8592a3;
    --rule: #262e3a;
    --rule-soft: #1d242e;
    --accent: #6da4ff;
    --accent-ink: #0a0f18;
    --accent-wash: #141d2e;
    --accent-edge: #2c4066;
    --field: radial-gradient(115% 88% at 8% -12%, #1a2740 0%, #131a26 38%, rgb(12 16 22 / 0) 74%);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -12px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.15rem; border-radius: var(--r); font-weight: 600;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* ------------------------------------------------------------- primitives */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
/* A page header immediately followed by prose should not leave a full section
   gap on small screens, where it reads as a rendering fault. */
@media (max-width: 700px) {
  .section[style*="padding-bottom:0"] + .section { padding-top: 1.75rem; }
}
.rule-top { border-top: 1px solid var(--rule-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.h-sec { font-size: clamp(1.9rem, 3.7vw, 3rem); letter-spacing: -0.028em; }
.h-sub { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-top: 1.35rem; font-size: 0.85rem; color: var(--ink-3);
}
.byline a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; }
.byline a:hover { color: var(--accent); }
.byline-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-weight: 600; font-size: 0.97rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--paper-2); }
.btn:active { transform: translateY(1px); }

/* ----------------------------------------------------------------- header */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
@media (prefers-reduced-transparency: reduce) {
  .masthead { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.masthead-in {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; text-decoration: none;
}
.brand .brand-mark { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.9vw, 1.7rem); }
.nav a {
  font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
  white-space: nowrap; transition: color 0.18s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; border: 1px solid var(--rule); border-radius: var(--r);
    color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 600;
    padding: 0.72rem 0.95rem; cursor: pointer; min-height: 48px;
  }
  .nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset-inline: 0; top: 68px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.15rem;
  }
  .nav-open .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  background: var(--field);
}
.hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.92fr); }
}
.hero h1 { font-size: clamp(2.15rem, 4.5vw, 3.5rem); letter-spacing: -0.035em; }
.hero .lede { margin-top: 1.15rem; font-size: clamp(1.08rem, 1.7vw, 1.24rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

/* real data figure, not decoration */
.figure {
  background: var(--paper-2); border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.figure-title { font-size: 0.99rem; font-weight: 700; letter-spacing: -0.01em; }
.figure-note { font-size: 0.78rem; color: var(--ink-3); margin-top: 1rem; }
.dot-rows { display: grid; gap: 0.95rem; margin-top: 1.35rem; list-style: none; }
.dot-row { display: grid; gap: 0.4rem; }
.dot-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dot-row-name { font-size: 0.85rem; font-weight: 500; }
.dot-row-val { font-size: 0.78rem; color: var(--ink-3); }
.dot-track {
  position: relative; display: block; height: 11px;
  background: linear-gradient(var(--rule), var(--rule)) left center / 100% 1px no-repeat;
}
.dot-lead {
  position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--accent); transform-origin: left center; border-radius: var(--r);
}
.dot-marker {
  position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--paper-2);
}
.dot-axis {
  display: flex; justify-content: space-between;
  margin-top: 0.7rem; padding-top: 0.55rem; border-top: 1px solid var(--rule-soft);
  font-size: 0.72rem; color: var(--ink-3);
}

/* ------------------------------------------------------------- logo strip */
.providers { padding-block: 0 var(--section-y); }
.provider-head { font-size: 0.8rem; color: var(--ink-3); margin-bottom: 1.35rem; }
.provider-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1.5rem, 4vw, 3.25rem); list-style: none;
}
.provider-row img {
  height: 25px; width: 25px; aspect-ratio: 1; opacity: 0.55;
  filter: grayscale(1) brightness(0) saturate(0);
  transition: opacity 0.2s var(--ease);
}
@media (prefers-color-scheme: dark) {
  .provider-row img { filter: grayscale(1) brightness(0) invert(1); opacity: 0.5; }
}
.provider-row a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
.provider-row a:hover img { opacity: 1; }

/* ------------------------------------------------------------ section head */
.sec-head {
  position: relative; max-width: 60ch;
  margin-bottom: clamp(2rem, 3.5vw, 3rem); padding-left: 1.25rem;
}
.sec-head::before {
  content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.35em;
  width: 3px; border-radius: 2px; background: var(--accent);
}
.sec-head p { margin-top: 0.9rem; color: var(--ink-2); }

/* ------------------------------------------------------------- level bento */
.levels { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 620px) { .levels { grid-template-columns: minmax(0, 1fr); } }

.level-card {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  text-decoration: none; background: var(--paper);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.level-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.level-card h3 { font-size: 1.4rem; }
.level-card p { font-size: 0.94rem; color: var(--ink-2); }
.level-card .arrow { margin-top: auto; padding-top: 0.6rem; font-weight: 600; font-size: 0.9rem; color: var(--accent); }
/* rhythm: 3 wide + 3 narrow, exactly six cells for six destinations */
@media (min-width: 900px) {
  .level-card { grid-column: span 2; }
  .level-card:nth-child(-n + 3) { min-height: 13.5rem; }
}
.level-card.is-tinted { background: var(--accent-wash); border-color: var(--accent-edge); }
.level-card.is-ink { background: var(--paper-2); }
.level-card.is-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.level-card.is-dark p { color: color-mix(in oklab, var(--paper) 76%, var(--ink)); }
.level-card.is-dark .count { color: color-mix(in oklab, var(--paper) 60%, var(--ink)); }
.level-card.is-dark .arrow { color: color-mix(in oklab, var(--accent) 62%, var(--paper)); }
.level-card.is-dark:hover { border-color: color-mix(in oklab, var(--accent) 60%, var(--paper)); }
.level-card .count { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); letter-spacing: 0.06em; }

/* ------------------------------------------------------------ course cards */
.course-list { list-style: none; display: grid; gap: 1.1rem; counter-reset: rank; }
@media (min-width: 1000px) { .course-list.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.course {
  --card-pad: clamp(1.35rem, 2.5vw, 1.9rem);
  position: relative; display: grid; gap: 1rem;
  padding: var(--card-pad);
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.course:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.course.is-pick { border-color: var(--accent-edge); background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }

.course-art {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r); background: var(--paper-3);
}
.course-body { display: grid; gap: 1rem; min-width: 0; }

/* Wide: the illustration becomes a left thumbnail so cards stay scannable
   and the art supports the entry rather than dominating it. */
@media (min-width: 720px) {
  .course { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); column-gap: 1.5rem; }
  .course-art { grid-row: 1 / -1; align-self: start; }
}

.course-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.25rem; }
.course-rank {
  counter-increment: rank; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-3); letter-spacing: 0.08em;
}
.course-rank::before { content: counter(rank, decimal-leading-zero); }
.course h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.018em; }
.course h3 a { text-decoration: none; }
/* Stretched link: the illustration and body become part of the tap target. */
.course h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.course h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.course-provider { font-size: 0.87rem; color: var(--ink-3); margin-top: 0.3rem; }
.course-summary { font-size: 0.97rem; color: var(--ink-2); }

.pick-flag {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.28rem 0.5rem; border-radius: var(--r); white-space: nowrap;
}

.meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  padding-top: 0.9rem; border-top: 1px solid var(--rule-soft);
  font-size: 0.82rem; color: var(--ink-3);
}
.meta b { color: var(--ink-2); font-weight: 600; }

.verdict { display: grid; gap: 0.5rem; font-size: 0.9rem; }
.verdict div { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; align-items: start; }
.verdict .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.25rem; }
.verdict .v { color: var(--ink-2); }
.verdict .k-good { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.tags li {
  font-size: 0.76rem; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.2rem 0.5rem; background: var(--paper-2);
}

/* -------------------------------------------------------- use-case scroller */
.usecase-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 340px);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1.15rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.usecase-scroll > * { scroll-snap-align: start; }
@media (min-width: 1000px) {
  .usecase-scroll {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
}
.usecase {
  display: flex; flex-direction: column; gap: 0.8rem;
  padding: 1.6rem; border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--paper); text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.usecase:hover { border-color: var(--accent); transform: translateY(-2px); }
.usecase h3 { font-size: 1.18rem; }
.usecase p { font-size: 0.92rem; color: var(--ink-2); }
.usecase .arrow { margin-top: auto; padding-top: 0.5rem; color: var(--accent); font-weight: 600; font-size: 0.88rem; }

/* ---------------------------------------------------------- use-case detail */
.uc-detail { display: grid; gap: 1.75rem; padding-block: 2.25rem; border-top: 1px solid var(--rule-soft); }
@media (min-width: 880px) { .uc-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; } }
.uc-detail h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.uc-cols { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .uc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uc-list { list-style: none; display: grid; gap: 0.5rem; font-size: 0.92rem; color: var(--ink-2); }
.uc-list li { padding-left: 1.05rem; position: relative; }
.uc-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--accent); }
.uc-key { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.65rem; }
.uc-start { background: var(--paper-2); border: 1px solid var(--rule-soft); border-radius: var(--r-lg); padding: 1.25rem; font-size: 0.93rem; color: var(--ink-2); }
.uc-start a { color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------- cert comparison */
.cert-grid { display: grid; gap: 1.15rem; }
@media (min-width: 820px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cert {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper);
}
.cert.is-first { border-color: var(--accent-edge); background: var(--accent-wash); }
.cert h3 { font-size: 1.3rem; }
.cert-rows { display: grid; gap: 0; }
.cert-rows > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding-block: 0.6rem; font-size: 0.92rem;
}
.cert-rows > div + div { border-top: 1px solid var(--rule-soft); }
.cert-rows dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.25rem; }
.cert-rows dd { margin: 0; color: var(--ink-2); }
.cert-verdict { font-size: 0.95rem; font-weight: 500; border-top: 1px solid var(--rule); padding-top: 1.1rem; }

/* ------------------------------------------------------------ comparison */
.table-wrap {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  /* Fades the right edge only while there is more table to reach. */
  background:
    linear-gradient(to right, var(--paper) 30%, rgb(255 255 255 / 0)) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--paper) 30%, rgb(255 255 255 / 0)) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(15 19 25 / 0.16), rgb(255 255 255 / 0)) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(15 19 25 / 0.16), rgb(255 255 255 / 0)) right / 14px 100% no-repeat scroll;
}
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.table-hint { display: none; margin: 0.65rem 0 0; font-size: 0.8rem; color: var(--ink-3); }
@media (max-width: 700px) { .table-hint { display: block; } }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 30rem; }
@media (max-width: 700px) {
  .cmp th, .cmp td { padding: 0.75rem 0.85rem; }
  .cmp tbody th { font-size: 0.66rem; }
}
.cmp caption { text-align: left; padding: 1.15rem 1.25rem 0; color: var(--ink-3); font-size: 0.82rem; }
.cmp th, .cmp td { padding: 0.85rem 1.25rem; text-align: left; vertical-align: top; }
.cmp thead th { font-size: 0.95rem; border-bottom: 1px solid var(--rule); }
.cmp thead th:first-child { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.cmp tbody th {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; white-space: nowrap;
}
.cmp tbody tr + tr th, .cmp tbody tr + tr td { border-top: 1px solid var(--rule-soft); }
.cmp td { color: var(--ink-2); }
.cmp .col-pick { background: var(--accent-wash); }

/* -------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 0; max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 1.15rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; letter-spacing: inherit; margin: 0; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-weight: 400; color: var(--accent);
  font-size: 1.25rem; line-height: 1.2; flex: none;
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding-bottom: 1.35rem; color: var(--ink-2); font-size: 0.97rem; max-width: 68ch; }
.faq .faq-body p + p { margin-top: 0.8rem; }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 68ch; display: grid; gap: 1.1rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 1.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 0.9rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { display: grid; gap: 0.55rem; padding-left: 1.15rem; }
.prose li { padding-left: 0.25rem; }
.prose a { color: var(--accent); font-weight: 500; }

/* --------------------------------------------------------------- callout */
.callout {
  border-left: 3px solid var(--accent); background: var(--paper-2);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-size: 0.96rem; color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* ------------------------------------------------------------ breadcrumbs */
.crumbs { font-size: 0.82rem; color: var(--ink-3); padding-top: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--rule); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.foot h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.foot ul { list-style: none; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: 0.8rem; color: var(--ink-3);
}
.disclaimer { font-size: 0.8rem; color: var(--ink-3); max-width: 58ch; margin-top: 1rem; }

/* ---------------------------------------------------------------- motion */
/* MOTION_INTENSITY 4: entrance reveal on scroll, nothing perpetual. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); }
  html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
  .dot-lead { transform: scaleX(0); transition: transform 0.85s var(--ease); }
  .dot-marker { opacity: 0; transition: opacity 0.4s var(--ease) 0.35s; }
  .figure.is-in .dot-lead { transform: scaleX(1); }
  .figure.is-in .dot-marker { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .dot-lead { transform: none; }
  .dot-marker { opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* -------------------------------------------------------------- utilities */
.stack { display: grid; gap: 1.15rem; }
.stack-sm { display: grid; gap: 0.6rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
