/* ============================================================
   Refract — Spec design system
   Two type weights (Inter 700 / 300), one blue, 0px corners,
   no shadow, one navy band as depth. Self-hosted fonts only.
   ============================================================ */

/* ---- Fonts (self-hosted woff2, no CDN) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/inter-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/jetbrains-mono-700.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-card: #fafafa;
  --surface-strong: #ebebeb;
  --navy: #1a2129;
  --navy-elevated: #262e38;
  --ink: #262626;
  --body: #3c3c3c;
  --body-strong: #1a1a1a;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --hairline: #e6e6e6;
  --hairline-strong: #cccccc;
  --blue: #1c69d4;
  --blue-press: #0653b6;
  --on-blue: #ffffff;
  --on-navy: #ffffff;
  --on-navy-soft: #bbbbbb;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1440px;
  --container-docs: 1080px;
  --band: 80px;
}

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus — 2px blue ring on light, white ring on navy. Never removed. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.band-navy :focus-visible {
  outline-color: var(--on-navy);
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-docs {
  max-width: var(--container-docs);
}
.band {
  padding: var(--band) 0;
}
.band-canvas {
  background: var(--canvas);
}
.band-soft {
  background: var(--surface-soft);
}
.band-navy {
  background: var(--navy);
  color: var(--on-navy);
}

/* ============================================================
   Typography roles
   ============================================================ */
.display-xl {
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.display-l {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.display-m {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.display-s {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.band-navy .display-xl,
.band-navy .display-l,
.band-navy .display-m,
.band-navy .display-s {
  color: var(--on-navy);
}
.spec-value {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
  font-feature-settings: "tnum";
  margin: 0;
}
.title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.title-s {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.body {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}
.body-strong {
  color: var(--body-strong);
}
.body-s {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}
.caption {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0;
}
.label {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.band-navy .body,
.band-navy .body-s {
  color: var(--on-navy-soft);
}
.band-navy .label,
.band-navy .caption {
  color: var(--on-navy-soft);
}
.mono-url {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  font-feature-settings: "zero";
}
.mono-param {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  font-feature-settings: "zero";
}
.mono-code {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  font-feature-settings: "zero";
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 0;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.5px;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.btn-primary {
  background: var(--blue);
  color: var(--on-blue);
}
.btn-primary:hover {
  background: var(--blue-press);
}
.btn-primary:active {
  background: var(--blue-press);
}
.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
}
.btn-secondary-full {
  width: 100%;
}
.btn-on-navy {
  background: transparent;
  color: var(--on-navy);
  border: 1px solid var(--on-navy);
}
.btn-on-navy:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* UPPERCASE inline text link — "OPEN ›" / "COPY URL ›" */
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}
.text-link::after {
  content: "\203A";
  font-size: 15px;
  letter-spacing: 0;
}
.band-navy .text-link {
  color: var(--on-navy);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.wordmark {
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}
.nav-tabs {
  display: flex;
  gap: 24px;
  margin: 0 auto;
}
.nav-tab {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  color: var(--body);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-tab:hover {
  color: var(--ink);
}
.nav-tab[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav-cta {
  height: 40px;
  padding: 0 20px;
}
.nav-toggle {
  display: none;
}

/* ============================================================
   Hero / opener (navy band)
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy > * + * {
  margin-top: 24px;
}
.hero-sub {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-navy-soft);
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.navy-plate {
  background: var(--navy-elevated);
  padding: 24px;
  min-width: 0;
}
.navy-plate img {
  width: 100%;
  height: auto;
}
.url-line {
  margin-top: 16px;
  color: var(--on-navy);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.url-line .neg {
  color: var(--on-navy-soft);
}

/* Opener (docs / pricing) share the hero grid but title is Display L */
.opener-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.opener-copy > * + * {
  margin-top: 24px;
}

/* ============================================================
   Model-card (capability trio + variant grid)
   ============================================================ */
.card-grid {
  display: grid;
  gap: 24px;
}
.trio {
  grid-template-columns: repeat(3, 1fr);
}
.model-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.plate {
  background: var(--surface-card);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.model-card .title,
.model-card .display-s {
  margin: 0;
}
.model-card .body {
  flex: 1;
}
.card-eyebrow {
  color: var(--muted);
}

/* ============================================================
   Section headers
   ============================================================ */
.section-head {
  max-width: 60ch;
  margin-bottom: 48px;
}
.section-head .label {
  margin-bottom: 12px;
}
.section-head .body {
  margin-top: 16px;
}

/* ============================================================
   Configurator (live demo)
   ============================================================ */
.configurator {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}
.rack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rack-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rack-group > .label {
  color: var(--muted);
}
.tile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-tile {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 12px 16px;
  min-width: 64px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 120ms ease-out;
}
.option-tile .ot-label {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.option-tile .ot-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-feature-settings: "zero";
}
.option-tile[aria-pressed="true"] {
  border: 2px solid var(--blue);
  padding: 11px 15px; /* keep box size stable when border grows to 2px */
}
.option-tile[aria-pressed="true"] .ot-label {
  font-weight: 700;
}
.option-tile[aria-pressed="true"] .ot-value {
  color: var(--ink);
}
.option-tile[aria-disabled="true"] {
  background: var(--surface-strong);
  border-color: var(--surface-strong);
  cursor: not-allowed;
}
.option-tile[aria-disabled="true"] .ot-label,
.option-tile[aria-disabled="true"] .ot-value {
  color: var(--muted-soft);
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-card);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stepper-btn:hover {
  border-color: var(--ink);
}
.stepper-field {
  height: 40px;
  min-width: 96px;
  flex: 1;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-feature-settings: "zero";
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Slider */
.slider {
  width: 100%;
  accent-color: var(--blue);
}

/* bg swatches + hex field */
.swatch-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.swatch {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--hairline);
  padding: 0;
}
.swatch[aria-pressed="true"] {
  border: 2px solid var(--blue);
}
.hex-field {
  height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-feature-settings: "zero";
  padding: 0 12px;
  width: 120px;
}
.hex-field:focus {
  outline: none;
  border: 2px solid var(--blue);
  padding: 0 11px;
}
.hex-field.rejected {
  border: 2px solid var(--ink);
  padding: 0 11px;
}
.rack-group[data-disabled="true"] {
  opacity: 1;
}
.rack-group[data-disabled="true"] .label::after {
  content: " — needs fit=contain";
  color: var(--muted-soft);
  letter-spacing: 0;
  font-weight: 300;
  text-transform: none;
}

/* Preview column */
.preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.plate-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.plate-cell {
  min-width: 0;
}
.plate-cell .caption {
  margin-top: 8px;
}
.demo-frame {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}
.demo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* live URL + copy */
.url-panel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.url-panel .live-url {
  color: var(--ink);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.url-panel .live-url .neg {
  color: var(--muted);
}
.neg-tag {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 2px 8px;
  border-radius: 0;
  margin-left: 4px;
  white-space: nowrap;
  vertical-align: middle;
}
.url-panel-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.copy-state {
  color: var(--muted);
}

/* build-sheet spec-cells under the configurator */
.build-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
}
.build-cell {
  padding: 16px 24px 16px 0;
  margin-right: 24px;
  border-right: 1px solid var(--hairline);
}
.build-cell:last-child {
  border-right: 0;
}
.build-cell .bc-value {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.build-cell .bc-label {
  margin-top: 4px;
}

/* variant grid */
.variant-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.variant-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.variant-plate {
  background: var(--surface-card);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.variant-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.variant-name {
  color: var(--ink);
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ============================================================
   Stats band (spec-cells)
   ============================================================ */
.spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec-cell {
  padding: 0 32px;
  border-right: 1px solid var(--hairline);
}
.spec-cell:first-child {
  padding-left: 0;
}
.spec-cell:last-child {
  border-right: 0;
}
.spec-cell .spec-value {
  margin-bottom: 12px;
}
.spec-cell .label {
  color: var(--muted);
}
.spec-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.cta-inner .display-m {
  max-width: 24ch;
}

/* ============================================================
   Docs — quickstart, table, code
   ============================================================ */
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.step:last-of-type {
  border-bottom: 1px solid var(--hairline);
}
.step-num {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-photo {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  max-width: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.code-block {
  background: var(--surface-soft);
  border-radius: 0;
  padding: 24px;
  position: relative;
  min-width: 0;
  overflow-x: auto;
}
.code-block pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  font-feature-settings: "zero";
  white-space: pre;
}
.code-block code {
  font-family: var(--mono);
  font-feature-settings: "zero";
}
.code-block .k {
  font-weight: 700;
  color: var(--ink);
}
.code-copy {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 32px;
  padding: 0 12px;
}

/* Parameter table */
.param-table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.param-table table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
}
.param-table th {
  text-align: left;
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.param-table td {
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.param-table tr:last-child td {
  border-bottom: 0;
}
.param-table .p-name {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  font-feature-settings: "zero";
  white-space: nowrap;
}
.param-table .p-accept {
  font-weight: 300;
  font-size: 14px;
  color: var(--body);
}
.param-table .p-accept code {
  font-family: var(--mono);
  font-size: 13px;
  font-feature-settings: "zero";
  color: var(--ink);
}
.param-table .p-desc {
  font-weight: 300;
  font-size: 14px;
  color: var(--body);
}
.inline-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============================================================
   Pricing — tier cards, FAQ
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tier-price .spec-value {
  font-size: 56px;
}
.tier-price .per {
  font-weight: 300;
  font-size: 16px;
  color: var(--muted);
}
.tier-quota {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-quota li {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}
.tier-quota li strong {
  font-weight: 700;
  color: var(--ink);
}
.tier-quota .q-mono {
  font-family: var(--mono);
  font-feature-settings: "zero";
  color: var(--ink);
}

/* overage band */
.overage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.overage-grid .body + .body {
  margin-top: 16px;
}

/* FAQ */
.faq-row {
  border-top: 1px solid var(--hairline);
}
.faq-row:last-child {
  border-bottom: 1px solid var(--hairline);
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.faq-q .display-s {
  font-size: 24px;
}
.faq-chevron {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--hairline-strong);
  background: var(--canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease-out;
}
.faq-chevron::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 0 24px;
  max-width: 68ch;
}
.faq-a[hidden] {
  display: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--surface-soft);
  padding: 64px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-weight: 300;
  font-size: 14px;
  color: var(--body);
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-copy {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .configurator {
    grid-template-columns: 1fr;
  }
  .variant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .trio {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .overage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .display-xl {
    font-size: 40px;
  }
  .display-l {
    font-size: 36px;
  }
  .display-m {
    font-size: 26px;
  }
  .hero-grid,
  .opener-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .trio {
    grid-template-columns: 1fr;
  }
  .plate-pair {
    grid-template-columns: 1fr;
  }
  .spec-row,
  .spec-row-3 {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }
  .spec-cell {
    min-width: 0;
    padding: 0;
    border-right: 0;
  }
  .variant-grid {
    grid-template-columns: 1fr;
  }
  .tile-row {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nav-tabs {
    display: none;
  }
  .nav-tabs.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    margin: 0;
    padding: 8px 20px 16px;
  }
  .nav-tabs.open .nav-tab {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: 1px solid var(--hairline-strong);
    border-radius: 0;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle span::before {
    top: -6px;
  }
  .nav-toggle span::after {
    top: 6px;
  }
  .nav-cta {
    display: none;
  }
  .build-cell {
    padding-right: 16px;
    margin-right: 16px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
