/* Plus One website. Colors match the app's Palette (Shared/Theme/Palette.swift), dark mode. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --accent: #ffd400;
  --accent-soft: rgba(255, 212, 0, 0.4);
  --accent-faint: rgba(255, 212, 0, 0.08);
  --on-accent: #000;

  --bg: #000;
  --surface: #0f0f0f;
  --surface-muted: #0a0a0a;
  --field: #1a1a1a;
  --highlight: #161616;
  --border: #222;
  --border-strong: #2e2e2e;

  --text: #f5f5f5;
  --text-2: #a3a3a3;
  --text-3: #8a8a8a;

  --coach-fill: #1a1705;
  --coach-border: #3a3308;
  --coach-text: #ede6b8;
  --heart: #ff6b5a;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(255, 212, 0, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -8px rgba(255, 212, 0, 0.55);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: #4a4a4a; background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 19px/1 var(--font-display);
  letter-spacing: -0.01em;
}

.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.brand__icon svg { width: 20px; height: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 760px) {
  .site-nav .nav-optional { display: none; }
  .site-nav { gap: 16px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero::before {
  /* the app's yellow glow behind the target card */
  content: "";
  position: absolute;
  inset: auto -20% -10% auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(255, 212, 0, 0.16), rgba(255, 212, 0, 0) 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero { padding: 88px 0 112px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--coach-border);
  background: var(--coach-fill);
  color: var(--coach-text);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 212, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0); }
}

.hero h1 {
  margin-top: 24px;
  /* "Beat last time." is about 6.5em wide: keep each line on one line */
  font-size: clamp(38px, calc((100vw - 2 * var(--gutter)) / 6.8), 104px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero h1 span { display: block; }

@media (min-width: 960px) {
  .hero h1 { font-size: clamp(56px, 6.3vw, 100px); }
}

.hero__lede {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-2);
}
.hero__lede strong { color: var(--text); font-weight: 700; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); }

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
}

/* Floating chips around the hero phone */
.chip-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 700 15px/1 var(--font-display);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
.chip-float small {
  display: block;
  margin-top: 4px;
  font: 600 11px/1 var(--font-body);
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip-float__badge {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
}
.hero__device { position: relative; }
.chip-float--a { top: 9%; left: -96px; }
.chip-float--b { bottom: 24%; right: -84px; }

@media (max-width: 600px) {
  .chip-float { padding: 8px 12px 8px 8px; font-size: 13px; border-radius: 14px; }
  .chip-float__badge { min-width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
  .chip-float--a { left: -14%; top: 6%; }
  .chip-float--b { right: -14%; bottom: 20%; }
}

/* ---------- Phone frame ---------- */

.phone {
  --w: min(300px, 74vw);
  position: relative;
  width: var(--w);
  padding: 11px;
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(145deg, #2a2a2a, #0c0c0c 40%, #1b1b1b);
  box-shadow:
    inset 0 0 0 1.5px #3a3a3a,
    inset 0 0 0 4px #0b0b0b,
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -40px rgba(255, 212, 0, 0.25);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.142);
  background: #000;
  isolation: isolate;
}

.phone__screen::after {
  /* Dynamic Island */
  content: "";
  position: absolute;
  z-index: 5;
  top: 2.1%;
  left: 50%;
  width: 31%;
  height: 3.6%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone--hero { --w: min(320px, 76vw); }

@media (min-width: 960px) {
  .phone--hero { --w: 340px; }
}

.float {
  animation: float 7s ease-in-out infinite;
}
.float--slow { animation-duration: 9s; animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Watch frame ---------- */

.watch {
  --w: 190px;
  position: relative;
  width: var(--w);
  padding: 13px;
  border-radius: calc(var(--w) * 0.3);
  background: linear-gradient(150deg, #2d2d2d, #0d0d0d 45%, #1d1d1d);
  box-shadow:
    inset 0 0 0 1.5px #3a3a3a,
    inset 0 0 0 4px #0b0b0b,
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.watch::after {
  /* Digital Crown */
  content: "";
  position: absolute;
  right: -7px;
  top: 26%;
  width: 9px;
  height: 46px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a1a1a, #3c3c3c);
}
.watch__screen {
  overflow: hidden;
  aspect-ratio: 416 / 496;
  border-radius: calc(var(--w) * 0.22);
  background: #000;
}
.watch__screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero app recreation (the animated workout card) ---------- */

.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  --u: calc((var(--w) - 22px) / 390); /* one app point (screen is 390 pt wide) */
  font-size: calc(var(--u) * 14);
  user-select: none;
}

.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--u) * 16) calc(var(--u) * 30) 0 calc(var(--u) * 34);
  height: calc(var(--u) * 54);
  font: 600 calc(var(--u) * 16) / 1 var(--font-body);
}
.app__status-icons { display: flex; gap: calc(var(--u) * 6); align-items: center; }
.app__status-icons svg { height: calc(var(--u) * 12); width: auto; }

.app__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(var(--u) * 10) calc(var(--u) * 16);
}
.app__round {
  width: calc(var(--u) * 40);
  height: calc(var(--u) * 40);
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.app__round svg { width: 40%; }
.app__title { font: 700 calc(var(--u) * 17) / 1 var(--font-display); }

.app__card {
  margin: calc(var(--u) * 8) calc(var(--u) * 14) 0;
  padding: calc(var(--u) * 14);
  border-radius: calc(var(--u) * 20);
  background: var(--surface);
  border: 1px solid var(--border);
}
.app__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app__lift { font: 700 calc(var(--u) * 19) / 1.1 var(--font-display); }
.app__dots { color: var(--text-2); letter-spacing: 1px; font-weight: 800; }

.app__coach {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  margin-top: calc(var(--u) * 12);
  padding: calc(var(--u) * 7) calc(var(--u) * 10);
  border-radius: calc(var(--u) * 12);
  background: var(--coach-fill);
  border: 1px solid var(--coach-border);
  font-weight: 700;
  font-size: calc(var(--u) * 13);
}
.app__coach-icon {
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 20);
  border-radius: calc(var(--u) * 5);
  background: var(--accent);
  display: grid;
  place-items: center;
}
.app__coach-icon svg { width: 66%; }
.app__coach-why { margin-left: auto; color: var(--coach-text); opacity: 0.8; font-weight: 600; }

.app__cols,
.app__row {
  display: grid;
  grid-template-columns: 13% 1fr 22% 17% 15%;
  align-items: center;
  gap: calc(var(--u) * 5);
}
.app__cols {
  margin-top: calc(var(--u) * 12);
  padding: 0 calc(var(--u) * 8);
  font-size: calc(var(--u) * 10);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.app__cols span:nth-child(3),
.app__cols span:nth-child(4) { text-align: center; }

.app__row {
  position: relative;
  margin-top: calc(var(--u) * 7);
  padding: calc(var(--u) * 5) calc(var(--u) * 5) calc(var(--u) * 5) calc(var(--u) * 8);
  border-radius: calc(var(--u) * 12);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.app__row.is-done { border-color: rgba(255, 212, 0, 0.45); background: #12110a; }
.app__set { font-weight: 800; font-size: calc(var(--u) * 12); }
.app__last { color: var(--text-3); font-size: calc(var(--u) * 12); }
.app__field {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 38);
  border-radius: calc(var(--u) * 10);
  background: var(--field);
  font: 700 calc(var(--u) * 17) / 1 var(--font-display);
}
.app__field--reps { color: var(--accent); }
.app__row.is-done .app__field--reps { color: var(--text); }
.app__check {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 38);
  border-radius: calc(var(--u) * 10);
  border: 1.5px solid var(--border-strong);
  color: var(--text-3);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.app__check svg { width: 45%; }
.app__row.is-done .app__check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.app__plus {
  position: absolute;
  z-index: 2;
  right: calc(var(--u) * -4);
  top: calc(var(--u) * -10);
  padding: calc(var(--u) * 4) calc(var(--u) * 8);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 calc(var(--u) * 13) / 1 var(--font-display);
  opacity: 0;
  pointer-events: none;
}

.app__next-label {
  margin: calc(var(--u) * 18) calc(var(--u) * 18) calc(var(--u) * 8);
  font-size: calc(var(--u) * 11);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.app__list {
  margin: 0 calc(var(--u) * 14);
  border-radius: calc(var(--u) * 18);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.app__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--u) * 11) calc(var(--u) * 14);
  border-top: 1px solid var(--border);
}
.app__item:first-child { border-top: 0; }
.app__item b { display: block; font-weight: 700; font-size: calc(var(--u) * 14); }
.app__item small { color: var(--text-3); font-size: calc(var(--u) * 11.5); }
.app__item span { color: var(--text-2); font-weight: 600; }

.app__bar {
  margin: auto calc(var(--u) * 12) calc(var(--u) * 26);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 18);
  padding: calc(var(--u) * 12) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 22);
  background: rgba(22, 22, 22, 0.94);
  border: 1px solid var(--border-strong);
}
.app__stat b { display: block; font: 700 calc(var(--u) * 19) / 1 var(--font-display); font-variant-numeric: tabular-nums; }
.app__stat small { font-size: calc(var(--u) * 9.5); font-weight: 800; letter-spacing: 0.06em; color: var(--text-3); }
.app__finish {
  margin-left: auto;
  padding: calc(var(--u) * 10) calc(var(--u) * 18);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: calc(var(--u) * 14);
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; position: relative; }
@media (min-width: 960px) { .section { padding: 140px 0; } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font: 700 13px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head { max-width: 760px; }
.section-head h2,
.feature h2 {
  margin-top: 18px;
  font-size: clamp(38px, 6.4vw, 64px);
  letter-spacing: -0.03em;
}
.section-head p,
.feature__copy > p {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-2);
  max-width: 56ch;
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- How it works ---------- */

.how { border-top: 1px solid var(--border); }

.how__grid {
  display: grid;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}
@media (min-width: 960px) {
  .how__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; margin-top: 72px; }
}

.ladder {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0f0f0f, #080808);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (max-width: 480px) { .ladder { padding: 20px; border-radius: 22px; } }

.ladder__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ladder__lift { font: 700 20px/1.1 var(--font-display); }
.ladder__range { color: var(--text-3); font-size: 14px; font-weight: 600; }

.ladder__readout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  min-height: 72px;
}
.ladder__numbers {
  font: 700 clamp(48px, 9vw, 68px) / 1 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ladder__numbers .unit { font-size: 0.4em; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.ladder__numbers .times { color: var(--text-3); margin: 0 6px; font-weight: 500; }
.ladder__numbers .is-changed { color: var(--accent); }
.ladder__delta {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 15px/1 var(--font-display);
}

.ladder__chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 28px;
  align-items: end;
}
@media (max-width: 480px) { .ladder__chart { gap: 5px; } }

.ladder__week {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ladder__stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  /* weight steps up the base: 0, 1 or 2 plate jumps */
  padding-bottom: calc(var(--step, 0) * 28px);
}
.ladder__stack::after {
  /* the step under each column: higher weight sits on a higher step */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--step, 0) * 28px - 3px);
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #1b1b1b 0 6px, #141414 6px 12px);
  border: 1px solid #252525;
  opacity: calc(min(var(--step, 0), 1));
}
.ladder__rep {
  height: 9px;
  border-radius: 3px;
  background: #262626;
}
.ladder__week.is-on .ladder__rep { background: #3d3d3d; }
.ladder__week.is-on .ladder__rep.is-new { background: var(--accent); }
.ladder__week.is-on.is-jump .ladder__rep { background: var(--accent-soft); }
.ladder__w {
  font: 700 13px/1 var(--font-display);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.ladder__week.is-on .ladder__w { color: var(--text); }
.ladder__wk { font-size: 11px; color: var(--text-3); font-weight: 600; margin-top: -4px; }

.ladder__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}
.ladder__legend span { display: inline-flex; align-items: center; gap: 8px; }
.ladder__legend i { width: 14px; height: 9px; border-radius: 3px; background: var(--accent); display: inline-block; }
.ladder__legend i.soft { background: var(--accent-soft); }

.ladder__replay {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-2);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, color 0.2s, border-color 0.2s;
}
.ladder__replay svg { width: 14px; height: 14px; }
.ladder__replay:hover { color: var(--text); border-color: #4a4a4a; }
.ladder.is-finished .ladder__replay { opacity: 1; }
.ladder.is-finished .ladder__head { padding-right: 96px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 64px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font: 700 18px/1 var(--font-display);
}
.steps h3 { font-size: 22px; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ---------- Feature rows ---------- */

.features { border-top: 1px solid var(--border); }

.feature {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}
.feature + .feature { border-top: 1px solid #111; }

@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; padding: 110px 0; }
  .feature--flip .feature__media { order: -1; }
}

.feature__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.feature__media::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 212, 0, 0.13), transparent 70%);
  pointer-events: none;
}

.feature__media--pair { gap: 0; }
.watch-photo {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: 220px;
  height: auto;
  margin-left: -80px;
  margin-top: 150px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.85));
}
@media (max-width: 480px) {
  .feature__media--pair .phone { --w: min(240px, 62vw); }
  .watch-photo { width: min(160px, 42vw); margin-left: -84px; margin-top: 110px; }
}

.points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.points li {
  position: relative;
  padding-left: 34px;
  color: var(--text-2);
  font-size: 16px;
}
.points li strong { color: var(--text); font-weight: 700; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--coach-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23FFD400' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5.5v9M5.5 10h9'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--coach-border);
}

/* ---------- Extras grid ---------- */

.grid-cards {
  display: grid;
  gap: 14px;
  margin-top: 56px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: #3a3a3a; background: #121212; }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--coach-fill);
  border: 1px solid var(--coach-border);
  color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-top: 20px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* ---------- Privacy band ---------- */

.privacy-band {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 212, 0, 0.07), transparent 70%),
    var(--bg);
}
.privacy-band .grid-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Signup ---------- */

.signup {
  border-top: 1px solid var(--border);
}

.signup__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 32px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  gap: 36px;
}
@media (min-width: 960px) {
  .signup__panel { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
}

.signup__mark {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 340px;
  opacity: 0.08;
  pointer-events: none;
}

.signup h2 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -0.03em; }
.signup__panel > div > p { margin-top: 16px; font-size: 18px; color: rgba(0, 0, 0, 0.72); max-width: 44ch; font-weight: 500; }

.signup-form { position: relative; z-index: 1; }
.signup-form__row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #000;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 16px/1 var(--font-body);
}
.signup-form input[type="email"]::placeholder { color: #777; }
.signup-form input[type="email"]:focus { outline: none; }
.signup-form__row:focus-within { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35); }
.signup-form .btn--primary:hover { box-shadow: none; }

@media (max-width: 480px) {
  .signup-form__row { flex-direction: column; border-radius: 26px; padding: 8px; }
  .signup-form input[type="email"] { height: 50px; text-align: center; }
  .signup-form .btn { width: 100%; }
}

.signup-form__note {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.66);
  font-weight: 500;
}
.signup-form__note a { font-weight: 700; color: #000; }

.signup-form__status {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 15px;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup__beta-wrap { margin-top: 28px; }
.signup__beta {
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.signup__beta:hover { border-color: #000; }
.signup__beta svg { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  color: var(--text-2);
  font-size: 15px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.site-footer__tag { margin-top: 14px; color: var(--text-3); max-width: 32ch; }
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.site-footer nav a { text-decoration: none; font-weight: 600; transition: color 0.2s; }
.site-footer nav a:hover { color: var(--text); }
.site-footer__legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #141414;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Content pages (Support, Privacy) ---------- */

.page-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-top: 18px; font-size: clamp(44px, 8vw, 76px); letter-spacing: -0.035em; }
.page-hero p { margin-top: 18px; color: var(--text-2); font-size: 19px; max-width: 58ch; }

.page-body { padding: 56px 0 120px; }

.layout-split {
  display: grid;
  gap: 48px;
}
.layout-split > * { min-width: 0; }
@media (min-width: 960px) {
  .layout-split { grid-template-columns: 240px 1fr; gap: 72px; }
}

.toc {
  align-self: start;
}
@media (min-width: 960px) {
  .toc { position: sticky; top: 96px; }
}
.toc h2 {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.toc ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.toc a {
  display: block;
  padding: 7px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.toc a:hover { color: var(--accent); }
@media (max-width: 959px) {
  .toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .toc a {
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 14px;
  }
}

.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.faq {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23FFD400' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--coach-fill); }
.faq summary:hover { color: var(--accent); }
.faq__body {
  padding: 0 0 24px;
  color: var(--text-2);
  max-width: 68ch;
}
.faq__body p + p,
.faq__body p + ol,
.faq__body p + ul,
.faq__body ol + p,
.faq__body ul + p { margin-top: 12px; }
.faq__body ol,
.faq__body ul { margin: 12px 0 0; padding-left: 22px; }
.faq__body li + li { margin-top: 6px; }
.faq__body strong { color: var(--text); }
.faq__body a,
.prose a { color: var(--accent); text-underline-offset: 3px; }

.contact-card {
  margin-top: 72px;
  padding: 32px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.contact-card h2 { font-size: 28px; letter-spacing: -0.02em; }
.contact-card p { margin-top: 8px; color: var(--text-2); }

/* Privacy policy */
.prose { max-width: 72ch; color: var(--text-2); }
.prose h2 {
  margin: 56px 0 16px;
  color: var(--text);
  font-size: clamp(24px, 3.2vw, 30px);
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; color: var(--text); font-size: 19px; letter-spacing: -0.01em; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text); }
.prose .summary-box {
  margin-bottom: 48px;
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--coach-fill);
  border: 1px solid var(--coach-border);
  color: var(--coach-text);
}
.prose .summary-box h2 { margin: 0 0 12px; font-size: 20px; }
.prose .summary-box ul { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th,
.prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--text); font-weight: 700; background: var(--surface); }

.meta-line { color: var(--text-3); font-size: 15px; font-weight: 600; margin-top: 18px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(80px, 18vw, 180px); color: var(--accent); }
.notfound p { margin: 16px auto 32px; color: var(--text-2); max-width: 40ch; }

/* ---------- Scroll reveal ---------- */

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Hero intro: pure CSS so it never waits on scripts */
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: rise 0.9s var(--ease) both; animation-delay: var(--delay, 0s); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */

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