/* Swingo website. Dark like the app's dark mode: near-black, ivory text, gold accent, ready green for drills. */
:root {
  --bg: #0A0A0A;
  --bg-deep: #000000;
  --raised: #111111;
  --raised-2: #171717;
  --ink: #F2EEDF;
  --muted: #A3A29B;
  --faint: #6E6D67;
  --gold: #E9C24B;
  --gold-wash: rgba(233, 194, 75, 0.12);
  --green: #4CD787;
  --line: rgba(242, 238, 223, 0.08);
  --line-2: rgba(242, 238, 223, 0.14);
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1152px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gold { color: var(--gold); }

h1 {
  font-size: clamp(46px, 6.4vw, 80px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.048em;
}
h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
}
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.012em; }

.lede { margin-top: 20px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--muted); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow.green { color: var(--green); }
.eyebrow.faint { color: var(--faint); margin-bottom: 12px; }
.eyebrow.center { text-align: center; color: var(--muted); }

/* Header */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* App Store button */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 26px 0 22px;
  background: #fff; color: #000;
  border-radius: 16px;
  font-weight: 700; font-size: 21px; letter-spacing: -0.02em; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.25);
}
.store:hover { box-shadow: 0 14px 36px -10px rgba(255, 255, 255, 0.35); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; margin-top: -3px; }
.store span { display: flex; flex-direction: column; gap: 3px; }
.store small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: #444; }
.store-sm { height: 50px; padding: 0 20px 0 16px; border-radius: 13px; font-size: 18px; box-shadow: none; }
.store-sm svg { width: 22px; height: 22px; }
.store-sm small { font-size: 11px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 96px; min-height: 760px; }
.hero-photo { position: absolute; inset: 0 auto 0 0; width: 62%; pointer-events: none; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 25%;
  opacity: 0.34; filter: saturate(0.75) contrast(1.05);
  -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 92%), linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 25%, transparent 92%), linear-gradient(to bottom, #000 60%, transparent);
  mask-composite: intersect;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 20% 40%, transparent 30%, rgba(10,10,10,.7) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; min-height: 560px; }
.hero-copy .lede { margin-top: 26px; max-width: 30em; }
.hero-copy .store { margin-top: 40px; }
.hero-device { position: relative; display: flex; justify-content: center; }

/* Phone frame around the app screens */
.phone {
  --w: 330px;
  position: relative; z-index: 1;
  width: var(--w); max-width: 100%;
  padding: 11px;
  border-radius: calc(var(--w) * 0.165);
  background: #050505;
  box-shadow:
    0 0 0 1.5px #2b2b2d,
    0 0 0 4px #161618,
    0 0 0 5px #48484b,
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 30px 60px -40px rgba(0, 0, 0, 0.8);
}
.phone img { width: 100%; height: auto; border-radius: 13% / 5.8%; }
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 2px; background: #3a3a3d;
}
.phone::before { left: -8px; top: 22%; height: 9%; box-shadow: 0 calc(var(--w) * 0.24) 0 #3a3a3d; }
.phone::after { right: -8px; top: 28%; height: 14%; }

/* Soft light behind devices and the closing headline. Radial gradients that reach zero before their box ends, so no edge shows. */
.glow { position: absolute; pointer-events: none; }
.glow-gold { width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(233, 194, 75, 0.17), rgba(233, 194, 75, 0.05) 55%, transparent); }
.glow-green { width: 900px; height: 900px; right: -260px; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(76, 215, 135, 0.11), rgba(76, 215, 135, 0.03) 55%, transparent); }
.glow-cta { width: 1000px; height: 520px; left: 50%; top: 0; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(233, 194, 75, 0.13), rgba(233, 194, 75, 0.04) 55%, transparent); }

/* Clubs marquee */
.clubs {
  position: relative; overflow: hidden; isolation: isolate;
  height: 380px; display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 90% at 50% 70%, #0d1a14 0%, var(--bg) 70%);
}
.stage { position: absolute; inset: 0; perspective: 900px; z-index: -1; }
.floor {
  position: absolute; left: 50%; top: 66%; width: 820px; height: 820px; margin: -410px 0 0 -410px;
  border-radius: 50%;
  transform: rotateX(74deg);
  background:
    repeating-radial-gradient(circle, rgba(242, 238, 223, 0.07) 0 1px, transparent 1.5px 44px),
    radial-gradient(circle, rgba(13, 42, 31, 0.95) 0%, rgba(13, 42, 31, 0.4) 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  mask-image: radial-gradient(circle, #000 40%, transparent 70%);
}
.ball {
  position: absolute; left: 50%; top: 50%; width: 148px; height: 148px; margin: -58px 0 0 -74px;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #f4f1e7 28%, #d9d4c6 60%, #8e897d 100%);
  box-shadow: inset -12px -18px 32px rgba(0, 0, 0, 0.35);
}
.ball::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image:
    radial-gradient(circle, rgba(70, 64, 52, 0.26) 0 2.1px, transparent 2.9px),
    radial-gradient(circle, rgba(70, 64, 52, 0.26) 0 2.1px, transparent 2.9px);
  background-size: 12px 10.4px;
  background-position: 0 0, 6px 5.2px;
  -webkit-mask-image: radial-gradient(circle at 44% 40%, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle at 44% 40%, #000 25%, transparent 70%);
  animation: roll 14s linear infinite;
}
.ball::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85), transparent 26%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.32), transparent 55%);
}
.ball-shadow {
  position: absolute; left: 50%; top: 50%; width: 170px; height: 34px; margin: 78px 0 0 -85px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.75); filter: blur(10px);
}
@keyframes roll { to { background-position: 120px 0, 126px 5.2px; } }

.marquee {
  margin-top: 6px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 56px; padding-right: 56px; animation: slide 46s linear infinite; }
.marquee-track span {
  font-size: clamp(56px, 8vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.15; white-space: nowrap;
  color: var(--ink);
}
.marquee-track .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(242, 238, 223, 0.5); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: 128px 0; }
.section-tight { padding-top: 32px; }
.feature { overflow: hidden; background: var(--bg-deep); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split h2 { max-width: 12em; }
.device { position: relative; display: flex; justify-content: center; }

/* Example swing card */
.swing-card {
  max-width: 440px;
  background: linear-gradient(180deg, #151515, #0f0f0f);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.sc-top { display: flex; justify-content: space-between; align-items: center; }
.sc-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.sc-badge { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(233,194,75,.6); display: grid; place-items: center; }
.sc-badge svg { width: 16px; height: 16px; fill: var(--gold); }
.sc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 16px; }
.ring {
  --p: .5;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(closest-side, #131313 80%, transparent 81%),
    conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(242,238,223,.1) 0);
}
.ring span { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.sc-title h3 { font-size: 20px; letter-spacing: -0.03em; font-weight: 800; }
.sc-title p { font-size: 14px; color: var(--muted); }
.sc-side { text-align: right; }
.sc-side strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.sc-side span { font-size: 12px; color: var(--muted); }
.sc-stats {
  margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(242,238,223,.03); border: 1px solid var(--line); border-radius: 16px;
}
.sc-stats div { padding: 12px 14px; }
.sc-stats div + div { border-left: 1px solid var(--line); }
.sc-stats dt { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.sc-stats dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.ok { color: var(--green); }
.warn { color: var(--gold); }
.sc-bar { margin-top: 18px; }
.sc-bar-labels, .sc-bar-values { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.sc-bar-values strong { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.bar { position: relative; height: 8px; margin: 8px 0; border-radius: 4px; background: rgba(242,238,223,.1); }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--gold); }
.bar b { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 1px; background: var(--ink); }
.sc-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Numbered steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--gold); background: var(--gold-wash);
}
.steps p { margin-top: 4px; color: var(--muted); font-size: 16px; }

/* Check lists */
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 15px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.checks.green li::before { border-color: var(--green); }

/* Floating pill over the drill phone, like the App Store screenshot. It sits exactly over the pill
   drawn into the screenshot (66.5% across, 60.7% down the screen), which is cut off at the screen edge. */
.float-pill {
  position: absolute; z-index: 2;
  left: calc(11px + (100% - 22px) * 0.665);
  top: calc(11px + (100% - 22px) * 0.607);
  transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 16px; border-radius: 26px;
  background: #fff; color: #111; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.float-pill i { width: 16px; height: 16px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(76, 215, 135, 0.22); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-row > div { padding: 44px 28px 44px 0; }
.stats-row > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.stats-row strong { display: block; font-size: clamp(44px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.stats-row span { display: block; margin-top: 10px; max-width: 15em; font-size: 15px; color: var(--muted); }

/* Bento */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--raised); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; overflow: hidden; position: relative;
}
.tile h3 { font-size: 19px; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tile .big { margin: 0 0 22px; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.tile .big span { color: var(--faint); }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; }
.tile-tall { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.tile-copy { max-width: 22em; }
.icon { width: 34px; height: 34px; margin-bottom: 22px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.panel {
  background: #0a0a0a; border: 1px solid var(--line-2); border-radius: 22px; padding: 18px 18px 16px;
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; font-weight: 700; font-size: 17px; }
.panel-score { text-align: right; font-size: 11px; font-weight: 500; color: var(--muted); }
.panel-score strong { display: block; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--gold); }
.radar { width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.radar .grid polygon, .radar .grid line { fill: none; stroke: rgba(242,238,223,.12); stroke-width: 1; }
.radar .shape { fill: rgba(233, 194, 75, 0.2); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.radar .dots circle { fill: var(--gold); }
.radar .dots .low { fill: #0a0a0a; stroke: var(--gold); stroke-width: 2.5; }
.radar text { fill: var(--muted); font-size: 10px; font-family: var(--display); }
.radar .v { fill: var(--ink); font-size: 14px; font-weight: 800; }
.radar .v.low { fill: var(--gold); }
.panel-note { margin-top: 6px !important; font-size: 13px !important; color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rows li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(242,238,223,.02);
}
.rows li.on { border-color: rgba(233, 194, 75, 0.55); background: var(--gold-wash); }
.rows strong { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; min-width: 2.2em; }
.rows li.on strong { color: var(--gold); }
.rows span { color: var(--muted); font-size: 15px; }

/* Honest panel */
.honest {
  background: var(--raised); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(28px, 5vw, 56px);
}
.honest h2 { max-width: 14em; }
.honest-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.honest-grid > div { padding: 24px; border-radius: 20px; background: rgba(242,238,223,.03); border: 1px solid var(--line); }
.honest-grid p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* CTA */
.cta { position: relative; overflow: hidden; padding: 120px 0 128px; text-align: center; }
.cta h2 { font-size: clamp(40px, 5.6vw, 72px); }
.cta p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.cta .store { margin-top: 36px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.tagline { margin-top: 14px; color: var(--muted); font-size: 15px; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 15px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-base { margin-top: 48px; font-size: 13px; color: var(--faint); }

/* Calm motion: content fades in place, nothing slides or bounces. */
.js .reveal { opacity: 0; transition: opacity .8s ease; }
.js .reveal.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .ball::before { animation: none; }
  .js .reveal { opacity: 1; transition: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding-top: 112px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; min-height: 0; }
  .hero-photo { width: 100%; height: 640px; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split.flip .device { order: 2; }
  .swing-card { max-width: 520px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .tile-tall { grid-column: span 2; }
  .tile-tall .rows { grid-template-columns: repeat(3, 1fr); }
  .honest-grid { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-row { height: 60px; }
  .store-sm { height: 42px; padding: 0 14px 0 12px; border-radius: 11px; font-size: 15px; gap: 8px; }
  .store-sm svg { width: 18px; height: 18px; }
  .store-sm small { font-size: 9px; }
  .hero { padding: 100px 0 72px; }
  .lede { font-size: 17px; }
  .phone { --w: 290px; }
  .section { padding: 88px 0; }
  .section-tight { padding-top: 16px; }
  .clubs { height: 300px; }
  .ball { width: 116px; height: 116px; margin: -46px 0 0 -58px; }
  .ball-shadow { width: 140px; margin: 60px 0 0 -70px; }
  .float-pill { height: 40px; font-size: 15px; padding: 0 14px 0 12px; gap: 8px; }
  .float-pill i { width: 12px; height: 12px; }
  #drills .phone { --w: 260px; margin-right: 48px; }
  .sc-head { grid-template-columns: auto 1fr; }
  .sc-side { display: none; }
  .swing-card { padding: 18px; }
  .sc-stats div { padding: 10px 11px; }
  .sc-stats dd { font-size: 14px; white-space: nowrap; }
  .stats-row > div { padding: 32px 16px 32px 0; }
  .stats-row > div + div { padding-left: 16px; }
  .stats-row > div:nth-child(3) { padding-left: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide, .tile-tall { grid-column: auto; }
  .tile-wide { grid-template-columns: 1fr; }
  .tile-tall .rows { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .honest { border-radius: 24px; }
}
