/* ============================================================
   X190 — Apple "obsidian gallery vitrine" (refero style da7e5084)
   A dark showroom: full-bleed #000 stages, a single product glowing
   in negative space, one vivid blue CTA, orange eyebrow tags.
   Three-act rhythm: black stage → black stage → white detail bands.
   Depth from surface contrast only — zero CSS elevation.
   ============================================================ */

:root {
  /* Colors — the dark showroom set */
  --color-obsidian: #1d1d1f;      /* text on light, card surfaces on dark */
  --color-frost: #f5f5f7;         /* primary text on dark, light panels   */
  --color-pure-black: #000000;    /* hero + feature stages, footer        */
  --color-paper: #ffffff;         /* light bands                          */
  --color-carbon: #111111;        /* one step above black                 */
  --color-platinum: #86868b;      /* muted body, captions                 */
  --color-graphite: #333336;      /* dark hairlines, secondary fills      */
  --color-silver-mist: #cccccc;   /* button outlines, inactive chrome     */
  --color-smoke: #424245;         /* hairlines on dark                    */
  --color-apple-blue: #0071e3;    /* the single filled CTA color          */
  --color-link-blue: #0066cc;     /* links on white                       */
  --color-halo-blue: #2997ff;     /* links on dark                        */
  --color-signal-orange: #f56900; /* eyebrow tags only — never body/CTA   */
  --color-ember: #b64400;         /* status badge (fail states)           */
  --color-fail: #ff6961;          /* product-render fail state            */
  --color-ok: #30d158;            /* product-render pass state            */

  /* Typography */
  --font-sf-pro-display: 'SF Pro Display', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-sf-pro-text: 'SF Pro Text', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;

  /* Type scale (da7e5084) */
  --text-caption: 12px;  --leading-caption: 16px;  --tracking-caption: -0.12px;
  --text-body-sm: 17px;  --leading-body-sm: 25px;  --tracking-body-sm: -0.374px;
  --text-body: 21px;     --leading-body: 29px;     --tracking-body: 0.231px;

  /* Layout */
  --page-max-width: 1200px;

  /* Radii — the restricted set: 10 / 28 / 36 / 980 */
  --radius-cards: 28px;
  --radius-links: 10px;
  --radius-badges: 980px;
  --radius-buttons: 36px;

  /* Motion — Apple fluid-interface springs */
  --ease-press: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font: 400 var(--text-body-sm)/1.47 var(--font-sf-pro-text);
  letter-spacing: -0.022em;
  color: var(--color-obsidian);
  background: var(--color-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, pre, .numr {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-feature-settings: "numr" 1;
}

::selection { background: rgba(0, 113, 227, 0.35); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-paper); color: var(--color-link-blue); padding: 12px 20px; z-index: 100; }
.skip-link:focus { left: 0; }

/* keyboard focus — the one ring, everywhere */
:focus-visible {
  outline: 2px solid var(--color-apple-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }
.nav a:focus-visible, .nav button:focus-visible { outline-offset: 2px; border-radius: 6px; }

/* html { scroll-behavior } needs the sticky-nav offset */
section[id] { scroll-margin-top: 64px; }

a { color: var(--color-link-blue); text-decoration: none; }
.band-black a:not(.btn):not(.nav-brand) { color: var(--color-halo-blue); }
.tlink { white-space: nowrap; }
.tlink:hover { text-decoration: underline; }

code.inline {
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-graphite);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  color: var(--color-frost);
  font-feature-settings: normal;
}
.band-white code.inline {
  background: var(--color-frost);
  border-color: #d2d2d7;
  color: var(--color-obsidian);
}

/* ---------------- bands (the three-act rhythm) ---------------- */
.band-black { background: var(--color-pure-black); }
.band-white { background: var(--color-paper); }

.section { padding: 110px 0; }
.section-inner { max-width: var(--page-max-width); margin: 0 auto; padding: 0 40px; }

/* Section Headline: 56px SF Pro Display 700, -0.84px at 56px */
.section-head {
  font-family: var(--font-sf-pro-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.015em;
  max-width: 820px;
}
.section-lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.43;
  color: var(--color-platinum);
  margin-top: 16px;
  max-width: 620px;
}
.section-inner > .section-head + .section-lead { margin-bottom: 64px; }
/* dark stages: headlines go frost */
.band-black .section-head { color: var(--color-frost); }
.band-black .footnote { color: var(--color-platinum); }
.band-black .eyebrow { color: var(--color-signal-orange); }

/* ---------------- global nav (black chrome, frosted on scroll) ------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--color-pure-black); transition: background-color 0.4s ease; }
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.nav-inner { max-width: var(--page-max-width); margin: 0 auto; padding: 0 40px; height: 48px; display: flex; align-items: center; gap: 28px; }
.nav-brand { font-family: var(--font-sf-pro-display); font-weight: 600; font-size: var(--text-body-sm); letter-spacing: -0.022em; color: var(--color-frost); }
.nav-links { display: flex; gap: 24px; margin: 0 auto; }
.nav-links a { font-size: var(--text-caption); letter-spacing: -0.12px; color: rgba(245, 245, 247, 0.72); transition: color 0.2s var(--ease-press); padding: 6px 2px; }
.nav-links a:hover { color: var(--color-frost); }
.nav-links a.active { color: var(--color-frost); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-gh { color: var(--color-platinum); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-links); transition: color 0.2s var(--ease-press); }
.nav-gh:hover { color: var(--color-frost); }
.btn-nav { font-size: var(--text-caption); padding: 6px 14px; }

.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 6px; touch-action: manipulation; }
.nav-burger span { display: block; height: 1.5px; width: 100%; background: var(--color-frost); border-radius: 2px; transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 20px;
  background: rgba(17, 17, 17, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-graphite);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-press), transform 0.28s var(--ease-press);
}
.mobile-menu a {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-frost);
  padding: 13px 0;
  border-bottom: 1px solid var(--color-graphite);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------------- buttons (36px pill, one blue per viewport) ---------------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.22px;
  border-radius: var(--radius-buttons);
  padding: 12px 24px;
  transition: transform 0.1s ease-out, background-color 0.25s var(--ease-press), border-color 0.25s var(--ease-press), color 0.25s var(--ease-press);
  will-change: transform;
}
/* pointer-down feedback: Motion's press() owns this when loaded
   (spring from the current value); CSS covers the no-Motion path */
html:not(.js-motion) .btn:active { transform: scale(0.97); }
.btn-filled { background: var(--color-apple-blue); color: var(--color-paper); }
.btn-filled:hover { background: #0077ed; }
.btn-ghost {
  color: var(--color-frost);
  border: 1px solid var(--color-silver-mist);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
/* ghost pills on light bands: the frost ghost is white-on-white there —
   Apple's light-band secondary button: obsidian text, platinum ring */
.band-white .btn-ghost { color: var(--color-obsidian); border-color: var(--color-platinum); }
.band-white .btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }

/* ---------------- product hero (the dark stage, Apple product-page open)
   A full-viewport stage: the product dominates, the lockup anchors
   bottom-left, the action pills bottom-right. Copy yields to the
   artifact. -------- */
.hero {
  padding: 96px 0 44px;
  min-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.eyebrow {
  font-size: var(--text-body-sm);
  font-weight: 600;
  letter-spacing: -0.19px;
  color: var(--color-signal-orange);
  margin-bottom: 14px;
}
/* the product hero's eyebrow is the product line name — Apple styles
   it silver, not accent-colored (Watch Ultra: "WATCH ULTRA 3") */
.hero .eyebrow { color: var(--color-frost); }
.btn-sm { font-size: 13px; letter-spacing: -0.1px; padding: 8px 18px; }
.display {
  font-family: var(--font-sf-pro-display);
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;   /* display sizes tighten; Apple's 80px tracking */
  font-optical-sizing: auto;
  color: var(--color-frost);
}
.display-sm { font-size: clamp(40px, 6.5vw, 64px); }
.hero-stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 24px 24px 0; min-height: 0; }
.hero-lockup {
  max-width: 1248px;
  margin: 56px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  text-align: left;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.43;
  color: var(--color-platinum);
  max-width: 560px;
  margin: 20px 0 0;
}
.hero-sub code.inline { color: var(--color-frost); }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-bottom: 6px; }
.hero-meta { margin-top: 32px; font-size: var(--text-body-sm); color: var(--color-platinum); text-align: center; padding: 0 24px; }
.band-white .hero-meta, .band-white .hero-sub { color: var(--color-platinum); }

/* product image: the receipt render — obsidian floating on pure black */
.receipt-card {
  width: 100%;
  max-width: 960px;
  margin: 0;
  background: var(--color-obsidian);
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-cards);
  overflow: hidden;
  text-align: left;
}
.receipt-caption {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--text-caption);
  letter-spacing: -0.12px;
  color: var(--color-platinum);
  padding: 16px 28px;
  border-bottom: 1px solid var(--color-graphite);
}
.badge-demo {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-paper);
  background: var(--color-ember);
  border-radius: var(--radius-badges);
  padding: 2px 10px;
  letter-spacing: 0.02em;
}
.receipt-cmd {
  font-size: 12px;
  color: var(--color-frost);
  padding: 14px 28px 6px;
  white-space: nowrap;
  overflow: hidden;
}
.receipt-cmd code { font-feature-settings: normal; }
.receipt-cmd .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--color-halo-blue);
  margin-left: 2px;
  vertical-align: -2px;
}
.receipt-cmd.is-done .caret { opacity: 0; }
@keyframes caret-blink { 50% { opacity: 0; } }
.receipt-cmd .caret { animation: caret-blink 0.9s steps(1) infinite; }
.probe-log {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 28px 14px;
}
.probe-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-platinum);
}
.probe-line code { font-feature-settings: normal; }
.pdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.pdot-ok { background: var(--color-ok); }
.pdot-open { background: var(--color-fail); }
.receipt-body {
  border-top: 1px solid var(--color-graphite);
  padding: 24px 28px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-frost);
  overflow-x: auto;
}
.rline { white-space: pre; }
.rindent { padding-left: 24px; }
.rkey, .rpunc, .rhash { color: var(--color-platinum); }
.rstr { color: var(--color-frost); }
.rbool { color: var(--color-platinum); }
.rstatus { font-weight: 700; }
.rstatus-fail { color: var(--color-fail); }
.receipt-verdict {
  display: flex; align-items: center;
  padding: 14px 28px 18px;
  font-size: 14px;
  letter-spacing: -0.22px;
  color: var(--color-frost);
  border-top: 1px solid var(--color-graphite);
}
.dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; flex: none; }
.dot-fail { background: var(--color-fail); }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 105, 97, 0.45); }
  55% { box-shadow: 0 0 0 5px rgba(255, 105, 97, 0); }
}
.receipt-verdict .dot { animation: dot-pulse 2.4s ease-out 2.2s infinite; }

/* ---------------- grids & cards ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* pre/monospace children must never blow the column out on narrow screens */
.grid-2 > *, .grid-3 > *, .split > * { min-width: 0; }

/* Feature Showcase Card: 28px radius, no shadow, no border.
   On black stages the card is obsidian; on white bands it is frost. */
.card { border-radius: var(--radius-cards); padding: 40px; transition: transform 0.35s var(--ease-press); }
.band-black .card { background: var(--color-obsidian); }
.band-white .card { background: var(--color-frost); }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); }
  .band-white .card:hover { background: #fbfbfd; }
}
.card h3 { font-family: var(--font-sf-pro-display); font-size: 24px; font-weight: 600; line-height: 1.17; letter-spacing: -0.24px; margin-bottom: 10px; }
.band-black .card h3 { color: var(--color-frost); }
.card p { font-size: var(--text-body-sm); color: var(--color-platinum); line-height: 1.47; }
.card p strong, .factlist strong { font-weight: 600; }
.band-black .card p strong { color: var(--color-frost); }
.band-white .card p strong, .band-white .factlist strong { color: var(--color-obsidian); }
.card-tall { padding: 44px 40px; }

/* ---------------- highlights gallery (Apple "Get the highlights.")
   Full-bleed horizontal track, native snap scrolling (1:1 with the
   finger, rubber-banded edges), pagination pill + pause control.
   The card is the vitrine: big, quiet, one idea at a time. -------- */
:root { --gallery-inset: max(24px, calc(50vw - 490px)); }
.gallery { margin-top: 56px; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(640px, 74%);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gallery-inset);
  padding-inline: var(--gallery-inset);
  margin-inline: calc(50% - 50vw);   /* full-bleed out of .section-inner */
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--color-halo-blue); outline-offset: -2px; }
.gallery-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: 56px;
}
.gallery-card:hover { transform: none; }   /* the vitrine does not lift; the stage moves */
.gallery-card .card-num { font-size: 15px; margin-bottom: 24px; }
.gallery-card h3 { font-size: 32px; letter-spacing: -0.38px; margin-bottom: 14px; }
.gallery-card p { font-size: 17px; line-height: 1.53; max-width: 46ch; }
.gallery-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.gallery-ind {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 9px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
}
.band-white .gallery-ind { background: rgba(0, 0, 0, 0.05); }
.g-seg {
  appearance: none;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.g-seg::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.35s var(--ease-press), background-color 0.35s var(--ease-press);
}
.band-white .g-seg::before { background: rgba(0, 0, 0, 0.22); }
.g-seg[aria-current="true"]::before { width: 26px; background: var(--color-frost); }
.band-white .g-seg[aria-current="true"]::before { background: var(--color-carbon); }
.gallery-pause {
  width: 36px;
  height: 36px;
  border-radius: 980px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-frost);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
}
.band-white .gallery-pause { background: rgba(0, 0, 0, 0.05); color: var(--color-obsidian); }
.gallery-pause svg { width: 11px; height: 11px; fill: currentColor; }
.gallery-pause .icon-play { display: none; }
.gallery:not(.is-playing) .gallery-pause .icon-play { display: block; }
.gallery:not(.is-playing) .gallery-pause .icon-pause { display: none; }
@media (prefers-reduced-transparency: reduce) {
  .gallery-ind, .gallery-pause { background: rgba(255, 255, 255, 0.18); }
  .band-white .gallery-ind, .band-white .gallery-pause { background: rgba(0, 0, 0, 0.12); }
}

.card-num { display: block; font-size: var(--text-caption); font-weight: 600; color: var(--color-platinum); margin-bottom: 20px; }
.card em { font-style: normal; font-weight: 500; }
.band-black .card em { color: var(--color-frost); }
.band-white .card em { color: var(--color-obsidian); }

.tag {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--color-signal-orange);
  margin-bottom: 14px;
}

/* measurement showcase (inside the white findings band) */
.measure { margin-top: 72px; background: var(--color-frost); border-radius: var(--radius-cards); padding: 56px 48px; }
.measure h3 { font-family: var(--font-sf-pro-display); font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.011em; color: var(--color-obsidian); }
.measure > p { color: var(--color-platinum); max-width: 640px; margin-top: 12px; line-height: 1.47; }
.measure-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-num { font-family: var(--font-sf-pro-display); font-size: 56px; font-weight: 700; line-height: 1.07; letter-spacing: -0.84px; color: var(--color-obsidian); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; letter-spacing: -0.22px; color: var(--color-platinum); line-height: 1.43; max-width: 210px; }
.callout { margin-top: 40px; background: var(--color-paper); border-radius: var(--radius-cards); padding: 24px 28px; display: flex; align-items: flex-start; gap: 16px; }
.callout p { font-size: var(--text-body-sm); color: var(--color-platinum); line-height: 1.47; }
.callout strong { color: var(--color-obsidian); font-weight: 600; }
.badge-ember { flex: none; font-size: var(--text-caption); font-weight: 500; color: var(--color-ember); background: rgba(182, 68, 0, 0.08); border-radius: var(--radius-badges); padding: 4px 14px; margin-top: 2px; letter-spacing: -0.12px; }

/* receipts split (dark stage) — factlist | side, verify block full-width below */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.factlist { list-style: none; display: flex; flex-direction: column; gap: 22px; margin-bottom: 0; }
.factlist li { font-size: var(--text-body-sm); color: var(--color-platinum); line-height: 1.47; padding-left: 24px; position: relative; }
.factlist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-graphite); }
.split-side { padding: 40px; background: var(--color-obsidian); border: 1px solid var(--color-graphite); border-radius: var(--radius-cards); }
.split-side h3 { font-family: var(--font-sf-pro-display); font-size: var(--text-body-sm); font-weight: 600; letter-spacing: 0.011em; margin-bottom: 12px; color: var(--color-frost); }
.split-side ul { list-style: none; margin-bottom: 28px; }
.split-side li { font-size: var(--text-body-sm); color: var(--color-platinum); line-height: 1.47; padding: 8px 0; border-bottom: 1px solid var(--color-smoke); }
.split-side li:last-child { border-bottom: none; }
.split-side code.inline { background: var(--color-pure-black); }

/* code blocks (developer surfaces — the product render treatment) */
.codeblock { background: var(--color-obsidian); border: 1px solid var(--color-graphite); border-radius: var(--radius-cards); overflow: hidden; margin-top: 16px; }
.codeblock-head, .codeblock-foot { font-size: var(--text-caption); letter-spacing: -0.12px; color: var(--color-platinum); padding: 12px 20px; }
.codeblock-head { border-bottom: 1px solid var(--color-graphite); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.codeblock-foot { border-top: 1px solid var(--color-graphite); line-height: 1.5; }
.codeblock pre { padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.6; color: var(--color-frost); }
.c-cmt, .c-out { color: #6e6e73; }
.c-cmd { color: var(--color-halo-blue); }
.c-key { color: var(--color-platinum); }
.c-str { color: var(--color-frost); }
.c-fail { color: var(--color-fail); font-weight: 600; }

/* copy-to-clipboard chip */
.copy-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-platinum);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-badges);
  padding: 4px 12px;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.2s var(--ease-press), background-color 0.2s var(--ease-press), transform 0.1s ease-out;
}
.copy-btn:hover { color: var(--color-frost); background: rgba(255, 255, 255, 0.12); }
html:not(.js-motion) .copy-btn:active { transform: scale(0.95); }
.copy-btn.copied { color: var(--color-ok); border-color: rgba(48, 209, 88, 0.4); }

.code-strip { display: none; } /* superseded by .terminal */
.code-prompt { color: #6e6e73; user-select: none; }
.code-comment { color: #6e6e73; }

/* ---------------- terminal windows (the product render, typed live) --- */
.terminal {
  margin: 40px 0 0;
  max-width: 640px;
  background: var(--color-carbon);
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-cards);
  overflow: hidden;
  text-align: left;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-graphite);
}
.tl { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tl:nth-child(1) { background: #ff5f57; }
.tl:nth-child(2) { background: #febc2e; }
.tl:nth-child(3) { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--color-platinum);
}
.terminal-body {
  padding: 18px 20px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-frost);
  white-space: normal;
  overflow-wrap: anywhere;
}
.terminal-body code { font-feature-settings: normal; }
.terminal-cta { margin-inline: auto; max-width: 560px; }

.mini-head { font-family: var(--font-sf-pro-display); font-size: 21px; font-weight: 600; letter-spacing: -0.24px; margin-bottom: 4px; }
.band-white .mini-head { color: var(--color-obsidian); }
.band-black .mini-head { color: var(--color-frost); }
.footnote { margin-top: 48px; font-size: var(--text-body-sm); color: var(--color-platinum); max-width: 720px; line-height: 1.47; }

/* ---------------- CTA + footer (return to the dark stage) ---------------- */
.cta-section { padding: 130px 0 140px; text-align: center; }
.cta-section .hero-cta { justify-content: center; margin-top: 32px; }
#cta .hero-meta { margin-top: 26px; }
#cta .display-sm { color: var(--color-frost); }

/* ---------------- Buy: three cards ----------------
   The tool itself is free — the middle card is the paid tier, the only
   filled CTA in the row. Prices are owner-set placeholders. */
#buy { text-align: center; }
#buy .section-lead { margin-bottom: 56px; }
.price-card { display: flex; flex-direction: column; text-align: center; padding: 48px 40px; }
.price-tier { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-signal-orange); margin-bottom: 14px; }
.price-num { font-size: 56px; font-weight: 700; letter-spacing: -0.84px; line-height: 1; color: var(--color-obsidian); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.price-card h3 { margin-bottom: 10px; }
.price-card p:not(.price-tier):not(.price-num) { flex: 1 1 auto; }
.report-figure { margin: 28px 0 8px; }
.report-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.report-table th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.15); }
.report-table td { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.report-table td.numr { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; width: 80px; }
@media (max-width: 640px) { .report-table { font-size: 14px; } }
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin: 40px 0 12px; }
.legal p { line-height: 1.65; margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { line-height: 1.65; margin-bottom: 10px; }
.legal-date { font-size: 13px; opacity: 0.6; margin-bottom: 8px; }
.legal .section-head { margin-bottom: 10px; }
.btn-quiet { display: block; text-align: center; font-size: 13px; margin-top: 10px; opacity: 0.7; text-decoration: underline; text-underline-offset: 3px; }
.btn-quiet:hover { opacity: 1; }
.checkout-note { font-size: 13px; opacity: 0.72; margin-bottom: 14px; }
.withdrawn-note { max-width: 780px; margin-top: 24px; border-top: 1px solid rgba(0,0,0,0.12); padding-top: 16px; opacity: 0.85; }
.price-note { font-size: 13px; line-height: 1.5; opacity: 0.72; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 12px; margin-top: 4px; }
.price-per { font-size: 20px; font-weight: 600; letter-spacing: -0.2px; color: var(--color-slate, #6b7280); }
.contact-routes { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.contact-routes .btn { flex: 0 1 auto; }
@media (max-width: 640px) { .contact-routes { flex-direction: column; } .contact-routes .btn { width: 100%; } }
.btn-block { display: block; margin-top: 28px; }

/* ---------------- Contact: the form (Netlify Forms, no backend) ---------------- */
#contact { text-align: center; }
#contact .section-lead { margin: 0 auto 56px; }
.contact-inner { max-width: 720px; }
.contact-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: block; margin-bottom: 20px; }
.form-field > span { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.22px; color: var(--color-frost); margin-bottom: 8px; }
.form-field input,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-cards);
  padding: 14px 18px;
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.22px;
  color: var(--color-frost);
  transition: border-color 0.25s var(--ease-press), background 0.25s var(--ease-press);
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--color-halo-blue); background: rgba(255, 255, 255, 0.12); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--color-platinum); }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-alt { font-size: 14px; letter-spacing: -0.22px; color: var(--color-platinum); }
.contact-thanks { padding: 40px 0 8px; }
.contact-thanks p { color: var(--color-frost); font-size: var(--text-body); line-height: 1.47; }
.contact-thanks .thanks-head { font-family: var(--font-sf-pro-display); font-size: 28px; font-weight: 700; letter-spacing: -0.34px; margin-bottom: 10px; }

@media (prefers-reduced-transparency: reduce) {
  .form-field input, .form-field textarea { background: var(--color-carbon); border-color: var(--color-graphite); }
}
@media (prefers-contrast: more) {
  .form-field input, .form-field textarea { background: var(--color-pure-black); border-color: var(--color-frost); }
  .form-field > span { color: var(--color-paper); }
}

.footer { padding: 48px 0 56px; }
.footer-brand { font-family: var(--font-sf-pro-display); font-size: var(--text-body); font-weight: 600; color: var(--color-frost); margin-bottom: 10px; }
.footer-note { font-size: 14px; letter-spacing: -0.22px; color: var(--color-platinum); max-width: 520px; line-height: 1.43; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.footer-links a { font-size: 14px; letter-spacing: -0.22px; color: var(--color-halo-blue); }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { font-size: var(--text-caption); letter-spacing: -0.12px; color: var(--color-platinum); line-height: 1.33; }

/* ---------------- motion ----------------
   Springs are driven by Motion (motion.js): bounce 0 (critically damped)
   for reveals, staggered entrances, counting stats, and the hero receipt
   probe sequence. CSS below is the no-JS / no-Motion fallback. */
.js-motion .reveal { opacity: 0; }

/* content must never be lost to an un-fired animation */
@media print {
  .js-motion .reveal { opacity: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .reveal { opacity: 1; }
  .btn, .nav, .nav-burger span { transition-duration: 0.01ms; }
  .receipt-cmd .caret, .receipt-verdict .dot { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled { background: var(--color-carbon); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mobile-menu { background: var(--color-carbon); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  body { color: #000; }
  .nav.scrolled { background: var(--color-pure-black); }
  .btn-ghost { border-color: var(--color-paper); }
  .hero-sub, .section-lead, .card p, .factlist li, .split-side li { color: #a1a1a6; }
  .band-white .card p, .band-white .section-lead, .callout p { color: var(--color-obsidian); }
}

/* touch devices: 44px targets, no hover-only affordances */
@media (pointer: coarse) {
  .nav-burger { width: 44px; height: 44px; }
  .nav-gh { width: 44px; height: 44px; }
  .btn { padding: 13px 24px; }
  .copy-btn { padding: 6px 14px; font-size: 12px; }
  .footer-links a, .mobile-menu a, .nav-links a { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1068px) {
  .section { padding: 90px 0; }
  .measure-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .price-card { padding: 40px 28px; }
  .price-num { font-size: 44px; }
}

@media (max-width: 734px) {
  .section { padding: 72px 0; }
  .section-inner { padding: 0 24px; }
  .nav-inner { padding: 0 24px; gap: 16px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { padding: 8px 24px 20px; }
  .hero { padding: 64px 0 40px; }
  .hero-stage { padding: 0 20px; }
  .hero-lockup { margin-top: 40px; padding: 0 20px; }
  .hero-cta { padding-bottom: 0; }
  .btn { text-align: center; min-width: 210px; }
  .btn-sm { min-width: 0; }
  /* CTA pill row: three pills can't share a line at phone width — stack them */
  .cta-section .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-section .hero-cta .btn { width: 100%; min-width: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .card { padding: 28px; }
  .price-card { padding: 36px 28px; }
  .price-num { font-size: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  :root { --gallery-inset: 24px; }
  .gallery { margin-top: 40px; }
  .gallery-track { grid-auto-columns: 84%; gap: 14px; }
  .gallery-card { min-height: 260px; padding: 32px 28px; }
  .gallery-card h3 { font-size: 26px; letter-spacing: -0.3px; }
  .gallery-card p { font-size: 15px; }
  .card-tall { padding: 28px; }
  .measure { padding: 32px 24px; }
  .measure-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 40px; letter-spacing: -0.6px; }
  .callout { flex-direction: column; }
  .receipt-card { margin-top: 48px; }
  .receipt-cmd, .probe-log { padding-left: 20px; padding-right: 20px; }
  .receipt-cmd { font-size: 10px; }
  .probe-line { font-size: 10px; }
  .receipt-body { font-size: 11px; padding: 18px 20px 12px; }
  .receipt-caption, .receipt-verdict { padding-left: 20px; padding-right: 20px; }
  .terminal { max-width: 100%; }
  .terminal-body { font-size: 13px; padding: 14px 16px; }
  .terminal-head { padding: 10px 14px; }
  /* on phone the burger menu carries the GitHub link — the pill would crowd the bar */
  .btn-nav { display: none; }
  .cta-section { padding: 96px 0; }
  .section-lead { font-size: 17px; }
  .hero-sub { font-size: 17px; }
}