/* knuckly.app · dark, product-led, short. Ember tokens from mobile/src/theme/palettes.ts.
   Built by site/build.cjs into public/css/site.<hash>.css ({{file …}} becomes the hashed font URL).
   Home page (16 October 2026): one line, one action, then a few sections that each say one thing and show the real
   app; Barlow Condensed for the big lines, Inter for the rest. Orange: the H1 word, the actions, links, the gear in a
   photo. Motion: CSS only, inside prefers-reduced-motion: no-preference; never on the H1 or the lead. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.3100e775e8.woff2") format("woff2-variations"), url("/fonts/inter-latin-wght.3100e775e8.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-800.2515494e8c.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback while Inter loads, so the swap barely moves the layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  /* Ember, dark (build.cjs checks every text pair against WCAG AA) */
  --ink: #0E1116;
  --card: #181C23;
  --control: #222731;
  --bone: #F5F2ED;
  --text2: #B0B6C2;
  --muted: #98A0AE;
  --link: #FF9D63;
  --accent: #FF7A33;
  --on-accent: #1C0E04;
  --boxing: #F0506E;
  --kickboxing: #F5BE12;
  --muay-thai: #34ECC4;
  --strength: #69A7FF;
  --hair: rgba(245, 242, 237, .09);
  --hair-strong: rgba(245, 242, 237, .16);
  --screen-line: rgba(245, 242, 237, .10);
  --tint: rgba(245, 242, 237, .04);
  --tint-2: rgba(245, 242, 237, .07);

  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;

  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --container: 1312px;
  --section: 72px;
  --feature: 96px;
  --r-card: 22px;
  --r-large: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-screen: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 60px 120px -48px rgba(0, 0, 0, .7), 0 2px 16px rgba(0, 0, 0, .4);
}
@media (min-width: 600px)  { :root { --gutter: 24px; --section: 96px; --feature: 128px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section: 128px; --feature: 176px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; color: var(--bone); }
button, input { font: inherit; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:active { opacity: .7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  padding: 12px 16px; border-radius: 12px;
  background: var(--bone); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus-visible { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 16px; line-height: 1.2; letter-spacing: .08em; color: var(--text2);
  text-wrap: balance;
}
.eyebrow::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--bone); border-radius: 2px; display: none; }

h1 {
  font-size: clamp(40px, 10.6vw, 44px);
  line-height: 1.02; letter-spacing: -.022em; font-weight: 800;
  text-wrap: balance;
}
h1 .accent { display: block; color: var(--accent); }

h2 {
  max-width: 20ch;
  font-size: clamp(30px, 8vw, 36px); line-height: 1.06; letter-spacing: -.02em; font-weight: 800;
  text-wrap: balance;
}
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }

/* The home page's big lines: the app's own title face */
.home h1, .home h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.005em; }
.home h2 { max-width: 12ch; font-size: clamp(46px, 13vw, 60px); line-height: .92; }

.lead {
  font-size: 19px; line-height: 1.5; letter-spacing: -.005em; color: var(--text2);
  max-width: 60ch; text-wrap: pretty;
}
.body p { color: var(--text2); max-width: 62ch; text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; border-radius: 8px; }
.brand img { width: 104px; height: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--bone); font-size: 16px; font-weight: 600; text-decoration: none;
  border-radius: 999px;
  transition: background-color .16s var(--ease);
}
.nav a:hover { background: var(--tint-2); }
.nav li:last-child a { margin-right: -14px; }

/* ---------- Waitlist form (the try-again page) ---------- */
.waitlist { position: relative; max-width: 560px; }
.field-label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--bone); }
.field-row { display: grid; gap: 8px; }
.field {
  width: 100%; min-height: 52px; padding: 0 18px;
  font-size: 17px; color: var(--bone);
  background: var(--card);
  border: 1px solid var(--hair-strong); border-radius: 14px;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field:hover { border-color: rgba(245, 242, 237, .28); }
.field:focus-visible { border-color: transparent; border-radius: 14px; }
.field:user-invalid { border-color: var(--link); }
.field:disabled { opacity: .5; cursor: not-allowed; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-size: 17px; font-weight: 700; letter-spacing: -.005em; line-height: 1.2;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: filter .16s var(--ease), transform .16s var(--ease);
}
/* The smallest phones (320 px): "Download on the App Store" fits on one line without a sideways scroll. */
@media (max-width: 359px) { .btn { padding: 0 14px; gap: 8px; font-size: 16px; } }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { opacity: .7; transform: translateY(1px); }
.btn:focus-visible { border-radius: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn-quiet {
  color: var(--bone); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--hair-strong);
}
.btn-quiet:hover { background: rgba(245, 242, 237, .1); filter: none; }

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.store-note { font-size: 15px; line-height: 1.45; color: var(--text2); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text2); }
.consent a { font-weight: 600; white-space: nowrap; }

/* ---------- Screens: real 390 × 844 captures, frameless, with the phone's own corner ---------- */
.screen {
  position: relative;
  aspect-ratio: 780 / 1688;
  border-radius: 12.5% / 5.8%;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--screen-line), var(--shadow-screen);
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
/* The lower part of a screen: its top dissolves into the page */
.screen-cut {
  aspect-ratio: 780 / 1218;
  border-radius: 0 0 12.5% 12.5% / 0 0 8% 8%;
  background: none; box-shadow: none; overflow: visible;
  filter: drop-shadow(0 30px 36px rgba(0, 0, 0, .6));
}
.screen-cut img {
  border-radius: 0 0 12.5% 12.5% / 0 0 8% 8%; /* not inherit: the img's parent is the <picture> */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}
.screen-cut::after {
  /* the screen's edge on its sides and bottom, fading out with the top */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid var(--screen-line); border-top: 0; border-radius: inherit;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40%);
  mask-image: linear-gradient(180deg, transparent 0, #000 40%);
}
/* A piece of a screen: the app's own ground around it fades out at the edges */
.crop img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 16px 0 var(--feature); overflow-x: clip; }
.hero::before {
  /* one warm lamp above the phone in a cool dark room */
  content: ""; position: absolute; z-index: -1; inset: -320px 0 0; pointer-events: none;
  background:
    radial-gradient(40% 34% at 74% 30%, rgba(255, 196, 150, .08), rgba(255, 196, 150, 0) 100%),
    radial-gradient(36% 34% at 72% 62%, rgba(255, 122, 51, .10), rgba(255, 122, 51, 0) 100%);
}
.hero-grid { display: grid; gap: 56px; }
.hero h1 { margin-top: 16px; max-width: none; font-size: clamp(68px, 22vw, 112px); line-height: .86; }
.hero .lead { margin-top: 28px; max-width: 21em; }
.hero .store { margin-top: 32px; }
.hero-phone { justify-self: center; width: min(72vw, 300px); }
.hero-phone figcaption { margin-top: 20px; font-size: 15px; line-height: 1.45; color: var(--text2); text-align: center; text-wrap: balance; }

/* ---------- Feature sections: one headline, one line, the app ---------- */
.feature { position: relative; padding-block: var(--feature); }
.feature-grid { display: grid; gap: 48px; align-items: center; }
.feature-copy p { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--text2); max-width: 32ch; text-wrap: pretty; }
.feature-copy p + p { margin-top: 12px; }

/* Two screens, the second set lower. Phones: a scroll-snap row (one screen and the next one's edge); from 600 px side
   by side. */
.duo {
  --drop: 40px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 66vw; column-gap: 16px; align-items: start;
  margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) calc(var(--drop) + 24px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
}
.duo:focus-visible { outline-offset: -2px; border-radius: 0; }
.duo > * { scroll-snap-align: start; }
.duo > :nth-child(2) { transform: translateY(var(--drop)); }
.duo > .screen-cut { align-self: end; transform: none; }

/* Photos sit in the page: their black is the page's ink (lighten), and they fade into it at the edges */
.knox-band, .closing-media { background: var(--ink); isolation: isolate; }
.knox-band img, .closing-media img { mix-blend-mode: lighten; }

/* Knox: the ring photo opens the section and fades into the page; the copy and screens rise into it */
.feature-knox { padding-top: 0; }
.knox-band { position: relative; z-index: -1; aspect-ratio: 4 / 3; overflow: hidden; }
.knox-band img { width: 100%; height: 100%; object-fit: cover; }
.knox-band::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(14, 17, 22, 0) 22%),
    linear-gradient(0deg, var(--ink) 0%, rgba(14, 17, 22, .7) 30%, rgba(14, 17, 22, 0) 62%);
}
.feature-knox .feature-grid { margin-top: -72px; }
.knox { display: grid; gap: 12px; margin-top: 32px; max-width: 420px; }
.knox-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: .08em; color: var(--bone); }
.knox audio { display: block; width: 100%; height: 48px; border-radius: 999px; }
.knox-line { font-size: 16px; line-height: 1.45; color: var(--text2); }

/* Fight night: the countdown card and Today's tile. Phones: the tile under the card's lower corner; from 600 px it
   comes out of the card's top corner, over the photo and clear of the text (which ends at 70% of the card's width). */
.feature-fight::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(34% 36% at 30% 42%, rgba(245, 242, 237, .04), rgba(245, 242, 237, 0) 100%);
}
.cards { position: relative; width: 100%; max-width: 600px; justify-self: center; padding-bottom: 71%; }
.crop-tile { position: absolute; right: 0; bottom: 0; width: 52%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .65)); }

/* Also in the bag: three screens with a few words; a scroll-snap row until 1024 px */
.bag { padding-block: var(--feature); }
.trio-scroll { margin-top: 40px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.trio-scroll:focus-visible { outline-offset: -2px; border-radius: 0; }
.trio { display: grid; grid-auto-flow: column; grid-auto-columns: 58vw; column-gap: 16px; width: max-content; padding: 8px var(--gutter) 24px; }
.trio li { scroll-snap-align: start; }
.trio figcaption { margin-top: 18px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--bone); }

/* ---------- Generic section (FAQ) ---------- */
.section { padding-block: var(--section); }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid var(--hair-strong); }
.faq-list details { border-bottom: 1px solid var(--hair-strong); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  border-radius: 8px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.faq-list summary:hover h3 { color: #fff; }
.faq-i {
  width: 36px; height: 36px; flex: none; padding: 9px; border-radius: 50%;
  fill: none; stroke: var(--bone); stroke-width: 2; stroke-linecap: round;
  background: var(--tint-2);
  transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.faq-list summary:hover .faq-i { background: rgba(245, 242, 237, .12); }
.faq-list details[open] .faq-i { transform: rotate(45deg); }
.answer { padding: 0 48px 24px 0; }
.answer p { color: var(--text2); max-width: 64ch; }

/* Closing */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.closing-media { position: relative; aspect-ratio: 4 / 3.4; }
.closing-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(14, 17, 22, 0) 24%),
    linear-gradient(0deg, var(--ink) 0%, rgba(14, 17, 22, .6) 30%, rgba(14, 17, 22, 0) 60%);
}
.closing-media img { width: 100%; height: 100%; object-fit: cover; }
.closing-inner { position: relative; padding-bottom: var(--section); margin-top: -64px; }
.closing .store { margin-top: 32px; }

/* Photo bands on the short pages (404, waitlist) */
.band { position: relative; border-radius: var(--r-large); overflow: hidden; background: var(--card); outline: 1px solid var(--hair); outline-offset: -1px; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: 40px 0 48px; padding-bottom: max(48px, env(safe-area-inset-bottom)); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -12px; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--bone); font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 8px;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-lines { margin-top: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--text2); }

/* ---------- Docs: /how-we-count/, /support/, privacy, terms ---------- */
.doc { padding: 24px 0 var(--section); }
.doc-grid { display: grid; gap: 32px; }
.doc-head h1 { margin-top: 16px; font-size: clamp(36px, 9vw, 60px); line-height: 1.04; max-width: 18ch; }
.doc-head .lead { margin-top: 20px; }
.doc-toc { display: none; }
.doc-body { max-width: 70ch; }
.doc-body h2 { max-width: none; margin-top: 56px; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; scroll-margin-top: 24px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin-top: 32px; font-size: 19px; }
.doc-body p, .doc-body li { color: var(--text2); }
.doc-body p { margin-top: 16px; }
.doc-body strong { color: var(--bone); }
.doc-body ul { margin-top: 16px; display: grid; gap: 10px; }
.doc-body ul li { position: relative; padding-left: 22px; }
.doc-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.doc-body code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; color: var(--bone); background: var(--tint-2); padding: 1px 6px; border-radius: 6px; }
.doc-body a { overflow-wrap: anywhere; }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--hair); border-radius: 16px; }
.table-wrap:focus-visible { outline-offset: 2px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.doc-body th, .doc-body td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hair); color: var(--text2); vertical-align: top; }
.doc-body thead th { color: var(--bone); font-weight: 600; background: var(--tint); }
.doc-body tbody tr:last-child td { border-bottom: 0; }
.doc-body td.n { text-align: right; color: var(--bone); white-space: nowrap; }
.callout { margin-top: 20px; padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--hair); }
.callout p:first-child { margin-top: 0; }

/* ---------- Short pages: waitlist results, 404 ---------- */
.short-main { padding: 40px 0 var(--section); }
.short-card { max-width: 640px; }
.short-card h1 { margin-top: 16px; font-size: clamp(36px, 9vw, 60px); line-height: 1.04; }
.short-card h1 .accent { display: inline; color: var(--accent); }
.short-card .lead { margin-top: 20px; }
.short-card .body { margin-top: 12px; }
.short-card .waitlist { margin-top: 32px; }
.short-card .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.short-photo { margin-top: 48px; aspect-ratio: 16 / 9; }
.short-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 17, 22, .55), rgba(14, 17, 22, 0) 55%);
}

/* ---------- ≥ 600 px ---------- */
@media (min-width: 600px) {
  .eyebrow::before { display: block; }
  h2 { font-size: clamp(34px, 5.4vw, 44px); }
  .home h2 { font-size: clamp(60px, 9vw, 76px); }
  .field-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hero h1 { font-size: clamp(104px, 17vw, 132px); }
  .hero-phone { width: 320px; }
  .feature-copy p { font-size: 20px; }
  .duo {
    --drop: 64px;
    grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
    width: 100%; max-width: 632px; justify-self: center; margin-inline: auto; padding: 0 0 var(--drop); overflow: visible;
  }
  .knox-band { aspect-ratio: 21 / 9; }
  .feature-knox .feature-grid { margin-top: -96px; }
  .cards { padding: 9% 0 0; }
  .crop-tile { top: 0; bottom: auto; right: -2%; width: 29%; }
  .trio { grid-auto-columns: 240px; column-gap: 24px; }
  .closing-media { aspect-ratio: 16 / 9; }
  .answer { padding-right: 64px; }
  .doc-body h2 { font-size: 30px; }
}

/* ---------- ≥ 1024 px ---------- */
@media (min-width: 1024px) {
  .header-row { min-height: 96px; }
  .brand img { width: 112px; }
  .eyebrow { font-size: 17px; }
  h2 { max-width: none; font-size: clamp(40px, 3.7vw, 52px); }
  .home h2 { max-width: 12ch; font-size: clamp(72px, 6.2vw, 96px); }
  h3 { font-size: 22px; }
  .lead { font-size: 21px; }
  .field, .btn { min-height: 56px; }

  /* Hero: the line left, the phone right */
  .hero { padding: 24px 0 var(--feature); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: 96px; align-items: center; min-height: min(820px, calc(100svh - 120px)); }
  .hero h1 { font-size: clamp(120px, 11.5vw, 176px); }
  .hero .lead { margin-top: 48px; }
  .hero .store { margin-top: 40px; }
  .hero-phone { width: clamp(300px, 25vw, 360px); margin-right: 5vw; }

  /* Features: copy and screens side by side; .flip puts the screens first */
  .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 96px; }
  .feature-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .flip .feature-copy { order: 2; }
  .feature-copy p { margin-top: 28px; font-size: 22px; }
  .feature-copy p + p { margin-top: 14px; }
  .duo { --drop: 88px; column-gap: 32px; }
  .knox-band { aspect-ratio: auto; height: min(640px, 44vw); }
  .knox-band img { object-position: 70% 50%; }
  .knox-band::after {
    background:
      linear-gradient(180deg, var(--ink) 0%, rgba(14, 17, 22, 0) 24%),
      linear-gradient(0deg, var(--ink) 0%, rgba(14, 17, 22, .55) 34%, rgba(14, 17, 22, 0) 64%),
      linear-gradient(90deg, var(--ink) 0%, rgba(14, 17, 22, 0) 30%);
  }
  .feature-knox .feature-grid { margin-top: -260px; align-items: end; }
  .feature-knox .feature-copy { padding-bottom: 40px; }
  .cards { max-width: 640px; }
  .crop-tile { right: -5%; width: 28%; }

  /* Bag: one centred row of three */
  .bag h2 { margin-inline: auto; max-width: none; text-align: center; }
  .trio-scroll { margin-top: 64px; overflow: visible; }
  .trio { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; column-gap: 72px; width: auto; padding: 0 var(--gutter); }
  .trio figcaption { text-align: center; font-size: 18px; }

  /* FAQ */
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 96px; align-items: start; }
  .faq-grid h2 { position: sticky; top: 32px; }
  .faq-list summary h3 { font-size: 19px; }

  /* Closing */
  .closing { min-height: 640px; display: flex; align-items: center; }
  .closing-media { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
  .closing-media::after {
    background:
      linear-gradient(180deg, var(--ink) 0%, rgba(14, 17, 22, 0) 22%),
      linear-gradient(0deg, var(--ink) 0%, rgba(14, 17, 22, 0) 22%),
      linear-gradient(90deg, var(--ink) 0%, rgba(14, 17, 22, .7) 36%, rgba(14, 17, 22, 0) 64%);
  }
  .closing-inner { margin: 0 auto; padding-block: var(--section); }
  .closing-inner > * { max-width: 560px; }

  /* Docs */
  .doc { padding-top: 40px; }
  .doc-grid { grid-template-columns: 240px minmax(0, 1fr); column-gap: 96px; row-gap: 56px; }
  .doc-head { grid-column: 1 / -1; }
  .doc-toc { display: block; position: sticky; top: 32px; align-self: start; }
  .doc-toc-title { font-size: 15px; font-weight: 700; color: var(--bone); }
  .doc-toc ol { margin-top: 12px; display: grid; gap: 2px; border-left: 1px solid var(--hair-strong); }
  .doc-toc a {
    display: flex; align-items: center; min-height: 40px; padding: 6px 0 6px 16px; margin-left: -1px;
    font-size: 15px; line-height: 1.35; color: var(--text2); text-decoration: none; border-left: 2px solid transparent;
  }
  .doc-toc a:hover { color: var(--bone); border-left-color: var(--text2); }

  .short-main { padding-top: 72px; }
}

/* ---------- Motion (never on the H1 or the lead) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .hero .store { animation: fade-in .25s var(--ease) both; }
  .hero-phone .screen { animation: rise .6s var(--ease) .1s both; }
  .hero-phone figcaption { animation: fade-in .4s var(--ease) .4s both; }
  @supports (animation-timeline: view()) {
    /* screens rise as they come into view; the second of a pair keeps its drop (an outer element moves) */
    .duo, .cards, .trio-scroll { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .crop-tile { animation: rise linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  }
}
