/* LifTxT landing page. One stylesheet; the dot field behind everything is drawn by landing.js. */

@font-face { font-family: Ox; font-weight: 500; font-display: swap; src: url("fonts/Oxanium-Medium.ttf") format("truetype"); }
@font-face { font-family: Ox; font-weight: 700; font-display: swap; src: url("fonts/Oxanium-Bold.ttf") format("truetype"); }

:root {
  --bg: #160C7A; --surface: #2414B8; --surface2: #1E1196; --line: rgba(255,255,255,.14); --sub: #C3CAFF;
  --push: #FF4562; --pull: #C6F432; --legs: #1FE3A0; --action: #2F6BFF; --ink: #0A0630;
  --gutter: clamp(18px, 3vw, 44px);
  --chamfer: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: Ox, system-ui, sans-serif; font-weight: 500; color: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: none; }
picture { display: contents; }
.nobr { white-space: nowrap; }
.lc { text-transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pull); outline-offset: 3px; }

/* Oxanium has no arrows: draw them in the text colour. Points right unless turned. */
.arw { display: inline-block; flex: none; width: .8em; height: .8em; vertical-align: -.05em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.25h12.5L10.75 5.5 13.25 3 22 12l-8.75 9-2.5-2.5 4.75-4.75H3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.25h12.5L10.75 5.5 13.25 3 22 12l-8.75 9-2.5-2.5 4.75-4.75H3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.arw.n { transform: rotate(-90deg); } .arw.s { transform: rotate(90deg); } .arw.ne { transform: rotate(-45deg); }

#field { position: fixed; inset: 0; z-index: 0; display: block; width: 100vw; height: 100lvh; }
main, .foot { position: relative; z-index: 1; }

.skip { position: fixed; z-index: 30; left: 12px; top: 12px; padding: 12px 16px; background: #fff; color: var(--ink); font: 700 15px Ox; text-decoration: none;
  transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Things that come in when they reach the screen: blur and rise, like a focus pull. */
.in { opacity: 0; filter: blur(12px); transform: translateY(24px); transition: opacity .7s, filter .7s, transform .8s cubic-bezier(.2,.8,.2,1); }
.in.on { opacity: 1; filter: none; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); filter: blur(10px); } }

/* ---------- Header ---------- */
.top { position: fixed; z-index: 10; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--gutter) 22px; font: 700 15px Ox; letter-spacing: .02em; pointer-events: none;
  background: linear-gradient(var(--bg) 40%, transparent); }
.top a { min-height: 44px; display: flex; align-items: center; text-decoration: none; pointer-events: auto; }
.on-blue .top { background: linear-gradient(var(--action) 40%, transparent); }
.store-link { text-transform: uppercase; }

/* The name with the strong emote after it, as on the app's Home screen. */
.brand { gap: 10px; }
.brand .strong { display: inline-block; height: 15px; aspect-ratio: 1867 / 438; background: currentColor;
  -webkit-mask: url("img/strong.svg") center / contain no-repeat; mask: url("img/strong.svg") center / contain no-repeat; }

/* Topics, drawn like the app's set bar: current = heavy underline, passed = blue + √. Shown once the hero has gone. */
.topics { display: flex; gap: clamp(14px, 2vw, 30px); opacity: 0; transition: opacity .4s; }
.topics.show, .topics:focus-within { opacity: 1; }
.topics:not(.show):not(:focus-within) a { pointer-events: none; }
.topics a { gap: 5px; font: 700 13px Ox; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.55); box-shadow: inset 0 -2px rgba(255,255,255,.18); transition: color .25s, box-shadow .25s; }
.topics a.done { color: #7E9CFF; box-shadow: inset 0 -2px #7E9CFF; }
.topics a.done::before { content: "√"; }
.topics a.cur { color: #fff; box-shadow: inset 0 -4px #fff; }
/* On the blue Rest page only white text is readable, so the underline carries the state. */
.on-blue .topics a, .on-blue .topics a.done { color: #fff; box-shadow: inset 0 -2px rgba(255,255,255,.45); }
.on-blue .topics a.cur { box-shadow: inset 0 -4px #fff; }

/* ---------- Hero ---------- */
#hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 90px var(--gutter) 110px; }
.hero { position: relative; width: min(820px, 100%); display: flex; flex-direction: column; align-items: center; }
/* A soft pool of the page colour behind the words, so the video dots fade out under them instead of stopping at an edge. */
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 150%; height: 135%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(22,12,122,.94) 0%, rgba(22,12,122,.86) 45%, rgba(22,12,122,0) 100%); }

/* The logo, as the app icon draws it: three bars of equal height, widths 100 / 78.5 / 57%,
   each cut at the top-left (18% across, 40% down). Gap = a quarter of a bar. */
.logo { --bw: clamp(120px, 11vw, 180px); --bh: calc(var(--bw) * .25); display: flex; flex-direction: column; align-items: center;
  gap: calc(var(--bh) * .25); margin-bottom: clamp(16px, 2vw, 24px); }
.logo i { display: block; height: var(--bh); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 40%); animation: barUp .8s cubic-bezier(.3, 1.4, .5, 1) both; }
.logo i:nth-child(1) { width: var(--bw); background: var(--push); }
.logo i:nth-child(2) { width: calc(var(--bw) * .785); background: var(--pull); animation-delay: .12s; }
.logo i:nth-child(3) { width: calc(var(--bw) * .572); background: var(--legs); animation-delay: .24s; }
@keyframes barUp { from { opacity: 0; transform: translateY(30px) scaleX(.6); } }

.hero h1 { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
.hero-name { font: 700 clamp(46px, 5.6vw, 86px)/.9 Ox; letter-spacing: -.02em; margin-bottom: clamp(44px, 5.4vw, 76px);
  animation: fadeUp .7s .35s cubic-bezier(.2, .8, .2, 1) both; }
.tagline { max-width: 820px; font: 500 clamp(30px, 3.6vw, 54px)/1.02 Ox; letter-spacing: .01em; text-transform: uppercase;
  animation: fadeUp .7s .5s cubic-bezier(.2, .8, .2, 1) both; }
.hero .store-badge { animation: fadeUp .7s .6s cubic-bezier(.2, .8, .2, 1) both; }

/* Scroll prompt: points at the live set screen below. */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 44px; text-decoration: none; text-transform: uppercase; font: 700 12px Ox; letter-spacing: .12em; color: var(--sub);
  animation: fadeUp .7s 1.2s both; }
.scroll-cue .arw { font-size: 20px; color: #fff; animation: nudge 1.8s 2s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 8px; } }

/* Apple's official badge, unchanged (Apple asks for at least 40px tall on screen). */
.store-badge { display: inline-flex; border-radius: 12px; transition: transform .2s; }
.store-badge img { height: 54px; width: auto; }
.store-badge.big img { height: 64px; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline-offset: 4px; }

/* ---------- Feature rows ---------- */
.row { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center;
  max-width: 1360px; margin: 0 auto; padding: clamp(60px, 11vh, 130px) var(--gutter); }
.vis { position: relative; }
.row.flip .vis { order: 2; }
/* Run a visual out to the screen edge. */
.bleed-l { margin-left: calc(-1 * (max(0px, (100vw - 1360px) / 2) + var(--gutter))); }

.copy { max-width: 520px; }
/* A short bar in the section's colour sits over each heading. */
.copy::before { content: ""; display: block; width: 44px; height: 10px; margin-bottom: 22px; background: var(--acc);
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px); }
.copy h2 { font: 700 clamp(40px, 5vw, 80px)/.92 Ox; text-transform: uppercase; margin-bottom: 20px; }
.lede { font: 500 clamp(17px, 1.45vw, 21px)/1.5 Ox; color: var(--sub); margin-bottom: 30px; }
.points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.points li { display: flex; flex-direction: column; gap: 6px; }
.points b { display: flex; align-items: center; gap: 10px; font: 700 15px Ox; letter-spacing: .04em; text-transform: uppercase; }
.points b::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--acc); clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px); }
.points span { font: 500 15px/1.45 Ox; color: var(--sub); }
.rules { list-style: none; border-top: 1px solid var(--line); }
.rules li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 clamp(17px, 1.45vw, 21px) Ox; color: var(--sub); }
.rules b { min-width: 6.2em; font-weight: 700; text-transform: uppercase; }
.rules .arw { color: var(--acc); }

/* ---------- Log: the set screen, built live ---------- */
.app-wrap { display: flex; justify-content: center; align-items: center; height: min(88svh, 840px); }
.app-set { position: relative; height: 100%; aspect-ratio: 1206 / 2622; container-type: size; display: flex; flex-direction: column; overflow: hidden;
  /* Red behind the header, tabs and weight zone (13 + 6 + 36cqh), so the hairline seams between those blocks never show the blue. */
  background: linear-gradient(var(--push) 55cqh, var(--bg) 55cqh); clip-path: var(--chamfer); rotate: -2deg; color: var(--ink); }
.as-head { position: relative; display: flex; flex-direction: column; height: 13cqh; padding: 5.6cqh 6cqw 0; background: var(--push); }
.as-head span { font: 700 1.5cqh Ox; letter-spacing: .03em; }
.as-head b { font: 700 3.6cqh/1 Ox; }
.as-head > .arw { position: absolute; right: 6cqw; top: 7cqh; font-size: 3cqh; }
.as-tabs { display: flex; gap: 4cqw; align-items: flex-start; height: 6cqh; padding: 1.2cqh 6cqw 0; background: var(--push); }
.as-tabs span { flex: 1; font: 700 1.5cqh Ox; padding-bottom: .7cqh; border-bottom: .35cqh solid var(--surface2); white-space: nowrap; }
.as-tabs span b { font-size: 2.4cqh; }
.as-tabs span.done { color: var(--surface2); }
.as-tabs span.cur { border-bottom-width: .8cqh; border-color: var(--ink); }
.as-tabs em { font: 700 3cqh/1 Ox; font-style: normal; }
.as-zone { position: relative; flex: none; }
.as-zone.w { height: 36cqh; background: var(--push); }
.as-zone.r { height: 35cqh; color: #fff; background: var(--bg) radial-gradient(circle, rgba(70,60,220,.6) 18%, transparent 22%) 0 0 / 1.4cqh 1.4cqh; }
/* The app's seam: a chamfered red tab hangs into the reps block. */
/* It starts 2px up inside the red zone, so no hairline shows where the two meet. */
.as-zone.w::after { content: ""; position: absolute; z-index: 1; left: 30cqw; top: calc(100% - 2px); width: 42cqw; height: calc(2.2cqh + 2px); background: var(--push);
  clip-path: polygon(0 0, 100% 0, 100% 2px, calc(100% - 2.2cqh) 100%, 2.2cqh 100%, 0 2px); }
.as-lbl { position: absolute; left: 6cqw; top: 2.4cqh; font: 700 1.5cqh Ox; letter-spacing: .03em; }
.as-lbl.r { left: auto; right: 6cqw; }
.as-zone.r .as-lbl { top: 3.6cqh; }
.as-num { position: absolute; left: 4.5cqw; top: 52%; transform: translateY(-50%); display: flex; overflow: hidden; padding-top: .05em;
  font: 700 25cqh/.8 Ox; letter-spacing: -.03em; }
.as-zone.r .as-num { top: 55%; }
.as-num span { display: inline-block; }
.as-num.go span { animation: roll .7s calc(var(--i) * .09s) cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes roll { from { transform: translateY(105%); } }
.as-wells { position: absolute; right: 0; top: 5.5cqh; bottom: 0; width: 22cqw; display: flex; flex-direction: column; }
.as-zone.r .as-wells { top: 6.5cqh; }
.as-wells > i { flex: 1; display: grid; place-items: center; font-size: 3.4cqh; color: var(--ink); }
.as-zone.w .as-wells > i:first-child { background: #F03A57; } .as-zone.w .as-wells > i:last-child { background: #DA3350; }
.as-zone.r .as-wells > i { color: #fff; }
.as-zone.r .as-wells > i:first-child { background: var(--surface2); } .as-zone.r .as-wells > i:last-child { background: #0E0757; }
.as-wells > i.hit { animation: hit .26s ease-out; }
@keyframes hit { 0% { background: #fff; color: var(--ink); transform: scale(.92); } 100% { background: var(--surface); } }
.as-foot { display: flex; height: 10cqh; }
.as-foot b, .as-foot span { display: grid; place-items: center; color: #fff; font: 700 1.9cqh Ox; letter-spacing: .04em; }
.as-foot b { flex: 1; background: var(--action); }
.as-foot span { width: 22cqw; background: #1F55D6; }
.as-foot b.press { animation: press .35s ease-out; }
@keyframes press { 0% { background: #fff; color: var(--ink); } }

/* ---------- Rest: the page itself turns blue; the field draws the breathing disc on .ra-disc ---------- */
.rest-app { display: flex; flex-direction: column; }
.ra-lbl { font: 700 clamp(18px, 1.6vw, 24px) Ox; }
.ra-time { font: 700 clamp(84px, 9vw, 150px)/.9 Ox; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ra-bar { display: flex; gap: 5px; margin-top: 18px; }
.ra-bar i { flex: 1; max-width: 18px; aspect-ratio: 1.3; background: #fff; transition: background .3s; }
.ra-bar i.gone { background: #1F55D6; }
.ra-disc { width: 100%; aspect-ratio: 1; margin-top: 2vh; }
/* White is the only text colour that passes contrast on action blue (4.5:1). */
.rest-e .lede, .rest-e .points span { color: #fff; }
.rest-e .points { border-color: rgba(255,255,255,.35); }

/* ---------- Method: the sets as bars out of the screen edge ---------- */
.pyr-c { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); }
.pyr-c i { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 2vw, 28px); width: var(--w); height: clamp(70px, 9vw, 128px);
  padding: 0 clamp(18px, 2.4vw, 34px); background: var(--c); color: var(--ink); font-style: normal;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  transform: translateX(-105%); transition: transform 1s cubic-bezier(.3, 1.25, .5, 1); }
.pyr-c i:nth-child(2) { transition-delay: .14s; } .pyr-c i:nth-child(3) { transition-delay: .28s; }
.pyr-c.on i { transform: none; }
.pyr-c b { font: 700 clamp(13px, 1.1vw, 16px) Ox; letter-spacing: .05em; }
.pyr-c span { font: 700 clamp(28px, 3.4vw, 54px)/1 Ox; }

/* ---------- Workout: the Day screen, built live (sizes are the app's points × .2415cqw, the screen being 414pt wide) ---------- */
.app-day { position: relative; height: 100%; aspect-ratio: 1206 / 2622; container-type: size; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface2); clip-path: var(--chamfer); rotate: 2deg; color: #fff; }
.ad-head { position: relative; display: flex; flex-direction: column; gap: 1.6cqw; padding: 15cqw 5.3cqw 4.4cqw; }
.ad-head span { font: 500 2.9cqw Ox; letter-spacing: .02em; }
.ad-head em { font-style: normal; color: #5CC8FF; display: inline-block; }
.ad-head b { font: 700 7.2cqw/1 Ox; }
.ad-head > .arw { position: absolute; right: 5.3cqw; top: 15cqw; font-size: 5.6cqw; }
#adCount.hit { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1.5); color: #fff; } }
.ad-list { list-style: none; display: flex; flex-direction: column; gap: .5cqw; }
.ad-list li { --c: var(--push); --z: #E03D56; position: relative; display: flex; align-items: center; min-height: 15cqw;
  background: var(--c); color: var(--ink); clip-path: polygon(4.8cqw 0, 100% 0, 100% 100%, 0 100%, 0 4.8cqw);
  transition: background .35s, color .35s, clip-path .35s; }
.ad-list li.pull { --c: var(--pull); --z: #AED72C; } .ad-list li.legs { --c: var(--legs); --z: #1BC88D; }
.ad-list .n { flex: none; width: 9.7cqw; margin-left: 3.4cqw; font: 500 2.9cqw Ox; overflow: hidden; transition: width .35s, margin .35s, opacity .2s; }
.ad-list .ck { flex: none; width: 0; overflow: hidden; color: var(--c); font: 700 3.9cqw Ox; transition: width .35s; }
.ad-list .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .7cqw; padding: 2.2cqw 0; }
.ad-list b { font: 700 5.3cqw/1.1 Ox; white-space: nowrap; }
.ad-list small { font: 500 2.9cqw Ox; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .35s; }
.ad-list .zn { flex: none; align-self: stretch; width: 13.5cqw; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5cqw;
  background: var(--z); clip-path: polygon(3.4cqw 0, 100% 0, 100% 100%, 0 100%, 0 3.4cqw); transition: width .35s, opacity .25s; }
.ad-list .zn .arw { font-size: 5.3cqw; }
.ad-list .zn em { font: 500 2.9cqw Ox; font-style: normal; }
.ad-list .zn em:empty { display: none; }
.ad-list .zn.hit { animation: zhit .3s ease-out; }
@keyframes zhit { 0% { background: #fff; } }
/* Done: a slim dark bar with a lift-colour tab and a √, like the app. */
.ad-list li.done { background: #0E0757; color: #fff; clip-path: polygon(3.4cqw 0, 100% 0, 100% 100%, 0 100%, 0 3.4cqw);
  box-shadow: inset 2.4cqw 0 var(--c); }
.ad-list li.done .n { width: 0; margin-left: 5.8cqw; opacity: 0; }
.ad-list li.done .ck { width: 6.3cqw; animation: pop .5s .1s cubic-bezier(.3, 1.6, .5, 1) both; }
.ad-list li.done small { color: var(--sub); opacity: 1; }
.ad-list li.done .zn { width: 0; opacity: 0; }
.ad-list li.hit { animation: rowhit .5s ease-out; }
@keyframes rowhit { 0% { background: #fff; } }
.ad-del { display: flex; justify-content: space-between; align-items: center; margin: 6cqw 4.8cqw 0; height: 11.6cqw; padding: 0 3.9cqw;
  background: var(--surface); font: 700 3.9cqw Ox; }
.ad-foot { display: flex; margin-top: auto; height: 10cqh; clip-path: polygon(4.8cqw 0, 100% 0, 100% 100%, 0 100%, 0 4.8cqw); }
.ad-foot b, .ad-foot span { display: grid; place-items: center; font: 700 3.9cqw Ox; letter-spacing: .04em; }
.ad-foot b { flex: 1; background: var(--action); }
.ad-foot span { width: 22cqw; background: #1F55D6; }

/* ---------- Screenshots that move with the scroll (landing.js sets --z/--tx/--ty) ---------- */
.e-shot { position: relative; height: min(92svh, 880px); overflow: hidden;
  --fade-x: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  --fade-y: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask: var(--fade-x), var(--fade-y); -webkit-mask-composite: source-in; mask: var(--fade-x), var(--fade-y); mask-composite: intersect; }
.e-shot.bleed-l { --fade-x: linear-gradient(270deg, transparent, #000 16%); }
.e-shot img { position: absolute; left: 50%; top: 50%; will-change: transform; clip-path: var(--chamfer); }
.e-shot.zoom img { height: 88%; width: auto; transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1)); }

/* ---------- Targets: the Progress screen next to the words, its one-rep-max line carried out across the page ---------- */
.prog { position: relative; }
/* Shifted left so the phone sits close to the words (the box is wider than the phone). */
.prog .e-shot { z-index: 1; width: min(100%, 520px); margin-left: clamp(-120px, -7vw, -40px); --fade-x: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.prog-glow { position: absolute; z-index: 0; top: 0; bottom: 0; left: clamp(-120px, -7vw, -40px); width: min(100%, 520px); pointer-events: none;
  background: radial-gradient(42% 46% at 50% 50%, rgba(31,227,160,.22), rgba(31,227,160,0) 72%); }
/* Runs from the gap by the text, behind the phone, out to the screen edge. landing.js draws it in pixels and sets how much shows. */
/* Runs out past the column, but stops short of the screen edge: at most 150px out, and at least 80px in from the edge. */
.prog-line { position: absolute; top: 8%; bottom: 12%; left: -6%; pointer-events: none;
  right: max(-150px, calc(80px - max(0px, (100vw - 1360px) / 2) - var(--gutter))); }
.prog-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.prog-line .run { fill: none; stroke: var(--legs); stroke-width: 3; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: var(--off, 1); }
.prog-line .best { fill: none; stroke: rgba(31,227,160,.45); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: 0; transition: opacity .5s; }
.prog-line rect { fill: var(--legs); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.prog-line rect.top { fill: var(--bg); stroke: var(--legs); stroke-width: 3; }
.prog-line rect.on { opacity: 1; transform: none; }
.prog-best { position: absolute; z-index: 2; translate: -100% calc(-100% - 22px); font: 700 13px Ox; letter-spacing: .06em; color: var(--legs); white-space: nowrap;
  opacity: 0; transition: opacity .4s; }
.prog-line.done .best, .prog-line.done .prog-best { opacity: 1; }

/* ---------- Month: the Home screen, built live ---------- */
.month-vis { --m: #FF5CA8; justify-self: center; width: 100%; max-width: min(500px, 58svh); }
.m-app { font: 700 13px Ox; letter-spacing: .05em; color: var(--sub); margin-bottom: 4px; }
.m-name { font: 700 clamp(30px, 3vw, 46px) Ox; color: var(--m); margin-bottom: 12px; }
.m-stats { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: clamp(16px, 2vw, 24px); }
.m-stats > div { display: flex; flex-direction: column; padding: 12px 16px 14px; }
.m-stats span { font: 700 13px Ox; letter-spacing: .05em; }
.m-stats b { font: 700 clamp(36px, 4vw, 60px)/1 Ox; font-variant-numeric: tabular-nums; }
.m-vol { background: var(--m); color: var(--ink); }
.m-days { min-width: 6.5em; background: var(--surface); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.m-week, .m-grid, .m-nav { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.m-week { margin-bottom: 8px; }
.m-week span { text-align: center; font: 700 12px Ox; color: var(--sub); }
.m-grid i { aspect-ratio: 1; display: grid; place-items: center; font: 700 clamp(14px, 1.4vw, 22px) Ox; font-style: normal; background: var(--surface); }
.m-grid i.blank { background: none; }
.m-grid i.lift { background: var(--m); color: var(--ink); }
.m-grid i.today { background: #FFF5C8; color: var(--ink); }
.m-grid i.future { background: var(--surface2); color: #6F67C9; }
.m-grid.go i:not(.blank) { animation: cell .4s calc(var(--d) * 45ms) cubic-bezier(.3, 1.4, .5, 1) both; }
.m-grid.go i.lift { animation-name: cellLift; }
@keyframes cell { from { opacity: 0; transform: scale(.6); } }
@keyframes cellLift { 0% { opacity: 0; transform: scale(.6); background: var(--surface); color: #fff; } 60% { transform: scale(1.12); } }
.m-nav { margin-top: 22px; }
.m-nav span { aspect-ratio: 1; display: grid; place-items: center; font: 700 clamp(16px, 1.6vw, 22px) Ox; background: var(--surface); }
.m-nav span.off { background: var(--surface2); color: #4A40B8; }
.m-nav b { grid-column: 4 / 8; display: grid; place-items: center; background: var(--action); font: 700 clamp(14px, 1.3vw, 18px) Ox; letter-spacing: .04em;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px); }
.m-links { display: flex; justify-content: space-between; margin-top: 30px; font: 700 clamp(14px, 1.3vw, 18px) Ox; }

/* ---------- And the rest ---------- */
.caps { max-width: 1360px; margin: 0 auto; padding: clamp(50px, 9vh, 110px) var(--gutter); }
.caps h2 { font: 700 clamp(22px, 2vw, 30px) Ox; text-transform: uppercase; margin-bottom: 22px; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.grid li { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 30px; background: var(--surface2); }
.grid li::before { content: ""; width: 22px; height: 22px; margin-bottom: 16px; background: var(--c); clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); }
.grid b { font: 700 17px Ox; letter-spacing: .03em; text-transform: uppercase; }
.grid span { font: 500 15px/1.45 Ox; color: var(--sub); }

/* ---------- Closing: three screens in phone frames, spreading from the middle as the section comes up ---------- */
#outro { position: relative; min-height: 90svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px var(--gutter) 40px; }
#outro h2 { font: 700 clamp(56px, 8vw, 110px)/1 Ox; }
#outro .sub { margin: 10px 0 34px; font: 700 clamp(13px, 1.3vw, 16px) Ox; letter-spacing: .08em; color: var(--sub); text-transform: uppercase; }
/* --sp goes 0 → 1 with the scroll (landing.js). The side phones start hidden behind the middle one. */
.devices { position: relative; width: min(940px, 100%); height: clamp(420px, 64svh, 700px); margin-bottom: 40px; --ph: clamp(400px, 62svh, 680px); --dx: .5; }
.device { position: absolute; left: 50%; top: 50%; height: var(--ph); aspect-ratio: 1206 / 2622; padding: calc(var(--ph) * .018);
  border-radius: calc(var(--ph) * .085); background: #0B0920; box-shadow: 0 0 0 calc(var(--ph) * .004) #3A3470, 0 30px 60px rgba(5, 2, 40, .55); }
.device img { width: 100%; height: 100%; border-radius: calc(var(--ph) * .068); }
.device.c { z-index: 2; transform: translate(-50%, calc(-50% + (1 - var(--sp, 1)) * 60px)); }
.device.l { transform: translate(calc(-50% - var(--ph) * var(--dx) * var(--sp, 1)), calc(-50% + var(--ph) * .04 * var(--sp, 1)))
  rotate(calc(-8deg * var(--sp, 1))) scale(calc(1 - .14 * var(--sp, 1))); }
.device.r { transform: translate(calc(-50% + var(--ph) * var(--dx) * var(--sp, 1)), calc(-50% + var(--ph) * .04 * var(--sp, 1)))
  rotate(calc(8deg * var(--sp, 1))) scale(calc(1 - .14 * var(--sp, 1))); }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 var(--gutter) 24px; color: var(--sub); font-size: 14px; }
.foot ul { display: contents; list-style: none; }
.foot li { display: inline-flex; align-items: center; gap: 10px; }
.foot li + li::before { content: "·"; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }

/* ---------- Phones ---------- */
@media (max-width: 800px) {
  .top { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
  .brand { gap: 6px; }
  .brand .strong { height: 11px; }
  .topics { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 18px; }
  .tagline { font-size: 30px; }

  .row { grid-template-columns: 1fr; gap: 28px; padding: 56px var(--gutter); }
  .row.flip .vis { order: 0; }
  .bleed-l { margin-left: calc(-1 * var(--gutter)); }
  .copy h2 { font-size: 42px; }
  .lede { font-size: 17px; margin-bottom: 24px; }
  .points { gap: 18px; }

  .app-wrap { height: 120vw; max-height: 80svh; }
  .ra-time { font-size: 88px; }
  .ra-disc { width: 86%; align-self: center; }
  .pyr-c i { height: 72px; }
  .e-shot { height: 110vw; }
  .prog .e-shot, .prog-glow { width: 100%; margin-left: 0; left: 0; }
  .prog-line { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
  .prog-best { translate: calc(-100% + 11px) 20px; }
  .month-vis { max-width: none; }

  .grid { grid-template-columns: 1fr 1fr; }
  .grid li { padding: 22px 18px 24px; }

  #outro { padding-bottom: 30px; }
  .devices { --ph: min(130vw, 56svh); --dx: .3; height: calc(var(--ph) * 1.05); }
  .foot { margin-top: 14px; }
}

/* ---------- Reduce Motion: everything arrives in place; landing.js also stops the scroll-linked moves and the clip ---------- */
@media (prefers-reduced-motion: reduce) {
  .in { transition: opacity .3s; filter: none; transform: none; }
  .logo i, .hero-name, .tagline, .hero .store-badge, .scroll-cue, .scroll-cue .arw,
  .as-num.go span, .as-wells > i.hit, .as-foot b.press, .m-grid.go i,
  .ad-list li.hit, .ad-list .zn.hit, .ad-list li.done .ck, #adCount.hit { animation: none; }
  .ad-list li, .ad-list li > * { transition: none; }
  .pyr-c i { transform: none; transition: none; }
  .prog-line rect, .prog-line .best, .prog-best { transition: none; }
  .store-badge:hover { transform: none; }
}
