/* Layout: single readable column with a spec sheet card on the home page; signage-style condensed headings, a thin ECG pulse line under the header as the one signature motif. */
:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #13202b;
  --muted: #55636f;
  --line: #d6dde2;
  --accent: #c8202a;
  --accent-soft: #fbe9ea;
  --ok: #1d7a4c;
  --ok-soft: #e3f3ea;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e151b; --surface: #15202a; --ink: #e6ecf0; --muted: #9aa8b3; --line: #273540;
    --accent: #ff5c62; --accent-soft: #3a1a1d; --ok: #5fd39a; --ok-soft: #12301f; --warn: #f2c25b; --warn-soft: #33280f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e151b; --surface: #15202a; --ink: #e6ecf0; --muted: #9aa8b3; --line: #273540;
  --accent: #ff5c62; --accent-soft: #3a1a1d; --ok: #5fd39a; --ok-soft: #12301f; --warn: #f2c25b; --warn-soft: #33280f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.wordmark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.wm-main { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: 0.04em; }
.wm-sub { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav a:hover { color: var(--accent); }
.pulse { display: block; width: 100%; height: 14px; color: var(--accent); opacity: 0.85; }

/* type */
h1, h2, h3 { text-wrap: balance; line-height: 1.15; margin: 0; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 52px); letter-spacing: 0.005em; max-width: 22ch; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 32px); letter-spacing: 0.01em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; max-width: 66ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); }
.note { color: var(--muted); font-size: 15px; }

main { display: flex; flex-direction: column; gap: 56px; padding-block: 48px 40px; }
main > section { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero { gap: 20px; }
.hero-tight h1 { max-width: 26ch; font-size: clamp(30px, 4.4vw, 44px); }

/* buttons */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 6px; background: var(--accent); color: #fff; font: 600 16px/1 var(--font-body); text-decoration: none; border: 2px solid var(--accent); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; color: #fff; }
.nav .btn-small { color: #fff; }

/* spec sheet */
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.spec-title { font-size: 22px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 0; }
.spec-grid > div { border-top: 3px solid var(--accent); padding-top: 12px; min-width: 0; }
.spec-grid dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.spec-grid dd { margin: 6px 0 0; font-family: var(--font-mono); font-size: 18px; line-height: 1.35; }
.spec-grid dd span { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: 4px; }

.cols { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.cols > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cols h2 { font-size: 24px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.steps p { font-size: 15px; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-open { background: var(--ok-soft); color: var(--ok); }
.pill-soon { background: var(--warn-soft); color: var(--warn); }

.ticks { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 66ch; }

/* FAQ */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 20px; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa-body { padding: 0 0 18px; color: var(--muted); }

/* form */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
.form-status { color: var(--muted); font-size: 15px; min-height: 1.5em; }

/* article */
.article { display: flex; flex-direction: column; gap: 18px; max-width: 70ch; }
.article h2 { margin-top: 12px; }
.article ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.byline { color: var(--muted); font-size: 15px; }

.sources { font-size: 14px; color: var(--muted); }
.sources h2 { font-size: 18px; font-family: var(--font-body); font-weight: 700; }
.sources ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.updated { color: var(--muted); font-size: 13px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-block: 24px; }
.foot-grid strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
