/* Gym Rest Timer — marketing site.
   The page rhythm of intervalsone.com (sticky nav, hero with a live phone, timeline
   strip, stat row, cards, plans, FAQ, CTA), retuned to the app's own dashboard: one
   accent (system blue by default, pickable like the app's Premium accent colour) and a
   red Reset. 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);
  --accent: #0a84ff;          /* SwiftUI Color.blue, dark appearance: the app's default button colour */
  --on-accent: #fff;          /* the app picks black or white by luminance */
  --reset: #ff453a;           /* SwiftUI Color.red, dark appearance: the Reset button */
  --lift: #d9dde3;            /* a working set on the timeline */
  --display: Archivo, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --digits: -apple-system, BlinkMacSystemFont, "SF Pro Display", 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;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--body); font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--page); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--accent) 70%, #fff); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 96px 0; }

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: 580px; text-wrap: pretty; }

/* ───────── Logo: the app icon, a white dumbbell on the accent tile ───────── */
.logo {
  --s: 34px; width: var(--s); height: var(--s); flex: none;
  border-radius: calc(var(--s) * .265);
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background .5s ease;
}
.logo svg { width: 72%; height: 72%; }
.logo.live svg { animation: lift 2.8s var(--ease-out) infinite; }
@keyframes lift { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(6deg); } }

.io-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;
}
.io-logo .ring {
  position: absolute; left: 50%; top: 54%; width: 68%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(#4ade9b 0deg 296deg, rgba(255, 255, 255, .2) 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%);
}
.io-logo .crown { position: absolute; left: 50%; top: 13%; width: 22%; height: 7%; border-radius: 99px; background: #4ade9b; transform: translateX(-50%); }
.io-logo .bars { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: calc(var(--s) * .042); }
.io-logo .bars i { display: block; width: calc(var(--s) * .069); border-radius: 99px; }
.io-logo .bars i:nth-child(1) { height: calc(var(--s) * .2); background: #f8c471; }
.io-logo .bars i:nth-child(2) { height: calc(var(--s) * .354); background: #4ade9b; }
.io-logo .bars i:nth-child(3) { height: calc(var(--s) * .131); background: #ec7063; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; padding-block: 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); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav.scrolled { background: rgba(0, 0, 0, .86); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ───────── Buttons ───────── */
.btn {
  height: 52px; padding: 0 26px; border-radius: 26px; border: 0; cursor: pointer;
  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 .3s ease, border-color .2s ease, box-shadow .3s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: transparent; 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; }
.store-btn b { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Hero ───────── */
.hero .wrap { padding-block: 64px 40px; display: flex; flex-wrap: wrap; gap: 48px 56px; 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 color-mix(in srgb, var(--accent) 40%, transparent);
  font-size: 13px; color: var(--accent); font-weight: 500;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { margin: 22px 0 0; font-size: clamp(42px, 6.4vw, 72px); line-height: 1; letter-spacing: -2.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(--accent); transition: color .5s ease; }
.hero .lede { font-size: 18px; margin-top: 22px; max-width: 470px; }
.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(320px, 82vw); position: relative; perspective: 1200px; }
.hero-glow {
  position: absolute; inset: -14% -34%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%);
  filter: blur(22px); animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.07); opacity: 1; } }

/* ───────── Phone: a working copy of the dashboard ───────── */
.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;
}
.screen {
  position: relative; border-radius: 38px; overflow: hidden; background: #000;
  aspect-ratio: 393 / 852; max-width: 100%;
  container-type: inline-size;
  display: flex; flex-direction: column;
}
.sb { display: flex; justify-content: space-between; align-items: center; padding: 4.6cqw 8cqw 0; font: 600 4.2cqw/1 var(--digits); }
.sb .island { width: 30cqw; height: 8.6cqw; border-radius: 99px; background: #111; margin-top: -1cqw; }
.sb .bat { width: 7cqw; height: 3.4cqw; border-radius: 1cqw; border: .45cqw solid rgba(255, 255, 255, .5); position: relative; }
.sb .bat::after { content: ""; position: absolute; inset: .45cqw; right: 1.6cqw; background: #fff; border-radius: .4cqw; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 5cqw 5cqw 0; }
.sets {
  grid-column: 2; background: none; border: 0; padding: 1cqw 2cqw; cursor: pointer;
  font: 500 5.2cqw/1 var(--digits); color: var(--accent); font-variant-numeric: tabular-nums;
  transition: color .4s ease;
}
.gear { justify-self: end; width: 7.2cqw; height: 7.2cqw; color: var(--accent); transition: color .4s ease; }
.clock {
  margin: 9cqw 0 0; text-align: center;
  font: 600 20.5cqw/1 var(--digits); letter-spacing: -.5cqw; font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.clock.done { animation: done-pulse .9s ease 2; }
@keyframes done-pulse { 50% { transform: scale(1.05); } }
.grid {
  flex: 1; min-height: 0; margin-top: 15cqw; padding: 0 5cqw 6cqw;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 2.6cqw;
}
.preset {
  border: 0; border-radius: 3.9cqw; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font: 400 8.2cqw/1 var(--digits); font-variant-numeric: tabular-nums;
  transition: transform .2s var(--ease-spring), filter .2s ease, background .4s ease, color .4s ease;
}
.preset:hover { filter: brightness(1.12); }
.preset:active, .preset.press { transform: scale(.94); filter: brightness(1.25); }
.preset.reset { background: var(--reset); color: #fff; }
.home-ind { position: absolute; bottom: 2cqw; left: 50%; translate: -50% 0; width: 34cqw; height: 1.3cqw; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.banner {
  position: absolute; top: 3.4cqw; left: 3.4cqw; right: 3.4cqw; z-index: 3;
  display: flex; gap: 3cqw; align-items: center; padding: 3.2cqw;
  border-radius: 5.6cqw; background: rgba(48, 48, 52, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateY(-140%); transition: transform .55s var(--ease-spring);
}
.banner.show { transform: none; }
.banner .logo { --s: 10cqw; }
.banner div { min-width: 0; flex: 1; font-size: 3.6cqw; line-height: 1.3; }
.banner b { display: flex; justify-content: space-between; font-weight: 600; }
.banner b small { font-weight: 400; color: var(--text-3); font-size: 3.2cqw; }

.picker { position: relative; z-index: 1; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.swatches { display: flex; gap: 8px; }
.sw {
  width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--c); box-shadow: 0 0 0 2px var(--page), 0 0 0 3px transparent;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}
.sw:hover { transform: scale(1.15); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 3.5px var(--c); }
.tag {
  font-size: 12px; font-weight: 600; color: var(--accent); vertical-align: middle; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 9px; padding: 2px 7px; margin-left: 4px;
}

/* ───────── Session strip: how much of a lifting session is rest ───────── */
.session { background: var(--card); border: 1px solid var(--hairline); border-radius: 24px; padding: 22px 24px 20px; }
.session-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.session-title { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.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 { font-weight: 600; color: var(--now, var(--accent)); }
.track { position: relative; margin-top: 16px; display: flex; gap: 3px; height: 14px; }
.track .seg { position: relative; overflow: hidden; border-radius: 4px; background: color-mix(in srgb, var(--c) 28%, transparent); transition: transform .35s var(--ease-out); }
.track .seg.lift { --c: var(--lift); }
.track .seg.rest { --c: var(--accent); }
.track .seg i { position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: var(--c); border-radius: inherit; }
.track .seg.now { transform: scaleY(1.35); }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

.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); line-height: 1.45; }

/* ───────── 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;
  overflow: hidden; isolation: isolate;
}
/* A soft accent glow that follows the pointer across the card. */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%);
  transition: opacity .4s ease;
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .13); }
.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; }

/* One icon per card: a tinted tile with a 24px line icon, all drawn on the same grid. */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-top .tag { margin-left: 0; }
.icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: background .4s ease, color .4s ease, transform .45s var(--ease-spring);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon svg .fill { fill: currentColor; stroke: none; }
.card:hover .icon { transform: translateY(-2px) rotate(-4deg); background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ───────── Rest guide: drawn on one scale, 0 to 5 minutes ───────── */
.guide { margin-top: 36px; background: var(--card); border: 1px solid var(--hairline); border-radius: 26px; padding: 28px 28px 22px; }
.g-row, .g-axis { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px 28px; align-items: center; }
.g-row { padding-block: 14px; border-bottom: 1px solid var(--hairline); }
.g-row:first-child { padding-top: 0; }
.g-label b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.g-label em { font-style: normal; font-weight: 500; color: var(--accent); margin-left: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-label span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text-3); line-height: 1.4; font-variant-numeric: tabular-nums; }
.g-track { position: relative; height: 34px; border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--hairline) calc(10% - 1px) 10%); }
.g-band {
  position: absolute; top: 5px; bottom: 5px; left: var(--from); width: calc(var(--to) - var(--from));
  border-radius: 7px; background: color-mix(in srgb, var(--accent) var(--mix, 55%), transparent);
  display: flex; align-items: center; padding-left: 10px;
  font: 600 12.5px/1 var(--body); color: var(--on-accent); white-space: nowrap; overflow: hidden;
  font-variant-numeric: tabular-nums;
  transition: background .5s ease;
}
.g-band.open { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) var(--mix, 55%), transparent) 70%, transparent); }
.g-axis { padding-top: 12px; }
/* Labels need about 40px each: the 15-second steps (0:45, 1:30, 2:30) show only on a
   wide track, the edge labels (0:00, 0:30, 4:00) only on a medium one. Dots always show. */
.ticks-box { container: ticks / inline-size; min-width: 0; }
.tick.minor, .tick.edge { font-size: 0; gap: 0; }
@container ticks (min-width: 440px) { .tick.edge { font-size: 12px; gap: 6px; } }
@container ticks (min-width: 820px) { .tick.minor { font-size: 12px; gap: 6px; } }
.g-axis .cap { font-size: 12.5px; color: var(--text-3); }
.ticks { position: relative; height: 34px; }
.tick { position: absolute; left: var(--at); top: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.tick.p { color: var(--text); }
.tick.p::before { background: var(--accent); }
.tick:first-child { translate: 0 0; align-items: flex-start; }
.tick:last-child { translate: -100% 0; align-items: flex-end; }
.guide-note { margin: 18px 0 0; font-size: 13.5px; color: var(--text-3); line-height: 1.55; max-width: 720px; }
@media (max-width: 760px) {
  .guide { padding: 22px 18px 18px; }
  .g-row, .g-axis { grid-template-columns: minmax(0, 1fr); }
  .g-axis .cap { display: none; }
  .ticks { height: 28px; }
}

/* ───────── Free vs Premium ───────── */
.plans { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.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 { flex: 1; 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; font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.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-weight: 500; color: var(--text); }
.plan li span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.plan .btn { margin-top: 28px; width: 100%; height: 48px; font-size: 16px; }
.plan-note { min-height: 3em; line-height: 1.45; margin-top: 12px; font-size: 13px; color: var(--text-3); text-align: center; text-wrap: pretty; }
.plan.pro {
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--angle, 0deg), color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 80%, transparent), rgba(255, 255, 255, .35), color-mix(in srgb, var(--accent) 20%, transparent) 60%) border-box;
  animation: spin-border 8s linear infinite;
}
.plan.pro .plan-name { color: var(--accent); }
@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(--accent); color: var(--on-accent); 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 .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--accent); transition: transform .4s var(--ease-out); }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details[open] .plus::before { transform: rotate(180deg); }
.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; }

/* ───────── Sister app ───────── */
.sister { display: flex; gap: 18px 22px; align-items: center; flex-wrap: wrap; padding: 22px 24px; border-radius: 22px; border: 1px solid var(--hairline); background: var(--card); color: var(--text); }
.sister:hover { color: var(--text); border-color: rgba(255, 255, 255, .15); }
.sister .io-logo { --s: 46px; }
.sister div { flex: 1 1 280px; min-width: 0; }
.sister b { font-size: 16.5px; font-weight: 600; }
.sister p { margin: 4px 0 0; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.sister .go { font-size: 14.5px; color: #82e0aa; white-space: nowrap; }

/* ───────── CTA ───────── */
.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, 1.3fr) minmax(0, 1fr); gap: 32px clamp(24px, 4vw, 56px); align-items: center;
}
.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(--accent) 22%, transparent), transparent);
  animation: breathe 6s ease-in-out infinite;
}
.cta .display { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1.3px; line-height: 1.05; text-wrap: balance; }
.cta p { margin: 12px 0 0; font-size: 16.5px; color: var(--text-2); max-width: 420px; }
.cta .stores { margin-top: 28px; }
/* The app's fullscreen mode: an iPhone 15 Pro on its side (852 × 393pt screen),
   everything sized in cqw of that screen width. In the app the focus timer is
   150pt semibold, so here it is 150 / 852 = 17.6cqw. */
.cta-side { margin: 0; width: 100%; max-width: 380px; justify-self: end; container-type: inline-size; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-phone {
  width: 100%; padding: 1.3cqw; border-radius: 7.6cqw;
  background: linear-gradient(145deg, #2a2a2e, #0b0b0c 40%, #1b1b1e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.cta-screen { position: relative; aspect-ratio: 852 / 393; border-radius: 6.4cqw; background: #000; container-type: inline-size; display: grid; place-items: center; overflow: hidden; }
.cta-screen::before { content: ""; position: absolute; left: 1.3cqw; top: 50%; translate: 0 -50%; width: 4.3cqw; height: 14.8cqw; border-radius: 99px; background: #111; }
.cta-screen::after { content: ""; position: absolute; bottom: 1cqw; left: 50%; translate: -50% 0; width: 15.7cqw; height: .6cqw; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.cta-screen b { font: 600 17.6cqw/1 var(--digits); font-variant-numeric: tabular-nums; }
.cta-screen b.done { animation: done-pulse .9s ease 2; }
.cta-side figcaption { font-size: 13px; color: var(--text-3); text-align: center; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta-side { justify-self: center; } }
.cta .stores { gap: 10px; flex-wrap: nowrap; }
@media (max-width: 1000px) { .cta .store-btn { padding: 0 16px 0 14px; gap: 10px; } .cta .store-btn svg { width: 22px; height: 22px; } }
@media (max-width: 420px) { .cta .stores { flex-wrap: wrap; } }

/* ───────── Footer ───────── */
footer { margin-top: 80px; border-top: 1px solid var(--hairline); }
.foot { padding-block: 40px 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; 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); }
@media (max-width: 760px) { .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; } .foot-brand { grid-column: 1 / -1; } }


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

/* ───────── 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(--accent); border-left-color: var(--accent); }

.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(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .sources { margin-top: 22px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }

/* ───────── Guide pages ───────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.crumbs > * { white-space: nowrap; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 12px; height: 12px; }
.guide-page .hero h1 { margin-top: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.split .prose { margin-top: 22px; max-width: 680px; }
.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); }
.aside p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.aside .legend { margin-top: 14px; }
/* One exercise drawn to scale: working sets light, rests in the accent. */
.rhythm { margin-top: 18px; display: flex; gap: 3px; height: 34px; }
.rhythm i { border-radius: 5px; transform-origin: bottom; }
.rhythm .l { background: var(--lift); }
.rhythm .r { background: var(--accent); opacity: .85; }
.js .aside .rhythm i { transform: scaleY(0); transition: transform .5s var(--ease-spring); transition-delay: calc(var(--i, 0) * 45ms); }
.js .aside.in .rhythm i { transform: none; }

.setup { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
/* The app's Presets settings screen, drawn the way the app draws it (PresetSettingsView):
   the label and steppers take the accent, the time stays white, and only the ends of the list are rounded. */
.presets-mock { display: flex; flex-direction: column; padding: 10px 16px 18px; border-radius: 30px; background: #000; border: 1px solid var(--hairline); font-family: var(--digits); }
.pm-nav { position: relative; height: 44px; display: grid; place-items: center; margin-bottom: 6px; }
.pm-nav b { font-size: 17px; font-weight: 600; }
.pm-back { position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1c1c1e; color: #fff; }
.pm-back svg { width: 17px; height: 17px; }
.presets-mock .pm-title { padding: 10px 10px 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .5px; }
.pm-group { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; border-radius: 18px; overflow: hidden; }
.pm-row { background: #1c1c1e; min-height: 58px; padding: 0 15px 0 25px; display: flex; align-items: center; }
.pm-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; color: var(--accent); }
.pm-row b { padding: 0 15px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-step { padding: 0 15px; color: var(--accent); display: grid; transform: translateY(-1.5px); }
.pm-step svg { width: 14px; height: 14px; }
.pm-reset { margin-top: 15px; min-height: 48px; border-radius: 18px; display: grid; place-items: center; background: #1c1c1e; color: var(--reset); font-size: 17px; }
.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: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  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; }

.sessions { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sessions .card h3 { margin-top: 14px; }
.session-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, var(--accent)); }
.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); font-variant-numeric: tabular-nums; }

/* Links to the other guides; each page hides its own. */
.guide-links { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.guide-link { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.guide-link:hover { color: var(--text); }
.gl-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.gl-range { font-size: 14.5px; line-height: 1.45; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gl-bar { margin-top: 12px; position: relative; height: 8px; border-radius: 4px; background: var(--hairline); }
.gl-bar i { position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); border-radius: 4px; background: var(--accent); transform-origin: left; transition: transform .45s var(--ease-spring); }
.guide-link:hover .gl-bar i { transform: scaleY(1.6); }
[data-page="rest"] .guide-link[data-guide="rest"],
[data-page="strength"] .guide-link[data-guide="strength"],
[data-page="hypertrophy"] .guide-link[data-guide="hypertrophy"],
[data-page="endurance"] .guide-link[data-guide="endurance"] { display: none; }

/* ───────── 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: 760px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .legal-toc { display: none; }
  .split, .setup { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
  .legal-hero { padding-top: 36px; }
  .section { padding-top: 76px; }
  .hero .wrap { padding-top: 44px; gap: 40px; }
  .hero .store-btn { flex: 1 1 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-visual, .js .hero h1 .line > span, .js .aside .rhythm i { opacity: 1; transform: none; }
}
