/* StrideMeter — marketing + legal site
   Matches the app's actual UI: white background, near-black text, black
   pill CTAs (the START button), #F9FAFB surfaces with hairline borders,
   and the green #10B981 accent used sparingly. One dark moment — the
   pricing card — mirrors the app's dark share cards. */

:root {
  --green: #10b981;
  --green-deep: #059669;
  --green-ink: #065f46;
  --green-dim: rgba(16, 185, 129, 0.09);
  --black: #000000;
  --ink: #0a0a0a;
  --text: #111827;
  --muted: #6b7280;
  --dim: #9ca3af;
  --body: #4b5563;
  --bg: #ffffff;
  --surface: #f9fafb;
  --hairline: #f3f4f6;
  --border: #e5e7eb;
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1060px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(16, 185, 129, 0.18); }

a { color: var(--green-deep); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.3px; color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: #ffffff; border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}
.brand-mark img { width: 26px; height: 26px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links a:not(.pill) { display: none; } }

/* Pills — the black START button, as a link */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: #ffffff !important;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.1px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}
.pill:hover {
  background: #1f2937; color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
}
.pill.ghost {
  background: transparent; color: var(--text) !important;
  border: 1px solid var(--border);
}
.pill.ghost:hover {
  background: var(--surface); border-color: var(--dim);
  color: var(--text) !important; box-shadow: none;
}
/* For dark surfaces (pricing card, CTA band) */
.pill.invert { background: #ffffff; color: var(--black) !important; }
.pill.invert:hover { background: #f3f4f6; color: var(--black) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 104px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(46% 38% at 50% 0%, rgba(16, 185, 129, 0.07), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-deep); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.4px; text-transform: uppercase;
  background: var(--green-dim); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 24px;
}
/* Keep brand casing (iOS, not IOS) inside uppercased chips */
.eyebrow .no-caps { text-transform: none; }
/* Live beta pulse */
.live-dot {
  position: relative; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.45);
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(0.55); opacity: 1; }
  75%, 100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; display: none; } }

.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.03;
  letter-spacing: -0.035em; font-weight: 800; color: var(--ink);
  margin-bottom: 20px; text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #047857, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 19px); color: var(--muted);
  max-width: 34ch; margin-bottom: 34px; text-wrap: pretty;
}
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-cta .pill { padding: 13px 24px; font-size: 15px; }
.hero-note { margin-top: 20px; color: var(--dim); font-size: 13.5px; }
.hero-note strong { color: var(--muted); font-weight: 700; }

/* Phone mockup — shows the app's real white Running screen */
.phone {
  justify-self: center;
  width: 280px; height: 560px; border-radius: 46px;
  background: #0c0c0d;
  border: 1px solid #26262a;
  box-shadow: 0 36px 80px rgba(17, 24, 39, 0.22), 0 0 0 2px rgba(0, 0, 0, 0.04);
  padding: 12px; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 25px; background: #0c0c0d; border-radius: 999px; z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: #e9edf0;
}
/* Map backdrop — the app's run screen floats over a live map */
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100%; padding: 60px 16px 18px;
}
.timer-wrap { text-align: center; }
.run-timer {
  font-size: 52px; font-weight: 200; letter-spacing: -2px;
  font-variant-numeric: tabular-nums; color: var(--black);
}
.run-timer .small { color: #9ca3af; }
.run-label { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; font-weight: 700; margin-top: 2px; }
.run-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.run-stat {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px; padding: 11px 13px;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}
.run-stat b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--black); }
.run-stat span { display: block; color: var(--dim); font-size: 9px; letter-spacing: 1px; font-weight: 700; margin-top: 3px; }
.run-stat .cadence-sub { font-size: 8px; color: #9ca3af; letter-spacing: 0.6px; margin-top: 2px; font-weight: 600; }
/* The app's bottom control while running */
.slide-pill {
  position: relative; margin-top: auto;
  height: 50px; border-radius: 25px;
  background: #000000;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.85); font-size: 10px;
  letter-spacing: 1.6px; font-weight: 700;
}
.slide-knob {
  position: absolute; left: 5px; top: 5px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #ffffff;
}
.tap-hint-mock {
  text-align: center; color: var(--dim); font-size: 9.5px;
  font-weight: 600; margin-top: 8px;
}
/* Coach transcript — subtitle for the audio, outside the phone */
.coach-bubble {
  background: var(--green-dim);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 16px; padding: 13px 15px; font-size: 13px;
  color: var(--green-ink); line-height: 1.45;
}
.coach-bubble .who {
  display: block; color: var(--green-deep); font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.6px; margin-bottom: 4px;
}
.demo-subtitle {
  width: 100%; max-width: 310px; margin-top: 14px;
  min-height: 84px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em;
  font-weight: 800; line-height: 1.12; color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

.divider { border: none; height: 1px; background: var(--hairline); }

/* Coaches grid */
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .coaches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .coaches { grid-template-columns: 1fr; } }
.coach {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.coach:hover {
  transform: translateY(-3px);
  border-color: #d1d5db;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.07);
}
.coach .dot {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-size: 19px; margin-bottom: 14px;
}
.coach h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; color: var(--text); }
.coach p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 24px;
}
.feature .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: #ffffff; border: 1px solid var(--border);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature .ic svg { width: 21px; height: 21px; stroke: var(--green-deep); }
.feature h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.2px; color: var(--text); }
.feature p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Pricing — clean white card, black CTA (the app's own language) */
.price-card {
  max-width: 440px; margin: 0 auto; text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px; padding: 48px 38px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}
.price-card .tag {
  color: var(--green-deep); font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; font-size: 12.5px;
}
.price-card .amount { font-size: 62px; font-weight: 800; letter-spacing: -2px; margin: 10px 0 2px; color: var(--ink); }
.price-card .amount span { font-size: 22px; color: var(--muted); font-weight: 600; }
.price-card .once { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.price-list { text-align: left; display: grid; gap: 12px; margin: 0 auto 30px; max-width: 300px; }
.price-list li { list-style: none; display: flex; gap: 11px; align-items: flex-start; color: #374151; font-size: 14.5px; }
.price-list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px; background: #ffffff; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 19px 22px; font-weight: 700; font-size: 15.5px;
  color: var(--text); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--green-deep); font-size: 22px; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* CTA band — black, like the START button */
.cta-band {
  text-align: center;
  background: var(--black);
  border-radius: 28px; padding: 68px 32px;
}
.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em;
  font-weight: 800; color: #ffffff;
}
.cta-band p { color: var(--dim); font-size: 17px; margin: 14px auto 30px; max-width: 44ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 52px 0 60px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 12px; }
.footer-tag { color: var(--dim); font-size: 14px; max-width: 30ch; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px; font-weight: 700;
}
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; font-weight: 500; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline);
  color: var(--dim); font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: var(--muted); font-weight: 500; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Legal document pages ---------- */
.doc { padding: 64px 0 40px; }
.doc-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.doc .back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 32px;
}
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; color: var(--ink); }
.doc .updated { color: var(--dim); font-size: 14px; margin-top: 10px; margin-bottom: 8px; }
.doc .tldr {
  background: var(--green-dim); border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 28px 0 8px;
  color: var(--green-ink); font-size: 15px;
}
.doc .tldr strong { color: #047857; }
.doc h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin: 42px 0 12px; color: var(--text); }
.doc h3 { font-size: 16.5px; font-weight: 700; margin: 26px 0 8px; color: var(--text); }
.doc p { color: var(--body); margin-bottom: 14px; font-size: 15.5px; }
.doc ul { color: var(--body); margin: 0 0 16px 0; padding-left: 22px; }
.doc li { margin-bottom: 9px; font-size: 15.5px; }
.doc strong { color: var(--text); }
.doc a { font-weight: 600; }
.doc .contact-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 22px; margin-top: 18px;
}

/* ---------- Interactive hero demo ---------- */
.hero-demo {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  justify-self: center;
}
.voice-chips {
  display: flex; gap: 8px; margin-top: 22px;
  justify-content: center; flex-wrap: wrap;
}
.voice-chip {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid transparent;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.voice-chip:hover { transform: translateY(-2px) scale(1.05); }
.voice-chip.sel {
  border-color: var(--text);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.14);
}
.voice-caption {
  margin-top: 12px; font-size: 13.5px; color: var(--muted);
  text-align: center; max-width: 36ch; min-height: 1.5em;
}
.voice-caption strong { color: var(--text); font-weight: 700; }
.demo-moments { display: flex; gap: 10px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.moment {
  border: 1px solid var(--border); background: #ffffff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; font-family: inherit;
  color: var(--text); cursor: pointer;
  transition: all 0.15s ease;
}
.moment:hover { border-color: #9ca3af; transform: translateY(-1px); }
.moment.playing { background: var(--black); border-color: var(--black); color: #ffffff; }
.demo-hint { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 14px; }

/* Tiny equalizer shown in the coach bubble while audio plays */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; margin-left: 8px; }
.eq i { width: 3px; height: 6px; background: var(--green-deep); border-radius: 2px; animation: eqb 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
@keyframes eqb { 0%, 100% { height: 4px; } 50% { height: 10px; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 8px; } }
