/*
 * 2minsplank — marketing site styles
 *
 * Mirrors the app's "Lit Stage" design system (2minsplank/DesignSystem.swift):
 *   - near-black canvas #050507, one cyan spotlight from above, faint ember counter-glow
 *   - one accent: cyan #00D4FF for actions, selection, links and progress
 *   - ember #FF7A2F for growth only (streak, XP); never chrome or buttons
 *   - outcome colors (success / warning) only for real status
 *   - Space Grotesk for display and labels, the system face for body copy
 *   - radius scale 8 / 12 / 16 / 20; neutral black elevation, no tinted glows
 */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------- variables */

:root {
  --bg: #050507;
  --bg-top: #090c12;
  --bg-secondary: #0d0d12;
  --stage: #0c0f16;
  --card: #12151c;
  --card-top: #14171f;
  --elevated: #1b1f29;
  --border: #262b38;
  --border-strong: #394150;
  --rim: rgba(255, 255, 255, 0.06);

  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #7b8393;

  --cyan: #00d4ff;
  --cyan-dark: #00b8db;
  --cyan-subtle: rgba(0, 212, 255, 0.15);
  --cyan-faint: rgba(0, 212, 255, 0.08);
  --ember: #ff7a2f;
  --ember-subtle: rgba(255, 122, 47, 0.14);
  --success: #10b981;
  --warning: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-raised: 0 6px 18px rgba(0, 0, 0, 0.38);

  --container: 1180px;
  --nav-height: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------- reset */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The Lit Stage backdrop: charcoal-to-black, one cyan spotlight from above,
   a faint ember counter-glow, and grain to stop gradient banding. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1400px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 760px at 50% -8%, rgba(0, 212, 255, 0.14), transparent 70%),
    radial-gradient(520px 420px at 4% 88%, rgba(255, 122, 47, 0.06), transparent 72%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
}

ul,
ol {
  padding: 0;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #031015;
  font-family: var(--display);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 400;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------- utilities */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
  scroll-margin-top: calc(var(--nav-height) + 8px);
}

.section-tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* Uppercase kicker above a headline, like the app's eyebrow (tracking 2). */
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* The app's SectionHeader: a short cyan bar beside a tracked uppercase label. */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.section-label::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--cyan);
}

.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

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

.lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--text-secondary);
  max-width: 60ch;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* The app's one card: lifted surface, hairline border, a rim of light on top. */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 var(--rim), var(--shadow-card);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--cyan);
  color: #031015;
  box-shadow: var(--shadow-raised);
}

.btn-primary:hover {
  background: #3ddcff;
}

.btn-ghost {
  background: var(--elevated);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}

.store-badge img {
  height: 54px;
  width: auto;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge:active {
  transform: scale(0.97);
}

/* -------------------------------------------------------------------- nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(5, 5, 7, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(38, 43, 56, 0.7);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--elevated);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta .store-badge img {
  height: 40px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-only {
  display: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(46px, 6.6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-secondary);
  max-width: 50ch;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.cta-note {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-trust {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 21, 28, 0.7);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hero-trust svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--cyan);
}

/* Hero stage: the hub's timer ring, with the character holding a plank in it. */

.stage {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
}

.stat-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 26px;
  list-style: none;
}

.stat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card-top), var(--card));
  box-shadow: inset 0 1px 0 var(--rim);
  font-family: var(--display);
}

.stat-pill svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.stat-pill strong {
  font-size: 18px;
  font-weight: 700;
}

.stat-pill span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.stat-pill .is-ember {
  color: var(--ember);
}

.stat-pill .is-cyan {
  color: var(--cyan);
}

.ring {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.16), rgba(0, 212, 255, 0.04) 62%, transparent 100%);
}

.ring-track,
.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring-svg {
  transform: rotate(-90deg);
}

.ring-svg circle {
  fill: none;
  stroke-width: 6;
}

.ring-svg .track {
  stroke: rgba(255, 255, 255, 0.07);
}

.ring-svg .arc {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 28;
  animation: ring-fill 3.2s var(--ease-out) both;
}

@keyframes ring-fill {
  from {
    stroke-dashoffset: 100;
  }
}

.ring-character {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 104%;
  max-width: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
}

.ring-readout {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.ring-readout strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(44px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ring-readout span {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--text-muted);
}

/* ------------------------------------------------------------ proof strip */

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.proof li {
  padding: 26px 28px;
  border-left: 1px solid var(--border);
}

.proof li:first-child {
  border-left: 0;
}

.proof strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.proof span {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------- how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 28px;
  overflow: hidden;
}

.step-art {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 70% at 50% 0%, rgba(0, 212, 255, 0.12), transparent 70%),
    var(--stage);
  border: 1px solid rgba(38, 43, 56, 0.7);
  overflow: hidden;
}

.step-art img {
  position: absolute;
  inset: 4% 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.step-body {
  padding: 26px 18px 0;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.step-tag b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan-subtle);
  font-weight: 700;
  letter-spacing: 0;
}

.step h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15.5px;
}

.loop-note {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ------------------------------------------------------- form coach demo */

.coach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.cue-list {
  margin-top: 34px;
  display: grid;
  gap: 12px;
  list-style: none;
}

.cue-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(18, 21, 28, 0.7);
}

.cue-list .cue-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--elevated);
  color: var(--text-secondary);
}

.cue-list .cue-icon svg {
  width: 17px;
  height: 17px;
}

.cue-list .is-good .cue-icon {
  background: var(--cyan-subtle);
  color: var(--cyan);
}

.cue-list strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.cue-list span {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* A recreation of the workout screen: coach pill, monospaced timer, progress. */
.workout {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 26px 26px 34px;
  border-radius: 40px;
  background: #0b0c0f;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--rim), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.workout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workout-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #2a2c31;
  color: #fff;
}

.workout-dot svg {
  width: 18px;
  height: 18px;
}

.coach-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #2a2c31;
  border: 1px solid #44474f;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.coach-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
}

.workout[data-state="paused"] .coach-pill {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fcd38a;
}

.workout[data-state="paused"] .coach-pill::before {
  background: var(--warning);
}

.workout[data-state="done"] .coach-pill {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.5);
  color: #8ee7c6;
}

.workout[data-state="done"] .coach-pill::before {
  background: var(--success);
}

.workout-time {
  margin-top: clamp(56px, 8vw, 84px);
  font-family: var(--mono);
  font-size: clamp(62px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.workout[data-state="paused"] .workout-time {
  color: var(--text-muted);
}

.workout-label {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--text-secondary);
}

.workout-bar {
  margin: 26px auto 0;
  height: 6px;
  border-radius: 3px;
  background: #34363b;
  overflow: hidden;
}

.workout-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: var(--cyan);
  transform-origin: left center;
  transform: scaleX(0.15);
  transition: transform 0.9s linear;
}

.workout[data-state="done"] .workout-bar i {
  background: var(--success);
}

.workout-controls {
  margin-top: clamp(48px, 7vw, 72px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 34px;
}

.workout-controls span {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.workout-controls .ctl {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2a2c31;
  color: #fff;
}

.workout-controls .ctl svg {
  width: 22px;
  height: 22px;
}

.workout-controls .ctl.main {
  width: 84px;
  height: 84px;
  background: var(--cyan);
  color: #031015;
}

.workout-controls .ctl.main svg {
  width: 28px;
  height: 28px;
}

.workout-controls .is-main {
  color: var(--cyan);
}

/* ------------------------------------------------------- app screens */

.screens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
}

.screen figure {
  margin: 0;
}

.store-shot {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.store-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.phone {
  position: relative;
  padding: 7px;
  border-radius: 38px;
  background: linear-gradient(160deg, #222733 0%, #0c0e13 60%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.95);
}

.phone img {
  width: 100%;
  border-radius: 31px;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  background: var(--bg-secondary);
}

.screen figcaption {
  margin-top: 22px;
  padding: 0 4px;
}

.screen figcaption strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.screen figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.screen:nth-child(even) {
  margin-top: 48px;
}

/* --------------------------------------------------------------- bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.feature {
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature.span-7 {
  grid-column: span 7;
}

.feature.span-5 {
  grid-column: span 5;
}

.feature.span-4 {
  grid-column: span 4;
}

.feature h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feature p {
  color: var(--text-secondary);
  font-size: 15.5px;
  max-width: 54ch;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--cyan-subtle);
  color: var(--cyan);
  margin-bottom: 6px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon.ember {
  background: var(--ember-subtle);
  color: var(--ember);
}

.badge-shelf {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
}

.badge-shelf li {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 8px 14px;
  border-radius: var(--radius-lg);
  background: var(--stage);
  border: 1px solid rgba(38, 43, 56, 0.8);
  text-align: center;
}

.badge-shelf img {
  width: min(84px, 80%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.badge-shelf span {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.week {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  list-style: none;
}

.week li {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.week i {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-top);
}

.week i::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.week .done i {
  border-color: rgba(255, 122, 47, 0.5);
  background: var(--ember-subtle);
}

.week .done i::after {
  width: 9px;
  height: 9px;
  background: var(--ember);
}

.week .frozen i {
  border-color: rgba(0, 212, 255, 0.45);
  background: var(--cyan-faint);
}

.week .frozen i::after {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.week .today {
  color: var(--cyan);
}

.week .today i {
  border-color: var(--cyan);
  background: var(--cyan);
}

.week .today i::after {
  background: #031015;
}

.legend {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--text-muted);
  list-style: none;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
}

.legend li.is-freeze::before {
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.feature-widget {
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.feature-widget .feature-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 55%;
}

.feature-widget .widget-art {
  flex: 0 0 42%;
  max-width: 300px;
  margin: 0 0 0 auto;
}


.feature-widget .widget-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ------------------------------------------------------- privacy band */

.privacy-band {
  overflow: hidden;
  padding: clamp(36px, 4.5vw, 64px);
  background:
    radial-gradient(640px 320px at 85% 0%, rgba(0, 212, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--card-top) 0%, var(--card) 100%);
}

.privacy-band h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 20ch;
}

.privacy-points {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
}

.privacy-points li {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.privacy-points strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.privacy-points span {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----------------------------------------------------------------- faq */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(18, 21, 28, 0.75);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--radius-lg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-marker {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--elevated);
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}

.faq-marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-marker {
  background: var(--cyan-subtle);
}

.faq-item[open] .faq-marker::before,
.faq-item[open] .faq-marker::after {
  background: var(--cyan);
}

.faq-item[open] .faq-marker::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 64px 22px 22px;
  color: var(--text-secondary);
  font-size: 16px;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* ----------------------------------------------------------- final CTA */

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(64px, 8vw, 104px) 24px clamp(72px, 8vw, 110px);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(760px 420px at 50% 0%, rgba(0, 212, 255, 0.14), transparent 70%),
    var(--bg-secondary);
}

.final-cta .cta-character {
  width: clamp(200px, 22vw, 260px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
}

.final-cta h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 18ch;
  margin: 0 auto;
}

.final-cta p {
  margin: 20px auto 0;
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 46ch;
}

.final-cta .store-badge {
  margin-top: 34px;
}

.final-cta .cta-note {
  margin-top: 16px;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-bottom-bare {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* --------------------------------------------------------- legal pages */

.legal-header {
  padding: clamp(48px, 6vw, 84px) 0 0;
}

.legal-header .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.legal-header .back:hover {
  color: var(--cyan);
}

.legal-header h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.legal-meta {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 110px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card) 100%);
  box-shadow: inset 0 1px 0 var(--rim);
}

.legal-toc h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.legal-toc a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--cyan);
}

.legal-body {
  max-width: 760px;
  counter-reset: section;
}

.legal-body > section {
  counter-increment: section;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-body > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-body h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.legal-body h2::before {
  content: counter(section, decimal-leading-zero) "  ";
  color: var(--cyan);
  white-space: pre;
}

.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 16px;
}

.legal-body p + p {
  margin-top: 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 16px;
}

.legal-body li::marker {
  color: var(--cyan);
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-callout {
  margin: 20px 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: var(--cyan-faint);
  color: var(--text-secondary);
  font-size: 15.5px;
}

.legal-callout strong {
  color: var(--text);
}

.legal-body a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.4);
  text-underline-offset: 3px;
}

.legal-body a:hover {
  text-decoration-color: var(--cyan);
}

/* ------------------------------------------------------------- 404 */

.not-found {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}

.not-found .code {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.not-found h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 20ch;
  margin: 0 auto;
}

.not-found p {
  margin: 18px auto 32px;
  color: var(--text-secondary);
  max-width: 46ch;
}

/* ---------------------------------------------------------- animations */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger helpers (replaces inline style="--i:n" so CSP can stay strict) */
.d1 {
  --i: 1;
}

.d2 {
  --i: 2;
}

.d3 {
  --i: 3;
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ring-svg .arc {
    animation: none;
  }

  .workout-bar i,
  .btn,
  .store-badge {
    transition: none;
  }
}

/* --------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .hero-grid,
  .coach-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 640px;
  }

  .stage {
    width: min(480px, 100%);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .screens {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 24px 12px;
    margin: 0 -24px;
    scrollbar-width: none;
  }

  .screens::-webkit-scrollbar {
    display: none;
  }

  .screen {
    flex: 0 0 min(250px, 64vw);
    scroll-snap-align: center;
  }

  .screen:nth-child(even) {
    margin-top: 0;
  }

  .feature.span-7,
  .feature.span-5,
  .feature.span-4 {
    grid-column: span 12;
  }

  .privacy-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof li:nth-child(3) {
    border-left: 0;
  }

  .proof li:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta .store-badge {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav.open {
    background: var(--bg);
  }

  .site-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 16px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open .nav-links a {
    padding: 14px 12px;
    font-size: 15px;
  }

  .site-nav.open .nav-links .mobile-only {
    display: block;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .site-nav.open .nav-links .mobile-only a {
    color: var(--cyan);
    font-weight: 700;
  }

  .feature-widget {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-widget .widget-art {
    flex: none;
    width: min(280px, 100%);
    margin: 8px auto 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .stat-pill {
    height: 40px;
    gap: 6px;
  }

  .stat-pill strong {
    font-size: 15px;
  }

  .stat-pill span {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .proof li {
    padding: 20px 16px;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .badge-shelf {
    grid-template-columns: repeat(2, 1fr);
  }

  .workout {
    border-radius: 32px;
    padding: 20px 18px 28px;
  }

  .workout-controls {
    gap: 22px;
  }

  .faq-answer {
    padding-right: 22px;
  }

  .final-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-links {
    gap: 32px 48px;
  }
}
