/* Stridune website: design tokens (round 3). The rules are written down in design/SYSTEM.md.
   Brand colours are fixed by the app (Theme.swift). Light and dark follow the visitor's device. */

:root {
  color-scheme: light dark;

  /* Type: the system typeface, and its rounded cut for headlines and numbers, as in the app.
     No font file is loaded. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.5rem, 1.35rem + 5.1vw, 5rem);        /* 40 to 80 px */
  --fs-h1: clamp(2.25rem, 1.5rem + 3.3vw, 4rem);          /* inner pages: 36 to 64 px */
  --fs-h2: clamp(2.125rem, 1.45rem + 3vw, 3.5rem);        /* 34 to 56 px */
  --fs-h3: clamp(1.375rem, 1.25rem + 0.55vw, 1.75rem);    /* 22 to 28 px */
  --fs-lead: clamp(1.1875rem, 1.08rem + 0.5vw, 1.5rem);   /* 19 to 24 px */
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1875rem); /* 17 to 19 px */
  --fs-small: 0.9375rem;                                   /* 15 px */
  --fs-fine: 0.8125rem;                                    /* 13 px */

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --sec: clamp(4.5rem, 2.6rem + 8.5vw, 9.5rem);           /* section padding, top and bottom: 72 to 152 px */
  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 3rem);
  --wrap: 70rem;
  --measure: 42.5rem;                                      /* 680 px, the widest text column */

  /* Shape */
  --r-tile: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);          /* 24 to 28 px */
  --r-small: 0.875rem;                                     /* 14 px */
  --r-pill: 999px;
  --shadow-device: 0 2.5rem 4rem -1.75rem rgba(29, 22, 18, 0.28), 0 0.75rem 1.5rem -1rem rgba(29, 22, 18, 0.18);

  /* The four grounds */
  --white: #FFFFFF;
  --warm: #F6F4F1;
  --tint: #FFF0E6;
  --black: #0B0A09;

  /* Current ground (set again by each section) */
  --surface: var(--white);
  --card: var(--warm);
  --line: rgba(29, 22, 18, 0.12);
  --track: #E9E6E1;

  --ink: #1D1612;
  --ink-2: #4F4741;
  --ink-3: #6E655E;

  --ember: #B83A0B;
  --ember-soft: #FFE8DB;
  --teal: #0B7285;
  --teal-soft: #D8EDF1;
  --violet: #5746AF;
  --violet-soft: #E9E5F8;
  --pause: #4A6076;
  --pause-soft: #E2E8EE;
  --pending: #946200;
  --good: #1E7A46;

  --btn-bg: #B83A0B;
  --btn-bg-hover: #9E3008;
  --btn-ink: #FFFFFF;
  --focus: #0B7285;
  --frame: #17120F;
  --frame-ring: transparent;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 140ms;
}

/* The dark set: used by the whole site in dark mode, and by near-black sections in light mode. */
.bg-black, .tile.dark {
  --surface: var(--black); --card: #1A1918; --line: rgba(255, 255, 255, 0.16); --track: #2C2B2A;
  --ink: #F5F2EE; --ink-2: #C4BDB6; --ink-3: #9C948D;
  --ember: #FF8A4C; --ember-soft: #4A2413; --teal: #4DC3D6; --teal-soft: #12363D; --violet: #A99BF5; --violet-soft: #2A2548;
  --pause: #9DB4CA; --pause-soft: #252E37; --pending: #F2B84B; --good: #5FCB8B;
  --btn-bg: #FF8A4C; --btn-bg-hover: #FFA06C; --btn-ink: #1F0D03; --focus: #4DC3D6;
  --frame: #000000; --frame-ring: #3A3836;
  --shadow-device: 0 0 0 0 transparent;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --white: #000000; --warm: #111110; --tint: #1D130D; --black: #000000;
    --card: #1A1918; --line: rgba(255, 255, 255, 0.16); --track: #2C2B2A;
    --ink: #F5F2EE; --ink-2: #C4BDB6; --ink-3: #9C948D;
    --ember: #FF8A4C; --ember-soft: #4A2413; --teal: #4DC3D6; --teal-soft: #12363D; --violet: #A99BF5; --violet-soft: #2A2548;
    --pause: #9DB4CA; --pause-soft: #252E37; --pending: #F2B84B; --good: #5FCB8B;
    --btn-bg: #FF8A4C; --btn-bg-hover: #FFA06C; --btn-ink: #1F0D03; --focus: #4DC3D6;
    --frame: #000000; --frame-ring: #3A3836;
    --shadow-device: 0 0 0 0 transparent;
  }
}

/* Grounds. A tile is always one step away from its ground. */
.bg-white { --surface: var(--white); --card: var(--warm); }
.bg-warm { --surface: var(--warm); --card: var(--white); }
.bg-tint { --surface: var(--tint); --card: var(--white); }
@media (prefers-color-scheme: dark) {
  .bg-white { --card: #171615; }
  .bg-warm { --card: #1F1E1D; }
  .bg-tint { --card: #2A1C14; }
}
/* Stridune website styles (round 3). Tokens come from design/tokens.css (joined in by build.py).
   The rules behind these styles are written down in design/SYSTEM.md. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
a, button, summary { touch-action: manipulation; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); font-weight: 400; line-height: 1.55; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-wrap: break-word; accent-color: var(--ember);
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ember-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 4.5rem; }

a { color: var(--ember); text-decoration: none; }
p a, li a, dd a, td a, figcaption a { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; } }

h1, h2, h3, h4, .num { font-family: var(--font-round); }
h1, h2 { font-weight: 700; letter-spacing: -0.022em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.18; letter-spacing: -0.014em; text-wrap: balance; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.014em; }
.small { font-size: var(--fs-small); color: var(--ink-2); }
.fine { font-size: var(--fs-fine); color: var(--ink-2); line-height: 1.45; }
.num { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.eyebrow { font-family: var(--font-round); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem); font-weight: 600; color: var(--ember); letter-spacing: -0.005em; margin-bottom: var(--s-3); }
.em { color: var(--ember); }
.em-teal { color: var(--teal); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.sec { padding-block: var(--sec); background: var(--surface); color: var(--ink); }
.stack > * + * { margin-top: var(--s-5); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 20; background: var(--white); color: var(--ink); padding: var(--s-3) var(--s-4); border-radius: var(--r-small); font-weight: 600; }
.skip:focus { top: var(--s-3); }

/* Section head: one idea, centred */
.head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 1.5rem + 4vw, 4.5rem); text-align: center; }
.head .lead { margin-top: var(--s-5); max-width: 38rem; margin-inline: auto; }
.head.left { margin-inline: 0; text-align: left; }
.head.left .lead { margin-inline: 0; }
.more { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fs-body); font-weight: 500; }
.more::after { content: ""; width: 0.45em; height: 0.45em; margin-left: 0.4em; border-right: 0.1em solid currentColor; border-top: 0.1em solid currentColor; transform: rotate(45deg); }
.links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-6); margin-top: var(--s-4); }
.head.left .links-row, .duo-text .links-row { justify-content: flex-start; }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-ink); font: inherit; font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none !important; text-align: center; border: 0; border-radius: var(--r-pill); cursor: pointer;
  transition: background-color var(--t-press) ease, transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 2.25rem; padding: 0.35rem 1rem; font-size: 0.875rem; }
.btn-quiet { background: transparent; color: var(--ember); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--btn-bg-hover); } .btn-quiet:hover { background: var(--ember-soft); } }
.cta-row { margin-top: var(--s-6); display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.cta-note { font-size: var(--fs-small); color: var(--ink-2); }

/* Header: a thin translucent bar */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--white) 78%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 3.25rem; }
.logo { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; color: var(--ink); font-family: var(--font-round); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin-right: auto; text-decoration: none !important; }
.logo svg { width: 1.6rem; height: 1.6rem; flex: none; }
.site-header .btn { white-space: nowrap; }
.nav-wide { display: none; }
.nav-wide ul { display: flex; gap: var(--s-1); }
.nav-wide a, .nav-menu a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.8rem; color: var(--ink-2); font-size: 0.875rem; font-weight: 500; text-decoration: none !important; }
.nav-wide a[aria-current="page"], .nav-menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .nav-wide a:hover, .nav-menu a:hover { color: var(--ink); } }
.nav-menu { position: static; }
.nav-menu summary { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.6rem; font-weight: 500; font-size: 0.875rem; color: var(--ink-2); cursor: pointer; list-style: none; user-select: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { color: var(--ink); }
.nav-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: var(--s-2) var(--gutter) var(--s-4); }
.nav-menu li + li { border-top: 1px solid var(--line); }
.nav-menu li a { display: flex; width: 100%; min-height: 3.25rem; padding: 0; font-size: 1.0625rem; color: var(--ink); }
@media (min-width: 56rem) { .nav-wide { display: block; } .nav-menu { display: none; } .site-header .wrap { gap: var(--s-5); } }
@media (max-width: 22rem) { .logo { font-size: 1.1rem; } .site-header .wrap { gap: var(--s-2); } .site-header .btn-small { padding-inline: 0.7rem; } }

/* Devices: plain drawn frames. The only place for a shadow. */
.phone { width: 100%; max-width: var(--phone-w, 19rem); margin-inline: auto; }
.phone picture { display: block; padding: 2.9%; background: var(--frame); border-radius: 16.5% / 7.6%; box-shadow: 0 0 0 1px var(--frame-ring), var(--shadow-device); }
.phone img { width: 100%; border-radius: 14.2% / 6.55%; aspect-ratio: 1320 / 2868; }
.phone figcaption, .fig-note { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; text-align: center; }
.phone.cut { overflow: hidden; aspect-ratio: 1 / var(--cut, 1.44); }
.phone.cut picture { box-shadow: 0 0 0 1px var(--frame-ring); }
@media (prefers-color-scheme: dark) { .phone.cut picture { box-shadow: 0 0 0 1px var(--frame-ring); } }
.bg-black .phone.cut picture, .tile.dark .phone.cut picture { box-shadow: 0 0 0 1px var(--frame-ring); }

.watch { width: min(100%, var(--watch-w, 11.5rem)); margin-inline: auto; }
.watch picture, .watch .watch-body { display: block; padding: 5%; background: #000; border-radius: 26%; box-shadow: 0 0 0 3px var(--watch-ring, #2B2927), var(--shadow-device); position: relative; }
.watch picture::after, .watch .watch-body::after { content: ""; position: absolute; right: -4.5%; top: 27%; width: 4%; height: 16%; border-radius: 0.2rem; background: var(--watch-ring, #2B2927); }
.watch img { width: 100%; border-radius: 20%; aspect-ratio: 416 / 496; }
.watch .watch-body svg { width: 100%; height: auto; border-radius: 20%; display: block; }
.watch figcaption { margin-top: var(--s-4); font-size: var(--fs-small); text-align: center; color: var(--ink-2); line-height: 1.4; }
.bg-black .watch, .tile.dark .watch { --watch-ring: #4A4744; }
@media (prefers-color-scheme: dark) { .watch { --watch-ring: #4A4744; } }
.watches { display: flex; flex-wrap: wrap; gap: var(--s-7) var(--s-6); justify-content: center; align-items: flex-start; }
.watches .watch { flex: 0 1 11rem; min-width: 8rem; margin: 0; }
.watch.watch-face { --watch-w: 13rem; }
.watches .watch.watch-face { flex: 0 1 12.5rem; min-width: 9rem; }

.widget { display: block; overflow: hidden; box-shadow: var(--shadow-device); }
.widget img { width: 100%; display: block; }
.widget-week, .widget-medium { border-radius: 7.4% / 15.8%; width: min(100%, 22rem); }
.widget-small { border-radius: 15.8%; width: min(46%, 10.3rem); }
.widget-set { display: grid; gap: var(--s-5); justify-items: center; }
.crop { display: block; border-radius: var(--r-small); overflow: hidden; }
.crop img { width: 100%; display: block; }

/* Hero */
.hero { padding-top: clamp(3rem, 1.5rem + 6vw, 6.5rem); padding-bottom: 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.03; letter-spacing: -0.028em; }
.hero .lead { margin: var(--s-5) auto 0; max-width: 37rem; }
.hero-media { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); --phone-w: clamp(16.5rem, 10rem + 16vw, 21.5rem); }
.pill { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.25rem 0.9rem; border-radius: var(--r-pill); background: var(--card); color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; margin-bottom: var(--s-5); }
.pill b { color: var(--ember); font-weight: 600; }
.hero .pill { text-transform: none; }

/* Two columns: words and one picture */
.duo { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.duo > * { min-width: 0; }
.duo-text h2 + .lead, .duo-text .eyebrow + h2 + .lead { margin-top: var(--s-5); }
.duo-text > * + * { margin-top: var(--s-5); }
.duo-text > .eyebrow + h2 { margin-top: 0; }
.duo-media { --phone-w: clamp(16rem, 12rem + 10vw, 19.5rem); display: grid; justify-items: center; }
@media (min-width: 56rem) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .duo.flip .duo-media { order: -1; }
}
@media (max-width: 55.99rem) { .duo-text { text-align: center; } .duo-text .lead { margin-inline: auto; max-width: 36rem; } .duo-text .ticks { text-align: left; max-width: 28rem; margin-inline: auto; } .duo-text .links-row { justify-content: center; } }

/* Tiles: a grid of rounded tiles in different sizes */
.bento { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: minmax(0, 1fr); }
.tile { background: var(--card); color: var(--ink); border-radius: var(--r-tile); padding: clamp(1.5rem, 1rem + 2.2vw, 2.5rem); display: flex; flex-direction: column; overflow: hidden; min-width: 0; position: relative; }
.tile h3 { max-width: 20ch; }
.tile p { margin-top: var(--s-3); color: var(--ink-2); max-width: 30rem; }
.tile .more { margin-top: var(--s-2); }
.tile .media { margin-top: auto; padding-top: var(--s-6); display: grid; justify-items: center; }
.tile .media.bleed { margin-inline: calc(-1 * clamp(1.5rem, 1rem + 2.2vw, 2.5rem)); margin-bottom: calc(-1 * clamp(1.5rem, 1rem + 2.2vw, 2.5rem)); }
.tile .media .crop { width: 100%; }
.tile .media.phone-peek { --phone-w: 15rem; margin-bottom: calc(-1 * clamp(1.5rem, 1rem + 2.2vw, 2.5rem)); }
.tile .big { font-family: var(--font-round); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 4.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ember); }
.tile .big small { font-size: 0.36em; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; margin-left: 0.15em; }
.tile.dark { background: #000; }
.tile.ember { background: var(--btn-bg); color: var(--btn-ink); }
.tile.ember p { color: inherit; opacity: 0.92; }
.tile.wallpaper { background: linear-gradient(160deg, #FFE1CC 0%, #FFF0E6 55%, #F6F4F1 100%); --ink: #1D1612; --ink-2: #4F4741; --ember: #B83A0B; color: var(--ink); }
.tile.center { text-align: center; align-items: center; }
.tile.center h3, .tile.center p { margin-inline: auto; }
@media (min-width: 40rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.t4, .tile.t6 { grid-column: span 2; }
}
@media (min-width: 62rem) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile.t2 { grid-column: span 2; } .tile.t3 { grid-column: span 3; } .tile.t4 { grid-column: span 4; } .tile.t6 { grid-column: span 6; }
  .tile.row { flex-direction: row; align-items: center; gap: var(--s-7); }
  .tile.row > div:first-child { flex: 1 1 0; }
  .tile.row .media { flex: 1 1 0; margin-top: 0; padding-top: 0; }
}

/* Ticks */
.ticks { display: grid; gap: var(--s-3); }
.ticks li { display: grid; grid-template-columns: 1.375rem minmax(0, 1fr); gap: var(--s-3); }
.ticks svg { width: 1.375rem; height: 1.375rem; margin-top: 0.15em; color: var(--ember); }

/* The sum for a recovery day */
.sum { display: grid; gap: 0; font-variant-numeric: tabular-nums; max-width: 26rem; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-block: 0.8rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.sum div b { font-family: var(--font-round); font-weight: 600; font-size: 1.375rem; color: var(--ink); white-space: nowrap; }
.sum .is-teal { border-bottom: 0; color: var(--teal); font-weight: 600; }
.sum .is-teal b { color: var(--teal); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 55.99rem) { .duo-text .sum { margin-inline: auto; text-align: left; } }

/* The counting diagram: one day in four stretches, two devices, two methods */
.cd { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.25rem, 0.75rem + 2.4vw, 2.5rem); max-width: 46rem; margin-inline: auto; }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem clamp(0.375rem, 1.2vw, 0.75rem); align-items: end; }
.cd-when { display: grid; justify-items: center; gap: 0.3rem; text-align: center; font-size: var(--fs-fine); line-height: 1.2; color: var(--ink-2); font-weight: 500; padding-bottom: 0.4rem; align-self: start; }
.cd-when svg { width: 1.625rem; height: 1.625rem; color: var(--ink-3); }
.cd-label { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-top: 0.75rem; font-weight: 600; font-size: var(--fs-small); }
.cd-label i { font-style: normal; display: inline-flex; align-items: center; gap: 0.45rem; }
.cd-label i::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--c); }
.cd-label b { font-family: var(--font-round); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-label.result i::before { display: none; }
.cd-cell { position: relative; height: clamp(3rem, 2.6rem + 1.6vw, 3.5rem); border-radius: var(--r-small); background: var(--track); display: grid; place-items: center; }
.cd-cell::before { border-radius: inherit; }
.cd-cell em { display: none; position: absolute; top: -0.6rem; right: -0.25rem; padding: 0.05rem 0.4rem; border-radius: var(--r-pill); background: var(--ink); color: var(--card); font-style: normal; font-family: var(--font-round); font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.cd-cell::before { content: ""; position: absolute; inset: 0; background: var(--c); opacity: 0.22; }
.cd-cell.zero::before { display: none; }
.cd-cell span { position: relative; font-family: var(--font-round); font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1875rem); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cd-cell.zero span { color: var(--ink-3); font-weight: 500; }
.cd-cell.took { background: var(--c); }
.cd-cell.took::before { display: none; }
.cd-cell.took span { color: #fff; }
@media (prefers-color-scheme: dark) { .cd-cell.took span { color: #14100D; } }
.cd .iphone { --c: var(--ember); }
.cd .watch-lane { --c: var(--teal); }
.bg-black .cd, .tile.dark .cd { --took-ink: #14100D; }
@media (prefers-color-scheme: dark) { .cd { --took-ink: #14100D; } }
.cd-rule { grid-column: 1 / -1; height: 1px; background: var(--line); margin-top: 1.25rem; }
.cd-note { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 48rem) {
  .cd-grid { grid-template-columns: 10.5rem repeat(4, minmax(0, 1fr)); align-items: center; row-gap: 0.875rem; }
  .cd-note { text-align: center; text-wrap: balance; }
  .cd-when:first-child { grid-column: 2; }
  .cd-label { grid-column: 1; margin-top: 0; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .cd-label.result { margin-top: 0; }
}

/* Two counting methods, side by side */
.two-methods { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.two-methods .panel { margin: 0; }
.two-methods h3 { margin: 0 0 var(--s-2); }
.tag { display: inline-block; padding: 0.2rem 0.7rem; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: var(--fs-fine); font-weight: 600; }
.two-methods .tag { margin-bottom: var(--s-3); }
.panel { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.25rem, 0.9rem + 1.8vw, 2rem); }
.panel p { color: var(--ink-2); }

/* Plans */
.plans { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); }
@media (min-width: 56rem) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.plan { border-radius: var(--r-tile); padding: clamp(1.5rem, 1rem + 2.4vw, 3rem); background: var(--card); min-width: 0; }
.plan h3, .plan h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.plan .plan-price { margin-top: var(--s-3); font-family: var(--font-round); font-weight: 600; font-size: var(--fs-h3); color: var(--ember); }
.plan .plan-sub { margin-top: var(--s-3); color: var(--ink-2); max-width: 30rem; }
.plan .ticks { margin-top: var(--s-5); }
.plan .btn { margin-top: var(--s-6); }
.prices { margin-top: var(--s-5); display: grid; }
.prices div { display: flex; align-items: baseline; justify-content: space-between; gap: 0 var(--s-4); padding-block: 0.9rem; border-top: 1px solid var(--line); }
.prices dt { font-weight: 600; min-width: 0; }
.prices dt small { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); }
.prices dd { font-family: var(--font-round); font-weight: 700; font-size: 1.625rem; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.02em; }
.prices dd small { font-family: var(--font); font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-left: 0.35rem; }

/* Privacy: four plain promises */
.checks { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.checks li { background: var(--card); border-radius: var(--r-tile); padding: var(--s-5) var(--s-5) var(--s-5) 4rem; position: relative; font-family: var(--font-round); font-weight: 650; font-size: var(--fs-h3); line-height: 1.2; }
.checks li svg { position: absolute; left: 1.35rem; top: 1.45rem; width: 1.75rem; height: 1.75rem; color: var(--ember); }
.checks li span { display: block; margin-top: 0.3rem; font-family: var(--font); font-size: var(--fs-body); font-weight: 400; color: var(--ink-2); line-height: 1.45; }

/* The maker */
.why { max-width: 44rem; margin-inline: auto; text-align: center; }
.why blockquote { margin-top: var(--s-6); font-family: var(--font-round); font-size: clamp(1.3125rem, 1.1rem + 1vw, 1.75rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.012em; }
.why blockquote p + p { margin-top: 1em; }
.why-head { display: grid; justify-items: center; gap: var(--s-3); }
.why-head img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; }
.why-head b { display: block; font-family: var(--font-round); font-weight: 650; font-size: 1.25rem; }
.why-head span { color: var(--ink-2); font-size: var(--fs-small); }

/* Questions */
.qa { border-top: 1px solid var(--line); max-width: var(--measure); margin-inline: auto; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 3.75rem; padding-block: var(--s-4); font-family: var(--font-round); font-weight: 600; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.25; cursor: pointer; list-style: none; text-wrap: balance; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms var(--ease-out); }
.qa details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.qa details > *:not(summary) { padding-bottom: var(--s-5); color: var(--ink-2); }
.qa details p + p, .qa details p + ul, .qa details ul + p { margin-top: var(--s-3); }
.prose .qa { margin-inline: 0; }

/* Folded detail: long explanations and sources stay on the page, one tap away */
details.fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.fold + details.fold { border-top: 0; margin-top: 0; }
details.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 3.5rem; font-weight: 600; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-right: 0.3rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); }
details.fold[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details.fold > *:not(summary) { margin-bottom: var(--s-5); }
details.fold > * + * { margin-top: var(--s-3); }

/* Closing call to action */
.band { text-align: center; }
.band .pip-wrap { width: clamp(6.5rem, 5rem + 6vw, 9rem); aspect-ratio: 1; margin: 0 auto var(--s-5); }
.band h2 { max-width: 16ch; margin-inline: auto; }
.band p { color: var(--ink-2); max-width: 32rem; margin: var(--s-4) auto 0; font-size: var(--fs-lead); line-height: 1.4; }
.band .btn { margin-top: var(--s-6); }
.pip { width: 100%; height: 100%; overflow: visible; }
.pip-foot-l, .pip-foot-r { transform-box: fill-box; transform-origin: center; }
.pip-foot-l { rotate: -8deg; }
.pip-foot-r { rotate: 6deg; }

/* Footer */
.site-footer { padding-block: var(--s-8) var(--s-7); background: var(--warm); font-size: var(--fs-small); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 56rem) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: var(--s-2); color: var(--ink-2); max-width: 17rem; }
.site-footer h2 { font-family: var(--font); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-2); }
.site-footer li a { display: inline-block; padding-block: 0.6rem; color: var(--ink-2); line-height: 1.25; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .site-footer li a { padding-block: 0.35rem; } .site-footer li a:hover { color: var(--ink); } }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-fine); color: var(--ink-3); display: grid; gap: var(--s-2); }
.footer-legal a { color: inherit; text-decoration: underline; }
.placeholder-note { display: inline-block; padding: 0.35rem 0.8rem; border-radius: var(--r-small); background: var(--ember-soft); color: var(--ink); font-weight: 600; }

/* ---------- Inner pages ---------- */
.col { max-width: 44rem; margin-inline: auto; }
.article-head { background: var(--surface); padding-block: clamp(1rem, 0.5rem + 2vw, 2rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 0.5rem; font-size: var(--fs-fine); color: var(--ink-3); }
.crumbs li { display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs li + li::before { content: ""; width: 0.35rem; height: 0.35rem; margin-right: 0.6rem; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.crumbs a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 2.75rem; }
.article-head h1 { margin-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); max-width: 18ch; }
.article-head .lead { margin-top: var(--s-5); max-width: var(--measure); color: var(--ink-2); }
.article-head .meta { margin-top: var(--s-5); font-size: var(--fs-fine); color: var(--ink-3); }
.answer { margin-top: var(--s-6); background: var(--card); border-radius: var(--r-tile); padding: clamp(1.25rem, 0.9rem + 1.8vw, 2rem); max-width: 44rem; }
.answer b { display: block; font-family: var(--font-round); font-size: var(--fs-small); font-weight: 600; color: var(--ember); margin-bottom: var(--s-2); }
.answer p { font-size: var(--fs-lead); line-height: 1.42; letter-spacing: -0.014em; }
.draft-mark { display: inline-block; margin-top: var(--s-4); padding: 0.4rem 0.9rem; border-radius: var(--r-small); background: var(--ember-soft); font-weight: 600; font-size: var(--fs-small); }
.article-body { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--sec); }

.prose > * + * { margin-top: var(--s-5); }
.prose > * { min-width: 0; max-width: 100%; }
.prose > .phone, .prose > .watch { max-width: var(--phone-w, 19rem); margin-inline: auto; }
.prose > .watch { max-width: var(--watch-w, 11.5rem); }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); margin-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: 1.1; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-7); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: var(--s-3); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--ink-3); }
.prose li { padding-left: 0.2rem; }
.prose figure, .prose .table-frame, .prose .panel, .prose .cd, .prose .bento, .prose .plans { margin-block: var(--s-7); }
.prose .two-methods { margin-block: var(--s-5); }
.prose .two-methods .panel { margin: 0; }
.prose h2 + figure, .prose h2 + .cd, .prose h2 + .bento, .prose h2 + .two-methods { margin-top: var(--s-6); }
.prose dl.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.prose dl.facts div { display: grid; gap: 0.15rem var(--s-5); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.prose dl.facts dt { font-weight: 600; }
.prose dl.facts dd { color: var(--ink-2); }
@media (min-width: 40rem) { .prose dl.facts div { grid-template-columns: 13rem minmax(0, 1fr); } }
.source { font-size: var(--fs-fine); color: var(--ink-3); line-height: 1.5; }
.source a { color: inherit; overflow-wrap: anywhere; text-decoration: underline; }
.note { padding: var(--s-5); border-radius: var(--r-small); background: var(--card); }
.note > * + * { margin-top: var(--s-2); }
.article.wide .prose > p, .article.wide .prose > h2, .article.wide .prose > h3, .article.wide .prose > ul:not([class]), .article.wide .prose > ul.ticks, .article.wide .prose > ul.source, .article.wide .prose > ol:not([class]), .article.wide .prose > .note, .article.wide .prose > dl.facts, .article.wide .prose > details.fold, .article.wide .prose > .qa { max-width: 44rem; }
.prose .ticks, .prose .pip-grid, .prose .power, .prose .index, .prose .downloads, .prose .legend, .prose ul.source, .prose .checks, .prose ol.flow, .prose ol.order { list-style: none; padding-left: 0; }
.prose .pip-grid li, .prose .power li, .prose .index li, .prose .downloads li, .prose .checks li:not(#x) { padding-left: 0; }
.prose .checks li:not(#x) { padding-left: 4rem; }
.prose ul.source { gap: 0.3rem; }

.shots { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(1rem, 4vw, 3rem); --phone-w: 16.5rem; }
.shots.one { --phone-w: 18rem; }
.shots .phone { flex: 0 1 var(--phone-w); min-width: 8.5rem; margin: 0; }
.with-shot { display: grid; gap: var(--s-7); align-items: center; }
.with-shot > * { min-width: 0; }
@media (min-width: 52rem) { .with-shot { grid-template-columns: minmax(0, 1fr) fit-content(22rem); gap: var(--s-8); } .with-shot .phone { --phone-w: 16.5rem; } }
.with-shot > div > * + * { margin-top: var(--s-5); }
.with-shot > div > h2 + *, .with-shot > div > h3 + * { margin-top: var(--s-4); }
.with-shot > .phone, .with-shot > .shots, .with-shot > figure { justify-self: center; }
.pro-feature { display: grid; gap: var(--s-7); align-items: center; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--line); }
.pro-feature h2 { margin: 0 0 var(--s-4); }
.pro-feature > div > * + * { margin-top: var(--s-4); }
@media (min-width: 52rem) { .pro-feature { grid-template-columns: minmax(0, 1fr) fit-content(22rem); gap: var(--s-8); } .pro-feature .phone { --phone-w: 16rem; } }
.pro-feature > .phone, .pro-feature > figure, .pro-feature > picture { justify-self: center; }

/* A month of day pills, and day strips */
.month { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.1rem, 3.5vw, 2.25rem); }
.month-head, .month-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(0.25rem, 1.4vw, 0.9rem); }
.month-head { margin-bottom: var(--s-3); font-size: var(--fs-fine); font-weight: 600; color: var(--ink-3); text-align: center; }
.month-week + .month-week { margin-top: clamp(0.9rem, 2.5vw, 1.4rem); }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.day-bar { position: relative; width: clamp(0.65rem, 2.6vw, 1rem); height: clamp(3rem, 9vw, 4.25rem); border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.day-bar::after { content: ""; position: absolute; inset: auto 0 0 0; height: calc(var(--v) * 1%); border-radius: var(--r-pill); background: var(--c, var(--ember)); }
.day svg.ic { width: 1.05rem; height: 1.05rem; color: var(--c, var(--ember)); }
.day.rest { --c: var(--violet); } .day.recovered { --c: var(--teal); } .day.paused { --c: var(--pause); }
.day.missed { --c: var(--ink-3); } .day.pending { --c: var(--teal); } .day.today { --c: var(--ember); }
.day.pending .day-bar::after { opacity: 0.55; }
.day .arc { position: absolute; left: 50%; top: -0.85rem; width: calc(100% + clamp(0.25rem, 1.4vw, 0.9rem)); height: 0.9rem; color: var(--teal); overflow: visible; }
.month-foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.month-foot .num { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1; }
.month-foot span:last-child { color: var(--ink-2); font-size: var(--fs-small); }
.strip { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.1rem, 3.5vw, 2rem); }
.strip-days { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: clamp(0.2rem, 1.2vw, 0.8rem); padding-top: 0.9rem; }
.strip .day small { font-size: var(--fs-fine); font-weight: 600; color: var(--ink-3); }
.strip .day b { font-family: var(--font-round); font-size: var(--fs-fine); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-fine); font-weight: 500; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 0.4rem; padding-left: 0; }
.legend svg { width: 1.1rem; height: 1.1rem; color: var(--c); }
.legend .goal { --c: var(--ember); } .legend .rest { --c: var(--violet); } .legend .recovered, .legend .pending { --c: var(--teal); } .legend .paused { --c: var(--pause); } .legend .missed { --c: var(--ink-3); } .legend .today { --c: var(--ember); }
.legend .goal-line i { display: inline-block; width: 1.1rem; height: 0; border-top: 2px solid var(--ink-3); }
.strip figcaption { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--ink-2); }
.events { display: grid; gap: var(--s-6); }
.event { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.event .badge { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--bg); color: var(--c); }
.event .badge svg { width: 1.5rem; height: 1.5rem; }
.event.rest { --c: var(--violet); --bg: var(--violet-soft); } .event.recovered { --c: var(--teal); --bg: var(--teal-soft); } .event.paused { --c: var(--pause); --bg: var(--pause-soft); }
.event h3 { margin-bottom: var(--s-2); }
.event p { color: var(--ink-2); }
.month-layout { display: grid; gap: var(--s-7); }
@media (min-width: 60rem) { .month-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; } }

/* Small drawn explanations */
.overlap { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.1rem, 3vw, 2rem); }
.overlap svg { width: 100%; height: auto; max-width: 34rem; margin-inline: auto; }
.overlap text { font-family: var(--font-round); fill: var(--ink); font-weight: 600; }
.overlap .fig-note { margin-top: var(--s-3); }
.glance { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.25rem, 4vw, 2.25rem); display: grid; gap: var(--s-6); justify-items: center; width: min(100%, 20rem); }
.glance-item { display: grid; justify-items: center; gap: var(--s-2); width: 100%; }
.glance-item > span { font-size: var(--fs-fine); font-weight: 600; color: var(--ink-2); }
.g-circle { width: 6.5rem; }
.g-rect { width: 100%; max-width: 15rem; padding: 0.8rem 1rem; border-radius: 1rem; background: var(--surface); display: grid; gap: 0.4rem; }
.g-rect b { font-family: var(--font-round); font-weight: 700; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.g-rect b small { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.g-rect i { display: block; height: 0.5rem; border-radius: 99px; background: var(--track); overflow: hidden; }
.g-rect i em { display: block; height: 100%; border-radius: 99px; background: var(--ember); }
.g-rect > small { display: flex; justify-content: space-between; font-size: var(--fs-fine); font-weight: 500; color: var(--ink-2); }
.g-inline { padding: 0.5rem 1rem; border-radius: 99px; background: var(--surface); font-family: var(--font-round); font-weight: 600; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.flow { display: grid; gap: var(--s-3); counter-reset: flow; }
.flow li { counter-increment: flow; background: var(--card); border-radius: var(--r-small); padding: var(--s-4) var(--s-5) var(--s-4) 3.6rem; position: relative; }
.flow li::before { content: counter(flow); position: absolute; left: 1.1rem; top: 1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ember); color: var(--btn-ink); font-family: var(--font-round); font-weight: 700; font-size: var(--fs-small); display: grid; place-items: center; }
.flow b { display: block; }
.flow span { color: var(--ink-2); }
@media (min-width: 48rem) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.triple { display: grid; gap: 0; }
.triple div { padding: var(--s-4) 0; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); border-bottom: 1px solid var(--line); }
.triple span { color: var(--ink-2); }
.triple b { font-family: var(--font-round); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.triple div:first-child b { color: var(--ember); }
.order { display: grid; gap: var(--s-2); counter-reset: order; }
.order li { counter-increment: order; background: var(--card); border-radius: var(--r-small); padding: 0.8rem 3rem 0.8rem 3.2rem; position: relative; font-weight: 600; }
.order li::before { content: counter(order); position: absolute; left: 1rem; top: 50%; translate: 0 -50%; font-family: var(--font-round); font-weight: 700; color: var(--ember); font-size: 1.25rem; }
.order li::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 1.1rem; height: 0.55rem; translate: 0 -50%; border-block: 2px solid var(--ink-3); }

/* Films and Pips */
.films { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: var(--s-5) var(--s-4); }
.film video { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-tile); background: #F6F4F1; display: block; }
.film figcaption { margin-top: var(--s-2); font-weight: 600; text-align: center; font-size: var(--fs-small); }
.pips-family img { width: 100%; }
.pip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-4); }
@media (min-width: 40rem) { .pip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .pip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pip-grid li { text-align: center; }
.pip-grid picture { display: block; width: min(100%, 9.5rem); margin-inline: auto; border-radius: 50%; overflow: hidden; background: var(--pip-ground, #ECE8E2); }
.pip-grid img { width: 100%; aspect-ratio: 1; }
.pip-grid b { display: block; font-family: var(--font-round); font-weight: 650; font-size: 1.25rem; margin-top: var(--s-3); }
.pip-grid span { display: block; font-size: var(--fs-small); color: var(--ink-2); max-width: 15rem; margin-inline: auto; line-height: 1.4; }
.pip-grid .tag { display: inline-block; width: auto; max-width: none; margin-top: 0.4rem; background: var(--card); }
@media (prefers-color-scheme: dark) { .pip-grid picture { --pip-ground: #3A3836; } }
.power { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
.power li { text-align: center; }
.power img { width: min(100%, 9.5rem); margin-inline: auto; aspect-ratio: 1; }
.power b { display: block; font-family: var(--font-round); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.power span { font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 48rem) { .power { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.widget-row { display: grid; gap: var(--s-7); }
@media (min-width: 48rem) { .widget-row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.widget-row > div { display: grid; gap: var(--s-3); justify-items: start; align-content: start; }
.widget-row h3 { margin: 0; }
.widget-row p { color: var(--ink-2); }

/* Data tables: no grid, hairlines between rows. On phones each row becomes a small card. */
.table-frame { max-width: 100%; overflow-x: auto; }
.table-frame:focus-visible { outline-offset: 2px; }
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
table.data caption { caption-side: bottom; text-align: left; padding-top: var(--s-4); font-size: var(--fs-fine); color: var(--ink-3); }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
table.data tbody th { font-weight: 600; min-width: 8.5rem; }
table.data td { min-width: 9rem; color: var(--ink-2); }
table.data td.us, table.data th.us, table.data tr.us th, table.data tr.us td { color: var(--ink); }
table.data tr.us th, table.data tr.us td, table.data td.us, table.data th.us { background: var(--ember-soft); padding-left: 1rem; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data small { display: block; color: var(--ink-3); font-size: var(--fs-fine); margin-top: 0.15rem; }
@media (max-width: 43.99rem) {
  table.data, table.data tbody, table.data tr, table.data th, table.data td, table.data caption { display: block; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data tr { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
  table.data tbody tr:last-child { border-bottom: 0; }
  table.data th, table.data td { border: 0; padding: 0 !important; min-width: 0; background: none !important; }
  table.data tbody th { font-family: var(--font-round); font-size: 1.1875rem; margin-bottom: var(--s-2); }
  table.data td { margin-top: var(--s-3); }
  table.data td::before { content: attr(data-label); display: block; font-size: var(--fs-fine); font-weight: 600; color: var(--ink-3); margin-bottom: 0.1rem; }
  table.data td.us::before, table.data tr.us th { color: var(--ember); }
}

/* The comparison table: feature, Stridune, the other app. A mark and a few words in each cell. */
.vs { width: 100%; max-width: 61rem; margin-inline: auto; border-collapse: separate; border-spacing: 0; line-height: 1.35; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.vs thead th { font-family: var(--font-round); font-size: var(--fs-h3); font-weight: 650; border-bottom: 0; padding-bottom: 1.25rem; vertical-align: bottom; }
.vs tbody th { font-weight: 600; width: 30%; padding-left: 0; }
.vs td { width: 35%; color: var(--ink-2); }
.vs .us { background: var(--tint); color: var(--ink); border-bottom-color: transparent; box-shadow: inset 0 -1px 0 var(--line); }
.vs thead .us { border-radius: var(--r-tile) var(--r-tile) 0 0; color: var(--ember); box-shadow: none; }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }
.vs tbody tr:last-child .us { border-radius: 0 0 var(--r-tile) var(--r-tile); box-shadow: none; padding-bottom: 1.5rem; }
.vs td > span { display: grid; grid-template-columns: 1.375rem minmax(0, 1fr); gap: 0.6rem; }
.vs td svg { width: 1.375rem; height: 1.375rem; margin-top: 0.05em; }
.vs .yes svg { color: var(--good); } .vs .part svg { color: var(--pending); } .vs .no svg { color: var(--bad, #B4483A); }
@media (max-width: 43.99rem) {
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: auto; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vs tr { background: var(--card); border-radius: var(--r-tile); padding: 1.1rem 1.25rem; }
  .vs tr + tr { margin-top: 0.75rem; }
  .vs th, .vs td { border: 0; padding: 0; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
  .vs tbody th { font-family: var(--font-round); font-size: 1.1875rem; font-weight: 650; margin-bottom: var(--s-3); width: auto; }
  .vs td { width: auto; }
  .vs td { margin-top: var(--s-2); padding-bottom: 0 !important; display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 0.5rem; align-items: start; color: var(--ink-2); }
  .vs td.us { color: var(--ink); font-weight: 500; }
  .vs td::before { content: attr(data-label); font-size: var(--fs-fine); font-weight: 600; color: var(--ink-3); padding-top: 0.2em; }
  .vs td.us::before { color: var(--ember); }
}

/* Short lists of plain points */
.points { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.points li { background: var(--card); border-radius: var(--r-tile); padding: var(--s-5); color: var(--ink-2); }
.points li b { display: block; font-family: var(--font-round); font-size: var(--fs-h3); font-weight: 650; color: var(--ink); line-height: 1.2; margin-bottom: 0.3rem; }
.verdict { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.verdict .panel { margin: 0; }
.verdict h2, .verdict h3 { font-size: var(--fs-h3); margin: 0 0 var(--s-3); }
.verdict .panel.us { background: var(--ember-soft); }
.verdict ul { color: var(--ink-2); }

/* Index lists and read next */
.index { display: grid; gap: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { position: relative; display: grid; gap: 0.25rem; padding: var(--s-5) 2rem var(--s-5) 0; color: var(--ink); text-decoration: none !important; }
.index a b { font-family: var(--font-round); font-size: var(--fs-h3); font-weight: 650; line-height: 1.2; text-wrap: balance; }
.index a span { color: var(--ink-2); font-size: var(--fs-small); }
.index a::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--ink-3); border-top: 2px solid var(--ink-3); transform: translateY(-50%) rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .index a:hover b { color: var(--ember); } }
.read-next { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.read-next h2 { font-size: var(--fs-h3); font-weight: 650; margin-bottom: var(--s-5); }
.next-tiles { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.next-tiles a { display: grid; gap: 0.35rem; align-content: start; height: 100%; background: var(--card); border-radius: var(--r-tile); padding: var(--s-5); color: var(--ink); text-decoration: none !important; }
.next-tiles b { font-family: var(--font-round); font-size: 1.1875rem; font-weight: 650; line-height: 1.2; }
.next-tiles span { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .next-tiles a:hover b { color: var(--ember); } }

/* Press downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: var(--s-5) var(--s-4); }
.downloads li { display: grid; gap: var(--s-2); align-content: start; }
.downloads img { width: 100%; border-radius: 1.1rem; background: var(--card); }
.downloads a { font-size: var(--fs-small); font-weight: 500; display: inline-flex; min-height: 2.75rem; align-items: center; }
.downloads .shot img { border: 5px solid var(--frame); border-radius: 1.4rem; box-shadow: 0 0 0 1px var(--frame-ring); }
.downloads .links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.downloads li[style] { grid-column: auto !important; }
@media (min-width: 40rem) { .downloads li[style] { grid-column: span 2 !important; } }


/* 404 */
.lost { text-align: center; padding-block: var(--s-8); display: grid; justify-items: center; gap: var(--s-5); }
.lost .pip-wrap, .lost img { width: 11rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .site-footer nav, .skip, .cta-row, .band { display: none !important; }
  body { background: #fff; color: #000; }
}
@view-transition { navigation: auto; }
.article-body, .read-next { background: var(--surface); }
.tile .media .widget { width: 100%; }
.tile .media > picture:not(.widget):not(.crop) img { width: 100%; }
.prose .panel h3, .prose .tile h3, .prose .plan h2, .prose .plan h3, .prose .widget-row h3, .prose .event h3 { margin-top: 0; }
.prose .plan h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.prose .plan .ticks + p { margin-top: var(--s-6); }

/* Round 3, after the reviewers */
.site-footer li a, .nav-wide a, .nav-menu a, .crumbs a { text-decoration: none; }
@media (prefers-color-scheme: dark) { .tile.dark { background: #171615; } }
.ticks.cols { gap: var(--s-4) var(--s-7); }
@media (min-width: 48rem) { .ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .ticks.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pip-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 2vw, 1.5rem); max-width: 60rem; margin-inline: auto; }
@media (min-width: 48rem) { .pip-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pip-wall picture { display: block; border-radius: 50%; overflow: hidden; background: var(--card); }
.pip-wall img { width: 100%; aspect-ratio: 1; }
.plan.pro { background: var(--tint); }
@media (prefers-color-scheme: dark) { .plan.pro { background: #2A1C14; } }
.tile .media .crop { box-shadow: 0 0 0 1px var(--line); }
.sources-fig { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.25rem, 3vw, 2rem); display: grid; justify-items: center; }
.sources-fig .crop { max-width: 26rem; width: 100%; }
@media (prefers-color-scheme: dark) { .vs { --bad: #E08A7C; } }
.site-header .btn-small { position: relative; }
.site-header .btn-small::after { content: ""; position: absolute; inset: -0.25rem 0; }

/* ---------- Round 4 ---------- */
/* Small print is never smaller than 14 px, in the darker grey */
.source, .article-head .meta, .crumbs ol, table.data caption, .legend, .cd-when, .month-head, .strip .day small { font-size: max(var(--fs-fine), 0.8125rem); }
.source, .article-head .meta, table.data caption { color: var(--ink-2); }

/* Home hero: two columns from 64rem, the whole phone visible at 1280 x 800 */
.hero-2 { padding-top: clamp(2.5rem, 1rem + 4vw, 3.25rem); padding-bottom: clamp(3rem, 2rem + 4vw, 4rem); overflow: hidden; }
.hero-2 .hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero-2 h1 { font-size: var(--fs-hero); line-height: 1.03; letter-spacing: -0.028em; }
.hero-2 .lead { margin-top: var(--s-5); max-width: 34rem; }
.hero-2 .cta-row { align-items: flex-start; }
.hero-2 .hero-phone { --phone-w: clamp(15rem, 10rem + 14vw, 18rem); }
@media (max-width: 63.99rem) { .hero-2 .hero-copy { text-align: center; } .hero-2 .lead { margin-inline: auto; } .hero-2 .cta-row { align-items: center; } }
@media (min-width: 64rem) { .hero-2 .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); } .hero-2 .hero-phone { --phone-w: 17.5rem; } }
.climb-figure { margin-top: clamp(2rem, 1rem + 3vw, 3rem); }
.climb { position: relative; height: clamp(7.5rem, 5rem + 8vw, 10.5rem); container-type: size; margin-top: 2.5rem; }
.climb-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: clamp(2px, 0.45vw, 6px); }
.climb-bars i { flex: 1 1 0; min-width: 0; height: calc(var(--h) * 1%); background: color-mix(in srgb, var(--ember) 38%, var(--surface)); border-radius: var(--r-pill) var(--r-pill) 2px 2px; }
.climb-bars i.met { background: var(--ember); }
.climb-goal { position: absolute; inset-inline: 0; bottom: 66.667%; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.climb-goal span { position: absolute; left: 0; bottom: 0.35rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); background: var(--surface); padding-right: 0.5rem; }
.climb-pip { position: absolute; width: clamp(3.25rem, 2rem + 3vw, 4.5rem); aspect-ratio: 1; left: calc(var(--px) * 1%); bottom: calc(var(--py) * 1%); translate: -50% 4%; }
@media (max-width: 34rem) { .climb-bars i:nth-child(odd) { display: none; } }
.pip-hand-l, .pip-hand-r { transform-box: fill-box; transform-origin: center; }

/* Tiles: the picture sits at the foot of the tile, never floating in the middle */
.tile .media { margin-top: auto; }
.tile .media .crop, .fig .crop { border-radius: var(--r-small); box-shadow: 0 0 0 1px var(--line); }
.tile .media.phone-peek { margin-bottom: calc(-1 * clamp(1.5rem, 1rem + 2.2vw, 2.5rem)); }
.bento.align-top .tile .media { margin-top: var(--s-2); }

/* Widgets exist in light only: they always sit on a light ground, in both themes */
.widget-ground { background: linear-gradient(160deg, #FFE1CC 0%, #FFF0E6 55%, #F6F4F1 100%); border-radius: var(--r-tile); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: clamp(0.75rem, 2vw, 1.25rem); justify-items: center; align-items: center; }
.widget-ground .widget { box-shadow: 0 0.75rem 1.75rem -1rem rgba(29, 22, 18, 0.35); }
.widget-ground .widget-medium, .widget-ground .widget-week { width: min(100%, 24rem); }
.widget-ground .widget-small { width: min(60%, 11rem); }
@media (min-width: 40rem) { .widget-ground.pair { grid-template-columns: minmax(0, 2.14fr) minmax(0, 1fr); } .widget-ground.pair .widget-small { width: 100%; } }
.tile.wallpaper { color: #1D1612; }
@media (prefers-color-scheme: dark) { .tile.wallpaper { --ink: #1D1612; --ink-2: #4F4741; --ember: #B83A0B; --line: rgba(29,22,18,.12); } }

/* One figure component: a tile, centred, caption below */
.fig { background: var(--card); border-radius: var(--r-tile); padding: clamp(1.1rem, 3vw, 2rem); display: grid; justify-items: center; gap: var(--s-4); }
.fig > picture, .fig > .crop { width: 100%; max-width: 30rem; }
.fig > figcaption { font-size: var(--fs-small); color: var(--ink-2); text-align: center; max-width: 34rem; }

/* Wide pages: one centred text column; only pictures, tables and diagrams break out */
.article-body .wrap { container-type: inline-size; }
.article.wide .prose > :is(.bento, .plans, .table-frame, .with-shot, .pro-feature, .widget-row, .shots, .watches, .pip-grid, .films, .downloads, .verdict, .two-methods, .cd, .tiles-out) {
  width: min(64rem, 100cqw); max-width: none; margin-inline: calc((100% - min(64rem, 100cqw)) / 2);
}

/* Read next: full-width rows with a chevron, in the article column */
.read-next .index a { padding-block: var(--s-4); }
.read-next .index a b { font-size: 1.1875rem; }

/* Breadcrumb: hidden when only "Home" would remain on a phone */
@media (max-width: 40rem) { .crumbs li[aria-current] { display: none; } .crumbs ol:has(> li:nth-child(2):last-child) { display: none; } }

/* Stacked tables at phone width: no gap under the heading */
@media (max-width: 43.99rem) { table.data tbody tr:first-child { padding-top: 0; } .table-frame { margin-top: var(--s-4) !important; } }

/* Week chart: one dashed goal line across all bars, every number in full */
.strip-days { padding-top: 1rem; }
.bar-zone { position: relative; width: 100%; height: clamp(4rem, 3rem + 4vw, 5.5rem); display: flex; justify-content: center; }
.bar-zone .day-bar { height: 100%; }
.bar-zone .gl { position: absolute; left: calc(-1 * clamp(0.2rem, 1.2vw, 0.8rem) / 2 - 1px); right: calc(-1 * clamp(0.2rem, 1.2vw, 0.8rem) / 2 - 1px); bottom: calc(var(--g) * 1%); border-top: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); }
.strip .day b { font-size: 0.75rem; letter-spacing: -0.02em; }
@media (min-width: 40rem) { .strip .day b { font-size: 0.875rem; } }
.legend .goal-line i { width: 1.25rem; border-top: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); }

/* Counting diagram: time of day under each stretch, the extra steps named in the row label */
.cd-when small { display: block; font-size: 0.8125rem; color: var(--ink-3); }
.cd-label small { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
@media (max-width: 47.99rem) { .cd-label.result { flex-wrap: wrap; } .cd-label.result small { flex-basis: 100%; order: 3; } }

/* One step list: numbered rows with a disc, used for every set of steps */
.prose ol:not(.order), .flow { list-style: none; padding-left: 0; display: grid; gap: var(--s-3); counter-reset: step; }
.prose ol:not(.order) > li, .flow > li { counter-increment: step; position: relative; padding: 0.15rem 0 0 2.75rem; background: none; border-radius: 0; }
.prose ol:not(.order) > li::before, .flow > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.875rem; height: 1.875rem; border-radius: 50%; background: var(--ember); color: var(--btn-ink); font-family: var(--font-round); font-weight: 700; font-size: 0.9375rem; display: grid; place-items: center; }
@media (min-width: 48rem) { .flow { grid-template-columns: 1fr; } }

/* Sources: small print, not a question */
details.fold.src { border: 0; }
details.fold.src > summary { min-height: 2.75rem; font-weight: 500; font-size: var(--fs-small); color: var(--ink-2); justify-content: flex-start; gap: 0.5rem; }
details.fold.src > summary::after { width: 0.4rem; height: 0.4rem; }

/* Closing block: ember, with Pip in a white circle */
.band { background: var(--btn-bg) !important; color: #fff; }
.band h2 { color: #fff; }
.band p { color: #FFE8DB; }
.band .btn { background: #fff; color: #8F2C07; }
@media (prefers-color-scheme: dark) { .band { background: #4A2413 !important; } .band .btn { background: #FF8A4C; color: #1F0D03; } }
.band .pip-wrap { background: #fff; border-radius: 50%; padding: clamp(0.9rem, 2vw, 1.4rem); }
.band a:focus-visible { outline-color: #fff; }

/* Pip films: warm ground, one row that scrolls on phones */
.films { grid-auto-flow: column; grid-auto-columns: minmax(9rem, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); }
.film { scroll-snap-align: start; }
.film video { background: #FFF0E6; }

/* Headings: one gap above every h2, one gap to the figure below */
.prose h2 { margin-top: clamp(3.5rem, 2.5rem + 3vw, 4.5rem); }
.prose h2 + :is(figure, .cd, .bento, .two-methods, .shots, .watches, .table-frame, .widget-row) { margin-top: var(--s-5); }
.prose h3 + :is(figure, .shots, .watches) { margin-top: var(--s-4); }
.plan { display: flex; flex-direction: column; }
.plan .plan-foot { margin-top: auto; padding-top: var(--s-6); }
.plan .plan-foot .btn { margin-top: 0; }
.plan .prices + .ticks { margin-top: var(--s-6); }
/* "Where X is stronger": five tiles become rows of two and three, never a hole */
@media (min-width: 62rem) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .points:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .points:has(> li:nth-child(5):last-child) > li:nth-child(-n+2) { grid-column: span 3; }
}
.hero .pill { margin-inline: auto; }
.duo-media.shots { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: clamp(0.75rem, 3vw, 2rem); --phone-w: clamp(9rem, 4rem + 14vw, 15rem); }
.duo-media.shots .phone { flex: 0 1 var(--phone-w); margin: 0; }
.duo-media.shots .phone:last-child { margin-top: clamp(1.5rem, 4vw, 3rem); }
.film picture { display: block; border-radius: var(--r-tile); overflow: hidden; background: #FFF0E6; }
.film picture img { width: 100%; aspect-ratio: 1; }
.pro-feature > div:only-child { max-width: var(--measure); }
.article .prose > .plans { margin-top: 0; }
.fig.black-fig { background: #000; }
.watches.row3 { flex-wrap: nowrap; gap: clamp(0.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 4vw, 3rem) clamp(0.75rem, 3vw, 2rem); display: flex; justify-content: center; }
.watches.row3 .watch { flex: 1 1 0; min-width: 0; max-width: 11rem; --watch-ring: #4A4744; }
.watches.row3 .watch figcaption { color: #C4BDB6; }
.widget-ground.widget-row { --ink: #1D1612; --ink-2: #4F4741; --ember: #B83A0B; color: #1D1612; justify-items: stretch; align-items: start; }
.widget-ground.widget-row > div { justify-items: start; }
.widget-ground.widget-row .widget-small { width: min(100%, 10.5rem); }
.widget-ground.widget-row .widget-medium, .widget-ground.widget-row .widget-week { width: 100%; }
@media (min-width: 48rem) { .widget-ground.widget-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.6fr); } }
.article.wide .prose > .widget-ground.widget-row { width: min(64rem, 100cqw); max-width: none; margin-inline: calc((100% - min(64rem, 100cqw)) / 2); }

/* Tables: every row starts at the same edge; the highlighted row is tinted, not indented */
table.data th, table.data td { padding-inline: 0.75rem; }
table.data tr.us th, table.data tr.us td, table.data td.us, table.data th.us { padding-left: 0.75rem; }
.films.grid4 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; width: min(100%, 22rem); }
.pro-feature .film video, .film video { background: #FFF0E6; object-fit: contain; }
@media (max-width: 39.99rem) { .duo-media.shots { flex-wrap: wrap; --phone-w: 16rem; } .duo-media.shots .phone { flex-basis: 100%; } .duo-media.shots .phone:last-child { margin-top: 0; } }
.film a { position: relative; display: block; border-radius: var(--r-tile); overflow: hidden; background: #FFF0E6; }
.film .play { position: absolute; right: 0.6rem; bottom: 0.6rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(29, 22, 18, 0.72); }
.film .play::after { content: ""; position: absolute; left: 0.85rem; top: 0.65rem; border-left: 0.75rem solid #fff; border-top: 0.47rem solid transparent; border-bottom: 0.47rem solid transparent; }
.fig.wide-fig > picture, .fig.wide-fig > .crop { max-width: 44rem; }
.article.wide .prose > .fig.wide-fig, .prose > .fig.wide-fig { width: min(52rem, 100cqw); max-width: none; margin-inline: calc((100% - min(52rem, 100cqw)) / 2); }
.index a b { font-size: 1.1875rem; text-wrap: wrap; }

/* One phone frame: the Dynamic Island is drawn on every phone, so light and dark captures match.
   Size and place measured from a capture that shows it (21.5% wide, 110 px tall, 42 px from the top). */
.phone picture { position: relative; }
.phone picture::after { content: ""; position: absolute; left: 50%; top: 0; margin-top: 5.9%; width: 20.3%; aspect-ratio: 284 / 110; translate: -50% 0; border-radius: 999px; background: #000; }
/* Widgets: rounded a little more, so no wallpaper shows at the corners */
.widget-week, .widget-medium { border-radius: 8% / 17%; }
.widget-small { border-radius: 17%; }

/* ---------- Round 5 ---------- */
/* A picture beside the head of an article: text left, picture right; below the text on phones */
.article-head .col.has-hero { max-width: 64rem; }
.head-grid { display: grid; gap: var(--s-6); align-items: center; }
.head-text > h1 { margin-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.head-pic { display: grid; justify-items: center; --phone-w: 14rem; }
.head-pic .phone.cut { max-width: var(--phone-w); }
.head-pic .pip-pic { width: clamp(8rem, 5rem + 10vw, 12rem); }
.head-pic .light-ground { width: min(100%, 21rem); }
@media (min-width: 56rem) { .head-grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); } .head-pic { --phone-w: 16rem; } }
.light-ground { background: #F6F4F1; border-radius: var(--r-tile); padding: var(--s-3); box-shadow: 0 0 0 1px var(--line); }
.light-ground .crop { border-radius: var(--r-small); }
.hero-pair { display: flex; gap: var(--s-4); justify-content: center; --phone-w: 11rem; }
.hero-pair .phone { flex: 0 1 var(--phone-w); margin: 0; }
.hero-pair .phone:last-child { margin-top: 2rem; }
.pip-pic { display: block; }
.pip-pic img { width: 100%; height: auto; }
.pip-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); width: min(100%, 20rem); list-style: none; padding: 0; }
.pip-quad li { text-align: center; }
.pip-quad .pip-pic { background: #FFF0E6; border-radius: var(--r-tile); }
.pip-quad b { display: block; margin-top: var(--s-2); font-size: var(--fs-small); }

/* The App Store button: a calm pill before release, Apple's badge after */
.btn-soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; pointer-events: none; }
.band .btn-soon { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.badge-link { display: inline-block; line-height: 0; }
.badge-link img { height: 48px; width: auto; }
@media (max-width: 40rem) { .badge-link img { height: 44px; } }
.plan-foot .btn-soon { width: auto; }

/* The maker signs below the text */
.why-head.signature { display: flex; justify-content: center; align-items: center; gap: var(--s-3); margin-top: var(--s-6); text-align: left; }
.why-head.signature img { width: 4.25rem; height: 4.25rem; }
.why-head.signature b { font-size: 1.0625rem; }
.prose .why-head.signature { justify-content: flex-start; }
.head-pic .light-ground { width: 20rem; max-width: 100%; }
.head-pic .pip-pic { width: 11rem; max-width: 100%; }
