/* gramrep.com, version 3 (site-v3). The app's own language (PaletteValues.swift): Apple's system type, graphite and
   white for the accent, the Health macro colours, flat surfaces, hairlines and capsule controls. Always light, as the
   owner asked (2026-10-22: "the app looks much nicer on white"); only the Apple Watch band is dark, as the watch is.
   Motion: one curve, transform and opacity only, never in the first screen, and nothing that moves under
   prefers-reduced-motion (the last section of this file). */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --surface: #f5f5f7;
  --surface-2: #ffffff;
  --text: #1d1d1f;
  --text-2: #515156;
  --text-3: #636366;
  --hairline: #d2d2d7;
  --fill: #e8e8ed;
  --accent: #2c2c2e;
  --on-accent: #ffffff;
  --protein: #c43a63;
  --carbs: #0071e3;
  --fat: #9c4fb0;
  --success: #007b83;
  --error: #be3433;
  --shadow-photo: 0 40px 80px -32px rgb(0 0 0 / 0.42), 0 16px 32px -16px rgb(0 0 0 / 0.22);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
  --radius: 22px;
  --radius-large: 30px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --space: clamp(80px, 12vw, 160px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --quick: 160ms;
  --slow: 700ms;
  /* A block's way in (site-v4): Apple's quiet fade up, a little quicker than the chart's own steps. */
  --reveal: 600ms;
  --rise: 12px;
  /* A hero screen's cross-fade (site-v4-polish). */
  --shot: 360ms;
  --font:
    system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-display:
    system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-rounded:
    ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--carbs);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  --wrap: 780px;
}

/* Type: tracking tightens as the size grows; leading loosens as it shrinks. */

.eyebrow {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-2);
}

.eyebrow--protein {
  color: var(--protein);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.875rem, 8.4vw, 5.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.display__line {
  display: block;
}

/* The headline's second line in the accent, as Superpower's (the owner's Mobbin references, site-v4-polish): the
   protein colour, the app's own. */
.display__accent {
  color: var(--protein);
}

.title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 5.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lead {
  margin-top: 18px;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--text-2);
  text-wrap: pretty;
}

.num {
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.fineprint {
  margin-top: 20px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* A link inside a sentence keeps its look and gets a 44 px tall hit area (repair 5, B4): padding on an inline box
   moves no line, and position: relative puts the area over the lines above and below it (site/scripts/targets.ts). */
.fineprint a,
.consent a {
  position: relative;
  padding-block: 14px;
}

/* Controls */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1.0625rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--quick) var(--ease-out),
    opacity var(--quick) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    opacity: 0.86;
  }
}

.button:active {
  transform: scale(0.97);
}

.button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.button--small {
  position: relative;
  min-height: 34px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

/* The same 34 px pill, with a 44 px tall hit area around it (repair 5, A1): the link reaches 5 px above and below
   what it draws. */
.button--small::after {
  content: '';
  position: absolute;
  inset: -5px 0;
}

.button--quiet {
  min-height: 36px;
  padding: 0 16px;
  background: var(--fill);
  color: var(--text);
  font-size: 0.875rem;
}

.field {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 400 1.0625rem/1 var(--font);
}

.field::placeholder {
  color: var(--text-3);
}

.field[aria-invalid='true'] {
  border-color: var(--error);
}

.waitlist {
  margin-top: 32px;
  max-width: 520px;
}

.cta .waitlist {
  margin-inline: auto;
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waitlist__row .button {
  flex: 0 0 auto;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-align: left;
}

.consent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.waitlist__status {
  min-height: 1.5em;
  margin-top: 12px;
  font-weight: 600;
  text-align: left;
}

.waitlist__status[data-tone='ok'] {
  color: var(--success);
}

.waitlist__status[data-tone='error'] {
  color: var(--error);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The bar: a translucent material over the page, one row, every item on its centre line. */

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Opaque, no backdrop blur (repair 4): WebKit redraws a blur every frame a playing clip passes under it. */
  background: var(--bg);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--hairline) 70%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  margin-right: auto;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.nav__menu {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--quick) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover {
    color: var(--text);
    background: var(--fill);
  }
}

/* One object: a 34 px box with the same type size and centre line as the links beside it (44 px tall to touch). */
.pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--success);
}

@media (min-width: 760px) {
  .nav__menu {
    display: block;
  }
}

/* The two store badges: Apple's and Google's official artwork (site/media/badges), as served, never recoloured, cropped
   or animated, Apple's at its minimum 40 px height and Google's PNG, which carries its own clear space, at 60 px so
   the two badges read the same size. Side by side, a stack where two do not fit; 44 px tall to touch. */

.stores__note {
  margin-top: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 10px;
}

.cta .stores {
  justify-content: center;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 9px;
}

.store img {
  display: block;
  width: auto;
  /* Not the global max-width: 100%: the Google badge's negative margins make its link narrower than the badge, and
     the cap then squeezed it out of its own proportions (repair 4; Google's rules forbid altering the badge). */
  max-width: none;
}

.store--apple img {
  height: 40px;
}

.store--google img {
  height: 60px;
  margin-inline: -10px;
}

.soon {
  margin: 22px 0 18px;
}

/* Hero */

.hero {
  overflow-x: clip;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}

.hero__inner {
  display: grid;
  /* minmax(0, …): the waitlist field's own width never widens the column past a 320 px screen. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}

.eyebrow--hero {
  margin-bottom: 18px;
}

/* The hero, centred at every width (Flighty, Superpower, Duolingo: site-v4-polish): the headline, a short lead, the
   two badges right under it, the chips, then one iPhone and its segmented control. */
.hero__copy {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  text-align: center;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 26px;
  margin-inline: auto;
}

.hero .stores,
.hero .chips,
.hero .waitlist__row {
  justify-content: center;
}

.hero .waitlist {
  margin-inline: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chips li,
.basics li,
.langs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.2;
}

.chips li::before,
.basics li::before,
.ticks li::before {
  content: '';
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
}

/* A check drawn with two borders, rotated: no icon file, no font. */
.chips li,
.basics li,
.ticks li {
  position: relative;
}

.chips li::after,
.basics li::after,
.ticks li::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chips li::after,
.basics li::after {
  left: 19px;
  top: calc(50% - 6px);
}

.hero__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  justify-self: center;
  width: 100%;
  max-width: 100%;
}

.hero__inner {
  isolation: isolate;
}

/* The segmented control under the hero's iPhone (Flighty's Preflight / At the airport / After landing): a real tab
   list (main.ts), 44 px segments, the chosen one a white capsule on the grey track. It never moves itself; only the
   captures inside the bezel change. A label never breaks and sets its segment's width: when the four do not fit on
   one line (200% text on a phone, verify-site-v4-polish A1) the track wraps into centred rows, in reading order, so
   the arrow keys still walk them as they read. Until main.ts has wired it, the list keeps its place but is not shown
   or focusable (B5): without the script it would be four buttons that do nothing. */
.segments {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.segments__list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  padding: 3px;
  border-radius: 25px;
  background: var(--fill);
}

.segments__list:not([data-wired]) {
  visibility: hidden;
}

.segments__tab {
  flex: 1 1 auto;
  white-space: nowrap;
  min-width: 44px;
  min-height: 44px;
  padding: 0 clamp(11px, 3.4vw, 20px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 600 0.875rem/1 var(--font);
  cursor: pointer;
}

.segments__tab[aria-selected='true'] {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.segments__tab:focus-visible {
  outline: 2px solid var(--carbs);
  outline-offset: 2px;
}

.segments__panel {
  max-width: 22rem;
  min-height: 2.9em;
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}

.segments__panel[hidden] {
  display: none;
}

@media (min-width: 600px) {
  .segments__tab {
    font-size: 0.9375rem;
  }
}

/* Devices: Apple's product bezels (site/scripts/bezels.ts; site/media/bezels/README.md has the license and Apple's
   rules), scaled as a whole and nothing else. The capture sits under the bezel in its transparent screen opening,
   exactly the opening's box (--sx, --sy, --sw, --sh: percentages of the bezel), its corners rounded inside the bezel's
   own border (--sr) so nothing of it shows outside the opening. No transform, filter, shadow, mask or motion on a
   device or on anything around it, and nothing over it: copy and captions sit beside it. --dw is the bezel's width. */

.device {
  --dw: 300px;
  --ratio: 1350 / 2760;
  --sx: 5.333%;
  --sy: 2.5%;
  --sw: 89.333%;
  --sh: 95%;
  --sr: 10.779% / 4.958%;
  flex: none;
  width: var(--dw);
  max-width: 100%;
  margin: 0;
}

.device--phone-large {
  --ratio: 1470 / 3000;
  --sx: 5.102%;
  --sy: 2.2%;
  --sw: 89.796%;
  --sh: 95.6%;
  --sr: 10.152% / 4.672%;
}

.device--watch {
  --ratio: 560 / 880;
  --sx: 12.857%;
  --sy: 21.818%;
  --sw: 74.286%;
  --sh: 56.364%;
  --sr: 12.981% / 10.887%;
}

/* The iPhone that unfolds: open (its inner display, landscape) and closed (its outer display, whose corners are
   square on the hinge side). */
.device--fold {
  --ratio: 3093 / 2247;
  --sx: 3.88%;
  --sy: 5.34%;
  --sw: 92.241%;
  --sh: 89.319%;
  --sr: 3.084% / 4.385%;
}

.device--fold-closed {
  --ratio: 1574 / 2194;
  --sx: 5.591%;
  --sy: 3.646%;
  --sw: 88.818%;
  --sh: 92.707%;
  --sr: 0.787% 8.441% 8.441% 0.787% / 0.541% 5.801% 5.801% 0.541%;
}

.device__frame {
  position: relative;
  aspect-ratio: var(--ratio);
}

.device__screen {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: var(--sw);
  height: var(--sh);
  overflow: hidden;
  border-radius: var(--sr);
  background: #fff;
  /* Its own layer: the hero's shown capture (z-index 1, so it fades in over the others) stacks inside the screen
     only, and the bezel, Dynamic Island included, always draws over it, as on every other device. */
  isolation: isolate;
}

.device--watch .device__screen {
  background: #000;
}

.device__screen picture,
.device__screen img,
.device__bezel,
.device__bezel img {
  display: block;
  width: 100%;
  height: 100%;
}

.device__screen img {
  object-fit: cover;
}

.device__bezel {
  position: absolute;
  inset: 0;
}

/* Under the device, inside its width: a caption never reaches over a neighbour. */
.device figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--text-2);
}

/* Where the devices stand. Never a row of equal devices: each placement mixes sizes and heights, and changes from
   section to section (a pair in the hero, a cluster of three, one on the left, one on the right, a staggered strip).
   Neighbours stand as close as their boxes allow without touching. */

.hero__stage .device--phone-large {
  --dw: clamp(200px, 64vw, 330px);
}

/* The hero's screens, one over the other in the bezel's opening, exactly its box. The one shown is on top; the others
   wait under it, invisible and out of the accessibility tree. Picking a segment fades the new one in over the old
   (opacity only, styles' motion section below); the old one drops away once it is covered. */
.device__shot {
  position: absolute;
  inset: 0;
}

.device__shot:not([data-active]) {
  opacity: 0;
  visibility: hidden;
}

.device__shot[data-active] {
  z-index: 1;
}

.showcase {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: start;
  gap: clamp(10px, 1.6vw, 20px) clamp(6px, 1.2vw, 14px);
}

.showcase .device--phone-large {
  --dw: clamp(160px, 50vw, 340px);
  grid-row: 1 / span 2;
}

@media (min-width: 600px) {
  .showcase .device--phone-large {
    --dw: min(30vw, 340px);
  }
}

.showcase .device--phone {
  --dw: clamp(116px, 35vw, 236px);
  margin-top: calc(var(--dw) * 0.18);
}

@media (min-width: 600px) {
  .showcase .device--phone {
    --dw: min(21vw, 236px);
  }
}

.showcase .device--watch {
  --dw: clamp(80px, 24vw, 150px);
  margin-left: 6%;
}

.split__media .device--phone {
  --dw: clamp(190px, 58vw, 290px);
}

.split__media .device--phone-large {
  --dw: clamp(200px, 62vw, 320px);
}

/* The fold: open and large, closed and small beside it on a computer; one over the other on a phone. */
.fold-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vw, 48px);
  margin-top: clamp(32px, 6vw, 56px);
}

/* One scale for both: the folded phone is the open one times the ratio of their bezels' widths (Apple's relative
   scale), whatever the viewport. */
.fold-stage {
  --fold-open: min(100%, 680px);
}

.fold-stage .device--fold {
  --dw: var(--fold-open);
}

.fold-stage .device--fold-closed {
  --dw: calc(var(--fold-open) * 1574 / 3093);
}

@media (min-width: 900px) {
  .fold-stage {
    --fold-open: min(56vw, 680px);
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
  }
}

.tile .device {
  --dw: clamp(150px, 46vw, 220px);
  margin: 28px auto 0;
}

.watch-hero .device--watch {
  --dw: clamp(150px, 42vw, 236px);
  justify-self: center;
}

.watch-strip .device--watch {
  --dw: clamp(92px, 27vw, 150px);
}

/* A staggered strip: every other watch smaller and lower. */
.watch-strip li:nth-child(even) {
  margin-top: clamp(28px, 7vw, 72px);
}

.watch-strip li:nth-child(even) .device--watch {
  --dw: clamp(78px, 22vw, 124px);
}

@media (min-width: 920px) {
  .watch-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* Numbers */

.stats {
  padding: 8px 0 clamp(24px, 4vw, 48px);
}

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

.stats__list div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
}

.stats__list dd {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* The big numbers (decision 300): SF Pro Rounded Heavy, which ui-rounded draws at 800. A number inside a sentence
   stays at .num's 700. */
.stats__list .num {
  display: inline-block;
  font-weight: 800;
}

.stats__list dt {
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--text-2);
}

@media (min-width: 860px) {
  .stats__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Sections */

.section {
  padding: var(--space) 0;
}

.section--tint {
  background: var(--bg-tint);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.split {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

.split__copy .section__head {
  margin-bottom: 32px;
}

.split__copy > p:not(.eyebrow, .lead) {
  margin-top: 24px;
  color: var(--text-2);
}

.split__media {
  display: grid;
  justify-items: center;
}

@media (min-width: 920px) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .split--reverse .split__media {
    order: -1;
  }
}

.ticks {
  display: grid;
  gap: 14px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.45;
}

.ticks li::before {
  margin-top: 3px;
}

.ticks li::after {
  left: 7px;
  top: 6px;
}

.ticks--inline {
  margin-top: 40px;
  justify-content: center;
}

@media (min-width: 760px) {
  .ticks--inline {
    grid-auto-flow: column;
    gap: 32px;
  }
}

/* The dark sections, between white ones down the page (the owner, 2026-10-22: "alternate with multiple dark
   sections"): black, as the Watch band was. Every colour that carries text or focus is lifted for black: each is
   at least 4.5:1 on #000 and on the #1c1c1e cards, and the focus ring at least 3:1. */

.section--dark {
  --text: #f5f5f7;
  --text-2: #aeaeb2;
  --text-3: #8e8e93;
  --hairline: #38383a;
  --accent: #ffffff;
  --on-accent: #000000;
  --fill: #2c2c2e;
  --surface: #1c1c1e;
  --protein: #ff6f97;
  --carbs: #4ea1ff;
  --success: #3ccfd8;
  /* Plain black: no highlight behind the devices on it (Apple counts an added highlight as a modification of its
     product images; layout.ts refuses any background image around a device). */
  background: #000;
  color: var(--text);
}

.watch-hero {
  display: grid;
  gap: 56px;
  align-items: center;
}

.watch-hero .ticks {
  margin-top: 32px;
}

.watch-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px clamp(8px, 1.4vw, 16px);
  margin-top: clamp(56px, 8vw, 96px);
}

/* Food: a bento of four tiles. */

.bento {
  display: grid;
  gap: 16px;
}

.tile {
  position: relative;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.tile__copy {
  max-width: 30rem;
}

.tile__copy h3 {
  margin-top: 6px;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.022em;
}

.tile__copy p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--text-2);
}

.tile .tile__copy .quote {
  margin: 18px 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tile--live {
  background:
    radial-gradient(
      90% 80% at 0% 100%,
      color-mix(in srgb, var(--success) 16%, transparent),
      transparent 70%
    ),
    var(--surface);
}

.tile--label {
  background:
    radial-gradient(
      80% 90% at 100% 100%,
      color-mix(in srgb, var(--carbs) 14%, transparent),
      transparent 70%
    ),
    var(--surface);
}

.identify {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  align-items: end;
}

.identify__photo img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.identify__results {
  overflow: hidden;
  max-height: 440px;
  border-radius: 20px;
  box-shadow: var(--shadow-photo);
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}

.identify__results img {
  width: 100%;
}

@media (min-width: 640px) {
  .identify {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  }
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile--identify,
  .tile--label {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .tile--identify {
    grid-column: 1 / span 8;
    grid-row: 1;
  }

  .tile--scan {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
  }

  .tile--live {
    grid-column: 1 / span 5;
    grid-row: 2;
  }

  .tile--label {
    grid-column: 6 / span 3;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
  }
}

/* Insights */

/* The app's chart, drawn from its data (site/scripts/insights.ts) in the app's own light look on a white card: the
   protein bars in the app's pink, the dashed target line, the hard sets as a near-black line with dots, the values on
   the right and the dates under it. The SVG scales with the card; its text is sized here, larger on a phone so a
   label stays readable at 320 px. Weeks under the target are dimmed: that is the picture's point. */

.chart {
  --chart-ink: #1d1d1f;
  --chart-label: #6e6e73;
  --chart-grid: #e5e5ea;
  --chart-bar: #e8567d;
  --chart-line: #2b2d2c;
  --chart-target: #3a3a3c;
  margin: 0 0 32px;
  padding: clamp(16px, 3vw, 24px) clamp(14px, 3vw, 24px) clamp(18px, 3vw, 24px);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--chart-ink);
}

.chart__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font);
}

.chart__svg text {
  font-size: 13px;
  fill: var(--chart-label);
}

.chart__svg .chart__title {
  fill: #48484a;
}

.chart__grid {
  stroke: var(--chart-grid);
  stroke-width: 0.75;
}

.story__bar {
  fill: var(--chart-bar);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.story__bar--missed {
  opacity: 0.38;
}

.story__target {
  stroke: var(--chart-target);
  /* The app's target rule (BarChartMarks.swift, decision 300): 1 pt wide, dashed 4 on, 3 off. */
  stroke-width: 1;
  stroke-dasharray: 4 3;
  transform-box: fill-box;
  transform-origin: 0 50%;
}

.story__seg {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 2.2;
  stroke-dasharray: 1;
}

.story__dot {
  fill: var(--chart-line);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.chart__caption {
  margin-top: 14px;
}

.chart__note {
  color: var(--chart-label);
  font-size: 0.875rem;
}

.chart__sentence {
  margin-top: 10px;
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.story__num {
  display: inline-block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
  .chart__svg text {
    font-size: 11px;
  }
}

/* The Insights chart's three numbered steps (Mixpanel's 01, 02 beside the chart they explain: site-v4-polish). */
.steps {
  display: grid;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.step__num {
  color: var(--text-3);
  font: 700 1.375rem/1 var(--font-rounded);
  font-variant-numeric: tabular-nums;
}

.step--protein .step__num {
  color: var(--protein);
}

.step p {
  margin-top: 6px;
  color: var(--text-2);
}

/* Flat cards (decision 300): a fill, never a shadow. Of the page's cards and chips only the selected segment keeps
   one, the iOS segmented control's raised thumb. */
.card,
.plan {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  margin-top: 8px;
  color: var(--text-2);
}

.section--tint .card {
  background: var(--bg);
}

/* Cards */

.cards {
  display: grid;
  gap: 14px;
}

.cards--new {
  margin-top: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

@media (min-width: 640px) {
  .cards--rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards--rules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* What GramRep launches with, as a bento (Apple Stories: site-v4-polish): one centred column on a phone; on a
   wider screen a grid of rounded tiles of mixed sizes, the first a large graphite one. */
.cards--bento {
  max-width: 30rem;
  margin-inline: auto;
}

.cards--bento .card:first-child {
  background: var(--accent);
  color: var(--on-accent);
}

.cards--bento .card:first-child p {
  color: #d2d2d7;
}

@media (min-width: 735px) {
  .cards--bento {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .cards--bento .card:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .cards--bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cards--bento .card {
    padding: 28px;
    border-radius: var(--radius-large);
  }

  .cards--bento .card:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .cards--bento .card:first-child h3 {
    font-size: 1.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .cards--bento .card:nth-child(6) {
    grid-column: span 2;
  }
}

/* 3D demos */

.clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 900px) {
  .clips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* One white card per clip, the renders' own white ground (render.json: backgroundSRGB 255, 255, 255). */
.clip figure {
  overflow: hidden;
  border: 1px solid var(--fill);
  border-radius: var(--radius);
  background: #fff;
}

.clip video,
.clip__loop img {
  width: 100%;
  height: auto;
  aspect-ratio: 676 / 520;
  object-fit: cover;
  background: #fff;
}

.clip figcaption {
  padding: 14px 18px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Free, pricing, languages */

.basics,
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.basics {
  justify-content: center;
  max-width: 52rem;
  margin-inline: auto;
}

.langs {
  justify-content: center;
  max-width: 48rem;
  margin-inline: auto;
}

.langs li {
  min-height: 44px;
  padding: 0 20px;
  font-size: 1.0625rem;
}

.plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan--pro {
  outline: 2px solid var(--accent);
}

.price {
  margin-top: 8px;
  font-size: 2.5rem;
}

.price .num,
.prices .num {
  font-weight: 800;
}

.prices {
  display: grid;
  gap: 6px;
  margin: 12px 0 18px;
}

.prices .num {
  font-size: 1.5rem;
}

.price-alt {
  margin-bottom: 18px;
  color: var(--text-2);
}

/* FAQ: Apple's chevron rows. The chevron, two borders of a square, points down and turns up when the row opens
   (transform only). */

.faq {
  border-top: 1px solid var(--hairline);
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  position: absolute;
  top: calc(50% - 7px);
  right: 10px;
  width: 9px;
  height: 9px;
  border: solid var(--text-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 240ms var(--ease-out);
}

.faq__item[open] summary::after {
  transform: translateY(5px) rotate(225deg);
}

.faq__item p {
  padding: 0 48px 24px 0;
  color: var(--text-2);
}

/* The close */

.section--cta {
  text-align: center;
}

.cta__icon {
  margin: 0 auto 24px;
  border-radius: 22%;
  box-shadow: var(--shadow-photo);
}

.cta .lead {
  margin-inline: auto;
}

/* Footer */

.footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--text-2);
}

.footer__inner {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer__legal {
    grid-column: 1 / -1;
  }
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer__brand img {
  border-radius: 8px;
}

.footer__brand strong {
  color: var(--text);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.footer__legal {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.notfound {
  padding: clamp(80px, 14vw, 160px) 0;
}

.notfound .lead {
  margin-bottom: 32px;
}

/* Phones (site-v4; the owner, 2026-10-22 ~16:50: "for mobile try to center the items … inspired by mobile designs").
   At Apple's phone breakpoint, 734 px and below, each section reads as one centred column, as Apple's product pages
   do: the eyebrow, the headline, a short lead and the call to action centred, the media full width under them. Lists
   and cards keep their text left-aligned inside and sit centred. The type steps down to Apple's phone ramp (the hero
   40 px, section titles 32 px), and two white sections in a row share one 88 px gap instead of two. */

@media (max-width: 734px) {
  :root {
    --space: 88px;
  }

  .display {
    font-size: 2.5rem;
    letter-spacing: -0.035em;
  }

  .title {
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.028em;
  }

  .lead {
    margin-top: 14px;
    font-size: 1.0625rem;
    line-height: 1.45;
  }

  .hero__copy,
  .section__head,
  .split__copy,
  .cta {
    text-align: center;
  }

  .section__head,
  .lead,
  .hero__lead,
  .split__copy > p:not(.eyebrow, .lead) {
    margin-inline: auto;
  }

  .section__head {
    max-width: 34rem;
    margin-bottom: 40px;
  }

  .lead,
  .hero__lead,
  .split__copy > p:not(.eyebrow, .lead) {
    max-width: 30rem;
  }

  .chips,
  .stores {
    justify-content: center;
  }

  .waitlist,
  .ticks,
  .tile__copy,
  .steps {
    margin-inline: auto;
  }

  .waitlist__row {
    justify-content: center;
  }

  /* Lists, cards, the FAQ, the consent line: left-aligned text, the block centred. */
  .ticks,
  .tile,
  .card,
  .step,
  .plan,
  .faq,
  .consent,
  .waitlist__status,
  .stats__list,
  .clips {
    text-align: left;
  }

  .ticks {
    max-width: 30rem;
  }

  .tile__copy,
  .steps {
    max-width: 30rem;
  }

  /* The bento's tiles are short: centred in their one column, as Apple's stories stack. */
  .cards--bento .card {
    text-align: center;
  }

  .hero__stage,
  .split__media,
  .watch-hero .device--watch {
    justify-self: center;
  }

  .section:not(.section--dark, .section--tint) + .section:not(.section--dark, .section--tint) {
    padding-top: 0;
  }
}

/* Motion (site-v3; the owner, 2026-10-22: "no bad animations, and none in the first screen"). Two things move, each
   once and never in the first screen: a block fades up 12 px into place as it scrolls into view (600 ms; a section's
   head line by line, what follows it a beat later, site-v4), and the Insights chart tells its story (below).
   Transform and opacity only, one curve (--ease-out), steps of 60 ms across a row;
   the chart's line alone draws by its stroke, a pen at an even pace.
   The 3D demos play while they are in view. main.ts marks whatever is on screen at load as already in before it hides
   anything (html.reveals), so the first screen never moves; without the script, or under reduced motion, nothing is
   hidden and nothing moves. */

@media (prefers-reduced-motion: no-preference) {
  html.reveals .reveal:not([data-in]) {
    opacity: 0;
    transform: translateY(var(--rise));
  }

  html.reveals .reveal[data-in] {
    transition:
      opacity var(--reveal) var(--ease-out),
      transform var(--reveal) var(--ease-out);
  }

  /* A section's head arrives line by line (site-v4, as Apple's pages do): the block itself stays, and its eyebrow,
     headline, lead and list each fade up 70 ms after the one before. */
  html.reveals .section__head.reveal:not([data-in]) {
    opacity: 1;
    transform: none;
  }

  html.reveals .section__head.reveal:not([data-in]) > * {
    opacity: 0;
    transform: translateY(var(--rise));
  }

  html.reveals .section__head.reveal[data-in] > * {
    transition:
      opacity var(--reveal) var(--ease-out),
      transform var(--reveal) var(--ease-out);
  }

  html.reveals .section__head.reveal[data-in] > :nth-child(2) {
    transition-delay: 70ms;
  }

  html.reveals .section__head.reveal[data-in] > :nth-child(3) {
    transition-delay: 140ms;
  }

  html.reveals .section__head.reveal[data-in] > :nth-child(n + 4) {
    transition-delay: 210ms;
  }

  /* What follows a head in the same column (its list, its cards' grid, the languages) comes a beat after the copy,
     and the Identify pictures a beat after their tile's words: media after copy. Never a device (Apple's rules). */
  html.reveals .section__head.reveal[data-in] ~ .reveal[data-in] {
    transition-delay: 150ms;
  }

  html.reveals .reveal:not([data-in]) .identify {
    opacity: 0;
    transform: translateY(var(--rise));
  }

  html.reveals .reveal[data-in] .identify {
    transition:
      opacity var(--reveal) var(--ease-out) 180ms,
      transform var(--reveal) var(--ease-out) 180ms;
  }

  html.reveals .cards .reveal[data-in]:nth-child(4n + 2),
  html.reveals .watch-strip .reveal[data-in]:nth-child(2) {
    transition-delay: 60ms;
  }

  html.reveals .cards .reveal[data-in]:nth-child(4n + 3),
  html.reveals .watch-strip .reveal[data-in]:nth-child(3) {
    transition-delay: 120ms;
  }

  html.reveals .cards .reveal[data-in]:nth-child(4n + 4),
  html.reveals .watch-strip .reveal[data-in]:nth-child(n + 4) {
    transition-delay: 180ms;
  }

  /* The Insights chart's story (the owner, 2026-10-22 ~15:55: Apple's pages), once, when 40% of it is in view
     (main.ts): the twelve bars rise from the baseline one after another (40 ms apart, 700 ms each); the dashed
     target line draws across; the weeks under it dim; the hard-sets line draws itself week by week, each dot arriving
     as the line reaches it; then the sentence, and its two numbers last. About 2.75 s. Waiting, everything is at its
     start; arrived, every part moves to the still picture, which is what the page shows without the script, under
     reduced motion and once main.ts marks it done. The panels below follow while the story plays. */
  .story {
    --story-target-at: 800ms;
    --story-target: 600ms;
    --story-dim-at: 1250ms;
    --story-dim: 400ms;
    --story-seg: 75ms;
    --story-dot: 240ms;
    --story-text-at: 2100ms;
    --story-text: 450ms;
    --story-after: 1600ms;
  }

  html.reveals .story:not([data-in]) .story__bar {
    opacity: 1;
    transform: scaleY(0);
  }

  html.reveals .story:not([data-in]) .story__target {
    transform: scaleX(0);
  }

  html.reveals .story:not([data-in]) .story__seg {
    stroke-dashoffset: 1;
  }

  html.reveals .story:not([data-in]) .story__dot {
    opacity: 0;
    transform: scale(0.3);
  }

  html.reveals .story:not([data-in]) .story__sentence,
  html.reveals .story:not([data-in]) .story__num {
    opacity: 0;
    transform: translateY(8px);
  }

  html.reveals .story[data-in] .story__bar {
    transition:
      transform var(--slow) var(--ease-out),
      opacity var(--story-dim) var(--ease-out) var(--story-dim-at);
  }

  html.reveals .story[data-in] .story__bar:nth-child(2) {
    transition-delay: 40ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(3) {
    transition-delay: 80ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(4) {
    transition-delay: 120ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(5) {
    transition-delay: 160ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(6) {
    transition-delay: 200ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(7) {
    transition-delay: 240ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(8) {
    transition-delay: 280ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(9) {
    transition-delay: 320ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(10) {
    transition-delay: 360ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(11) {
    transition-delay: 400ms, var(--story-dim-at);
  }
  html.reveals .story[data-in] .story__bar:nth-child(12) {
    transition-delay: 440ms, var(--story-dim-at);
  }

  html.reveals .story[data-in] .story__target {
    transition: transform var(--story-target) var(--ease-out) var(--story-target-at);
  }

  /* The line, a segment a week, each drawn in --story-seg at an even pace; a dot appears as the line reaches it. */
  html.reveals .story[data-in] .story__seg {
    transition: stroke-dashoffset var(--story-seg) linear;
  }

  html.reveals .story[data-in] .story__dot {
    transition:
      opacity var(--story-dot) var(--ease-out),
      transform var(--story-dot) var(--ease-out);
  }

  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(1) {
    transition-delay: 1400ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(2) {
    transition-delay: 1475ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(3) {
    transition-delay: 1550ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(4) {
    transition-delay: 1625ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(5) {
    transition-delay: 1700ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(6) {
    transition-delay: 1775ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(7) {
    transition-delay: 1850ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(8) {
    transition-delay: 1925ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(9) {
    transition-delay: 2000ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(10) {
    transition-delay: 2075ms;
  }
  html.reveals .story[data-in] :is(.story__seg, .story__dot):nth-child(11) {
    transition-delay: 2150ms;
  }
  html.reveals .story[data-in] .story__dot:nth-child(12) {
    transition-delay: 2225ms;
  }

  html.reveals .story[data-in] .story__sentence {
    transition:
      opacity var(--story-text) var(--ease-out) var(--story-text-at),
      transform var(--story-text) var(--ease-out) var(--story-text-at);
  }

  html.reveals .story[data-in] .story__num {
    transition:
      opacity var(--story-text) var(--ease-out) 2200ms,
      transform var(--story-text) var(--ease-out) 2200ms;
  }

  html.reveals .story[data-in] .story__num ~ .story__num {
    transition-delay: 2300ms;
  }

  html.reveals .story[data-in]:not([data-done]) ~ .story__after[data-in] {
    transition-delay: var(--story-after);
  }

  /* main.ts marks a block done 1.5 s after it is in: shown as it ends, without a transition, whatever happened to the
     one it started (a backgrounded tab, a frozen frame). */
  html.reveals .reveal[data-done] {
    opacity: 1;
    transform: none;
    transition-property: none;
  }

  /* And what arrives inside it, the head's lines and the Identify pictures, the same way. */
  html.reveals .section__head.reveal[data-done] > *,
  html.reveals .reveal[data-done] .identify {
    opacity: 1;
    transform: none;
    transition-property: none;
  }

  /* Done: whatever is still on its way jumps to its end. Above every step's own rule (:nth-child(n) lifts it). */
  html.reveals
    .story[data-in][data-done]
    :is(
      .story__bar,
      .story__target,
      .story__seg,
      .story__dot,
      .story__sentence,
      .story__num
    ):nth-child(n),
  html.reveals .story__after[data-done] {
    transition-property: none;
  }
}

/* The hero's screens (site-v4-polish): picking a segment fades the new capture in over the old, opacity only, inside
   the bezel's opening; the old one drops away, unseen, once covered. Never on a timer, never on the bezel or around
   it. Under reduced motion there is no transition: the swap is instant. */
@media (prefers-reduced-motion: no-preference) {
  .device__shot[data-active] {
    transition: opacity var(--shot) var(--ease-out);
  }

  .device__shot:not([data-active]) {
    transition:
      opacity 0s linear var(--shot),
      visibility 0s linear var(--shot);
  }
}

/* Reduced motion: a still, complete page. Colour changes stay; nothing travels, turns or wipes. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-property: color, background-color, opacity !important;
  }
}

/* The fold's film: the app's own screen, nothing drawn around it (no frame, radius, shadow or filter). */
.fold-film {
  width: min(100%, 960px);
  margin: 56px auto 0;
}

.fold-film__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 900;
  object-fit: cover;
  background: #f2f2f7;
}

.fold-film figcaption {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.9375rem;
  text-align: center;
}
