/* Layout: a gym floor at night seen through a phone. Left-aligned text on rubber, phone-framed footage on the right,
   one orchestrated moment (the coach's lines arriving like the app's captions). Dark only, like the app. */
:root {
  --rubber: #141518;
  --mat: #24262B;
  --mat-line: #34363C;
  --chalk: #F2EFE6;
  --chalk-dust: #A3A096;
  --plate-yellow: #FFC531;
  --on-plate-yellow: #141518;
  --plate-blue: #3D7DF2;
  --wordmark: "Pixelify Sans", "Courier New", monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--rubber); }
body {
  margin: 0;
  background: var(--rubber);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--plate-yellow); outline-offset: 3px; border-radius: 4px; }
img, video { max-width: 100%; display: block; }

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

/* Type */
.voice { font-family: var(--sans); font-weight: 850; font-variation-settings: "wdth" 118; font-stretch: 118%; letter-spacing: -0.01em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; }
h3 { font-size: 26px; line-height: 1.1; }
p { margin: 0; max-width: 34em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--chalk); }
.quiet { color: var(--chalk-dust); }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plate-yellow); }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 42px; height: 33px; }
.wordmark { font-family: var(--wordmark); font-weight: 700; font-size: 34px; line-height: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--mat); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 2px; background: var(--plate-yellow); flex: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-block: 40px 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--plate-yellow); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.facts li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--mat-line); font-size: 15px; font-weight: 600; color: var(--chalk-dust); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--plate-yellow); color: var(--on-plate-yellow); font-weight: 800; font-size: 17px; text-decoration: none;
}

/* Phone frame around footage */
.phone {
  position: relative; width: 100%; max-width: 340px; margin-inline: auto; aspect-ratio: 1206 / 2622;
  border-radius: 48px; padding: 10px; background: #0B0C0E; border: 1px solid var(--mat-line);
}
.phone video, .phone .slot { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--mat); }
.phone.small { max-width: 260px; border-radius: 38px; padding: 8px; }
.phone.small video, .phone.small .slot { border-radius: 30px; }

/* The coach's lines: arrive like the app's captions */
.lines { padding-block: 96px; border-top: 1px solid var(--mat-line); border-bottom: 1px solid var(--mat-line); }
.lines-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.lines-intro { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stage { position: relative; min-height: 3.3em; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.05; min-width: 0; }
.stage .line { margin: 0; }
.stage .kind { display: block; font-family: var(--sans); font-weight: 600; font-variation-settings: normal; font-stretch: 100%; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chalk-dust); margin-bottom: 12px; }
.stage .kind b { color: var(--plate-yellow); font-weight: 700; }
.js .stage .line { position: absolute; inset: auto 0 0 0; opacity: 0; transform: translateY(24px); transition: opacity 250ms ease, transform 250ms ease; }
.js .stage .line.on { opacity: 1; transform: none; transition: opacity 450ms ease 300ms, transform 450ms cubic-bezier(.2,.9,.3,1.2) 300ms; }
.js .stage .line.off { opacity: 0; transform: translateY(-16px); }
.stage-list { display: flex; flex-direction: column; gap: 28px; }
.js .stage-list { display: block; }

/* How it works: three clips */
.section { padding-block: 112px; display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.clip { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.clip-text { display: flex; flex-direction: column; gap: 8px; }

/* After the set */
.after { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.after-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ticks { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.ticks li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--plate-yellow); transform: translateY(-1px); }

/* Any exercise: Damir's own footage */
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reel figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.reel figcaption { font-weight: 700; font-size: 17px; }
.slot {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-size: 13px; color: var(--chalk-dust); border: 1px dashed var(--mat-line);
}
.frame { aspect-ratio: 9 / 16; width: 100%; border-radius: 24px; overflow: hidden; background: var(--mat); }
.frame video { width: 100%; height: 100%; object-fit: cover; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.privacy div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--mat-line); }
.privacy h3 { font-size: 22px; }

/* Closing */
.closing { padding-block: 120px 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; border-top: 1px solid var(--mat-line); }
.closing .big { font-size: clamp(48px, 9vw, 120px); line-height: 0.95; }
footer { padding-block: 32px 48px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; color: var(--chalk-dust); }
footer nav { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .hero, .lines-grid, .after { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 40px; padding-block: 16px 72px; }
  /* Three tall phones would stack into a very long scroll: swipe through them instead. */
  .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .clips::-webkit-scrollbar { display: none; }
  .clip { scroll-snap-align: start; }
  .clip .phone { margin-inline: 0; }
  .reel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel figure { scroll-snap-align: start; }
  .privacy { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 80px; }
  .lines { padding-block: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .stage .line { transition: none; }
}

/* Signup */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.signup { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 520px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 220px; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--mat-line);
  background: var(--mat); color: var(--chalk); font: inherit; font-size: 17px;
}
.signup input::placeholder { color: var(--chalk-dust); }
.signup input:focus-visible { outline: 3px solid var(--plate-yellow); outline-offset: 2px; }
.signup button { border: 0; cursor: pointer; font-family: inherit; }
.signup button:disabled { opacity: 0.6; cursor: progress; }
.signup-note { font-size: 15px; }
.signup.done .signup-row { display: none; }
.signup.done .signup-note { color: var(--chalk); font-weight: 700; font-size: 18px; }

/* Text pages: privacy, support, confirmed */
.doc { padding-block: 48px 96px; display: flex; flex-direction: column; gap: 40px; max-width: 760px; }
.doc header { display: flex; flex-direction: column; gap: 16px; }
.doc section { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--mat-line); }
.doc h2 { font-size: clamp(24px, 3vw, 30px); }
.doc p, .doc li { color: var(--chalk-dust); }
.doc strong { color: var(--chalk); }
.doc ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 34em; }
.doc a:not(.button) { color: var(--chalk); text-underline-offset: 3px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--chalk); }
