/* MovePace — shared site styles
   Tokens ported 1:1 from MovePace/MovePace/DesignSystem/Colors.swift
   (the current shipped app palette — see UI/design-system.md for the
   original spec this supersedes). Single dark theme, no light mode,
   same deliberate choice the app makes. */

:root {
  /* Surfaces & structure */
  --bg: #08080f;
  --surface: #0c0c18;
  --surface-active: #12121f;
  --surface-raised: #0f0f1a;
  --border: #1a1a2e;
  --border-active: #e94560;
  --border-subtle: #1e1e3a;
  --ring: #2c2c4a;

  /* Text ramp */
  --text-primary: #f0f0f0;
  --text-secondary: #b5b5c1;
  --text-muted: #9e9ea5;
  --text-faint: #9393a1;
  --text-ghost: #8a8aa6;

  /* Accents */
  --accent: #e94560;
  --accent-gold: #f5a623;
  --accent-purple: #a78bfa;
  --complete: #57c9e6;
  --today: #5fd36e;

  /* HR zones */
  --zone-1: #63b3ed;
  --zone-2: #68d391;
  --zone-3: #f6e05e;
  --zone-4: #f6ad55;
  --zone-5: #fc8181;

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', monospace;
  --font-read: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --maxw-text: 700px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-read);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 8, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 0.01em;
}

.brand-word .pace { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

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

.nav-links .btn { color: var(--bg); }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-read);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #08080f;
}

.btn-accent:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

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

.btn-store {
  background: #08080f;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 20px 10px 16px;
}

.btn-store:hover { border-color: var(--accent); }

.btn-store svg { width: 20px; height: 20px; flex: none; }

.btn-store .store-lines { display: flex; flex-direction: column; line-height: 1.15; }

.btn-store .store-lines small { font-size: 10px; color: var(--text-faint); font-weight: 400; letter-spacing: 0.02em; }

.btn-store .store-lines strong { font-size: 15px; font-weight: 600; }

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

section { padding: 96px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.eyebrow.gold { color: var(--accent-gold); }
.eyebrow.purple { color: var(--accent-purple); }
.eyebrow.muted { color: var(--text-faint); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.03; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 700; }

p { margin: 0; }

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

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

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

.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }

.hero .lede { margin-bottom: 32px; }

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

.hero-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.hero-compat {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-compat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.compat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Phone mock (Run tab, authentic tokens) ---------- */

.phone-shell {
  position: relative;
  margin: 0 auto;
  max-width: 380px;
}

.phone-glow {
  position: absolute;
  inset: -60px -40px;
  background: radial-gradient(closest-side, rgba(233, 69, 96, 0.20), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 36px;
  padding: 14px 14px 22px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.phone-screen { padding: 8px 6px 4px; }

.mp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mp-brandline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-brandline b { color: var(--text-primary); font-weight: 500; }

.sync-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.mp-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mp-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--text-primary);
  line-height: 1;
}

.mp-goal {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.mp-week {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;
}

.mp-week-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.mp-week-head .lbl { font-size: 10px; letter-spacing: 0.1em; color: var(--text-faint); text-transform: uppercase; }
.mp-week-head .meta { font-size: 10px; color: var(--text-muted); }
.mp-week-head .meta b { color: var(--complete); font-weight: 500; }

.mp-days { display: flex; justify-content: space-between; gap: 4px; }

.mp-day-c {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-faint);
}

.mp-day-c.done { background: var(--complete); border-color: transparent; color: var(--bg); }
.mp-day-c.today { border: 2.5px solid var(--today); color: var(--today); }

.mp-card {
  background: linear-gradient(180deg, #12101a, #0d0d18);
  border: 1px solid #3a2130;
  border-radius: 14px;
  padding: 18px;
}

.mp-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

.mp-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.mp-eyebrow .type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.mp-status {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.mp-lede { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }

.mp-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mp-metric .m-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mp-metric .m-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}

.mp-metric .m-value.zone { color: var(--zone-2); }

.mp-coach {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.mp-coach b { color: var(--text-primary); font-weight: 500; }

/* ---------- Feature grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card-tile {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
}

.card-tile .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 16px;
}

.card-tile.gold .dot { background: var(--accent-gold); }
.card-tile.purple .dot { background: var(--accent-purple); }
.card-tile.green .dot { background: var(--zone-2); }
.card-tile.cyan .dot { background: var(--complete); }

.card-tile h3 { margin-bottom: 8px; }

.card-tile p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

.card-tile .type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 6px;
}

/* ---------- Steps / problem list ---------- */

.step-row {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.step-row:last-child { border-bottom: 1px solid var(--border); }

#problem { padding-bottom: 48px; }
#coaching { padding-top: 48px; }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--border-subtle);
  flex: none;
  width: 48px;
}

.step-body h3 { margin-bottom: 6px; font-size: 18px; }
.step-body p { font-size: 14.5px; color: var(--text-muted); max-width: 60ch; }

/* ---------- Stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

@media (max-width: 720px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

.stat-item .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--text-primary);
}

.stat-item .num .accent { color: var(--accent); }

.stat-item .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- Persona / goal chips ---------- */

.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

@media (max-width: 720px) { .chip-grid { grid-template-columns: repeat(2, 1fr); } }

.chip {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 16px;
  background: var(--surface);
}

.chip .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.chip .desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Privacy strip ---------- */

.privacy-strip {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  background: var(--surface-raised);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

@media (max-width: 720px) { .privacy-strip { flex-direction: column; } }

.privacy-strip .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(233, 69, 96, 0.12);
  border: 1px solid rgba(233, 69, 96, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-strip .icon svg { width: 22px; height: 22px; color: var(--accent); }

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-top: 16px;
}

@media (max-width: 560px) { .privacy-points { grid-template-columns: 1fr; } }

.privacy-points li { font-size: 14px; color: var(--text-secondary); list-style: none; padding-left: 20px; position: relative; }

.privacy-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--complete);
}

/* ---------- Final CTA band ---------- */

.cta-band {
  border-radius: 24px;
  border: 1px solid #3a2130;
  background: linear-gradient(180deg, #12101a, #0d0d18);
  padding: 64px 40px;
  text-align: center;
}

.cta-band h2 { margin-bottom: 14px; }
.cta-band .lede { margin: 0 auto 32px; }
.cta-band .hero-cta { justify-content: center; }

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

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
}

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

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text-primary); }

.footer-note { font-size: 13px; color: var(--text-faint); max-width: 340px; line-height: 1.6; }

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

.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); }

.footer-legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: #5c5c72;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-legal a { color: #5c5c72; text-decoration: none; }

/* ---------- Legal pages ---------- */

.legal-header { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }

.legal-header h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }

.legal-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

.legal-body { padding: 48px 0 96px; }

.legal-body .wrap { max-width: 760px; }

.legal-body h2 {
  font-size: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
  margin: 44px 0 14px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

.legal-body p { margin: 0 0 16px; }

.legal-body ul { margin: 0 0 16px; padding-left: 22px; }

.legal-body li { margin-bottom: 6px; }

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

.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.legal-intro { font-size: 15.5px; color: var(--text-muted); margin-bottom: 8px; }

.legal-address {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
