/* ============================================================
   Jumpable — styles.css
   Palette: OLED black / white / Jumpable jump-height mint-teal (#00DAC3,
   matches ThemeColor.height in the watch app)
   Type: system stack (SF Pro on Apple devices), SF Mono for metrics
   ============================================================ */

:root {
  --black: #000000;
  --panel: #0c1013;
  --panel-2: #10151a;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f5f7f8;
  --mut: #98a2a8;
  --teal: #00dac3;
  --teal-soft: rgba(0, 218, 195, 0.14);
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Never allow page-level horizontal scroll (clip, not hidden, so
   position: sticky keeps working) */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

.metric-num {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--teal);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow svg { flex: none; }

.lead { color: var(--mut); font-size: 1.15rem; max-width: 42em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav .brand:hover { text-decoration: none; }
.nav .brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--mut);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.nav-cta {
  color: var(--black);
  background: var(--teal);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-links a.nav-cta:hover { filter: brightness(1.1); }

/* Hamburger (mobile) */
.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
}

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

section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.hero { padding: 48px 0 88px; }

/* Copy sits top-left, compact stats fill the whitespace under it, and the
   tall 9:16 video spans both rows — more detail above the fold. On mobile
   the video stays right after the copy so it isn't pushed down by stats. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy  media"
    "stats media";
  gap: 24px 56px;
  align-items: center;
}
.hero-copy { grid-area: copy; }
/* Cap the 9:16 video's width so its height doesn't push the whole
   hero (and the stats row) below the fold on ~900px-tall screens. */
.hero-grid .vid-frame { grid-area: media; max-width: 400px; justify-self: center; }
.hero-grid .stats { grid-area: stats; align-self: end; }
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "copy" "media" "stats";
  }
}

.hero .kicker {
  color: var(--mut);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.hero .kicker strong { color: var(--ink); font-weight: 600; }

/* Signature: the jump trace */
.jump-trace { margin: 18px 0 26px; overflow: visible; }
.jump-trace path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.jump-trace.draw path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: trace-draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.3s forwards;
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 600px) {
  .cta-row { justify-content: center; }
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--black);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1.02rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.badge-appstore img { height: 46px; width: auto; }

/* ---------- Video frames ---------- */

.vid-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.vid-frame video { width: 100%; height: auto; }

/* ---------- Stats (watch-complication style) ---------- */

.stats {
  display: grid;
  /* Content-driven columns: each card needs ≥210px, so the layout
     collapses 3 → 2 → 1 as space runs out — row on desktop, column on
     phones, with no hardcoded viewport breakpoint. */
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.stat .metric-label {
  color: var(--mut);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.stat p { margin: 10px 0 0; color: var(--ink); font-weight: 500; }

/* Compact hero variant: three centered mini-cards that stay 3-across
   even on phones — the numbers are short enough to share one row. */
.hero-grid .stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0;
}
.hero-grid .stat { padding: 14px 10px; text-align: center; }
.hero-grid .stat .metric-num { font-size: clamp(1.2rem, 2.2vw, 1.6rem); white-space: nowrap; }
.hero-grid .stat .metric-label { font-size: 0.68rem; letter-spacing: 0.08em; margin-top: 2px; }
.hero-grid .stat p { margin-top: 6px; font-size: 0.8rem; }

/* ---------- Evidence quotes ---------- */

.evidence {
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 48px 0 0;
  color: var(--ink);
  font-size: 1rem;
}
.evidence cite { display: block; margin-top: 8px; font-style: normal; }

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* Mobile: swipeable row with snap points instead of stacking */
@media (max-width: 720px) {
  .quotes {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 85%; scroll-snap-align: center; }
}

.quote {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
/* One quote showing: center it as a pull-quote instead of a 3-wide grid.
   Also overrides the mobile swipe-carousel — nothing to swipe through. */
.quotes.single { display: block; max-width: 680px; margin: 0 auto; }
.quotes.single .quote { flex: none; }
/* A lone pull-quote doesn't need the full 88px section band; this
   self-reverts when "single" is removed to restore the 3-up grid. */
section:has(.quotes.single) { padding: 56px 0; }
.quote p { margin: 0 0 14px; font-size: 1.06rem; }
.quote footer { color: var(--mut); font-size: 0.92rem; }
.quote footer strong { color: var(--ink); }

/* ---------- Feature split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 22px 0 0; }
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.feature-list li::before { content: "•"; color: var(--teal); font-weight: 700; }
.feature-list li:last-child { border-bottom: 0; }

/* Sticky product frame: video pins while feature bullets scroll past
   and highlight one at a time (desktop only). The portrait video must be
   shorter than the text column or sticky has no room to travel, so cap
   its width. */
@media (min-width: 881px) {
  .split.sticky-media { align-items: start; }
  .split.sticky-media .vid-frame {
    position: sticky;
    top: 92px;
    max-width: 340px;
    justify-self: center;
  }
}
.feature-list.tracked li { color: var(--mut); transition: color 0.3s, transform 0.3s; }
.feature-list.tracked li::before { color: var(--mut); transition: color 0.3s; }
.feature-list.tracked li.active { color: var(--ink); transform: translateX(4px); }
.feature-list.tracked li.active::before { color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  .feature-list.tracked li { transition: none; transform: none; }
  .feature-list.tracked li.active { transform: none; }
}

/* ---------- Return to sport ---------- */

.rts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 880px) { .rts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rts-grid { grid-template-columns: 1fr; } }

.rts-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.rts-card h3 { color: var(--teal); font-size: 1.05rem; margin-bottom: 6px; }
.rts-card p { margin: 0; color: var(--mut); font-size: 0.98rem; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--teal); background: var(--panel-2); }
.plan .plan-tag { color: var(--mut); font-size: 0.9rem; margin-bottom: 8px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price .metric-num { font-size: 2.2rem; color: var(--ink); }
.plan.featured .price .metric-num { color: var(--teal); }
.plan .price span { color: var(--mut); }
.plan .price-alt { color: var(--mut); font-size: 0.95rem; margin: 4px 0 0; }
.plan ul.features { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.plan ul.features li { padding: 7px 0; display: flex; gap: 10px; font-size: 0.98rem; }
.plan ul.features li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.plan .btn { text-align: center; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--mut); }

/* ---------- Contact ---------- */

/* Centered section to match the final CTA above it; the form itself
   stays left-aligned inside its centered column so labels read normally */
#contact { text-align: center; }
#contact .lead { margin-left: auto; margin-right: auto; }
.contact-form { max-width: 560px; margin: 28px auto 0; text-align: left; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 18px 0 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  padding: 13px 15px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form button {
  margin-top: 22px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 64px;
  color: var(--mut);
  font-size: 0.95rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--mut); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.social { display: flex; gap: 16px; }
.social a {
  color: var(--mut);
  display: inline-flex;
  padding: 6px;
  border-radius: 8px;
}
.social a:hover { color: var(--teal); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

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

.prose { max-width: 720px; padding: 72px 0 96px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; letter-spacing: -0.015em; }
.prose p { color: var(--mut); }
.prose p strong { color: var(--ink); }
.prose .updated { color: var(--teal); font-size: 0.9rem; }
.about-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  max-width: 320px;
  margin: 28px 0;
}

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

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .jump-trace.draw path { animation: none; stroke-dashoffset: 0; }
  .burger span { transition: none; }
}
