/* ============================================================
   Recheck — The Quiet Ledger, Read Aloud
   Plain CSS. No build step. Warm paper, deep ink, one loud color.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Warm-paper neutral system, anchored at hue 80 */
  --paper:        oklch(0.98 0.008 80);
  --paper-soft:   oklch(0.96 0.010 80);
  --paper-deep:   oklch(0.93 0.012 80);
  --ink:          oklch(0.18 0.015 80);
  --ink-hover:    oklch(0.22 0.015 80);
  --ink-muted:    oklch(0.42 0.012 80);
  --ink-faint:    oklch(0.62 0.008 80);
  --rule:         oklch(0.85 0.008 80);
  --rule-strong:  oklch(0.72 0.010 80);

  /* The single chromatic exception */
  --severity:     oklch(0.55 0.180 30);
  --severity-soft:oklch(0.92 0.040 30);

  /* Paper tones for use on the inverted (ink) fold */
  --on-ink:        oklch(0.96 0.010 80);
  --on-ink-muted:  oklch(0.96 0.010 80 / 0.62);
  --on-ink-faint:  oklch(0.96 0.010 80 / 0.40);
  --on-ink-rule:   oklch(0.96 0.010 80 / 0.16);

  /* Type */
  --font:         "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --xs: 4px;  --sm: 8px;  --md: 16px;  --lg: 32px;  --xl: 64px;  --2xl: 96px;

  /* Radius */
  --r-sm: 2px; --r-md: 4px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-state: 120ms;
  --t-spatial: 240ms;
  --t-page: 360ms;

  /* Layout */
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);

  /* Z scale (semantic) */
  --z-sticky: 100;
  --z-menu: 200;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* Tabular numerals: numbers are ledger entries */
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- Shared type roles ---------- */
.headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.4rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 22ch;
}
.title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}
.body {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.label {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--sm);
  top: -60px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-md);
  transition: top var(--t-state) var(--ease);
}
.skip-link:focus { top: var(--sm); }

/* ---------- Focus ---------- */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: background var(--t-state) var(--ease),
              color var(--t-state) var(--ease),
              border-color var(--t-state) var(--ease),
              transform var(--t-state) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-hover); }
.btn--primary:active { background: var(--ink); transform: translateY(1px); }

.btn--text {
  padding: 13px 4px;
  color: var(--ink);
  background: transparent;
}
.btn--text .btn__arrow { transition: transform var(--t-state) var(--ease); }
.btn--text:hover .btn__arrow { transform: translateX(3px); }

.btn--invert {
  background: var(--paper);
  color: var(--ink);
  align-self: start;
  margin-top: var(--sm);
}
.btn--invert:hover { background: var(--paper-deep); }
.btn--invert:active { transform: translateY(1px); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t-spatial) var(--ease),
              border-color var(--t-spatial) var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--paper-deep);
  box-shadow: 0 1px 0 oklch(0.18 0.015 80 / 0.04),
              0 8px 24px oklch(0.18 0.015 80 / 0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lg);
  height: 64px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__mark {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
}
.nav__mark::after {
  content: "";
  position: absolute;
  inset: 3.5px auto auto 3.5px;
  width: 5px; height: 5px;
  border-radius: var(--r-sm);
  background: var(--paper);
}
.nav__links {
  display: flex;
  gap: 30px;
  margin-inline: auto;
}
.nav__link {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--t-state) var(--ease),
              border-color var(--t-state) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: var(--md); }
.nav__cta { padding: 10px 18px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 0 9px;
}
.nav__toggle-bar {
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--t-state) var(--ease), opacity var(--t-state) var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu */
.menu {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
.menu__inner {
  display: flex;
  flex-direction: column;
  gap: var(--xs);
  padding-block: var(--md) var(--lg);
}
.menu__link {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
}
.menu__cta { justify-content: center; margin-top: var(--md); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: clamp(56px, 9vw, 128px) clamp(48px, 7vw, 104px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 18ch;
}
.hero__lead {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero__stats {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
}
.hstat { display: flex; flex-direction: column; gap: 6px; }
.hstat__num {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hstat__label {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-muted);
}
.hero__actions {
  margin-top: clamp(24px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  gap: var(--md);
  flex-wrap: wrap;
}

/* Live queue sample (hero right rail) */
.queue {
  padding-top: 6px;
}
.queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}
.queue__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}
.queue__pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0;
}
.queue__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  padding-block: 15px;
  border-bottom: 1px solid var(--rule);
}
.queue__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.queue__id { font-size: 0.9375rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.queue__sub { font-size: 0.8125rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue__end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.queue__status {
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.queue__status--review { color: var(--ink); font-weight: 500; }
.queue__status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.queue__amt { font-size: 0.9375rem; color: var(--ink); }

/* ============================================================
   Cost / status quo — the single terracotta moment
   ============================================================ */
.cost {
  border-top: 1px solid var(--rule);
  padding-block: clamp(64px, 9vw, 120px);
}
.cost__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.cost__body { margin-top: var(--md); max-width: 48ch; }
.cost__figure {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  column-gap: 12px;
  row-gap: 14px;
}
.cost__num {
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--severity);
}
.cost__unit {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--severity);
}
.cost__label {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 32ch;
  padding-top: 4px;
  border-top: 1px solid var(--rule);
}

/* ============================================================
   The product
   ============================================================ */
.product {
  border-top: 1px solid var(--rule);
  padding-block: clamp(64px, 9vw, 120px);
}
.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.product__intro { position: sticky; top: 96px; }
.product__body { margin-top: var(--md); }

.shot { margin: 0; }
.shot__frame {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: clamp(10px, 1.4vw, 18px);
}
.shot__cap {
  margin-top: var(--md);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* The live product UI (a real screen, drawn in DOM) */
.app {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
}
.app__titles { display: flex; flex-direction: column; gap: 2px; }
.app__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.app__sub { font-size: 0.8125rem; color: var(--ink-muted); }
.app__tabs { display: flex; gap: 4px; }
.app__tab {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  display: inline-flex; gap: 7px; align-items: center;
}
.app__tab b { font-weight: 500; color: var(--ink-faint); }
.app__tab--on { background: var(--paper-deep); color: var(--ink); }
.app__tab--on b { color: var(--ink-muted); }

.app__table { font-size: 0.8125rem; }
.app__thead, .app__row {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1.3fr 0.9fr 1fr;
  align-items: center;
  gap: var(--md);
  padding: 0 20px;
}
.app__thead {
  height: 38px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.app__row {
  height: 48px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: background var(--t-state) var(--ease);
}
.app__row:last-child { border-bottom: none; }
.app__row--flag { background: var(--paper-soft); }
.app__ta { text-align: right; justify-self: end; }
.app__id { color: var(--ink-muted); }

/* Exceptions view: the reason column leads, the next step closes the row. */
/* Each row is its own grid, so fr tracks sized by content would drift row to
   row as the reason text changes length. Fixed ends + minmax(0,…) middles keep
   every column landing on the same x. */
.app__table--exc .app__thead,
.app__table--exc .app__row {
  grid-template-columns:
    168px minmax(0, 0.85fr) minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 1.05fr) 106px;
  gap: 12px;
}
.app__reason {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
.app__act {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.75rem;
  white-space: nowrap;
}

.app__status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.app__status--ok { color: var(--ink-muted); }
.app__status--review { color: var(--ink); font-weight: 500; }
.tick {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  position: relative; flex: none;
}
.tick::after {
  content: ""; position: absolute;
  left: 4px; top: 3.5px;
  width: 3px; height: 6px;
  border: solid var(--ink-muted);
  border-width: 0 1.4px 1.4px 0;
  transform: rotate(45deg);
}
.ring {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative; flex: none;
}
.ring::after {
  content: ""; position: absolute; inset: 0;
  margin: auto; width: 2px; height: 2px;
  border-radius: 50%; background: var(--ink);
}

.app__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  background: var(--paper-soft);
}
.app__foot-note { font-size: 0.75rem; color: var(--ink-muted); }
.app__foot-note--muted { color: var(--ink-faint); }

/* ============================================================
   How it works
   ============================================================ */
.how {
  border-top: 1px solid var(--rule);
  padding-block: clamp(64px, 9vw, 120px);
}
.how__head {
  margin-bottom: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(20px, 4vw, 56px);
  /* Sit the intro's last line on the headline's baseline, not its box bottom. */
  align-items: last baseline;
}
.how__title { max-width: 18ch; }
.how__intro { max-width: 42ch; }
.how__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 44px);
  counter-reset: how-step;
}
.how__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  counter-increment: how-step;
}
/* Step index, drawn from the list counter so the markup stays a plain <ol>. */
.how__step::before {
  content: counter(how-step, decimal-leading-zero);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  margin-bottom: -4px;
}
.how__step-title { color: var(--ink); }
.how__step-body { font-size: 1rem; }

/* ============================================================
   Carriers — coverage ledger + scrolling logo banner
   Real brand marks, held to one greyscale tone so the wall stays
   quiet; hue returns only on hover.
   ============================================================ */
.carriers {
  border-top: 1px solid var(--rule);
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.carriers__body { margin-top: var(--md); }

.marquee {
  --marquee-gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(40px, 6vw, 64px);
  position: relative;
  /* Fade the banner into the paper at both edges (mask alpha only). */
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 10%, var(--ink) 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--ink) 10%, var(--ink) 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
}
.marquee__set {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--marquee-gap);
  /* Leading pad equals the gap so spacing is seamless across the loop seam. */
  padding-left: var(--marquee-gap);
  margin: 0;
}
.anim-ready .marquee__track {
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.carrier {
  display: inline-flex;
  align-items: center;
  height: clamp(26px, 2.4vw, 34px);
  flex: none;
}
/* Real brand marks, flattened to one greyscale tone so the wall reads as a
   single ink family; hue returns on hover. */
.carrier__logo {
  height: 100%;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--t-state) var(--ease);
}
.carrier:hover .carrier__logo { filter: grayscale(1) opacity(0.95); }
/* Trupanion and Spot ship no clean vector mark; set as matching wordmarks,
   toned to sit with the faded logos rather than louder than them. */
.carrier--word {
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink-faint);
  transition: color var(--t-state) var(--ease);
}
.carrier--word:hover { color: var(--ink); }

/* ============================================================
   Inverted fold — Talk to us
   ============================================================ */
.talk {
  background: var(--ink);
  color: var(--on-ink);
}
.talk__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  padding-block: clamp(72px, 10vw, 128px);
}
.talk__title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--on-ink);
  text-wrap: balance;
  max-width: 16ch;
}
.talk__lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--on-ink-muted);
  max-width: 42ch;
}
/* Headline left, the answer and the ask stacked on the right, matching the
   split used by .how__head. The button closes the column so it reads as the
   end of the sentence rather than floating in the gutter. */
.talk__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 40px);
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  background: var(--paper);
  padding-block: clamp(40px, 5vw, 56px);
}
.foot__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--md) var(--lg);
  padding-top: var(--lg);
  border-top: 1px solid var(--rule);
}
.foot__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; }
.nav__mark--foot { width: 11px; height: 11px; }
.foot__tag { font-size: 0.9375rem; color: var(--ink-muted); }
.foot__links { display: flex; gap: 24px; }
.foot__links a { font-size: 0.9375rem; color: var(--ink-muted); transition: color var(--t-state) var(--ease); }
.foot__links a:hover { color: var(--ink); }
.foot__legal { font-size: 0.875rem; color: var(--ink-faint); grid-column: 1 / -1; }

/* ============================================================
   Motion — one choreographed load + restrained scroll reveals
   Default (no .anim-ready): everything visible, no transitions.
   ============================================================ */
.anim-ready .h-rise {
  animation: rise var(--t-page) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms + 40ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Reveal is additive: content is visible by default. JS "arms" only the
   below-the-fold elements (adds .is-armed), then reveals them on scroll.
   No JS, no observer, or a headless render => nothing is armed => visible. */
.anim-ready .reveal.is-armed {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-page) var(--ease),
              transform var(--t-page) var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.anim-ready .reveal.is-armed.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .h-rise, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }

  /* No scroll: show the carriers as a static, wrapped, centered set. */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: 100%; animation: none; }
  .marquee__set { flex-wrap: wrap; justify-content: center; row-gap: var(--md); padding-inline: var(--pad); padding-left: var(--pad); }
  .marquee__set[aria-hidden="true"] { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 64px); }
  .queue { max-width: 460px; }
  .cost__grid { grid-template-columns: 1fr; gap: var(--lg); }
  .product__grid { grid-template-columns: 1fr; gap: var(--lg); }
  .product__intro { position: static; }
  .talk__grid { grid-template-columns: 1fr; }
  .how__head { grid-template-columns: 1fr; align-items: start; }
  .how__list { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 5vw, 40px); }
}

/* Between the two-column product grid and the mobile stack the card is narrow
   enough that six columns crowd. The claim number is the most expendable. */
@media (max-width: 1150px) and (min-width: 761px) {
  .app__table--exc .app__thead > span:nth-child(2),
  .app__table--exc .app__row > span:nth-child(2) { display: none; }
  .app__table--exc .app__thead,
  .app__table--exc .app__row {
    grid-template-columns:
      152px minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 1.05fr) 100px;
    gap: 10px;
  }
  .app__table--exc { font-size: 0.75rem; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .how__list { grid-template-columns: 1fr; gap: 0; }
  .how__step { padding-block: 28px; }

  .foot__inner { grid-template-columns: 1fr; gap: var(--md); text-align: left; }
  .foot__links { flex-wrap: wrap; }

  /* Product table becomes a compact two-line layout */
  .app__thead { display: none; }
  .app__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "status amount"
      "detail submitted";
    height: auto;
    row-gap: 4px;
    padding-block: 14px;
  }
  .app__status { grid-area: status; }
  .app__ta.app__id, .app__id { display: none; }
  .app__row > span:nth-child(3) { grid-area: detail; color: var(--ink); }
  .app__row > span:nth-child(4) { display: none; }
  .app__row > span:nth-child(5) { grid-area: submitted; text-align: left; justify-self: start; color: var(--ink-faint); }
  .app__row > span:nth-child(6) { grid-area: amount; }

  /* Exceptions rows carry different columns, so they need their own two-line
     map: reason over patient, amount over the next step. */
  .app__table--exc .app__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "reason amount"
      "detail action";
    gap: 6px var(--md);
  }
  .app__reason { grid-area: reason; }
  .app__table--exc .app__row > span:nth-child(3) { grid-area: detail; color: var(--ink-muted); }
  .app__table--exc .app__row > span:nth-child(4) { display: none; }
  .app__table--exc .app__row > span:nth-child(5) { grid-area: amount; }
  .app__table--exc .app__row > span:nth-child(6) { grid-area: action; }
}

@media (max-width: 440px) {
  .hero__actions { gap: var(--sm); }
  .btn { padding: 12px 18px; }
}
