/* Intervals One — marketing site.
   Colours mirror the app's stage tokens: work green, rest coral, reset amber,
   rounds blue. Dark only, like the app. */

:root {
  color-scheme: dark;
  --page: #000;
  --card: #0e0e10;
  --card-raised: #151517;
  --hairline: rgba(255, 255, 255, .07);
  --hairline-strong: rgba(255, 255, 255, .2);
  --text: #fff;
  --text-2: rgba(255, 255, 255, .66);
  --text-3: rgba(255, 255, 255, .5);
  --work: #82e0aa;
  --work-hover: #a7ecc4;
  --logo-work: #4ade9b;
  --rest: #ec7063;
  --reset: #f8c471;
  --rounds: #85c1e9;
  --display: Archivo, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --max: 1120px;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* The hero glow and chips reach past the edge on purpose; clip them without
   making a scroll container, so iOS can't pan sideways and sticky still works. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--work); text-decoration: none; }
a:hover { color: var(--work-hover); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 96px; }

h1, h2, .display { font-family: var(--display); font-weight: 700; }

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.4px;
  line-height: 1.08;
  text-wrap: balance;
}

.lede {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
  text-wrap: pretty;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--work); color: #000;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--work); outline-offset: 3px; border-radius: 6px; }

/* ───────── Logo (the app icon, drawn in CSS) ───────── */

.logo {
  --s: 34px;
  width: var(--s); height: var(--s);
  border-radius: calc(var(--s) * .265);
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, .1);
  position: relative; overflow: hidden; flex: none;
}
.logo .ring {
  position: absolute; left: 50%; top: 54%;
  width: 68%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--logo-work) 0deg var(--sweep, 296deg), rgba(255, 255, 255, .2) var(--sweep, 296deg) 360deg);
  transform: translate(-50%, -50%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59.5%);
          mask: radial-gradient(circle, transparent 58%, #000 59.5%);
}
.logo .crown {
  position: absolute; left: 50%; top: 13%;
  width: 22%; height: 7%; border-radius: 99px;
  background: var(--logo-work); transform: translateX(-50%);
}
.logo .bars {
  position: absolute; left: 50%; top: 54%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: calc(var(--s) * .042);
}
.logo .bars i {
  display: block; width: calc(var(--s) * .069); border-radius: 99px;
  transform-origin: center;
}
.logo .bars i:nth-child(1) { height: calc(var(--s) * .2); background: var(--reset); }
.logo .bars i:nth-child(2) { height: calc(var(--s) * .354); background: var(--logo-work); }
.logo .bars i:nth-child(3) { height: calc(var(--s) * .131); background: var(--rest); }

.logo.live .bars i { animation: eq 1.6s var(--ease-out) infinite alternate; }
.logo.live .bars i:nth-child(2) { animation-delay: -.5s; }
.logo.live .bars i:nth-child(3) { animation-delay: -1s; }
.logo.live .ring { animation: sweep 1.4s var(--ease-out) both; }

@keyframes eq { 0% { transform: scaleY(1); } 50% { transform: scaleY(.55); } 100% { transform: scaleY(1.12); } }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 296deg; }
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 296deg; } }

/* ───────── Nav ───────── */

.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(0, 0, 0, .82); border-bottom-color: var(--hairline); }
.nav .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav-links a { color: var(--text-2); position: relative; transition: color .2s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--work); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ───────── Buttons ───────── */

.btn {
  height: 52px; padding: 0 26px; border-radius: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16.5px; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease-spring), background .2s ease, border-color .2s ease, box-shadow .3s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--work); color: #000; }
.btn-primary:hover { background: var(--work-hover); color: #000; transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(130, 224, 170, .55); }
.btn-ghost { border: 1px solid var(--hairline-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); color: var(--text); transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 18px; border-radius: 19px; font-size: 14.5px; }

.store-btn { height: 56px; padding: 0 22px 0 18px; border-radius: 16px; gap: 12px; }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 11.5px; font-weight: 500; opacity: .72; letter-spacing: .1px; }
.store-btn b { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.store-btn.soon { pointer-events: none; opacity: .55; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Hero ───────── */

.hero { position: relative; }
.hero .wrap {
  padding-top: 72px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.hero-copy { flex: 1 1 420px; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border-radius: 14px;
  border: 1px solid rgba(130, 224, 170, .3);
  font-size: 13px; color: var(--work); font-weight: 500;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--work); box-shadow: 0 0 0 0 rgba(130, 224, 170, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(130, 224, 170, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(130, 224, 170, 0); } }

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02; letter-spacing: -2px;
  text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--work); }
.hero p.lede { font-size: 18px; margin-top: 20px; max-width: 480px; }
.hero .stores { margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--text-3); }

.hero-visual {
  flex: 0 0 auto; margin: 0 auto; width: min(330px, 80vw);
  position: relative; perspective: 1200px;
}
.hero-glow {
  position: absolute; inset: -18% -30%;
  background: radial-gradient(closest-side, var(--glow, rgba(130, 224, 170, .28)), transparent 72%);
  filter: blur(20px); z-index: 0;
  transition: background 1.2s ease;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }

.phone {
  position: relative; z-index: 1;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(145deg, #2a2a2e, #0b0b0c 40%, #1b1b1e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -20px rgba(0, 0, 0, .9);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.phone-screen {
  position: relative; border-radius: 38px; overflow: hidden;
  aspect-ratio: 412 / 915; background: #000;
  container-type: inline-size;
}

/* ───────── Workout screen replica ─────────
   Mirrors WorkoutView.kt. Sizes are dp: --dp is one dp at a 412dp-wide phone. */

@property --bg1 { syntax: "<color>"; inherits: true; initial-value: #82e0aa; }
@property --bg2 { syntax: "<color>"; inherits: true; initial-value: #79d3a1; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #82e0aa; }

.app {
  --dp: calc(100cqw / 412);
  --ink: rgba(0, 0, 0, .6);   /* textColour */
  --track: rgba(0, 0, 0, .2); /* trackColour */
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(var(--bg1), var(--bg2));
  color: var(--ink);
  font-family: Inter, var(--body);
  font-feature-settings: "tnum";
  line-height: 1.21;
  user-select: none;
  isolation: isolate;
}
/* Stage colours with their gradient partners (Color.kt). data-bg changes once the wipe lands. */
.app[data-bg="prepare"], .app[data-bg="work"], .app-wash[data-bg="work"], .app-wash[data-bg="prepare"] { --bg1: #82e0aa; --bg2: #79d3a1; --fg: #82e0aa; }
.app[data-bg="warmup"], .app[data-bg="recovery"], .app-wash[data-bg="warmup"], .app-wash[data-bg="recovery"] { --bg1: #f8c471; --bg2: #ebba6c; --fg: #f8c471; }
.app[data-bg="rest"], .app-wash[data-bg="rest"] { --bg1: #ec7063; --bg2: #e26c61; --fg: #ec7063; }
.app[data-bg="cooldown"], .app-wash[data-bg="cooldown"] { --bg1: #85c1e9; --bg2: #81bbe3; --fg: #85c1e9; }
.app-wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bg1), var(--bg2)); clip-path: circle(0% at 50% 50%); }

.app-status {
  position: absolute; top: 0; left: 0; right: 0; height: calc(44 * var(--dp));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(26 * var(--dp));
  font-size: calc(14 * var(--dp)); font-weight: 500; color: rgba(0, 0, 0, .78);
}
.app-cam { position: absolute; left: 50%; top: calc(12 * var(--dp)); width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); border-radius: 50%; background: #0b0b0c; translate: -50% 0; }
.app-icons { display: flex; align-items: center; gap: calc(5 * var(--dp)); }
.app-icons svg { width: calc(14 * var(--dp)); height: calc(14 * var(--dp)); fill: rgba(0, 0, 0, .78); }
.app-batt { width: calc(9 * var(--dp)); height: calc(15 * var(--dp)); border-radius: calc(2 * var(--dp)); border: calc(1.4 * var(--dp)) solid rgba(0, 0, 0, .78); display: flex; align-items: flex-end; padding: calc(1.2 * var(--dp)); }
.app-batt i { display: block; width: 100%; height: 72%; border-radius: calc(.8 * var(--dp)); background: rgba(0, 0, 0, .78); }

.app-top { position: absolute; top: calc(69 * var(--dp)); left: calc(25 * var(--dp)); z-index: 1; }
.app-vol { display: grid; place-items: center; width: calc(30 * var(--dp)); height: calc(30 * var(--dp)); border-radius: 50%; background: var(--ink); color: var(--fg); }
.app-vol svg { width: calc(16 * var(--dp)); height: calc(16 * var(--dp)); }

.app-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: calc(44 * var(--dp)); }
.app-gap { flex: 1; }

.app-head { width: 100%; padding: calc(10 * var(--dp)) calc(30 * var(--dp)) 0; translate: 0 calc(4 * var(--dp)); display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--dp)); text-align: center; }
.app-next { font-size: calc(20 * var(--dp)); font-weight: 500; }
.app-next.hidden { color: transparent; }
.app-exercise { font-size: calc(35 * var(--dp)); font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }

.app-ring { position: relative; width: calc(352 * var(--dp)); aspect-ratio: 1; }
.app-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.app-ring circle { fill: none; stroke-width: 1.705; stroke-linecap: round; }
.app-track { stroke: var(--track); }
.app-prog { stroke: var(--ink); }
.app-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(5 * var(--dp)); }
.app-stage { font-size: calc(20 * var(--dp)); font-weight: 500; text-transform: uppercase; }
.app-time { font-size: calc(60 * var(--dp)); font-weight: 600; letter-spacing: -.01em; }
.app[data-stage="prepare"] .app-stage { display: none; }
.app[data-stage="prepare"] .app-time { font-size: calc(72 * var(--dp)); }

.app-details {
  position: relative; width: 100%; min-height: calc(48 * var(--dp)); padding: 0 calc(15 * var(--dp));
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
}
.app-detail { display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--dp)); }
.app-detail b { font-size: calc(22 * var(--dp)); font-weight: 500; }
.app-detail span { font-size: calc(16 * var(--dp)); }
.app-left { grid-column: 1; } .app-remain { grid-column: 2; } .app-right { grid-column: 3; }
.app-phase {
  grid-row: 1; justify-self: center; display: none; place-items: center;
  width: calc(76 * var(--dp)); height: calc(44 * var(--dp)); border-radius: calc(22 * var(--dp));
  background: rgba(0, 0, 0, .1); font-size: calc(16 * var(--dp)); font-weight: 600;
}
.app-minus { grid-column: 1; opacity: .3; }
.app-plus { grid-column: 3; }
.app:not([data-stage="work"]):not([data-stage="rest"]) .app-left,
.app:not([data-stage="work"]):not([data-stage="rest"]) .app-right { visibility: hidden; }
.app[data-stage="warmup"] .app-phase, .app[data-stage="cooldown"] .app-phase { display: grid; }
.app[data-stage="prepare"] .app-remain { color: transparent; }

.app-controls { width: 100%; display: flex; align-items: center; justify-content: space-evenly; padding-bottom: calc(10 * var(--dp)); }
.app-btn { display: grid; place-items: center; border-radius: 50%; }
.app-small { width: calc(50 * var(--dp)); height: calc(50 * var(--dp)); background: var(--track); color: var(--ink); }
.app-small svg { width: calc(20 * var(--dp)); height: calc(20 * var(--dp)); }
.app-big { width: calc(80 * var(--dp)); height: calc(80 * var(--dp)); background: var(--ink); color: var(--fg); }
.app-big svg { width: calc(28 * var(--dp)); height: calc(28 * var(--dp)); }
.app-nav { height: calc(24 * var(--dp)); display: grid; place-items: center; }
.app-nav i { display: block; width: calc(108 * var(--dp)); height: calc(4 * var(--dp)); border-radius: 99px; background: rgba(0, 0, 0, .45); }

/* A stage change nudges the text, the way a fresh stage lands in the app. */
.app.swap .app-head, .app.swap .app-ring-text { animation: app-swap .45s var(--ease-out); }
@keyframes app-swap { from { opacity: .2; transform: translateY(calc(6 * var(--dp))); } to { opacity: 1; transform: none; } }

.phase-chip {
  position: absolute; z-index: 2; left: -34px; bottom: 16%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(20, 20, 22, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
  animation: float 6s ease-in-out infinite;
}
.phase-chip svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.phase-chip .track { stroke: rgba(255, 255, 255, .14); }
.phase-chip .prog { stroke: var(--chip, var(--work)); transition: stroke .6s ease; }
.phase-chip .label { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--chip, var(--work)); transition: color .6s ease; }
.phase-chip .time { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }

.cue-chip {
  position: absolute; z-index: 2; right: -26px; top: 14%;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(20, 20, 22, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px; font-weight: 500; line-height: 1.3; max-width: 230px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
  animation: float 7s ease-in-out -2s infinite;
}
.cue-chip .wave { display: flex; gap: 2px; align-items: center; height: 16px; }
.cue-chip .wave i { width: 3px; border-radius: 2px; background: var(--work); animation: wave 1s ease-in-out infinite; }
.cue-chip .wave i:nth-child(1) { height: 6px; animation-delay: -.2s; }
.cue-chip .wave i:nth-child(2) { height: 14px; animation-delay: -.5s; }
.cue-chip .wave i:nth-child(3) { height: 9px; animation-delay: -.1s; }
.cue-chip .wave i:nth-child(4) { height: 12px; animation-delay: -.7s; }
.cue-chip .cue-text { transition: opacity .3s ease; }
.cue-chip { transition: opacity .4s ease, scale .4s var(--ease-out); }
.cue-chip.quiet { opacity: 0; scale: .92; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ───────── Session timeline ───────── */

.session {
  margin-top: 8px; padding: 22px 24px 20px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 22px;
}
.session-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.session-title { font-size: 14px; color: var(--text-3); }
.session-title b { color: var(--text); font-weight: 600; }
.session-now { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.session-now b { color: var(--now, var(--work)); font-weight: 600; transition: color .3s ease; }
.track-bar { position: relative; margin-top: 16px; display: flex; gap: 3px; height: 14px; }
.track-bar .seg { border-radius: 4px; opacity: .35; transition: opacity .35s ease, transform .35s var(--ease-out); }
.track-bar .seg.past { opacity: .9; }
.track-bar .seg.now { opacity: 1; transform: scaleY(1.35); }
.track-bar .seg.warmup, .track-bar .seg.recovery { background: var(--reset); }
.track-bar .seg.work { background: var(--work); }
.track-bar .seg.rest { background: var(--rest); }
.track-bar .seg.cooldown { background: var(--rounds); }
.playhead {
  position: absolute; top: -6px; bottom: -6px; width: 2px; left: 0;
  background: #fff; border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 255, 255, .7);
}
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; }

/* ───────── Stats strip ───────── */

.stats { display: flex; flex-wrap: wrap; gap: 3px; border-radius: 20px; overflow: hidden; margin-top: 14px; }
.stat { flex: 1 1 200px; background: var(--card); padding: 22px 24px; }
.stat .num { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat .cap { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }

/* ───────── Feature cards ───────── */

.features { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--hairline); border-radius: 24px; padding: 26px;
  transition: transform .45s var(--ease-out), border-color .3s ease, background .3s ease;
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(130, 224, 170, .09), transparent 45%);
  transition: opacity .4s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .13); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 18px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.card p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--work); vertical-align: middle;
  border: 1px solid rgba(130, 224, 170, .4); border-radius: 9px; padding: 2px 7px; margin-left: 4px;
  white-space: nowrap;
}

/* Little animated glyphs on each card. */
.glyph { height: 26px; display: flex; align-items: flex-end; gap: 4px; }
.g-bars i { display: block; width: 8px; border-radius: 4px; transform-origin: bottom; transition: transform .5s var(--ease-spring); }
.card:hover .g-bars i:nth-child(1) { transform: scaleY(.6); }
.card:hover .g-bars i:nth-child(2) { transform: scaleY(1.4); }
.card:hover .g-bars i:nth-child(3) { transform: scaleY(1.9); }

.g-voice { align-items: center; gap: 5px; }
.g-voice .ring { width: 26px; height: 26px; border-radius: 13px; border: 2px solid var(--work); position: relative; }
.g-voice .ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--work); opacity: 0; }
.card:hover .g-voice .ring::after { animation: ripple 1.2s ease-out infinite; }
.g-voice i { display: block; width: 12px; height: 3px; border-radius: 2px; transition: width .4s var(--ease-out); }
.card:hover .g-voice i:nth-of-type(1) { width: 18px; }
.card:hover .g-voice i:nth-of-type(2) { width: 6px; }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }

.g-toggle { align-items: center; }
.g-toggle .sw { width: 40px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .18); padding: 3px; display: flex; transition: background .35s ease; }
.g-toggle .sw i { display: block; width: 16px; height: 16px; border-radius: 8px; background: #fff; transition: transform .45s var(--ease-spring), background .35s ease; }
.g-toggle.on .sw { background: var(--work); }
.g-toggle.on .sw i { transform: translateX(18px); background: #000; }

.g-cal { display: grid; grid-template-columns: repeat(4, 7px); gap: 4px; align-content: center; }
.g-cal i { width: 7px; height: 7px; border-radius: 2px; background: rgba(255, 255, 255, .18); transition: background .3s ease, transform .3s var(--ease-spring); }
.g-cal i.hit { background: var(--work); }

.g-lines { flex-direction: column; justify-content: center; align-items: flex-start; }
.g-lines i { display: block; height: 4px; border-radius: 2px; transition: width .5s var(--ease-out); }

.g-tiles i { display: block; width: 26px; height: 26px; border-radius: 9px; transition: transform .45s var(--ease-spring); }
.card:hover .g-tiles i:nth-child(1) { transform: translateY(-4px) rotate(-6deg); }
.card:hover .g-tiles i:nth-child(2) { transform: translateY(-8px); transition-delay: .05s; }
.card:hover .g-tiles i:nth-child(3) { transform: translateY(-4px) rotate(6deg); transition-delay: .1s; }

.g-health { align-items: center; gap: 7px; }
.g-health svg { width: 26px; height: 26px; }
.card:hover .g-health svg { animation: beat 1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }

.g-play { align-items: center; gap: 7px; }
.g-play .box { width: 26px; height: 20px; border-radius: 6px; background: rgba(130, 224, 170, .25); display: flex; align-items: center; justify-content: center; transition: background .3s ease; }
.g-play .box::after { content: ""; border-left: 7px solid var(--work); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.card:hover .g-play .box { background: rgba(130, 224, 170, .45); }
.g-play .rows { display: flex; flex-direction: column; gap: 4px; }
.g-play .rows i { display: block; height: 4px; border-radius: 2px; }

/* ───────── Gallery ───────── */

.gallery-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.gallery-head .hint { font-size: 14px; color: var(--text-2); }
.gallery-controls { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 21px; border: 1px solid var(--hairline-strong);
  background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s ease, transform .25s var(--ease-spring), opacity .2s ease;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, .5); }
.icon-btn:active { transform: scale(.92); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn svg { width: 16px; height: 16px; }

.gallery {
  margin-top: 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 24px;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.gallery::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: start; margin: 0; }
.shot button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 24px; overflow: hidden; position: relative;
}
.shot img {
  width: 100%; height: auto; display: block; aspect-ratio: 1179 / 2556; object-fit: cover;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .6s var(--ease-out), filter .4s ease;
}
.shot button:hover img { transform: scale(1.035); }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.shot figcaption b { display: block; color: var(--text); font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
  padding: 24px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-height: 86vh; max-width: min(420px, 100%); width: auto; height: auto; border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  transform: scale(.92) translateY(20px); transition: transform .5s var(--ease-out);
}
.lightbox.open img { transform: none; }
.lightbox .close { position: absolute; top: 18px; right: 18px; }
.lightbox .prev, .lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 18px; }
.lightbox .next { right: 18px; }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--text-2); padding: 0 70px; }

/* ───────── Platforms ───────── */

.platforms { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.platform { background: var(--card); border: 1px solid var(--hairline); border-radius: 24px; padding: 26px; }
.platform-head { display: flex; align-items: center; gap: 12px; }
.platform-head svg { width: 22px; height: 22px; }
.platform-head h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.platform ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.platform li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.platform li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 3px; background: var(--work); }

/* ───────── Free vs Pro ───────── */

.plans { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); border-radius: 26px; padding: 30px; }
.plan-name { font-size: 14px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.plan-price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan-price .display { font-size: 38px; letter-spacing: -1.4px; white-space: nowrap; }
.plan-price small { font-size: 15px; color: var(--text-3); }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--dot, rgba(255, 255, 255, .4)); margin-top: 8px; flex: none; }
.plan li b { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.45; color: var(--text); }
.plan li span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.plan.free li { font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.plan ul { flex: 1; }
.plan .btn { margin-top: 28px; width: 100%; height: 48px; font-size: 16px; }
.plan-note { min-height: 4.35em; line-height: 1.45; margin-top: 12px; font-size: 13px; color: var(--text-3); text-align: center; text-wrap: pretty; }

.plan.pro { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--angle, 0deg), rgba(130, 224, 170, .2), rgba(130, 224, 170, .7), rgba(248, 196, 113, .5), rgba(130, 224, 170, .2) 60%, rgba(130, 224, 170, .2)) border-box; border: 1px solid transparent; animation: spin-border 8s linear infinite; }
.plan.pro .plan-name { color: var(--work); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --angle: 360deg; } }
.trial-badge {
  position: absolute; top: -11px; left: 30px; height: 22px; padding: 0 11px; border-radius: 11px;
  background: var(--work); color: #000; font-size: 12.5px; font-weight: 600; display: flex; align-items: center;
}

/* ───────── FAQ ───────── */

.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 3px; }
.faq details { background: var(--card); border-radius: 6px; transition: background .25s ease; }
.faq details:first-child { border-radius: 20px 20px 6px 6px; }
.faq details:last-child { border-radius: 6px 6px 20px 20px; }
.faq details:hover { background: var(--card-raised); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 24px;
  display: flex; gap: 16px; align-items: center;
  font-size: 17px; font-weight: 500; letter-spacing: -.2px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; }
.faq summary .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--work);
  transition: transform .4s var(--ease-out);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq details[open] summary .plus::before { transform: rotate(180deg); }
.faq .a { overflow: hidden; }
.faq .a p { margin: 0; padding: 0 24px 22px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 760px; text-wrap: pretty; }

/* ───────── CTA ───────── */

@property --stage { syntax: "<color>"; inherits: true; initial-value: #f8c471; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 30px;
  padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center;
  --stage: var(--reset);
  transition: --stage .8s ease;
}
.cta::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: 50%; width: 60%; aspect-ratio: 1;
  translate: 0 -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--stage) 18%, transparent), transparent);
  animation: breathe 6s ease-in-out infinite;
}
.cta-copy .display { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1.3px; line-height: 1.05; text-wrap: balance; }
.cta-copy p { margin: 12px 0 0; font-size: 16.5px; color: var(--text-2); max-width: 420px; text-wrap: pretty; }
.cta-actions { margin-top: 28px; }
.cta-timer { position: relative; width: 176px; height: 176px; }
.cta-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.cta-timer .track { stroke: rgba(255, 255, 255, .1); }
.cta-timer .prog { stroke: var(--stage); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--stage) 55%, transparent)); }
.cta-timer .t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cta-timer .t b { font-family: var(--display); font-size: 36px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; display: block; margin: 2px 0; }
.cta-timer .t small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .8px; color: var(--stage); text-transform: uppercase; }
.cta-timer .t .sub { display: block; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cta-timer.switch .t > div { animation: stage-in .5s var(--ease-out); }
.cta-timer.switch svg { animation: stage-pop .6s var(--ease-spring); }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stage-pop { 0% { scale: 1; } 35% { scale: 1.06; } 100% { scale: 1; } }

/* ───────── Footer ───────── */

footer { margin-top: 80px; border-top: 1px solid var(--hairline); }
.foot { padding-top: 40px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot-brand .brand { flex: none; display: inline-flex; }
.foot-legal { margin: 16px 0 0; font-size: 13.5px; color: var(--text-3); max-width: 340px; text-wrap: pretty; line-height: 1.55; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot-col b { margin-bottom: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.foot-col a { color: var(--text-2); width: fit-content; }
.foot-col a:hover { color: var(--text); }

/* ───────── Legal pages ───────── */

.legal-hero { padding-top: 56px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-2); }
.legal-back:hover { color: var(--text); }
.legal-back svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.legal-back:hover svg { transform: translateX(-3px); }
.legal-hero h1 { margin: 22px 0 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.04; letter-spacing: -1.6px; text-wrap: balance; }
.legal-updated { margin: 12px 0 0; font-size: 15px; color: var(--text-3); }

.legal-layout { margin-top: 44px; display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 92px; }
.legal-toc-title { font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.legal-toc ol { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--hairline); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--text-2); transition: color .2s ease, border-color .2s ease; }
.legal-toc a:hover { color: var(--text); }
.legal-toc a.active { color: var(--work); border-left-color: var(--work); }

.prose { font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 48px 0 12px; font-size: 24px; letter-spacing: -.5px; color: var(--text); scroll-margin-top: 92px; }
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 3px; background: var(--work); }
.prose a { color: var(--work); text-decoration: underline; text-decoration-color: rgba(130, 224, 170, .35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }

/* ───────── Format pages ───────── */

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 12px; height: 12px; }
.format .hero h1 { margin-top: 0; }

.format-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.format-split .prose { margin-top: 22px; max-width: 680px; }
.prose .sources { margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.format-aside { position: sticky; top: 92px; background: var(--card); border: 1px solid var(--hairline); border-radius: 24px; padding: 24px; }
.aside-title { font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.format-aside p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.tabata-bar, .rhythm-bar { margin-top: 18px; display: flex; gap: 3px; height: 34px; align-items: stretch; }
.tabata-bar i, .rhythm-bar i { border-radius: 5px; transform-origin: bottom; }
.rhythm-bar .w { background: var(--work); }
.rhythm-bar .r { background: var(--rest); opacity: .85; }
.rhythm-bar .rec { background: var(--reset); }
.tabata-bar .w { flex: 2; background: var(--work); }
.tabata-bar .r { flex: 1; background: var(--rest); opacity: .85; }
.js .format-aside :is(.tabata-bar, .rhythm-bar) i { transform: scaleY(0); transition: transform .5s var(--ease-spring); }
.js .format-aside.in :is(.tabata-bar, .rhythm-bar) i { transform: none; }
.format-aside .legend { margin-top: 14px; }

.setup { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
/* The Simple screen's controls, drawn the way the app draws them. */
.builder { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 30px; background: #000; border: 1px solid var(--hairline); }
.builder-group { display: flex; flex-direction: column; gap: 3px; border-radius: 22px; overflow: hidden; }
.builder-row { background: #1c1c1e; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.builder-row span { display: block; font-size: 15px; }
.builder-row b { display: block; margin-top: 2px; font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.builder-row small { font-size: 13px; color: var(--text-3); text-align: right; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 17px;
  display: grid; place-items: center; background: rgba(130, 224, 170, .14); color: var(--work);
  font-family: var(--display); font-weight: 700; font-size: 16px;
}
.steps b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.steps span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.setup-note { margin: 30px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 760px; }
.setup-note b { color: var(--text); font-weight: 600; }

.workouts { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.workouts .card h3 { margin-top: 14px; }
.workout-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-3); }
.level { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.level::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--lvl); }
.recipe { margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.recipe div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.recipe dt { font-size: 13px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.recipe dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

.format-links { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.format-link { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.format-link:hover { color: var(--text); }
.fl-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.fl-rhythm { font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.fl-bar { margin-top: 12px; display: flex; gap: 3px; height: 8px; }
.fl-bar i { border-radius: 3px; transition: transform .45s var(--ease-spring); transform-origin: bottom; }
.fl-bar .w { background: var(--work); }
.fl-bar .r { background: var(--rest); opacity: .85; }
.fl-bar .rec { background: var(--reset); }
.fl-bar .wr { background: rgba(130, 224, 170, .3); }
.format-link:hover .fl-bar i { transform: scaleY(1.6); }
.format-link:hover .fl-bar i:nth-child(even) { transition-delay: .05s; }
[data-page="tabata"] .format-link[data-format="tabata"],
[data-page="emom"] .format-link[data-format="emom"],
[data-page="amrap"] .format-link[data-format="amrap"],
[data-page="hiit"] .format-link[data-format="hiit"],
[data-page="circuit"] .format-link[data-format="circuit"] { display: none; }

.rhythm-bar .wr { background: rgba(130, 224, 170, .3); }
.splits { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.splits > div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; }
.splits span { font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.splits .rhythm-bar { margin-top: 0; height: 22px; }

/* ───────── Home: every format ───────── */

.formats { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fmt { display: flex; flex-direction: column; color: var(--text); padding: 22px; }
.fmt:hover { color: var(--text); }
.fmt-bar { display: flex; gap: 2px; height: 26px; align-items: flex-end; }
.fmt-bar i { display: block; height: 100%; border-radius: 3px; opacity: .3; transform-origin: bottom; transform: scaleY(.55); transition: opacity .25s ease, transform .35s var(--ease-spring); }
.fmt-bar i.past { opacity: .9; transform: scaleY(.55); }
.fmt-bar i.now { opacity: 1; transform: scaleY(1); }
.fmt-bar .w { background: var(--work); }
.fmt-bar .r { background: var(--rest); }
.fmt-bar .rec { background: var(--reset); }
.fmt-bar .wr { background: rgba(130, 224, 170, .45); }
.fmt-name { margin-top: 18px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.fmt-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); flex: 1; }
.fmt-setup { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.45; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fmt-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fmt-need { font-size: 12px; font-weight: 600; color: var(--text-2); border: 1px solid var(--hairline-strong); border-radius: 9px; padding: 2px 8px; white-space: nowrap; }
.fmt-need.pro { color: var(--work); border-color: rgba(130, 224, 170, .4); }
.fmt-go { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--work); }
.fmt-go svg { width: 13px; height: 13px; transition: transform .3s var(--ease-out); }
.fmt:hover .fmt-go svg { transform: translateX(3px); }

/* ───────── Scroll reveal ───────── */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 100ms); }
.js .hero.in h1 .line > span { transform: none; }
.js .hero-visual { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1.2s var(--ease-out) .35s, transform 1.4s var(--ease-out) .35s; }
.js .hero.in .hero-visual { opacity: 1; transform: none; }

/* ───────── Small screens ───────── */

@media (max-width: 1000px) {
  .cue-chip { right: -8px; }
  .phase-chip { left: -16px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .legal-toc { display: none; }
  .format-split, .setup { grid-template-columns: 1fr; gap: 32px; }
  .format-aside { position: static; }
  .legal-hero { padding-top: 36px; }
  .nav-links { display: none; }
  .section { padding-top: 76px; }
  .hero .wrap { padding-top: 44px; gap: 40px; }
  .phase-chip { left: -12px; }
  .cue-chip { right: -10px; }
  .store-btn { flex: 1 1 200px; }
  .cta { grid-template-columns: 1fr; }
  .cta-timer { order: -1; width: 136px; height: 136px; }
  .cta-timer .t b { font-size: 28px; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 14px; transform: none; }
  .lightbox .cap { bottom: 70px; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
