/* Homepage (web/index.html and web/da/index.html, built by scripts/web/build_home.py).
   Values mirror the app design. Scenes are pinned with sticky only on wide screens; phones and ?still
   get the same scenes driven by where the stage is on screen, never sticky (Safari's toolbar jumps). */
:root {
  --bg: #0E0E0E;
  --surface: #1A1A1A;
  --surface-2: #141414;
  --line: #262626;
  --chip: #2C2C2C;
  --text: #F4F3EF;
  --text-2: #A3A3A3;
  --text-3: #8E8E8E;
  --muted: #8E8E8B;
  --paper: #EFEEEA;
  --paper-edge: #A9A8A3;
  --paper-line: #D6D4CE;
  --ink: #0E0E0E;
  --ink-2: #4A4A4A;
  --orange: #FF6B00;
  --orange-edge: #A84700;
  --orange-deep: #B34B00;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, monospace;

  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.o { color: var(--orange); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Type ---------- */
.h2 { font: 700 clamp(34px, 2.6vw + 22px, 66px)/1 var(--display); font-stretch: 125%; letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: break-word; }
.h2 .sub { display: block; color: var(--text-3); }
.lede { color: var(--text-2); font-size: clamp(18px, 0.4vw + 14px, 21px); line-height: 1.45; text-wrap: balance; }
.fine { font-size: 14px; color: var(--text-3); text-wrap: balance; }
.block { padding: 160px 0; }

/* ---------- Buttons: the app's chunky orange key ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 30px; border: 0; border-radius: 16px; cursor: pointer;
  font: 700 17px/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; background: var(--orange); color: var(--ink); box-shadow: 0 4px 0 var(--orange-edge);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--orange-edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-edge); }
.btn.small { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--orange-edge); }
.cta-row { margin-top: 38px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(14, 14, 14, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom-color: #1C1C1C; }
.nav-inner { max-width: var(--max); margin: 0 auto; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font: 800 22px/1 var(--display); font-stretch: 125%; letter-spacing: -0.05em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav-links a:not(.btn):hover { color: var(--text); }

/* ---------- Device: a real screenshot (1206 × 2622) inside Apple's bezel ---------- */
.device { position: relative; aspect-ratio: 1350 / 2760; filter: drop-shadow(0 50px 70px rgba(0, 0, 0, .6)); }
.device-screen { position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%; border-radius: 13.7% / 6.3%; overflow: hidden; background: var(--bg); }
.device-screen > img { width: 100%; height: 100%; object-fit: cover; }
.device-bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- 1 · Hero ---------- */
.hero { position: relative; padding: 168px var(--gutter) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font: 760 min(clamp(38px, 4.4vw + 18px, 112px), 8.6vw)/0.96 var(--display); font-stretch: 125%; letter-spacing: -0.045em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hl { display: inline-block; background: var(--orange); color: var(--ink); padding: 0 .12em .02em; margin-left: .04em; border-radius: .12em; box-shadow: 0 .06em 0 var(--orange-edge); transform: rotate(-2.5deg); }
.hero .lede { margin-top: 30px; max-width: 46ch; }
.hero-stage { position: relative; width: 100%; max-width: 1040px; margin-top: 88px; display: flex; justify-content: center; }
.hero-phone { width: clamp(270px, 14vw + 140px, 350px); }
.float { position: absolute; z-index: 2; will-change: transform; }
.float > div { transform: rotate(var(--r)); }
.f1 { left: calc(50% - clamp(300px, 22vw + 70px, 420px)); top: 14%; --r: -6deg; }
.f2 { left: calc(50% + clamp(120px, 9vw + 40px, 205px)); top: 27%; --r: 4deg; }
.f3 { left: calc(50% - clamp(280px, 20vw + 60px, 380px)); top: 54%; --r: -3deg; }
.f4 { left: calc(50% + clamp(150px, 12vw + 40px, 250px)); top: 63%; --r: 5deg; }
.fc { padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.fc.dark { background: var(--surface); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.fc.light { background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--paper-edge), 0 30px 60px rgba(0, 0, 0, .45); }
.fc.orange { background: var(--orange); color: var(--ink); box-shadow: 0 4px 0 var(--orange-edge), 0 30px 60px rgba(0, 0, 0, .45); }
.fc .k { font: 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.fc.light .k { color: var(--ink-2); }
.fc .v { font: 750 28px/1 var(--display); font-stretch: 125%; letter-spacing: -0.02em; white-space: nowrap; }
.fc .tag { align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 6px 8px; border-radius: 8px; background: var(--orange); }
.fc .bar { height: 5px; border-radius: 3px; background: var(--orange-deep); }
.fc .bar i { display: block; height: 5px; width: 81%; border-radius: 3px; background: var(--ink); }
.fc.row { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.fc.row i { width: 24px; height: 24px; border-radius: 8px; background: var(--orange); display: grid; place-items: center; flex-shrink: 0; }

.js .enter { opacity: 0; transform: translateY(18px); animation: enter .9s var(--ease) forwards; animation-delay: var(--dl, 0s); }
.js .rise { opacity: 0; transform: translateY(90px); animation: enter 1.2s var(--ease) forwards; animation-delay: .35s; }
.js .pop > div { opacity: 0; animation: pop .8s var(--ease) forwards; animation-delay: var(--dl, .8s); }
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) rotate(0deg) scale(.94); } to { opacity: 1; transform: rotate(var(--r)); } }
html.still .enter, html.still .rise, html.still .pop > div { animation: none; opacity: 1; transform: none; }
html.still .pop > div { transform: rotate(var(--r)); }

/* ---------- Pinned scenes (wide screens only) ---------- */
.scene { position: relative; }
html.pinned .scene[data-pin] { height: var(--len); }
html.pinned .scene[data-pin] > .pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: clip; padding: 68px var(--gutter) 0; }
.scene > .pin { padding: 140px var(--gutter); display: flex; flex-direction: column; align-items: center; }

/* ---------- 2 · It's not you ---------- */
.guess, .engine { text-align: center; }
.guess .h2 { font-size: clamp(40px, 4vw + 20px, 104px); letter-spacing: -0.045em; }
.guess ul { list-style: none; margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 900px; text-align: center; }
.guess li { position: relative; font: 650 clamp(21px, 1.2vw + 14px, 34px)/1.2 var(--display); font-stretch: 115%; letter-spacing: -0.02em; color: var(--text); transition: color .5s var(--ease); text-wrap: balance; }
.guess li.note { font: 400 clamp(17px, .6vw + 13px, 22px)/1.4 var(--mono); color: #C9C9C9; padding: 12px 18px; border-radius: 14px; background: var(--surface); transform: rotate(-1.5deg); }
.guess li span { background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 55% / 0% .09em; transition: background-size .55s var(--ease); }
.guess li.note span { background-size: 0% 2px; }
.guess li.x { color: #474747; }
.guess li.x span { background-size: 100% .09em; }
.guess li.note.x span { background-size: 100% 2px; }
.guess .answer { margin-top: 56px; font: 760 clamp(40px, 4vw + 20px, 104px)/1 var(--display); font-stretch: 125%; letter-spacing: -0.045em; color: var(--orange); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); text-wrap: balance; }
.guess .answer.on { opacity: 1; transform: none; }
.guess .lede { margin-top: 26px; max-width: 40ch; opacity: 0; transition: opacity .6s var(--ease) .15s; }
.guess .lede.on { opacity: 1; }

/* ---------- 3 · The engine: one set at a time ---------- */
.engine .h2 { max-width: 16ch; }
.sets { position: relative; width: 100%; height: clamp(220px, 22vw, 300px); margin-top: 40px; }
.set { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
  opacity: 0; transform: translateY(50px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.set.on { opacity: 1; transform: none; }
.set.past { opacity: 0; transform: translateY(-50px); }
.set .big { font: 800 clamp(60px, 8.4vw + 10px, 176px)/.9 var(--display); font-stretch: 125%; letter-spacing: -0.05em; white-space: nowrap; }
.set .big .x { font-family: var(--body); font-stretch: 100%; color: var(--muted); font-weight: 300; font-size: .62em; vertical-align: .2em; margin: 0 .1em; }
.set p { font-size: clamp(18px, .5vw + 14px, 22px); color: var(--text-2); max-width: 34ch; text-wrap: balance; }
.set p b { color: var(--text); font-weight: 600; }
.bars { display: grid; grid-template-columns: repeat(4, 56px); align-items: end; gap: 8px; height: 120px; margin-top: 40px; }
.bars i { display: block; border-radius: 8px 8px 4px 4px; background: var(--chip); height: calc(var(--h) * 1%); transform-origin: bottom; transform: scaleY(.12); transition: transform .6s var(--ease), background .4s; }
.bars i.on { transform: none; }
.bars i.now { background: var(--orange); }
html:not(.pinned) .sets { height: auto; display: flex; flex-direction: column; gap: 64px; }
html:not(.pinned) .set { position: relative; }
html:not(.pinned) .set.past { opacity: 1; transform: none; }

/* ---------- 4 · In the gym ---------- */
.gym { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.gym .lede { margin-top: 22px; max-width: 40ch; }
.gym-stage { position: relative; margin-top: 72px; --pw: 320px; width: var(--pw); }
.gym-stage .device { width: 100%; }
.dot { position: absolute; z-index: 3; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--orange); color: var(--ink);
  font: 700 13px/26px var(--display); font-stretch: 125%; text-align: center; box-shadow: 0 0 0 6px rgba(255, 107, 0, .25); opacity: 0; transform: scale(.4); transition: opacity .4s var(--ease), transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.lbl { position: absolute; z-index: 2; top: calc(var(--y) * 1%); display: flex; align-items: center; transform: translateY(-50%); opacity: 0; transition: opacity .5s var(--ease); }
.lbl span { padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--paper-edge); font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; width: max-content; max-width: 210px; }
.lbl i { display: block; height: 2px; background: var(--orange); transform-origin: var(--from); transform: scaleX(0); transition: transform .6s var(--ease) .1s; }
.lbl.l { right: calc(100% - var(--x) * 1%); --from: right; }
.lbl.l i { width: calc(var(--x) / 100 * var(--pw) + 40px); }
.lbl.r { left: calc(var(--x) * 1%); flex-direction: row-reverse; --from: left; }
.lbl.r i { width: calc((100 - var(--x)) / 100 * var(--pw) + 40px); }
.on > .dot, .dot.on { opacity: 1; transform: none; }
.lbl.on { opacity: 1; }
.lbl.on i { transform: none; }
.gym-list { display: none; }

/* ---------- 5 · The coach ---------- */
.coach-stage { display: grid; grid-template-columns: auto minmax(0, 460px); grid-template-areas: "phone head" "phone steps"; justify-content: center; align-content: center; column-gap: clamp(48px, 7vw, 120px); row-gap: 40px; width: min(1080px, 100%); }
.coach-head { grid-area: head; align-self: end; }
.coach-head .h2 { font-size: clamp(32px, 1.6vw + 22px, 54px); }
.coach-head .lede { margin-top: 22px; max-width: 40ch; }
.coach-phone { grid-area: phone; align-self: center; width: clamp(260px, 10vw + 170px, 330px); }
html.pinned .coach-phone { width: min(330px, calc((100svh - 120px) / 2.044)); }
.coach-steps { grid-area: steps; align-self: start; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--muted); transition: color .4s var(--ease); font: 650 clamp(17px, .4vw + 13px, 20px)/1.25 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.steps li b { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--text-3); font: 800 15px/1 var(--display); font-stretch: 125%; transition: background .4s, color .4s; }
.steps li.on { color: var(--text); }
.steps li.on b { background: var(--orange); color: var(--ink); }
.coach .after { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* The coach tab, drawn at 390 × 844 like the app and scaled into the bezel */
.app { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(var(--s, .7)); transform-origin: 0 0; text-align: left;
  background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.35; overflow: hidden; }
.app .sb { height: 54px; padding: 19px 30px 0 40px; display: flex; justify-content: space-between; font: 600 16px/1 var(--body); }
.app .sb-r { display: flex; gap: 6px; align-items: center; }
.app .top { padding: 10px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.app .top h3 { font: 700 38px/1 var(--display); font-stretch: 125%; letter-spacing: -0.03em; }
.app .top p { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.app .more { width: 34px; height: 34px; border-radius: 17px; background: var(--surface); display: grid; place-items: center; }
.app .thread { position: absolute; left: 20px; right: 20px; top: 132px; bottom: 164px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.app .empty { position: absolute; left: 20px; right: 20px; top: 132px; display: flex; flex-direction: column; gap: 10px; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.app .empty.gone { opacity: 0; transform: translateY(-16px); }
.app .intro { padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--paper-edge); display: flex; flex-direction: column; gap: 8px; }
.app .intro i { width: 36px; height: 36px; border-radius: 10px; background: var(--orange); display: grid; place-items: center; }
.app .intro b { font: 700 19px/1.1 var(--display); font-stretch: 125%; letter-spacing: -0.02em; }
.app .intro span { font-size: 13px; color: var(--ink-2); }
.app .sug { padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; transition: background .3s; }
.app .sug.pick { background: var(--chip); }
.app .msg { max-width: 300px; padding: 11px 14px; font-size: 15px; line-height: 1.4; border-radius: 18px; }
.app .msg.u { align-self: flex-end; background: var(--paper); color: var(--ink); border-bottom-right-radius: 4px; }
.app .msg.c { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; }
.app .typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.app .typing i { width: 7px; height: 7px; border-radius: 4px; background: var(--text-3); opacity: .5; }
.app .typing i:nth-child(2) { opacity: .75; }
.app .typing i:nth-child(3) { opacity: 1; }
.app .prop { align-self: flex-start; width: 320px; padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--paper-edge); display: flex; flex-direction: column; gap: 10px; }
.app .prop .k { font: 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.app .prop b { font: 650 16px/1.2 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.app .prop ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.app .prop li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
.app .prop .act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app .prop .act span { height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.app .prop .yes { background: var(--orange); box-shadow: 0 3px 0 var(--orange-edge); }
.app .prop .no { background: var(--paper-line); font-weight: 600 !important; }
.app .prop .ok { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--orange-edge); }
.app .prop.approved .act { display: none; }
.app .prop.approved .ok { display: flex; }
.app .prop.press .yes { transform: translateY(3px); box-shadow: 0 0 0 var(--orange-edge); }
.app .note { position: absolute; left: 20px; right: 20px; bottom: 140px; font-size: 11px; color: var(--muted); text-align: center; }
.app .input { position: absolute; left: 20px; right: 20px; bottom: 94px; display: flex; gap: 8px; }
.app .input span { flex: 1; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 14px; display: flex; align-items: center; }
.app .input i { width: 40px; height: 40px; border-radius: 20px; background: var(--chip); display: grid; place-items: center; }
.app .tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; padding: 10px 14px 0; background: #060606; border-top: 1px solid #1F1F1F; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); color: var(--muted); }
.app .tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; }
.app .tabs .on { color: var(--orange); }
.app [data-at] { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.app [data-at].on { opacity: 1; transform: none; }
.app [data-at].hide { display: none; }

/* ---------- 6 · Rating ---------- */
.rating { text-align: center; }
.rating .h2 { max-width: 18ch; font-size: clamp(36px, 3.2vw + 20px, 84px); }
.rating .num { color: var(--orange); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rating .lede { margin-top: 24px; max-width: 46ch; }
.fan { position: relative; margin: 80px auto 0; width: min(640px, 100%); height: clamp(520px, 40vw + 200px, 700px); }
.fan .device { position: absolute; top: 0; width: clamp(240px, 12vw + 150px, 330px); transition: transform .1s linear; }
.fan .back { left: 50%; margin-left: calc(clamp(240px, 12vw + 150px, 330px) / -2); transform: translateX(calc(var(--f, 1) * 34%)) rotate(calc(var(--f, 1) * 7deg)) translateY(calc(var(--f, 1) * 30px)); }
.fan .front { left: 50%; margin-left: calc(clamp(240px, 12vw + 150px, 330px) / -2); transform: translateX(calc(var(--f, 1) * -34%)) rotate(calc(var(--f, 1) * -5deg)); z-index: 2; }
.rating .fine { margin-top: 20px; }

/* ---------- 7 · Your week ---------- */
.week-sec { text-align: center; }
.week-sec .lede { margin: 22px auto 0; max-width: 46ch; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; width: min(1080px, 100%); margin: 56px auto 0; }
.day { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 10px; border-radius: 18px; background: var(--surface-2); }
.day > b { font: 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); font-weight: 400; padding: 4px 4px 6px; text-align: left; }
.blk { padding: 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; opacity: 0; transform: translateY(-40px) rotate(-3deg); transition: opacity .5s var(--ease), transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.blk b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.blk span { font-size: 12px; line-height: 1.25; }
.blk.sport { background: #242424; }
.blk.sport span { color: var(--text-3); }
.blk.gym { background: var(--orange); color: var(--ink); box-shadow: 0 4px 0 var(--orange-edge); }
.blk.gym span { color: #3A1A00; }
.blk.rest { border: 1.5px dashed #4A4A4A; color: var(--text-3); }
.blk.rest b { color: var(--text-2); }
.blk.on { opacity: 1; transform: none; }
.pair { margin: 96px auto 0; display: flex; justify-content: center; gap: clamp(28px, 6vw, 96px); flex-wrap: wrap; }
.pair figure { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pair .device { width: clamp(240px, 8vw + 180px, 300px); }
.pair figcaption { font: 650 clamp(18px, .5vw + 14px, 22px)/1.25 var(--display); font-stretch: 112%; max-width: 18ch; text-wrap: balance; }
.week-sec .fine { margin-top: 40px; }

/* ---------- 8 · Exercise library ---------- */
.library { text-align: center; overflow: hidden; }
.library .lede { margin: 22px auto 0; max-width: 44ch; }
.rows { margin-top: 64px; display: flex; flex-direction: column; gap: 14px; }
.lane { display: flex; gap: 14px; width: max-content; will-change: transform; }
.lane.a { transform: translateX(calc(var(--g, .5) * -40%)); }
.lane.b { transform: translateX(calc((var(--g, .5) - 1) * 40%)); }
.lib-card { width: 180px; flex-shrink: 0; display: grid; gap: 4px; padding: 14px 14px 16px; border-radius: 18px; background: var(--surface); text-align: left; transition: background .2s; }
.lib-card:hover { background: var(--chip); }
.lib-fig { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 8px; border-radius: 12px; background: radial-gradient(circle at 50% 60%, #242424 0, var(--surface) 70%); }
.lib-fig img { position: absolute; inset: 7%; width: 86%; height: 86%; max-width: none; object-fit: contain; }
.lib-card b { font: 700 15px/1.2 var(--display); font-stretch: 105%; }
.lib-card > span:last-child { font-size: 13px; color: var(--text-3); }
.lib-more { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.lib-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 15px; color: var(--text-2); }
.lib-links a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.lib-links a:hover { color: var(--text); }

/* ---------- 9 · Closing ---------- */
.closing { padding: 150px 0 120px; text-align: center; }
.closing .icon { width: 88px; height: 88px; margin: 0 auto 40px; border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px #262626; }
.closing .h2 { font-size: clamp(42px, 4vw + 20px, 104px); letter-spacing: -0.045em; line-height: .96; }
.closing .lede { margin-top: 26px; }
.signup { margin: 44px auto 0; display: flex; gap: 10px; width: min(520px, 100%); }
.signup input { flex: 1; min-width: 0; height: 58px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); font: 17px var(--body); box-shadow: inset 0 0 0 1.5px #262626; }
.signup input::placeholder { color: var(--muted); }
.signup input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--orange); }
.done { display: none; margin: 44px auto 0; width: min(520px, 100%); padding: 22px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--paper-edge); text-align: left; gap: 14px; align-items: center; }
.done i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--orange); display: grid; place-items: center; }
.done b { display: block; font: 700 18px/1.2 var(--display); font-stretch: 125%; }
.done span { font-size: 14px; color: var(--ink-2); }
.wl-msg { min-height: 1.4em; margin: 14px auto 0; font-size: 14px; color: #FF8A3D; }
.signed .signup, .signed .wl-msg { display: none; }
.signed .done { display: flex; }
.closing .fine { margin-top: 16px; }

footer { border-top: 1px solid #1C1C1C; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px var(--gutter); max-width: var(--max); margin: 0 auto; font-size: 14px; color: var(--text-3); }
.foot nav { display: flex; gap: 22px; }
.foot a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Still: reduced motion or ?still shows every scene in its end state ---------- */
html.still .reveal, html.still .blk, html.still .guess .answer, html.still .guess .lede { opacity: 1; transform: none; transition: none; }
html.still .guess li { color: #474747; transition: none; }
html.still .guess li span { background-size: 100% .09em; transition: none; }
html.still .guess li.note span { background-size: 100% 2px; }
html.still .bars i { transform: none; transition: none; }
html.still .dot, html.still .lbl, html.still .lbl i { opacity: 1; transform: none; transition: none; }
html.still .lbl { transform: translateY(-50%); }
html.still .fan .device { transition: none; }
html.still .app [data-at], html.still .steps li { transition: none; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 960px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { height: 60px; }
  .hero { padding-top: 126px; }
  .hero-stage { margin-top: 64px; }
  .hero-phone { width: min(250px, 62vw); }
  .fc { padding: 11px 13px; border-radius: 14px; gap: 6px; }
  .fc .v { font-size: 19px; }
  .fc .k { font-size: 9px; }
  .f1, .f4 { display: none; }
  .f2 { left: auto; right: -6px; top: 36%; }
  .f3 { left: -6px; top: 62%; }
  .block { padding: 110px 0; }
  .scene > .pin { padding: 110px var(--gutter); }

  .gym-stage { --pw: min(270px, 66vw); margin-top: 56px; }
  .lbl { display: none; }
  .gym-list { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; list-style: none; text-align: left; width: min(420px, 100%); }
  .gym-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 16px; font-weight: 600; }
  .gym-list b { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 700 13px/26px var(--display); font-stretch: 125%; text-align: center; }

  .coach-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "phone" "steps"; justify-items: center; row-gap: 48px; text-align: center; }
  .coach-head .lede { margin-left: auto; margin-right: auto; }
  .coach-phone { width: min(290px, 74vw); }
  .coach-steps { width: min(420px, 100%); }
  .coach .after { align-items: center; }

  .fan { height: auto; aspect-ratio: 1 / 1.45; width: min(420px, 100%); margin-top: 56px; }
  .fan .device { width: 58%; }
  .fan .back, .fan .front { margin-left: -29%; }

  .week { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 40px; width: min(460px, 100%); }
  .day { flex-direction: row; align-items: stretch; min-height: 0; padding: 6px; gap: 6px; }
  .day > b { width: 46px; flex-shrink: 0; padding: 0; align-self: center; text-align: center; }
  .blk { flex: 1; padding: 10px 12px; transform: translateX(30px); }
  .pair { margin-top: 64px; gap: 48px; }
  .pair .device { width: min(250px, 64vw); }

  .lib-card { width: 150px; padding: 12px 12px 14px; }
  .signup { flex-direction: column; }
  .signup input { flex: none; width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .fc .v { font-size: 17px; }
  .bars { grid-template-columns: repeat(4, 44px); }
}
