/* Companion Voice for Home Assistant (ha.ci.computer), on the Companion site system (October 2026):
   one dark colourway (the tokens' dark grounds, panels and ink), the logo's three ring colours,
   Manrope for every role, flat 3px controls and 5px hairline cards, a 12-column grid with
   one-column margins. No glass, blur, gradients or shadows. Each --site-* alias reads the canon
   token (CI-Common PR #413, tokens 1.3.0) first and falls back to the literal value. The canon
   tokens stylesheet (brand/tokens.css, @companionintelligence/tokens 1.2.0) loads first and the page
   is <html class="dark">, so --ci-bg, --ci-card, --ci-text and --ci-text-muted are the real dark values. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --site-ground: var(--ci-bg, #041620);
  --site-panel: var(--ci-card, #0c323c);
  --site-ink: var(--ci-text, #e8f2f4);
  --site-muted: var(--ci-text-muted, #a3babf);

  /* The logo's three rings. */
  --site-mark-deep: var(--mark-deep, #066c80);
  --site-mark-mid: var(--mark-mid, #1fa89e);
  --site-mark-light: var(--mark-light, #3ae7ba);

  /* The one highlighted call to action per page. */
  --site-cta: var(--cta, #069b5b);
  --site-cta-hover: var(--cta-hover, #05824c);

  --site-button: var(--button-primary, var(--site-mark-deep));
  --site-button-hover: var(--button-primary-hover, color-mix(in srgb, var(--site-mark-deep) 84%, #ffffff));

  --site-link: var(--link, var(--site-mark-light));
  --site-link-hover: var(--link-hover, #ffffff);
  --site-label-ink: var(--label-ink, var(--site-mark-light));

  --site-hairline: var(--hairline, color-mix(in srgb, var(--site-ink) 14%, transparent));
  --site-hairline-strong: color-mix(in srgb, var(--site-ink) 30%, transparent);
  --site-wash: color-mix(in srgb, var(--site-ink) 5%, transparent);

  --site-radius-control: var(--radius-control, 3px);
  --site-radius-card: var(--radius-card, 5px);
  --site-radius-media: var(--radius-media, 3px);

  /* 12 columns, 24px gutters; columns 1 and 12 are the page margins; 16px side gutter under 900px. */
  --site-gutter: var(--grid-gutter, 24px);
  --site-margin: calc((100vw - 11 * var(--site-gutter)) / 12 + var(--site-gutter));

  /* Names the rules below already use, mapped onto the aliases. */
  --background: var(--site-ground);
  --surface: var(--site-panel);
  --surface-2: #0a2e38;
  --foreground: var(--site-ink);
  --muted-foreground: var(--site-muted);
  --border: var(--site-hairline);
  --line-strong: var(--site-hairline-strong);
  --primary: var(--site-link);
  --primary-hover: var(--site-link-hover);
  --primary-foreground: #041620;
  --accent: var(--site-mark-mid);
  --ring: var(--site-link);
  --selected-bg: var(--site-wash);
  --code-bg: #020d13;
  --code-fg: #d9ece5;
  --code-dim: #8aa3a8;
  --code-key: var(--site-mark-light);
  --success: #34d399;
  --success-bg: #0b3326;
  --warning: #fbbf24;
  --warning-bg: #3a2a07;
  --danger: #ef7070;
  --danger-bg: #3d1414;

  --hero-ink: var(--site-ink);
  --hero-muted: var(--site-muted);
  --hero-accent: var(--site-label-ink);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1176rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.7rem, 1.1rem + 1.9vw, 2.1177rem);
  --step-4: clamp(2.1177rem, 1.2rem + 3.6vw, 3.5294rem);
  --radius: 5px;
  --gutter: var(--site-margin);
}

@media (max-width: 900px) {
  :root { --site-margin: 16px; }
}

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

html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: 0;
  word-spacing: 0;
}

img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--site-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--site-link-hover); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: var(--site-radius-control); }
main:focus { outline: none; }

code, pre, .code { font-family: var(--font-mono); }
code { font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 0.05em 0.35em; border-radius: var(--site-radius-media); }

h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.12; }
h2 { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
p { margin: 0; }

.wrap { width: 100%; margin-inline: 0; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--site-label-ink);
  margin-bottom: 12px;
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--site-button); color: #ffffff; padding: 8px 12px; border-radius: var(--site-radius-control); z-index: 20; }
.skip:focus { left: 12px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--site-ground);
  border-bottom: 1px solid var(--site-hairline);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-block: 10px; }
.header-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.parent { display: inline-flex; align-items: center; min-height: 32px; color: var(--site-muted); text-decoration: none; font-weight: 500; font-size: var(--step--1); letter-spacing: 0; white-space: nowrap; }
.parent:hover { text-decoration: none; }
.crumb { color: var(--site-hairline-strong); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.parent img { display: block; height: 44px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--site-ink); text-decoration: none; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.brand img { border-radius: var(--site-radius-control); }
.header-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.header-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--site-muted); text-decoration: none; font-weight: 500; font-size: var(--step--1); white-space: nowrap; }
.header-nav a:hover { color: var(--site-ink); text-decoration: none; }
.header-nav a.nav-cta { padding: 0 16px; min-height: 40px; border-radius: var(--site-radius-control); background: var(--site-button); color: #ffffff; font-weight: 500; transition: background-color 140ms ease; }
.header-nav a.nav-cta:hover { background: var(--site-button-hover); color: #ffffff; }
/* The nav shrinks with the screen. Everything it drops is still on the page,
   and the Buy and Download band sits right under the hero. The Buy Companion
   Core link is never one of the things it drops: on a phone the nav moves to a
   second row of the sticky header, so a way to buy is visible without scrolling. */
@media (max-width: 1040px) { .header-nav .nav-wide { display: none; } }
@media (max-width: 800px) { .brand span { display: none; } }
@media (max-width: 480px) { .parent img { height: 36px; } }
@media (max-width: 640px) {
  html { scroll-padding-top: 92px; }
  .header-row { gap: 2px 12px; padding-block: 6px; }
  .header-nav { flex: 1 1 100%; justify-content: space-between; gap: 12px; }
  .header-nav .nav-mid { display: none; }
  .header-nav a.nav-cta { margin-left: auto; }
}
@media (max-width: 350px) { .header-nav .nav-tiny { display: none; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: var(--step-0);
  padding: 0.72em 1.3em; border-radius: var(--site-radius-control);
  border: 1px solid var(--site-ink); background: transparent; color: var(--site-ink);
  text-decoration: none; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.button:hover { background: var(--site-wash); color: var(--site-ink); }
.button.primary { background: var(--site-button); border-color: var(--site-button); color: #ffffff; }
.button.primary:hover { background: var(--site-button-hover); border-color: var(--site-button-hover); color: #ffffff; }
/* The one highlighted call to action on a page: accent green, white text at weight 600. */
.button.cta { background: var(--site-cta); border-color: var(--site-cta); color: #ffffff; font-weight: 600; }
.button.cta:hover { background: var(--site-cta-hover); border-color: var(--site-cta-hover); color: #ffffff; }
.button.ghost { background: transparent; }
.button.small { font-size: var(--step--1); padding: 0.35em 0.95em; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button.on-dark { background: transparent; color: var(--code-fg); border-color: color-mix(in srgb, var(--code-fg) 40%, transparent); }
.button.on-dark:hover { border-color: var(--code-fg); background: var(--site-wash); }
.button.ghost-light { background: transparent; color: var(--site-ink); border-color: var(--site-ink); }
.button.ghost-light:hover { background: var(--site-wash); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--site-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; cursor: pointer; }
.linklike:hover { color: var(--site-link-hover); }

.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: var(--site-radius-control);
  background: var(--success-bg); color: var(--success); vertical-align: middle;
}
.badge.muted { background: var(--surface-2); color: var(--muted-foreground); border: 1px solid var(--border); }
.optional { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); font-weight: 500; margin-left: 6px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  color: var(--site-ink);
  background: var(--site-ground);
  border-bottom: 1px solid var(--site-hairline);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 8vw, 104px) clamp(48px, 7vw, 96px);
}
.hero h1 { font-weight: 500; font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.025em; }
.hero h1 span { color: var(--site-label-ink); }
.lede { margin-top: 22px; font-size: 1.1176rem; font-weight: 400; line-height: 1.5; color: var(--site-muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 40rem; }
.hero-facts li { display: grid; gap: 2px; align-content: start; padding-top: 12px; border-top: 1px solid var(--site-hairline); }
.hero-facts strong { font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.hero-facts span { font-size: 0.8125rem; color: var(--hero-muted); }

.hero-art { margin: 0; position: relative; display: grid; justify-items: center; gap: 14px; }
.halo { display: none; }
.puck { position: relative; width: min(100%, 400px); height: auto; }
.puck .led { fill: #0e3a45; stroke: #1d5360; stroke-width: 2; transition: fill 160ms ease; }
.puck .led.on { stroke: none; }
.hero-art figcaption { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--hero-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--site-label-ink); }

/* ── Get Companion band ──────────────────────────────────────────────────── */
.getit { background: var(--surface); border-bottom: 1px solid var(--border); }
.getit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-block: 26px; }
.getit-copy { flex: 1 1 26rem; min-width: 0; }
.getit h2 { font-size: var(--step-2); }
.getit p { margin-top: 6px; color: var(--muted-foreground); max-width: 54ch; }
.getit-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }

/* ── How it works ────────────────────────────────────────────────────────── */
.how { padding-block: clamp(56px, 8vw, 96px); }
.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.flow li { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.flow-no { font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--site-label-ink); }
.flow p { color: var(--muted-foreground); }
.aside { margin-top: 22px; color: var(--muted-foreground); max-width: 62ch; }

/* ── Setup ───────────────────────────────────────────────────────────────── */
.setup { padding-block: clamp(56px, 8vw, 96px); background: var(--ci-bg-deep, #021018); border-block: 1px solid var(--border); }
.setup-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-intro { margin-top: 12px; color: var(--muted-foreground); max-width: 60ch; }
.progress { min-width: min(100%, 280px); display: grid; gap: 8px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step--1); color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.progress-bar { height: 6px; border-radius: var(--site-radius-control); background: var(--border); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--site-mark-deep); border-radius: inherit; transition: width 240ms ease; }

.path-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.path, .preset {
  position: relative; display: grid; gap: 6px; align-content: start;
  padding: 20px 20px 20px 52px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.path:hover, .preset:hover { border-color: var(--line-strong); }
.path input, .preset input { position: absolute; left: 20px; top: 23px; width: 18px; height: 18px; accent-color: var(--site-mark-deep); }
.path:has(input:checked), .preset:has(input:checked) { border-color: var(--site-link); background: var(--selected-bg); }
.path-title, .preset-title { font-weight: 700; font-size: var(--step-1); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.preset-title { font-size: var(--step-0); }
.path-text, .preset-text { color: var(--muted-foreground); font-size: var(--step--1); }
.path .badge { justify-self: start; margin-top: 4px; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  counter-increment: step;
  position: relative; display: grid; gap: 14px;
  padding: 24px 24px 24px 84px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 300;
  color: var(--site-label-ink); background: var(--selected-bg); border: 1px solid var(--line-strong);
}
.step.is-done::before { content: ""; background: var(--site-mark-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; border-color: var(--site-mark-deep); }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; min-height: 40px; align-content: center; }
.step > p { max-width: 68ch; }
.done { display: inline-flex; gap: 8px; align-items: center; min-height: 28px; font-size: var(--step--1); color: var(--muted-foreground); cursor: pointer; user-select: none; }
.done input { width: 17px; height: 17px; accent-color: var(--site-mark-deep); }

.preset-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid.inner { margin-top: 14px; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label { font-weight: 600; }
input[type="text"], input[type="url"], input[type="password"], textarea, select {
  width: 100%; font: inherit; font-size: var(--step-0); color: var(--foreground);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--site-radius-control); padding: 0.62em 0.8em;
}
input[type="text"], input[type="url"], input[type="password"] { font-family: var(--font-mono); font-size: 0.92rem; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3babf' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.hint { color: var(--muted-foreground); font-size: var(--step--1); }
.error { color: var(--danger); font-size: var(--step--1); font-weight: 600; }
.error:empty { display: none; }

.advanced { border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.advanced summary, .peek summary { cursor: pointer; font-weight: 600; color: var(--site-link); width: fit-content; }
.advanced summary:hover, .peek summary:hover { color: var(--site-link-hover); }

.switch { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; width: fit-content; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: var(--site-radius-control); background: var(--line-strong); position: relative; cursor: pointer; transition: background-color 160ms ease; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--site-radius-control); background: #ffffff; transition: transform 160ms ease; }
.switch input:checked { background: var(--site-mark-deep); }
.switch input:checked::after { transform: translateX(18px); }

.download-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.download {
  display: grid; gap: 2px; text-align: left; font: inherit; cursor: pointer;
  padding: 16px 18px 16px 56px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--foreground); position: relative;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.download::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  background: var(--site-link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0l-4.5-4.5M12 15l4.5-4.5M5 19h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0l-4.5-4.5M12 15l4.5-4.5M5 19h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.download:hover { border-color: var(--site-link); background: var(--selected-bg); }
.dl-name { font-family: var(--font-mono); font-weight: 700; }
.dl-text { font-size: var(--step--1); color: var(--muted-foreground); }

.file { border-radius: var(--site-radius-card); background: var(--code-bg); color: var(--code-fg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--code-bg) 70%, var(--line-strong)); }
.file-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-bottom: 1px solid color-mix(in srgb, var(--code-fg) 14%, transparent); }
.file-name { font-family: var(--font-mono); font-size: var(--step--1); color: var(--code-dim); }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.code { margin: 0; padding: 16px; font-size: 0.84rem; line-height: 1.65; overflow-x: auto; white-space: pre; tab-size: 2; max-height: 30rem; }
.code .c { color: var(--code-dim); }
.code .k { color: var(--code-key); }
.peek .file { margin-top: 12px; }
.check-browser { border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.check-browser > .hint { margin-top: 10px; max-width: 68ch; }
.check-browser .check-grid { margin-top: 16px; }

.values { display: flex; gap: 12px; flex-wrap: wrap; }
.value {
  display: grid; gap: 0; text-align: left; font: inherit; cursor: copy;
  padding: 12px 18px; border-radius: var(--site-radius-card); border: 1px dashed var(--line-strong); background: var(--surface-2); color: var(--foreground); min-width: 9rem;
}
.value:hover { border-color: var(--site-link); }
.value-label { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--site-label-ink); }
.value-text { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }

.table-scroll { overflow-x: auto; }
.slots { border-collapse: collapse; min-width: 460px; width: 100%; max-width: 760px; }
.slots th, .slots td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.slots th { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--site-label-ink); }
.slots td:last-child { font-family: var(--font-mono); font-size: 0.9rem; }

.check-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.check-form { display: grid; gap: 16px; }
.check-form .button { justify-self: start; }
.notice { color: var(--muted-foreground); font-size: var(--step--1); }
.notice.warn { color: var(--warning); font-weight: 600; }
.check-results { display: grid; gap: 14px; }
.results { list-style: none; margin: 0; padding: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--site-radius-card); }
.result { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); align-items: baseline; }
.result:last-child { border-bottom: 0; }
.result-label { font-weight: 600; }
.result-detail { grid-column: 2; color: var(--muted-foreground); font-size: var(--step--1); overflow-wrap: anywhere; }
.pill { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; padding: 2px 8px; border-radius: var(--site-radius-control); background: var(--site-wash); color: var(--muted-foreground); justify-self: start; }
.result.ok .pill { background: var(--success-bg); color: var(--success); }
.result.warn .pill { background: var(--warning-bg); color: var(--warning); }
.result.fail .pill { background: var(--danger-bg); color: var(--danger); }
.finale { font-weight: 600; }

/* ── Help ────────────────────────────────────────────────────────────────── */
.help { padding-block: clamp(56px, 8vw, 96px); }
.faq { display: grid; margin-top: 24px; max-width: 820px; }
.faq details { border-top: 1px solid var(--border); padding-block: 16px; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--muted-foreground); max-width: 70ch; }

/* ── Footer and toast ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--site-hairline); padding-block: 20px 28px; color: var(--site-muted); font-size: 0.8125rem; line-height: 1.4; }
.footer-row { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; }
.footer-lead { max-width: 46ch; }
.footer-links { display: flex; gap: 0 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; max-width: 34rem; }
.footer-links a { display: inline-block; padding-block: 3px; }
.site-footer a { color: var(--site-muted); text-decoration: none; }
.site-footer a:hover { color: var(--site-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.footer-fine { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--site-hairline); }
.footer-fine p { max-width: 80ch; }
.noscript { margin: 0; padding: 12px var(--gutter); background: var(--warning-bg); color: var(--warning); font-weight: 600; text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--site-panel); color: var(--site-ink); border: 1px solid var(--site-hairline-strong); padding: 10px 18px; border-radius: var(--site-radius-control);
  font-weight: 500; font-size: var(--step--1); z-index: 30;
}

/* ── Narrow screens ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .puck { width: min(70%, 300px); }
  .flow, .preset-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .path-picker, .form-grid, .download-row, .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .getit-actions, .getit-actions .button { width: 100%; }
  .step { padding: 20px 18px 20px 18px; padding-top: 72px; }
  .step::before { left: 18px; top: 18px; }
  .step-head { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
