/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 * Hallmark · genre: modern-minimal · macrostructure: Narrative Workflow
 * theme: Sand (active preset · 6 swappable presets in tokens.css)
 * nav: N9 edge-aligned minimal · footer: Ft2 inline single line
 * hero: typographic, left-biased · enrichment: E7 abstract ground (blueprint grid,
 *        tier-A CSS, masked fade — no gradient wash, no blobs)
 * type: Cabinet Grotesk 800/700 display · Switzer 400/500 body · Geist Mono labels (2+1)
 * F4 step knobs: numbering=1.0/2.0/3.0, layout=vertical, connector=rail line
 * state track knobs: nodes=dot+index+name, connector=hairline, money states accented
 * F3 spec knobs: columns=2, rules=every row, numbers=tabular
 * C2 form knobs: fields=2, submit=end-of-row, helper=below
 * tone: utilitarian · anchor hue: 55 (warm)
 */

/* ── Base ───────────────────────────────────────────────────────── */
html, body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--color-paper);
}

body {
  margin: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Blueprint ground — a drafting grid, fading out down the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) var(--rule-hair), transparent var(--rule-hair)),
    linear-gradient(to bottom, var(--grid-line) var(--rule-hair), transparent var(--rule-hair));
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, var(--mask-on) 28%, var(--mask-off) 82%);
  mask-image: radial-gradient(130% 90% at 50% 0%, var(--mask-on) 28%, var(--mask-off) 82%);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
h3 { font-weight: 700; letter-spacing: -0.025em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

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

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.shell {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
}

section { padding-block: var(--space-3xl); }
section + section { border-top: var(--rule-hair) solid var(--color-rule); }

/* ── Motion · three primitives: reveal · underline-grow · press ─── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--dur-long) var(--ease-out),
    transform var(--dur-long) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: opacity 150ms linear; }
}

/* ── N9 · Edge-aligned minimal nav ──────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--color-paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out);
}
.nav[data-scrolled="true"] { border-bottom-color: var(--color-rule); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  white-space: nowrap;
}
.wordmark span { color: var(--color-accent); }

/* ── Buttons + links ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  font-size: var(--text-sm);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    transform var(--dur-short) var(--ease-out);
}
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn--primary:active { transform: translateY(1px); }
.btn--quiet { background: transparent; border-color: var(--color-rule-2); color: var(--color-ink); }
.btn--quiet:hover { border-color: var(--color-accent); }
.btn--quiet:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── S2 · Hanging section head ──────────────────────────────────── */
.head { max-width: 46ch; margin-bottom: var(--space-xl); }
.head h2 { font-size: var(--text-display-s); margin-bottom: var(--space-sm); }
.head p { color: var(--color-muted); font-size: var(--text-md); max-width: 58ch; }

.sub {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}

/* ══ Hero ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-3xl) var(--space-4xl);
}

/* Build plate — a denser grid behind the headline only. */
.hero__plate {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line-strong) var(--rule-hair), transparent var(--rule-hair)),
    linear-gradient(to bottom, var(--grid-line-strong) var(--rule-hair), transparent var(--rule-hair));
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: linear-gradient(to bottom, var(--mask-off) 0%, var(--mask-on) 14%, var(--mask-off) 94%);
  mask-image: linear-gradient(to bottom, var(--mask-off) 0%, var(--mask-on) 14%, var(--mask-off) 94%);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.hero__title {
  font-size: var(--text-display);
  max-width: 15ch;
  line-height: 0.98;
  letter-spacing: -0.042em;
}
.hero__lede {
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  color: var(--color-muted);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

/* ══ F4 · step sequence with connector rail ═════════════════════ */
.step {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.step:last-of-type { border-bottom: var(--rule-hair) solid var(--color-rule); }

.step__no {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  padding-top: 0.2em;
  position: relative;
}
.step__no::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2.1em;
  bottom: calc(-1 * var(--space-lg) - 1.2em);
  width: var(--rule-hair);
  background: var(--color-rule);
}
.step:last-of-type .step__no::after { display: none; }

.step__body h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.step__body p { color: var(--color-muted); max-width: 64ch; }
.step__meta {
  margin-top: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-neutral);
  letter-spacing: 0.02em;
}

/* ══ Order state track ══════════════════════════════════════════ */
.states {
  position: relative;
  isolation: isolate;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  padding: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
  box-shadow: var(--shadow-whisper);
}
.states::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) var(--rule-hair), transparent var(--rule-hair)),
    linear-gradient(to bottom, var(--grid-line) var(--rule-hair), transparent var(--rule-hair));
  background-size: var(--grid-size-panel) var(--grid-size-panel);
  -webkit-mask-image: linear-gradient(to bottom, var(--mask-on), var(--mask-off) 70%);
  mask-image: linear-gradient(to bottom, var(--mask-on), var(--mask-off) 70%);
}

.states__track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding-inline: var(--space-lg);
  padding-bottom: var(--space-md);
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.state {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: var(--space-2xs);
  min-width: 6.5rem;
  padding-inline: var(--space-2xs);
  scroll-snap-align: center;
}
/* connector — drawn from this dot to the next */
.state::after {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: var(--rule-hair);
  background: var(--color-rule-2);
}
.state:last-child::after { display: none; }

.state__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: var(--rule-hair) solid var(--color-rule-2);
  background: var(--color-paper);
  position: relative;
  z-index: var(--z-base);
}
.state__i {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--color-neutral);
  letter-spacing: 0.06em;
}
.state__name {
  font-size: var(--text-sm);
  color: var(--color-muted);
  white-space: nowrap;
}

.state.is-money .state__dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 16%, transparent);
}
.state.is-money .state__name { color: var(--color-ink); font-weight: 500; }
.state.is-money .state__i { color: var(--color-accent); }

.states__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-inline: var(--space-lg);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.states__key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.states__swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-accent);
}
.states__hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral);
}

.states__alt {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  padding-inline: var(--space-lg);
}
.states__altlabel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
  padding-top: 0.45em;
}
.states__alt ul { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.states__alt li {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) dashed var(--color-rule-2);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--color-ink);
}
.states__alt em { font-style: normal; font-size: var(--text-xs); color: var(--color-muted); }

/* ══ Delivery ladder ════════════════════════════════════════════ */
.ladder { display: grid; gap: var(--space-md); }
.tier {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) 12rem;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg) 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}
.tier:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.tier__no {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral);
  padding-top: 0.35em;
}
.tier h3 { font-size: var(--text-md); margin-bottom: var(--space-2xs); grid-column: 2; }
.tier p { grid-column: 2; color: var(--color-muted); font-size: var(--text-sm); max-width: 62ch; }

/* Cost column — rupee pips, then the figure, then what it buys. */
.cost {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  gap: var(--space-2xs);
  justify-items: start;
  align-content: start;
}
.cost__pips { display: flex; gap: 3px; }
.cost__value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.cost em {
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.4;
}

/* One pip = one step up the cost scale. Rupee-shaped, so it can only read as money. */
.pip {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: var(--rule-hair) solid var(--color-rule-2);
  background: transparent;
  position: relative;
}
.pip::after {
  content: "\20B9";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  color: var(--color-rule-2);
}
.pip.is-on { border-color: var(--color-accent); background: color-mix(in oklab, var(--color-accent) 14%, transparent); }
.pip.is-on::after { color: var(--color-accent); }

.ladder__key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.ladder__keylabel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
}
.ladder__scale { display: flex; align-items: center; gap: var(--space-xs); }
.ladder__scale em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-neutral);
}
.ladder__note {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-muted);
  max-width: 60ch;
}

/* ══ Materials + checks ═════════════════════════════════════════ */
.materials__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: start;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink);
}
.chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--mat, var(--color-accent-soft)); }
.chip em { font-style: normal; color: var(--color-muted); }
.chip--pla   { --mat: var(--mat-pla); }
.chip--petg  { --mat: var(--mat-petg); }
.chip--abs   { --mat: var(--mat-abs); }
.chip--tpu   { --mat: var(--mat-tpu); }
.chip--resin { --mat: var(--mat-resin); }
.chips__note { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }

.checks li {
  position: relative;
  padding-left: var(--space-lg);
  padding-block: var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: var(--rule-hair);
  background: var(--color-accent);
}

/* ══ F3 · spec sheet ════════════════════════════════════════════ */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-ink);
  padding-top: var(--space-lg);
}
.specs__group > h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.specs dl { margin: 0; font-variant-numeric: tabular-nums; }
.specs dt {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  padding-top: var(--space-sm);
}
.specs dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

/* ══ Coming next — dashed panels, because it isn't built yet ════ */
.soon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-lg);
}
.soon__item {
  padding: var(--space-lg);
  border: var(--rule-hair) dashed var(--color-rule-2);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-paper-2) 60%, transparent);
}
.soon__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.soon__item h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.soon__item p { color: var(--color-muted); font-size: var(--text-sm); max-width: 46ch; }
.soon__meta {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) dashed var(--color-rule);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-neutral);
  letter-spacing: 0.02em;
}
.soon__note {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 66ch;
}

/* ══ C2 · CTA form ══════════════════════════════════════════════ */
.cta { padding-block: var(--space-3xl) var(--space-4xl); }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}
.cta h2 { font-size: var(--text-display-s); max-width: 14ch; }
.cta__sub { margin-top: var(--space-md); color: var(--color-muted); max-width: 44ch; }

.form { display: grid; gap: var(--space-md); }
.form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-md);
}
.field-group { display: grid; gap: var(--space-2xs); margin: 0; min-width: 0; }
.field-group--wide { grid-column: 1 / -1; }

/* Spam trap — off-screen, never focusable, never announced. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn--block { width: 100%; }

.form label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
}
.field {
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-sm);
  transition: border-color var(--dur-short) var(--ease-out);
}
.field::placeholder { color: var(--color-muted); }
.field:hover { border-color: var(--color-neutral); }
/* Interest checkbox — same hit target rules as any other control. */
.form label.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: 44px;
  padding-block: var(--space-2xs);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-muted);
}
.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 0.15em;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.check span { font-size: var(--text-sm); color: var(--color-muted); }
.check:hover span { color: var(--color-ink); }

.form__help { font-size: var(--text-xs); color: var(--color-muted); }
.form__help[data-state="error"] { color: var(--color-accent); }
.form[data-state="loading"] .btn--primary { opacity: 0.6; pointer-events: none; }
.form[data-state="loading"] .btn--primary { cursor: progress; }
.field.is-invalid { border-color: var(--color-accent); }

/* ══ Ft2 · footer ═══════════════════════════════════════════════ */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl) var(--space-2xl); }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.foot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }

/* ══ Responsive ═════════════════════════════════════════════════ */
@media (max-width: 68rem) {
  .materials__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
}

@media (max-width: 60rem) {
  .cta__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .hero__title { max-width: 18ch; }
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .step__no::after { display: none; }
  .tier { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .tier h3, .tier p { grid-column: 1; }
  .cost {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2xs) var(--space-sm);
    margin-top: var(--space-sm);
  }
  .cost em { flex: 1 0 100%; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .field-group--wide { grid-column: 1; }
}

@media (max-width: 40rem) {
  section { padding-block: var(--space-2xl); }
  .hero { padding-block: var(--space-xl) var(--space-3xl); }
  .hero__actions .btn { flex: 1 1 auto; }
  .states { padding-inline: 0; }
  .states__track,
  .states__legend,
  .states__alt { padding-inline: var(--space-md); }
  .states__alt { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}
