/* ==========================================================================
   OxySafe — NFPA 99 chamber atmosphere safety
   Art direction: engineering compliance dossier. Steel neutrals, signal amber,
   mono labels, hairline rules, plate numbering. Sober and technical.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius / motion */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Widths */
  --content-narrow: 660px;
  --content-default: 1000px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

:root,
[data-theme='light'] {
  --color-bg: #f4f5f6;
  --color-surface: #fafbfb;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ebedee;
  --color-surface-inset: #e2e5e7;
  --color-divider: #dcdfe1;
  --color-border: #c8ccd0;
  --color-border-strong: #a8aeb4;

  --color-text: #16191c;
  --color-text-muted: #5e666d;
  --color-text-faint: #949ba1;
  --color-text-inverse: #f7f8f9;

  /* Signal amber — fire/gas safety semantics. CTA + threshold only. */
  --color-primary: #a8480a;
  --color-primary-hover: #8a3a06;
  --color-primary-active: #6b2c04;
  --color-primary-tint: #f6e6db;

  /* Steel — secondary/data */
  --color-steel: #2b5a75;
  --color-steel-tint: #dde6ec;

  --color-danger: #a01f24;
  --color-danger-tint: #f6dedf;
  --color-ok: #35662c;
  --color-ok-tint: #dfe9dc;

  --shadow-sm: 0 1px 2px rgb(20 24 28 / 0.07);
  --shadow-md: 0 4px 14px rgb(20 24 28 / 0.09);
  --shadow-lg: 0 14px 40px rgb(20 24 28 / 0.13);

  --grid-line: rgb(22 25 28 / 0.055);
}

[data-theme='dark'] {
  --color-bg: #101315;
  --color-surface: #16191c;
  --color-surface-2: #1b1f22;
  --color-surface-offset: #191d20;
  --color-surface-inset: #0c0e10;
  --color-divider: #23282c;
  --color-border: #2f353a;
  --color-border-strong: #454d54;

  --color-text: #d6dade;
  --color-text-muted: #8b9299;
  --color-text-faint: #626a71;
  --color-text-inverse: #14181b;

  --color-primary: #e07d3c;
  --color-primary-hover: #ef9455;
  --color-primary-active: #f6a870;
  --color-primary-tint: #2c2018;

  --color-steel: #79a9c4;
  --color-steel-tint: #1a252c;

  --color-danger: #e4707a;
  --color-danger-tint: #2c1a1d;
  --color-ok: #7faa6f;
  --color-ok-tint: #1c2419;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 14px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 14px 40px rgb(0 0 0 / 0.6);

  --grid-line: rgb(214 218 222 / 0.045);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #101315;
    --color-surface: #16191c;
    --color-surface-2: #1b1f22;
    --color-surface-offset: #191d20;
    --color-surface-inset: #0c0e10;
    --color-divider: #23282c;
    --color-border: #2f353a;
    --color-border-strong: #454d54;
    --color-text: #d6dade;
    --color-text-muted: #8b9299;
    --color-text-faint: #626a71;
    --color-text-inverse: #14181b;
    --color-primary: #e07d3c;
    --color-primary-hover: #ef9455;
    --color-primary-active: #f6a870;
    --color-primary-tint: #2c2018;
    --color-steel: #79a9c4;
    --color-steel-tint: #1a252c;
    --color-danger: #e4707a;
    --color-danger-tint: #2c1a1d;
    --color-ok: #7faa6f;
    --color-ok-tint: #1c2419;
    --grid-line: rgb(214 218 222 / 0.045);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.62;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.14;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.018em;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

a {
  color: inherit;
}

::selection {
  background: var(--color-primary-tint);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

a,
button,
[role='button'],
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    opacity var(--transition-interactive);
}

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

.sr-only {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.rule {
  height: 1px;
  background: var(--color-divider);
  border: 0;
}

/* Mono eyebrow label with plate number — the recurring signature element */
.plate {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.plate::before {
  content: attr(data-plate);
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding-inline: 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-surface-2);
  letter-spacing: 0.04em;
}
.plate::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg {
  color: var(--color-primary);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
  line-height: 1;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav a.nav__cta {
  display: none;
}
.nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
[data-theme='dark'] .btn--primary,
[data-theme='dark'] .nav a.nav__cta {
  color: #17120d;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
  background: var(--color-surface-2);
}
.btn--ghost:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-offset);
}
.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: var(--text-base);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 11vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-24));
  border-bottom: 1px solid var(--color-divider);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 65% 25%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.hero__lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-top: var(--space-5);
  max-width: 46ch;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-5);
  letter-spacing: 0.02em;
}
.hero__figure {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero__figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  max-width: none;
}

/* ---------- Threshold gauge ---------- */
.gauge {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
}
.gauge__scale {
  position: relative;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--color-ok-tint) 0%,
    var(--color-ok-tint) 50%,
    var(--color-primary-tint) 50%,
    var(--color-danger-tint) 100%
  );
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.gauge__mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-danger);
  left: 50%;
}
.gauge__labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.gauge__zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.gauge__zone {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.gauge__zone h4 {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.gauge__zone p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
.gauge__zone--ok h4 {
  color: var(--color-ok);
}
.gauge__zone--over h4 {
  color: var(--color-danger);
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-5);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-6);
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: clamp(var(--space-5), 2.5vw, var(--space-6));
}
.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-3);
}

/* Section intro */
.sec-head {
  max-width: 58ch;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.sec-head h2 {
  font-size: var(--text-xl);
}
.sec-head p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* ---------- Spec table ---------- */
.spec {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.spec table {
  font-size: var(--text-sm);
}
.spec th,
.spec td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}
.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: 0;
}
.spec th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  width: 38%;
  background: var(--color-surface-offset);
}

/* Matrix variant: column headers instead of row headers, for comparison tables
   that are too wide for the 38% row-header layout. Same skin, scrolls on small
   screens rather than crushing the columns. */
.spec--matrix {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.spec--matrix table {
  min-width: 44rem;
}
.spec--matrix thead th {
  width: auto;
  vertical-align: bottom;
  white-space: normal;
  border-bottom: 1px solid var(--color-border);
}
.spec--matrix tbody th {
  width: auto;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.spec--matrix td {
  font-variant-numeric: tabular-nums;
}
.spec--wide table {
  min-width: 56rem;
}
.spec__cap {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.spec__cap a {
  color: var(--color-text-muted);
}

/* ---------- Tier tag: code / body / vendor ---------- */
.tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.1em 0.45em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background: var(--color-surface-inset);
  color: var(--color-text-muted);
}
.tier--code {
  background: var(--color-danger-tint);
  color: var(--color-danger);
}
.tier--body {
  background: var(--color-steel-tint);
  color: var(--color-steel);
}
.tier--vendor {
  background: var(--color-surface-inset);
  color: var(--color-text-muted);
}

/* ---------- Callout ---------- */
.callout {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  padding: var(--space-5) var(--space-6);
}
.callout--danger {
  border-left-color: var(--color-danger);
}
.callout__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.callout p {
  font-size: var(--text-sm);
  margin: 0;
}
.callout p + p {
  margin-top: var(--space-3);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-5);
}
.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.step__n {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-surface-2);
}
.step__n::before {
  content: counter(step, decimal-leading-zero);
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Prose ---------- */
.prose > * + * {
  margin-top: var(--space-5);
}
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
}
.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
}
.prose ul,
.prose ol {
  padding-left: var(--space-6);
}
.prose li + li {
  margin-top: var(--space-2);
}
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--color-primary-hover);
}
.prose small,
.prose .src {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---------- Quote form ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-5);
}
.field {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--space-2);
  align-content: start;
}
.field input,
.field select {
  align-self: start;
}
.field > label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field__hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-8);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: clamp(var(--space-8), 4vw, var(--space-12));
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.footer-grid ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.footer-grid a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--color-text);
}
.footer-disclose {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 58ch;
}
.footer-disclose strong {
  color: var(--color-text);
}
.footer-legal {
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  align-items: baseline;
  justify-content: space-between;
}
.footer-legal p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 70ch;
}
.footer-legal .updated {
  font-family: var(--font-mono);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: 24ch;
  }
  .gauge__zones {
    grid-template-columns: 1fr;
  }
}

/* Six nav items need more room than five did; collapse to the menu button at
   64rem instead of 48rem so the header never crowds. */
@media (max-width: 64rem) {
  .nav-toggle {
    display: grid;
  }
  .nav {
    position: fixed;
    inset: 4.25rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) clamp(var(--space-4), 4vw, var(--space-10)) var(--space-5);
    box-shadow: var(--shadow-md);
    display: none;
    margin-left: 0;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
    font-size: var(--text-base);
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions > .btn {
    display: none;
  }
  .nav a.nav__cta {
    display: inline-flex;
    margin-top: var(--space-4);
    justify-content: center;
    border-bottom: 0;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: var(--text-sm);
  }
}

@media (max-width: 48rem) {
  .nav-toggle {
    display: grid;
  }
  .nav {
    position: fixed;
    inset: 4.25rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) clamp(var(--space-4), 4vw, var(--space-10)) var(--space-5);
    box-shadow: var(--shadow-md);
    display: none;
    margin-left: 0;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
    font-size: var(--text-base);
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions > .btn {
    display: none;
  }
  .nav a.nav__cta {
    display: inline-flex;
    margin-top: var(--space-4);
    justify-content: center;
    border-bottom: 0;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: var(--text-sm);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ---------------------------------------------------------------------------
   FAQ question / answer blocks
   --------------------------------------------------------------------------- */

.qa {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-8) var(--space-2);
}

.qa:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.qa__q {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: baseline;
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
  line-height: 1.25;
  text-wrap: balance;
}

.qa__n {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  transform: translateY(-0.15em);
}

.qa__a > :first-child {
  margin-top: 0;
}

.qa__a > :last-child {
  margin-bottom: 0;
}

.qa__a {
  padding-left: calc(2ch + var(--space-4));
}

@media (max-width: 40rem) {
  .qa__a {
    padding-left: 0;
  }
}
