/* KFDPro product site — "Cut-Foam Case".
   The page is an open hard equipment case: pale pick-and-pluck foam,
   moulded navy shell in the app's colours, printed label tape. Single stylesheet. */

/* Self-hosted fonts (SIL Open Font License; see assets/fonts/LICENSE.md).
   The site makes no third-party requests. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/red-hat-mono-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* foam (day palette: pale cool-grey insert) */
  --foam: #cdd1d4;
  --foam-deep: #b9bec2;
  --foam-well: #e0e3e5;
  --foam-rim: #8f989f;
  /* moulded shell: the app's header navy */
  --shell: #001526;
  --on-shell: #ffffff;
  --on-shell-2: #d3dee6;
  --on-shell-muted: #a7bac8;
  /* the app's accent blue */
  --accent: #36aee4;
  --accent-2: #5ec8e0;
  --accent-ink: #001526;
  --link: #07598a;
  /* label tape */
  --tape: #ffffff;
  --tape-ink: #001526;
  --tape-caution: #ffd21f;
  /* text on foam */
  --text: #0b1a26;
  --body: #22323e;
  --muted: #3d4c57;
  --fault: #b3261e;

  --tex-foam: url("../img/foam.png");
  --tex-shell: url("../img/shell.png");
  --tex-cubes: url("../img/foam-cubes.png");
  --cube: 26px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --font-id: "Red Hat Mono", ui-monospace, Menlo, monospace;

  --radius-cut: 14px;
  --radius-ctl: 8px;
  --radius-tape: 3px;

  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;

  --container: 1200px;
  --nav-h: 64px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #8795a0 var(--foam-deep);
}

body {
  margin: 0;
  background: var(--tex-foam) var(--foam);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--link);
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.375rem; font-weight: 700; font-stretch: 100%; }

p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--shell); }

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

.mono { font-family: var(--font-id); font-size: 0.94em; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--tape); color: var(--tape-ink);
  font-weight: 700; border-radius: var(--radius-tape); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--tape-ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.icon {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.icon-sm { width: 18px; height: 18px; }
.logo { width: 26px; height: 26px; fill: currentColor; stroke: none; }

/* ---------- Material primitives ---------- */

/* pick-and-pluck foam: the cube cut grid over the foam texture */
.pluck { background: var(--tex-cubes) var(--foam); }
/* bands that carry running text: the cube layer sits back so copy reads cleanly */
.pluck-quiet { background: linear-gradient(rgba(205, 209, 212, 0.72), rgba(205, 209, 212, 0.72)), var(--tex-cubes) var(--foam); }

/* a cutout well: the hole left after cubes are plucked */
.well {
  position: relative;
  background: var(--foam-well);
  border-radius: var(--radius-cut);
  box-shadow:
    inset 0 12px 14px -8px rgba(0, 21, 38, 0.3),
    inset 0 3px 2px -1px rgba(0, 21, 38, 0.28),
    inset 0 -2px 0 rgba(255, 255, 255, 0.95),
    0 -1px 0 rgba(0, 21, 38, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75);
}

/* moulded shell */
.shell {
  background: var(--tex-shell) var(--shell);
  color: var(--on-shell);
}

/* printed label tape */
.tape {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 3px;
  background: var(--tape);
  color: var(--tape-ink);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-tape);
  box-shadow: 0 1px 2px rgba(0, 21, 38, 0.3), 0 0 0 1px rgba(0, 21, 38, 0.06);
  white-space: nowrap;
}
.tape-caution { background: var(--tape-caution); }
.tape-dark { background: var(--shell); color: var(--on-shell); box-shadow: none; }
.shell .tape-dark { background: var(--accent); color: var(--accent-ink); }
.tape s { text-decoration-thickness: 2px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(0, 21, 38, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--on-shell);
  box-shadow: 0 2px 10px rgba(0, 21, 38, 0.25);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-shell); text-decoration: none; }
.brand:hover { color: var(--on-shell); }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--on-shell); --bars: var(--accent-2);
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 1.3rem; letter-spacing: 0; }
.brand-name span { color: inherit; }

.nav-links { display: none; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  color: var(--on-shell-muted); text-decoration: none; font-size: 0.95rem; white-space: nowrap;
  transition: color var(--t-fast) ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-shell); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav :focus-visible, .footer :focus-visible { outline-color: var(--accent-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-ctl);
  color: var(--on-shell); cursor: pointer;
}
.nav-drawer {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--shell); padding: 8px 20px 20px; box-shadow: 0 10px 20px rgba(0, 21, 38, 0.3);
}
.nav-drawer.is-open { display: block; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer a {
  display: flex; align-items: center; min-height: 48px; color: var(--on-shell);
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 1200px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-drawer, .nav-drawer.is-open { display: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font-family: var(--font-display); font-stretch: 100%; font-size: 1.0625rem; font-weight: 700;
  line-height: 1; text-decoration: none; border-radius: var(--radius-ctl);
  border: 1px solid transparent; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.btn:active { transform: translateY(1px); }

/* the app's accent blue, moulded */
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 8px rgba(0, 21, 38, 0.25);
}
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 5px 12px rgba(0, 21, 38, 0.3); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--foam-rim); }
.btn-ghost:hover { border-color: var(--shell); color: var(--shell); }

.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.975rem; }

/* not yet available: dashed, inert, says why */
.btn-soon {
  flex-direction: column; gap: 5px; padding-block: 8px;
  background: transparent; color: var(--muted);
  border: 1.5px dashed var(--foam-rim); cursor: not-allowed;
}
.btn-soon:active { transform: none; }
.btn-soon small {
  font-stretch: 75%; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--radius-tape); background: var(--tape-caution); color: var(--tape-ink);
}

/* on the shell: ink buttons */
.shell .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 8px rgba(0, 0, 0, 0.35); }
.shell .btn-soon { color: var(--on-shell-2); border-color: rgba(255, 255, 255, 0.35); }
.shell :focus-visible { outline-color: var(--accent-2); }

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

.section { position: relative; padding-block: 80px; }
@media (min-width: 900px) { .section { padding-block: 120px; } }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 62ch; }

/* a lid seam between sections: the case edge */
.seam { height: 12px; background: linear-gradient(#8f9ca6, #b3bdc4 45%, #c7cfd4); border-block: 1px solid #7f8c96; }

/* ---------- Hero: the app, full size ---------- */

.hero-app { padding: 44px 0 80px; }
@media (min-width: 1000px) { .hero-app { padding: 64px 0 104px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.62fr) minmax(0, 0.9fr); gap: 44px; }
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3.7vw, 3.5rem); font-weight: 900; font-stretch: 106%;
  letter-spacing: -0.02em; line-height: 0.98;
}
.hero-copy h1 span { display: block; color: var(--link); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-tags .tape { font-size: 0.8125rem; }
.hero-lede { margin-top: 20px; font-size: 1.1875rem; line-height: 1.55; color: var(--body); max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
/* the spec plate: three facts, one label cut and one value face */
.hero-spec {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin: 26px 0 0; padding-top: 16px; border-top: 1px solid rgba(0, 21, 38, 0.18);
}
.hero-spec div { padding: 0 22px; border-left: 1px solid rgba(0, 21, 38, 0.18); }
.hero-spec div:first-child { padding-left: 0; border-left: 0; }
.hero-spec dt {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #46545f;
}
.hero-spec dd { margin: 3px 0 0; font-family: var(--font-display); font-weight: 700; font-stretch: 100%; font-size: 1rem; line-height: 1.3; color: var(--text); }
@media (max-width: 620px) {
  .hero-spec { grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: baseline; }
  .hero-spec div { display: contents; }
  .hero-spec dd { margin: 0; }
}

.hero-unit { justify-self: center; width: min(62vw, 290px); }
.hero-unit .unit { width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(0, 21, 38, 0.35)); }

/* the app's own screen, drawn as live page elements */
.app-panel {
  border-radius: 18px; overflow: hidden; background: var(--foam-well);
  box-shadow: 0 24px 50px -22px rgba(0, 21, 38, 0.45), 0 0 0 1px rgba(0, 21, 38, 0.12);
}
.app-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--shell); color: var(--on-shell); --bars: var(--accent-2); }
.app-bar .logo { width: 30px; height: 30px; }
.app-title { display: grid; line-height: 1.15; }
.app-title b { font-family: var(--font-display); font-weight: 800; font-stretch: 105%; font-size: 1.25rem; }
.app-title span { font-size: 0.875rem; color: var(--on-shell-muted); }
.app-status { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--shell); color: var(--on-shell-2); font-size: 0.9rem; }
.app-status .dot { width: 10px; height: 10px; border-radius: 2px; background: var(--on-shell-muted); }
@media (max-width: 999px) { .app-panel { max-width: 520px; width: 100%; justify-self: center; } }

/* gloss: a band of light that travels across the XP8's glass as you scroll past.
   --g runs 0 -> 1 (set by site.js); reduced motion holds it still, mid-glass. */
.unit-wrap { position: relative; }
.glass {
  position: absolute; left: 9.6%; right: 8.2%; top: 4.6%; bottom: 13.9%;
  border-radius: 6% / 3%; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
}
.glass::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 70%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.28) 46%, rgba(255, 255, 255, 0.08) 54%, transparent 72%);
  transform: translateX(calc(var(--g, 0.5) * 240%)) skewX(-8deg);
  will-change: transform;
}
.glass::after {
  /* a fixed, faint reflection so the glass reads as glass even at rest */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%);
}

/* screenshot placeholder, shown until a real capture exists: dark glass + a tape label */
.shot-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 12px; text-align: center; color: #8b8f92;
  background: linear-gradient(160deg, #1a1c1e 0%, #0b0c0d 55%, #121314 100%);
}
.shot-ph .icon { width: 30px; height: 30px; color: #5b6064; stroke-width: 1.4; }
.shot-ph .tape { font-size: 0.72rem; }
.has-shot .shot-ph { display: none; }

/* ---------- Steps: three wells joined by a cable channel ---------- */

.steps { position: relative; display: grid; gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 46px; height: 14px; border-radius: 7px;
    background: #b7c1c8; box-shadow: inset 0 3px 5px rgba(0, 21, 38, 0.3);
  }
}
.step { position: relative; padding: 28px 26px 30px; counter-increment: step; }
.step::before {
  content: counter(step); position: relative; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
  border-radius: 50%; color: var(--on-shell); background: var(--tex-shell) var(--shell);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 5px rgba(0, 21, 38, 0.35);
}
.step h3 { font-size: 1.625rem; font-stretch: 112%; font-weight: 800; }
.step p { margin-top: 10px; color: var(--muted); }
h1, h2, h3, h4 { color: var(--text); }
.shell h1, .shell h2, .shell h3 { color: var(--on-shell); }

/* ---------- Manifest: the contents sheet taped inside the lid ---------- */

.manifest {
  position: relative;
  background: var(--tape);
  color: var(--tape-ink);
  border-radius: 4px;
  padding: 30px 22px 26px;
  box-shadow: 0 18px 40px -18px rgba(0, 21, 38, 0.35), 0 2px 4px rgba(0, 21, 38, 0.12);
}
@media (min-width: 768px) { .manifest { padding: 44px 48px 40px; } }
.manifest::before, .manifest::after {
  /* strips of clear tape holding the sheet */
  content: ""; position: absolute; top: -12px; width: 96px; height: 26px;
  background: rgba(214, 228, 238, 0.7); backdrop-filter: blur(1px);
  box-shadow: 0 1px 2px rgba(0, 21, 38, 0.15);
}
.manifest::before { left: 10%; transform: rotate(-3deg); }
.manifest::after { right: 10%; transform: rotate(2.5deg); }

.manifest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 16px; border-bottom: 3px solid var(--tape-ink); }
.manifest-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.manifest-head p { font-size: 0.95rem; color: #46545f; max-width: 48ch; }

.manifest table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 1rem; }
.manifest th, .manifest td { text-align: left; vertical-align: top; padding: 13px 12px 13px 0; border-bottom: 1px solid #d7dde2; }
.manifest tbody th { width: 34%; font-family: var(--font-display); font-weight: 700; font-stretch: 100%; font-size: 1.0625rem; }
.manifest td { color: #2a3945; }
.manifest .group th {
  padding-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--tape-ink);
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #46545f;
}
.manifest .mark {
  display: inline-block; margin-left: 8px; padding: 1px 7px; vertical-align: 2px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--tape-ink); border-radius: var(--radius-tape);
}
.manifest-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 0.95rem; color: #2a3945; }
.manifest-foot b { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8125rem; margin-right: 4px; }
.algo { font-family: var(--font-id); font-size: 0.875rem; padding: 2px 8px; border-radius: var(--radius-tape); background: #e8edf1; }
.manifest-foot small { flex-basis: 100%; margin-top: 6px; font-size: 0.875rem; color: #46545f; }
@media (max-width: 640px) {
  .manifest tbody tr:not(.group) { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid #d7dde2; }
  .manifest tbody tr:not(.group) th, .manifest tbody tr:not(.group) td { width: auto; border: 0; padding: 0; }
}

/* ---------- Compatibility ---------- */

.compat { display: grid; gap: 14px; }
.compat-row { display: grid; gap: 10px 22px; align-items: baseline; padding: 20px 22px; }
@media (min-width: 760px) { .compat-row { grid-template-columns: 170px 1fr; } }
.compat-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; color: var(--body); }
.compat-row li span { color: var(--muted); font-size: 0.9rem; }
.compat-open { border: 2px dashed var(--foam-rim); border-radius: var(--radius-cut); background: none; box-shadow: none; }
.compat-open p { color: var(--muted); }

.verified {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-top: 22px; padding: 18px 22px; border-radius: var(--radius-cut);
  background: var(--tex-shell) var(--shell); color: var(--on-shell);
}
.verified p { font-size: 1.0625rem; }
.verified b { font-family: var(--font-display); font-weight: 800; }
.foot-note { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); max-width: 90ch; }

/* ---------- Security ---------- */

.split { display: grid; gap: 40px; }
@media (min-width: 940px) { .split { grid-template-columns: 1.15fr 0.85fr; align-items: start; gap: 64px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.checks li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.checks .ico {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: var(--shell);
  background: var(--foam-well); box-shadow: inset 0 3px 6px rgba(0, 21, 38, 0.2);
}
.checks .ico .icon { stroke-width: 2.4; }
.checks h3 { font-size: 1.375rem; font-stretch: 105%; }
.checks p { margin-top: 6px; color: var(--muted); }

.plain { padding: 26px 24px 28px; }
.plain .tape { font-size: 0.9rem; }
.plain ul { margin: 20px 0 0; padding-left: 1.1em; display: grid; gap: 14px; color: var(--body); }
.plain li::marker { color: #b58600; }

/* ---------- Screenshot gallery: phone-shaped cutouts ---------- */

.gallery { display: grid; gap: 34px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot figure { margin: 0; }
.shot-well { padding: 10px; border-radius: 24px; }
.shot-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; padding: 0;
  border-radius: 12px; border: 0; background: #0b0c0d; color: inherit; font: inherit;
  box-shadow: 0 0 0 5px #17222b, 0 8px 16px rgba(0, 21, 38, 0.3);
}
button.shot-frame { cursor: zoom-in; }
button.shot-frame[disabled] { cursor: default; }
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 14px; }
.shot figcaption .tape { font-size: 0.78rem; }
.shot figcaption > span:not(.tape) { display: block; margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 480px); max-height: 92dvh; }
.lightbox::backdrop { background: rgba(0, 21, 38, 0.88); }
.lightbox img { max-height: 84dvh; width: auto; margin-inline: auto; border-radius: 12px; }
.lightbox form { display: flex; justify-content: center; margin-top: 12px; }

/* ---------- Comparison: three kits ---------- */

.kits { border-radius: var(--radius-cut); overflow: hidden; }
.kits table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.kits th, .kits td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0, 21, 38, 0.1); font-size: 0.98rem; }
.kits tbody tr:last-child th, .kits tbody tr:last-child td { border-bottom: 0; }
.kits thead th { font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; padding-block: 20px; border-bottom: 1px solid rgba(0, 21, 38, 0.25); }
.kits thead th small { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.kits tbody th { width: 20%; font-weight: 700; color: var(--muted); font-size: 0.92rem; }
.kits td { color: var(--body); }
.kits .us { background: var(--tex-shell) var(--shell); color: var(--on-shell); }
.kits thead .us small { color: var(--on-shell-muted); }
.kits tbody .us { border-bottom-color: rgba(255, 255, 255, 0.1); }
@media (max-width: 819px) {
  .kits thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .kits table, .kits tbody, .kits tr, .kits th, .kits td { display: block; width: 100%; }
  .kits tbody tr { padding: 18px 0; border-bottom: 1px solid rgba(0, 21, 38, 0.18); }
  .kits tbody tr:last-child { border-bottom: 0; }
  .kits tbody th { width: 100%; border: 0; padding: 0 18px 10px; font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }
  .kits td { border: 0; padding: 10px 18px; }
  .kits td::before {
    content: attr(data-col); display: block; margin-bottom: 2px;
    font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  }
  .kits td.us::before { color: var(--on-shell-muted); }
}

/* ---------- Hardware ---------- */

.kit { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .kit { grid-template-columns: 1fr 1fr; gap: 64px; } }
.photo-ph {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  text-align: center; color: var(--muted);
}
.photo-ph .icon { width: 34px; height: 34px; color: #6a7883; margin: 0 auto 10px; }
.photo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-ph.has-shot > span { display: none; }
.kit-lede { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.ports { margin: 28px 0 0; display: grid; gap: 12px; }
.ports > div { display: grid; grid-template-columns: 176px 1fr; gap: 16px; align-items: baseline; padding: 16px 18px; }
.ports dt { align-self: start; display: flex; align-items: center; gap: 10px; }
.ports dt .icon { width: 26px; height: 26px; color: var(--shell); }
.ports dd { margin: 0; color: var(--body); font-size: 1rem; }
@media (max-width: 460px) { .ports > div { grid-template-columns: 1fr; gap: 8px; } }
.kit-note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Buy: the closed lid with latches ---------- */

.buy {
  position: relative; overflow: hidden;
  padding: 64px 24px 56px; border-radius: 26px; text-align: center;
  box-shadow: 0 30px 60px -24px rgba(0, 21, 38, 0.45), 0 0 0 1px rgba(0, 21, 38, 0.35);
}
.buy::before {
  content: ""; position: absolute; inset: 12px; border-radius: 16px; pointer-events: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.07), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}
.latch {
  position: absolute; top: -2px; width: 74px; height: 30px; border-radius: 0 0 10px 10px;
  background: linear-gradient(#1b1d1f, #2c2f32); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 -2px 0 rgba(255, 255, 255, 0.08);
}
.latch::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 8px; height: 4px; border-radius: 2px; background: #0c0d0e; }
.latch.l { left: 18%; } .latch.r { right: 18%; }
.buy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; font-stretch: 118%; color: var(--on-shell); }
.buy > p { max-width: 54ch; margin: 16px auto 0; font-size: 1.125rem; color: var(--on-shell-2); }
.buy-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.buy-actions .btn { min-width: 220px; min-height: 58px; }
.buy-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 0.95rem; color: var(--on-shell-muted); }
.buy-note .icon { color: var(--tape-caution); }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-cut); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-stretch: 105%; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--link); border-bottom: 2.5px solid var(--link);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--t-fast) ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); max-width: 72ch; }
.faq .answer p + p { margin-top: 12px; }

/* ---------- Legal ---------- */

.legal { padding: 32px 24px; }
@media (min-width: 768px) { .legal { padding: 44px 48px; } }
.legal > .tape { font-size: 1rem; padding: 6px 12px 5px; }
.legal-grid { display: grid; gap: 24px 56px; margin-top: 26px; }
@media (min-width: 820px) { .legal-grid { grid-template-columns: 1fr 1fr; } }
.legal h3 { font-size: 1.125rem; font-stretch: 100%; margin-bottom: 6px; }
.legal p { font-size: 0.975rem; color: var(--body); }

/* ---------- Footer ---------- */

.footer { background: var(--shell); color: var(--on-shell); padding-block: 48px 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-shell-muted); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--on-shell); }
.footer small { display: block; margin-top: 22px; color: var(--on-shell-muted); font-size: 0.85rem; max-width: 100ch; line-height: 1.6; }
.footer small + small { margin-top: 10px; }
.footer small a { color: var(--on-shell); }

/* ---------- Support page ---------- */

.page-head { padding-block: 72px 56px; margin-bottom: -56px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 900; font-stretch: 118%; }
.page-head p { margin-top: 16px; color: var(--muted); font-size: 1.1875rem; max-width: 60ch; }

.support-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .support-grid { grid-template-columns: 1.25fr 0.75fr; gap: 36px; } }
.stack { display: grid; gap: 28px; }

.panel { padding: 26px 22px; }
@media (min-width: 768px) { .panel { padding: 36px 36px; } }
.panel h2 { font-size: 1.9rem; display: flex; align-items: center; gap: 12px; }
.panel h2 .icon { color: var(--shell); width: 28px; height: 28px; }
.panel > p { margin-top: 10px; color: var(--muted); }
.panel h3 { margin-top: 30px; }

.field { margin-top: 22px; }
.field label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.field .hint { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hash-input {
  flex: 1 1 260px; min-width: 0; min-height: 58px; padding: 0 18px;
  font-family: var(--font-id); font-size: 1.375rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tape-ink); background: var(--tape); border: 2px solid var(--foam-rim); border-radius: var(--radius-ctl);
  box-shadow: inset 0 2px 4px rgba(0, 21, 38, 0.08);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.hash-input::placeholder { color: #6f7d88; }
.hash-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 174, 228, 0.35); }
.hash-input[aria-invalid="true"] { border-color: var(--fault); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.2); }
.field-error { display: none; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--fault); font-size: 0.95rem; }
.field-error.is-shown { display: flex; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.result { margin-top: 22px; padding: 22px; border-radius: var(--radius-cut); background: #ffffff; border: 1.5px solid var(--foam-rim); }
.result[hidden] { display: none; }
.result h3 { margin-top: 0; font-size: 1.25rem; }
.result p { margin-top: 8px; color: var(--muted); }
.result.is-pending { border-color: var(--tape-caution); }
.result.is-pending h3 { color: #7a5a00; }
.result.is-error { border-color: var(--fault); }
.result.is-error h3 { color: var(--fault); }
.result .btn { margin-top: 16px; }
.releases { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.releases li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 10px; background: var(--foam-well); }
.releases b { font-family: var(--font-id); font-weight: 500; }
.releases span { display: block; font-size: 0.9rem; color: var(--muted); }

.where { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: w; display: grid; gap: 14px; }
.where li { counter-increment: w; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--body); }
.where li::before {
  content: counter(w); width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 0.95rem;
  border-radius: 50%; color: var(--on-shell); background: var(--tex-shell) var(--shell);
}
.where code, .panel code { font-family: var(--font-id); font-size: 0.92em; padding: 1px 6px; border-radius: var(--radius-tape); background: var(--tape); color: var(--tape-ink); box-shadow: 0 0 0 1px #c6ced4; overflow-wrap: anywhere; }

.hash-demo { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-ctl); background: #e0e3e5; color: var(--tape-ink); box-shadow: 0 0 0 1px #c6ced4; }
.hash-demo small { display: block; font-size: 0.8125rem; color: #46545f; }
.hash-demo b { font-family: var(--font-id); font-size: 1.15rem; letter-spacing: 0.1em; font-weight: 500; }

.email-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 14px; font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }
.note-list { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 8px; font-size: 0.975rem; }
.note-caution { color: var(--text); }
.note-caution li::marker { color: #b58600; }

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

/* feature icons: the app's own icon set (filled) with Lucide filling the gaps */
.feat { display: inline-flex; align-items: center; gap: 10px; }
.feat .icon { width: 22px; height: 22px; color: var(--shell); stroke-width: 2.6; }
.verified .tape .icon, .tape .icon { width: 16px; height: 16px; }
.tape-dashed { background: transparent; box-shadow: none; border: 1.5px dashed var(--tape-ink); padding: 3px 8px 2px; }
.plain-note { display: grid; gap: 12px; margin-top: 22px; padding: 22px 24px; }
.plain-note .tape { justify-self: start; font-size: 0.875rem; }
.plain-note p { color: var(--body); max-width: 80ch; }

/* ---------- What's included: the packing slip ---------- */
.slip-list { list-style: none; margin: 8px 0 0; padding: 0; }
.slip-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid #d7dde2; }
.slip-list .icon { width: 26px; height: 26px; color: var(--shell); margin-top: 1px; }
.slip-list h3, .slip-list h4 { font-size: 1.25rem; font-weight: 700; font-stretch: 100%; color: var(--text); }
.slip-list p { margin-top: 4px; color: #2a3945; }
.slip-list .mark {
  display: inline-block; margin-left: 8px; padding: 1px 7px; vertical-align: 3px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--tape-ink); border-radius: var(--radius-tape);
}
.ast { margin-left: 2px; text-decoration: none; color: var(--link); font-weight: 800; }
.slip-foot { margin-top: 16px; font-size: 0.9375rem; line-height: 1.55; color: #46545f; max-width: 80ch; }
.slip-foot b { color: var(--text); }

.kits .us a { color: var(--accent-2); }
.kits .us a:hover { color: var(--on-shell); }

/* phones: bring the product into the first screen — headline, tags, CTAs, then the phone, then the reading */
@media (max-width: 999px) {
  .hero-copy { display: contents; }
  .hero-grid { gap: 22px; }
  .hero-copy h1 { order: 1; }
  .hero-tags { order: 2; margin-top: 0; }
  .hero-cta { order: 3; margin-top: 4px; }
  .hero-note { order: 4; margin-top: -8px; }
  .hero-unit { order: 5; width: min(56vw, 260px); margin-top: 8px; }
  .app-panel { order: 6; margin-top: 4px; }
  .hero-lede { order: 7; margin-top: 10px; }
  .hero-spec { order: 8; margin-top: 0; }
}

/* ---------- System operations: three bays, each with its route drawn in the foam ---------- */
.bays { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.bay { padding: 26px 22px 28px; }
@media (min-width: 768px) { .bay { padding: 34px 36px 36px; } }
.bay-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bay-head h3 { flex: 1 1 12ch; min-width: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 112%; }

/* a moulded navy puck holding one glyph: the nodes of a route */
.puck {
  flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--tex-shell) var(--shell); color: var(--on-shell);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 5px rgba(0, 21, 38, 0.35);
}
.puck .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.puck .logo { width: 32px; height: 32px; }
.puck-brand { --bars: var(--accent-2); }
.puck-group { display: inline-flex; justify-content: center; gap: 0; }
.puck-group .icon { width: 22px; height: 22px; margin-inline: -3px; }

/* the route: pucks joined by grooves cut into the well floor (vertical on phones) */
.route { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; }
.node { display: flex; align-items: center; gap: 14px; }
.hop { position: relative; display: flex; align-items: center; min-height: 64px; margin-left: 23px; padding: 10px 0 10px 32px; }
.hop::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; border-radius: 5px;
  background: #b7c1c8; box-shadow: inset 0 3px 5px rgba(0, 21, 38, 0.3);
}
.hop-cap { font-size: 0.9375rem; line-height: 1.35; color: var(--muted); }
/* over the air: a carrier wave instead of a groove */
.hop-air::before {
  left: -1px; width: 12px; border-radius: 0; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24'%3E%3Cpath d='M6 0 Q0 6 6 12 T6 24' fill='none' stroke='%2307598a' stroke-width='2'/%3E%3C/svg%3E") repeat-y center top;
}
/* carried by hand: no cable at all */
.hop-hand::before { display: none; }
.hop-hand .icon { position: absolute; left: -7px; top: 50%; transform: translateY(-50%); color: var(--link); }

.route-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; font-size: 0.9375rem; color: var(--muted); max-width: 90ch; }

@media (min-width: 860px) {
  .route { flex-direction: row; align-items: flex-start; margin-top: 30px; }
  .node { flex-direction: column; gap: 10px; }
  .hop { flex: 1; display: block; min-height: 0; height: 56px; margin: 0; padding: 0; }
  .hop::before { left: 8px; right: 8px; top: 23px; bottom: auto; width: auto; height: 10px; }
  .hop-cap { position: absolute; left: 10px; right: 10px; top: 42px; text-align: center; font-size: 0.875rem; }
  .hop-air::before {
    left: 8px; right: 8px; top: 22px; width: auto; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 6 Q6 0 12 6 T24 6' fill='none' stroke='%2307598a' stroke-width='2'/%3E%3C/svg%3E") repeat-x left center;
  }
  .hop-hand .icon { left: 50%; top: 16px; transform: translateX(-50%); }
  .route-next { margin-top: 44px; }
}

.bay-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(0, 21, 38, 0.14); }
@media (min-width: 900px) { .bay-body.has-figure { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; } }
.bay-lede { font-size: 1.125rem; line-height: 1.55; color: var(--body); max-width: 68ch; }
.bay-facts { margin: 0; display: grid; gap: 14px; }
.bay-body > div > .bay-facts { margin-top: 20px; }
.bay-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 4px 14px; align-content: start; }
.bay-facts dt {
  padding-top: 3px; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #46545f;
}
.bay-facts dd { margin: 0; color: var(--body); }
@media (max-width: 520px) { .bay-facts div { grid-template-columns: 1fr; } }
/* bays without a figure: the facts run across the bay, label over text */
@media (min-width: 760px) {
  .bay-body:not(.has-figure) .bay-facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 36px; }
  .bay-body:not(.has-figure) .bay-facts div { grid-template-columns: 1fr; }
}

/* the radio authentication report, as the app writes it: a printed sheet resting in the bay */
.report { margin: 0; }
.report-sheet { position: relative; }
.report-sheet::before, .report-sheet::after {
  /* taped into the bay like the manifest and the packing slip */
  content: ""; position: absolute; top: -11px; width: 76px; height: 22px;
  background: rgba(214, 228, 238, 0.7); backdrop-filter: blur(1px);
  box-shadow: 0 1px 2px rgba(0, 21, 38, 0.15);
}
.report-sheet::before { left: 12%; transform: rotate(-3deg); }
.report-sheet::after { right: 12%; transform: rotate(2.5deg); }
.report-sheet {
  background: #fff; color: #111; border-radius: 4px; padding: 20px 20px 22px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 18px 40px -18px rgba(0, 21, 38, 0.35), 0 2px 4px rgba(0, 21, 38, 0.12);
}
.r-title { font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.r-meta { margin-top: 6px; font-size: 0.8125rem; color: #555; }
.r-warn { margin-top: 12px; padding: 10px 12px; border: 2px solid var(--fault); background: #fbeeed; font-size: 0.8125rem; line-height: 1.45; }
.r-scroll { margin-top: 12px; overflow-x: auto; }
.report table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.35; }
.report th, .report td { border: 1px solid #bbb; padding: 6px 8px; text-align: left; vertical-align: top; }
.report th { background: #ececec; font-weight: 700; }
.report .r-id { font-family: var(--font-id); white-space: nowrap; }
.report .r-key { white-space: normal; }
.report figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 520px) {
  .report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .report table, .report tbody, .report tr, .report td { display: block; }
  .report td { border-width: 0 1px 1px; }
  .report tr td:first-child { border-top-width: 1px; }
  .report td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; color: #111; }
}

/* ---------- Accessories: an optional part, cut into its own well ---------- */
.accessory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 22px 28px; }
@media (min-width: 640px) { .accessory { grid-template-columns: 56px minmax(0, 1fr); gap: 22px; } }
@media (min-width: 768px) { .accessory { padding: 34px 36px 36px; } }
.accessory-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.accessory-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 112%; }
.accessory-model { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-stretch: 100%; color: var(--muted); }
.accessory-model b { color: var(--text); font-weight: 500; margin-left: 4px; }
.accessory-model b:not(.mono) { font-weight: 800; }
.accessories { display: grid; gap: 16px; }
.accessory .bay-lede { margin-top: 14px; }
.accessory .bay-facts { margin-top: 20px; }
@media (min-width: 760px) {
  .accessory .bay-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; }
  .accessory .bay-facts div { grid-template-columns: 1fr; }
}

/* ---------- Algorithms: the rack of included algorithms, one open slot, and the app's Add algorithm screen ---------- */
.algo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 980px) { .algo-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 44px; } }
.algo-rack { padding: 10px 22px 14px; }
@media (min-width: 768px) { .algo-rack { padding: 14px 30px 18px; } }
.algo-rack table { width: 100%; border-collapse: collapse; }
.algo-rack th, .algo-rack td { padding: 14px 12px 14px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid rgba(0, 21, 38, 0.12); }
.algo-rack thead th {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #46545f; border-bottom-color: rgba(0, 21, 38, 0.3);
}
.algo-rack tbody th { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: 1.125rem; color: var(--text); }
.algo-rack td { color: var(--body); }
.algo-rack .mono { font-weight: 500; color: var(--text); }
/* the open slot: dashed, because it waits for your algorithm */
.algo-rack tr.algo-yours th, .algo-rack tr.algo-yours td { border-bottom: 0; }
.algo-rack tr.algo-yours { outline: 2px dashed var(--foam-rim); outline-offset: -2px; border-radius: 10px; }
.algo-rack tr.algo-yours th { padding-left: 14px; color: var(--link); }
.algo-rack tr.algo-yours td { color: var(--muted); }
.algo-rack tbody tr:nth-last-child(2) th, .algo-rack tbody tr:nth-last-child(2) td { border-bottom: 0; }
.algo-rack tbody tr.algo-yours > * { padding-block: 16px; }
.algo-rack tbody tr:nth-last-child(2) > * { padding-bottom: 20px; }
@media (max-width: 640px) {
  .algo-rack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .algo-rack table, .algo-rack tbody, .algo-rack tr, .algo-rack th, .algo-rack td { display: block; }
  .algo-rack tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid rgba(0, 21, 38, 0.12); }
  .algo-rack tbody tr > *, .algo-rack tbody tr:nth-last-child(2) > *, .algo-rack tbody tr.algo-yours > * { padding: 0; border: 0; }
  .algo-rack tbody tr td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .algo-rack tbody tr td:nth-child(n+3) { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--muted); }
  .algo-rack tbody tr:nth-last-child(2) { border-bottom: 0; }
  .algo-rack tr.algo-yours { padding: 14px; margin-top: 6px; }
  .algo-rack tr.algo-yours th { padding-left: 0; }
  .algo-rack tr.algo-yours td:nth-child(2) { grid-column: 1 / -1; grid-row: auto; }
}
.algo-screen { margin: 0; }
.algo-screen .app-bar .icon { width: 26px; height: 26px; color: var(--on-shell); }
.algo-screen .app-status { align-items: flex-start; gap: 12px; padding-block: 14px; line-height: 1.4; }
.algo-screen .app-status .tape { flex: none; font-size: 0.72rem; }
.algo-fields { margin: 0; }
.algo-fields div { padding: 16px 22px; }
.algo-fields div + div { border-top: 1px solid #9aa3a9; }
.algo-fields dt { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: 1.2rem; line-height: 1.1; }
.algo-fields dd { margin: 4px 0 0; font-size: 0.975rem; line-height: 1.35; color: var(--muted); }
#algorithms .plain-note { margin-top: 28px; }
a.algo { color: var(--link); text-decoration: none; }
a.algo:hover { color: var(--shell); text-decoration: underline; }

/* ---------- Firmware downloads (firmware/*.php) ---------- */
.sprite { position: absolute; }
.section-tight { padding-block: 64px 96px; }
.fw-narrow { max-width: 760px; }
.fw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
.hash-inline { letter-spacing: 0.08em; color: var(--text); white-space: nowrap; }
.fw-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .fw-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 36px; } }
.panel-h-sm { font-size: 1.5rem !important; }
.panel-h1 { font-size: 2.2rem; }

.latest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 20px; padding: 20px; border-radius: 12px; background: var(--tape); box-shadow: 0 0 0 1px #c6ced4; }
.latest-id { display: grid; gap: 4px; }
.latest-version { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 2.4rem; line-height: 1; color: var(--text); }
.latest-id span { color: var(--muted); font-size: 0.975rem; }
.release-notes, .history-notes { margin-top: 16px; color: var(--body); max-width: 70ch; }
.history-notes { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }
.checksum { margin-top: 16px; font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.checksum .mono { color: var(--text); }

.steps-install li b { color: var(--text); }
.trouble { margin: 18px 0 0; display: grid; gap: 18px; }
.trouble dt { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: 1.125rem; color: var(--text); }
.trouble dd { margin: 6px 0 0; color: var(--body); }
.trouble dd ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }

.history { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.history li { padding: 16px 0; border-top: 1px solid rgba(0, 21, 38, 0.14); }
.history li:first-child { border-top: 0; padding-top: 4px; }
.history-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.history-head b { font-size: 1.125rem; font-weight: 500; color: var(--text); }
.history-date { margin-left: auto; font-size: 0.9rem; color: var(--muted); }
.history-dl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-weight: 700; overflow-wrap: anywhere; }
.history-foot { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

.notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-ctl); background: var(--tape); box-shadow: 0 0 0 1.5px var(--foam-rim); color: var(--text); }
.notice .icon { flex: none; margin-top: 3px; }
.notice-ok .icon { color: var(--link); }
.notice-error { box-shadow: 0 0 0 1.5px var(--fault); }
.notice-error .icon { color: var(--fault); }

/* ---------- Admin portal (admin/*.php): the same case, working drawers ---------- */
.brand-tag { margin-left: 6px; }
.nav .brand-tag { background: var(--accent); color: var(--accent-ink); }
.btn-on-shell { background: transparent; color: var(--on-shell); border-color: rgba(255, 255, 255, 0.3); }
.btn-on-shell:hover { border-color: var(--on-shell); color: var(--on-shell); }
.nav-actions form { display: contents; }
@media (max-width: 640px) {
  .btn-on-shell { padding-inline: 12px; }
  .so-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.btn-danger { background: var(--tape); color: var(--fault); border-color: var(--fault); }
.btn-danger:hover { background: var(--fault); color: #fff; }
.footer-slim { padding-block: 22px; }
.footer-slim small { margin-top: 0; }

.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.admin-head h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; font-stretch: 112%; }
.admin-head p { color: var(--muted); max-width: 70ch; }

.input {
  width: 100%; min-height: 46px; padding: 8px 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--tape); border: 1.5px solid var(--foam-rim); border-radius: var(--radius-ctl);
}
textarea.input { min-height: 0; resize: vertical; }
select.input { width: auto; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 174, 228, 0.35); }
.input.mono { font-family: var(--font-id); letter-spacing: 0.06em; }
.admin-form { display: grid; gap: 14px; margin-top: 16px; }
.admin-form label { display: grid; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 0.975rem; color: var(--text); }
.admin-form small { color: var(--muted); font-size: 0.875rem; font-family: var(--font-body); font-weight: 400; }
.admin-form .btn { justify-self: start; }
.admin-form label.check { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 46px; }
.admin-form label.check input { width: 20px; height: 20px; accent-color: var(--link); }
@media (min-width: 760px) {
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-grid .span-2 { grid-column: 1 / -1; }
}
.admin-form-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 0; }
.admin-form-inline label { flex: 1 1 180px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-panel { margin-bottom: 28px; }
.admin-split { display: grid; gap: 0 28px; }
@media (min-width: 980px) { .admin-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0 0 28px; }
.stats div { padding: 16px 18px; }
.stats dt { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: #46545f; }
.stats dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 2rem; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }

.admin-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.filters label { display: grid; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; }
.filters .input { min-height: 44px; }
.filters .count { align-self: center; color: var(--muted); font-size: 0.9rem; }
.filters.admin-toolbar { justify-content: flex-start; }
.filters label:has(input[name="q"]) { flex: 0 1 320px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--foam-well); box-shadow: inset 0 2px 4px rgba(0, 21, 38, 0.2); }
.seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 7px; font-family: var(--font-display); font-weight: 700; color: var(--muted); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--tex-shell) var(--shell); color: var(--on-shell); }

.table-well { padding: 6px 18px 12px; overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data th, .data td { padding: 11px 12px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0, 21, 38, 0.12); }
.data thead th { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: #46545f; border-bottom-color: rgba(0, 21, 38, 0.3); }
.data tbody tr:last-child td { border-bottom: 0; }
.data .ua { font-size: 0.8125rem; color: var(--muted); min-width: 260px; overflow-wrap: anywhere; }
.data tr.is-failed td { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sub { display: block; font-size: 0.8125rem; color: var(--muted); }
.release-head .sub, .license-item .sub { display: inline; }
.table-foot, .empty { padding: 14px 0; color: var(--muted); }
.empty.well { padding: 20px 22px; }
@media (max-width: 760px) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data, .data tbody, .data tr, .data td { display: block; width: 100%; }
  .data tr { padding: 12px 0; border-bottom: 1px solid rgba(0, 21, 38, 0.14); }
  .data td { border: 0; padding: 2px 0; }
  .data td::before { content: attr(data-col); display: inline-block; min-width: 96px; margin-right: 8px; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #46545f; }
}

.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius-tape); font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.status-ok { background: var(--shell); color: var(--on-shell); }
.status-bad { background: var(--tape); color: var(--fault); box-shadow: 0 0 0 1.5px var(--fault); }
.status-off { background: transparent; color: var(--muted); box-shadow: 0 0 0 1.5px var(--foam-rim); }

.release-list, .license-list { display: grid; gap: 16px; }
.release-item, .license-item { padding: 20px 22px; }
.release-item.is-hidden { background: rgba(224, 227, 229, 0.55); box-shadow: none; border: 2px dashed var(--foam-rim); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.release-version { font-size: 1.35rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text); }
.release-meta { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.release-meta .sha { font-size: 0.8125rem; overflow-wrap: anywhere; }
.release-item .admin-form { margin-top: 14px; }
.license-item.is-banned { box-shadow: inset 0 0 0 2px rgba(179, 38, 30, 0.45); }
.ban-reason { color: var(--fault); }
.license-forms { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 980px) { .license-forms { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; } }

/* ---------- Hero device: the app runs on the XP8's own display ---------- */
/* Two columns now: the copy, and the handset with the app on its screen. */
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; }
}
.hero-unit { width: min(80vw, 320px); }
@media (min-width: 1000px) { .hero-unit { width: min(100%, 340px); } }

/* The lit display in the photo: 516 x 908 px of the 640 x 1273 image, the XP8's 9:16 panel. */
.screen {
  position: absolute; z-index: 1; left: 10.47%; right: 8.75%; top: 14.22%; bottom: 14.45%;
  container-type: size; overflow: hidden;
}
.glass { z-index: 2; }
.app {
  /* 1em = 16dp on the XP8's 360dp-wide screen, so the app keeps its proportions at any photo size */
  font-size: 11px; font-size: calc(100cqw / 22.5);
  height: 100%; display: flex; flex-direction: column;
  background: var(--foam-well); color: var(--text);
  transition: opacity 520ms var(--ease-settle), transform 520ms var(--ease-settle), visibility 0s;
}
/* until the splash has had its moment (site.js adds .is-booted), the photo's own splash shows */
.js .unit-wrap:not(.is-booted) .app { opacity: 0; transform: scale(0.965); visibility: hidden; transition: none; }

.app-sb {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 1.5em; padding: 0 0.85em 0 1em; background: var(--shell); color: #fff;
}
.app-sb span { font-size: 0.875em; font-weight: 400; letter-spacing: 0.02em; }
.sb-batt { width: 0.55em; height: 0.92em; fill: #fff; }
.app-ab {
  flex: none; display: flex; align-items: center; gap: 0.95em;
  height: 4.1em; padding: 0 1.15em 0 1.45em; background: var(--shell); color: #fff; --bars: currentColor;
}
.app-ab .logo { width: 1.9em; height: 1.9em; }
.app-ab-title { display: grid; line-height: 1.1; }
.app-ab-title b { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: 1.5em; }
.app-ab-title span { font-size: 1em; color: var(--on-shell-2); }
.app-ab-batt { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 800; font-size: 0.95em; }
.app-ab-batt .icon { width: 1.75em; height: 1.75em; }

.app-list { flex: 1; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; scrollbar-width: none; }
.app-list::-webkit-scrollbar { display: none; }
.app-list li + li { border-top: 1px solid #9aa3a9; }
.app-list a {
  display: grid; grid-template-columns: 2.1em 1fr; gap: 1.15em; align-items: center;
  min-height: 4.1em; padding: 0.55em 1em 0.6em 1.3em; color: var(--text); text-decoration: none;
  transition: background-color var(--t-fast) ease;
}
.app-list a:hover { background: #d4d8db; color: var(--text); }
.app-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0; }
.app-list .icon { width: 1.9em; height: 1.9em; color: var(--shell); }
.app-list b { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: 1.375em; line-height: 1.1; }
.app-list b + span { display: block; margin-top: 0.12em; font-size: 1em; line-height: 1.25; color: var(--muted); }

/* ---------- Route flows: what each job carries, travelling its route (site.js) ---------- */
.route { position: relative; }
.bead {
  position: absolute; left: 0; top: 0; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; opacity: 0; pointer-events: none;
}
.bead-job { background: var(--accent); box-shadow: 0 0 0 2px var(--shell), 0 2px 4px rgba(0, 21, 38, 0.35); }
.bead-ack { background: #fff; box-shadow: 0 0 0 2px var(--shell), 0 2px 4px rgba(0, 21, 38, 0.35); }
.ripple {
  position: absolute; left: 0; top: 0; z-index: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border: 2px solid var(--link); border-radius: 50%; opacity: 0; pointer-events: none;
}
.node { position: relative; z-index: 1; }
.hop .hop-cap { transition: color var(--t-fast) ease; }
.hop.is-live .hop-cap { color: var(--text); }
.hop-hand .icon { transition: rotate 600ms var(--ease-settle); }
.hop-hand.is-live .icon { rotate: -12deg; }
/* the carrier runs while something is on the air */
.hop-air.is-live::before { animation: carrier-v 0.6s linear infinite; }
@keyframes carrier-v { from { background-position: center 0; } to { background-position: center 24px; } }
@media (min-width: 860px) {
  .hop-air.is-live::before { animation-name: carrier-h; }
  @keyframes carrier-h { from { background-position: 0 center; } to { background-position: 24px center; } }
}
@media (prefers-reduced-motion: reduce) {
  .hop-air.is-live::before { animation: none; }
  .hop-hand.is-live .icon { rotate: 0deg; }
}
.route-next:has(> .icon) { flex-wrap: nowrap; align-items: flex-start; }
.route-next .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--shell); flex: none; }
/* launch polish: classes for what used to be inline styles, and a hardware section without its photo */
.note-spaced { margin-top: 20px; }
.hash-note { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.noscript-note { color: var(--muted); }
.kit.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.kit.no-photo .photo-ph { display: none; }
section[hidden] { display: none; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.short-page { display: flex; flex-direction: column; min-height: 100vh; }
.short-page main { flex: 1; }
.beta-note { align-items: flex-start; flex-wrap: nowrap; }
.beta-note .tape { flex: none; margin-top: 1px; }

/* ---------- Direct sales: promo bar (homepage), order page (order/), admin Orders ---------- */

.promo-bar { background: var(--accent); color: var(--accent-ink); }
.promo-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 44px; padding-block: 8px; text-align: center; font-size: 0.975rem; }
.promo-bar b { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; }
.promo-bar .mono { padding: 1px 7px; border-radius: var(--radius-tape); background: var(--shell); color: var(--on-shell); font-weight: 500; letter-spacing: 0.04em; }
.promo-bar a { color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; text-decoration-thickness: 2px; }
.promo-bar a:hover { color: var(--accent-ink); text-decoration-thickness: 3px; }
.promo-bar :focus-visible { outline-color: var(--shell); }

/* Sold-out notice (homepage), shown by site.js from api/stock.php in place of the promo bar. */
.stock-notice { background: var(--shell); color: var(--on-shell-2); border-bottom: 3px solid var(--tape-caution); }
.stock-notice[hidden] { display: none; }
.stock-notice .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding-block: 14px; text-align: center; font-size: 0.975rem; line-height: 1.5; }
.stock-notice p { margin: 0; max-width: 78ch; }
.stock-notice b { color: var(--on-shell); font-family: var(--font-display); font-weight: 800; font-stretch: 100%; }
.stock-notice a { color: var(--on-shell); font-family: var(--font-display); font-weight: 700; white-space: nowrap; text-decoration-color: var(--tape-caution); text-decoration-thickness: 2px; }
.stock-notice a:hover { color: var(--on-shell); text-decoration-thickness: 3px; }
.stock-notice :focus-visible { outline-color: var(--tape-caution); }

.buy-actions-start { justify-content: flex-start; margin-top: 22px; }
.buy-actions-start .btn { min-width: 0; min-height: 50px; }
.btn-save { flex-direction: column; gap: 5px; padding-block: 8px; }
.btn-save small { font-stretch: 75%; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: var(--radius-tape); background: var(--shell); color: var(--on-shell); }

.order-wrap { max-width: 800px; }
.order-form { display: grid; gap: 22px; }
.order-h { margin-top: 30px; }
.promo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 22px; padding: 14px 18px; border-radius: var(--radius-ctl); background: var(--tape); box-shadow: 0 0 0 1.5px var(--foam-rim); }
.promo-strip .mono { padding: 1px 6px; border-radius: var(--radius-tape); background: var(--foam-well); }

.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--tape); box-shadow: 0 0 0 1.5px var(--foam-rim); cursor: pointer; transition: box-shadow var(--t-fast) ease; }
.opt:has(.opt-photo) { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.opt:hover { box-shadow: 0 0 0 1.5px var(--shell); }
.opt:has(input:checked) { box-shadow: 0 0 0 2.5px var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--shell); outline-offset: 3px; }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--link); }
.opt-fixed { cursor: default; }
.opt-fixed:hover { box-shadow: 0 0 0 1.5px var(--foam-rim); }
.opt-mark .icon { width: 24px; height: 24px; color: var(--link); }
.opt-photo { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.opt-body { display: grid; gap: 4px; }
.opt-body b { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.opt-body span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.opt-price { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt-note { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 520px) {
  .opt, .opt:has(.opt-photo) { grid-template-columns: auto minmax(0, 1fr); }
  .opt-photo { display: none; }
  .opt-price { grid-column: 2; }
}

.order-sum { display: grid; gap: 0; margin: 24px 0 0; }
.order-sum div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid rgba(0, 21, 38, 0.14); }
.order-sum dt { font-family: var(--font-display); font-weight: 700; }
.order-sum dd { margin: 0; color: var(--body); text-align: right; font-variant-numeric: tabular-nums; }
.order-sum-total dd { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text); }
.order-address { margin-top: 8px; line-height: 1.5; }

.ack { margin: 0; border: 0; min-width: 0; }
.ack legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; line-height: 1.05; }
.ack-item { clear: both; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(0, 21, 38, 0.14); cursor: pointer; }
.ack-item:first-of-type { border-top: 0; }
.ack-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--link); }

.order-go { display: grid; gap: 12px; justify-items: start; }
.order-go .btn { min-height: 58px; padding: 0 30px; }
.order-go p { color: var(--muted); font-size: 0.95rem; }

.order-item .notice { margin: 14px 0 0; }
.order-cols { display: grid; gap: 14px 28px; margin-top: 14px; }
@media (min-width: 760px) { .order-cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.order-col-h { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: #46545f; }
.order-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.order-items .sub { color: var(--muted); }
.order-item .license-forms { grid-template-columns: 1fr; }
.admin-toolbar .count { color: var(--muted); font-size: 0.9rem; align-self: center; }
.accessory-photo { margin-top: 16px; }
.accessory-photo img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px var(--foam-rim); }

.prose { max-width: 820px; }
.prose-lede { font-size: 1.125rem; color: var(--body); }
.prose h2 { margin-top: 34px; font-size: 1.45rem; font-weight: 800; font-stretch: 106%; }
.prose p { margin-top: 12px; color: var(--body); max-width: 72ch; }
.prose strong { color: var(--text); }
@media (max-width: 520px) { .promo-bar .container { gap: 2px 10px; font-size: 0.9rem; } }

/* Admin → Orders: shipping labels (Shippo) */
.label-panel, .label-bought { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--tape); box-shadow: 0 0 0 1.5px var(--foam-rim); }
.label-bought { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.label-bought form { margin: 0; }
.label-box { margin-top: 10px; }
.label-box label { flex: 0 1 78px; }
.rates { display: grid; gap: 8px; margin-top: 14px; }
.rates .btn { justify-self: start; margin-top: 4px; }
.rate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--foam-well); cursor: pointer; }
.rate:has(input:checked) { box-shadow: 0 0 0 2px var(--accent); }
.rate input { width: 18px; height: 18px; margin: 0; accent-color: var(--link); }
.rate b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.rate .sub { color: var(--muted); }
.admin-toolbar .filters { flex-wrap: nowrap; }
.admin-toolbar .filters label { flex: 1 1 260px; }

/* ---------- Activation: keys (admin/keys.php) and the customer's page (activate/) ---------- */
.key-input { display: block; width: 100%; max-width: 440px; font-size: clamp(1.05rem, 5vw, 1.375rem); letter-spacing: 0.08em; }
.key-text { font-family: var(--font-id); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.08em; color: var(--text); white-space: nowrap; }
.key-item.is-void { box-shadow: inset 0 0 0 2px rgba(179, 38, 30, 0.45); }
.key-item.is-done { background: rgba(224, 227, 229, 0.55); }
.key-activations { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.key-activations b { color: var(--text); font-weight: 500; }
.key-forms .actions { align-items: flex-end; }
.key-forms .actions form { margin: 0; }
.signer { margin-bottom: 24px; }
.signer b { color: var(--text); }
.attempts-panel { margin-top: 28px; }
.input[type="file"] { padding: 9px 12px; }
.act-alt { margin-top: 14px; }
.act-alt summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--link); }
.act-alt textarea { margin-top: 10px; font-size: 0.9rem; letter-spacing: 0; }
.act-steps li b { color: var(--text); }
.latest-file { font-size: 1.5rem; font-family: var(--font-id); font-weight: 500; font-stretch: 100%; letter-spacing: 0.02em; overflow-wrap: anywhere; }

/* ---------- Standalone kit: the adapter and the app on the buyer's own Android device ---------- */
.standalone { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.standalone > * { min-width: 0; }
@media (min-width: 980px) { .standalone { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; } }
.standalone .manifest-head h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; font-stretch: 112%; }
.standalone-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.standalone-side > * { min-width: 0; }
.standalone-needs { padding: 22px 24px 24px; }
.standalone-needs h3 { font-size: 1.375rem; font-stretch: 105%; }
.standalone-needs ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; color: var(--body); }
.standalone-needs li b { color: var(--text); }
.standalone .plain-note { margin-top: 0; }
.standalone-buy { display: grid; gap: 14px; justify-items: start; padding: 6px 4px 0; }
.standalone-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.standalone-price b { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 2.4rem; line-height: 1; color: var(--text); }
.standalone-price span { color: var(--muted); font-size: 0.975rem; }
.standalone-price .mono { color: var(--text); }

/* order page: a kit that is sold out stays listed, greyed, and can't be chosen */
.opt-out { cursor: default; color: var(--muted); }
.opt-out:hover { box-shadow: 0 0 0 1.5px var(--foam-rim); }
.opt-out .opt-body b, .opt-out .opt-price { color: var(--muted); }
.opt-body b .tape { margin-left: 8px; vertical-align: 2px; }
