/* ============================================================
   Phone Box — the smart focus lockbox
   Checkpoint Claim-Ticket direction: your phone is "surrendered" the way a
   restricted item is surrendered at a security checkpoint -- processed into
   a stainless tray, tagged with a claim ticket, and released only through
   that ticket's own rules. The WORLD (stainless tray, thermal ticket paper,
   rubber ink-stamp, steel structural chrome, Bebas Neue/Archivo/Courier
   Prime/VT323 type) is unchanged by this pass -- only the color roles below
   changed. Vanilla CSS, no build step, file:// friendly.

   Palette unification (user decision, see DESIGN.md): this file's :root now
   ports app/src/theme/theme.ts's MODES.dark + ACCENTS.dark.mint token
   values verbatim -- the same values dashboard.css already uses for
   dashboard.html/login.html -- rather than the prior bespoke Checkpoint
   palette (charcoal bg, coral accent). One palette across marketing site +
   dashboard + app now, instead of two. Status colors (--locked/--closed/
   --unlocked below) still map to the real firmware theme
   (Box-code/lib/lock_config.py) exactly as before -- locked/SEIZED,
   closed/HOLDING, unlocked/CLEARED -- just re-expressed as the app's own
   danger/warn/success roles, whose hex values already read as the same
   coral/amber/mint family (danger #ef4444 vs the old coral #ef5350; warn
   #f2b84b is an exact match; success #22c55e vs the old mint #35d07f) so the
   device mockup's on-screen status colors barely shift. The one deliberate
   semantic change: the page's PRIMARY brand accent (buttons, CTA emphasis,
   focus rings, selection) moves from the old status-red to the app's own
   accent role (mint, #22c55e) -- see --accent below and every rule this
   pass repointed from --locked to --accent (btn--primary, skip-link,
   ::selection, price-card--hero/waitlist__inner emphasis borders,
   setting__fill's slider gradient, cost-bars__fill--us). Steel/paper
   (structural chrome, thermal ticket material) are untouched -- neither is
   a "theme color" in the app's model, both stay their own achromatic/warm
   material colors regardless of accent. */

:root {
  /* On-device state colors -- app/src/theme/theme.ts's danger/warn/success
     roles, standing in for the firmware's real locked/closed/unlocked
     states exactly as before (see header comment). */
  --locked:     #ef4444;   /* app `danger` — SEIZED / locked */
  --locked-2:   #f87171;
  --closed:     #f2b84b;   /* app `warn` — HOLDING / closed (unchanged hex) */
  --unlocked:   #22c55e;   /* app `success` — CLEARED / unlocked */
  --unlocked-2: #4ade80;

  /* Surfaces — app/src/theme/theme.ts's MODES.dark (bg/surface), ported
     verbatim from dashboard.css. --bg-2 stays a hair darker than --bg
     (unlike dashboard.css, which sets both flat) purely so this page's own
     ambient depth-wash (body::before below) still has two shades to
     gradient between -- a structural technique kept from the prior build,
     just re-based on the new near-black instead of the old charcoal. */
  --bg:          #0b0b0c;
  --bg-2:        #08080a;
  --surface:     #17181b;
  --card:        #17181b;
  --card-2:      #17181b;
  --border-soft: rgba(255, 255, 255, 0.07);
  --border:      rgba(255, 255, 255, 0.16);

  /* Nav chrome + neutral washes. The sticky nav and the mobile drawer sit
     OUTSIDE `.dash`, so dashboard.css's light-mode overrides never reached
     them: on login.html/dashboard.html in light mode the nav stayed
     near-black while .brand's `color: var(--text)` went near-black too,
     leaving the wordmark at ~1:1 contrast (invisible). These carry today's
     dark literals verbatim as their defaults, so index.html -- which never
     runs applyTheme -- renders byte-identically; dashboard.js's applyTheme
     repoints them from the resolved themeMode so the nav follows the user's
     light/dark choice on the two themed pages. */
  --nav-bg:          rgba(19, 19, 20, 0.86);
  --nav-bg-scrolled: rgba(19, 19, 20, 0.96);
  --nav-mark:        #c9cbce;   /* = --steel; repointed to textDim on themed pages */
  --wash:            rgba(242, 241, 236, 0.05);

  /* Steel — structural chrome. Achromatic on purpose so it never reads as a
     status color next to red/amber/green; not an app theme role, so it's
     unaffected by the palette unification above. */
  --steel:      #c9cbce;
  --steel-dim:  #83868a;
  --steel-ink:  #17181a;

  /* Thermal ticket paper — used only on stub/ticket components, never the
     page ground. A material color, not an app theme role, so it's likewise
     unaffected by the palette unification above.

     IMPORTANT, --paper-dim is a DECORATION color, not a text color. It is a
     light tan that reads well as a dashed rule or edge ON the paper, and as
     text only when the paper-toned element sits on the DARK page ground.
     Painted as text ON --paper it measures 1.45:1 -- far under WCAG AA's
     4.5:1 -- which is exactly what had happened to .claim-tag__head, and
     then got copied into the spec sheet's labels. Use --paper-ink-dim for
     any muted TEXT on paper: it keeps the same "secondary label" hierarchy
     against --paper-ink (13.37:1) while measuring 5.9:1, comfortably AA. */
  --paper:         #ece6d6;
  --paper-dim:     #c8c1a8;   /* rules/edges on paper, or text on the dark ground */
  --paper-ink-dim: #5c5647;   /* muted text ON paper — 5.9:1, passes AA */
  --paper-ink:     #201e18;

  /* Text — app/src/theme/theme.ts's MODES.dark.text/textDim, ported
     verbatim. The app has no third text tier; --text-3 (this site's own
     "fine print" role) now aliases textDim rather than inventing a hue the
     app palette doesn't have. */
  --text:   #ffffff;
  --text-2: #9aa0a6;
  --text-3: var(--text-2);

  /* The page's brand accent — app/src/theme/theme.ts's ACCENTS.dark.mint,
     the app's own default. Was the status-locked coral; see the header
     comment for which rules moved off status-red onto this. */
  --accent: #22c55e;
  --accent-text: #04210f;
  --accent-soft: rgba(34, 197, 94, 0.14);

  /* Type — Bebas Neue (stenciled checkpoint signage) + Archivo (bureaucratic
     form-register body) + Courier Prime (carbon-copy manifest figures) +
     VT323 (the ticket's own dot-matrix readout, used sparingly for the
     countdown and stub numerals only). Unaffected by the palette
     unification -- typography is structure, not hue. */
  --font-display: "Bebas Neue", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-ticket: "VT323", "Courier Prime", ui-monospace, monospace;

  /* Rhythm */
  --wrap-w: 1160px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.5, 0, 0.15, 1);

  /* ---------- Spacing scale ----------
     A single 4px-based scale for every margin/padding/gap across styles.css,
     dashboard.css, accountPanel.css, and goalFormExtras.css -- replaces ~40
     ad-hoc one-off values (7px, 9px, 11px, 13px, 17px, 30px, 34px, 46px,
     54px, ...) that were each used once or twice for what was functionally
     the same gap. 18/22/26px are kept as half-steps (--space-4-5/-5-5/-6-5)
     rather than snapped to a neighbour: they carry ~45 call sites between
     them, so collapsing them is a visual change to make deliberately, not
     a side effect of tokenizing. Named after their px value (halves get a
     `-5` suffix, e.g. --space-2-5 = 10px) rather than t-shirt sizes, since
     the range needed here (2px hairlines up to 72px section rhythm) is
     wider than a t-shirt scale reads cleanly. Every step is still reachable
     by name; nothing in this file uses a bare px value going forward except
     truly one-of-a-kind component geometry (e.g. a 66px input width) that
     isn't a spacing gap at all. */
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-3-5: 14px;
  --space-4: 16px;
  --space-4-5: 18px;
  --space-5: 20px;
  --space-5-5: 22px;
  --space-6: 24px;
  --space-6-5: 26px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;

  /* ---------- Type scale ----------
     Named roles (not raw sizes) so every "small meta text" or "card
     heading" across the site shares one step instead of six near-miss
     siblings (12px/12.5px/13px/13.5px/14px/14.5px were all in play for
     what read as the same role in different components) -- same idea as
     app/src/theme/tokens.ts's typeScale, sized for this site's own type
     ramp rather than copying the app's px values verbatim (this is a much
     larger-format page). True display headings (hero h1, section h2) stay
     on their existing rem/clamp() rules below, which were already
     consistent; this scale covers the small-to-medium UI text that wasn't. */
  --fs-3xs: 11px;   /* fine print: battery %, hints, tiny captions */
  --fs-2xs: 12px;   /* chips, tags, small meta */
  --fs-xs: 13px;    /* secondary labels, form captions */
  --fs-sm: 14px;    /* default small UI text, buttons, table cells */
  --fs-base: 15px;  /* card/paragraph body copy */
  --fs-md: 16px;    /* nav links, base buttons */
  --fs-lg: 18px;    /* emphasized small heading, lg button */
  --fs-xl: 20px;    /* stat values, small numerals */
  --fs-2xl: 24px;   /* brand wordmark, minor display text */
  --fs-display-sm: 34px; /* VT323 ticket/countdown readout only */

  /* ---------- Motion durations ----------
     Named durations so every transition picks from one small set instead of
     a different magic number per component (0.06s/0.08s/0.1s/0.12s/0.15s/
     0.18s/0.2s/0.24s/0.25s/0.28s/0.3s/0.32s/0.4s/0.5s/0.8s were all in
     independent use for hover/press/reveal/fade purposes that fall into
     only four real speed classes). Both --ease curves are unchanged. */
  --dur-fast: 120ms;    /* press/active feedback, tiny icon flips (was 0.06s/0.08s/0.1s/0.12s) */
  --dur-base: 200ms;    /* hover states, small toggles (was 0.15s/0.18s/0.2s) */
  --dur-slow: 300ms;    /* panel/menu reveal, fade-in content (was 0.24s/0.25s/0.28s/0.3s/0.32s) */
  --dur-slower: 500ms;  /* progress-bar fills, larger reveals (was 0.4s/0.5s/0.8s) */
  --dur-flash: 900ms;   /* one-shot save-success ring */
  --dur-flash-err: 1400ms; /* one-shot save-error ring -- deliberately longer than --dur-flash so an error lingers more than a routine success */
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Checkpoint-floor ambient wash: a ghosted diagonal hazard-chevron hint and
   a plain top-to-bottom depth gradient. No colored blur/halo -- this world
   is printed and stamped, not glowing. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(242, 241, 236, 0.025) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(100deg, rgba(242, 241, 236, 0.015) 0px, rgba(242, 241, 236, 0.015) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, var(--bg-2), var(--bg) 46%);
  -webkit-mask-image: linear-gradient(180deg, black, black 340px, transparent 620px);
  mask-image: linear-gradient(180deg, black, black 340px, transparent 620px);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 44px, var(--wrap-w)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-text); padding: var(--space-2-5) var(--space-4);
  border-radius: 4px; font-weight: 700; transition: top var(--dur-base);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--accent); color: var(--accent-text); }

html { scrollbar-color: var(--steel-dim) var(--bg-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--steel-dim); border-radius: 6px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }

/* ---------- Perforation: a real punch-hole tear line, cut with a mask so
   it works over any surface behind it (card, paper, or page ground). ---------- */
.tear {
  height: 11px;
  -webkit-mask-image: radial-gradient(circle 4px at 10px 5.5px, transparent 4px, #000 4.6px);
  mask-image: radial-gradient(circle 4px at 10px 5.5px, transparent 4px, #000 4.6px);
  -webkit-mask-size: 20px 11px;
  mask-size: 20px 11px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  background: currentColor;
}

/* ---------- Barcode: an approximated bar pattern used as a manifest strip,
   never as pure decoration -- it always sits beside a real ticket/claim
   number. ---------- */
.barcode {
  height: 26px;
  opacity: 0.82;
  background-image: repeating-linear-gradient(90deg,
    currentColor 0 2px, transparent 2px 4px,
    currentColor 4px 5px, transparent 5px 9px,
    currentColor 9px 12px, transparent 12px 15px,
    currentColor 15px 16px, transparent 16px 21px,
    currentColor 21px 24px, transparent 24px 27px);
}

/* ---------- Stamp: a rubber ink-stamp mark. Status-colored variants map
   directly to the firmware's real SEIZED/HOLDING/CLEARED states; never used
   decoratively with an unrelated color. ---------- */
.stamp {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: var(--fs-2xs); padding: var(--space-1) var(--space-3) var(--space-1);
  border: 1.6px solid currentColor; border-radius: 2px;
  transform: rotate(-3deg);
  opacity: 0.95;
}
.stamp::after {
  content: ""; position: absolute; inset: -3px; border: 1px solid currentColor;
  opacity: 0.35; border-radius: 3px; pointer-events: none;
}
.stamp--seized   { color: var(--locked); }
.stamp--holding  { color: var(--closed); }
.stamp--cleared  { color: var(--unlocked); }
.stamp--note     { color: var(--steel); }

/* ---------- Ticket badge: a small paper claim-check chip, distinct from the
   .stamp status marks -- used for marketing labels (pricing, offers) that
   are not a lock-state signal and must never borrow that vocabulary. ---------- */
.ticket-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-3xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper-ink); background: var(--paper); border-radius: 3px;
  padding: var(--space-1) var(--space-2-5) var(--space-1) var(--space-2);
}
.ticket-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 1px rgba(0,0,0,0.3); flex: none; }

/* ---------- Buttons — an authorization stamp you press, not a soft pill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-md); letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6); border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-snap), box-shadow var(--dur-base), background var(--dur-base), border-color var(--dur-base);
}
.btn--sm { padding: var(--space-2) var(--space-4-5); font-size: var(--fs-sm); }
.btn--lg { padding: var(--space-4) var(--space-7); font-size: var(--fs-lg); }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  border: 1.6px solid #15803d;
  box-shadow: 0 3px 0 #15803d, 0 12px 26px -10px rgba(34, 197, 94, 0.45);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #15803d, 0 16px 32px -10px rgba(34, 197, 94, 0.55); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #15803d, 0 6px 16px -10px rgba(34, 197, 94, 0.45); }
.btn--ghost { background: rgba(242, 241, 236, 0.04); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: rgba(242, 241, 236, 0.08); transform: translateY(-1px); }
.btn--ghost:active { transform: translateY(1px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.nav--scrolled { background: var(--nav-bg-scrolled); box-shadow: 0 1px 0 var(--border-soft), 0 16px 32px -24px rgba(0, 0, 0, 0.65); }
.nav__inner { position: relative; display: flex; align-items: center; gap: var(--space-4-5); height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2-5);
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--text);
}
.brand__mark { display: inline-flex; width: 26px; height: 26px; color: var(--nav-mark); }

.nav__menu { display: flex; align-items: center; gap: var(--space-6-5); margin-left: auto; }
.nav__menu-inner { display: contents; }
.nav__links { display: flex; align-items: center; gap: var(--space-6-5); }
.nav__links a { color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; transition: color var(--dur-base); }
.nav__links a:hover { color: var(--text); }
.nav .btn--primary { flex: none; }

.nav__toggle {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: var(--wash); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer; padding: 0;
  transition: background var(--dur-base) var(--ease-snap), border-color var(--dur-base) var(--ease-snap);
}
.nav__toggle:hover { border-color: var(--nav-mark); }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor;
  transition: transform var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease);
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Section scaffolding ---------- */
section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.section-sub { color: var(--text-2); margin-top: var(--space-3-5); font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(3.1rem, 6.8vw, 5.1rem); }
.lead { color: var(--text-2); font-size: clamp(1.06rem, 1.55vw, 1.24rem); margin-top: var(--space-5-5); max-width: 46ch; }
.lead strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3-5); margin-top: var(--space-8); }
.hero__points { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6-5); margin-top: var(--space-6); }
.hero__points li { position: relative; padding-left: var(--space-5); color: var(--text-2); font-size: var(--fs-sm); font-family: var(--font-mono); }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  background: var(--steel); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Device: honest matte-plastic enclosure, set into a stainless
   checkpoint tray with an attached claim-ticket tag. No brass, no rivets,
   no invented metal or dial on the box itself. ---------- */
.hero__device { display: flex; justify-content: center; }
.checkpoint { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0; position: relative; }
.checkpoint__tray {
  position: relative; padding: var(--space-10) var(--space-8) var(--space-14);
  border-radius: 18px 18px 46px 46px / 18px 18px 30px 30px;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 7px),
    linear-gradient(175deg, #3a3c3f, #232527 55%, #171819);
  border: 1px solid rgba(242, 241, 236, 0.1);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -30px 50px rgba(0,0,0,0.5), 0 30px 50px -28px rgba(0,0,0,0.75);
}
.checkpoint__label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--fs-3xs); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--steel-dim); white-space: nowrap;
}
.device { position: relative; width: min(272px, 76vw); padding: var(--space-6-5) var(--space-5-5) var(--space-8); border-radius: 20px;
  background: linear-gradient(165deg, #262b31, #191d22 55%, #121519);
  border: 1px solid rgba(242, 241, 236, 0.07);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -18px 40px rgba(0, 0, 0, 0.55);
}
.device__lid { position: absolute; left: 24%; right: 24%; top: -4px; height: 7px; border-radius: 4px; background: linear-gradient(180deg, #2f343b, #17191d); }
.device__latch { position: absolute; right: -5px; top: 44%; width: 6px; height: 42px; border-radius: 2px; background: linear-gradient(180deg, var(--steel), var(--steel-dim)); box-shadow: -2px 0 6px rgba(0,0,0,0.4); }
.device__screen {
  position: relative; width: 100%; max-width: 178px; margin-inline: auto;
  aspect-ratio: 172 / 320; background: var(--bg); border-radius: 14px;
  border: 3px solid #000; overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.9);
}
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; padding: var(--space-3); font-family: var(--font-mono); color: var(--text); }
.scr__status { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-3xs); letter-spacing: 0.06em; }
.scr__lock { color: var(--locked); letter-spacing: 0.12em; font-weight: 700; }
.scr__batt { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text-3); }
.scr__batt-body { position: relative; width: 20px; height: 10px; border: 1.4px solid var(--text-3); border-radius: 2px; padding: 1.4px; }
.scr__batt-fill { display: block; height: 100%; width: 82%; background: var(--unlocked); border-radius: 1px; }
.scr__batt-cap { width: 2px; height: 4px; background: var(--text-3); border-radius: 0 2px 2px 0; }
.scr__batt-pct { font-size: var(--fs-3xs); color: var(--text-3); }
.scr__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2-5); }
.scr__label { font-size: var(--fs-3xs); font-weight: 500; letter-spacing: 0.3em; color: var(--text-3); text-transform: uppercase; }
.scr__time { font-family: var(--font-ticket); font-variant-numeric: tabular-nums; font-size: var(--fs-display-sm); letter-spacing: 0.02em; color: var(--locked); transition: color var(--dur-slow); }
.scr__bar { width: 82%; height: 5px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.scr__bar span { display: block; height: 100%; width: 100%; background: var(--locked); border-radius: 3px; transform-origin: left; transform: scaleX(var(--fill, 0.62)); transition: transform var(--dur-flash) linear, background var(--dur-slow); }
.scr__foot { margin-top: auto; text-align: center; }
.scr__hint { font-size: var(--fs-3xs); letter-spacing: 0.12em; color: var(--text-3); }

/* The claim-ticket tag: physically "attached" to the tray, mirrors the
   device's own countdown so the tag reads as the phone's real receipt, not
   a decorative sticker. */
.claim-tag {
  position: absolute; right: -8px; bottom: 28px; width: 132px;
  background: var(--paper); color: var(--paper-ink); border-radius: 3px;
  box-shadow: 0 14px 26px -14px rgba(0,0,0,0.6);
  transform: rotate(4deg);
  font-family: var(--font-mono);
}
.claim-tag__hole { position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0,0,0,0.4); }
.claim-tag__head { padding: var(--space-2) var(--space-3) var(--space-2) var(--space-6-5); font-size: var(--fs-3xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-ink-dim); border-bottom: 1px dashed var(--paper-dim); }
.claim-tag__num { padding: var(--space-2) var(--space-3) var(--space-0-5) var(--space-6-5); font-family: var(--font-ticket); font-size: var(--fs-xl); line-height: 1; }
.claim-tag .barcode { margin: var(--space-1-5) var(--space-3) var(--space-2-5) var(--space-6-5); height: 16px; color: var(--paper-ink); }
.claim-tag__stamp { position: absolute; top: 30%; right: 8px; }
.checkpoint__cap { color: var(--text-3); font-size: var(--fs-2xs); letter-spacing: 0.06em; margin-top: var(--space-4-5); font-family: var(--font-mono); text-transform: uppercase; text-align: center; }

/* ---------- Problem: one manifest strip, not three isolated stat cards ---------- */
.problem__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.problem__inner h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.problem__inner > p { color: var(--text-2); margin-top: var(--space-4-5); font-size: clamp(1.02rem, 1.5vw, 1.16rem); }
.ledger-strip { margin-top: var(--space-10); background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; text-align: left; }
.ledger-strip .barcode { color: var(--steel-dim); margin: var(--space-3-5) var(--space-5) 0; height: 18px; opacity: 0.5; }
.ledger-strip__row { display: flex; flex-wrap: wrap; gap: var(--space-2-5) 0; padding: var(--space-4-5) var(--space-5) var(--space-5-5); }
.ledger-strip__item {
  flex: 1 1 220px; padding: 0 var(--space-5); color: var(--text-2); font-size: var(--fs-sm);
  border-left: 1px solid var(--border-soft);
}
.ledger-strip__item:first-child { border-left: 0; padding-left: 0; }
.ledger-strip__item .num { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--locked-2); display: block; line-height: 1; margin-bottom: var(--space-1); }

/* ---------- Pillars: a processed manifest of four entries, not four
   identical icon+heading+text cards (the category's default scaffold). ---------- */
.manifest { display: flex; flex-direction: column; }
.manifest__row { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: var(--space-5-5); padding: var(--space-8) var(--space-1-5); align-items: start; }
.manifest__row:not(:first-child)::before {
  content: ""; position: absolute; top: 0; left: 6px; right: 6px; height: 11px;
  -webkit-mask-image: radial-gradient(circle 4px at 10px 5.5px, transparent 4px, #000 4.6px);
  mask-image: radial-gradient(circle 4px at 10px 5.5px, transparent 4px, #000 4.6px);
  -webkit-mask-size: 20px 11px; mask-size: 20px 11px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  background: var(--border-soft);
}
.manifest__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 32px; border: 1.4px solid var(--steel-dim); border-radius: 3px;
  color: var(--steel); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em;
  transform: rotate(-2deg);
}
.manifest__body h3 { font-size: 1.2rem; margin-bottom: var(--space-2); text-transform: none; letter-spacing: 0; font-weight: 700; font-family: var(--font-body); }
.manifest__body p { color: var(--text-2); font-size: var(--fs-base); max-width: 62ch; }
.manifest__body .card__tag { margin-top: var(--space-3-5); }

/* ---------- .card: the plain panel component -- still used by the dashboard
   (dashboard.html/.css) and by dashboard-style states elsewhere; the Pillars
   section above intentionally does NOT use it anymore (four identical
   icon+heading+text cards is the category's default scaffold). ---------- */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border-soft); border-radius: var(--radius); padding: var(--space-6-5) var(--space-6);
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4-5); }
.step { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: var(--space-6-5) var(--space-6); }
/* A small claim-stub tag stands in for the numeral badge -- the checkpoint
   world's own pictorial device, not a generic number chip. */
.step__tag {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--paper); color: var(--paper-ink); border-radius: 3px;
  padding: var(--space-2) var(--space-3-5) var(--space-2) var(--space-6); margin-bottom: var(--space-4-5); transform: rotate(-2deg);
  box-shadow: 0 8px 16px -10px rgba(0,0,0,0.5);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
}
.step__tag::before { content: ""; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--card); box-shadow: inset 0 1px 1px rgba(0,0,0,0.4); }
.step h3 { font-size: 1.2rem; margin-bottom: var(--space-2); text-transform: none; letter-spacing: 0; font-weight: 700; font-family: var(--font-body); }
.step p { color: var(--text-2); font-size: var(--fs-base); }

/* ---------- Adjust / make it yours ---------- */
.adjust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4-5); }
.setting {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border-soft); border-radius: var(--radius); padding: var(--space-6-5) var(--space-6);
  transition: transform var(--dur-base) var(--ease-snap), border-color var(--dur-slow), box-shadow var(--dur-slow);
}
.setting:hover { transform: translateY(-3px); border-color: rgba(201, 203, 206, 0.35); box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.6); }
.setting__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2-5); }
.setting__head h3 { font-size: 1.2rem; text-transform: none; letter-spacing: 0; font-weight: 700; font-family: var(--font-body); }
.setting__value {
  flex: none; font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-3xs);
  letter-spacing: 0.04em; color: var(--steel); background: rgba(201, 203, 206, 0.08);
  border: 1px solid rgba(201, 203, 206, 0.28); padding: var(--space-1) var(--space-2-5); border-radius: 3px; white-space: nowrap;
}
.setting p { color: var(--text-2); font-size: var(--fs-sm); }

.setting__track {
  position: relative; height: 8px; margin-top: var(--space-5); border-radius: 2px;
  background: var(--surface); overflow: visible;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(0,0,0,0.35) 8px, rgba(0,0,0,0.35) 9px);
}
.setting__fill { position: absolute; left: 0; top: 0; height: 100%; width: var(--w); border-radius: 2px; background: linear-gradient(90deg, var(--unlocked-2), var(--accent)); }
.setting__thumb { position: absolute; top: 50%; left: var(--x); width: 3px; height: 18px; transform: translate(-50%, -50%); background: var(--steel); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.setting__scale { display: flex; justify-content: space-between; margin-top: var(--space-2-5); font-size: var(--fs-3xs); font-family: var(--font-mono); color: var(--text-3); }
.setting__scale span:nth-child(2) { color: var(--accent); }
.setting__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.pill {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-2xs); color: var(--text-2);
  background: rgba(242, 241, 236, 0.03); border: 1px solid var(--border-soft);
  padding: var(--space-2) var(--space-3); border-radius: 3px;
}
.pill--on { color: var(--steel); background: rgba(201, 203, 206, 0.08); border-color: rgba(201, 203, 206, 0.3); }

/* Interactive override demo: proves the mechanism instead of describing it.
   Framed as the same manifest that any override use gets stamped into --
   permanently, never quietly reset -- so the demo doubles as the world's
   "nothing here is a loophole" promise. */
.override-demo { margin-top: var(--space-5-5); padding-top: var(--space-4-5); }
.override-demo__row { display: flex; align-items: center; gap: var(--space-3-5); flex-wrap: wrap; margin-top: var(--space-3-5); }
.override-demo__btn {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: var(--fs-sm); color: var(--text); background: rgba(242, 241, 236, 0.05); border: 1px solid var(--border);
  border-radius: 4px; padding: var(--space-2-5) var(--space-4-5); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-snap), background var(--dur-base), border-color var(--dur-base);
}
.override-demo__btn:hover { border-color: var(--locked); }
.override-demo__btn:active { transform: scale(0.96); }
.override-demo__ticks { display: flex; gap: var(--space-1); flex: 1; min-width: 140px; }
.override-demo__tick { flex: 1; height: 20px; background: var(--surface); border-radius: 1px; transition: background var(--dur-base) var(--ease-snap); }
.override-demo__tick.is-hit { background: var(--locked); }
.override-demo__status { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-3); min-width: 90px; text-align: right; }
.override-demo__status.is-released { color: var(--unlocked); }

/* ---------- Spec sheet: the manifest scaled up from the hero's claim-tag
   into a full property record -- same thermal-paper material, same
   dashed-perforation dividers, now carrying the box's real spec list
   instead of one live countdown. Sits on --paper (not --card) deliberately:
   it's the one section meant to read as a physical printed document sitting
   on the dark page, not another UI card. ---------- */
.spec-sheet {
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-5-5);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
.spec-sheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.spec-sheet__title { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-ink-dim); }
.spec-sheet__num { font-family: var(--font-ticket); font-size: var(--fs-lg); }
.spec-sheet .barcode { color: var(--paper-ink); margin: var(--space-3-5) 0 var(--space-4-5); height: 20px; opacity: 0.7; }
/* `.spec-sheet__list` is the <dl>; each `.spec-sheet__row` (a wrapping <div>
   around one dt/dd pair) becomes an implicit grid item, so the 9 terms fall
   into 2 columns without any extra markup. */
.spec-sheet__list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--space-8); }
.spec-sheet__row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px dashed var(--paper-dim); }
.spec-sheet__row dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper-ink-dim); }
.spec-sheet__row dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm); text-align: right; }

/* ---------- Comparison table: the manifest / claim-check register ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; min-width: 820px; background: var(--card); font-size: var(--fs-sm); font-family: var(--font-mono); }
.cmp th, .cmp td { padding: var(--space-3-5) var(--space-3); text-align: center; border-bottom: 1px solid var(--border-soft); }
.cmp thead th { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: var(--fs-2xs); letter-spacing: 0.04em; color: var(--text-2); background: var(--bg-2); vertical-align: bottom; }
.cmp tbody th[scope="row"] { text-align: left; color: var(--text); font-weight: 400; font-family: var(--font-body); font-size: var(--fs-sm); }
.cmp__feature { min-width: 220px; }
.cmp .cmp__us { background: rgba(201, 203, 206, 0.07); }
.cmp thead th.cmp__us { color: var(--text); font-weight: 700; position: relative; }
.cmp thead th.cmp__us::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 4px; background-image: repeating-linear-gradient(90deg, var(--steel) 0 2px, transparent 2px 4px, var(--steel) 4px 5px, transparent 5px 8px); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.yes, .mid, .no { display: inline-flex; align-items: center; padding: var(--space-0-5) var(--space-2); border: 1.2px solid currentColor; border-radius: 2px; font-weight: 600; font-size: var(--fs-2xs); letter-spacing: 0.03em; transform: rotate(-1.5deg); }
.yes { color: var(--unlocked); }
.mid { color: var(--closed); }
.no { color: var(--locked-2); }
.price-cell { color: var(--text); font-weight: 700; font-family: var(--font-mono); font-size: var(--fs-md); }
.compare__note { color: var(--text-3); font-size: var(--fs-xs); margin-top: var(--space-4); max-width: 820px; }

/* ---------- FAQ / accordion ---------- */
.faq__inner { max-width: 820px; margin-inline: auto; }
.accordion { display: flex; flex-direction: column; gap: var(--space-2-5); }
.acc__item { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.acc__item h3 { margin: 0; font-size: 1.2rem; text-transform: none; letter-spacing: 0; font-weight: 700; font-family: var(--font-body); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-5-5); background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--text);
}
.acc__btn:hover { color: var(--steel); }
.acc__chev { position: relative; flex: none; width: 14px; height: 14px; }
.acc__chev::before, .acc__chev::after {
  content: ""; position: absolute; top: 6px; width: 9px; height: 2px; background: var(--steel); transition: transform var(--dur-slow) var(--ease);
}
.acc__chev::before { left: 0; transform: rotate(45deg); }
.acc__chev::after { right: 0; transform: rotate(-45deg); }
.acc__btn[aria-expanded="true"] .acc__chev::before { transform: rotate(-45deg); }
.acc__btn[aria-expanded="true"] .acc__chev::after { transform: rotate(45deg); }
.acc__panel {
  display: grid; grid-template-rows: minmax(0, 0fr); visibility: hidden;
  transition: grid-template-rows var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
}
.acc__panel.is-open { grid-template-rows: minmax(0, 1fr); visibility: visible; }
.acc__panel > * { overflow: hidden; min-height: 0; padding: 0 var(--space-5-5) var(--space-5-5); }
.acc__panel p { color: var(--text-2); font-size: var(--fs-base); }
.acc__panel strong { color: var(--text); }

.field { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); max-width: 520px; margin-inline: auto; }
.field input {
  width: 100%; padding: var(--space-3-5) var(--space-4-5); font-size: var(--fs-md); font-family: var(--font-body);
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-msg { min-height: 20px; margin-top: var(--space-3-5); font-size: var(--fs-sm); font-weight: 600; }
.form-msg.is-ok { color: var(--unlocked); }
.form-msg.is-err { color: var(--locked-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding: var(--space-12) 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-4-5) var(--space-10); align-items: center; justify-content: space-between; }
.footer__brand .brand__name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); text-transform: uppercase; }
.footer__brand p { color: var(--text-3); font-size: var(--fs-sm); margin-top: var(--space-1); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2-5) var(--space-5-5); }
.footer__links a { color: var(--text-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.03em; transition: color var(--dur-base); }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: var(--text-3); font-size: var(--fs-2xs); flex-basis: 100%; font-family: var(--font-mono); }

/* ---------- Reveal on scroll: a stub settling flat after being handed over ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slower) var(--ease-snap), transform var(--dur-slower) var(--ease-snap); }
.reveal.in { opacity: 1; transform: none; }

.manifest .reveal:nth-child(2), .steps .reveal:nth-child(2), .adjust__grid .reveal:nth-child(2) { transition-delay: var(--dur-fast); }
.manifest .reveal:nth-child(3), .steps .reveal:nth-child(3), .adjust__grid .reveal:nth-child(3) { transition-delay: var(--dur-fast); }
.manifest .reveal:nth-child(4), .steps .reveal:nth-child(4), .adjust__grid .reveal:nth-child(4) { transition-delay: var(--dur-base); }
.adjust__grid .reveal:nth-child(5) { transition-delay: var(--dur-slow); }
.adjust__grid .reveal:nth-child(6) { transition-delay: var(--dur-slow); }

.hero__device.reveal { transition-delay: var(--dur-fast); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* Grid's implicit column min is `auto`, which floors at the tallest child's
     min-content width -- the tray's min-content (driven by the device art)
     was wider than the viewport, so .hero__copy inherited that floor and got
     clipped by .hero's overflow:hidden. min-width: 0 lets the column shrink. */
  .hero__grid > * { min-width: 0; }
  .checkpoint, .checkpoint__tray { max-width: 100%; }
  /* Scale with the tray's shrunk content box instead of a fixed vw floor. */
  .device { width: min(272px, 100%); }
  /* order: -1 removed: the first-viewport contract (see index.html header
     comment) puts headline + lead + CTA before the device art on every
     breakpoint; DOM order already has copy first, so no reorder is needed. */
  .lead { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .adjust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%; margin-left: 0;
    display: grid; grid-template-rows: minmax(0, 0fr); visibility: hidden;
    background: var(--surface); border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    transition: grid-template-rows var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
  }
  .nav__menu.is-open { grid-template-rows: minmax(0, 1fr); visibility: visible; }
  .nav__menu-inner {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-0-5);
    overflow: hidden; min-height: 0; padding: var(--space-2-5) min(24px, 5vw) var(--space-4-5);
  }
  .nav__links { flex-direction: column; align-items: stretch; gap: var(--space-0-5); }
  .nav__links a { padding: var(--space-3) var(--space-1-5); border-radius: 6px; }
  .nav__links a:hover { background: var(--wash); }
  .nav__cta { margin-top: var(--space-2); }
}
@media (max-width: 560px) {
  body { font-size: var(--fs-md); }
  .steps, .adjust__grid { grid-template-columns: 1fr; }
  .manifest__row { grid-template-columns: 44px 1fr; gap: var(--space-3-5); }
  .ledger-strip__row { flex-direction: column; }
  .ledger-strip__item { border-left: 0; padding-left: 0; }
  /* One column each: at this width two columns leave too little room for
     the longer terms/values ("Emergency override" / "5–500 presses,
     tunable (default 25)") to sit side by side without cramping. */
  .spec-sheet__list { grid-template-columns: 1fr; }
  .spec-sheet__row { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .spec-sheet__row dd { text-align: left; }
  .field { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .claim-tag { position: static; margin: var(--space-4-5) auto 0; transform: rotate(-1.4deg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Chain of custody: the honest who-did-what split ----------
   Same paper stock as `.spec-sheet`, because it is the same kind of artifact:
   a signed record rather than a sales claim. Reuses `.spec-sheet__title` /
   `__num` for the header so the two cards read as one system.
   NOTE: muted text on paper uses --paper-ink-dim, never --paper-dim (that one
   measures 1.45:1 as text -- see the palette comment at the top of this file). */
.custody {
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-5-5);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  margin-top: clamp(32px, 5vw, 56px);
}
.custody__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.custody .barcode { color: var(--paper-ink); margin: var(--space-3-5) 0 var(--space-5); height: 20px; opacity: 0.7; }
.custody__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
.custody__label {
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-ink-dim);
  padding-bottom: var(--space-2-5); margin-bottom: var(--space-4);
  border-bottom: 1px dashed var(--paper-dim);
}
.custody__col ul { list-style: none; display: grid; gap: var(--space-3-5); }
.custody__col li { position: relative; padding-left: var(--space-5); font-size: var(--fs-sm); line-height: 1.5; }
/* Ink-stamp tick rather than a bullet -- keeps the checkpoint-form language. */
.custody__col li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-weight: 700; color: var(--paper-ink-dim);
}
.custody__note {
  margin-top: var(--space-6); padding-top: var(--space-4-5);
  border-top: 1px solid var(--paper-dim);
  font-size: var(--fs-sm); line-height: 1.6; color: var(--paper-ink);
  max-width: 74ch;
}

/* ---------- Claimed by: attribution card ---------- */
.builder__inner { display: flex; justify-content: center; }
.builder__card {
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-6);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  max-width: 760px; width: 100%;
}
.builder__card h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: var(--space-2); }
.builder__role {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--paper-ink-dim); margin-bottom: var(--space-5);
}
.builder__bio { font-size: var(--fs-base); line-height: 1.65; max-width: 66ch; margin-bottom: var(--space-4); }
.builder__links { display: flex; flex-wrap: wrap; gap: var(--space-3-5); margin-top: var(--space-5-5); }
/* The ghost button is drawn for the dark ground; on paper it needs ink borders. */
.builder__links .btn--ghost {
  background: transparent; color: var(--paper-ink); border-color: var(--paper-dim);
}
.builder__links .btn--ghost:hover { background: rgba(32, 30, 24, 0.06); }

@media (max-width: 780px) {
  .custody__cols { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ---------- Hero byline: attribution inside the first viewport ---------- */
.hero__byline { margin-top: var(--space-3-5); font-size: var(--fs-sm); color: var(--text-2); }
.hero__byline a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--steel-dim); }
.hero__byline a:hover { text-decoration-color: var(--steel); }
.footer__by { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--text-2); }
.footer__by a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.footer__by a:hover { color: var(--text); }

/* ---------- Fit-test log: the enclosure iteration record ----------
   Paper stock again, but narrower than the spec sheet -- it sits inside a
   manifest row rather than spanning the section. */
.printlog {
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius-sm);
  padding: var(--space-4-5) var(--space-5) var(--space-4);
  margin: var(--space-5) 0 var(--space-1);
  max-width: 460px;
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.7);
}
.printlog__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.printlog__list { display: grid; }
.printlog__row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border-bottom: 1px dashed var(--paper-dim); }
.printlog__row dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper-ink-dim); }
.printlog__row dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-xs); text-align: right; white-space: nowrap; }
/* The assembly is the payoff of the six coupons above it -- weight it. */
.printlog__row--final { border-bottom: 0; margin-top: var(--space-1-5); padding-top: var(--space-3); border-top: 1px solid var(--paper-ink); }
.printlog__row--final dt { color: var(--paper-ink); font-weight: 700; }

/* ---------- Wiring diagram: a real document, presented as one ----------
   The SVG is drawn on white, so it gets a paper mount rather than being
   dropped straight onto the dark ground. */
.wiring { margin: var(--space-8) 0 0; }
.wiring img {
  display: block; width: 100%; height: auto;
  background: #fff; border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
.wiring figcaption {
  margin-top: var(--space-3-5); font-size: var(--fs-sm); color: var(--text-2);
  max-width: 62ch;
}

/* The wiring SVG is legible on a laptop and not on a phone; the caption link is
   the escape hatch, so it needs to read as a link at small sizes. */
.wiring__open { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.wiring__open:hover { color: var(--steel); }

/* ---------- Proof: photographs of the actual object ----------
   Deliberately the first thing in the build section. A reviewer who can verify
   nothing discounts everything, so the evidence leads. */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-bottom: clamp(32px, 5vw, 56px); }
.proof__item { margin: 0; }
.proof__item img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border-soft);
  background: var(--card);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
}
.proof__item figcaption {
  margin-top: var(--space-3); font-family: var(--font-mono);
  font-size: var(--fs-xs); color: var(--text-2); line-height: 1.5;
}
/* The honesty note spans both columns rather than attaching to either photo. */
.proof__note {
  grid-column: 1 / -1; margin: 0; padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  font-size: var(--fs-sm); color: var(--text-2); max-width: 72ch;
}
@media (max-width: 780px) {
  .proof { grid-template-columns: 1fr; gap: var(--space-5); }
}
