/* ============================================================================
 * InControl — marketing site stylesheet
 *
 * One file, no build step, no JavaScript. Every page in `site/public/` links
 * this and nothing else.
 *
 * The tokens below are lifted from the APP's design system
 * (src/web/styles/tokens/{colors,surfaces,typography}.css) so the site and the
 * product read as one thing: same Figtree, same warm-paper/cool-ink palette,
 * same Milemark indigo accent, same radii and shadow family, same epic hues.
 *
 * Two deliberate divergences from the app:
 *
 *   1. TYPE SCALE. The app's scale tops out at 28px (`--text-display`) because
 *      its largest text is a project title inside a dense planning surface. A
 *      marketing page needs a display tier above that, so the `--fs-*` ramp
 *      here extends the app's family upward rather than replacing it. Body is
 *      17px, not the app's 15px: reading prose at arm's length is not the same
 *      job as scanning a Gantt lane.
 *
 *   2. DARK MODE. The app is light-only. A marketing site is read in bed, in a
 *      dark terminal-shaped life, and by people whose OS has decided. So the
 *      whole palette is re-declared under `prefers-color-scheme: dark` — same
 *      token NAMES, so every rule below is written once and only once. The dark
 *      values keep the warm/cool split (ink stays faintly indigo, surfaces stay
 *      faintly warm) and lift the accent's lightness, because 50% indigo on a
 *      dark ground is a hole rather than a highlight.
 * ========================================================================= */

/* ---------------------------------------------------------------------------
 * 1. Tokens — light
 * ------------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  /* Surfaces + ink — from the app's colors.css */
  --bg-app: oklch(98.3% 0.003 90);
  --bg-sunken: oklch(96.4% 0.004 90);
  --surface-card: #ffffff;
  --ink-1: oklch(25% 0.015 275);
  --ink-2: oklch(46% 0.012 275);
  --ink-3: oklch(54% 0.01 275);
  --border-1: oklch(91.5% 0.005 90);
  --border-2: oklch(86% 0.007 90);

  /* Accent — Milemark indigo */
  --accent: oklch(50% 0.17 275);
  --accent-hover: oklch(44% 0.17 275);
  --accent-ink: #ffffff; /* text ON the accent */
  --accent-soft: oklch(94.5% 0.035 275);
  --accent-soft-border: oklch(86% 0.06 275);
  --focus-ring: oklch(50% 0.17 275 / 0.35);

  /* Epic hues — the app's six-wide family, used here for section accents,
     pricing-card tints and the odd inline highlight. Only the -bg/-border
     pairs are needed at marketing sizes. */
  --epic-indigo: oklch(45% 0.1 275);
  --epic-indigo-bg: oklch(94% 0.04 275);
  --epic-sky: oklch(45% 0.1 230);
  --epic-sky-bg: oklch(94% 0.04 230);
  --epic-green: oklch(45% 0.1 155);
  --epic-green-bg: oklch(94% 0.04 155);
  --epic-amber: oklch(45% 0.1 80);
  --epic-amber-bg: oklch(94% 0.045 90);
  --epic-coral: oklch(45% 0.1 25);
  --epic-coral-bg: oklch(94% 0.035 25);
  --epic-plum: oklch(45% 0.1 330);
  --epic-plum-bg: oklch(94% 0.035 330);

  /* Shadows — the app's soft family, one step deeper for the screenshot frame
     because a browser-card wants to sit above the page rather than in it. */
  --shadow-card: 0 1px 2px rgba(28, 27, 38, 0.04), 0 2px 8px rgba(28, 27, 38, 0.04);
  --shadow-raised: 0 2px 4px rgba(28, 27, 38, 0.06), 0 8px 24px rgba(28, 27, 38, 0.09);
  --shadow-shot: 0 2px 6px rgba(28, 27, 38, 0.05), 0 18px 48px rgba(28, 27, 38, 0.12);
}

/* ---------------------------------------------------------------------------
 * 2. Tokens — dark
 *
 * Same names, re-valued. Nothing below section 3 knows which mode it is in.
 * ------------------------------------------------------------------------ */

@media (prefers-color-scheme: dark) {
  :root {
    --bg-app: oklch(17% 0.008 275);
    --bg-sunken: oklch(14.5% 0.008 275);
    --surface-card: oklch(21% 0.009 275);
    --ink-1: oklch(96% 0.006 90);
    --ink-2: oklch(80% 0.008 275);
    /* 68%, not the light mode's 54% mirrored. Muted text on a near-black
       ground needs MORE lightness than the naive inversion gives it; 68%
       measures 6.1:1 on --bg-app and 5.4:1 on --surface-card. */
    --ink-3: oklch(68% 0.01 275);
    --border-1: oklch(27% 0.01 275);
    --border-2: oklch(34% 0.012 275);

    /* The accent lifts from 50% to 68%. At 50% the indigo is darker than the
       page and reads as a hole; the primary button then needs dark ink on it,
       which is what --accent-ink carries. */
    --accent: oklch(68% 0.15 275);
    --accent-hover: oklch(75% 0.14 275);
    --accent-ink: oklch(18% 0.02 275);
    --accent-soft: oklch(28% 0.05 275);
    --accent-soft-border: oklch(38% 0.07 275);
    --focus-ring: oklch(68% 0.15 275 / 0.45);

    --epic-indigo: oklch(78% 0.09 275);
    --epic-indigo-bg: oklch(26% 0.04 275);
    --epic-sky: oklch(78% 0.09 230);
    --epic-sky-bg: oklch(26% 0.04 230);
    --epic-green: oklch(78% 0.09 155);
    --epic-green-bg: oklch(26% 0.04 155);
    --epic-amber: oklch(80% 0.09 85);
    --epic-amber-bg: oklch(26% 0.04 85);
    --epic-coral: oklch(78% 0.09 25);
    --epic-coral-bg: oklch(26% 0.04 25);
    --epic-plum: oklch(78% 0.09 330);
    --epic-plum-bg: oklch(26% 0.04 330);

    /* Shadows do almost nothing on a dark ground — borders carry the elevation
       instead — so these are kept but shallowed, and the shot frame leans on
       its ring. */
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-raised: 0 2px 4px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-shot: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 48px rgba(0, 0, 0, 0.45);
  }
}

/* ---------------------------------------------------------------------------
 * 3. Type + spacing scale (mode-independent)
 * ------------------------------------------------------------------------ */

:root {
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Marketing ramp. `clamp()` does the responsive work so there are no
     type-only media queries anywhere below. */
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); /* hero h1 */
  --fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3rem); /* page titles */
  --fs-h2: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem); /* section titles */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* feature titles */
  --fs-h4: 1.0625rem;
  --fs-lede: clamp(1.125rem, 1.03rem + 0.4vw, 1.3125rem); /* hero/section lede */
  --fs-body: 1.0625rem; /* 17px */
  --fs-small: 0.9375rem; /* 15px */
  --fs-tiny: 0.8125rem; /* 13px */
  --fs-label: 0.75rem; /* uppercase eyebrows */
  --tracking-label: 0.08em;
  --tracking-tight: -0.022em;

  /* Space — the app's 4px base, extended upward for section rhythm. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 96px;

  /* Radii — the app's, plus a larger one for marketing-scale cards. */
  --radius-chip: 6px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur-med: 200ms;

  /* The content column. ~72rem at 16px root = 1152px. */
  --measure: 72rem;
  --measure-narrow: 46rem; /* prose / legal */
  --measure-text: 38rem; /* a paragraph's comfortable line length */
}

/* ---------------------------------------------------------------------------
 * 4. Reset + document
 * ------------------------------------------------------------------------ */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-1);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}
h4 {
  font-size: var(--fs-h4);
  line-height: 1.35;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent-hover);
}

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

hr {
  border: 0;
  border-top: 1px solid var(--border-1);
  margin: var(--space-8) 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-chip);
}

::selection {
  background: var(--accent-soft);
  color: var(--ink-1);
}

/* ---------------------------------------------------------------------------
 * 5. Layout primitives
 *
 *   .wrap      — the content column. Put it INSIDE a .section, not around one.
 *   .wrap--narrow / --text — the same column, tightened for prose.
 *   .section   — vertical rhythm. --alt paints the sunken ground, --tight and
 *                --flush adjust the padding, --hairline adds a top rule.
 *   .stack     — the workhorse vertical flow; `--gap-N` sets the gap.
 * ------------------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap--narrow {
  max-width: var(--measure-narrow);
}
.wrap--text {
  max-width: var(--measure-text);
}

.section {
  padding-block: clamp(var(--space-9), 7vw, var(--space-10));
}
.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-9));
}
.section--flush-top {
  padding-block-start: 0;
}
.section--flush-bottom {
  padding-block-end: 0;
}
.section--alt {
  background: var(--bg-sunken);
}
.section--hairline {
  border-block-start: 1px solid var(--border-1);
}

/* Vertical flow. The gap modifiers are the only spacing API content pages
   should need — avoid one-off margins. */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.stack--gap-2 {
  gap: var(--space-2);
}
.stack--gap-3 {
  gap: var(--space-3);
}
.stack--gap-6 {
  gap: var(--space-6);
}
.stack--gap-7 {
  gap: var(--space-7);
}
.stack--gap-8 {
  gap: var(--space-8);
}

.center {
  text-align: center;
}

/* Section headers: eyebrow + title + lede, used at the top of most sections. */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--measure-narrow);
  margin-block-end: var(--space-8);
}
.section-head.center {
  margin-inline: auto;
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure-text);
}

/* A max-width'd paragraph inside a centred block must be centred by its own
   margins, not just by text-align. Declared AFTER `.lede` on purpose: it is the
   more specific selector, so the cascade needs it later in the file. */
.center .lede,
.center p {
  margin-inline: auto;
}

.muted {
  color: var(--ink-2);
}
.faint {
  color: var(--ink-3);
}
.small {
  font-size: var(--fs-small);
}
.tiny {
  font-size: var(--fs-tiny);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible only on keyboard focus. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-200%);
  background: var(--surface-card);
  color: var(--ink-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-control);
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible {
  transform: none;
}

/* ---------------------------------------------------------------------------
 * 6. Buttons
 *
 *   .btn                  base (also fine on <button>)
 *   .btn--primary         Milemark indigo, the one real call to action
 *   .btn--secondary       bordered, on-surface
 *   .btn--ghost           text-only with a hover wash (nav "Sign in")
 *   .btn--lg / --sm       size
 *   .btn-row              a wrapping row of them
 * ------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

.btn--secondary {
  background: var(--surface-card);
  border-color: var(--border-2);
  color: var(--ink-1);
  box-shadow: var(--shadow-card);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn--lg {
  padding: 0.8rem 1.5rem;
  font-size: var(--fs-body);
  border-radius: var(--radius-control);
}
.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: var(--fs-tiny);
}
.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.center .btn-row {
  justify-content: center;
}

/* ---------------------------------------------------------------------------
 * 7. Nav
 *
 * No JavaScript, so no hamburger. Under 800px the nav simply becomes a stacked
 * block: brand on its own line, then the links row, then the actions row. It is
 * a marketing site with three links — a disclosure widget would be more machine
 * than the problem deserves.
 * ------------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg-app) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--border-1);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 60px;
  padding-block: var(--space-3);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font: 700 1.0625rem / 1.2 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink-1);
  text-decoration: none;
  flex: none;
}
.nav__brand:hover {
  color: var(--ink-1);
}
.nav__brand img,
.nav__brand svg {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-chip);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--ink-2);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.nav__links a:hover {
  color: var(--ink-1);
}
/* Mark the current page with aria-current="page" — styling follows the ARIA. */
.nav__links a[aria-current="page"] {
  color: var(--ink-1);
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

@media (max-width: 800px) {
  /* Stacked, the nav is ~200px tall — a fifth of a phone viewport. Sticky is a
     desktop affordance here; on mobile it stops being a convenience and starts
     being the page. It scrolls away like everything else. */
  .nav {
    position: static;
    backdrop-filter: none;
    background: var(--bg-app);
  }
  .nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding-block: var(--space-4);
  }
  .nav__links {
    flex-wrap: wrap;
    gap: var(--space-5);
  }
  .nav__actions {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------------------------
 * 8. Hero
 * ------------------------------------------------------------------------ */

.hero {
  padding-block: clamp(var(--space-9), 8vw, 8rem) clamp(var(--space-8), 6vw, var(--space-10));
  /* A single soft indigo wash behind the fold, keyed to the accent so it
     re-tints itself in dark mode without a second declaration. */
  background:
    radial-gradient(60rem 28rem at 50% -6rem, var(--accent-soft), transparent 70%), var(--bg-app);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 54rem;
}
.hero--center .hero__inner {
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero__lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 40rem;
}

.hero__note {
  font-size: var(--fs-tiny);
  color: var(--ink-3);
}

/* The hero screenshot sits below the copy and is allowed the full column. */
.hero__media {
  margin-block-start: var(--space-8);
}

/* ---------------------------------------------------------------------------
 * 9. Screenshot frame
 *
 * A browser-card: hairline border, generous radius, a real drop shadow, and an
 * inner highlight so the image edge does not fight the frame. Use
 * `.shot--bare` for an image that already has its own chrome.
 *
 *   <figure class="shot">
 *     <img src="/shots/timeline.png" alt="…" width="2400" height="1500" />
 *     <figcaption class="shot__caption">…</figcaption>
 *   </figure>
 *
 * Always set width/height on the <img> so the page does not reflow when the
 * screenshot arrives.
 * ------------------------------------------------------------------------ */

.shot {
  margin: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-panel);
  background: var(--surface-card);
  box-shadow: var(--shadow-shot);
  overflow: hidden;
  /* The image's own corners are clipped by the radius; this keeps the clip
     crisp on the GPU-composited layer the shadow creates. */
  isolation: isolate;
}
.shot > img {
  width: 100%;
  display: block;
  border-radius: 0;
}
.shot--bare {
  border: 0;
  background: none;
  box-shadow: none;
}
.shot__caption {
  padding: var(--space-3) var(--space-4);
  border-block-start: 1px solid var(--border-1);
  background: var(--bg-sunken);
  color: var(--ink-3);
  font-size: var(--fs-tiny);
}

/* A stand-in while `/shots/*.png` do not exist yet. Give it an aspect-ratio
   inline (style="aspect-ratio: 16/10") to match the real screenshot. */
.shot__placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-sunken) 0 12px,
    color-mix(in oklab, var(--bg-sunken) 60%, var(--border-1)) 12px 24px
  );
  color: var(--ink-3);
  font-size: var(--fs-tiny);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * 10. Feature rows + grids
 *
 *   .feature-grid  — alternating 2-col rows: copy beside a screenshot.
 *   .feature-row   — one row. Add --reverse to put the media on the left.
 *   .cards         — an N-up grid of small feature cards (no screenshot).
 * ------------------------------------------------------------------------ */

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-9), 6vw, var(--space-10));
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--space-7), 4vw, var(--space-9));
  align-items: center;
}
.feature-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.feature-row__media {
  min-width: 0;
}
/* Media first in the source stays media first on mobile? No — copy should
   always lead on a narrow screen, so the reverse is done with `order` and
   collapses back to source order below 800px (see the breakpoint). */
.feature-row--reverse .feature-row__body {
  order: 2;
}
.feature-row--reverse .feature-row__media {
  order: 1;
}

/* Card grid. `--cols` is the desktop column count; default 3. */
.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: var(--space-6);
}
.cards--2 {
  --cols: 2;
}
.cards--4 {
  --cols: 4;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card__body {
  color: var(--ink-2);
  font-size: var(--fs-small);
}

/* A small round/square glyph slot at the top of a card. Tint it with any epic
   hue: <span class="card__icon" style="--tint: var(--epic-green-bg); --tint-ink: var(--epic-green)"> */
.card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: var(--tint, var(--accent-soft));
  color: var(--tint-ink, var(--accent));
  font-weight: 700;
  font-size: var(--fs-small);
}

/* ---------------------------------------------------------------------------
 * 11. Pricing
 * ------------------------------------------------------------------------ */

.pricing {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.pricing--2 {
  --cols: 2;
  max-width: 56rem;
  margin-inline: auto;
}
.pricing--1 {
  --cols: 1;
  max-width: 28rem;
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-7);
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}
/* The recommended plan. Indigo ring rather than a scale transform — a card
   that grows breaks the grid's baseline and reflows on hover-less devices. */
.price-card--featured {
  border-color: var(--accent);
  box-shadow:
    var(--shadow-raised),
    0 0 0 1px var(--accent);
}

.price-card__name {
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.price-card__badge {
  align-self: flex-start;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-1);
}
.price-card__period {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
.price-card__note {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

/* Feature list with a checkmark drawn in CSS — no icon font, no inline SVG per
   item. `.feature-list li[data-no]` renders a dash instead. */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.feature-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-2);
  align-items: start;
}
.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  line-height: 1.5;
}
.feature-list li[data-no]::before {
  content: "–";
  color: var(--ink-3);
}

/* ---------------------------------------------------------------------------
 * 12. Prose — legal pages, changelogs, anything long-form
 *
 * Scoped so content agents can paste plain HTML inside a single
 * <div class="prose"> without reaching for utility classes on every element.
 * ------------------------------------------------------------------------ */

.prose {
  max-width: var(--measure-narrow);
  color: var(--ink-2);
}
.prose > * + * {
  margin-block-start: var(--space-4);
}
.prose h2 {
  font-size: 1.5rem;
  color: var(--ink-1);
  margin-block-start: var(--space-8);
}
.prose h3 {
  font-size: 1.1875rem;
  color: var(--ink-1);
  margin-block-start: var(--space-7);
}
.prose h2 + *,
.prose h3 + * {
  margin-block-start: var(--space-3);
}
.prose p,
.prose li {
  line-height: 1.7;
}
.prose ul,
.prose ol {
  padding-inline-start: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.prose strong {
  color: var(--ink-1);
  font-weight: 600;
}
.prose a {
  text-decoration: underline;
}
.prose blockquote {
  margin: 0;
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--accent-soft-border);
  color: var(--ink-2);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.prose th,
.prose td {
  text-align: start;
  padding: var(--space-3);
  border-block-end: 1px solid var(--border-1);
}
.prose th {
  color: var(--ink-1);
  font-weight: 600;
}
/* A wide table must scroll inside itself, never the page. */
.prose .table-scroll {
  overflow-x: auto;
}

/* The "last updated" stamp at the top of a legal page. */
.prose__stamp {
  font-size: var(--fs-tiny);
  color: var(--ink-3);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * 13. CTA band
 * ------------------------------------------------------------------------ */

.cta {
  padding-block: clamp(var(--space-9), 6vw, var(--space-10));
  background: var(--bg-sunken);
  border-block: 1px solid var(--border-1);
  text-align: center;
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: var(--measure-narrow);
  margin-inline: auto;
}
.cta__title {
  font-size: var(--fs-h2);
}

/* ---------------------------------------------------------------------------
 * 14. Footer
 * ------------------------------------------------------------------------ */

.footer {
  background: var(--bg-app);
  border-block-start: 1px solid var(--border-1);
  padding-block: var(--space-9) var(--space-8);
  color: var(--ink-2);
  font-size: var(--fs-small);
}

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 24rem;
}
.footer__wordmark {
  font: 700 1.0625rem / 1.2 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink-1);
  text-decoration: none;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__heading {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__col a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer__col a:hover {
  color: var(--accent);
}

.footer__legal {
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border-1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: baseline;
  font-size: var(--fs-tiny);
  color: var(--ink-3);
}
.footer__legal a {
  color: var(--ink-3);
}
.footer__legal a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------------------
 * 15. Odds and ends content pages will want
 * ------------------------------------------------------------------------ */

/* A quiet inline pill — "Beta", "Coming soon", a tag on an example. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--tint, var(--accent-soft));
  border: 1px solid var(--tint-border, var(--accent-soft-border));
  color: var(--tint-ink, var(--accent));
  font-size: var(--fs-tiny);
  font-weight: 600;
  white-space: nowrap;
}

/* FAQ / disclosure. <details> is native, needs no JS, and is accessible. */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--measure-narrow);
  border-block-start: 1px solid var(--border-1);
}
.faq details {
  border-block-end: 1px solid var(--border-1);
}
.faq summary {
  cursor: pointer;
  padding: var(--space-5) 0;
  font-weight: 600;
  color: var(--ink-1);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--ink-3);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details > *:not(summary) {
  padding-block-end: var(--space-5);
  color: var(--ink-2);
  max-width: var(--measure-text);
}

/* A row of short stats or proof points. */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-6);
}
.stat__value {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  line-height: 1.1;
}
.stat__label {
  font-size: var(--fs-small);
  color: var(--ink-3);
}

/* The 404 / any "one short message centred in the viewport" page. */
.notice {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding-block: var(--space-9);
  text-align: center;
}
.notice__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 34rem;
}
.notice__code {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------------------
 * 16. The one breakpoint
 *
 * 800px: every multi-column layout becomes a single column, and the reversed
 * feature row returns to source order (copy first). Everything else is fluid
 * via clamp() and needs no query.
 * ------------------------------------------------------------------------ */

@media (max-width: 800px) {
  .wrap {
    padding-inline: var(--space-5);
  }

  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  .feature-row--reverse .feature-row__body,
  .feature-row--reverse .feature-row__media {
    order: initial;
  }

  .cards,
  .pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }

  .btn--lg {
    width: 100%;
  }
  .btn-row {
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------------------
 * 17. Print — legal pages get printed. Drop the chrome, keep the words.
 * ------------------------------------------------------------------------ */

@media print {
  .nav,
  .footer,
  .cta,
  .skip-link {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .section {
    padding-block: 0;
  }
  a {
    color: #000;
  }
}
