/*
 * Shared chrome and the component library.
 *
 * tokens.css decides type, colour, space and rhythm. THIS file turns those into the pieces a
 * page is built from: the header, the footer, buttons, cards, the device frame the product
 * screenshots sit in, and the pressed/hover states that make the page feel like a product
 * rather than a document.
 *
 * It loads AFTER tokens.css and therefore wins the cascade, so it must never restate anything
 * tokens.css decides. Six page files once each re-declared the heading scale because this file
 * set h1/h2 weights and beat them; one place decides type, and it is not this one.
 */

/* ---------- fonts ---------- */

/*
 * The axis is 200-800 IN THE FILE. It used to be declared 500-800 here, which clamped every
 * heading on the site to 500 and is why the display type read heavy next to WHOOP, Oura and
 * Arccos (300-500). Declaring the real range costs nothing: same file, same bytes.
 */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  ascent-override: 103.31%;
  descent-override: 29.07%;
  line-gap-override: 0%;
  size-adjust: 103.19%;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0 0 var(--space-2); color: var(--foreground-secondary); }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.section--ink a:focus-visible,
.section--ink .btn:focus-visible { outline-color: hsl(154 45% 62%); }

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap.narrow { width: min(100% - 2rem, 46rem); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: hsl(42 32% 96% / 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: border-color var(--medium) var(--ease), background var(--medium) var(--ease);
}

/* Set by site.js once the page has scrolled past the hero. The rule sits here so there is no
   flash of a bordered header at the top of the document.

   This used to say "the one inline script on each page". There is no inline script on any page
   and there cannot be: `script-src 'self'` carries no 'unsafe-inline', which is exactly what
   site.js:1-10 explains. A comment naming a mechanism the CSP forbids is the kind that gets
   believed later. */
.site-header[data-scrolled] {
  border-bottom-color: var(--line);
  background: hsl(42 32% 96% / 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Manrope', 'Manrope Fallback', Arial, sans-serif;
  font-weight: var(--weight-strong);
  letter-spacing: -0.03em;
  font-size: var(--step-0);
  color: var(--foreground);
  text-decoration: none;
  min-height: 2.75rem;
}

/* flex-shrink was squashing this to 23.1 x 32 at 320px - a 34% horizontal squash of the
   logo, on every page. */
.brand img { width: 34px; height: 32px; flex: none; object-fit: contain; }

/*
 * THREE LINKS, so the nav fits a 375px phone without scrolling or wrapping. It was five, which
 * needed 379px against 343px of space and put the last item off-screen behind a hidden
 * scrollbar. Keeping the nav short is a content decision, not a CSS one.
 */
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--foreground-secondary);
  text-decoration: none;
  font-size: var(--step-meta);
  white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover { color: var(--foreground); background: hsl(214 28% 16% / 0.05); }
}

@media (max-width: 26rem) {
  .site-header nav a { padding: 0 0.4rem; font-size: var(--step-micro); }
  .brand span { display: none; }
}

/* ---------- buttons ---------- */

/*
 * One button, three skins, and a press that you feel.
 *
 * The press is the point. A link that only changes colour on hover reads as a document; a
 * control that depresses by a pixel, tightens its shadow and springs back reads as software.
 * It is 120ms and it is removed entirely by prefers-reduced-motion.
 */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--foreground);
  --btn-border: var(--line);
  --btn-shadow: var(--shadow-sm);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  font-family: 'Manrope', 'Manrope Fallback', Arial, sans-serif;
  font-size: var(--step-0);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    background var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

/*
 * The lift raises the button and DEEPENS its shadow. It used to set --shadow-md on every
 * variant, which is weaker than the primary's own: measured, the primary lost 20 points of
 * shadow alpha and 4px of spread on hover, so it got flatter as it rose.
 *
 * Guarded by (hover: hover), because without it a tapped button on iOS - the only platform this
 * ships to - keeps the lifted transform, the deeper shadow and the brightness until the golfer
 * taps something else.
 */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
  }
  .btn-quiet:hover { box-shadow: var(--shadow-sm); }
}

.btn:active { transform: translateY(1px) scale(0.995); box-shadow: var(--shadow-sm); }

/* The arrow leads the eye and moves on hover. Decorative, so it is a pseudo-element and never
   reaches a screen reader. */
.btn--arrow::after {
  content: '\2192';
  /* `inherit`, not the 1.05em this used to carry. Five per cent on a decorative arrow glyph
     is invisible, and it was the only font-size on the site that was off the scale - which
     nobody knew, because review-pages.py never read this file. Not worth an exemption. */
  font-size: inherit;
  line-height: 1;
  transition: transform var(--medium) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn--arrow:hover::after { transform: translateX(3px); }
}

.btn-primary {
  --btn-fg: hsl(0 0% 100%);
  --btn-border: transparent;
  --btn-shadow: 0 1px 2px hsl(214 28% 16% / 0.22), 0 14px 28px -14px hsl(214 28% 16% / 0.45);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-text) 100%);
}

/* A hairline of light along the top edge. This is most of what separates a filled rectangle
   from a button with a material to it. */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.22);
  pointer-events: none;
}

/* Brightness rather than a second pair of colours: the site may only use values the app serves,
   and a filter needs none of its own. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(1.07); }
}

.btn-quiet {
  --btn-bg: transparent;
  --btn-border: var(--line);
  --btn-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-quiet:hover { --btn-bg: var(--surface); }
}

.section--ink .btn-quiet {
  --btn-fg: var(--on-ink);
  --btn-border: var(--ink-line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .section--ink .btn-quiet:hover { --btn-bg: hsl(0 0% 100% / 0.07); }
}

/*
 * A CTA that is not live yet. It must not look pressable, and `background` has to be reset
 * explicitly: .btn-primary paints a gradient directly rather than through --btn-bg, so setting
 * the variable alone left a disabled control wearing the primary skin.
 */
.btn.is-pending {
  --btn-bg: transparent;
  --btn-fg: var(--foreground-secondary);
  --btn-border: var(--line);
  --btn-shadow: none;
  background: transparent;
  cursor: default;
}
.btn.is-pending::before { display: none; }
.btn.is-pending:hover,
.btn.is-pending:active { transform: none; box-shadow: none; }

.section--ink .btn.is-pending { --btn-fg: var(--on-ink-secondary); --btn-border: var(--ink-line); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 48rem) {
  .card { padding: var(--space-4); }
}

.card > :last-child { margin-bottom: 0; }

.section--ink .card {
  background: var(--ink-soft);
  border-color: var(--ink-line);
  box-shadow: none;
}

.grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 46rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* A pill states one fact. Several in a row are a spec strip, not a list. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--step-micro);
  color: var(--foreground-secondary);
  /* NOT nowrap. "Coming: Garmin, so your rounds feed the coaching" is 342px, and at 320px that
     is a 288px column - the pill bled past both edges and scrolled the document 11px. */
  white-space: normal;
  text-wrap: balance;
}

.section--ink .pill {
  background: hsl(0 0% 100% / 0.05);
  border-color: var(--ink-line);
  color: var(--on-ink-secondary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-row li { max-width: none; }

/* ---------- the device frame ---------- */

/*
 * Product screenshots are captured at an iPhone 13 viewport, so they are shown in a phone.
 * Without the frame they read as a cropped rectangle of UI; inside it they read as the product.
 *
 * The frame is three nested radii plus one highlight: the bezel, the screen, and the image's
 * own corners. All three come off the radius scale, which is why it does not look drawn by hand.
 */
.device {
  position: relative;
  width: min(100%, 20rem);
  margin: 0;
  /* The bezel was 0.5rem and read as a thick plastic case around every screenshot, which took
     attention off the screen it is there to frame. A phone bezel is a hairline; so is this. */
  padding: 0.1875rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, hsl(214 20% 26%), hsl(214 28% 12%));
  box-shadow: var(--shadow-lg);
}

.device::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.18), inset 0 0 0 1px hsl(0 0% 0% / 0.35);
  pointer-events: none;
}

/* 0.1875rem, not 0.5rem: this subtraction was left behind when the bezel went from 0.5rem to a
   hairline (see the comment on `.device` above). Subtracting a padding that is no longer there
   put the inner radius 5px inside the outer one and drew a dark crescent at each corner of every
   screenshot on the site. Concentric means outer minus the padding that is actually set. */
.device img {
  border-radius: calc(var(--radius-xl) - 0.1875rem);
  display: block;
  width: 100%;
}

.section--ink .device { box-shadow: var(--shadow-ink); }

.device--wide { width: min(100%, 26rem); }

/* A caption says what the reader is looking at, in the product's own terms. */
.shot-caption {
  margin: var(--space-2) 0 0;
  font-size: var(--step-meta);
  color: var(--muted-foreground);
  max-width: 34ch;
}

.section--ink .shot-caption { color: var(--on-ink-secondary); }

/*
 * Two or three phones side by side, each with its own caption.
 *
 * CENTRED, not left-packed. Two 22rem phones inside a 72rem page left 24rem of dead space on
 * the right, which reads as a layout that ran out rather than one that was composed.
 */
.device-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.device-row > figure { flex: 1 1 15rem; max-width: 21rem; margin: 0; }
.device-row .device { width: 100%; }
.device-row .shot-caption { max-width: none; }

/* ---------- split: copy beside product ---------- */

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.split > figure { margin: 0; }

@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .split--reverse > :first-child { order: 2; }
}

.split .device { margin-inline: auto; }

/* ---------- numbered steps ---------- */

.steps {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  max-width: none;
  padding-left: 3.25rem;
  position: relative;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid hsl(154 30% 84%);
  color: var(--accent-text);
  font-family: 'Manrope', 'Manrope Fallback', Arial, sans-serif;
  font-size: var(--step-meta);
  font-weight: var(--weight-strong);
}

.section--ink .steps > li::before {
  background: hsl(154 40% 24% / 0.5);
  border-color: hsl(154 30% 34%);
  color: hsl(154 40% 72%);
}

/* ---------- disclosure (used by the questions section) ---------- */

.qa {
  border-top: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Manrope', 'Manrope Fallback', Arial, sans-serif;
  font-size: var(--step-1);
  font-weight: var(--weight-strong);
  letter-spacing: var(--track-heading);
  color: var(--foreground);
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  transform: rotate(45deg) translate(-0.15rem, -0.15rem);
  transition: transform var(--medium) var(--ease);
}

.qa[open] summary::after { transform: rotate(-135deg) translate(-0.1rem, -0.1rem); }

.qa > div { padding-bottom: var(--space-3); }
.qa > div > :last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

/*
 * No margin above the footer. Every page closes on a dark band, and 4rem of margin left a 64px
 * strip of cream between the band ending and the footer's hairline - the page just stopped for
 * a moment. The footer's own padding is the separation.
 */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-4);
}

/*
 * Two rows by design rather than by accident. space-between never once applied: the two children
 * measure 1176px inside a 1152px row (--page caps at 72rem, so this was true at 1920 too), so
 * the row always wrapped and the alignment rule never had an effect.
 */
.footer-inner {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-3);
}

.site-footer a {
  color: var(--foreground-secondary);
  font-size: var(--step-meta);
  /* 24.3px tall before this: inside WCAG 2.5.8's 24px by 0.3px and nowhere near 2.5.5's 44px,
     on the one row of links a thumb has to hit. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: var(--accent-text); }
}
.site-footer p { font-size: var(--step-meta); color: var(--muted-foreground); margin: 0; }

/* ---------- centred section intro ---------- */

/*
 * A heading pinned to the left above a row of centred phones reads as two layouts in one
 * section. Where the product shots are centred, the words that introduce them are too, and the
 * block keeps a readable measure rather than running the width of the page.
 */
.section-intro {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.section-intro .lead,
.section-intro p { margin-inline: auto; }

.section-intro > :last-child { margin-bottom: 0; }

/* A note that sits under a centred device row and belongs to it. */
.section-note {
  max-width: 52ch;
  margin: var(--space-4) auto 0;
  text-align: center;
  font-size: var(--step-meta);
}

/* ---------- shared bits that earned their way out of page CSS ---------- */

/* .closing and .cta-note were declared identically in pages/home.css and
   pages/how-it-works.css, and .ticks in pages/pricing.css. Three pages, one place. */

.closing { text-align: center; }
.closing .lead { margin-inline: auto; }
.closing .cta-row { justify-content: center; }

.cta-note { margin-top: var(--space-2); max-width: 44ch; }
.closing .cta-note { margin-inline: auto; }

/* tokens.css gives headings no bottom margin and p no top one, so a card heading sits flush
   against its paragraph. Set once, here, now that two pages carry a card with a heading. */
.card h3, .card h4 { margin-bottom: var(--space-1); }

/* A checked list inside a card. */
.ticks { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.ticks li { max-width: none; position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 1.5px solid var(--accent-text);
  border-bottom: 1.5px solid var(--accent-text);
  transform: rotate(-45deg);
}
.section--ink .ticks li::before,
.card--ink .ticks li::before { border-color: hsl(154 40% 62%); }

/* ---------- device rows on a phone ---------- */

/*
 * SWIPE, don't shrink.
 *
 * Stacked, each phone is 400-470px of scroll, and the how-it-works page shows eight of them;
 * the first fix was to shrink them to 15rem, which bought the scroll budget back by making the
 * product screenshots too small to read - on the page whose entire job is showing the product.
 *
 * A snapping row costs one phone's height instead of three and keeps them full size. The second
 * card peeking past the edge is the only affordance needed; no arrows, no dots.
 */
@media (max-width: 46rem) {
  .device-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
  }

  .device-row::-webkit-scrollbar { display: none; }

  .device-row > figure {
    flex: 0 0 min(80%, 18rem);
    scroll-snap-align: start;
  }
}

/*
 * A CAPTION BELONGS TO ITS PHONE.
 *
 * This used to stretch the figures and push the captions to the bottom of the row so they lined
 * up. Measured, that was worse: in the drill row the frames are 411.1px and 351.2px tall, so the
 * short one floated 59.9px above its own caption while its neighbour sat flush against the
 * frame. Two phones of different size, one hovering.
 *
 * Captions sit under their own frame now. The frames are still different heights, because each
 * screenshot is cropped to its own exchange rather than to a rectangle - the fix for THAT is to
 * capture at a fixed device height upstream, which is written up as the next job. An
 * aspect-ratio here cannot do it: the crops run 817 to 1287 tall, and no single ratio serves
 * both without either letterboxing a third of a frame or cropping the sides off one.
 */
.device-row { align-items: flex-start; }

/*
 * A scroll container needs to be reachable by keyboard, or the second phone in a swipe row is
 * unreachable without a pointer. tabindex="0" in the markup makes the row focusable; this gives
 * that focus a visible ring, inset so it does not clip against the section edge.
 */
.device-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.section--ink .device-row:focus-visible { outline-color: hsl(154 45% 62%); }

/* The row is only scrollable on a narrow screen, so it is only focusable there. */
@media (min-width: 46rem) {
  .device-row { outline: none; }
}

/*
 * iPad portrait. Between 737 and 831px a three-phone row wrapped 2 + 1 and left an orphan
 * centred under the pair. The swipe row is the better answer at that width too: it is one
 * gesture rather than a broken grid, and the breakpoint moves up to meet it.
 */
@media (min-width: 46rem) and (max-width: 52rem) {
  .device-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .device-row::-webkit-scrollbar { display: none; }
  .device-row > figure { flex: 0 0 min(52%, 20rem); scroll-snap-align: start; }
}

/*
 * CENTRED HEADINGS, LEFT-ALIGNED PROSE ON A PHONE.
 *
 * .section-intro centres its whole block, which is right for a heading over a row of centred
 * phones and wrong for six lines of body copy on a 375px screen: a ragged centred paragraph
 * that long is measurably harder to read, and a reviewer said so unprompted.
 */
@media (max-width: 46rem) {
  .section-intro .lead,
  .section-intro p,
  .section-note { text-align: left; }
}

/*
 * THE PEEK HAS TO BE UNMISTAKABLE.
 *
 * The swipe row's only affordance is the next card showing past the edge, and a reviewer on a
 * 375px screen "nearly missed it entirely" - along with the caption belonging to the card they
 * could not see. Narrowing the card from 80% to 68% turns a sliver into a clearly cut-off
 * second phone, which is a cue nobody has to be taught. No arrows, no dots: this page has
 * neither anywhere else.
 */
@media (max-width: 46rem) {
  .device-row > figure { flex: 0 0 min(68%, 16rem); }
}

/* ---------- bigger phones on a wide screen ---------- */

/*
 * THE PROOF HAS TO BE READABLE, OR IT IS NOT PROOF.
 *
 * "I physically cannot read the analysis you're showing me - which is the entire product." The
 * screenshots are captured at a 390px viewport, so in-app body text renders at roughly
 * 16 x (displayed width / 390). At the old 20rem that is 13px on a 1440px screen, which is
 * smaller than this page's own caption text, on the images carrying every claim the site makes.
 *
 * 22rem puts it at about 14.4px and 24rem at about 15.8px. Three phones at 22rem plus their
 * gaps come to 71rem inside a 72rem page, which is why the row cap is 22 and not 24.
 */
@media (min-width: 64rem) {
  .device { width: min(100%, 24rem); }
  .device-row > figure { max-width: 22rem; }
}

/* Written by site.js, and only where the row really scrolls. */
.swipe-hint {
  margin: calc(var(--space-2) * -1) 0 0;
  font-size: var(--step-micro);
  letter-spacing: 0.02em;
}

.section--ink .swipe-hint { color: var(--on-ink-secondary); }

/* =============================================================================================
 * PAGE TRANSITIONS
 *
 * This reverses half of principle P6 ("no page transitions"), and the reasoning is in
 * docs/design/website-design-principles.md. The short version: P6 exists to ban decoration, and
 * the white flash between two static HTML pages is not decoration being removed, it is a seam
 * being hidden. The site is five pages that share a header, a footer and a palette; without this
 * every click repaints all of it from white. Holding the chrome still while the content changes
 * is what makes a multi-page static site feel like one object, which is the whole brief.
 *
 * It costs nothing it does not earn:
 *   - Pure CSS. No library, no JavaScript, nothing for the CSP to block.
 *   - Firefox has not shipped cross-document transitions. There is no polyfill and none is
 *     wanted: a browser that does not know this at-rule navigates exactly as it does today.
 *   - Off entirely under prefers-reduced-motion, which is why the at-rule is inside the query.
 * ============================================================================================= */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  /* The chrome is the same object on both pages, so it is named and does not cross-fade.
     Without this the header fades out and back in on every click, which is worse than the
     flash it replaced. */
  .site-header { view-transition-name: site-header; }
  .site-footer { view-transition-name: site-footer; }
  .brand { view-transition-name: site-brand; }

  /* Fast enough to read as the same page rather than as an animation. 180ms is under the
     ~200ms where a transition stops feeling instant. */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 180ms;
    animation-timing-function: var(--ease);
  }
}

/* =============================================================================================
 * THE DISCLOSURE OPENS INSTEAD OF SNAPPING - REBUILT 2026-11-21 ON SOMETHING WEBKIT ACTUALLY HAS
 *
 * The previous version gated everything on `interpolate-size: allow-keywords`, which has never
 * shipped in any Safari release - Technology Preview only, and iOS has no TP channel. On an
 * iPhone-only product that is not a progressive enhancement. It is dead code with a comment
 * explaining what it would have done.
 *
 * The thing it wanted is available, just not that way. `::details-content` is iOS 18.4,
 * `content-visibility` is iOS 18.0 and `transition-behavior: allow-discrete` is iOS 17.4, so the
 * opacity-plus-discrete pattern animates the disclosure on every iPhone from 18.4 and does
 * nothing at all anywhere else. No height interpolation, so no measured-height imitation either.
 *
 * `@supports selector()` rather than a property test, because the feature that decides this is
 * the pseudo-element. A browser without it gets today's instant open, which is correct.
 * ============================================================================================= */

@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .qa::details-content {
      opacity: 0;
      transition:
        opacity var(--medium) var(--ease),
        content-visibility var(--medium) allow-discrete;
    }

    .qa[open]::details-content { opacity: 1; }
  }
}

/* THE VOICES BLOCK AND ITS ::scroll-marker DOTS WERE HERE. BOTH ARE GONE.

   Roughly 4.7KB of CSS for markup that exists in zero shipped pages - the voices row is still
   commented out in index.html waiting on real quotes - plus a ::scroll-marker block that was
   dead twice over: Chromium-only, so it can never run on an iPhone, and targeting `.voice-row`,
   which does not exist. Both cycle-2 reviewers listed the pair as a cut, independently.

   The decision survives in docs/design/website-design-principles.md, and so does the contract
   test that fails the build if a quote ever ships without a real name attached. What should NOT
   survive is this shape. Both cycles found the same thing in the premium set: they name people
   without quoting them, or state one checkable number as a sentence, and none of them runs a
   quote carousel. When the testers' quotes arrive, build what the measurement supports. */
