/* ==========================================================================
   Alembic Marketing — shared stylesheet (features / technology)
   The marketing surface speaks the product's Broadsheet language:
   warm ink, Fraunces display, DM Sans body, IBM Plex Mono data,
   green action, blue reserved for the logo mark only.
   Light + dark themes, reduced-motion honored.
   ========================================================================== */

:root {
  /* Logo only — never buttons, never accents */
  --alembic: #1F7AD4;

  /* Action green — every CTA, link accent, focus ring */
  --action: #4A8B6A;
  --action-hover: #3E7A5B;
  /* Button FILLS only. --action stays the accent-text colour (it must read on paper, which
     is why dark mode lightens it — and why white could never read on it: 3.23:1, and 2.67:1
     on the dark hover green, under even the 3:1 large-text floor). Two jobs, two tokens.
     These are identical in both modes: a filled button carries its own background, so it has
     no reason to follow the theme. White on #3E7A5B = 5.07:1, on #35684E = 6.48:1. */
  --action-surface: #3E7A5B;
  --action-surface-hover: #35684E;
  /* Accent green as TEXT. The third job: it has to read on paper/card/well, which the brand
     green does not in light mode (3.56 on the well, 3.84 on paper). Light lands on the same
     #35684E as the button hover, so light mode still only carries two greens. Dark's existing
     #5C9C7C already cleared this (5.25 worst) and is unchanged. Large display text (the
     contact h1 em at 38-64px) keeps plain --action — 3:1 applies there and brand wins.
     So: --action-surface fills, --action-text reads, --action decorates. */
  --action-text: #35684E;
  --action-glow: rgba(74, 139, 106, 0.2);
  --action-wash: rgba(74, 139, 106, 0.08);

  /* Warm ink scale (matches product --color-ink-*) */
  --ink-900: #16130E;
  --ink-700: #3D3730;
  --ink-600: #655D53;
  --ink-500: #7A7168;
  --ink-400: #9B9289;
  --ink-300: #B5ADA5;
  --ink-200: #CFC9C2;
  --ink-100: #E6E2DD;
  --ink-50: #F2F0ED;

  /* Surfaces */
  --paper: #FAF9F7;
  --card: #FFFFFF;
  --card-border: var(--ink-100);
  /* E20: mockup-internal hairlines only. --ink-100 is --card-border and paints 20+ hairlines
     across seven pages, so it cannot move; but at 1.12 in dark the mockups lost their internal
     divisions entirely — a section card with an outer edge and no cell walls. Dark needs
     --ink-300's value (1.72); light wants --ink-200 (1.64), because light --ink-300 reads as a
     rule rather than a hairline. Hence a token of its own. */
  --mock-hairline: var(--ink-200);
  --well: #F2F0ED;

  /* Semantic (WCAG-safe on card surfaces) */
  --ok-text: #1E7E34;
  --ok-bg: #E6F4EA;
  --warn-text: #8B6914;
  --warn-bg: #FEF3CD;
  --bad-text: #C5221F;
  --bad-bg: #FCE8E6;

  /* Copper — second brand voice (Prism round 2, §2/§7). Alembic is named
     after a copper still and had never used copper before this pass.
     Semantic split from --action: green is what Alembic does, copper is
     what today costs you. Measured 2026-08-13, both clear 4.5:1 as body
     text: light #A0522D is 5.34:1 on --paper / 5.62 on --card / 4.94 on
     --well. Allowed ONLY on pain/limitations mono eyebrows, the pull-quote
     mark + left rule, and 01/02/03 numerals in pain/capability lists.
     Banned on anything interactive, anything inside .pm-* mockups (amber
     lives there — copper and amber must never sit adjacent), and any status
     meaning. Copper measured against --action-text is 1.15:1 — never nest
     one inside the other. */
  --copper: #A0522D;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* Motion */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* Dark-code panel (used by the API visual in both themes) */
  --code-bg: #14110D;
  --code-border: #2A251F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-900: #ECE9E4;
    --ink-700: #CFC9C2;
    --ink-600: #9B9289;
    /* E0: re-spaced from #7A7168 (3.55 on dark --card — under the floor) so the mockups have a
       legible fourth tier in dark mode. Stays darker than dark --ink-600 #9B9289, so the ramp
       order holds. Blast radius checked: `var(--ink-500)` had exactly two consumers repo-wide
       before this pass and both were dead `.app-check*` rules. */
    --ink-500: #8C8379;
    --ink-400: #655D53;
    --ink-300: #4A4239;
    --ink-200: #302A24;
    --ink-100: #2A251F;
    --mock-hairline: #4A4239;   /* = dark --ink-300 */
    --ink-50: #231F1A;

    --paper: #14110D;
    --card: #1F1C18;
    --card-border: #2A251F;
    --well: #1B1814;

    --action: #5C9C7C;
    --action-hover: #6FAB8C;
    --action-surface: #3E7A5B;
    --action-surface-hover: #35684E;
    /* #66A585 not #5C9C7C: --action-text lands on --action-wash in the featured compare
       column, which composites to #262B24 over --card. #5C9C7C measured 4.47 there — short
       by 0.03. This clears it at 5.01 and improves every plain-surface case too. */
    --action-text: #66A585;
    --action-glow: rgba(92, 156, 124, 0.25);
    --action-wash: rgba(92, 156, 124, 0.12);

    --ok-text: #7DC79A;
    --ok-bg: rgba(52, 168, 83, 0.14);
    --warn-text: #D9B45B;
    --warn-bg: rgba(217, 180, 91, 0.12);
    --bad-text: #E08A84;
    --bad-bg: rgba(197, 34, 31, 0.16);

    /* Dark copper — measured 2026-08-13: 5.63:1 on --paper / 5.07 on --card
       / 5.29 on --well. */
    --copper: #C9784E;

    --code-bg: #100E0B;
    --code-border: #2A251F;
  }
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--action-glow); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
/* The chrome placeholders must not form a box. `position: sticky` is constrained by
   its containing block, and these wrappers are exactly the height of the element they
   hold — so a sticky nav inside one has zero travel and scrolls away permanently.
   Before this session the nav was a direct <body> child and stuck correctly; moving it
   into <div data-marketing-nav> silently broke that on all five pages. `display:
   contents` removes the wrapper from the box tree so the nav's containing block is
   <body> again, with no layout shift. */
[data-marketing-nav],
[data-marketing-footer] { display: contents; }
/* CLS guard: until marketing-chrome.js injects the real <nav>, the placeholder
   holds the nav's 64px so first paint doesn't shift when the chrome lands.
   Once a <nav> exists inside (JS-injected, or the noscript fallback rendering
   without JS), :has flips it back to display:contents so position:sticky's
   containing block is <body> again. */
[data-marketing-nav]:not(:has(nav)) { display: block; min-height: 64px; }

/* Skip link — visually hidden until focused (same pattern as .im-skip-link). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--card);
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus-visible {
  left: 12px;
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
}
.nav-logo { width: 25px; height: 30px; flex-shrink: 0; transform: translateY(-3px); }
.nav-logo circle, .nav-logo rect { fill: var(--alembic); }
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-900);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font-body);
}
.nav-link:hover { color: var(--ink-900); background: var(--well); }
.nav-link--active { color: var(--ink-900); font-weight: 600; }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--action-surface);
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s var(--ease-standard), transform 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
  font-family: var(--font-body);
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--action-surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--action-glow);
}
.nav-link:focus-visible,
.nav-cta:focus-visible,
.nav-left:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

/* ── Nav — mobile hamburger + dropdown panel (<=720px) ──────────────────────
   Shared chrome rendered by public/js/marketing-chrome.js. Desktop links
   stay in .nav-right; below 720px that row hides and the hamburger button
   toggles a full-width panel with the same links stacked. */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--well); }
.nav-hamburger:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-700);
  transition: transform 0.25s var(--ease-standard), opacity 0.2s var(--ease-standard);
}
.nav--menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav--menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-panel {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: 0 12px 32px rgba(22, 19, 14, 0.1);
}
.nav-mobile-panel--open { display: flex; }
.nav-mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 8px;
  border-bottom: 1px solid var(--ink-100);
}
.nav-mobile-link:last-of-type { border-bottom: none; }
.nav-mobile-link:hover, .nav-mobile-link:focus-visible { color: var(--ink-900); background: var(--well); }
.nav-mobile-link.nav-link--active { color: var(--ink-900); font-weight: 600; }
.nav-mobile-cta {
  margin-top: 10px;
  text-align: center;
  /* Was 34px tall next to 45px sibling links — the conversion action was the
     hardest thing in the menu to hit. */
  /* min-height, not padding alone: 13px padding + an 18px line box lands on 44 while the
     sibling .nav-mobile-links get 45 from their 21px line box. 1px short still reads as odd. */
  padding-top: 13px;
  padding-bottom: 13px;
  min-height: 45px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 40px 72px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--action-text);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.hero-headline > .hl-line { display: block; text-wrap: balance; }
.hero-headline, .hero h1 {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-900);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  /* `text-wrap: balance` does NOTHING on a block containing a forced <br> — verified by
     toggling it: byte-identical breaks. So the two-sentence heroes wrap each sentence in its
     own block-level <span>, which is what actually gives the balancer something to balance
     (measured: /pricing at 375 goes [23, 6] -> [16, 13], killing the "costs." orphan).
     The rule on the parent still covers single-sentence heroes like /technology's. */
  text-wrap: balance;
}
.hero-sub, .hero > p {
  font-size: 19px;
  color: var(--ink-600);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--action-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header .section-label { justify-content: center; }
.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action);
  flex-shrink: 0;
  transform: scale(0);
  transition: transform 0.5s var(--spring) 0.1s;
}
.section-label.dot-visible::before,
.section-header.visible .section-label::before,
.feature-block.visible .feature-label::before { transform: scale(1); }
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink-900);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-subtitle, .section-body {
  font-size: 17px;
  color: var(--ink-600);
  line-height: 1.7;
}
.section-subtitle { max-width: 560px; margin: 0 auto; }

.section-header {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-standard), transform 0.55s var(--spring);
}
.section-header.visible { opacity: 1; transform: translateY(0); }

/* Three-dot divider */
.dot-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 32px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-standard);
}
/* Retrofitted onto the reveal inversion (Prism round 2, §1): .is-revealed is
   the new contract's class, .visible is the legacy one the seven
   hand-written pages' own inline observers still add. marketing-chrome.js's
   registry now adds BOTH on every page, so either selector alone would work
   going forward — both stay listed so nobody "cleans up" the one the
   hand-written pages depend on (see tests/unit/marketing-cta-reveal.test.ts). */
.dot-divider.visible,
.dot-divider.is-revealed { opacity: 1; }
.dot-divider span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-200);
  transform: scale(0);
  transition: transform 0.4s var(--spring);
}
.dot-divider.visible span:nth-child(1),
.dot-divider.is-revealed span:nth-child(1) { transform: scale(1); transition-delay: 0ms; }
.dot-divider.visible span:nth-child(2),
.dot-divider.is-revealed span:nth-child(2) { transform: scale(1); transition-delay: 80ms; background: var(--ink-300); }
.dot-divider.visible span:nth-child(3),
.dot-divider.is-revealed span:nth-child(3) { transform: scale(1); transition-delay: 160ms; }

/* ── Feature blocks (alternating) ────────────────────────────────────────── */
.features {
  padding: 40px 40px 80px;
  /* 1160 not 1080: border-box puts the 40px padding inside, so this resolves to 1080
     of content — the same as .footer-inner, which sits inside .footer's padding. */
  max-width: 1160px;
  margin: 0 auto;
}
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--ink-100);
  opacity: 0;
  transform: translateY(24px);
}
.feature-block.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-standard), transform 0.65s var(--spring);
}
.feature-block:first-of-type { border-top: none; }
.feature-block--reverse { direction: rtl; }
.feature-block--reverse > * { direction: ltr; }
.feature-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--action-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action);
  flex-shrink: 0;
  transform: scale(0);
  transition: transform 0.5s var(--spring) 0.15s;
}
.feature-plan {
  font-family: var(--font-mono);
  font-size: 10px;
  /* was --ink-400: 2.91:1 in BOTH modes at 10px. --ink-600 is the lowest step that
     clears AA in both (6.15:1) — --ink-500 still fails dark at 3.93:1. */
  color: var(--ink-600);
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 4px;
}
.feature-headline {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-900);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.feature-body {
  font-size: 16px;
  color: var(--ink-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-bullets li {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.55;
  padding-left: 24px;
  position: relative;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease-standard), transform 0.4s var(--spring);
}
.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action-wash);
  border: 2px solid var(--action);
}
.feature-block.visible .feature-bullets li { opacity: 1; transform: translateX(0); }
.feature-block.visible .feature-bullets li:nth-child(1) { transition-delay: 0.2s; }
.feature-block.visible .feature-bullets li:nth-child(2) { transition-delay: 0.28s; }
.feature-block.visible .feature-bullets li:nth-child(3) { transition-delay: 0.36s; }
.feature-block.visible .feature-bullets li:nth-child(4) { transition-delay: 0.44s; }
/* The Governance block runs to five bullets. Without this the fifth inherits a 0s
   delay and animates in ahead of the four above it, so the stagger reads backwards. */
.feature-block.visible .feature-bullets li:nth-child(5) { transition-delay: 0.52s; }

/* ── Product mockups (feature visuals) ───────────────────────────────────── */
.feature-visual {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(22, 19, 14, 0.06), 0 1px 3px rgba(22, 19, 14, 0.04);
  font-family: var(--font-body);
  color: var(--ink-900);
  transform: scale(0.97);
  opacity: 0;
  transition: box-shadow 0.3s var(--ease-standard);
}
.feature-visual.visible {
  transform: scale(1);
  opacity: 1;
  transition: opacity 0.55s var(--ease-standard) 0.12s, transform 0.65s var(--spring) 0.12s, box-shadow 0.3s var(--ease-standard);
}
.feature-visual:hover { box-shadow: 0 8px 32px rgba(22, 19, 14, 0.1), 0 2px 6px rgba(22, 19, 14, 0.05); }

/* App chrome */
.app-chrome {
  padding: 14px 18px;
  border-bottom: 1px solid var(--mock-hairline);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
}
.app-chrome-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
}
.app-chrome-icon--pdf { background: var(--bad-bg); color: var(--bad-text); }
.app-chrome-icon--space { background: var(--action-wash); color: var(--action); }
.app-chrome-icon--profile { background: var(--action-wash); color: var(--action); }
.app-chrome-icon--distlr { background: var(--well); color: var(--ink-600); }
.app-chrome-icon--rules { background: var(--ok-bg); color: var(--ok-text); }
.app-chrome-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  color: var(--ink-900);
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-chrome-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); }
.app-chrome-badge {
  font-size: 10px; font-family: var(--font-mono); font-weight: 500;
  padding: 3px 10px; border-radius: 10px;
  white-space: nowrap;
}
.app-chrome-badge--green { background: var(--ok-bg); color: var(--ok-text); }
.app-chrome-badge--amber { background: var(--warn-bg); color: var(--warn-text); }

/* Field grid */
.app-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--mock-hairline); position: relative; overflow: hidden; }
.app-field-cell {
  padding: 10px 14px; background: var(--card);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-standard), transform 0.4s var(--spring);
}
.feature-visual.visible .app-field-cell { opacity: 1; transform: translateY(0); }
.feature-visual.visible .app-field-cell:nth-child(1) { transition-delay: 0.22s; }
.feature-visual.visible .app-field-cell:nth-child(2) { transition-delay: 0.28s; }
.feature-visual.visible .app-field-cell:nth-child(3) { transition-delay: 0.34s; }
.feature-visual.visible .app-field-cell:nth-child(4) { transition-delay: 0.40s; }
.feature-visual.visible .app-field-cell:nth-child(5) { transition-delay: 0.46s; }
.feature-visual.visible .app-field-cell:nth-child(6) { transition-delay: 0.52s; }
.app-field-label {
  font-size: 10px; font-weight: 500;
  color: var(--ink-500); margin-bottom: 3px;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
}
.app-field-label .req { width: 4px; height: 4px; border-radius: 50%; background: var(--action); }
.app-field-val { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-900); }
.app-field-val--missing { font-size: 12px; color: var(--warn-text); font-style: italic; font-family: var(--font-body); }
.app-field-source { font-family: var(--font-mono); font-size: 9px; color: var(--action); margin-top: 2px; }
.app-field-conflict {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--warn-text); background: var(--warn-bg);
  border-radius: 8px; padding: 1px 7px; margin-top: 3px;
}

/* Section cards inside a doc mockup */
.app-section {
  border: 1px solid var(--mock-hairline); border-radius: 10px;
  margin: 12px 16px; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease-standard), transform 0.45s var(--spring);
}
.feature-visual.visible .app-section { opacity: 1; transform: translateY(0); }
.feature-visual.visible .app-section:nth-of-type(1) { transition-delay: 0.18s; }
.feature-visual.visible .app-section:nth-of-type(2) { transition-delay: 0.28s; }
.app-section-head {
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border-bottom: 1px solid var(--mock-hairline);
}
.app-section-icon {
  width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.app-section-icon--kv { background: var(--action-wash); color: var(--action); }
.app-section-icon--currency { background: var(--ok-bg); color: var(--ok-text); }
.app-section-title { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--ink-900); flex: 1; }
.app-section-count { font-family: var(--font-mono); font-size: 9px; background: var(--well); color: var(--ink-600); padding: 2px 7px; border-radius: 8px; }

/* Row list (standup / check-in rows) */
.app-row {
  padding: 11px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--ink-100);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s var(--ease-standard), transform 0.4s var(--spring);
}
.app-row:last-child { border-bottom: none; }
.feature-visual.visible .app-row { opacity: 1; transform: translateX(0); }
.feature-visual.visible .app-row:nth-of-type(1) { transition-delay: 0.16s; }
.feature-visual.visible .app-row:nth-of-type(2) { transition-delay: 0.24s; }
.feature-visual.visible .app-row:nth-of-type(3) { transition-delay: 0.32s; }
.feature-visual.visible .app-row:nth-of-type(4) { transition-delay: 0.40s; }
.feature-visual.visible .app-row:nth-of-type(5) { transition-delay: 0.48s; }
.app-diamond { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; flex-shrink: 0; }
.app-diamond--crit { background: var(--bad-text); }
.app-diamond--imp { background: var(--warn-text); }
.app-diamond--ok { background: var(--action); }
.app-row-title {
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--ink-900); max-width: 150px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-row-dash { color: var(--ink-300); margin: 0 2px; }
.app-row-summary {
  font-size: 12px; color: var(--ink-600); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-row-tag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); white-space: nowrap; }
.app-row-tag--ok { color: var(--ok-text); }
.app-row-chevron { color: var(--ink-300); font-size: 14px; }
.app-allclear {
  padding: 14px 16px; text-align: center;
  font-family: var(--font-display); font-size: 15px;
  font-style: italic; color: var(--action);
}

/* Decision card (standup) */
.app-decision {
  margin: 12px 16px 16px; border: 1px solid var(--ink-100); border-radius: 10px;
  padding: 12px 14px; background: var(--card);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease-standard) 0.5s, transform 0.45s var(--spring) 0.5s;
}
.feature-visual.visible .app-decision { opacity: 1; transform: translateY(0); }
.app-decision-q { font-family: var(--font-display); font-size: 14px; color: var(--ink-900); margin-bottom: 4px; }
.app-decision-ctx { font-size: 12px; color: var(--ink-600); line-height: 1.5; margin-bottom: 10px; }
.app-decision-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.app-decision-opt {
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--ink-100); border-radius: 999px;
  padding: 5px 12px; color: var(--ink-700); background: var(--card);
}
.app-decision-opt--primary { border-color: var(--action); color: var(--action); background: var(--action-wash); }

/* Chat / Q&A (Analyst) */
.app-chat { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.app-chat-q {
  align-self: flex-end;
  max-width: 82%;
  background: var(--well); color: var(--ink-900);
  border-radius: 12px 12px 4px 12px;
  padding: 9px 13px; font-size: 13px; line-height: 1.5;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-standard) 0.15s, transform 0.4s var(--spring) 0.15s;
}
.app-chat-a {
  align-self: flex-start;
  max-width: 92%;
  border: 1px solid var(--mock-hairline);
  border-radius: 12px 12px 12px 4px;
  padding: 11px 14px; font-size: 13px; line-height: 1.6; color: var(--ink-700);
  background: var(--card);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-standard) 0.3s, transform 0.4s var(--spring) 0.3s;
}
.feature-visual.visible .app-chat-q,
.feature-visual.visible .app-chat-a { opacity: 1; transform: translateY(0); }
.app-chat-a strong { color: var(--ink-900); font-weight: 600; }
.app-chat-a .num { font-family: var(--font-mono); font-weight: 500; color: var(--ink-900); }
.app-cite-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.app-cite {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--action-text); background: var(--action-wash);
  border-radius: 8px; padding: 2px 8px;
}
.app-verify {
  display: flex; align-items: center; gap: 6px;
  margin-top: 9px; font-family: var(--font-mono); font-size: 10px; color: var(--ok-text);
}
.app-verify::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok-text); }

/* Live build feed (space creation) */
.app-feed { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.app-feed-line {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-600);
  opacity: 0; transform: translateY(5px);
  transition: opacity 0.3s var(--ease-standard), transform 0.35s var(--spring);
}
.feature-visual.visible .app-feed-line { opacity: 1; transform: translateY(0); }
.feature-visual.visible .app-feed-line:nth-child(1) { transition-delay: 0.18s; }
.feature-visual.visible .app-feed-line:nth-child(2) { transition-delay: 0.30s; }
.feature-visual.visible .app-feed-line:nth-child(3) { transition-delay: 0.42s; }
.feature-visual.visible .app-feed-line:nth-child(4) { transition-delay: 0.54s; }
.feature-visual.visible .app-feed-line:nth-child(5) { transition-delay: 0.66s; }
.app-feed-line .t { color: var(--ink-500); font-size: 10px; flex-shrink: 0; }
.app-feed-line .v { color: var(--ink-900); font-weight: 500; }
.app-feed-line.done { color: var(--ok-text); }

/* Rules (governance) */
.app-rule {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 0 16px 6px;
  border-radius: 8px; border: 1px solid var(--mock-hairline);
  background: var(--card);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s var(--ease-standard), transform 0.4s var(--spring);
}
.feature-visual.visible .app-rule { opacity: 1; transform: translateX(0); }
.feature-visual.visible .app-rule:nth-of-type(1) { transition-delay: 0.18s; }
.feature-visual.visible .app-rule:nth-of-type(2) { transition-delay: 0.25s; }
.feature-visual.visible .app-rule:nth-of-type(3) { transition-delay: 0.32s; }
.feature-visual.visible .app-rule:nth-of-type(4) { transition-delay: 0.39s; }
.app-rule-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--action); flex-shrink: 0; }
.app-rule-condition { font-family: var(--font-mono); font-size: 12px; color: var(--ink-700); flex: 1; }
.app-rule-arrow { color: var(--ink-500); font-size: 12px; }
.app-rule-action { font-family: var(--font-mono); font-size: 11px; color: var(--ink-600); padding: 2px 8px; background: var(--well); border-radius: 4px; white-space: nowrap; }
.app-rule-add {
  padding: 8px 14px; margin: 0 16px 16px;
  font-size: 12px; color: var(--ink-500);
  opacity: 0;
  transition: opacity 0.3s var(--ease-standard) 0.46s;
}
.feature-visual.visible .app-rule-add { opacity: 1; }

/* Checklist (profiles) */
.app-checklist { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.app-check {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-700);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s var(--ease-standard), transform 0.35s var(--spring);
}
.feature-visual.visible .app-check { opacity: 1; transform: translateX(0); }
.feature-visual.visible .app-check:nth-child(1) { transition-delay: 0.34s; }
.feature-visual.visible .app-check:nth-child(2) { transition-delay: 0.42s; }
.feature-visual.visible .app-check:nth-child(3) { transition-delay: 0.50s; }
.app-check-mark {
  width: 15px; height: 15px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; flex-shrink: 0;
}
.app-check--done .app-check-mark { background: var(--ok-bg); color: var(--ok-text); }
.app-check--open .app-check-mark { border: 1.5px dashed var(--ink-300); }
.app-check--open { color: var(--ink-500); }
.app-check em { font-style: normal; color: var(--ink-500); }

/* API visual (dark code panel in both themes) */
.fv-api {
  background: var(--code-bg);
  border-color: var(--code-border);
  color: rgba(236, 233, 228, 0.8);
  padding: 20px;
  display: flex; flex-direction: column;
}
.fv-api .api-bar {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(236, 233, 228, 0.08);
}
.fv-api .api-method {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(92, 156, 124, 0.18); color: #7DC79A;
}
.fv-api .api-path { font-family: var(--font-mono); font-size: 11px; color: rgba(236, 233, 228, 0.55); }
.fv-api .api-code {
  flex: 1; font-family: var(--font-mono);
  font-size: 12px; line-height: 1.7;
  color: rgba(236, 233, 228, 0.7); overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease-standard) 0.3s;
}
.feature-visual.visible .fv-api .api-code, .fv-api.visible .api-code { opacity: 1; }
.fv-api .ck { color: #9CC3E8; }
.fv-api .cs { color: #C9DFB8; }
.fv-api .cn { color: #E0B184; }
.fv-api .cb { color: #D99A94; }
.fv-api .cc { color: rgba(236, 233, 228, 0.5); font-style: italic; }

/* ── Roadmap (features page) ─────────────────────────────────────────────── */
/* Sold with a date, not yet running. The card deliberately reads quieter than a
   .use-card — no lift, dashed border, ink ramp rather than the action green —
   because a reader skimming the page must never mistake one of these for a
   capability that ships today. The date is the loudest thing in the card. */
.feature-roadmap { padding: 20px 40px 40px; max-width: 1100px; margin: 0 auto; }
.roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.roadmap-item {
  background: var(--well);
  border: 1px dashed var(--ink-100);
  border-radius: 16px;
  padding: 28px;
}
.roadmap-when {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink-600);
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.roadmap-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.3;
  margin-bottom: 10px;
}
.roadmap-body { font-size: 14px; color: var(--ink-600); line-height: 1.6; }

/* ── Card grid (use cases / problems) ────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.55s var(--ease-standard), transform 0.6s var(--spring), box-shadow 0.25s var(--ease-standard), border-color 0.25s var(--ease-standard);
}
.use-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.use-card:hover {
  border-color: var(--ink-200);
  box-shadow: 0 10px 32px rgba(22, 19, 14, 0.09);
  transform: translateY(-3px) scale(1);
}
.use-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--action-wash);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.45s var(--spring);
}
.use-card:hover .use-card-icon { transform: scale(1.08); }
.use-card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--action);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.use-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 10px; line-height: 1.3;
}
.use-card p { font-size: 15px; color: var(--ink-600); line-height: 1.65; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 40px 100px;
  text-align: center;
  background: var(--card);
  border-top: 1px solid var(--ink-100);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--action-wash) 0%, transparent 70%);
  pointer-events: none;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 400; font-style: italic;
  color: var(--ink-900);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.cta-body { font-size: 18px; color: var(--ink-600); line-height: 1.7; max-width: 540px; margin: 0 auto 32px; }
.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600;
  color: #FFFFFF;
  background: var(--action-surface);
  border: none;
  padding: 16px 36px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s var(--ease-standard), transform 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
  text-decoration: none;
  box-shadow: 0 2px 12px var(--action-glow);
  position: relative;
  isolation: isolate;
}
.cta-button:hover {
  background: var(--action-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--action-glow);
}
.cta-trust { font-size: 13px; color: var(--ink-600); margin-top: 16px; line-height: 1.6; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
  /* 20px tall before the padding — a real button-shaped link deserves a real target. */
  padding: 12px 8px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  transition: color 0.2s;
}
.cta-secondary:hover { color: var(--ink-900); }
.cta-secondary .cta-arrow { display: inline-block; transition: transform 0.3s var(--spring); }
.cta-secondary:hover .cta-arrow { transform: translateX(5px); }
/* CTA entrance — retrofitted onto the reveal inversion (Prism round 2, §1),
   same both-classes rationale as .dot-divider above: .is-revealed is the new
   contract, .visible is what the seven hand-written pages' own inline
   observers still add. Do not collapse to one selector. */
.cta-headline, .cta-body, .cta-trust, .cta-button, .cta-secondary {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-standard), transform 0.55s var(--spring);
}
.cta-secondary { transition: opacity 0.5s var(--ease-standard), transform 0.55s var(--spring), color 0.2s var(--ease-standard); }
.cta-section.visible .cta-headline, .cta-section.is-revealed .cta-headline { opacity: 1; transform: translateY(0); }
.cta-section.visible .cta-body, .cta-section.is-revealed .cta-body { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.cta-section.visible .cta-button, .cta-section.is-revealed .cta-button { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.cta-section.visible .cta-trust, .cta-section.is-revealed .cta-trust { opacity: 1; transform: translateY(0); transition-delay: 0.22s; }
.cta-section.visible .cta-secondary, .cta-section.is-revealed .cta-secondary { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }

/* ── No-JS chrome fallback ────────────────────────────────────────────────────
   marketing-chrome.js renders the real nav and footer, so with JS off these pages
   previously had NO navigation — /technology offered a single in-body link. These rules
   style the <noscript> fallback inside the chrome placeholders. Deliberately plain: it
   only ever paints when scripting is off, so it needs to be legible and complete, not
   pretty. Colours use --ink-600/--action-surface so it is correct in both themes. */
.nav-nojs, .footer-nojs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 18px 40px;
  font-size: 14px;
}
.nav-nojs { border-bottom: 1px solid var(--ink-100); background: var(--paper); }
.footer-nojs { border-top: 1px solid var(--ink-100); background: var(--paper); padding: 32px 40px; }
.nav-nojs a, .footer-nojs a { color: var(--ink-600); text-decoration: none; padding: 6px 0; }
.nav-nojs a:hover, .footer-nojs a:hover { color: var(--ink-900); text-decoration: underline; }
.footer-nojs span { color: var(--ink-600); }
.nav-nojs-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-right: auto;
}
.nav-nojs-brand, .nav-nojs-brand:hover { color: var(--ink-900); text-decoration: none; }
.nav-nojs-cta {
  background: var(--action-surface);
  border-radius: 8px;
  padding: 10px 18px;
}
.nav-nojs-cta, .nav-nojs-cta:hover { color: #FFFFFF; text-decoration: none; }
@media (max-width: 720px) {
  .nav-nojs { padding: 14px 20px; }
  .footer-nojs { padding: 28px 20px; }
  .nav-nojs-brand { margin-right: 0; width: 100%; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { padding: 64px 40px 32px; border-top: 1px solid var(--ink-100); background: var(--paper); }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo { width: 20px; height: 24px; flex-shrink: 0; }
.footer-logo circle, .footer-logo rect { fill: var(--ink-400); }
.footer-wordmark { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink-600); }
.footer-tagline { font-family: var(--font-display); font-size: 14px; font-style: italic; color: var(--ink-600); margin-bottom: 40px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-600); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
/* padding was 9px 0 — measured render height 41.8px, under the 44px touch-target
   minimum. Bumped 2px per side (44px min doesn't round down); low-risk, no
   layout consequence beyond a few px of extra column height. */
.footer-col a { display: block; font-size: 14px; color: var(--ink-600); text-decoration: none; padding: 11px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink-900); }
.footer-col a:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; color: var(--ink-900); }
.footer-bottom { border-top: 1px solid var(--ink-100); padding-top: 20px; font-size: 13px; color: var(--ink-600); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-social { display: inline-flex; gap: 18px; }
.footer-social a { color: var(--ink-600); text-decoration: none; }
.footer-social a:hover { color: var(--ink-900); text-decoration: underline; }

/* Focus visibility for CTAs and in-prose links that sit on card surfaces,
   where the UA default ring is weak (same pattern industry-marketing.css
   already applies via :where(.im-page) a:focus-visible). */
.cta-button:focus-visible,
.cta-secondary:focus-visible,
.page-contact .channel:focus-visible,
.page-legal .legal-prose a:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 6px;
}
.compare-scroll:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.footer-ph-badge { margin-bottom: 40px; }
.footer-ph-badge a { display: inline-block; line-height: 0; border-radius: 10px; }
.footer-ph-badge a:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.footer-ph-badge img { display: block; max-width: 100%; height: auto; }

/* ── Product Hunt launch banner (date-gated by marketing-chrome.js) ─────────
   Normal flow above the sticky nav: it scrolls away, the nav sticks. Product
   Hunt's own brand coral for the mark; the bar itself stays on our tokens. */
.ph-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  background: var(--ink-900);
  color: var(--paper);
  font-size: 13.5px;
  text-decoration: none;
  line-height: 1.4;
}
.ph-banner-kitty { display: inline-flex; line-height: 0; flex-shrink: 0; }
.ph-banner-copy { font-weight: 500; }
.ph-banner-cta { text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; white-space: nowrap; }
.ph-banner:hover .ph-banner-cta { opacity: 1; }
.ph-banner:focus-visible { outline: 2px solid var(--action); outline-offset: -3px; }
@media (max-width: 600px) {
  .ph-banner { flex-wrap: wrap; padding: 8px 14px; font-size: 12.5px; gap: 8px; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .hero { padding: 80px 20px 56px; }
  .hero-headline, .hero h1 { font-size: 38px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-roadmap { padding: 20px 20px 40px; }
  .features { padding: 20px 20px 60px; }
  .feature-block { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-block--reverse { direction: ltr; }
  .feature-visual { order: -1; }
  /* Once the block is one column the copy inherits the section's full ~820px, and
     with no measure cap the body ran 87-118 characters per line. Comfortable
     reading is 45-75. Only needed here — above 900px the two-column grid already
     constrains each column to ~470px. */
  .feature-text { max-width: 66ch; }
  .cta-section { padding: 60px 20px 80px; }
  .cta-headline { font-size: 32px; }
  .footer { padding: 48px 20px 24px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .hero-headline, .hero h1 { font-size: 31px; }
  .hero-sub, .hero > p { font-size: 16px; }
  .feature-headline { font-size: 26px; }
  .section-title { font-size: 28px; }
  .footer-columns { grid-template-columns: 1fr; gap: 24px; }
}

/* Hamburger takes over below 720px — full nav-right row (including the
   Get started CTA) collapses into the toggleable panel. */
@media (max-width: 720px) {
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Reduced motion: everything lands instantly, nothing translates ──────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .feature-block, .feature-visual, .use-card, .app-field-cell, .app-section,
  .app-row, .app-rule, .app-rule-add, .app-decision, .app-chat-q, .app-chat-a,
  .app-feed-line, .app-check, .cta-headline, .cta-body, .cta-button,
  .cta-trust, .cta-secondary, .dot-divider, .section-header, .fv-api .api-code {
    opacity: 1 !important;
    transform: none !important;
  }
  .section-label::before, .feature-label::before, .dot-divider span { transform: scale(1) !important; }
}

/* ── Reveal inversion, generic contract (Prism round 2, §1) ────────────────
   Any element carrying data-reveal gets a fade+rise entrance ONLY once
   marketing-chrome.js has proven it is running (.js-reveal, set as its first
   act) AND its own observer has proven the element is on screen
   (.is-revealed). Absent either — no JS, or JS ran but hasn't revealed this
   element yet because the observer never fires (old browser, error,
   whatever) — the base rule below simply never matches, and the element
   sits at its plain, un-hidden default. This is the opposite shape from
   .cta-section/.dot-divider above (which hide unconditionally and wait for
   a class): those two predate this contract and keep serving the seven
   hand-written pages; every NEW revealed element (industry-marketing.css's
   six primitives, future pages) should use [data-reveal] instead of adding
   another hardcoded default-hidden rule here.
   Components that need bespoke entrance motion (scale, stroke-dashoffset,
   scaleX — not just fade+rise) layer their own [data-reveal].is-revealed
   rules in industry-marketing.css on top of this; this rule only owns the
   opacity/translateY baseline every data-reveal element gets for free. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-standard), transform 0.55s var(--spring);
}
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   PAGE-SCOPED RULES
   Consolidated from security.html / privacy.html / terms.html / contact.html
   — those four pages previously shipped fully self-contained <style> blocks
   with a second, slightly different token set (blue used for links/CTAs,
   which violated the --alembic-is-logo-only rule). Folded in here on the
   shared token scale above; body classes scope what's genuinely per-page.
   ========================================================================== */

/* ── .page-legal — security.html, privacy.html, terms.html ───────────────── */
@keyframes legalFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-legal .legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  opacity: 0;
  animation: legalFadeUp 0.6s ease 0.1s forwards;
}
.page-legal .legal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 8px;
  opacity: 0;
  animation: legalFadeUp 0.5s ease 0.15s forwards;
}
.page-legal .legal-updated {
  font-size: 14px;
  color: var(--ink-600);
  margin-bottom: 48px;
  opacity: 0;
  animation: legalFadeUp 0.5s ease 0.25s forwards;
}
.page-legal .legal-prose {
  opacity: 0;
  animation: legalFadeUp 0.5s ease 0.35s forwards;
}
.page-legal .legal-prose h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 40px;
  margin-bottom: 12px;
}
.page-legal .legal-prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 16px;
}
.page-legal .legal-prose ul {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 16px;
  padding-left: 24px;
}
.page-legal .legal-prose li { margin-bottom: 6px; }
.page-legal .legal-prose a { color: var(--action-text); text-decoration: none; }
.page-legal .legal-prose a:hover { text-decoration: underline; }
.page-legal .legal-prose strong { color: var(--ink-900); font-weight: 600; }
@media (max-width: 640px) {
  .page-legal .legal-wrap { padding: 40px 20px 60px; }
  .page-legal .legal-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-legal .legal-wrap, .page-legal .legal-title, .page-legal .legal-updated, .page-legal .legal-prose {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ── .page-contact — contact.html ─────────────────────────────────────────
   Two-column layout: pitch + channels on the left, live chat on the right.
   Fills the viewport between nav and footer. */
html:has(body.page-contact) { height: 100%; }
body.page-contact { min-height: 100%; display: flex; flex-direction: column; }

@keyframes contactSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes contactSlideUpRight {
  from { opacity: 0; transform: translateY(24px) translateX(-6px); }
  to   { opacity: 1; transform: translateY(0) translateX(0); }
}
@keyframes contactChatEntrance {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes contactGlowBreathe {
  0%, 100% { box-shadow: 0 2px 40px rgba(22,19,14,0.05), 0 1px 3px rgba(22,19,14,0.03), 0 0 0 0 rgba(74,139,106,0); }
  50%       { box-shadow: 0 2px 40px rgba(22,19,14,0.07), 0 1px 3px rgba(22,19,14,0.04), 0 0 0 6px rgba(74,139,106,0.08); }
}
@keyframes contactPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}
@keyframes contactStatusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 126, 52, 0.45); opacity: 1; }
  60%  { box-shadow: 0 0 0 4px rgba(30, 126, 52, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(30, 126, 52, 0); opacity: 1; }
}

.page-contact .page { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }

.page-contact .left {
  padding: 80px 64px 80px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--ink-100);
}
.page-contact .left .eyebrow    { animation: contactSlideUp 0.55s var(--spring) 0.05s both; }
.page-contact .left h1          { animation: contactSlideUp 0.55s var(--spring) 0.17s both; }
.page-contact .left .subtitle   { animation: contactSlideUp 0.55s var(--spring) 0.27s both; }
.page-contact .left .meta-row   { animation: contactSlideUp 0.55s var(--spring) 0.37s both; }
.page-contact .left .channel-label { animation: contactSlideUp 0.5s var(--spring) 0.47s both; }

.page-contact .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--action-text);
  margin-bottom: 24px;
}
.page-contact .eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--action);
  animation: contactPulse 2s ease-in-out infinite;
}
.page-contact h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--ink-900);
}
.page-contact h1 em { font-style: italic; color: var(--action); }
.page-contact .subtitle {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 48px;
  font-weight: 300;
}
.page-contact .meta-row { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.page-contact .meta-item { display: flex; flex-direction: column; gap: 3px; }
.page-contact .meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-600);
  font-weight: 500;
}
.page-contact .meta-value { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.page-contact .meta-divider { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.page-contact .meta-divider::before,
.page-contact .meta-divider::after {
  content: '';
  display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-300);
}
.page-contact .meta-divider::after { opacity: 0.5; }

.page-contact .channels { display: flex; flex-direction: column; gap: 2px; }
.page-contact .channel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-600);
  font-weight: 500;
  margin-bottom: 10px;
}
.page-contact .channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-900);
  transition: background 0.2s ease, border-left-color 0.2s ease;
  position: relative;
  border-left: 2px solid transparent;
}
.page-contact .channels .channel:nth-of-type(1) { animation: contactSlideUpRight 0.5s var(--spring) 0.52s both; }
.page-contact .channels .channel:nth-of-type(2) { animation: contactSlideUpRight 0.5s var(--spring) 0.62s both; }
.page-contact .channels .channel:nth-of-type(3) { animation: contactSlideUpRight 0.5s var(--spring) 0.72s both; }
.page-contact .channel:hover { background: var(--action-wash); border-left-color: var(--action); }
.page-contact .channel-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--action-wash);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--spring);
}
.page-contact .channel:hover .channel-icon { transform: scale(1.05); }
.page-contact .channel-icon svg { width: 16px; height: 16px; color: var(--action); }
.page-contact .channel-text { flex: 1; }
.page-contact .channel-name { font-size: 14px; font-weight: 500; }
.page-contact .channel-desc { font-size: 12px; color: var(--ink-600); margin-top: 1px; }
.page-contact .channel-arrow { color: var(--ink-600); font-size: 16px; transition: transform 0.25s var(--spring), color 0.2s ease; }
.page-contact .channel:hover .channel-arrow { transform: translateX(4px); color: var(--action-text); }

.page-contact .right {
  padding: 40px 48px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: contactChatEntrance 0.65s var(--spring) 0.55s both;
}
.page-contact .chat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.page-contact .chat-title { font-size: 13px; font-weight: 500; color: var(--ink-600); letter-spacing: 0.04em; }
.page-contact .status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ok-text);
  background: var(--ok-bg);
  border: 1px solid color-mix(in srgb, var(--ok-text) 35%, transparent);
  border-radius: 20px;
  padding: 4px 10px;
}
.page-contact .status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok-text);
  animation: contactStatusPulse 2.4s ease-in-out infinite;
}
.page-contact .chat-window {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: min(600px, calc(100vh - 180px));
  animation: contactGlowBreathe 4s ease-in-out 1.2s infinite;
}
.page-contact #contact-chat-root { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.page-contact #contact-chat-root > .ri-root { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.page-contact .chat-fallback { padding: 60px 32px; text-align: center; color: var(--ink-600); }
.page-contact .chat-fallback h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 12px;
}
.page-contact .chat-fallback p { font-size: 14px; line-height: 1.7; }
.page-contact .chat-fallback a { color: var(--action-text); text-decoration: none; }
.page-contact .chat-fallback a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .page-contact .page { grid-template-columns: minmax(0, 1fr); }
  .page-contact .left,
  .page-contact .right { min-width: 0; }
  .page-contact .left {
    padding: 32px 24px 28px;
    border-right: none;
    border-bottom: 1px solid var(--ink-100);
    max-width: none;
    margin-left: 0;
  }
  .page-contact h1 { font-size: 28px; }
  .page-contact .subtitle { margin-bottom: 24px; font-size: 14px; }
  .page-contact .meta-row { margin-bottom: 24px; }
  .page-contact .right { min-height: 500px; }
  .page-contact .chat-header { padding: 12px 16px; }
  .page-contact .chat-window { margin: 0 12px 12px; }
}
@media (max-width: 500px) {
  .page-contact .meta-row { flex-wrap: wrap; gap: 12px; }
  .page-contact .meta-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-contact .left .eyebrow, .page-contact .left h1, .page-contact .left .subtitle,
  .page-contact .left .meta-row, .page-contact .left .channel-label,
  .page-contact .channels .channel, .page-contact .right,
  .page-contact .eyebrow-dot, .page-contact .status-dot, .page-contact .chat-window {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ── .page-pricing — pricing.html ─────────────────────────────────────────
   Four tier cards, a billing-transparency explainer, a horizontally
   scrollable comparison table, and a native <details> FAQ. Numbers sourced
   from config/plans.ts at implementation time — see PR description for the
   line-by-line citation. Tokens only, no hardcoded hex. */

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

/* Tier cards */
.page-pricing .pricing-tiers { padding: 40px 40px 24px; max-width: 1160px; margin: 0 auto; }
.page-pricing .pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.page-pricing .price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 30px 24px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-standard), transform 0.6s var(--spring), box-shadow 0.25s var(--ease-standard), border-color 0.25s var(--ease-standard);
}
.page-pricing .price-card.visible { opacity: 1; transform: translateY(0); }
.page-pricing .price-card:hover { box-shadow: 0 10px 30px rgba(22, 19, 14, 0.08); }
.page-pricing .price-card--featured {
  border-color: var(--action);
  box-shadow: 0 6px 28px var(--action-glow);
}
.page-pricing .price-card--featured:hover { box-shadow: 0 12px 36px var(--action-glow); }
.page-pricing .price-card-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--action-surface);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.page-pricing .price-card-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 10px;
}
.page-pricing .price-card-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--ink-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.page-pricing .price-card-period { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-600); margin-left: 2px; }
.page-pricing .price-card-desc { font-size: 14px; color: var(--ink-600); line-height: 1.55; margin-bottom: 22px; min-height: 38px; }
.page-pricing .price-card-stats {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.page-pricing .price-stat { flex: 1; text-align: center; }
.page-pricing .price-stat-num { display: block; font-family: var(--font-display); font-size: 17px; color: var(--ink-900); margin-bottom: 2px; line-height: 1.2; }
.page-pricing .price-stat-label { display: block; font-size: 10.5px; color: var(--ink-600); line-height: 1.3; }
.page-pricing .price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.page-pricing .price-features li {
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.page-pricing .price-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--action-wash);
  border: 1.5px solid var(--action);
}
.page-pricing .price-cta {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s var(--ease-standard), transform 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.page-pricing .price-cta--primary { background: var(--action-surface); color: #FFFFFF; box-shadow: 0 2px 10px var(--action-glow); }
.page-pricing .price-cta--primary:hover { background: var(--action-surface-hover); transform: translateY(-1px); box-shadow: 0 6px 18px var(--action-glow); }
.page-pricing .price-cta--ghost { background: var(--well); color: var(--ink-900); }
.page-pricing .price-cta--ghost:hover { background: var(--ink-100); transform: translateY(-1px); }
.page-pricing .price-cta:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.page-pricing .price-card-note { text-align: center; font-size: 11.5px; color: var(--ink-600); margin-top: 10px; }

/* Roadmap block — sold, dated, not yet running.
   Deliberately NOT the green action ramp the live feature list uses: the ticked
   bullet above means "this works today", so a dated promise must not borrow its
   colour. A dashed rule and the ink ramp read as "pending" without reading as
   an error, and the date does the actual work. */
.page-pricing .price-roadmap {
  border-top: 1px dashed var(--ink-100);
  padding-top: 16px;
  margin-top: -8px;
  margin-bottom: 22px;
}
.page-pricing .price-roadmap-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 10px;
}
.page-pricing .price-roadmap-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.page-pricing .price-roadmap-list li {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.page-pricing .price-roadmap-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px dashed var(--ink-600);
}
.page-pricing .price-roadmap-note {
  font-size: 11.5px;
  color: var(--ink-600);
  margin-top: 10px;
  font-style: italic;
}

/* Comparison table: a dated cell, never a tick.
   The whole point is that "coming" cannot be misread as "included", so these
   rows carry the literal quarter in mono and get no check glyph at all. */
.page-pricing .compare-soon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink-600);
  border: 1px dashed var(--ink-100);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}
.page-pricing .compare-soon-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-600);
  background: var(--well);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: 1px;
}
.page-pricing .compare-row--soon th[scope='row'] { color: var(--ink-600); }

/* How AI billing works */
/* Reading tier: 740 of content, shared with .pricing-faq. Also fixes the 120-char
   lines .billing-card p was hitting at 900px. */
.page-pricing .billing-explainer { padding: 24px 40px 90px; max-width: 820px; margin: 0 auto; }
.page-pricing .billing-lede { font-size: 17px; line-height: 1.75; color: var(--ink-600); max-width: 720px; margin: 0 auto 40px; text-align: center; }
.page-pricing .billing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.page-pricing .billing-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px 26px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-standard), transform 0.55s var(--spring);
}
.page-pricing .billing-card.visible { opacity: 1; transform: translateY(0); }
.page-pricing .billing-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--ink-900); margin-bottom: 8px; }
/* 46ch ~= 68 characters in this proportional font (`ch` is the "0" advance, not an average
   glyph). Narrowing the container alone only took these from ~120 to 113 chars/line. */
.page-pricing .billing-card p { font-size: 14px; color: var(--ink-600); line-height: 1.65; max-width: 46ch; }
.page-pricing .billing-card p strong { color: var(--ink-900); font-weight: 600; }
.page-pricing .billing-caps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.page-pricing .billing-cap { flex: 1; min-width: 100px; text-align: center; background: var(--well); border-radius: 10px; padding: 10px 6px; }
.page-pricing .billing-cap-plan { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-600); margin-bottom: 4px; }
.page-pricing .billing-cap-value { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink-900); }

/* Comparison table */
.page-pricing .pricing-compare { padding: 24px 40px 90px; max-width: 1160px; margin: 0 auto; }
.page-pricing .compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}
.page-pricing .compare-table { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--card); }
.page-pricing .compare-table th, .page-pricing .compare-table td {
  padding: 13px 18px;
  text-align: center;
  border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px;
  color: var(--ink-700);
}
.page-pricing .compare-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-900);
  position: sticky;
  left: 0;
  background: var(--card);
  min-width: 250px;
}
.page-pricing .compare-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-600);
  background: var(--well);
  border-bottom: 1px solid var(--ink-100);
}
/* Needs to out-specify `.page-pricing .compare-table thead th` (0,2,2) — as a bare
   (0,2,0) selector the intended accent never applied and the header rendered grey. */
.page-pricing .compare-table thead th.compare-th--featured { color: var(--action-text); }
.page-pricing .compare-table tbody tr:last-child td, .page-pricing .compare-table tbody tr:last-child th { border-bottom: none; }
.page-pricing .compare-table tbody tr:hover td, .page-pricing .compare-table tbody tr:hover th { background: var(--action-wash); }
.page-pricing .compare-col--featured { background: var(--action-wash); }
.page-pricing .compare-check { color: var(--action-text); font-size: 15px; font-weight: 600; }
/* Not the bottom of the ink ramp: --ink-300 measured 1.47:1 on the featured column
   in dark mode, i.e. invisible, and "not included" is this table's actual content.
   --ink-600 gives 4.72:1 there and 4.9:1 on the plain columns. */
.page-pricing .compare-dash { color: var(--ink-600); font-size: 15px; }
.page-pricing .compare-value { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-700); }

/* FAQ */
.page-pricing .pricing-faq { padding: 24px 40px 100px; max-width: 820px; margin: 0 auto; }
.page-pricing .faq-item {
  border-bottom: 1px solid var(--ink-100);
  padding: 20px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-standard), transform 0.5s var(--spring);
}
.page-pricing .faq-item.visible { opacity: 1; transform: translateY(0); }
.page-pricing .faq-item:first-of-type { padding-top: 0; }
.page-pricing .faq-item:last-of-type { border-bottom: none; }
.page-pricing .faq-item summary {
  /* 29px tall; this is tapped repeatedly to open each answer. */
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-pricing .faq-item summary::-webkit-details-marker { display: none; }
.page-pricing .faq-item summary:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 4px; }
.page-pricing .faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--action-text);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-standard);
}
.page-pricing .faq-item[open] summary::after { transform: rotate(45deg); }
.page-pricing .faq-item p { font-size: 14.5px; color: var(--ink-600); line-height: 1.7; margin-top: 12px; padding-right: 32px; }
.page-pricing .faq-item a { color: var(--action-text); text-decoration: none; }
.page-pricing .faq-item a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1000px) {
  .page-pricing .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .page-pricing .billing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .page-pricing .pricing-tiers { padding: 20px 20px 12px; }
  .page-pricing .billing-explainer, .page-pricing .pricing-compare, .page-pricing .pricing-faq { padding-left: 20px; padding-right: 20px; }

}
@media (max-width: 700px) {
  /* NOTE: the clamp itself lives in the 700px block below — measured, the table stops
     needing to scroll at ~702px (scroller 660 = table 660), not at 900. Clamping across
     702-900 cost up to 112px of row height for no benefit. */
  /* Below ~700px the table starts scrolling, and the sticky capability column has to shrink
     or it eats the scroller. At desktop widths the label column resolves to ~380px (half of
     the 760px min-width, spread by `width: 100%`), which is wider than a 375px viewport's
     333px scroller — so the pinned column covered EVERY value cell at EVERY scroll position.
     Measured at 375: 68 of 68 cells unreachable. The leftmost plan column was hidden at any
     viewport under ~840px, so 640 lost the whole Free column too.
     Fixing it needs an explicit `width` as well as `min-width` — min-width alone loses to the
     table's own column distribution. Narrower labels wrap more, so rows get taller; that is
     the trade, and it is the cheap one. Keeping the label pinned matters more than row height:
     17 rows of bare ✓/— with no capability in view is worse than a scroll. */
  .page-pricing .compare-table { min-width: 660px; }
  .page-pricing .compare-table th[scope="row"] {
    min-width: 140px;
    width: 140px;
    font-size: 13px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-pricing .compare-table th, .page-pricing .compare-table td { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 640px) {
  .page-pricing .pricing-grid { grid-template-columns: 1fr; }
  .page-pricing .price-card-badge { top: -12px; }
  .page-pricing .billing-caps { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .page-pricing .price-card, .page-pricing .billing-card, .page-pricing .faq-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .page-pricing .faq-item summary::after { transition: none !important; }
}
