/* Gymmit's site. The app's own look ("Instrument"): aluminium and graphite, paper cards, one signal orange,
   mono labels. Colours mirror apps/mobile/src/theme/tokens.ts; keep them in step. */

:root {
  --bg: #e8e7e3;
  --card: #fbfaf7;
  --raised: #f1f0ec;
  --field: #efeeea;
  --text: #1a1a18;
  --muted: #6a6861;
  --faint: #a3a098;
  --accent: #ff5b1f;
  --on-accent: #1a1a18;
  --accent-text: #c93e0a;
  --focus-edge: rgba(255, 91, 31, 0.7);
  --done: #1a1a18;
  --on-done: #fbfaf7;
  --border: rgba(26, 26, 24, 0.08);
  --rule: rgba(26, 26, 24, 0.14);
  --good: #1e7a47;
  --good-soft: rgba(30, 122, 71, 0.12);
  --warn: #9a5b00;
  --warn-soft: rgba(214, 140, 0, 0.16);
  --bad: #c2362b;
  --bad-soft: rgba(194, 54, 43, 0.11);
  --sticker: #ffd45c;
  --on-sticker: #2e2300;
  --card-shadow: 0 1px 2px rgba(26, 26, 24, 0.05), 0 8px 22px -14px rgba(26, 26, 24, 0.2);
  --phone-shadow: 0 2px 4px rgba(26, 26, 24, 0.06), 0 40px 80px -36px rgba(26, 26, 24, 0.45);
  --bezel: #1a1a18;

  --ui: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --card: #1c1c1a;
    --raised: #252523;
    --field: #282826;
    --text: #eeece6;
    --muted: #9d9a91;
    --faint: #5f5d57;
    --accent: #ff6a2c;
    --on-accent: #111110;
    --accent-text: #ff8350;
    --focus-edge: rgba(255, 106, 44, 0.75);
    --done: #eeece6;
    --on-done: #111110;
    --border: rgba(255, 255, 255, 0.07);
    --rule: rgba(255, 255, 255, 0.14);
    --good: #5ccb8a;
    --good-soft: rgba(92, 203, 138, 0.15);
    --warn: #f0b13e;
    --warn-soft: rgba(240, 177, 62, 0.15);
    --bad: #ff7a6b;
    --bad-soft: rgba(255, 122, 107, 0.15);
    --card-shadow: none;
    --phone-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    --bezel: #3a3936;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Mono labels: column heads, captions, meta. */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sticker {
  display: inline-block;
  background: var(--sticker);
  color: var(--on-sticker);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.brand svg {
  width: 36px;
  height: 36px;
  flex: none;
}

.mark-tile {
  fill: var(--card);
}

.mark-empty {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.4;
}

.mark-full {
  fill: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-ink {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.btn-big {
  min-height: 58px;
  padding: 0 30px;
  font-size: 18px;
}

/* ---------- Hero: the headline and what the coach says, beside the piece of the app that says it ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 386px);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(20px, 3.4vw, 44px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* The headline, the lede, then what the panel beside them was just told and the rule that answered. */
.hero-text {
  display: grid;
  align-content: start;
  gap: 28px;
  padding-top: 8px;
}

.hero h1 {
  font-weight: 800;
  font-stretch: 114%;
  font-size: clamp(54px, 6.6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent-text);
}

.lede {
  max-width: 30em;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.told {
  display: grid;
  gap: 10px;
  max-width: 30em;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* What was tapped, in one size: the answer bold, the plan beside it quieter, on one baseline. */
.said {
  font-size: 22px;
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.said b {
  font-weight: 800;
  color: var(--text);
}

/* Two lines held, so the page doesn't move as the answers change. */
.because {
  min-height: 2.9em;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.because b {
  color: var(--text);
  font-weight: 600;
}

/* The rule that answered, by its name in the app, set off by a thin accent line. Kept in place (hidden) when none
   did, so nothing jumps. */
.rule-line {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.rule-line .mono {
  font-size: 11px;
}

.rule-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.rule-line.none {
  visibility: hidden;
}

.rule-line abbr {
  text-decoration: underline dotted var(--faint);
  text-underline-offset: 3px;
  cursor: help;
}

.demo {
  display: grid;
  gap: 14px;
  align-content: start;
}

/* Beside the text, Why opening moves the panel down into room kept under it (one reason's worth: what plays by
   itself), so nothing below it on the page moves. */
@media (min-width: 901px) {
  .demo {
    min-height: 632px;
  }
}

.demo-hint {
  text-align: center;
}

/* ---------- The app's own pieces, at the app's sizes (points as pixels) ----------
   The lower part of the workout screen: an exercise's card (ExerciseCard.tsx, SetRow.tsx), the coach's banner
   floating over the list (CoachBanner.tsx) and the set panel (ActionPanel.tsx, panelLayout.ts, RestTimer.tsx).
   Keep in step with them. */

.app {
  --panel: #fbfaf7;
  --panel-edge: rgba(26, 26, 24, 0.1);
  --panel-shadow: 0 -1px 2px rgba(26, 26, 24, 0.04), 0 -10px 28px -12px rgba(26, 26, 24, 0.28);
  --key: #ffffff;
  --key-edge: rgba(26, 26, 24, 0.07);
  --glass: rgba(251, 250, 247, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --out: cubic-bezier(0.33, 1, 0.68, 1);
  position: relative;
  width: 100%;
  max-width: 386px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.2;
  -webkit-user-select: none;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  .app {
    --panel: #222220;
    --panel-edge: rgba(255, 255, 255, 0.12);
    --panel-shadow: 0 -10px 28px -8px rgba(0, 0, 0, 0.6);
    --key: #333330;
    --key-edge: rgba(255, 255, 255, 0.1);
    --glass: rgba(38, 38, 36, 0.82);
    --glass-edge: rgba(255, 255, 255, 0.09);
  }
}

.app [hidden] {
  display: none !important;
}

.app button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app p {
  margin: 0;
}

/* The exercise's card: its sets as rows, the one the panel acts on lit. A step in from the panel's sides, as in
   the app (20 pt from the screen's edge to the panel's 14). */
.app-card {
  margin: 0 6px;
  padding: 12px 8px;
  border-radius: 22px;
  background: var(--card);
}

.ac-head {
  display: flex;
  align-items: flex-start;
  padding: 4px 0 0 12px;
}

.ac-titles {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

.ac-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.2px;
}

.ac-meta,
.ac-cols {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}

.ac-meta {
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.66px;
}

.ac-menu {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 1px;
}

.ac-cols {
  display: flex;
  padding: 8px 0 4px;
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.6px;
}

.ac-cols span:nth-child(1) {
  width: 44px;
  padding-left: 12px;
}

.ac-cols span:nth-child(2) {
  flex: 1;
  padding: 0 8px;
}

.ac-cols span:nth-child(3),
.ac-cols span:nth-child(4) {
  width: 76px;
  text-align: center;
}

.ac-cols span:nth-child(5) {
  width: 56px;
  text-align: center;
}

.ac-line {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  margin: 1px 4px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.18s ease-out;
}

/* The set the panel acts on: lifted off the card, with a clear accent edge. */
.ac-line::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--focus-edge);
  border-radius: 12px;
  background: var(--raised);
  opacity: 0;
  transition: opacity 0.18s linear;
}

.ac-line.on {
  transform: scale(1.02);
}

.ac-line.on::before {
  opacity: 1;
}

.ac-line > * {
  position: relative;
}

.ac-set {
  width: 44px;
  padding-left: 12px;
  font-weight: 700;
  font-size: 16px;
}

.ac-prev {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

.ac-cell {
  width: 76px;
  padding: 0 4px;
}

.ac-box {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--field);
  font-weight: 600;
  font-size: 19px;
}

.ac-line.done .ac-box {
  background: transparent;
}

/* A value the coach just wrote lights up in its yellow, then fades. */
.ac-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sticker);
  opacity: 0;
  transition: opacity 0.9s linear;
}

.ac-box.coached::before {
  opacity: 0.45;
  transition-duration: 0.12s;
}

.ac-tick {
  display: flex;
  justify-content: center;
  width: 56px;
}

.ac-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--field);
  font-weight: 700;
  font-size: 15px;
  color: var(--faint);
}

.ac-line.done .ac-check {
  background: var(--done);
  color: var(--on-done);
}

.ac-check.pop {
  animation: ac-pop 0.2s var(--out);
}

.ac-add {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 15px;
}

/* Under the banner or the undo strip it steps back, rather than show half a line past their edge (the site's
   own touch: in the app the list scrolls clear). */
.ac-add {
  transition: opacity 0.16s linear;
}

.app.covered .ac-add {
  opacity: 0;
}

/* The banner's place: over the foot of the card, 8 pt above the panel, as it floats over the list in the app.
   Nothing is kept empty for it. Why opening makes it taller and the panel moves down with it. */
.app-over {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: -60px;
  min-height: 80px;
  padding-bottom: 8px;
  pointer-events: none;
}

.app-over > * {
  pointer-events: auto;
}

.app-banner,
.app-undo {
  position: relative;
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 0.5px var(--glass-edge), var(--card-shadow);
}

.app-banner {
  overflow: hidden;
  padding: 8px 12px;
}

.app-banner[data-tone='good'] {
  --tone: var(--good);
  --tone-soft: var(--good-soft);
}

.app-banner[data-tone='warn'] {
  --tone: var(--warn);
  --tone-soft: var(--warn-soft);
}

.app-banner[data-tone='bad'] {
  --tone: var(--bad);
  --tone-soft: var(--bad-soft);
}

.app-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tone-soft, transparent);
  pointer-events: none;
}

.app-banner.in {
  animation: app-rise 0.22s ease-in-out both;
}

.app-banner.out,
.app-undo.out {
  opacity: 0;
  transition: opacity 0.14s linear;
}

.app-undo.in {
  animation: app-fade 0.16s linear both;
}

.ab-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tone, var(--sticker));
}

.app .ab-say {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 2px 0;
  text-align: left;
}

.ab-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 700;
  font-size: 15px;
  line-height: 19px;
}

.app-banner.open .ab-title {
  -webkit-line-clamp: unset;
}

.ab-whytext,
.ab-tier {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.ab-whytext {
  opacity: 0.7;
}

.app .ab-accept {
  flex: none;
  min-height: 40px;
  max-width: 46%;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--done);
  color: var(--on-done);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.1s ease-out;
}

.app .ab-accept:active {
  transform: scale(0.96);
}

.app .ab-close {
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  font-size: 15px;
  opacity: 0.7;
}

/* Why: the banner grows, then the reason fades down into the room. */
.ab-fold {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s var(--out);
}

.app-banner.open .ab-fold {
  grid-template-rows: 1fr;
}

.ab-why {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.12s linear, transform 0.12s linear;
}

.app-banner.open .ab-why {
  opacity: 1;
  transform: none;
  transition: opacity 0.2s var(--out), transform 0.2s var(--out);
}

.ab-why-in {
  display: grid;
  gap: 4px;
  padding: 2px 0 4px 18px;
}

.ab-reason {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 18px;
}

.app-undo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding-left: 12px;
}

.au-check {
  font-weight: 700;
  font-size: 14px;
}

.au-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}

.app .au-undo {
  min-height: 48px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
}

/* The set panel: paper, only as tall as what it holds (the rest's strip, the label's row, the keys), with the
   rest's line running round its edge. It no longer names the set: the lit row above it does. */
.app-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 188px;
  padding: 12px;
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  outline: 0.5px solid var(--panel-edge);
}

.ap-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ap-trace path {
  fill: none;
  stroke-width: 3;
}

.apt-track {
  stroke: var(--border);
}

.apt-run {
  stroke: var(--accent);
  stroke-linecap: round;
}

.ap-slot {
  position: relative;
  flex: none;
  height: 44px;
  border-radius: 22px;
  overflow: hidden;
}

.ap-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 4px 0 12px;
  border-radius: 22px;
  background: var(--field);
}

.ap-pie {
  flex: none;
  width: 18px;
  height: 18px;
}

.app-ring {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.5;
}

.app-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6.5;
  stroke-dasharray: 20.42 20.42;
  stroke-dashoffset: 20.42;
  transform: rotate(-90deg);
  transform-origin: 9px 9px;
}

.ap-caption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.66px;
  text-transform: uppercase;
  color: var(--muted);
}

.ap-time {
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.ap-time.go {
  color: var(--accent-text);
}

.ap-spacer {
  flex: 1;
}

.ap-buttons {
  display: flex;
  align-self: stretch;
}

/* No gap between the buttons: each one's padding is half of it, so the touch areas meet. */
.app .ap-hit {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.ap-hit .ap-btn {
  transition: transform 0.1s ease-out;
}

.ap-hit:active .ap-btn {
  transform: scale(0.94);
}

.ap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 46px;
  padding: 0 10px;
  border-radius: 16px;
  background: var(--card);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* "Set 2 saved" slides up over the strip for a moment. */
.ap-saved {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--done);
  transform: translateY(44px);
  transition: transform 0.22s ease-in-out;
}

.ap-saved.on {
  transform: none;
  transition: transform 0.26s var(--out);
}

.aps-check {
  font-weight: 800;
  font-size: 15px;
  color: var(--on-done);
}

.aps-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--on-done);
}

.aps-detail {
  margin-left: auto;
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--faint);
}

.ap-body {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* The label, then the second action at the row's end: it used to take a row of its own under the keys. */
.ap-labelrow {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 4px;
}

.ap-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--muted);
}

.app .ap-aside {
  height: 40px;
  margin-left: auto;
  padding-left: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.app .ap-aside:active {
  opacity: 0.6;
}

.ap-track {
  display: flex;
  gap: 6px;
}

.app .ap-key {
  position: relative;
  flex: 1;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--key-edge);
  border-radius: 16px;
  background: var(--key);
  box-shadow: var(--card-shadow);
  font-weight: 800;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.1s ease-out;
}

.app .ap-key:active {
  transform: scale(0.96);
}

/* A tap fills the key orange, then the fill fades as the panel moves on to the next set. */
.ap-key::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
}

.ap-key span {
  position: relative;
}

.ap-key.flash::before {
  animation: app-flash 0.77s linear;
}

.ap-key.flash span {
  animation: app-flash-ink 0.77s linear;
}

/* The site's own mark, not the app's: where the demo taps when it plays by itself. */
.app-tap {
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.app-tap.go {
  animation: tap 0.6s ease-out;
}

@keyframes app-rise {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: none; }
}

@keyframes app-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ac-pop {
  from { transform: scale(0.8); }
  to { transform: none; }
}

@keyframes app-flash {
  0% { opacity: 0; }
  9% { opacity: 1; }
  51% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes app-flash-ink {
  0% { color: var(--text); }
  9% { color: var(--on-accent); }
  51% { color: var(--on-accent); }
  100% { color: var(--text); }
}

/* ---------- Sections ---------- */

.band {
  padding: clamp(56px, 9vw, 128px) 0;
  border-top: 1px solid var(--rule);
}

.band-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.band h2 {
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.band-head p:not(.mono) {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 38em;
}

/* Screenshots: a strip of phones that scrolls sideways */

.strip {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))) 28px;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.phone {
  flex: none;
  width: clamp(230px, 24vw, 300px);
  margin: 0;
  scroll-snap-align: center;
}

.phone-frame {
  border-radius: 13% / 6%;
  padding: 7px;
  background: var(--bezel);
  box-shadow: var(--phone-shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11.5% / 5.3%;
}

.phone figcaption {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--muted);
}

.phone:nth-child(even) {
  margin-top: clamp(20px, 3.5vw, 48px);
}

/* The Lock Screen card, in three states */

.live {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}

.live figure {
  margin: 0;
}

.live img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(26, 26, 24, 0.16));
}

.live figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* Widgets */

.widgets {
  margin-top: clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.widgets .band-head {
  margin-bottom: 0;
}

.widgets h3 {
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.widget-wall {
  display: grid;
  grid-template-columns: 364fr 170fr;
  grid-template-areas:
    'large small'
    'large .'
    'medium medium';
  gap: 14px;
  padding: clamp(16px, 2.6vw, 30px);
  border-radius: 32px;
  background: linear-gradient(160deg, var(--raised), var(--field));
  box-shadow: inset 0 0 0 1px var(--border);
  max-width: 560px;
  justify-self: end;
}

.widget-wall img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(26, 26, 24, 0.14));
}

.widget-wall picture:nth-child(1) {
  grid-area: large;
}

.widget-wall picture:nth-child(2) {
  grid-area: medium;
  width: calc(364 / 548 * 100%);
}

.widget-wall picture:nth-child(3) {
  grid-area: small;
}

/* Rows of phones: side by side when there's room, a sideways strip when there isn't */

.shots {
  display: grid;
  gap: clamp(20px, 3.4vw, 48px);
  justify-content: center;
}

.shots-3 {
  grid-template-columns: repeat(3, minmax(0, 300px));
}

.shots .phone,
.after .phone,
.import .phone {
  width: auto;
}

.shots .phone:nth-child(even) {
  margin-top: clamp(20px, 3.5vw, 48px);
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 80px);
}

.point h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.point p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 32em;
}

.point .small {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

/* Side by side */

.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15.5px;
  line-height: 1.35;
}

.cmp thead th {
  padding: 0 16px 14px;
  text-align: left;
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: -0.02em;
  color: var(--muted);
}

.cmp thead th:nth-child(2) {
  color: var(--text);
}

.cmp tbody th[scope='row'] {
  width: 31%;
  padding: 15px 16px 15px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  border-top: 1px solid var(--rule);
}

.cmp td {
  width: 23%;
  padding: 15px 16px;
  vertical-align: top;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

/* Gymmit's column reads as one card running down the table. */
.cmp td:nth-child(2),
.cmp thead th:nth-child(2) {
  background: var(--card);
  color: var(--text);
}

.cmp thead th:nth-child(2) {
  padding-top: 18px;
  border-radius: 22px 22px 0 0;
}

.cmp tbody tr:last-child td:nth-child(2) {
  border-radius: 0 0 22px 22px;
  padding-bottom: 20px;
}

.cmp .cmp-group th {
  padding: 34px 0 10px;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  /* The card behind Gymmit's column runs through the group rows too. */
  background: linear-gradient(to right, transparent 31%, var(--card) 31%, var(--card) 54%, transparent 54%);
}

.cmp tbody tr:first-child.cmp-group th {
  padding-top: 14px;
}

.cmp td span {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

/* A solid dot for yes, a ring for no, a half for partly, a dash for "not on their pages". No green or red: this
   isn't a scorecard. */
.cmp i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(0.5px);
}

.m-yes {
  background: currentColor;
}

.m-no {
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.6;
}

.m-part {
  background: linear-gradient(to right, currentColor 50%, transparent 50%);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.cmp i.m-na {
  height: 1.5px;
  border-radius: 0;
  background: currentColor;
  opacity: 0.6;
  transform: translateY(-4px);
}

.cmp-note {
  margin-top: 24px;
  max-width: 62em;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.cmp-note a {
  color: var(--text);
}

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

/* Import */

.import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}

.import .band-head {
  margin-bottom: 0;
}

/* Sections arrive like new cards in the app: a short fade and rise, once (site.js adds the classes). */

.arrive {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.arrive.in {
  opacity: 1;
  transform: none;
}

/* Spec sheet */








/* After the workout */

.after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 300px);
  gap: clamp(20px, 3.4vw, 48px);
  align-items: start;
}

.after-text {
  display: grid;
  gap: 32px;
  align-content: start;
}

/* A cut from further down a screen: no phone around it, since it isn't a whole one. */
.sheet {
  margin-top: clamp(20px, 3.5vw, 48px);
}

.sheet-frame {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--phone-shadow), 0 0 0 1px var(--border);
}

.sheet-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Closing */

.close {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.close h2 {
  max-width: 14em;
}

.close p {
  color: var(--muted);
  max-width: 34em;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 44px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--muted);
}

.foot nav {
  display: flex;
  gap: 20px;
}

/* ---------- Privacy page ---------- */

.doc {
  max-width: 44rem;
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.doc h1 {
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.doc .mono {
  margin-top: 14px;
}

.doc h2 {
  margin-top: 40px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.doc p {
  margin-top: 10px;
  color: var(--muted);
}

.doc p.first {
  margin-top: 24px;
  font-size: 19px;
  color: var(--text);
}

.doc a {
  color: var(--accent-text);
  font-weight: 600;
}

/* ---------- Small screens ---------- */

@media (max-width: 1000px) {
  .after {
    grid-template-columns: repeat(2, minmax(0, 300px));
    justify-content: center;
  }

  .after-text {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .widgets {
    grid-template-columns: minmax(0, 1fr);
  }

  .widget-wall {
    justify-self: start;
  }

  .live {
    grid-template-columns: minmax(0, 373px);
    gap: 28px;
  }

  .points {
    grid-template-columns: minmax(0, 1fr);
  }

  /* One column: the headline, the lede, the piece of the app, then what it just said. */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .hero-text {
    display: contents;
  }

  .hero h1 {
    font-size: clamp(40px, 7.7vw, 70px);
  }

  .demo {
    order: 2;
  }

  .told {
    order: 3;
    max-width: none;
  }

  .import {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .import .phone {
    width: min(320px, 82vw);
    justify-self: center;
  }

}

/* Three phones don't fit: they become a strip that scrolls sideways, edge to edge. */
@media (max-width: 760px) {
  .shots-3 {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 calc(-1 * var(--gutter));
    padding: 8px var(--gutter) 28px;
    scrollbar-width: none;
  }

  .shots-3::-webkit-scrollbar {
    display: none;
  }

  .shots-3 .phone {
    flex: none;
    width: min(270px, 70vw);
    scroll-snap-align: center;
  }

  .points {
    margin-top: 16px;
  }

  .after-text {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The table turns into one block per row: the question, then each app's answer on its own line. */
  .cmp thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
    width: auto;
  }

  .cmp tbody th[scope='row'] {
    width: auto;
    padding: 16px 0 8px;
  }

  .cmp td,
  .cmp td:nth-child(2) {
    display: grid;
    grid-template-columns: 5.2em minmax(0, 1fr);
    gap: 10px;
    width: auto;
    padding: 5px 0;
    border: 0;
    background: none;
    border-radius: 0;
  }

  .cmp tbody tr:last-child td:nth-child(2) {
    padding-bottom: 5px;
  }

  .cmp td::before {
    content: attr(data-app);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
  }

  .cmp td:last-child {
    padding-bottom: 16px;
  }

  .cmp .cmp-group th {
    padding: 28px 0 8px;
    background: none;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 520px) {
  .after {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .after .phone {
    width: min(300px, 82vw);
  }

  .sheet {
    margin-top: 0;
  }

  .top .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 15px;
  }





}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Top bar links ---------- */

.top-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  margin-left: auto;
  margin-right: clamp(4px, 1.6vw, 20px);
}

.top-nav a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .top-nav {
    display: none;
  }
}

/* ---------- Every screen: the workout on the wrist and on the Lock Screen ----------
   Stacked by default: each text, then its scene. On a wide window site.js adds `.pin`: the texts scroll on the
   left and the scene for the one in the middle of the window stands still on the right. */

.screens {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 36px);
}

.screens-says,
.screens-stage {
  display: contents;
}

.say {
  display: grid;
  gap: 14px;
  max-width: 34rem;
}

.say h3 {
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.say p {
  color: var(--muted);
}

.say-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.scene {
  margin: 0 0 clamp(36px, 8vw, 72px);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.scene figcaption {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  max-width: 46ch;
}

.say[data-scene='wrist'] { order: 1; }
.scene[data-scene='wrist'] { order: 2; }
.say[data-scene='lock'] { order: 3; }
.scene[data-scene='lock'] { order: 4; margin-bottom: 0; }

@media (min-width: 1000px) {
  .screens.pin {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }

  .screens.pin .screens-says {
    display: block;
  }

  .screens.pin .say {
    min-height: 84vh;
    align-content: center;
    opacity: 0.25;
    transition: opacity 0.4s ease;
  }

  .screens.pin .say.on {
    opacity: 1;
  }

  .screens.pin .screens-stage {
    display: block;
    position: sticky;
    top: 8vh;
    height: 84vh;
  }

  .screens.pin .scene {
    position: absolute;
    inset: 0;
    margin: 0;
    align-content: center;
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    transition:
      opacity 0.45s ease,
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .screens.pin .scene.on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* The wrist: a smaller copy of the hero's piece of the phone's screen, and the watch beside it. */

/* Both start on one line. */
.pair {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 36px);
  width: 100%;
}

/* Each with a word over it saying which it is. */
.pair-side {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 14px;
}

/* The copy is drawn at the app's size and scaled as a whole, so it stays the same drawing: `--k` is how much.
   Its card shows, the set's rows, and under it the coach's banner when it answers: the watch is what moves here,
   and the phone answers it. The height keeps room for the banner, so nothing moves when it comes. */
.pair-phone {
  --k: 0.66;
  width: calc(386px * var(--k));
  height: calc(340px * var(--k));
}

.mini .app-undo,
.mini .app-panel,
.mini .app-tap {
  display: none;
}

.app.mini.covered .ac-add {
  opacity: 1;
}

.app.mini {
  width: 386px;
  max-width: none;
  margin: 0;
  transform: scale(var(--k));
  transform-origin: 0 0;
  pointer-events: none;
}

/* The watch: the 46 mm one, its display 208 by 248 points, drawn a point to a pixel. Always dark, as the watch is
   (the dark palette of the app on black glass). */
.watch {
  position: relative;
  flex: none;
  width: 232px;
  padding: 12px;
  border-radius: 70px;
  background: var(--bezel);
  box-shadow: var(--phone-shadow);
}

.watch::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 62px;
  width: 7px;
  height: 36px;
  border-radius: 2px 4px 4px 2px;
  background: var(--bezel);
}

.watch-glass {
  --w-card: #1c1c1a;
  --w-key: #333330;
  --w-text: #eeece6;
  --w-muted: #9d9a91;
  --w-accent: #ff6a2c;
  --w-on-accent: #111110;
  --w-accent-text: #ff8350;
  position: relative;
  width: 208px;
  height: 248px;
  overflow: hidden;
  /* The display's own corner: the line round it runs 3 points inside this. */
  border-radius: 58px;
  background: #000;
  color: var(--w-text);
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}

.watch-glass p {
  margin: 0;
}

/* The line that runs round the display while a rest passes: a faint track, the accent over it. */
.w-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.timed .w-trace {
  display: block;
}

.w-trace path {
  fill: none;
  stroke-width: 3;
  stroke: rgba(255, 255, 255, 0.1);
}

.w-trace path + path {
  stroke: var(--w-accent);
}

/* The system's clock, in the corner it keeps. */
.w-clock {
  position: absolute;
  top: 17px;
  right: 22px;
  font-family: -apple-system, 'SF Pro Rounded', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 20px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.w-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 19px 12px 12px;
}

.w-head,
.w-cap,
.w-coach {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--w-muted);
}

.w-head {
  flex: none;
  height: 16px;
  padding-left: 13px;
  line-height: 16px;
}

.w-head.w-accent,
.w-over {
  color: var(--w-accent-text);
}

.w-name {
  padding: 5px 2px 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  font-size: 16.2px;
  line-height: 21px;
}

.w-name + .w-cap {
  padding: 1px 2px 0;
}

.w-values {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  margin-top: 6px;
  border-radius: 14px;
  background: var(--w-card);
}

.w-val {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 4px 8px;
}

.w-val b {
  font-weight: 700;
  font-size: 29px;
  line-height: 34px;
  font-variant-numeric: tabular-nums;
}

.w-val i {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  opacity: 0.72;
}

.w-x {
  font-weight: 500;
  font-size: 16px;
  color: var(--w-muted);
}

/* The set to lift now is the one live thing: orange once the rest is over. */
.w-values.go {
  background: var(--w-accent);
  color: var(--w-on-accent);
}

.w-values.go .w-x {
  color: rgba(17, 17, 16, 0.6);
}

.w-row {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 3px 5px;
}

.w-keys {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.w-keys span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  background: var(--w-key);
  font-weight: 600;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

/* The two keys in the display's lower corners follow its curve. */
.w-keys span:nth-child(4) {
  border-bottom-left-radius: 22px;
}

.w-keys span:nth-child(6) {
  border-bottom-right-radius: 22px;
}

.w-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.w-big {
  font-weight: 700;
  font-size: 58px;
  line-height: 62px;
  font-variant-numeric: tabular-nums;
}

.w-next {
  padding-top: 4px;
}

.w-nextline {
  padding-top: 2px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
}

/* 4 points further in than the watch app has them today: there their corners touch the line round the display. */
.w-pills {
  flex: none;
  display: flex;
  gap: 6px;
  margin: 0 4px 4px;
}

.w-pills span,
.w-use,
.w-not {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 600;
  font-size: 15px;
}

.w-pills span {
  flex: 1;
  height: 38px;
  border-radius: 19px;
  background: var(--w-key);
}

.w-coach {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px 0;
}

.w-coach i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.w-coach[data-tone='good'] { color: #5ccb8a; }
.w-coach[data-tone='warn'] { color: #f0b13e; }
.w-coach[data-tone='bad'] { color: #ff7a6b; }

.w-card {
  display: grid;
  gap: 4px;
  margin-top: 5px;
  padding: 9px 10px;
  border-radius: 14px;
}

.w-card[data-tone='good'] { background: rgba(92, 203, 138, 0.16); }
.w-card[data-tone='warn'] { background: rgba(240, 177, 62, 0.16); }
.w-card[data-tone='bad'] { background: rgba(255, 122, 107, 0.16); }

.w-card b {
  font-weight: 600;
  font-size: 15px;
  line-height: 18px;
}

.w-card span {
  font-weight: 500;
  font-size: 11.5px;
  line-height: 14px;
  color: var(--w-muted);
}

.w-use {
  flex: none;
  height: 40px;
  margin-top: 10px;
  border-radius: 20px;
  background: var(--w-text);
  color: var(--w-on-accent);
}

.w-not {
  flex: none;
  height: 30px;
  margin-top: 4px;
  color: var(--w-muted);
}

/* Where the watch was tapped: a ring, once. */
.tap {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  margin: -14% 0 0 -14%;
  border-radius: 50%;
  border: 2px solid #ff6a2c;
  opacity: 0;
  pointer-events: none;
}

.tap.go {
  animation: tap 0.7s ease-out;
}

@keyframes tap {
  0% { opacity: 0.95; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* A wide window has room for both a little larger. */
@media (min-width: 1200px) {
  .watch {
    zoom: 1.15;
  }

  .pair-phone {
    --k: 0.78;
  }
}

/* One column: the watch first, it's the subject, then the phone's rows following it. */
@media (max-width: 760px) {
  .pair {
    flex-direction: column-reverse;
    align-items: center;
    gap: 32px;
  }

  .pair-phone {
    --k: 0.84;
  }
}

/* What just happened, in a line under the two: plain words, one step at a time. */
.beat {
  min-height: 1.5em;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.beat b {
  color: var(--text);
  font-weight: 700;
}

/* The Lock Screen cards, dealt one after another. */

.deck {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 746 / 440;
}

.deck figure {
  position: absolute;
  inset: 0 0 auto 0;
  margin: 0;
  transform-origin: 50% 0;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
}

.deck img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(26, 26, 24, 0.16));
}

.deck figure[data-at='0'] { z-index: 3; }
.deck figure[data-at='1'] { z-index: 2; transform: translateY(14%) scale(0.94); opacity: 0.7; }
.deck figure[data-at='2'] { z-index: 1; transform: translateY(27%) scale(0.88); opacity: 0.4; }
.deck figure[data-at='out'] { z-index: 4; transform: translateY(-36%) scale(1.02); opacity: 0; }

.scene .widget-wall {
  justify-self: center;
  width: 100%;
}

/* ---------- A shorter page (2026-11-13) ---------- */

/* The table starts with the rows that decide it; the button under it shows the rest. Without scripts all rows show. */
.js .cmp:not(.all) .cmp-more {
  display: none;
}

.cmp.all tbody:not(.cmp-more) tr:last-child td:nth-child(2),
html:not(.js) .cmp tbody:not(.cmp-more) tr:last-child td:nth-child(2) {
  border-radius: 0;
  padding-bottom: 15px;
}

.cmp .cmp-more tr:first-child.cmp-group th {
  padding-top: 34px;
}

.cmp-all {
  margin-top: 28px;
}

html:not(.js) .cmp-all {
  display: none;
}

/* The written review is long: its start is enough, fading out where it's cut. */
.sheet-frame {
  max-height: 440px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

/* The widgets among the other screens: no phone around them, two sizes one over the other. */
.widget-shot {
  align-self: center;
}

.widget-stack {
  display: grid;
  gap: 14px;
}

.widget-stack img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(26, 26, 24, 0.14));
}

.widget-stack picture:nth-child(2) {
  width: 100%;
}

/* ---------- Phones: room to breathe ----------
   One column loses the empty space a wide window has beside things, so it gets it between them instead, and the
   hero says a little less: what the panel already shows isn't repeated in words. Last in the file on purpose. */

@media (max-width: 760px) {
  .roomy {
    display: none;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.8vw, 52px);
  }

  .hero {
    row-gap: 44px;
  }

  /* The lede keeps to the headline: 28 px, not the 44 between the blocks. */
  .hero h1 {
    margin-bottom: -16px;
  }

  .told {
    gap: 8px;
    padding-top: 0;
    border-top: 0;
  }

  .band {
    padding: 84px 0;
  }

  .band-head {
    gap: 18px;
    margin-bottom: 44px;
  }

  .points {
    gap: 36px;
    margin-top: 28px;
  }

  .screens {
    gap: 28px;
  }

  .say {
    gap: 16px;
  }

  .scene {
    gap: 18px;
    margin-bottom: 72px;
  }

  .after-text {
    gap: 40px;
  }

  .close {
    gap: 28px;
  }
}

/* ---------- Your AI: the guide, what it can change, the connector's docs ---------- */

.doc.guide {
  max-width: 48rem;
}

.doc h3 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc ul,
.doc ol {
  margin: 10px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.doc li {
  margin-top: 6px;
}

.doc li strong,
.doc p strong {
  color: var(--text);
  font-weight: 600;
}

.doc code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--field);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.beta {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--sticker);
  color: var(--on-sticker);
  font-weight: 600;
  font-size: 14px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  background: var(--field);
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 14px;
  text-decoration: none;
}

.doc .steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.doc .steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-top: 14px;
}

.doc .steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--field);
  color: var(--text);
  font: 600 13px/26px var(--mono);
  text-align: center;
}

.prompts {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.prompt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 14px 14px 14px 18px;
}

.prompt q {
  flex: 1;
  min-width: 0;
  quotes: none;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.prompt .why {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.copy {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: var(--field);
  color: var(--text);
  font: 600 13px var(--ui);
  cursor: pointer;
}

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

.endpoint {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 10px 10px 14px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.endpoint code {
  flex: 1;
  min-width: 0;
  background: none;
  padding: 0;
}

.note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--raised);
  color: var(--muted);
  font-size: 15px;
}

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

.two-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.two-lists > div {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 16px 18px;
}

.two-lists h3 {
  margin-top: 0;
}

.tool {
  margin-top: 14px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 16px 18px;
  scroll-margin-top: 16px;
}

.tool header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tool header code {
  font-size: 15px;
  font-weight: 600;
}

.tool .tag {
  font: 500 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2px 6px;
}

.doc .tool p {
  margin-top: 8px;
  font-size: 15px;
}

.doc .tool .tool-title {
  margin-top: 6px;
  color: var(--text);
  font-weight: 600;
}

.args {
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.args dt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.args dt span {
  font: 500 11px var(--mono);
  color: var(--muted);
}

.args dd {
  margin: 0 0 4px;
  color: var(--muted);
}

.doc .args-none {
  font-size: 14px;
  color: var(--faint);
}

@media (max-width: 640px) {
  .two-lists {
    grid-template-columns: minmax(0, 1fr);
  }

  .prompt {
    flex-direction: column;
  }
}

.prompt > div {
  flex: 1;
  min-width: 0;
}

.prompt q {
  display: block;
}

.doc .beta {
  color: var(--on-sticker);
}
