/* Design tokens.
 *
 * Both themes are defined here and NOWHERE else. Every colour a component uses
 * comes from a token, so a section can never hardcode a background that the
 * other theme does not know about — which is exactly how the previous site
 * ended up painting near-black text onto a hardcoded dark hero in light mode.
 *
 * Hard rule: no `!important` in this file or any theme rule. If a token needs
 * to win, fix the specificity, do not escalate.
 */

:root {
  color-scheme: dark;

  /* Surfaces, deep -> raised */
  --surface-deep: #0f1420;
  --surface: #111827;
  --surface-raised: #1f2937;
  --surface-card: #182130;
  --surface-inset: #0b0f18;

  /* Text */
  --text: #f7f8fa;
  --text-muted: #a8b1c2;
  --text-subtle: #78839a;

  /* Brand */
  --indigo: #1e1b4b;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-deep: #6d28d9;
  --accent-contrast: #ffffff;

  /* Lines and states */
  --border: #2a3446;
  --border-strong: #3b475e;
  --focus: var(--violet-bright);
  --success: #34d399;
  --warning: #fbbf24;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow: 0 8px 24px -8px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / 0.6);

  /* Scale */
  --measure: 68ch;
  --radius: 10px;
  --radius-lg: 16px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  /* Type */
  /* System stack: zero requests, zero bytes, no FOUT, and native rendering on
   * every platform (Segoe UI on Windows, SF Pro on Apple, Roboto on Android).
   * A self-hosted Inter would look near-identical for ~100 KB and a preload. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.7vw, 4.2rem);
}

:root[data-theme="light"] {
  color-scheme: light;

  --surface-deep: #eef1f7;
  --surface: #ffffff;
  --surface-raised: #f5f7fb;
  --surface-card: #ffffff;
  --surface-inset: #eaeef6;

  --text: #111827;
  --text-muted: #4b5768;
  --text-subtle: #6b7789;

  --violet: #6d28d9;
  --violet-bright: #7c3aed;
  --violet-deep: #5b21b6;

  --border: #dbe1ec;
  --border-strong: #c2cbdb;
  --success: #047857;
  --warning: #92400e;

  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.05);
  --shadow: 0 8px 24px -8px rgb(16 24 40 / 0.12);
  --shadow-lg: 0 24px 48px -16px rgb(16 24 40 / 0.16);
}

/* Visitors who have not chosen get their OS preference. The inline script in
 * the document head stamps data-theme before first paint; this covers the
 * no-JS case so the page is still correct, just not toggleable. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --surface-deep: #eef1f7;
    --surface: #ffffff;
    --surface-raised: #f5f7fb;
    --surface-card: #ffffff;
    --surface-inset: #eaeef6;

    --text: #111827;
    --text-muted: #4b5768;
    --text-subtle: #6b7789;
    --success: #047857;
    --warning: #92400e;

    --violet: #6d28d9;
    --violet-bright: #7c3aed;
    --violet-deep: #5b21b6;

    --border: #dbe1ec;
    --border-strong: #c2cbdb;

    --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.05);
    --shadow: 0 8px 24px -8px rgb(16 24 40 / 0.12);
    --shadow-lg: 0 24px 48px -16px rgb(16 24 40 / 0.16);
  }
}

/* Component styles. Every colour resolves through a token in tokens.css.
 * No `!important` anywhere in this file — see tokens.css for why. */

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-bright); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--violet); }

img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--surface-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- layout */

/* A centred max-width column is correct, not a bug: unbounded line lengths are
 * unreadable, which is why every comparable site caps it (Stripe ~1080, Linear
 * 1024, Vercel 1200). The cap was simply 100px too tight. At 1180 the hero H1
 * broke across THREE lines, orphaning "Prescribe" on its own, and the
 * illustration came out 164px shorter than the text beside it — the empty
 * band under the buttons. 1280 puts the H1 on two lines and cuts the gap to
 * 54px, with no other change. Measured at 1920 and 1512. */
.container {
  width: min(100% - (var(--gutter) * 2), 1280px);
  margin-inline: auto;
}

.container--narrow { width: min(100% - (var(--gutter) * 2), 820px); }

.section { padding-block: var(--section-y); }
.section--inset { background: var(--surface-raised); }
.section--deep { background: var(--surface-deep); }

.section__head { max-width: var(--measure); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 0.75rem;
}

.lede { font-size: var(--step-1); color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* ------------------------------------------------------------------ grid */

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* Exactly two columns, for a set whose count is fixed. The auto-fit grids
 * above answer "as many as fit", which is right for lists that grow and wrong
 * for a set of four that must read as two-by-two rather than three-plus-one. */
@media (min-width: 60rem) {
  .grid--pair { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------------------------------------------- cards */

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); font-size: var(--step--1); }

.card--feature { display: flex; flex-direction: column; gap: 0.25rem; }

.card__index {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

/* Icon tile. currentColor means the glyph follows the theme with no second
 * asset and no second colour definition. */
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--border));
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  color: var(--violet-bright);
}
.card__icon svg { width: 1.3rem; height: 1.3rem; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent; /* buttons do not inherit this; links do */
  font-family: inherit;    /* buttons do not inherit this either */
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--violet-deep);
  border-color: var(--violet-deep);
  color: var(--accent-contrast);
}
.btn--primary:hover { background: var(--violet); border-color: var(--violet); color: var(--accent-contrast); }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-bright); background: color-mix(in srgb, var(--violet) 10%, transparent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row--center { justify-content: center; }
.btn-row--spaced { margin-top: 2rem; }

/* ------------------------------------------------------------------ hero */

.hero {
  /* Both stops are tokens. In light mode this becomes a light gradient, which
   * is the whole point: the previous site hardcoded #111827 here and then
   * painted #111827 text on top of it. */
  background: linear-gradient(160deg, var(--surface-deep) 0%, var(--surface) 55%, var(--surface-raised) 100%);
  padding-block: clamp(4rem, 11vw, 8rem) var(--section-y);
  border-bottom: 1px solid var(--border);
}

.hero__inner { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: center; }

@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: 1rem; }
.hero__accent { color: var(--violet-bright); }
.hero__sub { font-size: var(--step-1); color: var(--text-muted); max-width: 40ch; }
.hero .btn-row { margin-top: 2rem; }

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

/* Grid, not flex, once the nav is visible. `justify-content: center` on a flex
 * row centres the nav inside the space LEFT OVER by the brand and the action
 * buttons, so it drifts off true centre by half their width difference — here
 * about 60px, which reads as a mistake rather than a choice. Symmetric 1fr
 * side columns pin the middle to the real centre whatever those two weigh. */
@media (min-width: 60rem) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .header-actions { justify-self: end; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
@media (min-width: 60rem) { .brand { margin-right: 0; } }
.brand:hover { color: var(--text); }
.brand img { width: 1.75rem; height: 1.75rem; }
.brand__text span { color: var(--violet-bright); }

.site-nav { display: none; gap: 1.5rem; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.site-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }

/* The old header put a full CTA pill here at every width; at 390px it
 * overlapped the wordmark and pushed the menu toggle off-screen. */
.header-actions .btn { display: none; }

#menu-toggle { display: inline-flex; }

@media (min-width: 60rem) {
  .site-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  #menu-toggle { display: none; }
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 0.7rem 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.mobile-nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--surface-deep);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin-bottom: 2.5rem;
}

/* h2 because the heading OUTLINE requires it (an h4 after a section h2 is a
 * skipped level), but visually these are small column labels. Semantics and
 * type scale are separate concerns — do not "fix" this by changing the tag. */
/* h2 because the heading OUTLINE requires it — an h4 sitting after a section
 * h2 is a skipped level — but visually these are small column labels. Semantics
 * and type scale are separate concerns; do not "fix" this by changing the tag
 * back. Every base h2 property that matters has to be overridden here, which is
 * why letter-spacing is restated: the global rule sets -0.02em for display
 * headings and these need positive tracking. */
.footer-grid h2 {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.85rem;
}
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--text-muted); text-decoration: none; font-size: var(--step--1); }
.footer-grid a:hover { color: var(--text); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------- content */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: var(--step--1);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.feature-block { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }

.feature-block__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature-block__media img { width: 100%; }

@media (min-width: 60rem) {
  .feature-block { grid-template-columns: 1fr 1fr; }

  /* Source order is text-then-image for screen readers and no-CSS clients.
   * Alternating the VISUAL order only, via grid placement, keeps four
   * consecutive sections from reading as one wall without reordering the DOM. */
  .feature-block--flipped > *:first-child { grid-column: 2; grid-row: 1; }
  .feature-block--flipped > *:last-child { grid-column: 1; grid-row: 1; }
}

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  color: var(--text-muted);
  font-size: var(--step--1);
}

/* ------------------------------------------------------------- lifecycle */

.lifecycle { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.lifecycle__step {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-inset);
  font-size: var(--step--1);
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.lifecycle__step[data-active] {
  border-color: var(--violet);
  color: var(--violet-bright);
  background: color-mix(in srgb, var(--violet) 12%, transparent);
}
.lifecycle__arrow { color: var(--text-subtle); }

/* --------------------------------------------------------------- pricing */

.pricing-grid { align-items: stretch; }

.tier { display: flex; flex-direction: column; height: 100%; }
.tier--featured { border-color: var(--violet); box-shadow: var(--shadow); }

.tier__badge {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--violet-deep);
  color: var(--accent-contrast);
  font-size: var(--step--1);
  font-weight: 600;
}

.tier__price { display: flex; align-items: baseline; gap: 0.2rem; margin: 0.5rem 0 0.25rem; }
.tier__amount { font-size: var(--step-3); font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.tier__currency { font-size: var(--step-1); color: var(--violet-bright); font-weight: 600; }
.tier__period { color: var(--text-subtle); font-size: var(--step--1); }
.tier__label { font-size: var(--step-1); color: var(--violet-bright); font-weight: 600; margin: 0.5rem 0 0.25rem; }
.tier .checklist { flex-grow: 1; margin: 1.25rem 0; }
.tier .btn { width: 100%; }

/* ------------------------------------------------------------------- cta */

.cta-panel {
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: var(--radius-lg);
  /* A tint of the brand over the card surface, so it reads as emphasis in both
   * themes. The first cut mixed the near-black --indigo into the background,
   * which in light mode produced mid-purple behind near-black text. */
  border: 1px solid color-mix(in srgb, var(--violet) 35%, var(--border));
  background: color-mix(in srgb, var(--violet) 8%, var(--surface-card));
  text-align: center;
}
.cta-panel p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }
.cta-panel .btn-row { margin-top: 1.75rem; }

/* No scroll-reveal animation, deliberately.
 *
 * The first cut had `.reveal { opacity: 0 }` with an IntersectionObserver
 * adding `.is-visible`. It reproduced the exact defect this rebuild exists to
 * fix: content that is invisible until JavaScript says otherwise. Below-fold
 * cards rendered blank in full-page screenshots, and would render blank for
 * any visitor whose observer never fires.
 *
 * A fade-in is decoration. Content being reliably visible is not. If motion is
 * wanted later, animate something that is visible at rest — a transform or a
 * colour — never opacity from zero. */

/* ------------------------------------------------------------------ steps */

.steps { counter-reset: step; display: grid; gap: 1rem; }

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step h3 { margin-bottom: 0.25rem; font-size: var(--step-0); }
.step p { font-size: var(--step--1); }

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--violet-bright);
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--border));
}

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------ code sample */

.code-sample {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  overflow: hidden;
}

.code__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.code__head h3 { margin-bottom: 0.15rem; font-size: var(--step-0); }
.code__head p { font-size: var(--step--1); }

.code__lang {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--border));
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.code-sample pre {
  margin: 0;
  padding: 1.25rem;
  background: var(--surface-inset);
  /* Long lines scroll inside the block; the page itself must never scroll
   * sideways because of a code sample. */
  overflow-x: auto;
}
.code-sample code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre;
}

/* -------------------------------------------------------------------- faq */

.faq { display: grid; gap: 0.6rem; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  overflow: hidden;
}

.faq__item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  list-style: none;          /* hide the default marker... */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }

/* ...and supply our own, so the open/closed state stays visible. */
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--violet-bright);
  border-bottom: 2px solid var(--violet-bright);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }

.faq__item summary:hover { color: var(--violet-bright); }

.faq__answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: var(--step--1);
  max-width: 68ch;
}

/* ------------------------------------------------- comparison + image cards */

.image-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.image-card__media { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.image-card__body { padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.image-card h3 { margin-bottom: 0.35rem; }

/* The wrapper scrolls, not the page. A table wider than its column would
 * otherwise make the whole document scroll sideways on a phone -- the exact
 * overflow shot.py asserts against at every viewport. */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }

.compare { width: 100%; border-collapse: collapse; min-width: 40rem; }
.compare th,
.compare td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-card); }
.compare thead th:first-child { min-width: 18rem; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { text-align: center; }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
/* Our own column carries the emphasis; the others are reference points. */
.compare thead th:nth-child(2) { color: var(--violet-bright); }
.compare tbody td:first-of-type { background: color-mix(in srgb, var(--violet) 7%, transparent); }

.mark { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.mark--yes { color: var(--success); }
.mark--no { color: var(--text-subtle); }
.mark--partial { color: var(--warning); }

.table-note { margin-top: 1rem; font-size: var(--step--1); max-width: var(--measure); }
