/* CrossAdapt marketing site, in Apple's design language (Open Design's "apple" system), light only.
   The neutral triad (white, #f5f5f7, black) carries the layout; Apple blue is kept for actions and
   links. Status colours (ok, warn, bad) are iOS system colours at their deeper accessible steps, as
   on the phone (docs/design-v4.md), and piece kinds keep the web app's --k-* hues. */

:root {
  --page: #ffffff;
  --alt: #f5f5f7;
  --card: #f5f5f7;
  --card-alt: #ffffff;
  --fg: #1d1d1f;
  --fg2: #6e6e73;
  --fg3: #86868b;
  --line: #d2d2d7;
  --accent: #0071e3;
  --link: #0066cc;
  --on-accent: #ffffff;
  --nav: rgba(255, 255, 255, .8);
  --nav-line: rgba(29, 29, 31, .1);
  --chapter: #000000;
  --chapter-card: #1d1d1f;
  --chapter-card2: #272729;
  --chapter-fg: #f5f5f7;
  --chapter-fg2: #86868b;
  --chapter-link: #2997ff;
  --ok: #1d7a34;
  --ok-fill: #34c759;
  --ok-tint: rgba(52, 199, 89, .14);
  --warn: #c93400;
  --warn-tint: rgba(255, 149, 0, .16);
  --bad: #d70015;
  --acc-tint: rgba(0, 113, 227, .1);
  --k-strength: #B04A1E;
  --k-conditioning: #B8304E;
  --win: #ffffff;
  --win-side: #f5f5f7;
  --win-field: #f5f5f7;
  --win-shadow: 0 30px 70px -40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(29, 29, 31, .08);
  --glass: rgba(255, 255, 255, .66);
  --glass-on: rgba(29, 29, 31, .07);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1024px;
  --wide: 1180px;
  --gutter: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--fg); font-family: var(--font-text); font-size: 17px; line-height: 1.47; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; letter-spacing: inherit; }
.tn { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 980px; }
.skip:focus { left: 16px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wide { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------------ type */

.eyebrow { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .011em; color: var(--fg2); }
.h-hero { font-family: var(--font-display); font-size: 80px; font-weight: 600; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.h-sec { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -.005em; text-wrap: balance; }
.title { font-family: var(--font-display); font-size: 48px; font-weight: 600; line-height: 1.08; letter-spacing: -.003em; text-wrap: balance; }
.dim { color: var(--fg3); }
.lede { font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.38; letter-spacing: .011em; color: var(--fg2); max-width: 720px; text-wrap: pretty; }
.lede b { color: var(--fg); font-weight: 600; }
.fine { font-size: 14px; line-height: 1.43; letter-spacing: -.016em; color: var(--fg2); }
.small { font-size: 14px; color: var(--fg2); }
.muted { color: var(--fg2); }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 22px; }

/* ------------------------------------------------------------------ actions */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 11px 23px; border: 0; border-radius: 980px; background: var(--accent); color: var(--on-accent); font: 400 17px/1.18 var(--font-text); letter-spacing: -.022em; white-space: nowrap; cursor: pointer; transition: filter .15s, transform .1s; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn.ghost, .btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.ghost:hover, .btn-ghost:hover { background: var(--acc-tint); filter: none; }
.btn.s, .btn-sm { min-height: 28px; padding: 4px 12px; font-size: 13px; }
.btn.block, .btn-block { width: 100%; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 19px; line-height: 1.21; letter-spacing: .012em; color: var(--link); white-space: nowrap; }
.more svg.i { width: 15px; height: 15px; stroke-width: 2; margin-top: 1px; }
.actions { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.actions.start { justify-content: flex-start; }

/* ------------------------------------------------------------------ global nav */

.gnav { position: sticky; top: 0; z-index: 100; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--nav-line); }
.gnav-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 48px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.gnav .links { display: flex; gap: 30px; margin: 0 auto; }
.gnav .links a { font-size: 13px; color: var(--fg); opacity: .8; letter-spacing: -.01em; }
.gnav .links a:hover { opacity: 1; text-decoration: none; }
.gnav .links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.gnav .end { display: flex; align-items: center; gap: 18px; }
.gnav .signin { font-size: 13px; color: var(--fg); opacity: .8; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; margin-right: -12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { display: block; width: 17px; height: 1.5px; border-radius: 1px; background: var(--fg); }
.menu:not([open]) .menu-panel { display: none; }
.menu-panel { position: absolute; right: -12px; top: 46px; width: 240px; padding: 10px 0; border-radius: 18px; background: var(--card-alt); box-shadow: var(--win-shadow); display: grid; }
.menu-panel a { padding: 11px 22px; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--fg); }

/* Local nav: a product page's own bar under the global one, as on Apple's product pages. */
.lnav { position: sticky; top: 48px; z-index: 90; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--nav-line); }
.lnav-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 52px; display: flex; align-items: center; gap: 24px; }
.lnav .t { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .011em; margin-right: auto; }
.lnav .ll { display: flex; gap: 24px; }
.lnav .ll a { font-size: 12px; color: var(--fg); opacity: .8; }

/* ------------------------------------------------------------------ heroes */

.hero { text-align: center; padding: 92px 0 56px; }
.hero .h-hero { margin-top: 12px; }
.hero .lede { margin: 24px auto 0; }
.hero .actions { margin-top: 32px; }
.hero .fine { margin-top: 22px; }
.page-hero { text-align: center; padding: 88px 0 64px; }
.page-hero .h-hero { margin-top: 12px; font-size: 72px; line-height: 1.06; }
.page-hero .lede { margin: 24px auto 0; }
.page-hero .actions { margin-top: 30px; }

/* A product picture on a pale rounded field. */
.stage { background: var(--alt); border-radius: 36px; padding: 56px 56px 0; overflow: hidden; }
.stage.pad-b { padding-bottom: 56px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 44px 8px 0; }
.cap h2 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .011em; }
.cap p { margin-top: 8px; font-size: 15px; line-height: 1.47; color: var(--fg2); letter-spacing: -.016em; }
.cap .n { font-size: 14px; font-weight: 600; color: var(--fg2); margin-bottom: 8px; display: block; }

/* ------------------------------------------------------------------ drawn web app windows */
/* The web app's Programming page and gym dashboard, drawn with a made-up gym so the site never
   shows a real one's members or money. */

.win { background: var(--win); border-radius: 14px 14px 0 0; box-shadow: var(--win-shadow); overflow: hidden; color: var(--fg); text-align: left; }
.win.closed { border-radius: 14px; }
.win-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--win-side); border-bottom: 1px solid var(--line); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.win-bar .url { margin: 0 auto; transform: translateX(-30px); max-width: 60%; height: 26px; padding: 0 14px; border-radius: 8px; background: var(--win); font-size: 12px; line-height: 26px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app { display: grid; grid-template-columns: 196px 1fr; min-height: 470px; }
.side { background: var(--win-side); padding: 18px 12px; border-right: 1px solid var(--line); font-size: 13px; }
.side .ab { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 0 10px 14px; }
.side .ab img { width: 20px; height: 20px; border-radius: 5px; }
.side .it { padding: 6px 10px; border-radius: 8px; color: var(--fg); }
.side .it.on { background: var(--acc-tint); color: var(--link); font-weight: 600; }
.side .sec { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; color: var(--fg2); letter-spacing: .01em; }
.app-main { padding: 24px 28px 30px; min-width: 0; }
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.day-head .k { font-size: 13px; font-weight: 600; color: var(--fg2); }
.day-head b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: .007em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--win-field); font-size: 12px; font-weight: 600; color: var(--fg2); white-space: nowrap; }
.chip.ok { background: var(--ok-tint); color: var(--ok); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip svg.i { width: 12px; height: 12px; stroke-width: 2.2; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--kt, var(--fg)); }
.kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--kd, var(--fg2)); }
.kd-strength { --kd: var(--k-strength); --kt: var(--k-strength); }
.kd-conditioning { --kd: var(--k-conditioning); --kt: var(--k-conditioning); }
.folded { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--win-field); font-size: 14px; }
.folded .okc { width: 22px; height: 22px; border-radius: 50%; background: var(--ok-fill); color: #ffffff; display: grid; place-items: center; flex: none; }
.folded .okc svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.folded .ft { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; min-width: 0; }
.folded b { font-weight: 600; }
.folded .t { color: var(--fg2); margin-left: auto; white-space: nowrap; }
.editor { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pane { border-radius: 12px; padding: 16px 18px 18px; min-width: 0; }
.pane.text { background: var(--win-field); }
.pane.read { box-shadow: inset 0 0 0 1px var(--line); }
.pane .lab { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--fg2); letter-spacing: .01em; }
.coach { margin-top: 12px; font-size: 15px; line-height: 1.6; white-space: pre-line; letter-spacing: -.012em; }
.coach .caret { display: inline-block; width: 2px; height: 18px; vertical-align: -3px; background: var(--accent); margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .coach .caret { animation: none; } }
.read-title { margin-top: 10px; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; }
.read-shape { margin-top: 2px; font-size: 14px; color: var(--fg2); }
.rows { margin-top: 12px; border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows li b { font-weight: 600; }
.rows li span { color: var(--fg2); white-space: nowrap; }
.read-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.apill { display: inline-flex; align-items: center; height: 30px; padding: 0 15px; border-radius: 15px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.apill.pri { background: var(--accent); color: #ffffff; }
.apill.gray { background: var(--win-field); color: var(--fg); }

.dash-stage { margin-top: 64px; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dash-head b { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: .009em; }
.dash-head span { font-size: 13px; color: var(--fg2); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.tiles + .tiles { margin-top: 10px; }
.tile { background: var(--win-field); border-radius: 12px; padding: 13px 15px 14px; min-width: 0; }
.tile .l { font-size: 12px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; margin-top: 3px; }
.tile .v.warn { color: var(--warn); }
.tile .v.bad { color: var(--bad); }
.dcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.dpanel { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 13px 15px 6px; min-width: 0; }
.dpanel .l { font-size: 12px; font-weight: 600; color: var(--fg2); margin-bottom: 4px; }
.drow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.drow:first-of-type { border-top: 0; }
.drow b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow span { color: var(--fg2); white-space: nowrap; }
.tag { font-size: 11px; font-weight: 600; font-style: normal; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.tag.trial { color: var(--link); background: var(--acc-tint); }
.tag.pending { color: var(--warn); background: var(--warn-tint); }
.tag.active { color: var(--ok); background: var(--ok-tint); }

/* ------------------------------------------------------------------ drawn iPhone (17 Pro, 402 × 874 pt) */

.phone-wrap { display: flex; justify-content: center; }
.phone { --z: .92; zoom: var(--z); width: 426px; height: 898px; padding: 12px; border-radius: 68px; background: #1d1d1f; box-shadow: inset 0 0 0 1.5px #424245, 0 40px 80px -40px rgba(0, 0, 0, .5); flex: none; text-align: left; }
.scr { --sc: #ffffff; position: relative; width: 402px; height: 874px; border-radius: 56px; overflow: hidden; background: var(--alt); color: var(--fg); letter-spacing: -.024em; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 125px; height: 37px; border-radius: 19px; background: #000; z-index: 5; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 4; }
.status .t { position: absolute; left: 0; width: 150px; top: 19px; text-align: center; font: 600 17px/22px var(--font-text); }
.status .ic { position: absolute; right: 0; width: 150px; top: 22px; display: flex; justify-content: center; gap: 6px; align-items: center; }
.status .ic svg { display: block; color: var(--fg); }
.sc-in { position: absolute; top: 62px; left: 0; right: 0; bottom: 0; padding: 0 18px; }
.thead { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.thead .g { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.thead .g img { width: 26px; height: 26px; border-radius: 7px; }
.watchpill { height: 30px; padding: 0 10px; border-radius: 15px; background: var(--sc); display: flex; align-items: center; gap: 6px; }
.watchpill svg.i { width: 15px; height: 15px; }
.watchpill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-fill); }
.sc-eb { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--fg2); }
.lt { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 41px; letter-spacing: .01em; }
.week { margin-top: 12px; background: var(--sc); border-radius: 18px; display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 6px 9px; text-align: center; }
.week span { display: block; font-size: 11px; font-weight: 600; color: var(--fg2); }
.week b { display: grid; place-items: center; width: 34px; height: 34px; margin: 3px auto 0; border-radius: 50%; font-size: 17px; font-weight: 600; }
.week .sel b { background: var(--accent); color: #ffffff; }
.week i { display: block; width: 5px; height: 5px; margin: 4px auto 0; border-radius: 50%; background: var(--fg3); }
.week i.no { background: transparent; }
.sc-sec { margin-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.sc-sec b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 28px; letter-spacing: .016em; }
.sc-sec .sub { font-size: 13px; color: var(--fg2); }
.sc-card { background: var(--sc); border-radius: 18px; }
.sc-fold { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 15px; }
.sc-fold .okc { width: 24px; height: 24px; border-radius: 50%; background: var(--ok-fill); color: #ffffff; display: grid; place-items: center; }
.sc-fold .okc svg.i { width: 14px; height: 14px; stroke-width: 2.6; }
.sc-fold b { font-weight: 600; display: block; }
.sc-fold small { font-size: 13px; color: var(--ok); }
.sc-fold .chev { margin-left: auto; color: var(--fg3); }
.sc-piece { margin-top: 10px; padding: 16px; }
.sc-piece .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sc-piece .pt { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 27px; margin-top: 5px; letter-spacing: .01em; }
.sc-piece .shape { font-size: 15px; color: var(--fg2); margin-top: 1px; }
.mv { margin-top: 12px; }
.mv li { display: grid; grid-template-columns: 58px 1fr auto; gap: 8px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mv li .q { font-weight: 600; }
.mv li .l { color: var(--fg2); white-space: nowrap; }
.mv li .tag { color: var(--warn); background: var(--warn-tint); margin-left: 6px; }
.cnote { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--alt); font-size: 14px; line-height: 1.4; }
.cnote .lab { font-size: 12px; font-weight: 600; color: var(--fg2); margin-bottom: 2px; }
.tabbar { position: absolute; left: 20px; right: 20px; bottom: 21px; height: 62px; padding: 4px; border-radius: 31px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 8px 28px -12px rgba(0, 0, 0, .25), inset 0 0 0 .5px rgba(255, 255, 255, .4); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px; font-size: 10px; font-weight: 600; color: var(--fg); }
.tab svg.i { width: 24px; height: 24px; }
.tab.on { background: var(--glass-on); color: var(--link); }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 139px; height: 5px; border-radius: 3px; background: var(--fg); }
.scr-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(180deg, rgba(245, 245, 247, 0), var(--alt) 70%); }

/* ------------------------------------------------------------------ drawn Apple Watch (Ultra, 49 mm) */

.watch { --wz: 1.45; zoom: var(--wz); position: relative; padding: 0 10px; text-align: left; }
.case { position: relative; width: 243px; height: 289px; border-radius: 64px; padding: 7px; background: linear-gradient(150deg, #48484a 0%, #1c1c1e 34%, #2c2c2e 70%, #3a3a3c 100%); box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.crown { position: absolute; right: -10px; top: 70px; width: 9px; height: 42px; border-radius: 3px; background: repeating-linear-gradient(180deg, #5a5a5e 0 1.5px, #2c2c2e 1.5px 3px); }
.guard { position: absolute; right: -6px; top: 56px; width: 9px; height: 74px; border-radius: 6px; background: linear-gradient(90deg, #2c2c2e, #3a3a3c); }
.side-btn { position: absolute; right: -4px; top: 150px; width: 5px; height: 52px; border-radius: 3px; background: #2c2c2e; }
.action-btn { position: absolute; left: -4px; top: 80px; width: 5px; height: 40px; border-radius: 3px; background: #ff6a14; }
.glass { background: #050505; border-radius: 57px; padding: 9px; }
.wscr { position: relative; width: 211px; height: 257px; border-radius: 48px; overflow: hidden; background: #000000; color: #f5f5f7; font-family: var(--font-text); letter-spacing: -.01em; }
.pips { position: absolute; top: 15px; left: 22px; display: flex; gap: 4px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #6e6e73; }
.pips i.d { background: #2997ff; border-color: #2997ff; }
.pips i.c { border: 2px solid #2997ff; }
.wtime { position: absolute; top: 11px; right: 22px; font-size: 15px; font-weight: 600; line-height: 18px; color: #ffffff; }
.wbody { position: absolute; left: 15px; right: 15px; top: 30px; }
.wclock { font-family: var(--font-display); font-size: 66px; font-weight: 700; line-height: 64px; letter-spacing: -2px; color: #ffffff; }
.web { font-size: 10px; font-weight: 700; line-height: 12px; letter-spacing: .035em; text-transform: uppercase; color: #86868b; margin-top: 3px; }
.wpace { display: flex; justify-content: space-between; margin-top: 7px; font-size: 13px; font-weight: 600; line-height: 16px; }
.wpace .b { color: #2997ff; }
.wmove { margin-top: 9px; padding: 9px 12px 10px; border-radius: 20px; background: #272729; }
.wmove .h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.wmove .h .s { font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; color: #d2d2d7; }
.wmove .h .rx { font-size: 12px; font-weight: 600; color: #2997ff; white-space: nowrap; }
.wmove .n { font-family: var(--font-display); font-size: 23px; font-weight: 700; line-height: 27px; letter-spacing: -.4px; color: #ffffff; margin-top: 3px; }
.wundo { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); height: 26px; padding: 0 14px; border-radius: 13px; background: rgba(255, 255, 255, .14); color: #ff9f0a; font-size: 12px; font-weight: 600; display: flex; align-items: center; }
.wdots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.wdots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .32); }
.wdots i.on { background: #ffffff; }

/* The Lock Screen Live Activity beside the watch. */
.live { align-self: center; margin-left: 56px; width: 340px; background: #1d1d1f; border-radius: 28px; padding: 18px 20px 16px; box-shadow: inset 0 0 0 1px rgba(245, 245, 247, .08); text-align: left; }
.live .h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #86868b; }
.live .h img { width: 20px; height: 20px; border-radius: 5px; }
.live .h .tn { margin-left: auto; color: #f5f5f7; font-size: 15px; }
.live .m { margin-top: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #f5f5f7; }
.live .s { font-size: 14px; color: #86868b; margin-top: 2px; }
.live .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.live .btns span { height: 36px; border-radius: 18px; background: #272729; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #f5f5f7; }
.live .btns span.pri { background: #0071e3; color: #ffffff; }
.live .cap { margin-top: 12px; font-size: 12px; color: #86868b; text-align: center; }

/* ------------------------------------------------------------------ sections */

section { scroll-margin-top: 100px; }
.chapter { background: var(--chapter); color: var(--chapter-fg); }
.chapter .eyebrow, .chapter .lede { color: var(--chapter-fg2); }
.chapter .lede b { color: var(--chapter-fg); }
.chapter .dim { color: var(--chapter-fg2); }
.chapter a, .chapter .more { color: var(--chapter-link); }
.chapter a.btn { color: var(--on-accent); }
.pad { padding: 120px 0; }
.pad-t { padding-top: 120px; }
.pad-b { padding-bottom: 120px; }
.alt { background: var(--alt); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }

/* The two bills CrossAdapt replaces. */
.bills { margin-top: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; }
.bill { background: var(--chapter-card); border-radius: 28px; padding: 36px 36px 30px; display: flex; flex-direction: column; text-align: left; }
.bill .k { font-size: 14px; font-weight: 600; color: var(--chapter-fg2); }
.bill .who { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; margin-top: 6px; letter-spacing: .007em; }
.bill ul { margin-top: 22px; }
.bill li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--chapter-card2); }
.bill li span { font-size: 17px; font-weight: 600; }
.bill li small { display: block; font-size: 14px; font-weight: 400; color: var(--chapter-fg2); margin-top: 2px; }
.bill li b { font-size: 19px; font-weight: 600; white-space: nowrap; }
.bill .total { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--chapter-card2); display: flex; justify-content: space-between; align-items: baseline; }
.bill .total span { font-size: 14px; color: var(--chapter-fg2); }
.bill .total b { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.bill.ours { box-shadow: inset 0 0 0 1.5px var(--chapter-link); }
.bill.ours .total b { color: var(--chapter-link); }
.vs { align-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--chapter-card); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--chapter-fg2); }
.bills-note { margin-top: 22px; font-size: 12px; color: var(--chapter-fg2); text-align: center; }

/* One workout: the phone beside the five steps. */
.flow { display: grid; grid-template-columns: 430px 1fr; gap: 72px; align-items: center; }
.fsteps { margin-top: 40px; display: grid; gap: 4px; }
.fstep { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.fstep:first-child { border-top: 0; }
.fstep .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--card-alt); display: grid; place-items: center; color: var(--fg); }
.fstep .ic svg.i { width: 22px; height: 22px; }
.fstep h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .011em; }
.fstep p { margin-top: 4px; font-size: 15px; line-height: 1.47; color: var(--fg2); letter-spacing: -.016em; }
.flow-more { margin-top: 18px; }

/* Feature tiles. */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento.four { grid-template-columns: repeat(4, 1fr); }
.tilecard { background: var(--card); border-radius: 28px; padding: 32px 32px 34px; text-align: left; }
.alt .tilecard { background: var(--card-alt); }
.tilecard .ic { display: block; width: 40px; height: 40px; color: var(--fg); }
.tilecard .ic svg.i { width: 34px; height: 34px; stroke-width: 1.5; }
.tilecard .k { display: block; font-size: 14px; font-weight: 600; color: var(--fg2); }
.tilecard h3 { margin-top: 18px; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.17; letter-spacing: .009em; }
.tilecard .k + h3, .tilecard h3:first-child { margin-top: 6px; }
.tilecard h3:first-child { margin-top: 0; }
.tilecard p { margin-top: 8px; font-size: 17px; line-height: 1.47; color: var(--fg2); }
.bento.four .tilecard { padding: 28px 26px 30px; }
.bento.four .tilecard h3 { font-size: 21px; line-height: 1.19; }
.bento.four .tilecard p { font-size: 15px; }
.tilecard.dark { background: var(--chapter); color: var(--chapter-fg); }
.tilecard.dark p, .tilecard.dark .k { color: var(--chapter-fg2); }
.tilecard.dark .ic { color: var(--chapter-fg); }
.after-bento { margin-top: 32px; text-align: center; }

/* Pairing a screen. */
.pair-card { background: var(--chapter-card); border-radius: 28px; padding: 40px 36px; text-align: left; }
.pair-card .lab { font-size: 13px; font-weight: 600; color: var(--chapter-fg2); }
.pair-card .code { font-family: var(--font-display); font-size: 56px; font-weight: 600; letter-spacing: .06em; line-height: 1.1; margin-top: 8px; }
.pair-card .fine { margin-top: 10px; color: var(--chapter-fg2); }
.pair-card .kinds { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pair-card .kinds span { height: 30px; padding: 0 14px; border-radius: 15px; background: var(--chapter-card2); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.pair-card .kinds span.on { background: var(--chapter-fg); color: var(--chapter); }

/* Two big link tiles. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo a.tilecard { display: flex; flex-direction: column; color: var(--fg); min-height: 320px; padding: 40px 40px 36px; transition: transform .2s; }
.duo a.tilecard:hover { text-decoration: none; transform: translateY(-2px); }
.duo .big { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.1; margin-top: 10px; }
.duo .big small { font-size: 21px; color: var(--fg2); }
.duo .tilecard p { max-width: 460px; }
.duo .tilecard .more { margin-top: auto; padding-top: 24px; }

/* The watch chapter. */
.watch-row { margin-top: 72px; display: flex; justify-content: center; }
.trio { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: left; }
.trio h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .011em; }
.trio p { margin-top: 8px; font-size: 17px; line-height: 1.47; color: var(--fg2); }
.chapter .trio h3 { color: var(--chapter-fg); }
.chapter .trio p { color: var(--chapter-fg2); }

/* Athletes: the phone and watch together, and a typed score. */
.devices { display: flex; justify-content: center; align-items: flex-end; gap: 48px; }
.devices .phone { --z: .72; }
.devices .watch { --wz: 1.2; margin-bottom: 40px; }
.score-card { background: var(--chapter-card); border-radius: 28px; padding: 30px 32px 28px; text-align: left; }
.score-card .h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.score-card .h b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; }
.score-card .h span { font-size: 14px; color: var(--chapter-fg2); }
.score-card .h .badge { height: 26px; padding: 0 12px; border-radius: 13px; background: var(--chapter-card2); display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--chapter-fg); }
.score-card ul { margin-top: 20px; }
.score-card li { display: grid; grid-template-columns: 1fr auto 52px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--chapter-card2); font-size: 17px; }
.score-card li .k { color: var(--chapter-fg2); }
.score-card li .z { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--chapter-fg2); }
.score-card li .z i { width: 8px; height: 8px; border-radius: 50%; background: #ff9f0a; }
.score-card li .z i.z3 { background: #34c759; }
.score-card .total { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--chapter-card2); display: flex; justify-content: space-between; align-items: baseline; }
.score-card .total span { font-size: 14px; color: var(--chapter-fg2); }
.score-card .total b { color: var(--chapter-fg); font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.score-card .total em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--chapter-link); margin-left: 10px; }

/* Proof: numbers from a real gym. */
.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--card-alt); border-radius: 28px; padding: 32px 28px 30px; text-align: left; }
.stat .v { font-family: var(--font-display); font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.015em; }
.stat p { margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--fg2); }
.on-white .stat { background: var(--card); }
.on-white .stats { margin-top: 56px; }
.proof-foot { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ pricing */

.tiers { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.tiers.two { grid-template-columns: 1fr 1fr; max-width: 820px; margin-left: auto; margin-right: auto; }
.tier { background: var(--card); border-radius: 28px; padding: 34px 32px 32px; display: flex; flex-direction: column; text-align: left; }
.alt .tier { background: var(--card-alt); }
.tier.featured { box-shadow: inset 0 0 0 2px var(--accent); }
.tier .name { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; }
.tier .size { margin-top: 4px; font-size: 15px; color: var(--fg2); }
.tier .price { margin-top: 24px; font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.tier .price small { font-size: 21px; color: var(--fg2); margin-left: 4px; letter-spacing: 0; }
.tier .terms { margin-top: 8px; font-size: 14px; color: var(--fg2); }
.tier .desc { margin-top: 14px; font-size: 15px; color: var(--fg2); }
.tier ul { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.tier li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tier li svg.i { width: 16px; height: 16px; stroke-width: 2.2; color: var(--fg2); }
.tier .btn { margin-top: auto; width: 100%; }
.tiers-note { margin-top: 18px; text-align: center; }
.incl { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: left; }
.incl b { display: block; font-size: 15px; font-weight: 600; }
.incl span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.43; color: var(--fg2); }
.empty-card { margin-top: 64px; background: var(--card); border-radius: 28px; padding: 32px; text-align: left; }
.empty-card b { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.empty-card p { margin-top: 6px; color: var(--fg2); }

.faq { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; text-align: left; border-top: 1px solid var(--line); }
.faq > div { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.faq h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .011em; }
.faq p { margin-top: 8px; font-size: 17px; line-height: 1.47; color: var(--fg2); }

/* ------------------------------------------------------------------ switching and the story */

.order { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: left; }
.order li { background: var(--card-alt); border-radius: 22px; padding: 24px 22px 26px; }
.order .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fg); color: var(--page); font-size: 14px; font-weight: 600; }
.order b { display: block; margin-top: 16px; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.order p { margin-top: 6px; font-size: 15px; line-height: 1.43; color: var(--fg2); }
.founding { background: var(--chapter-card); border-radius: 28px; padding: 32px 32px 28px; text-align: left; }
.founding .k { font-size: 14px; font-weight: 600; color: var(--chapter-fg2); }
.founding ul { margin-top: 14px; }
.founding li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--chapter-card2); }
.founding li b { font-size: 19px; font-weight: 600; }
.founding li small { grid-column: 1; font-size: 14px; color: var(--chapter-fg2); }
.founding li .p { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; }
.founding li .p s { display: block; font-family: var(--font-text); font-size: 13px; font-weight: 400; color: var(--chapter-fg2); margin-top: 6px; }
.founding .fine { color: var(--chapter-fg2); margin-top: 16px; }

/* ------------------------------------------------------------------ guide hub */

.starts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.starts a { display: flex; flex-direction: column; background: var(--card); border-radius: 24px; padding: 26px 24px 24px; color: var(--fg); text-align: left; min-height: 220px; transition: transform .2s; }
.starts a:hover { text-decoration: none; transform: translateY(-2px); }
.starts .k { font-size: 14px; font-weight: 600; color: var(--fg2); }
.starts b { margin-top: 6px; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.17; }
.starts p { margin-top: 8px; font-size: 15px; line-height: 1.43; color: var(--fg2); }
.starts .go { margin-top: auto; padding-top: 16px; color: var(--link); display: inline-flex; align-items: center; gap: 2px; font-size: 15px; }
.starts .go svg.i { width: 13px; height: 13px; stroke-width: 2; }
.group { margin-top: 64px; text-align: left; }
.group > h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.13; }
.topics { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.topics a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; padding: 20px 0 22px; border-bottom: 1px solid var(--line); color: var(--fg); }
.topics a:hover { text-decoration: none; }
.topics a:hover b { color: var(--link); }
.topics b { font-size: 17px; font-weight: 600; }
.topics p { grid-column: 1; font-size: 15px; line-height: 1.43; color: var(--fg2); }
.topics svg.i { grid-row: 1; grid-column: 2; width: 14px; height: 14px; stroke-width: 2; color: var(--fg3); margin-top: 4px; }
.helpbox { margin-top: 72px; background: var(--card); border-radius: 28px; padding: 32px 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; text-align: left; }
.helpbox b { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.helpbox p { margin-top: 4px; font-size: 17px; color: var(--fg2); }

/* ------------------------------------------------------------------ sign-up */

.signup { display: grid; grid-template-columns: 1fr 520px; gap: 72px; align-items: start; padding-top: 88px; padding-bottom: 120px; }
.signup h1 { margin-top: 12px; font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1.07; text-wrap: balance; }
.signup .lede { margin-top: 18px; font-size: 19px; }
.checks { margin-top: 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checks svg.i { width: 20px; height: 20px; margin-top: 2px; stroke-width: 2; color: var(--ok); }
.form-card { background: var(--card); border-radius: 28px; padding: 28px 32px 32px; min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; background: rgba(29, 29, 31, .07); }
.seg a { height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--fg); }
.seg a:hover { text-decoration: none; }
.seg a[aria-current="page"] { background: var(--card-alt); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.form { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .legend { font-size: 14px; font-weight: 600; }
.field small, .legend small { font-weight: 400; color: var(--fg2); font-size: 14px; }
.input, .prefixed { height: 50px; border-radius: 12px; border: 1px solid var(--fg3); background: var(--card-alt); font: 400 17px var(--font-text); color: var(--fg); letter-spacing: -.022em; }
.input { width: 100%; min-width: 0; padding: 0 16px; }
.input::placeholder, .prefixed input::placeholder { color: var(--fg3); }
.input:focus, .prefixed:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--card-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.prefixed { display: flex; align-items: center; overflow: hidden; }
.prefixed > span { padding: 0 2px 0 16px; color: var(--fg2); white-space: nowrap; }
.prefixed input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; padding: 0 16px 0 0; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.row-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.rule { height: 1px; background: var(--line); margin: 4px 0; }
.hint { font-size: 14px; line-height: 1.43; color: var(--fg2); }
.hint.c { text-align: center; }
.error { font-size: 15px; color: var(--bad); }
.field-error { font-size: 13px; color: var(--bad); }
.input.invalid, .prefixed.invalid { border-color: var(--bad); }

/* Choice cards: radio inputs styled as Apple's configurator options. */
.choices { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.choices .opts { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: grid; gap: 2px; padding: 14px 14px 13px; border-radius: 14px; background: var(--card-alt); box-shadow: inset 0 0 0 1px var(--fg3); cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { font-size: 17px; font-weight: 600; }
.choice span { font-size: 13px; color: var(--fg2); line-height: 1.35; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The athlete form shows the part for the way they train. Without :has() both parts show. */
.mode-gym, .mode-own { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.athlete-form:has(#mode-own:checked) .mode-gym { display: none; }
.athlete-form:has(#mode-gym:checked) .mode-own { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { margin-top: 24px; display: grid; gap: 16px; }
.done-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-fill); color: #ffffff; display: grid; place-items: center; }
.done-mark svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
.done-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; }
.done p { font-size: 17px; line-height: 1.47; color: var(--fg2); }
.done p b { color: var(--fg); font-weight: 600; }
.done ol { display: grid; gap: 10px; counter-reset: step; }
.done ol li { display: flex; gap: 12px; align-items: center; counter-increment: step; font-size: 15px; }
.done ol li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--page); font-size: 13px; font-weight: 600; flex: none; }

/* ------------------------------------------------------------------ closer and footer */

.closer { padding: 140px 0 132px; text-align: center; }
.closer .lede { margin: 20px auto 0; }
.closer .actions { margin-top: 34px; }
.foot { background: var(--alt); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.33; color: var(--fg2); }
.foot-in { padding-top: 44px; padding-bottom: 28px; }
.fcols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.fcols h2 { font-size: 12px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.fcols a { display: block; color: var(--fg2); padding: 4px 0; }
.fcols a:hover { color: var(--fg); }
.fbrand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 14px; font-weight: 600; }
.fbrand img { width: 22px; height: 22px; border-radius: 6px; }
.fbrand + p { margin-top: 8px; }
.foot-legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ legal pages (privacy, support) */

.legal { max-width: 760px; padding-bottom: 120px; }
.legal .page-hero { text-align: left; padding: 88px 0 12px; }
.legal .page-hero .title { margin-top: 10px; }
.legal .page-hero .lede { margin: 18px 0 0; }
.legal section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; }
.legal h3 { font-size: 19px; font-weight: 600; margin-top: 22px; }
.legal p, .legal li { font-size: 17px; line-height: 1.53; text-wrap: pretty; }
.legal h2 + p, .legal h2 + ul { margin-top: 12px; }
.legal h3 + p { margin-top: 6px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal b { font-weight: 600; }

/* ------------------------------------------------------------------ guide topic pages */
/* The topics and their sections are listed once, in Pages/Guide/GuideTopics.cs; _GuideLayout draws
   the sidebar and the previous/next links from it. */

.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 120px; align-items: start; }
.guide-side { position: sticky; top: 72px; max-height: calc(100vh - 92px); overflow-y: auto; padding-right: 4px; font-size: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.guide-side .eyebrow { font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--fg2); margin: 22px 0 6px 10px; }
.guide-side ul { display: grid; gap: 1px; }
.guide-side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--fg); line-height: 1.35; }
.guide-side a:hover { background: var(--alt); text-decoration: none; }
.guide-side a[aria-current="page"] { background: var(--acc-tint); color: var(--link); font-weight: 600; }
.guide-side .toc { margin: 2px 0 8px 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.guide-side .toc a { font-size: 13px; padding: 4px 10px; color: var(--fg2); }
.guide-home { font-weight: 600; }

.guide-menu { display: none; border-radius: 14px; background: var(--card); margin-bottom: 28px; }
.guide-menu summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.guide-menu summary::-webkit-details-marker { display: none; }
.guide-menu summary::after { content: "+"; color: var(--fg2); font-size: 20px; font-weight: 400; }
.guide-menu[open] summary::after { content: "–"; }
.guide-menu .guide-side { position: static; max-height: none; overflow: visible; padding: 0 8px 12px; }

.doc { max-width: 740px; min-width: 0; }
.doc-head .eyebrow { font-size: 17px; }
.doc-head .title { margin-top: 10px; }
.doc-head .lede { margin-top: 16px; }
.doc-for { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.doc section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.doc h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: .007em; }
.doc h3 { font-size: 19px; font-weight: 600; scroll-margin-top: 72px; }
.doc p, .doc li { font-size: 17px; line-height: 1.53; text-wrap: pretty; }
.doc section > * + * { margin-top: 14px; }
.doc section > h3 { margin-top: 28px; }
.doc section > h2 + * { margin-top: 12px; }
.doc section > h3 + * { margin-top: 8px; }
.doc .note > * + * { margin-top: 8px; }
.doc .note > .note-t + * { margin-top: 0; }
.doc ul, .doc ol { padding-left: 22px; list-style: disc; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: 8px; }
.doc li > ul, .doc li > ol { margin-top: 8px; }
.doc b, .doc strong { font-weight: 600; }
.doc em { font-style: italic; }

/* On phones the contents menu sits inside the article; it keeps the sidebar's lists, not the article's. */
.doc .guide-side ul { padding-left: 0; list-style: none; }
.doc .guide-side .toc { padding-left: 10px; }
.doc .guide-side li { font-size: 14px; line-height: 1.35; }
.doc .guide-side .toc li { font-size: 13px; }
.doc .guide-side li + li { margin-top: 1px; }
.doc .guide-side li > ul { margin-top: 2px; }

/* Numbered steps: a dark circle per step. */
.doc ol.how { list-style: none; padding: 0; counter-reset: how; display: grid; gap: 12px; }
.doc ol.how > li { counter-increment: how; position: relative; padding-left: 40px; margin: 0; }
.doc ol.how > li::before { content: counter(how); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--page); font-size: 13px; font-weight: 600; display: grid; place-items: center; }

.doc dl { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.doc dt { font-size: 15px; font-weight: 600; line-height: 1.6; }
.doc dd { margin: 0; font-size: 17px; line-height: 1.53; color: var(--fg2); }

/* A place in the app, written the way you tap through it: Profile › My maxes. */
.path { display: inline; font-size: .9em; font-weight: 600; background: var(--alt); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
/* A button or field label, as it reads on screen. */
.ui { font-weight: 600; }

/* Where a feature lives, and who sees it. */
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px; background: var(--alt); font-size: 12px; font-weight: 600; color: var(--fg2); white-space: nowrap; }
.pill.ac { color: var(--link); background: var(--acc-tint); }
.pill.gym { color: var(--page); background: var(--fg); }

.note { background: var(--alt); border-radius: 14px; padding: 16px 18px; }
.note p, .note li { font-size: 15px; }
.note-t { font-size: 13px; font-weight: 600; color: var(--link); margin-bottom: 4px; }
.note.gym .note-t { color: var(--fg); }
.note.tip .note-t { color: var(--ok); }

.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th { text-align: left; font-size: 13px; font-weight: 600; color: var(--fg2); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.doc td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.47; }
.doc td:first-child { font-weight: 600; width: 32%; min-width: 120px; }
.table-scroll { overflow-x: auto; }

.doc-figure { display: flex; gap: 32px; align-items: flex-end; justify-content: center; margin: 28px 0 4px; padding: 32px 16px; border-radius: 28px; background: var(--alt); }
.doc-figure .phone { --z: .6; }
/* The drawn phone keeps its own lists inside an article. */
.doc .doc-figure ul { padding-left: 0; list-style: none; }
.doc .doc-figure li { font-size: 15px; line-height: 1.47; margin-top: 0; }
.doc-figure .watch { --wz: 1.1; }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 56px; }
.pager a { display: block; padding: 18px 22px; border-radius: 18px; background: var(--card); color: var(--fg); }
.pager a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.pager .next { text-align: right; }
.pager .small { display: block; }
.pager b { display: block; font-size: 17px; margin-top: 4px; }
.doc-help { margin-top: 28px; font-size: 15px; color: var(--fg2); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1068px) {
  .h-hero { font-size: 64px; }
  .page-hero .h-hero { font-size: 60px; }
  .h-sec { font-size: 48px; line-height: 1.08; }
  .pad { padding: 100px 0; }
  .flow { grid-template-columns: 360px 1fr; gap: 48px; }
  .phone { --z: .8; }
  .stage { padding: 40px 32px 0; }
  .stage.pad-b { padding-bottom: 40px; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .live { display: none; }
  .bento.four, .starts { grid-template-columns: repeat(2, 1fr); }
  .order { grid-template-columns: repeat(3, 1fr); }
  .signup { grid-template-columns: 1fr 460px; gap: 48px; }
  .lnav .ll { display: none; }
}
@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .guide > .guide-side { display: none; }
  .guide-menu { display: block; }
}
@media (max-width: 834px) {
  .gnav .links, .gnav .signin { display: none; }
  .gnav .end { margin-left: auto; }
  .menu { display: block; }
  .h-hero, .page-hero .h-hero { font-size: 52px; line-height: 1.08; }
  .h-sec { font-size: 40px; line-height: 1.1; }
  .title, .signup h1 { font-size: 40px; }
  .eyebrow { font-size: 19px; }
  .lede { font-size: 19px; }
  .caps, .trio { grid-template-columns: 1fr; gap: 28px; }
  .editor { grid-template-columns: 1fr; }
  .bills { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .flow, .split { grid-template-columns: 1fr; gap: 48px; }
  .flow .phone-wrap { order: 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dcols { grid-template-columns: 1fr; }
  .dcols .dpanel + .dpanel { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tiers, .tiers.two { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .duo { grid-template-columns: 1fr; }
  .incl { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .order { grid-template-columns: 1fr 1fr; }
  .signup { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; }
  .devices .watch { display: none; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .fcols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 60px 0 40px; }
  .page-hero { padding: 60px 0 44px; }
  .legal .page-hero { padding-top: 56px; }
  .h-hero, .page-hero .h-hero { font-size: 40px; line-height: 1.1; letter-spacing: -.01em; }
  .h-sec { font-size: 32px; line-height: 1.13; }
  .title, .signup h1 { font-size: 34px; }
  .eyebrow { font-size: 17px; }
  .lede { font-size: 17px; line-height: 1.47; }
  .pad { padding: 72px 0; }
  .pad-t { padding-top: 72px; }
  .pad-b { padding-bottom: 72px; }
  .stage { border-radius: 24px; padding: 20px 12px 0; }
  .stage.pad-b { padding-bottom: 24px; }
  .caps { padding-top: 28px; }
  .app-main { padding: 16px 14px 20px; }
  .win-bar .url { transform: none; max-width: 70%; }
  .win-bar .upath { display: none; }
  .day-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .folded .ft { flex-direction: column; align-items: flex-start; }
  .folded .t { display: none; }
  .bill { padding: 26px 22px 22px; border-radius: 24px; }
  .bill .total b { font-size: 44px; }
  .phone { --z: .72; }
  .devices .phone { --z: .7; }
  .bento, .bento.four, .starts, .topics, .order { grid-template-columns: 1fr; }
  .tilecard { padding: 26px 24px 28px; border-radius: 24px; }
  .duo a.tilecard { min-height: 0; padding: 30px 26px; }
  .duo .big { font-size: 32px; }
  .pair-card { padding: 28px 22px; }
  .pair-card .code { font-size: 36px; }
  .watch { --wz: 1.15; }
  .watch-row { margin-top: 48px; }
  .trio { margin-top: 48px; }
  .stats { gap: 12px; }
  .stat { padding: 22px 18px; border-radius: 22px; }
  .stat .v { font-size: 44px; }
  .tier { padding: 28px 24px; }
  .incl { grid-template-columns: 1fr; gap: 18px; }
  .score-card { padding: 24px 22px; }
  .score-card .total b { font-size: 44px; }
  .founding { padding: 26px 22px; }
  .founding li .p { font-size: 32px; }
  .form-card { padding: 22px 18px 24px; border-radius: 24px; }
  .row-2, .row-2-1, .choices .opts { grid-template-columns: minmax(0, 1fr); }
  .helpbox { padding: 26px 22px; }
  .closer { padding: 88px 0; }
  .actions { gap: 20px; }
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc dd + dt { margin-top: 12px; }
  .doc-figure .phone { --z: .5; }
}
