/* zwoTrainer site — shares the app's tokens: pure black / pure white, cyan accent, Zwift zone colours */
:root {
  --bg: #ffffff;
  --bg-2: #f5f6f7;
  --card: #ffffff;
  --line: #e6e8eb;
  --line-2: #d5d9de;
  --text: #0b0c0d;
  --muted: #5b6168;
  --faint: #8a9097;
  --accent: #00a3c4;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 163, 196, .10);
  --z1: #7f7f7f; --z2: #338cff; --z3: #59bf59; --z4: #ffcc3f; --z5: #ff6639;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 20px 50px -20px rgba(10, 20, 30, .28);
  --radius: 18px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --w: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #0b0c0d; --card: #0e0f10; --line: #1d1f22; --line-2: #2a2d31;
    --text: #f4f5f6; --muted: #a2a8af; --faint: #6d737a;
    --accent: #1cc4e6; --accent-ink: #001014; --accent-soft: rgba(28, 196, 230, .12);
    --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -30px rgba(28, 196, 230, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #0b0c0d; --card: #0e0f10; --line: #1d1f22; --line-2: #2a2d31;
  --text: #f4f5f6; --muted: #a2a8af; --faint: #6d737a;
  --accent: #1cc4e6; --accent-ink: #001014; --accent-soft: rgba(28, 196, 230, .12);
  --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -30px rgba(28, 196, 230, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--display); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* screenshots follow the site theme */
.sl { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sd { display: none; } :root:not([data-theme="dark"]) .sl { display: block; } }
:root[data-theme="light"] .sd { display: none; }
:root[data-theme="light"] .sl { display: block; }

/* inverse shots: show the other theme on purpose */
.inv .sd { display: none; } .inv .sl { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .inv .sd { display: block; } :root:not([data-theme="dark"]) .inv .sl { display: none; } }
:root[data-theme="light"] .inv .sd { display: block; }
:root[data-theme="light"] .inv .sl { display: none; }
.caption { margin-top: 12px; font: 500 13px/1.4 var(--mono); color: var(--faint); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.nav-links .btn { margin-left: 8px; }
.nav-links a.ico { width: 38px; height: 38px; padding: 0; justify-content: center; }
.nav-links a.ico svg { width: 18px; height: 18px; flex: none; }
.theme-btn { background: none; border: 1px solid var(--line-2); color: var(--muted); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--text); }
.theme-btn svg { width: 18px; height: 18px; }
/* the sister-app link needs room: text link from 900 px, then only in the footer */
@media (max-width: 900px) { .nav-links .sibling { display: none; } }
@media (max-width: 720px) {
  .nav .wrap { gap: 10px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.btn) { padding: 8px 6px; font-size: 14px; }
  .nav-links a.ico { width: 32px; height: 32px; padding: 0; }
  .theme-btn { width: 34px; height: 34px; margin-left: 2px; }
  .nav-links .btn { display: none; }
}
@media (max-width: 400px) {
  .nav .wrap { gap: 6px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .nav-links a:not(.btn) { padding: 8px 5px; }
  .nav-links a.ico { width: 30px; }
}
/* smallest phones: GitHub stays in the footer */
@media (max-width: 350px) { .nav-links .gh { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--display); padding: 15px 22px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text); background: var(--card); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn.sm { padding: 10px 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- type ---------- */
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
.display { font-stretch: 112%; font-weight: 800; line-height: .98; }
h1.display { font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -.035em; }
h2.display { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.03em; }
h3 { font-size: 22px; font-weight: 700; font-stretch: 105%; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }
.hl { color: var(--accent); }

/* zone ribbon — the logo's stepped blocks */
.zones { display: inline-flex; gap: 4px; align-items: flex-end; }
.zones i { width: 8px; border-radius: 2px; display: block; }
.zones i:nth-child(1) { height: 8px; background: var(--z1); }
.zones i:nth-child(2) { height: 12px; background: var(--z2); }
.zones i:nth-child(3) { height: 16px; background: var(--z3); }
.zones i:nth-child(4) { height: 20px; background: var(--z4); }
.zones i:nth-child(5) { height: 24px; background: var(--z5); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 80% 10%, var(--accent-soft), transparent 70%),
  radial-gradient(40% 40% at 0% 30%, color-mix(in srgb, var(--z2) 10%, transparent), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { margin: 22px 0 22px; max-width: 13ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--faint); font-family: var(--mono); }
.hero-shot { position: relative; margin-top: clamp(48px, 7vw, 84px); }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--card); }
.frame .bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.hero-shot .frame { transform: perspective(2200px) rotateX(6deg); transform-origin: 50% 0; margin-bottom: -60px; }
.steps-bg { position: absolute; left: -2%; right: -2%; bottom: 20%; height: 70%; display: flex; align-items: flex-end; gap: 1.2%; opacity: .16; filter: blur(.3px); z-index: -1; }
.steps-bg i { flex: 1; border-radius: 6px 6px 0 0; }

/* ---------- stat strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div { padding: 28px 20px; border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: block; font: 700 clamp(20px, 2vw, 26px)/1.15 var(--display); font-stretch: 110%; letter-spacing: -.02em; }
.strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { border-left: 0; padding-left: 0; } .strip div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- sections ---------- */
section.block { padding: clamp(72px, 10vw, 130px) 0; }
section.block.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2 { margin: 16px 0 16px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile .k { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile .thumb { margin-top: auto; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.tile .thumb img { width: 175%; max-width: none; }
.tile .thumb.c img { margin-left: -38%; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 11vw, 140px); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.feature h2 { margin: 14px 0 18px; }
.feature .copy > p { color: var(--muted); margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--z2) 0 33%, var(--z3) 33% 66%, var(--z4) 66%); }
.ticks li b { font-weight: 650; }
.shot-stack { position: relative; }
.shot-stack .over { position: absolute; width: 58%; right: -4%; bottom: -14%; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .shot-stack .over { position: relative; width: 80%; right: auto; bottom: auto; margin: -18% 0 0 auto; }
}

/* zone legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1 var(--mono); color: var(--muted); }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* dialogs cropped from the app */
.dialog-shot { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.duo { display: grid; grid-template-columns: 1fr .8fr; gap: 18px; align-items: start; }
.duo > :last-child { margin-top: 70px; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } .duo > :last-child { margin-top: 0; width: 80%; margin-left: auto; } }

/* download: devices menu next to the home screen */
.gs-shots { display: grid; grid-template-columns: 1fr 2.6fr; gap: 18px; align-items: start; margin-top: 56px; }
@media (max-width: 760px) { .gs-shots { grid-template-columns: 1fr; } .gs-shots .dialog-shot { max-width: 340px; } }
.tile .thumb.mid img { margin-left: -45%; }

/* compatibility grid */
.compat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compat > div { background: var(--card); padding: 26px; }
.compat h3 { font-size: 18px; margin-bottom: 10px; }
.compat p { margin: 0; color: var(--muted); font-size: 15px; }
.compat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.compat .ic svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .compat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .compat { grid-template-columns: 1fr; } }

/* honesty block */
.nots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.nots span { padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 15px; text-decoration: line-through; text-decoration-color: var(--z5); text-decoration-thickness: 2px; }

/* big CTA */
.final { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 90px); background: #000; color: #f4f5f6; border: 1px solid #1d1f22; }
.final .bars { position: absolute; right: 3%; bottom: 0; width: 44%; height: 86%; display: flex; align-items: flex-end; gap: 6px; opacity: .85; }
.final .bars i { flex: 1; border-radius: 6px 6px 0 0; }
.final .copy { position: relative; max-width: 560px; }
.final h2 { margin: 14px 0 16px; }
.final p { color: #a2a8af; margin: 0 0 30px; }
.final .btn.primary { background: #1cc4e6; border-color: #1cc4e6; color: #001014; }
.final .btn:not(.primary) { background: transparent; color: #f4f5f6; border-color: #2a2d31; }
@media (max-width: 980px) { .final .bars { width: 94%; opacity: .2; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 90% 0%, var(--accent-soft), transparent 70%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); margin: 18px 0 18px; max-width: 16ch; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--text); }

.deep { padding: clamp(64px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.deep .grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 64px); }
.deep .side h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 14px; }
.deep .side p { color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--card); }
.card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .deep .grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

table.keys { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
table.keys td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.keys td:first-child { width: 42%; padding-right: 16px; }
kbd { font: 500 13px/1 var(--mono); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg-2); white-space: nowrap; }

/* download */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plat { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.plat.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plat .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.plat .ic svg { width: 24px; height: 24px; }
.plat h3 { font-size: 24px; }
.plat .files { font: 13px/1.7 var(--mono); color: var(--muted); margin: 0; padding: 0; list-style: none; }
.plat .btn { margin-top: auto; justify-content: center; }
.plat .tag { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

.howto { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.howto li { list-style: none; counter-increment: s; border-top: 3px solid var(--c, var(--accent)); padding-top: 18px; }
.howto li::before { content: "0" counter(s); font: 600 13px/1 var(--mono); color: var(--faint); display: block; margin-bottom: 12px; }
.howto h4 { margin: 0 0 6px; font-size: 18px; }
.howto p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .howto { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .howto { grid-template-columns: 1fr; } }

details.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 12px 0 0; max-width: 75ch; }

code { font: 14px var(--mono); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }

/* ---------- motion ----------
   Same language as the app (DESIGN.md → Motion): 150–500 ms, curve cubic-bezier(.2, .8, .2, 1),
   one play per change, nothing loops except the coffee fuel bar. All of it is off under Reduce motion.
   --i (set in site.js) is an element's place in its group, for staggered entries. */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }
/* reveal on scroll: a short rise, groups of tiles follow one another */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
/* hover and press, like the app: 150 ms, buttons press to 98 % */
.nav-links a, .toc a, footer a, .legend span, .theme-btn { transition: color .15s, background-color .15s, border-color .15s; }
.btn { transition: transform .15s var(--ease), background-color .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn svg:last-child:not(:first-child) { transition: transform .15s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.tile { transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.tile:hover { box-shadow: var(--shadow); }
.tile .thumb img { transition: transform .5s var(--ease); }
.tile:hover .thumb img { transform: translateY(-2%); }
.compat .ic { transition: transform .2s var(--ease); }
.compat > div:hover .ic { transform: translateY(-2px); }
/* theme switch: colours cross-fade instead of snapping */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .25s, border-color .25s, color .25s, fill .25s !important; }

@media (prefers-reduced-motion: no-preference) {
  /* page load: the zone pips grow, the .zwo highlight gets the segment-change sweep,
     the workout bars rise from the baseline and the app window settles into its tilt */
  .zones i { transform-origin: 50% 100%; animation: mo-grow .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + .1s); }
  .hl { position: relative; display: inline-block; }
  .hero .hl { clip-path: inset(0 round 6px); }
  .hero .hl::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent) 30%, transparent) 45%, color-mix(in srgb, var(--accent) 30%, transparent) 55%, transparent 100%);
    animation: mo-sweep .6s .55s cubic-bezier(.3, .6, .2, 1); }
  .hero h1, .page-hero h1 { animation: mo-view .4s var(--ease) both; }
  .hero .lead, .page-hero .lead { animation: mo-view .4s .06s var(--ease) both; }
  .hero .cta, .hero .note, .page-hero .toc { animation: mo-view .4s .12s var(--ease) both; }
  .steps-bg i { transform-origin: 50% 100%; animation: mo-bar .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms + .2s); }
  .hero-shot .frame { animation: mo-pop .7s .25s var(--ease) both; }
  .strip .wrap > div { animation: mo-settle .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + .45s); }
  .toc a { animation: mo-settle .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms + .2s); }

  /* inside a revealed block, lists settle in one after another (like the app's workout list);
     the compat grid animates its cells' contents so the grid lines never show through */
  .rv.in .ticks li, .rv.in .cards .card, .rv.in .legend span, .rv.in .nots span, .compat.in > div > *, .howto.in li {
    animation: mo-settle .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + .15s); }
  /* struck-through "left out" items: the line is drawn after they land */
  .rv.in .nots span { text-decoration-color: transparent; animation-name: mo-settle, mo-strike; animation-duration: .3s, .35s;
    animation-delay: calc(var(--i, 0) * 50ms + .15s), calc(var(--i, 0) * 50ms + .45s); }
  /* the CTA's workout and the download steps' zone lines grow when they come into view */
  .final.in .bars i { transform-origin: 50% 100%; animation: mo-bar .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms + .2s); }
  .howto.in li { border-top-color: transparent; background: linear-gradient(var(--c, var(--accent)), var(--c, var(--accent))) 0 0 / 0 3px no-repeat;
    background-origin: border-box;
    animation-name: mo-settle, mo-line; animation-duration: .3s, .5s; animation-fill-mode: both, forwards; }
  /* the recommended download gets one soft accent glow, like the gauge on target */
  .plat.featured.in { animation: mo-glow 1.4s .5s ease-out; }
  /* FAQ answers fade in when opened; theme icon turns in */
  details.faq[open] p { animation: mo-view .22s ease-out; }
  .theme-btn.swap svg { animation: mo-turn .3s var(--ease); }
}
@keyframes mo-grow { from { transform: scaleY(0); } }
@keyframes mo-bar { from { transform: scaleY(0); } }
@keyframes mo-sweep { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes mo-view { from { opacity: 0; transform: translateY(6px); } }
@keyframes mo-settle { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes mo-pop { from { opacity: 0; translate: 0 24px; } }
@keyframes mo-strike { from { text-decoration-color: transparent; } to { text-decoration-color: var(--z5); } }
@keyframes mo-line { to { background-size: 100% 3px; } }
@keyframes mo-glow { 0% { box-shadow: 0 0 0 1px var(--accent) inset; } 35% { box-shadow: 0 0 0 1px var(--accent) inset, 0 0 0 6px var(--accent-soft), 0 18px 50px -20px var(--accent); } 100% { box-shadow: 0 0 0 1px var(--accent) inset; } }
@keyframes mo-turn { from { opacity: 0; transform: rotate(-60deg) scale(.7); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } .hero-shot .frame { transform: none; }
}

/* support / buy me a coffee */
.support { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: clamp(32px, 6vw, 72px); background:
  radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--z4) 16%, transparent), transparent 70%), var(--card); }
.support h2 { margin: 14px 0 18px; }
.support p { color: var(--muted); margin: 0 0 14px; max-width: 56ch; }
.support .small-note { font-size: 15px; color: var(--faint); }
.support-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.bmc { background: var(--z4); border-color: var(--z4); color: #1a1400; }
.btn.bmc:hover { background: color-mix(in srgb, var(--z4) 88%, #000); }
.support-art { display: grid; place-items: center; gap: 22px; }
.support-art .cup { font-size: clamp(72px, 10vw, 120px); line-height: 1; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--z4) 35%, transparent)); }
.fuel { width: min(280px, 100%); display: grid; gap: 8px; }
.fuel span { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fuel-bar { height: 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.fuel-bar i { display: block; height: 100%; width: 18%; border-radius: inherit; background: linear-gradient(90deg, var(--z5), var(--z4)); animation: fuel 3.2s ease-in-out infinite alternate; }
.fuel small { color: var(--z5); font-size: 12px; }
@keyframes fuel { to { width: 34%; } }
@media (prefers-reduced-motion: reduce) { .fuel-bar i { animation: none !important; } }
footer .bmc-link { color: var(--text); font-weight: 600; }
@media (max-width: 820px) { .support { grid-template-columns: 1fr; } .support-art { order: -1; justify-items: start; } }
