/* Mailhouse website
   Postal palette: navy franking ink, cool paper, airmail sky, postmark red. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-wdth-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/fonts/literata-latin-opsz-wght.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/fonts/literata-latin-opsz-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #17213d;
  --ink-2: #2a3657;
  --slate: #5a6680;
  --paper: #f4f6f9;
  --card: #ffffff;
  --sky: #dce6f5;
  --sky-2: #c4d4ec;
  --red: #c8231b;
  --red-ink: #a51c15;
  --rule: #d5dbe5;
  --good: #17703a;
  --waiting: #8a5a00;
  --off: #55606e;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--slate);
  --surface: var(--card);
  --accent: var(--red);
  --link: #1f4fae;
  --code-bg: #e8edf5;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale: 1.25 (major third) from 18px body */
  --t-0: 0.8rem;
  --t-1: 1rem;
  --t-2: 1.125rem;
  --t-3: 1.4rem;
  --t-4: 1.75rem;
  --t-5: clamp(1.9rem, 1.2rem + 2.2vw, 2.6rem);
  --t-6: clamp(2.3rem, 1.2rem + 3.6vw, 3.9rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --hole: var(--bg);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1730;
    --fg: #e6ebf4;
    --muted: #a3aec4;
    --surface: #17213d;
    --sky: #1d2a4c;
    --sky-2: #2a3a63;
    --rule: #2c3858;
    --accent: #ef5a4f;
    --link: #8fb3f5;
    --code-bg: #1d2a4c;
    --hole: var(--bg);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1730;
  --fg: #e6ebf4;
  --muted: #a3aec4;
  --surface: #17213d;
  --sky: #1d2a4c;
  --sky-2: #2a3a63;
  --rule: #2c3858;
  --accent: #ef5a4f;
  --link: #8fb3f5;
  --code-bg: #1d2a4c;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

code, kbd, pre { font-family: var(--mono); font-size: 0.86em; }
code {
  white-space: nowrap;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10;
  font-family: var(--display);
}
.skip:focus { top: 1rem; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 2rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--fg); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-stretch: 118%;
  font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--display); font-size: 0.95rem; font-weight: 500;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
@media (max-width: 960px) and (min-width: 761px) {
  .nav { gap: 1.05rem; }
  .nav .btn { padding: 0.6rem 0.9rem; }
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule); color: var(--fg);
  font-family: var(--display); font-size: 0.95rem; padding: 0.4rem 0.8rem; border-radius: 4px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 650; font-size: 1rem;
  padding: 0.8rem 1.3rem; border-radius: 4px;
  text-decoration: none; border: 2px solid transparent;
  line-height: 1.1;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--red); }
.btn-ghost { border-color: currentColor; color: var(--fg); }
.btn-ghost:hover { color: var(--accent); }
.nav .btn { padding: 0.5rem 0.9rem; font-size: 0.92rem; color: #fff; }
.nav .btn:hover { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #e6ebf4; color: var(--ink); }
  :root:not([data-theme="light"]) .btn-primary:hover { background: var(--accent); color: #fff; }
  :root:not([data-theme="light"]) .nav .btn { color: var(--ink); }
  :root:not([data-theme="light"]) .nav .btn:hover { color: #fff; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--t-6);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.lede { font-size: 1.25rem; line-height: 1.6; max-width: 34em; color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1rem; }
.hero-meta { font-family: var(--display); font-size: 0.92rem; color: var(--muted); margin: 0; }

/* The sorting rack */
.hero-art { margin: 0; }
.rack {
  background: var(--ink);
  border-radius: 4px;
  padding: 0.9rem;
  box-shadow: 0 28px 50px -30px rgba(23, 33, 61, 0.6);
  color: var(--ink);
  --good: #17703a; --waiting: #8a5a00; --off: #55606e;
}
.rack-plate {
  width: max-content; margin: 0 auto 0.8rem;
  background: #e9edf3; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-stretch: 115%; font-size: 0.85rem;
  padding: 0.25rem 0.9rem; border-radius: 2px;
  box-shadow: inset 0 -2px 0 #c3ccd9;
}
.rack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.slot {
  position: relative; overflow: hidden;
  background: #fbfcfe;
  min-height: 5.6rem;
  padding: 0.7rem 0.75rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.4rem;
  box-shadow: inset 0 10px 14px -10px rgba(23, 33, 61, 0.45), inset 0 0 0 1px #cfd7e4;
  font-family: var(--display);
}
.slot b { font-weight: 650; font-size: 0.86rem; font-stretch: 92%; line-height: 1.2; overflow-wrap: break-word; }
.st { font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.st::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }
.st-good { color: var(--good); }
.st-wait { color: var(--waiting); }
.st-off { color: var(--off); }
.slot-new { box-shadow: inset 0 10px 14px -10px rgba(23, 33, 61, 0.45), inset 0 0 0 2px var(--waiting); }
.slot-new.is-connected { box-shadow: inset 0 10px 14px -10px rgba(23, 33, 61, 0.45), inset 0 0 0 1px #cfd7e4; }
.slot-mark {
  position: absolute; right: -0.55rem; top: calc(50% - 1.9rem);
  width: 3.8rem; color: var(--red); opacity: 0;
  transform: rotate(-12deg); mix-blend-mode: multiply; pointer-events: none;
}
.slot-new.is-connected .slot-mark { opacity: 0.9; }
.slot-new.thunk .slot-mark { animation: thunk 0.45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes thunk {
  0% { opacity: 0; transform: scale(1.25) rotate(-20deg); }
  60% { opacity: 0.9; }
  100% { opacity: 0.9; transform: scale(1) rotate(-12deg); }
}
.env-caption { font-family: var(--display); font-size: 0.85rem; color: var(--muted); margin: 1.1rem 0 0; text-align: right; }

.status-note {
  font-family: var(--display); font-size: 0.95rem; color: var(--muted);
  margin: 0; max-width: 34rem; line-height: 1.5;
  padding-left: 1.2rem; position: relative;
}
.status-dot {
  position: absolute; left: 0; top: 0.42em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--waiting);
}
.status-dot.is-live { background: var(--good); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rack { box-shadow: 0 0 0 1px var(--rule), 0 28px 50px -30px rgba(0, 0, 0, 0.7); }
  :root:not([data-theme="light"]) .status-dot { background: #f2c56b; }
  :root:not([data-theme="light"]) .status-dot.is-live { background: #6fd394; }
}
:root[data-theme="dark"] .status-dot.is-live { background: #6fd394; }

/* Release details: version, date, download */
.release-facts { margin: 0 0 1.4rem; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1.2rem; font-size: 1rem; }
.release-facts dt { font-family: var(--display); font-weight: 600; color: var(--muted); }
.release-facts dd { margin: 0; overflow-wrap: anywhere; }
.release-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0; }
.brand-sub { font-weight: 500; font-stretch: 100%; color: var(--muted); }

/* ---------- Perforations (the one structural motif) ---------- */

.perf { position: relative; }
.perf::before {
  content: ""; position: absolute; inset: -4px; pointer-events: none;
  background:
    radial-gradient(circle, var(--hole) 3.1px, transparent 3.6px) 2px 0 / 11px 8px repeat-x,
    radial-gradient(circle, var(--hole) 3.1px, transparent 3.6px) 2px 100% / 11px 8px repeat-x,
    radial-gradient(circle, var(--hole) 3.1px, transparent 3.6px) 0 2px / 8px 11px repeat-y,
    radial-gradient(circle, var(--hole) 3.1px, transparent 3.6px) 100% 2px / 8px 11px repeat-y;
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sky { background: var(--sky); --hole: var(--sky); }
.section-ink { background: var(--ink); color: #e6ebf4; --hole: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-ink { background: #0a1124; --hole: #0a1124; }
}
.section-ink a { color: #b9cdf6; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--t-5); font-stretch: 108%; font-weight: 750; margin-bottom: 1rem; }
.section-head p { font-size: 1.2rem; color: var(--muted); margin: 0; }
.section-ink .section-head p { color: #b5c0d6; }

/* The seam */
.seam {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 3rem;
}
.seam-half { padding: 0 clamp(1rem, 4vw, 3rem) 0 0; }
.seam-half + .tear + .seam-half { padding: 0 0 0 clamp(1rem, 4vw, 3rem); }
.seam-half h3 { font-size: var(--t-3); font-stretch: 100%; margin-bottom: 0.6rem; }
.seam-half p { color: var(--muted); margin: 0; }
.tear {
  width: 8px;
  background: radial-gradient(circle, var(--slate) 2px, transparent 2.5px) 0 0 / 8px 11px repeat-y;
  opacity: 0.6;
}
.seam-verdict {
  font-family: var(--display); font-size: var(--t-4); font-stretch: 104%; font-weight: 700;
  line-height: 1.2; max-width: 30em; margin: 0; letter-spacing: -0.01em;
}
.seam-verdict + p { max-width: 40em; margin-top: 1rem; color: var(--muted); }

/* Feature lists */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.features li { padding-left: 1.4rem; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  border: 2px solid var(--accent);
}
.features strong {
  display: block; font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  margin-bottom: 0.15rem;
}
.features span { color: var(--muted); }
.section-ink .features span { color: #b5c0d6; }

/* Ownership lists */
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; color: var(--muted); }
.plain li { padding-left: 1rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.4rem; height: 2px; background: currentColor; }

/* The enrolment token, drawn as a single-use stamp */
.token {
  background: var(--sky); --hole: var(--bg);
  margin: 4px 4px 2.6rem; padding: 1.4rem 1.5rem 1.3rem;
  display: grid; gap: 0.35rem; max-width: 24rem;
  outline: 1px solid var(--sky-2); outline-offset: -8px;
  transform: rotate(-1.2deg);
}
.token-label { font-family: var(--display); font-weight: 700; font-size: 0.9rem; }
.token-value { background: none; padding: 0; font-size: 1.15rem; color: var(--fg); }
.token-note { font-family: var(--display); font-size: 0.85rem; color: var(--muted); }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; max-width: 52rem; }
.roadmap li {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.4rem;
  padding: 1.25rem 0 1.25rem; position: relative;
}
.roadmap li + li { border-top: 1px solid var(--sky-2); }
.roadmap h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.roadmap p { margin: 0; color: var(--muted); font-size: 1rem; }
.rm-state {
  font-family: var(--display); font-weight: 650; font-size: 0.85rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: start; padding-top: 0.15rem;
}
.rm-state::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.is-done .rm-state { color: var(--good); }
.is-done .rm-state::before { background: currentColor; }
.is-next .rm-state { color: var(--link); }
.is-next h3 { color: var(--fg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .is-done .rm-state { color: #6fd08c; }
}

/* What works today */
.sub-h { font-size: var(--t-4); font-stretch: 106%; margin-bottom: 1.6rem; }
.stack { list-style: none; margin: 0; padding: 0; }
.stack li { padding: 0.85rem 0; border-top: 1px solid var(--rule); display: grid; gap: 0.1rem; }
.stack li:last-child { border-bottom: 1px solid var(--rule); }
.stack b { font-family: var(--display); font-weight: 700; }
.stack span { color: var(--muted); font-size: 1rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 60rem; }
.price-col { padding: 0 clamp(1.5rem, 4vw, 3rem) 0 0; }
.price-col + .price-col { padding: 0 0 0 clamp(1.5rem, 4vw, 3rem); border-left: 1px solid var(--sky-2); }
.price-col h3 { font-size: var(--t-3); margin-bottom: 0.8rem; }
.price-tag {
  font-family: var(--display); font-weight: 800; font-stretch: 120%;
  font-size: var(--t-5); line-height: 1; margin: 0 0 0.5rem; letter-spacing: -0.01em;
}
.price-note { font-family: var(--display); font-size: 0.95rem; color: var(--muted); margin: 0 0 1.4rem; }
.price-link { margin: 1.4rem 0 0; font-size: 1rem; color: var(--muted); }
.price-line { margin-top: 0.6rem; padding-left: 1.2rem; }

/* Contact form */
#contact .section-head { margin-bottom: 0; }
.contact-privacy { font-size: 1rem !important; margin-top: 1.2rem !important; }
.contact-form { display: grid; gap: 1.15rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--display); font-weight: 650; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--sky-2); border-radius: 4px;
  padding: 0.7rem 0.8rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field select {
  appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field-error { font-family: var(--display); font-size: 0.88rem; color: var(--red-ink); margin: 0; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.form-actions .btn { border: 0; cursor: pointer; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-family: var(--display); font-size: 0.95rem; margin: 0; color: var(--muted); }
.form-status.is-bad { color: var(--red-ink); }
.form-flash {
  display: none; font-family: var(--display); font-weight: 600;
  padding: 0.9rem 1rem; border-radius: 4px; margin: 0 0 1.4rem; max-width: 34rem;
}
.form-flash:target { display: block; }
.form-flash-ok { background: var(--surface); border-left: 4px solid var(--good); }
.form-flash-bad { background: var(--surface); border-left: 4px solid var(--accent); }
.form-done { font-family: var(--display); max-width: 34rem; }
.form-done h3 { font-size: var(--t-3); margin-bottom: 0.5rem; }
.form-done p { font-family: var(--text); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field-error,
  :root:not([data-theme="light"]) .form-status.is-bad { color: #ff8a80; }
}

/* Privacy band */
.promises {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem clamp(2rem, 5vw, 4.5rem);
}
.promises h3 { font-size: var(--t-3); font-stretch: 104%; margin-bottom: 0.5rem; color: #fff; }
.promises p { color: #b5c0d6; margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 800; font-stretch: 120%;
  font-size: 2rem; line-height: 1; color: var(--accent);
}
.steps strong { font-family: var(--display); font-weight: 700; display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }
.steps p { margin: 0; color: var(--muted); }
.aside-note {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.2rem;
}
.aside-note h3 { font-size: var(--t-3); margin-bottom: 0.6rem; }
.aside-note p { color: var(--muted); }

/* Verification table */
.checks { width: 100%; border-collapse: collapse; font-size: 1rem; }
.checks th, .checks td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.checks th { font-family: var(--display); font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.checks td:last-child { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.checks td:last-child::before {
  content: ""; display: inline-block; width: 0.35rem; height: 0.7rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin: 0 0.7rem 0 0.15rem; vertical-align: 0.05em;
}
.aside-note + .aside-note { margin-top: 2.5rem; }
.failures td:last-child { font-family: var(--text); font-weight: 400; white-space: normal; color: var(--muted); }
.failures td:last-child::before { content: none; }
.failures td:first-child { font-family: var(--display); font-weight: 650; width: 34%; }
.bugs { margin-top: 2.5rem; max-width: 46rem; }
.bugs h3 { font-size: var(--t-3); margin-bottom: 0.7rem; }
.bugs p { color: var(--muted); }
.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 0 0 2.5rem; }
.stat-row div { font-family: var(--display); }
.stat-row b { display: block; font-size: var(--t-5); font-stretch: 115%; font-weight: 800; line-height: 1; }
.stat-row span { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 650; font-size: 1.15rem;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 0.7rem; height: 0.7rem; margin-top: -0.5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -0.15rem; }
.faq details > div { padding: 0 0 1.3rem; color: var(--muted); max-width: 42rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Closing call */
.closing { text-align: left; }
.closing h2 { font-size: var(--t-5); font-stretch: 110%; font-weight: 800; margin-bottom: 1rem; color: #fff; }
.closing p { color: #b5c0d6; max-width: 38em; }
.closing .btn-primary { background: #fff; color: var(--ink); }
.closing .btn-primary:hover { background: var(--red); color: #fff; }
.closing .btn-ghost { color: #fff; }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; font-family: var(--display); font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 36rem; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 0.9rem; justify-content: center; border-bottom: 0; }
  .seam { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .seam-half, .seam-half + .tear + .seam-half { padding: 0; }
  .tear {
    width: auto; height: 8px;
    background: radial-gradient(circle, var(--slate) 2px, transparent 2.5px) 0 0 / 11px 8px repeat-x;
  }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .roadmap li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .pricing { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .price-col, .price-col + .price-col { padding: 0; border-left: 0; }
  .price-col + .price-col { padding-top: 2.4rem; border-top: 1px solid var(--sky-2); }
  .failures td:first-child { width: auto; }
  .slot { min-height: 4.8rem; padding: 0.55rem 0.6rem; }
  .slot b { font-size: 0.78rem; }
  .st { font-size: 0.72rem; }
  .checks thead { display: none; }
  .checks, .checks tbody, .checks tr, .checks td { display: block; }
  .checks tr { border-bottom: 1px solid var(--rule); padding: 0.7rem 0; }
  .checks td { border: 0; padding: 0.1rem 0; }
}

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