/* =========================================================================
   SHEV Software — design system
   No external requests. No trackers. No third-party CSS or fonts.
   Fonts are self-hosted (Inter, JetBrains Mono — SIL Open Font License).
   ========================================================================= */

/* ---------- 1. Fonts (self-hosted, subset-free variable) ---------- */

@font-face {
  font-family: "InterVar";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrainsMonoVar";
  src: url("/fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */

:root {
  /* Type families */
  --font-sans: "InterVar", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrainsMonoVar", ui-monospace, SFMono-Regular, "SF Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  /* Type scale — fluid */
  --t--1: 0.8125rem;
  --t-0: 1.0625rem;
  --t-1: 1.1875rem;
  --t-2: clamp(1.375rem, 1.16rem + 0.9vw, 1.75rem);
  --t-3: clamp(1.75rem, 1.35rem + 1.75vw, 2.5rem);
  --t-4: clamp(2.15rem, 1.5rem + 2.8vw, 3.3rem);

  --lh-tight: 1.12;
  --lh-snug: 1.32;
  --lh-body: 1.62;

  --tracking-tight: -0.021em;
  --tracking-wide: 0.06em;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* Layout */
  --container: 71.5rem;
  --prose: 42rem;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --border-w: 1px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 180ms;

  color-scheme: light dark;
}

/* Light theme (default) */
:root,
[data-theme="light"] {
  --bg: #faf9f6;
  --bg-sunken: #f2f0ea;
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --ink: #12161d;
  --ink-2: #39424f;
  --muted: #5a6472;
  --border: #e2ded4;
  --border-strong: #cdc7b9;

  --accent: #0d6e6e;
  --accent-ink: #ffffff;
  --accent-hover: #0a5858;
  --accent-soft: #e2f0ee;

  --signal: #9a5408;
  --signal-soft: #fbf0dd;
  --danger: #a02222;
  --danger-soft: #fbe8e6;
  --ok: #1f6b3c;
  --ok-soft: #e3f2e7;

  --shadow-sm: 0 1px 2px rgba(18, 22, 29, 0.05);
  --shadow: 0 1px 3px rgba(18, 22, 29, 0.07), 0 8px 24px -12px rgba(18, 22, 29, 0.14);
  --grid-line: rgba(18, 22, 29, 0.055);
}

[data-theme="dark"] {
  --bg: #0b0e13;
  --bg-sunken: #070a0e;
  --surface: #12161d;
  --surface-2: #171c25;
  --ink: #e8ecf2;
  --ink-2: #bcc6d4;
  --muted: #8e9aab;
  --border: #232b36;
  --border-strong: #33404f;

  --accent: #4fd6c8;
  --accent-ink: #06100f;
  --accent-hover: #6fe3d7;
  --accent-soft: #0f2a29;

  --signal: #f0b64a;
  --signal-soft: #2a2013;
  --danger: #f19191;
  --danger-soft: #2b1717;
  --ok: #74d39a;
  --ok-soft: #14261c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --grid-line: rgba(232, 236, 242, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e13;
    --bg-sunken: #070a0e;
    --surface: #12161d;
    --surface-2: #171c25;
    --ink: #e8ecf2;
    --ink-2: #bcc6d4;
    --muted: #8e9aab;
    --border: #232b36;
    --border-strong: #33404f;

    --accent: #4fd6c8;
    --accent-ink: #06100f;
    --accent-hover: #6fe3d7;
    --accent-soft: #0f2a29;

    --signal: #f0b64a;
    --signal-soft: #2a2013;
    --danger: #f19191;
    --danger-soft: #2b1717;
    --ok: #74d39a;
    --ok-soft: #14261c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    --grid-line: rgba(232, 236, 242, 0.05);
  }
}

/* ---------- 3. Reset ---------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--t-0);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "cv11" 1, "ss01" 1;
  min-height: 100vh;
  overflow-wrap: break-word;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ---------- 4. Typography ---------- */

h1,
h2,
h3,
h4 {
  font-weight: 640;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-4);
}
h2 {
  font-size: var(--t-3);
}
h3 {
  font-size: var(--t-2);
  line-height: var(--lh-snug);
}
h4 {
  font-size: var(--t-1);
  line-height: var(--lh-snug);
  font-weight: 620;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

strong {
  font-weight: 640;
}

code,
kbd,
samp,
.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-variant-ligatures: none;
}

:where(p, li) > code {
  background: var(--surface-2);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.08em 0.34em;
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  font-weight: 550;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--s-4);
}

.lede {
  font-size: var(--t-1);
  line-height: 1.55;
  color: var(--ink-2);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--t--1);
  line-height: 1.55;
}

/* ---------- 5. Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);
}

.prose {
  max-width: var(--prose);
}

.prose > * + * {
  margin-top: var(--s-4);
}

.prose h2 {
  margin-top: var(--s-7);
}

.prose h3 {
  margin-top: var(--s-6);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: var(--s-2);
}

section {
  padding-block: var(--section-y);
  position: relative;
}

.section--sunken {
  background: var(--bg-sunken);
  border-block: var(--border-w) solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--s-7);
}

.section-head p {
  margin-top: var(--s-4);
  color: var(--ink-2);
  font-size: var(--t-1);
  line-height: 1.55;
}

.stack > * + * {
  margin-top: var(--s-4);
}
.stack-lg > * + * {
  margin-top: var(--s-6);
}

.grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 46em) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 62em) {
  .grid-sidebar {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--s-8);
    align-items: start;
  }
}

/* ---------- 6. Skip link & focus ---------- */

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 999;
  padding: var(--s-3) var(--s-4);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

/* ---------- 7. Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: var(--border-w) solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 4.25rem;
}

@media (min-width: 40em) {
  .site-header__inner {
    gap: var(--s-5);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 660;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

.brand__sub {
  color: var(--muted);
  font-weight: 450;
}

.site-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: var(--s-5);
}

@media (min-width: 56em) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}

@media (min-width: 56em) {
  .header-actions {
    margin-left: 0;
    gap: var(--s-3);
  }
}

/* The header CTA carries a shorter label on narrow screens so the bar never
   overflows. Both labels are real text — nothing is hidden from assistive tech
   that is not also hidden visually. */
.cta-long {
  display: none;
}
.cta-short {
  display: inline;
}

@media (min-width: 30em) {
  .cta-long {
    display: inline;
  }
  .cta-short {
    display: none;
  }
}

@media (max-width: 29.999em) {
  .brand {
    font-size: 0.9375rem;
  }
  .brand__mark {
    width: 1.4rem;
    height: 1.4rem;
  }
  .header-actions .btn {
    padding: 0.42rem 0.7rem;
    font-size: 0.8125rem;
  }
}

/* ---------- 7b. Mobile navigation (no JavaScript required) ---------- */

.nav-mobile {
  position: relative;
  flex: none;
}

@media (min-width: 56em) {
  .nav-mobile {
    display: none;
  }
}

.nav-mobile > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-mobile > summary::-webkit-details-marker {
  display: none;
}

.nav-mobile > summary:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.nav-mobile > summary svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nav-mobile[open] > summary .icon-menu {
  display: none;
}
.nav-mobile > summary .icon-close {
  display: none;
}
.nav-mobile[open] > summary .icon-close {
  display: block;
}
.nav-mobile[open] > summary {
  color: var(--ink);
  border-color: var(--border-strong);
}

.nav-mobile__panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 14rem;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--s-2);
  z-index: 60;
}

.nav-mobile__panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-mobile__panel a:hover,
.nav-mobile__panel a:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

/* ---------- 8. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.15rem;
  border-radius: var(--radius);
  border: var(--border-w) solid transparent;
  font-size: 0.9375rem;
  font-weight: 570;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--muted);
  color: var(--ink);
}

.btn--sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon {
  display: block;
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* ---------- 9. Hero ---------- */

.hero {
  padding-top: clamp(3rem, 1.5rem + 6vw, 6rem);
  padding-bottom: clamp(3rem, 1.5rem + 5vw, 5rem);
  position: relative;
  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: 3.5rem 3.5rem;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero__inner {
  max-width: 50rem;
}

.hero h1 {
  margin-bottom: var(--s-5);
}

.hero .lede {
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

.hero__actions {
  margin-top: var(--s-6);
}

.hero__meta {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: var(--border-w) solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-5);
}

@media (min-width: 48em) {
  .hero__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero__meta div {
  font-size: var(--t--1);
  color: var(--muted);
  line-height: 1.45;
}

.hero__meta strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

/* ---------- 10. Cards & spec rows ---------- */

.card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card h3,
.card h4 {
  margin-bottom: var(--s-3);
}

.card p {
  color: var(--ink-2);
}

.card__head {
  padding: var(--s-5);
  border-bottom: var(--border-w) solid var(--border);
  background: var(--surface-2);
}

.card__body {
  padding: var(--s-5);
}

.card__foot {
  padding: var(--s-4) var(--s-5);
  border-top: var(--border-w) solid var(--border);
  background: var(--surface-2);
  font-size: var(--t--1);
  color: var(--muted);
}

.num {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-3);
  letter-spacing: var(--tracking-wide);
}

/* Spec list — the "instrument" motif */
.spec {
  border-top: var(--border-w) solid var(--border);
}

.spec__row {
  display: grid;
  gap: var(--s-1) var(--s-5);
  padding: var(--s-4) 0;
  border-bottom: var(--border-w) solid var(--border);
}

@media (min-width: 40em) {
  .spec__row {
    grid-template-columns: 13rem minmax(0, 1fr);
  }
}

.spec__key {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.spec__val {
  color: var(--ink-2);
}

.spec__val > * + * {
  margin-top: var(--s-2);
}

/* Code list — for the reconciliation vocabulary. The state codes are long
   single tokens that cannot wrap, so the label gets its own line rather than a
   fixed-width column it would overflow. */
.code-list {
  border-top: var(--border-w) solid var(--border);
}

.code-list__item {
  padding: var(--s-4) 0;
  border-bottom: var(--border-w) solid var(--border);
}

.code-list__item .badge {
  margin-bottom: var(--s-2);
  max-width: 100%;
}

.code-list__gloss {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 24em) {
  .code-list__item .badge {
    font-size: 0.6875rem;
  }
}

/* ---------- 11. Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  padding: 0.24em 0.55em;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}

.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 32%, transparent);
}
.badge--signal {
  background: var(--signal-soft);
  color: var(--signal);
  border-color: color-mix(in srgb, var(--signal) 32%, transparent);
}
.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 32%, transparent);
}
.badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- 12. Timeline ---------- */

.timeline {
  display: grid;
  gap: 0;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

@media (min-width: 52em) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.timeline__item {
  padding: var(--s-5);
  border-bottom: var(--border-w) solid var(--border);
  position: relative;
}

@media (min-width: 52em) {
  .timeline__item {
    border-bottom: 0;
    border-right: var(--border-w) solid var(--border);
  }
  .timeline__item:last-child {
    border-right: 0;
  }
}

.timeline__item:last-child {
  border-bottom: 0;
}

.timeline__item--now {
  background: var(--accent-soft);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-2);
}

.timeline__item--warn .timeline__date {
  color: var(--signal);
}

.timeline__title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--s-2);
  line-height: 1.35;
}

.timeline__body {
  font-size: var(--t--1);
  color: var(--muted);
  line-height: 1.5;
}

.timeline__count {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- 13. Notes / callouts ---------- */

.note {
  border-left: 3px solid var(--border-strong);
  padding: var(--s-3) 0 var(--s-3) var(--s-4);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.note--signal {
  border-left-color: var(--signal);
}
.note--accent {
  border-left-color: var(--accent);
}

.callout {
  background: var(--surface-2);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}

/* Non-claims list */
.nonclaims {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.nonclaims li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.nonclaims li::before {
  content: "×";
  font-family: var(--font-mono);
  color: var(--danger);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.checklist li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "→";
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1.5;
  text-align: center;
}

/* ---------- 14. Pricing ---------- */

.price-grid {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 46em) {
  .price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.price {
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.price--feature {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price__name {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.price__amount {
  font-size: var(--t-2);
  font-weight: 660;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-3);
}

.price__desc {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- 15. Forms ---------- */

.form {
  display: grid;
  gap: var(--s-5);
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field label {
  font-weight: 560;
  font-size: 0.9375rem;
}

.field__hint {
  font-size: var(--t--1);
  color: var(--muted);
  line-height: 1.5;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-color: var(--danger);
}

.field__error {
  font-size: var(--t--1);
  color: var(--danger);
}

.req {
  color: var(--danger);
  font-weight: 600;
}

/* Consent block — deliberately prominent and never pre-ticked */
.consent {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border: var(--border-w) solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.consent__legend {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

.check {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.14rem 0 0 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}

.check span {
  color: var(--ink-2);
}

.check .check__note {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--t--1);
  color: var(--muted);
}

/* Honeypot — hidden from humans, visible to naive bots */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  border-radius: var(--radius);
  padding: var(--s-4);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.form-status--ok {
  background: var(--ok-soft);
  border: var(--border-w) solid color-mix(in srgb, var(--ok) 34%, transparent);
  color: var(--ink);
}

.form-status--err {
  background: var(--danger-soft);
  border: var(--border-w) solid color-mix(in srgb, var(--danger) 34%, transparent);
  color: var(--ink);
}

.htmx-request .btn--primary {
  opacity: 0.65;
  pointer-events: none;
}

/* ---------- 16. Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: var(--border-w) solid var(--border);
  vertical-align: top;
}

thead th {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  font-weight: 550;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}

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

td .mono {
  color: var(--ink-2);
}

/* ---------- 17. Footer ---------- */

.site-footer {
  border-top: var(--border-w) solid var(--border);
  background: var(--bg-sunken);
  padding-block: var(--s-7) var(--s-6);
  margin-top: var(--s-8);
}

.footer-grid {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 52em) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--s-7);
  }
}

.footer-col h4,
.footer-col__title {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 550;
  margin-bottom: var(--s-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-block {
  font-size: var(--t--1);
  line-height: 1.65;
  color: var(--muted);
}

.legal-block dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-1) var(--s-4);
  margin-top: var(--s-3);
}

.legal-block dt {
  font-family: var(--font-mono);
  color: var(--muted);
}

.legal-block dd {
  margin: 0;
  color: var(--ink-2);
}

.footer-base {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: var(--border-w) solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  align-items: center;
  font-size: var(--t--1);
  color: var(--muted);
}

/* ---------- 18. Utilities ---------- */

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

.divider {
  border: 0;
  border-top: var(--border-w) solid var(--border);
  margin-block: var(--s-6);
}

.text-center {
  text-align: center;
}

/* Spacing utilities — used instead of inline `style` attributes so that the
   Content-Security-Policy can forbid inline styles outright. */
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

@media print {
  .site-header,
  .site-footer,
  .theme-toggle,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
