/* WalkBPM site. Colours match the app: Theme.swift and CoachPalette. */
:root {
  --bg: #121315;
  --card: #1f2024;
  --raised: #292a2e;
  --stroke: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.38);
  --accent: #ccf738;
  --blue: #5cb8ff;
  --purple: #a87aff;
  --gradient: linear-gradient(120deg, #ccf738, #5cb8ff 55%, #a87aff);
  --glow: rgba(204, 247, 56, 0.16);
  color-scheme: dark;
}

/* Light, the same way the app does it: same bones, deepened accent. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f2f5;
    --card: #ffffff;
    --raised: #e8e9ed;
    --stroke: rgba(0, 0, 0, 0.08);
    --text: #17191c;
    --muted: rgba(0, 0, 0, 0.6);
    --faint: rgba(0, 0, 0, 0.4);
    --accent: #70881f;
    --glow: rgba(204, 247, 56, 0.3);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(80rem 40rem at 50% -12rem, var(--glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--raised); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--raised); }

/* Pixel art stays crisp, like the badges in the app. */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* Hero */
.hero { text-align: center; padding: 40px 0 36px; }
.hero .icon {
  display: block;
  margin: 0 auto;
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--stroke);
}
.eyebrow {
  display: inline-block;
  margin: 26px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 {
  margin: 0;
  overflow-wrap: break-word;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.lede {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 19px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--gradient);
  color: #000;
  font-weight: 700;
}
.pill:hover { text-decoration: none; filter: brightness(1.06); }

/* Cards */
.cards { display: grid; gap: 14px; padding-bottom: 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 22px;
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.card h2 .dot {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.card p, .card li { margin: 0; color: var(--muted); }
.card p + p { margin-top: 10px; }
.card ul { margin: 0; padding-left: 20px; }
.card li + li { margin-top: 6px; }

/* Long reading, like the privacy policy */
.doc { padding: 8px 0 0; }
.doc .card { padding: 8px 22px; }
.doc section { padding: 18px 0; border-top: 1px solid var(--stroke); }
.doc section:first-child { border-top: 0; }
.doc h2 { margin: 0 0 6px; font-size: 18px; }
.doc p { margin: 0; color: var(--muted); }
.updated { margin: 10px 0 0; color: var(--faint); font-size: 14px; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 34px 0 44px;
  color: var(--faint);
  font-size: 14px;
}
.foot a { color: var(--muted); }

@media (max-width: 480px) {
  .hero { padding-top: 24px; }
  .hero .icon { width: 104px; height: 104px; border-radius: 24px; }
  .card { padding: 18px; }
  .doc .card { padding: 4px 18px; }
}
