/* ==========================================================================
   Redline Reserve — marketing site

   DESIGN READ
   Audience: independent California auto shop owners. Skeptical, time-poor,
   sold to constantly. The page must make them believe the bot quotes
   accurately and legally, then hand over contact for a pre-built demo.

   World: Swiss International typographic × motorsport data plate,
   rendered dark. Grid-driven, typographic, data-forward — precision under
   legal constraint is the whole argument, and the layout should say it.

   PALETTE — "Black and Tan" (true off-black + warm tan, sharp contrast, no
   beige). Chosen from the sanctioned alternatives because the others collide
   with an engine-red brand: Terracotta and Olive+Brick are red-adjacent and
   collapse into it, Forest's amber competes with red, Cobalt+Cream reintroduces
   the cream that was already rejected, and Cold Luxury is achromatic — the
   flatness this palette exists to fix. Tan carries warmth and depth so the
   neutrals are never dead grey; red stays the only saturated hue and stays
   load-bearing (the redline zone, a price, or an action). Never decoration.

   Dark-dominant with a single paper inversion at the refusal section — that
   jolt is what "sharp contrast" buys.

   Dials: DESIGN_VARIANCE 6 · MOTION_INTENSITY 6 · VISUAL_DENSITY 5
   ========================================================================== */

:root {
  /* --- Grounds (near-black, faintly warm — never dead neutral) --- */
  --ground:     oklch(0.15 0.006 60);
  --ground-2:   oklch(0.19 0.008 60);   /* raised panel */
  --ground-3:   oklch(0.24 0.010 60);   /* highest raise */
  --rule:       oklch(0.32 0.010 60);   /* hairline on dark */
  --rule-2:     oklch(0.42 0.012 60);   /* stronger hairline */

  /* --- Tan: the warm signature --- */
  --tan:        oklch(0.78 0.075 72);   /* 9.74:1 on ground */
  --tan-dim:    oklch(0.66 0.060 72);   /* 6.27:1 */
  --tan-mute:   oklch(0.60 0.050 72);   /* 4.95:1 */

  /* --- Paper: the inverted section --- */
  --paper:      oklch(0.96 0.008 80);   /* 17.52:1 on ground */
  --paper-rule: oklch(0.82 0.014 80);
  --ink:        oklch(0.18 0.010 60);   /* 16.75:1 on paper */
  --ink-dim:    oklch(0.42 0.014 68);   /* 7.55:1 on paper */
  --ink-mute:   oklch(0.52 0.040 72);   /* 4.93:1 on paper */

  /* --- Red — the only saturated hue --- */
  --red:        oklch(0.62 0.190 30);   /* accents on dark — 4.94:1 */
  --red-hi:     oklch(0.68 0.170 30);   /* display on dark — 6.34:1 */
  --red-cta:    oklch(0.53 0.200 30);   /* button ground — 5.20:1 under --paper */
  --red-cta-hover: oklch(0.47 0.190 30); /* hover fill — 6.58:1 under --paper */
  --red-ink:    oklch(0.53 0.200 30);   /* red on paper — 5.20:1 */

  /* --- Semantic surface roles (remapped per section) --- */
  --surface:    var(--ground);
  --on-surface: var(--paper);
  --on-dim:     var(--tan-dim);
  --on-mute:    var(--tan-mute);
  --accent:     var(--red);
  --hairline:   var(--rule);

  /* --- Type --- */
  --sans: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ~1.25 ramp. Functional text never below 12px. */
  --fs-label:  12px;
  --fs-small:  15px;
  --fs-body:   19px;
  --fs-h3:     24px;
  --fs-h2:     clamp(34px, 4.6vw, 56px);
  /* Capped so a 6-word headline sets in 2 lines. A 4-line hero headline is a
     font-size error, never a copy-length one. */
  --fs-h1:     clamp(36px, 4.8vw, 60px);

  /* Display / data scale. These were literals inside component rules and
     therefore invisible to DESIGN.md. Numerals set at display size are a real
     role in this system — the product's argument is figures — so they get
     named steps rather than an ignore. */
  --fs-statement:    clamp(22px, 3.0vw, 40px);   /* overlay claim on the image band */
  --fs-figure:       clamp(28px, 3.4vw, 40px);   /* ledger total */
  --fs-figure-lg:    clamp(38px, 4.4vw, 60px);   /* stat numerals */
  --fs-figure-xl:    clamp(64px, 9.0vw, 128px);  /* the price */
  --fs-mono-display: clamp(40px, 9.0vw, 112px);  /* found: false */

  /* --- Layout --- */
  --page:    1320px;
  --gutter:  clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 132px);

  /* --- Motion tokens ---
     Taken verbatim from the animation skill's table. Built-in CSS easings are
     too weak; these are the sanctioned curves. Never hand-roll a bezier. */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --dur-press:   120ms;   /* button press feedback: 100–160ms */
  --dur-hover:   150ms;   /* hover / colour change */
  --dur-state:   200ms;   /* state indication */
  --dur-reveal:  500ms;   /* marketing / explanatory — allowed to run longer */
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; text-decoration: none; }

/* Radius is 0 throughout. The only curve in the system is the tachometer mark. */

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--red-cta); color: var(--paper); }

/* ==========================================================================
   Surface contexts
   Sections remap the semantic roles; components read only the roles, so the
   same component works on either ground without a variant class.
   ========================================================================== */

.invert {
  --surface:    var(--paper);
  --on-surface: var(--ink);
  --on-dim:     var(--ink-dim);
  --on-mute:    var(--ink-mute);
  --accent:     var(--red-ink);
  --hairline:   var(--paper-rule);
  background: var(--surface);
  color: var(--on-surface);
}
.raised { --surface: var(--ground-2); background: var(--surface); }

/* ==========================================================================
   Grid
   ========================================================================== */

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}

.section { padding-block: var(--section); }

/* Asymmetric: a narrow marker rail left, content offset right. Not 50/50 —
   an even split reads as a template. */
.rail    { grid-column: 1 / span 3; }
.content { grid-column: 5 / span 8; }

/* ==========================================================================
   Section markers — numbered rail markers, not tracked-caps kickers stacked
   above every headline.
   ========================================================================== */

.marker {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--on-mute);
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 10px;
}
.marker__num { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Type roles
   ========================================================================== */

.h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 0.92; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.00; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.20; letter-spacing: -0.015em; }

.lede  { font-size: var(--fs-h3); line-height: 1.5; color: var(--on-dim); max-width: 34ch; text-wrap: pretty; }
.prose { color: var(--on-dim); max-width: 62ch; text-wrap: pretty; }
.mono  { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tan   { color: var(--tan); }

/* ==========================================================================
   Buttons
   Press feedback is FEEDBACK at the frequent tier — near-imperceptible and
   fast (120ms). Transform only, so it never triggers layout.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 15px 24px;
  border: 2px solid transparent;
  white-space: nowrap;
  will-change: transform;
  transition:
    background-color var(--dur-hover) ease,
    border-color     var(--dur-hover) ease,
    color            var(--dur-hover) ease,
    transform        var(--dur-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }   /* never scale(0) — nothing appears from nothing */

/* Rest: fill 5.20:1 under the label, 3.37:1 against the ground so the control
   reads as a bounded shape (WCAG 1.4.11).
   Hover DARKENS the fill to 6.58:1 rather than brightening it — brightening to
   --red measured 3.5:1 under the label and failed AA. The border stays at the
   brighter --red so the button keeps its edge against the dark ground while
   the fill goes down. */
.btn--primary { background: var(--red-cta); color: var(--paper); border-color: var(--red-cta); }
.btn--primary:hover { background: var(--red-cta-hover); border-color: var(--red); }

.btn--ghost { background: transparent; color: var(--on-surface); border-color: var(--on-surface); }
.btn--ghost:hover { background: var(--on-surface); color: var(--surface); }

.btn--sm { padding: 11px 18px; font-size: var(--fs-label); }

/* The arrow nudges on hover — spatial hint toward the destination. */
.btn__arrow {
  font-family: var(--mono);
  font-weight: 400;
  transition: transform var(--dur-hover) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ==========================================================================
   Header
   The stuck state is STATE INDICATION — the hairline appears only once the
   header is detached from the top of the page.
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-state) ease, background-color var(--dur-state) ease;
}
.header.is-stuck { border-bottom-color: var(--rule); background: color-mix(in oklab, var(--ground) 88%, transparent); backdrop-filter: blur(8px); }
.header__row { display: flex; align-items: center; gap: 32px; padding-block: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__word { font-weight: 700; font-size: var(--fs-body); letter-spacing: -0.02em; white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--tan-dim);
  transition: color var(--dur-hover) ease;
}
.nav__link:hover { color: var(--paper); }
/* Underline wipes from the left rather than fading — a transform, not a repaint. */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav--compact { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

/* Top padding capped at 96px — beyond that the hero floats down the viewport
   and reads as a layout bug rather than intentional space. */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.hero__copy  { grid-column: 1 / span 7; }
.hero__plate { grid-column: 8 / span 5; align-self: end; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__note { margin-top: 20px; font-size: var(--fs-small); color: var(--on-mute); max-width: 44ch; }

/* --- Spec plate: the estimate as an instrument readout --- */
.plate { background: var(--ground-2); border: 1px solid var(--rule); }
.plate__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.plate__tick { width: 8px; height: 8px; background: var(--red); flex: none; }
.plate__title { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tan); }
/* SB 1001 disclosure requirement. Do not remove. */
.plate__ai { margin-left: auto; font-family: var(--mono); font-size: var(--fs-label); color: var(--tan-mute); border: 1px solid var(--rule); padding: 3px 8px; }
.plate__body { padding: 20px 18px; }
.plate__q { font-size: var(--fs-small); color: var(--tan-dim); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); }

.readout {
  display: grid; grid-template-columns: 1fr max-content; gap: 10px 16px;
  font-family: var(--mono); font-size: var(--fs-small); font-variant-numeric: tabular-nums;
}
.readout dt { color: var(--tan-mute); }
.readout dd { text-align: right; color: var(--paper); }
.readout__total {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid;
  border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 12px;
  font-size: var(--fs-h3); font-weight: 600;
}
.readout__total dt { color: var(--tan); }
.readout__total dd { color: var(--red-hi); }
.plate__foot { padding: 14px 18px; border-top: 1px solid var(--rule); font-size: var(--fs-small); line-height: 1.5; color: var(--tan-mute); }

/* --- Stat strip --- */
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule-2); }
.stat { padding: 32px 24px 32px 0; }
.stat + .stat { border-left: 1px solid var(--rule); padding-left: 32px; }
.stat__n { font-size: var(--fs-figure-lg); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--tan); }
.stat__l { margin-top: 8px; max-width: 22ch; color: var(--on-dim); font-size: var(--fs-small); }
.stat__src {
  margin-top: 12px; max-width: 22ch;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tan-mute);
}

/* ==========================================================================
   Ledger
   ========================================================================== */

.ledger { margin-top: 40px; border-top: 1px solid var(--rule-2); }
.ledger__row {
  display: grid; grid-template-columns: 1fr max-content; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.ledger__row dt { color: var(--on-dim); font-size: var(--fs-small); }
.ledger__row dd { text-align: right; font-size: var(--fs-small); color: var(--on-surface); }
.ledger__row--total { border-bottom: 2px solid var(--rule-2); padding-block: 24px; }
.ledger__row--total dt { color: var(--tan); font-weight: 600; font-size: var(--fs-body); }
.ledger__row--total dd { font-size: var(--fs-figure); font-weight: 700; color: var(--red-hi); letter-spacing: -0.02em; line-height: 1; }

/* ==========================================================================
   Refusal — the page's strongest moment, on the single inverted ground.
   ========================================================================== */

.refusal__code {
  grid-column: 1 / -1; margin-block: clamp(32px, 5vw, 56px);
  font-family: var(--mono); font-size: var(--fs-mono-display);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  display: flex; align-items: baseline; gap: 0.35em; flex-wrap: wrap;
}
.refusal__key { color: var(--on-mute); }
.refusal__val { color: var(--accent); }

/* ==========================================================================
   Index / register
   ========================================================================== */

.index { grid-column: 1 / -1; border-top: 1px solid var(--rule-2); margin-top: 40px; }
.index__row {
  display: grid; grid-template-columns: 3rem 1fr max-content; gap: 24px;
  align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--hairline);
  /* background-color only. An earlier pass also transitioned padding-left,
     which triggers layout on every frame and changed nothing — transform and
     opacity (plus colour) are the only properties allowed to animate. */
  transition: background-color var(--dur-hover) ease;
}
/* Near-imperceptible row feedback. Frequent tier, so it stays subtle. */
.index__row:hover { background: color-mix(in oklab, var(--tan) 7%, transparent); }
.index__n { font-family: var(--mono); font-size: var(--fs-label); color: var(--on-mute); font-variant-numeric: tabular-nums; }
.index__t { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.index__c { font-family: var(--mono); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.index__c--cite  { color: var(--accent); }
.index__c--plain { color: var(--on-mute); }

.register { grid-column: 1 / -1; border-top: 1px solid var(--rule-2); margin-top: 40px; }
.register__row {
  display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 2.4vw, 32px);
  padding: 28px 0; border-bottom: 1px solid var(--hairline);
}
.register__k { font-family: var(--mono); font-size: var(--fs-small); color: var(--accent); font-variant-numeric: tabular-nums; }
.register__v { color: var(--on-dim); max-width: 62ch; text-wrap: pretty; }

/* ==========================================================================
   Code sample
   ========================================================================== */

.code {
  background: var(--ground-2); color: var(--paper); border: 1px solid var(--rule);
  padding: 26px 28px; margin: 0; overflow-x: auto;
  font-family: var(--mono); font-size: var(--fs-small); line-height: 1.9;
}
.code__file { display: block; color: var(--tan-mute); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.code__k { color: var(--tan); }
.code__v { color: var(--red-hi); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.price__fig { display: flex; align-items: baseline; gap: 10px; margin-block: 8px 4px; }
.price__n { font-size: var(--fs-figure-xl); font-weight: 700; letter-spacing: -0.045em; line-height: 0.85; font-variant-numeric: tabular-nums; color: var(--tan); }
.price__per { font-family: var(--mono); font-size: var(--fs-small); color: var(--tan-mute); }
.price__terms {
  font-family: var(--mono); font-size: var(--fs-small); letter-spacing: 0.02em;
  color: var(--red-hi); padding-bottom: 24px; border-bottom: 1px solid var(--rule); margin-bottom: 24px;
}
.price__list { display: grid; gap: 12px; }
.price__list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 4px; color: var(--tan-dim); font-size: var(--fs-small); }
.price__list span { font-family: var(--mono); color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--rule); }
.footer__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 32px; font-size: var(--fs-small); color: var(--tan-mute); }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--paper); }
.footer__legal { margin-left: auto; max-width: 46ch; text-align: right; }

/* ==========================================================================
   MOTION
   Every animation below cleared the build sequence: named tier, named purpose,
   cheapest tool, transform/opacity only, sanctioned curve, capped duration.

     Entrance reveal   rare       Explanation        transition  --ease-out 500ms
     Readout build     rare       Explanation        transition  --ease-out 400ms + stagger
     Button press      frequent   Feedback           transition  ease       120ms
     Hover / arrow     frequent   Feedback           transition  ease       150ms
     Nav underline     frequent   Feedback           transform   --ease-out 150ms
     Header stuck      occasional State indication   transition  ease       200ms

   Deliberately NOT animated: the stat numbers do not count up. Figures the
   reader is there to read must not move for style, and a count-up makes them
   illegible for the duration. The gate is supposed to return "no" sometimes.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity   var(--dur-reveal) var(--ease-out),
      transform var(--dur-reveal) var(--ease-out);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* The readout builds line by line — it demonstrates how the quote is
     assembled, which is the product's actual claim. Explanation tier. */
  .readout > *,
  .readout__total {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity   400ms var(--ease-out),
      transform 400ms var(--ease-out);
  }
  .plate.is-in .readout > *,
  .plate.is-in .readout__total { opacity: 1; transform: none; }

  .plate.is-in .readout > *:nth-child(1) { transition-delay: 180ms; }
  .plate.is-in .readout > *:nth-child(2) { transition-delay: 240ms; }
  .plate.is-in .readout > *:nth-child(3) { transition-delay: 300ms; }
  .plate.is-in .readout > *:nth-child(4) { transition-delay: 360ms; }
  .plate.is-in .readout > *:nth-child(5) { transition-delay: 420ms; }
  .plate.is-in .readout > *:nth-child(6) { transition-delay: 480ms; }
  .plate.is-in .readout__total            { transition-delay: 580ms; }

  /* Ledger rows resolve in sequence for the same reason. */
  .ledger__row { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
  .ledger.is-in .ledger__row { opacity: 1; transform: none; }
  .ledger.is-in .ledger__row:nth-child(1) { transition-delay:  60ms; }
  .ledger.is-in .ledger__row:nth-child(2) { transition-delay: 130ms; }
  .ledger.is-in .ledger__row:nth-child(3) { transition-delay: 200ms; }
  .ledger.is-in .ledger__row:nth-child(4) { transition-delay: 300ms; }

  /* The refusal lands a beat after its label — the pause is the point. */
  .refusal__code .refusal__val {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  }
  .refusal__code.is-in .refusal__val { opacity: 1; transform: none; transition-delay: 200ms; }
}

@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;
  }
}

@media (prefers-contrast: more) {
  :root {
    --tan-dim:    oklch(0.76 0.060 72);
    --tan-mute:   oklch(0.70 0.050 72);
    --ink-dim:    oklch(0.30 0.014 68);
    --ink-mute:   oklch(0.38 0.040 72);
    --rule:       oklch(0.48 0.012 60);
    --paper-rule: oklch(0.66 0.014 80);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  /* Between this breakpoint and the 700px collapse the header had more items
     than room: flex shrank the wordmark and the links until both wrapped to a
     second line, breaking the "one line at desktop, <=80px tall" rule. Tighten
     the gaps for the band instead of collapsing the nav early. */
  .header__row { gap: 20px; }
  .nav { gap: 18px; }
  /* Five links plus a CTA overflow this band. Drop the two section links a
     visitor is least likely to navigate to directly; both remain reachable by
     scrolling, and below 700px the whole nav collapses to the compact form. */
  .nav__link[href="#limits"],
  .nav__link[href="#cost"] { display: none; }

  .hero__copy, .hero__plate { grid-column: 1 / -1; }
  .hero__plate { margin-top: 40px; }
  .rail    { grid-column: 1 / -1; }
  .content { grid-column: 1 / -1; margin-top: 20px; }
  .register__row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .nav--compact { display: flex; margin-left: auto; }

  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); margin-top: 24px; }

  .index__row { grid-template-columns: 2.5rem 1fr; }
  .index__c { grid-column: 2; }

  .footer__legal { margin-left: 0; text-align: left; }
}

/* Hover-capable pointers only — no hover states stranded on touch. */
@media (hover: none) {
  .nav__link::after { display: none; }
  .index__row:hover { background: transparent; }
}


/* ==========================================================================
   Images
   The skill is explicit that a pure-text page is incomplete work, not
   minimalism. No image-generation tool is available in this environment
   (OPENAI_API_KEY unset), so these are seeded placeholders at the correct
   aspect ratios, desaturated to sit inside the Black and Tan palette.
   Every one is marked TODO in the markup — they need real shop photography
   before launch.
   ========================================================================== */

.figure { margin: 0; }
.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.82);
}
.figure figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--on-mute);
}

/* Full-bleed band — its own layout family, breaking the rail+content rhythm. */
.plate-band { position: relative; border-block: 1px solid var(--rule); }
.plate-band__img { aspect-ratio: 21 / 6; overflow: hidden; }
.plate-band__img img { filter: grayscale(1) contrast(1.1) brightness(0.5); }
.plate-band__over {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  pointer-events: none;
}
.plate-band__claim {
  font-size: var(--fs-statement);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 20ch;
  text-wrap: balance;
  color: var(--paper);
}

/* Split-with-visual — a different family again. */
.split-visual { grid-column: 1 / span 5; }
.split-visual .figure { aspect-ratio: 4 / 5; overflow: hidden; }
.split-body   { grid-column: 7 / span 6; }

/* Stacked header: headline sits above its content at full width, rather than
   in the rail. Used where the rail pattern would otherwise repeat. */
.stacked { grid-column: 1 / span 8; }

@media (max-width: 1000px) {
  .split-visual, .split-body, .stacked { grid-column: 1 / -1; }
  .split-visual .figure { aspect-ratio: 16 / 10; }
  .plate-band__img { aspect-ratio: 16 / 9; }
}


/* ==========================================================================
   Cost-of-missed-calls calculator
   Layout family: control column against a single large readout. Figures are
   mono + tabular and never animate — the reader is here to read the number
   (DESIGN.md: "Don't animate figures the reader is there to read").
   ========================================================================== */

.calc__field + .calc__field { margin-top: 24px; }

.calc__label {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--on-mute);
  margin-bottom: 8px;
}

.calc__input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--ground-2);
  color: var(--on-surface);
  font-family: var(--mono);
  font-size: var(--fs-h3);
  font-variant-numeric: tabular-nums;
  padding: 12px 14px;
  transition: border-color var(--dur-state) ease;
}
.calc__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.calc__readout { border-top: 1px solid var(--hairline); padding-top: 28px; }

.calc__out-label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--on-mute);
}

.calc__fig {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: var(--fs-figure-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red-hi);
}
.calc__per { font-size: var(--fs-body); font-weight: 400; color: var(--on-mute); margin-left: 6px; }

.calc__ledger { margin-top: 28px; border-top: 1px solid var(--hairline); }
.calc__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-small);
  color: var(--on-dim);
}
.calc__row b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--on-surface); }
.calc__note { margin-top: 20px; font-size: var(--fs-small); color: var(--on-mute); }

@media (max-width: 1000px) {
  .calc__controls, .calc__readout { grid-column: 1 / -1; }
  .calc__readout { margin-top: 36px; }
}
