:root {
  --navy: #0F114C;
  --navy-2: #1a1d66;
  --ball: #FEE53C;
  --gold: #A57401;
  --ink: #1b1d33;
  --muted: #5b5e78;
  --paper: #ffffff;
  --soft: #f4f5fb;
  --line: #e2e4f0;
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--navy-2); }
a:hover { color: var(--gold); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(10, 20, 60, .18);
}
/* Keep section headings clear of the sticky header when jumping to them. */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { font-weight: 900; }
.brand span { color: var(--ball); }
.brand:hover { color: #fff; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #d6d8f5; text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ball); }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #262a8a 0%, var(--navy) 60%);
  color: #fff;
  padding: 56px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}
.hero h1 em { color: var(--ball); font-style: italic; }
.hero p.lead { font-size: 19px; color: #d6d8f5; margin: 0 0 28px; max-width: 34em; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}
.btn-primary { background: var(--ball); color: var(--navy); }
.btn-primary:hover { background: #fff07a; color: var(--navy); }
.btn-ghost { border: 1.5px solid #5257b8; color: #fff; }
.btn-ghost:hover { border-color: var(--ball); color: var(--ball); }
.note { font-size: 14px; color: #a9acdc; margin-top: 12px; }

/* Phone mockup: the frame sizes itself from the screen, the screen clips the screenshots */
.carousel { justify-self: center; display: grid; gap: 18px; justify-items: center; }
.phone {
  width: 290px;
  padding: 11px;
  background: #05061f;
  border-radius: 48px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2b2f7a;
}
.screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* makes Safari clip to the radius */
  isolation: isolate;
}
.track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.track.no-anim { transition: none; }
.screen-shot {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.dots { display: flex; justify-content: center; gap: 10px; }
.dots button {
  -webkit-appearance: none;
  appearance: none;
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px;
  background: #5257b8; cursor: pointer; transition: width 0.3s ease, background 0.3s ease;
}
.dots button[aria-selected="true"] { background: var(--ball); width: 26px; }
@media (prefers-reduced-motion: reduce) { .track, .dots button { transition: none; } }
@media (max-width: 420px) { .phone { width: 260px; } }

/* Coaching loop */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.loop-step p + p { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.chip.up { background: #e3f6e7; color: #1d7a34; }
.chip.hold { background: #eceef8; color: var(--navy-2); }
.chip.down { background: #fdeaea; color: #b4232a; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--soft); }
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--navy);
  line-height: 1.15;
}
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 8px;
}

.how-photo { margin: 36px 0 0; }
.how-photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(10, 20, 60, .18); }
.how-photo figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; text-align: center; }
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ball);
  font-weight: 900;
  display: grid;
  place-items: center;
}
.step h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.privacy-band {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.privacy-band h2 { color: #fff; }
.privacy-band p { color: #d6d8f5; margin: 0; }
.privacy-band .shield {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--ball);
  display: grid;
  place-items: center;
}

/* Prose pages */
.page-head { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.02em; }
.page-head p { margin: 0; color: #a9acdc; }
.prose { padding: 48px 0 72px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { color: var(--navy); margin-top: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.summary-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ball);
  border-radius: 14px;
  padding: 18px 22px;
}
.summary-box ul { margin: 8px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: var(--soft); }
.table-scroll { overflow-x: auto; }

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #fff;
}
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details p, details ul { color: var(--muted); }

/* Footer */
.site-footer { background: #090a33; color: #a9acdc; padding: 32px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #d6d8f5; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--ball); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .privacy-band { grid-template-columns: 1fr; padding: 26px; }
  .loop { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
    .site-nav { gap: 12px; }
  .site-nav a { font-size: 14px; }
}

/* Pricing */
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.plan h3 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.plan .price { margin: 0; font-size: 38px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.plan .price span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .price-note { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink); font-size: 15px; }
.plan li { margin: 6px 0; }
.plan.featured { background: var(--navy); border-color: var(--navy); box-shadow: 0 14px 34px rgba(10, 20, 60, .22); }
.plan.featured h3, .plan.featured .price, .plan.featured ul { color: #fff; }
.plan.featured .price span, .plan.featured .price-note { color: #c9cbef; }
.plan .badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--ball); color: var(--navy);
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.pricing-fine { color: var(--muted); font-size: 14px; max-width: 46em; margin: 24px 0 0; }
.pricing-buy {
  margin: 28px 0 0; padding: 16px 20px; max-width: 46em;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ball);
  border-radius: 12px; color: var(--ink); font-size: 15px;
}
.pricing-buy + .pricing-fine { margin-top: 14px; }

/* Progress at a glance */
.progress-glance { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 56px; }
.glance-title { font-size: 24px; color: var(--navy); margin: 0 0 8px; letter-spacing: -0.01em; }
.progress-glance .section-intro { margin-bottom: 16px; }
.glance-list { margin: 0; padding-left: 20px; color: var(--muted); }
.glance-list li { margin-bottom: 10px; }
.glance-list b { color: var(--navy); }
.mock-page { background: #f2f2f7; border-radius: 28px; padding: 22px 16px 16px; box-shadow: 0 12px 32px rgba(10, 20, 60, .16); border: 1px solid var(--line); }
.mock-title { font-weight: 800; font-size: 22px; color: #111; margin: 0 0 12px 4px; }
.mock-next { background: var(--navy); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.mock-next span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ball); }
.mock-next b { color: #fff; font-size: 15px; }
.mock-tiles { background: #fff; border-radius: 16px; padding: 12px 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mini-tile { text-align: center; font-size: 12px; }
.mini-tile b { display: block; color: #111; font-size: 12px; margin-bottom: 4px; }
.mini-tile svg { width: 100%; height: 26px; display: block; }
.mini-tile polyline { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-tile circle { fill: var(--gold); }
.mini-tile .base { stroke: #a0a0aa; stroke-width: 1; stroke-dasharray: 2 2; }
.mini-score { font-weight: 700; font-variant-numeric: tabular-nums; color: #111; }
.mini-score .up { color: #1d7a34; }
.mini-score .down { color: #c2620a; }
.mock-note { font-size: 12px; color: var(--muted); margin: 8px 4px 0; }
@media (max-width: 760px) { .progress-glance { grid-template-columns: 1fr; gap: 24px; } .mock-page { max-width: 360px; } }

/* Sticky header on phones (after the base header rules so it wins) */
@media (max-width: 640px) {
  [id] { scroll-margin-top: 104px; }
  /* Compact sticky header on phones: logo, then one swipeable row of links. */
  .site-header .wrap { padding-top: 10px; padding-bottom: 8px; gap: 6px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; gap: 18px; width: 100%; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; font-size: 14px; }
}

/* Privacy band inside How it works. */
.how-privacy { margin-top: 36px; }

/* Apple Watch remote */
section.dark { background: var(--navy); }
section.dark h2 { color: #fff; }
section.dark .section-intro, section.dark .note-small, section.dark .glance-list { color: #c9cbef; }
section.dark .glance-list b { color: #fff; }
section.dark .tag { color: var(--ball); }
.watch-feature { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; }
.watch-feature .tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 8px; }
.watch-feature .section-intro { margin-bottom: 16px; }
.watch-art { width: 100%; height: auto; }
.watch-art text { text-anchor: middle; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.watch-art .w-app { fill: var(--ball); font-size: 10px; font-weight: 700; text-anchor: start; }
.watch-art .w-time { fill: #fff; font-size: 10px; font-weight: 600; text-anchor: end; }
.watch-art .w-small { fill: #b9bccb; font-size: 10px; font-weight: 600; }
.watch-art .rec { fill: #ff3b30; }
.watch-art .w-btn { fill: #fff; font-size: 14px; font-weight: 800; }
.watch-art .w-score { fill: #fff; font-size: 36px; font-weight: 800; }
.watch-art .w-up { fill: #30d158; font-size: 9px; font-weight: 700; }
.watch-art .w-pill { fill: var(--ball); }
.watch-art .w-pill-text { fill: var(--navy); font-size: 9px; font-weight: 800; }
.note-small, section.dark .glance-list { color: #c9cbef; }
section.dark .glance-list b { color: #fff; }
section.dark .tag { color: var(--ball); }
.watch-feature { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; }
.watch-feature .tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 8px; }
.watch-feature .section-intro { margin-bottom: 16px; }
.watch-art { width: 100%; height: auto; }
.watch-art .band { fill: #3a3e9e; }
.watch-art .case { fill: #2a2e86; }
.watch-art .crown { fill: #4a4fb5; }
.watch-art .face { fill: #05061f; }
.watch-art text { text-anchor: middle; font-family: inherit; }
.watch-art .w-small { fill: #c9cbef; font-size: 11px; font-weight: 700; }
.watch-art .w-tiny { fill: #8e91b8; font-size: 10px; }
.watch-art .rec { fill: #e5383b; }
.watch-art .w-btn { fill: #fff; font-size: 14px; font-weight: 800; }
.watch-art .w-score { fill: #fff; font-size: 34px; font-weight: 800; }
.watch-art .w-up { fill: #5fd27a; font-size: 9px; font-weight: 700; }
.watch-art .w-pill { fill: var(--ball); }
.watch-art .w-pill-text { fill: var(--navy); font-size: 8px; font-weight: 800; }
.note-small { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
@media (max-width: 760px) { .watch-feature { grid-template-columns: 1fr; gap: 24px; } .watch-art { max-width: 320px; } }

/* Parents & coaches homepage (coach1) */
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ball); }
.mini-phone {
  width: 100%;
  max-width: 230px;
  padding: 7px;
  background: #05061f;
  border-radius: 36px;
  box-shadow: 0 16px 36px rgba(10, 20, 60, .22), inset 0 0 0 1.5px #2b2f7a;
}
.mini-phone img { width: 100%; border-radius: 30px; }
.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cycle-step { margin: 0; display: flex; flex-direction: column; align-items: center; }
.cycle-step .mini-phone { margin-bottom: 20px; }
.cycle-step figcaption { align-self: stretch; }
.cycle-step h3 { margin: 8px 0 6px; font-size: 18px; color: var(--navy); }
.cycle-step p { margin: 0; color: var(--muted); font-size: 15px; }
.cycle-step p + p { margin-top: 10px; }
.cycle-step .tag, .feature .tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold); background: #fff6c7; padding: 3px 10px; border-radius: 99px;
}
.cycle-note { color: var(--muted); max-width: 46em; margin: 36px 0 0; font-size: 15px; }
.feature { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature h2 { margin-top: 10px; }
.feature .section-intro { margin-bottom: 18px; }
.feature-phone { max-width: 260px; justify-self: center; }
@media (max-width: 920px) { .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature-phone { max-width: 220px; } }
@media (max-width: 480px) { .cycle { grid-template-columns: 1fr; } .cycle-step .mini-phone { max-width: 220px; } }
.feature-report { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.report-page { width: 100%; border-radius: 6px; box-shadow: 0 18px 40px rgba(10, 20, 60, .20); border: 1px solid var(--line); background: #fff; }
@media (max-width: 720px) { .feature-report { grid-template-columns: 1fr; } .report-page { max-width: 420px; justify-self: center; } }
.included { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.included h3 { margin: 0 0 12px; font-size: 18px; color: var(--navy); }
.included ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }
.included li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.included li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #1d7a34; }

/* Swing analysis section (swing1) */
#swing .feature { align-items: start; }
#swing .feature-phone { position: sticky; top: 90px; }
.feature-sub { margin: 26px 0 12px; font-size: 18px; color: var(--navy); }
.howto-list { margin: 0; padding: 0; list-style: none; counter-reset: howto; }
.howto-list li { counter-increment: howto; position: relative; padding-left: 40px; margin-bottom: 12px; color: var(--muted); }
.howto-list li::before {
  content: counter(howto); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ball); color: var(--navy);
  font-weight: 800; font-size: 14px; line-height: 26px; text-align: center;
}
.howto-list b { color: var(--navy); }
@media (max-width: 720px) { #swing .feature-phone { position: static; } }
.swing-shot img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 16px 36px rgba(10, 20, 60, .22); }

/* What's new */
.releases { padding: 48px 20px 72px; }
.release { position: relative; padding: 0 0 44px 32px; border-left: 2px solid var(--line); }
.release:last-of-type { border-left-color: transparent; }
.release::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.release:first-of-type::before { background: var(--ball); }
.release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-version { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.release-latest { font-size: 12px; font-weight: 800; background: var(--ball); color: var(--navy); border-radius: 999px; padding: 2px 10px; }
.release h2 { margin: 4px 0 8px; font-size: clamp(22px, 3vw, 28px); color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; }
.release-lead { margin: 0 0 18px; color: var(--muted); }
.release-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.release-list li { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.release-list strong { display: block; color: var(--ink); }
.releases-foot { color: var(--muted); padding-left: 32px; margin: 0; }
@media (max-width: 480px) {
  .releases { padding: 36px 16px 56px; }
  .release { padding-left: 22px; }
  .releases-foot { padding-left: 0; }
  .release-list li { padding: 12px 14px; }
}
.hero .note a { color: var(--ball); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero .note a:hover { text-decoration: underline; }

/* Slow-mo replay section (slowmo1): text left, screenshot right on wide screens */
.feature-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
.feature-flip > .feature-phone { order: 2; }
@media (max-width: 720px) { .feature-flip { grid-template-columns: 1fr; } .feature-flip > .feature-phone { order: 0; } }
