/* ==========================================================================
   Production Hell — shopfront
   Controlled interference: strict grids, stamped labels, operational readouts,
   interrupted by one loud signal.

   HOUSE RULE, enforced throughout: no grey text on the dark field. Secondary
   copy is the brand off-white at reduced opacity (--quiet 0.74, --faint 0.52).
   Steel is for rules and inactive hardware only — never for type.
   ========================================================================== */

:root {
  /* Brand tokens — BRAND_SYSTEM.md */
  --void: #090b0a;
  --hard-white: #f0f2eb;
  --high-vis: #ccff2e;
  --verify: #2e61ff;
  --alert: #ff3d3d;
  --steel: #737b75;

  /* Off-white at the two sanctioned opacities */
  --quiet: rgba(240, 242, 235, 0.74);
  --faint: rgba(240, 242, 235, 0.52);

  /* Surfaces, built from the void rather than from grey */
  --field: #090b0a;
  --raised: #101413;
  --raised-2: #161b19;
  --rule: rgba(115, 123, 117, 0.28);
  --rule-strong: rgba(115, 123, 117, 0.5);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter,
    system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --display: ui-rounded, 'SF Pro Rounded', ui-sans-serif, -apple-system,
    system-ui, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1200px;

  /* Rectangular cards, one to four point radii. Pills are for statuses only. */
  --r: 3px;
  --r-lg: 4px;
}

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

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

/* The page body must never scroll sideways. `clip` rather than `hidden`
   because `hidden` establishes a scroll container and kills position:sticky,
   which the masthead depends on. Wide content scrolls inside its own box. */
html,
body {
  overflow-x: clip;
}

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

body {
  margin: 0;
  background: var(--field);
  color: var(--hard-white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--high-vis);
}

:focus-visible {
  outline: 2px solid var(--high-vis);
  outline-offset: 3px;
  border-radius: 1px;
}

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

.hv {
  color: var(--high-vis);
}
.vb {
  color: var(--verify);
}
.quiet {
  color: var(--quiet);
}
.faint {
  color: var(--faint);
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
  letter-spacing: 0.01em;
}

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

/* Skip link — keyboard users land here first */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--high-vis);
  color: var(--void);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip:focus {
  left: 0;
}

/* ── Stamped label ─────────────────────────────────────────────────────── */

.label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
}

.label--hv {
  color: var(--high-vis);
}
.label--vb {
  color: var(--verify);
}

/* ── Masthead ──────────────────────────────────────────────────────────
   House lockup hard left, nav ranged right. The app-name centring rule
   belongs to the apps' own mastheads, not to the website chrome.        */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 10, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 60px;
}

/* The three-cell parent mark: P | H | ×  — strict row, narrow gutters */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.mark {
  display: inline-flex;
  gap: 2px;
}

.mark span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  background: var(--hard-white);
  color: var(--void);
}

.mark span:last-child {
  background: var(--high-vis);
  color: var(--void);
}

.lockup__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .lockup__word {
    display: none;
  }
}

/* ── Nav, with the platform dropdown ───────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link,
.nav__trigger {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
  background: none;
  border: 0;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.nav__link:hover,
.nav__trigger:hover,
.nav__link[aria-current='page'] {
  color: var(--hard-white);
}

.nav__link[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--high-vis);
}

.nav__caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.15s ease;
}

.nav__item[data-open='true'] .nav__caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.nav__item {
  position: relative;
}

/* The dropdown: macOS apps in one group, iPad apps in another */
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  background: var(--raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  padding: 0.6rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  display: none;
}

.nav__item[data-open='true'] .menu {
  display: block;
}

.menu__group + .menu__group {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
}

.menu__heading {
  padding: 0.35rem 0.6rem 0.5rem;
}

.menu__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--r);
  text-decoration: none;
}

.menu__link:hover,
.menu__link:focus-visible {
  background: var(--raised-2);
}

.menu__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.menu__price {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--high-vis);
  align-self: center;
}

.menu__line {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .nav__link--hide-sm {
    display: none;
  }
  .menu {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    transform: none;
    min-width: 0;
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* ── Cart button ───────────────────────────────────────────────────────── */

.cart-btn {
  position: relative;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  color: var(--hard-white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.cart-btn:hover {
  border-color: var(--high-vis);
}

.cart-btn__count {
  display: none;
  margin-left: 0.5rem;
  background: var(--high-vis);
  color: var(--void);
  border-radius: 999px; /* a pill, and it is a status — permitted */
  padding: 0.05rem 0.45rem;
  font-weight: 700;
}

.cart-btn[data-count]:not([data-count='0']) .cart-btn__count {
  display: inline;
}

/* ── Cart drawer ───────────────────────────────────────────────────────── */

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 10, 0.72);
  backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.drawer-scrim[data-open='true'] {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--raised);
  border-left: 1px solid var(--rule-strong);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
}

.drawer[data-open='true'] {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.drawer__title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  margin: 0;
}

.drawer__close {
  background: none;
  border: 0;
  color: var(--quiet);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.drawer__close:hover {
  color: var(--hard-white);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem var(--gutter);
}

.drawer__foot {
  border-top: 1px solid var(--rule);
  padding: 1.1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom));
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.cart-line__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-line__price {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.cart-line__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-line__remove {
  background: none;
  border: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem 0;
}

.cart-line__remove:hover {
  color: var(--alert);
}

.cart-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--faint);
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.cart-total__figure {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
}

/* The bundle nudge — appears when the cart is worth more than The Lot */
.cart-nudge {
  border: 1px solid var(--verify);
  border-radius: var(--r);
  padding: 0.8rem 0.9rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--quiet);
  background: rgba(46, 97, 255, 0.08);
}

.cart-nudge button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--verify);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  text-align: center;
}

/* High-vis means LOOK HERE NOW — the one current action on the view */
.btn--go {
  background: var(--high-vis);
  color: var(--void);
  border-color: var(--high-vis);
}

.btn--go:hover {
  background: #d8ff5c;
}

.btn--line {
  background: none;
  color: var(--hard-white);
  border-color: var(--rule-strong);
}

.btn--line:hover {
  border-color: var(--hard-white);
}

/* Verify blue means the system has evidence — used on proof-flavoured actions */
.btn--proof {
  background: none;
  color: var(--verify);
  border-color: var(--verify);
}

.btn--proof:hover {
  background: rgba(46, 97, 255, 0.12);
}

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

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--added {
  background: var(--verify);
  border-color: var(--verify);
  color: var(--hard-white);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section--rule {
  border-top: 1px solid var(--rule);
}

.section__head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.2rem);
}
h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--quiet);
  line-height: 1.55;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3.5rem, 11vw, 8rem) clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

/* The one loud, slightly unruly signal — a single interference band */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--high-vis) 0 18%,
    transparent 18% 24%,
    var(--high-vis) 24% 27%,
    transparent 27% 100%
  );
}

.hero__eyebrow {
  margin-bottom: 1.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ── Product grid ──────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--field);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

.card:hover {
  background: var(--raised);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.card__name {
  font-size: 1.45rem;
  margin: 0;
}

.card__name a {
  text-decoration: none;
}

.card__name a:hover {
  color: var(--high-vis);
}

.card__line {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--high-vis);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.card--proof .card__line {
  color: var(--verify);
}

.card__body {
  color: var(--quiet);
  font-size: 0.94rem;
  flex: 1;
  margin-bottom: 1.2rem;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.price {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.price__was {
  color: var(--faint);
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 0.45rem;
  font-weight: 400;
}

.price__once {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}

/* Small status pill — the sanctioned use of a pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--quiet);
  white-space: nowrap;
}

.chip--mac {
  border-color: rgba(240, 242, 235, 0.3);
}

.chip--ipad {
  border-color: var(--high-vis);
  color: var(--high-vis);
}

.chip--verified {
  border-color: var(--verify);
  color: var(--verify);
}

/* ── Feature rows ──────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.feature {
  background: var(--field);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
  align-items: start;
}

@media (max-width: 720px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.feature__label {
  padding-top: 0.35rem;
}

.feature__title {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.5rem;
}

.feature__body {
  color: var(--quiet);
  margin: 0;
  max-width: var(--measure);
}

/* ── Readout: the operational panel motif ──────────────────────────────── */

.readout {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.75;
  background: var(--raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  overflow-x: auto;
  max-width: 100%;
}

.readout__row {
  display: grid;
  grid-template-columns: 1.2rem 12rem 8rem 1fr;
  gap: 0.75rem;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 720px) {
  .readout__row {
    grid-template-columns: 1.2rem 1fr;
  }
  .readout__row > :nth-child(3) {
    grid-column: 2;
  }
  .readout__row > :nth-child(4) {
    grid-column: 2;
    white-space: normal;
  }
}

.readout__mark--stop {
  color: var(--alert);
}
.readout__mark--look {
  color: var(--high-vis);
}
.readout__mark--info {
  color: var(--verify);
}

.readout__tc {
  color: var(--faint);
}
.readout__what {
  color: var(--quiet);
}

/* ── Signup / forms ────────────────────────────────────────────────────── */

.panel {
  background: var(--raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.panel--go {
  border-color: var(--high-vis);
}

.form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.field {
  flex: 1 1 240px;
  min-width: 0;
}

label.label {
  margin-bottom: 0.4rem;
}

input[type='email'],
input[type='text'],
select,
textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  color: var(--hard-white);
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 0.8rem 0.9rem;
}

/* Native arrow is drawn light-on-light by some engines; supply our own. */
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hard-white) 50%),
    linear-gradient(135deg, var(--hard-white) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--high-vis);
}

/* The dropdown list itself is drawn by the OS, so force legible colours. */
select option {
  background: var(--raised);
  color: var(--hard-white);
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--high-vis);
}

.form-msg {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  min-height: 1.4em;
}

.form-msg--ok {
  color: var(--verify);
}
.form-msg--bad {
  color: var(--alert);
}
.form-msg--busy {
  color: var(--faint);
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--faint);
  line-height: 1.5;
}

.consent input {
  margin-top: 0.25rem;
  accent-color: var(--high-vis);
  flex-shrink: 0;
}

/* Honeypot — off-screen, never focusable by a person */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  padding: 1.15rem 2rem 1.15rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 1.05rem;
  font-family: var(--mono);
  color: var(--high-vis);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details > p {
  color: var(--quiet);
  padding-bottom: 1.2rem;
  margin: 0;
  font-size: 0.94rem;
}

/* ── Pricing table ─────────────────────────────────────────────────────── */

.table-scroll {
  position: relative; /* contains the absolutely-positioned .sr-only inside */
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

/* Column headers only — a stamped label. Row headers are product names and
   must not inherit any of this, or they read as dim shouting. */
thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  white-space: nowrap;
}

tbody th {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--hard-white);
  letter-spacing: 0;
  text-transform: none;
}

tbody th a:hover {
  color: var(--high-vis);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.num {
  font-family: var(--mono);
  white-space: nowrap;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  color: var(--faint);
  font-size: 0.86rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.footer__list a {
  color: var(--quiet);
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--hard-white);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

/* ── Utility ───────────────────────────────────────────────────────────── */

.stack > * + * {
  margin-top: 1rem;
}
.stack-lg > * + * {
  margin-top: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.center {
  text-align: center;
}

.center p {
  margin-inline: auto;
}
