/* ============================================================
   Tennis Trackr — marketing site
   Brand: navy #4182C3 · green #92D250 · tennis-ball pop #CCFF00
   ============================================================ */

:root {
  --navy:        #0f2c47;   /* deep ink for text + dark sections */
  --navy-2:      #16324d;
  --blue:        #4182C3;   /* app primary */
  --blue-deep:   #3c638e;   /* court surface blue */
  --green:       #92d250;   /* app secondary */
  --green-deep:  #6c935c;   /* court buffer green */
  --ball:        #ccff00;   /* signature tennis-ball pop */
  --ball-soft:   #e6ff66;
  --paper:       #ffffff;
  --mist:        #f5f8fb;
  --mist-2:      #eef3f8;
  --line:        #e2e9f0;
  --ink:         #0f2c47;
  --ink-soft:    #4a5f74;
  --ink-faint:   #7d8fa1;
  --radius:      20px;
  --radius-sm:   12px;
  --shadow:      0 18px 50px -20px rgba(15, 44, 71, .28);
  --shadow-sm:   0 8px 24px -12px rgba(15, 44, 71, .25);
  --maxw:        1140px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 800; }

p { margin: 0; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 3px;
  background: var(--ball);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ball { background: var(--ball); color: var(--navy); }
.btn-ball:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgba(204,255,0,.7); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--ball);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* hamburger */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .22s ease, opacity .22s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown */
.mobile-menu {
  display: none; flex-direction: column; gap: 2px; padding: 8px 24px 20px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 17px; font-weight: 700; color: var(--ink-soft); padding: 13px 4px; border-bottom: 1px solid var(--mist-2); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu a.active { color: var(--blue); }
.mobile-menu .btn { margin-top: 14px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ball { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- interior page header ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(146,210,80,.16), transparent 60%),
    radial-gradient(700px 380px at 4% 0%, rgba(65,130,195,.12), transparent 55%),
    var(--mist);
  padding: 70px 0 64px; text-align: center;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 16px auto 16px; max-width: 760px; }
.page-hero h1 .hl { position: relative; white-space: nowrap; }
.page-hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .34em;
  background: var(--ball); border-radius: 4px; z-index: -1; opacity: .85;
}
.page-hero p { font-size: 19px; color: var(--ink-soft); max-width: 600px; margin: 0 auto; }
.page-hero .eyebrow { justify-content: center; }

/* download page hero (two-column) */
.download-hero {
  background:
    radial-gradient(1000px 480px at 90% -14%, rgba(146,210,80,.16), transparent 60%),
    radial-gradient(800px 420px at 4% 4%, rgba(65,130,195,.12), transparent 55%),
    var(--mist);
  padding: 72px 0 80px;
}
.dl-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.download-hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 18px; }
.download-hero h1 .hl { position: relative; white-space: nowrap; }
.download-hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .34em;
  background: var(--ball); border-radius: 4px; z-index: -1; opacity: .85;
}
.download-hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 500px; margin-bottom: 28px; }
@media (max-width: 900px) {
  .dl-grid { grid-template-columns: 1fr; text-align: center; gap: 10px; padding: 0; }
  .download-hero .lede { margin-left: auto; margin-right: auto; }
  .download-hero .badges, .download-hero .hero-meta, .download-hero .eyebrow { justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(146,210,80,.18), transparent 60%),
    radial-gradient(900px 480px at 6% 8%, rgba(65,130,195,.12), transparent 55%),
    var(--mist);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 84px 0 92px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  margin: 20px 0 20px;
}
.hero h1 .line { display: block; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .34em;
  background: var(--ball); border-radius: 4px; z-index: -1; opacity: .85;
}
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badge { transition: transform .18s ease; display: block; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { height: 54px; width: auto; display: block; border-radius: 11px; }
.hero-meta { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding: 56px 0 64px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .badges, .hero-meta { justify-content: center; }
  .eyebrow { justify-content: center; }
}

/* ---------- phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,255,0,.35), transparent 68%);
  top: 40%; left: 50%; transform: translate(-50%,-50%); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 288px; background: #0c1a2b; border-radius: 42px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(15,44,71,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.phone-screen {
  background: var(--mist); border-radius: 32px; overflow: hidden; height: 590px;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 26px; background: #0c1a2b; border-radius: 0 0 16px 16px; z-index: 3;
}
.ps-top { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; padding: 40px 20px 22px; }
.ps-hi { font-size: 13px; opacity: .82; font-weight: 600; }
.ps-name { font-size: 22px; font-weight: 800; margin-top: 2px; }
.ps-persona { display: inline-flex; gap: 6px; margin-top: 12px; }
.ps-pill { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.16); }
.ps-pill.on { background: var(--ball); color: var(--navy); }
.ps-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ps-card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.ps-card h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 10px; }
.ps-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-metric { }
.ps-metric .v { font-size: 24px; font-weight: 800; color: var(--navy); }
.ps-metric .v small { font-size: 13px; color: var(--green-deep); font-weight: 800; }
.ps-metric .k { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.ps-spark { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 6px; }
.ps-spark span { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; opacity: .35; }
.ps-spark span.hi { background: var(--ball); opacity: 1; }
.ps-goal { display: flex; align-items: center; gap: 10px; }
.ps-ring {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--green) 0 72%, var(--mist-2) 72% 100%);
  display: grid; place-items: center;
}
.ps-ring i { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--navy); font-style: normal; }
.ps-goal .t { font-size: 13px; font-weight: 700; color: var(--navy); }
.ps-goal .s { font-size: 11px; color: var(--ink-faint); }

/* ---------- logo strip ---------- */
.personas-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 14px 44px; flex-wrap: wrap; padding: 26px 0; }
.strip-inner span { font-weight: 700; color: var(--ink-faint); font-size: 15px; display: inline-flex; align-items: center; gap: 9px; }
.strip-inner span b { color: var(--navy); }
.strip-inner .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- section shell ---------- */
.section { padding: 92px 0; }
.section.mist { background: var(--mist); }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 14px; }
.section-head p { font-size: 18px; color: var(--ink-soft); }

/* ---------- features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(65,130,195,.14), rgba(146,210,80,.16)); margin-bottom: 18px;
}
.feature .ic svg { width: 26px; height: 26px; stroke: var(--blue); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }
.feature.pop { background: var(--navy); border-color: var(--navy); color: #fff; }
.feature.pop h3 { color: #fff; }
.feature.pop p { color: rgba(255,255,255,.72); }
.feature.pop .ic { background: rgba(204,255,0,.16); }
.feature.pop .ic svg { stroke: var(--ball); }

.center-link { text-align: center; margin-top: 40px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ball); color: var(--navy); font-weight: 800; display: grid; place-items: center;
  font-size: 17px; margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- personas cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px){ .cards3 { grid-template-columns: 1fr; } }
.pcard { border-radius: var(--radius); padding: 30px 28px; color: #fff; position: relative; overflow: hidden; min-height: 260px; display: flex; flex-direction: column; }
.pcard.player  { background: linear-gradient(155deg, #4182c3, #2f5f92); }
.pcard.parent  { background: linear-gradient(155deg, #6c935c, #4f7a45); }
.pcard.coach   { background: linear-gradient(155deg, #16324d, #0f2c47); }
.pcard .tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.pcard h3 { font-size: 24px; margin: 8px 0 14px; }
.pcard ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pcard li { font-size: 14.5px; padding-left: 26px; position: relative; opacity: .95; }
.pcard li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 8px;
  border-left: 2.5px solid var(--ball); border-bottom: 2.5px solid var(--ball);
  transform: rotate(-45deg);
}

/* ---------- CTA band ---------- */
.cta {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(146,210,80,.22), transparent 60%),
    radial-gradient(600px 320px at 90% 120%, rgba(204,255,0,.14), transparent 55%),
    var(--navy);
  color: #fff; border-radius: 28px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 540px; margin: 0 auto 30px; }
.cta .badges { justify-content: center; }

/* ---------- footer ---------- */
.footer { padding: 60px 0 40px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 12px; }
.footer .tag { color: var(--ink-faint); font-size: 14px; max-width: 300px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; font-weight: 600; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-faint); font-size: 14px; }
.footer-bottom a { font-weight: 600; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 60px 24px 90px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--blue); margin-bottom: 30px; font-size: 15px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-faint); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue); font-weight: 600; }

/* ============================================================
   Motion — "alive but not overwhelming"
   All effects are gated behind .js and prefers-reduced-motion.
   ============================================================ */

section[id] { scroll-margin-top: 88px; }

.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(15, 44, 71, .45); }

/* scroll-reveal: hidden until observed, then eases into place */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 85ms);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

/* gentle float on the hero phone + breathing glow behind it */
.phone { animation: tt-float 6.5s ease-in-out infinite; }
@keyframes tt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-stage::before { animation: tt-glow 6.5s ease-in-out infinite; }
@keyframes tt-glow {
  0%, 100% { opacity: .72; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* sparkline bars grow up when the phone scrolls into view */
.js .ps-spark span { transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .ps-spark span:nth-child(1) { transition-delay: .05s; }
.js .ps-spark span:nth-child(2) { transition-delay: .12s; }
.js .ps-spark span:nth-child(3) { transition-delay: .19s; }
.js .ps-spark span:nth-child(4) { transition-delay: .26s; }
.js .ps-spark span:nth-child(5) { transition-delay: .33s; }
.js .ps-spark span:nth-child(6) { transition-delay: .40s; }
.js .phone-stage.in .ps-spark span { transform: scaleY(1); }

/* the goal / avatar rings pop in with a soft overshoot */
.js .ps-ring { transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .35s; }
.js .phone-stage.in .ps-ring { transform: scale(1); }

/* buttons get a tactile press */
.btn:active { transform: translateY(0) scale(.97); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .ps-spark span,
  .js .ps-ring { opacity: 1 !important; transform: none !important; transition: none !important; }
  .phone, .phone-stage::before { animation: none !important; }
}

/* ============================================================
   Accurate in-app screen recreations (phone mockups)
   Home dashboard + on-court shot-logging, from the real UI.
   ============================================================ */

/* ---- Home dashboard ---- */
.phone-screen.home { background: var(--mist); }
.dash { padding: 30px 12px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.dash-persona { display: flex; gap: 6px; }
.dash-persona .chip { font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.dash-persona .chip.on { background: rgba(65,130,195,.14); color: var(--blue); }
.dash-persona .chip.add { background: var(--mist-2); color: var(--ink-faint); }

.dash-player { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; }
.dash-player .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(150deg, var(--blue), #2f5f92); border: 1.5px solid var(--blue); letter-spacing: .4px; }
.dash-player .pname { flex: 1; font-size: 15px; font-weight: 800; color: var(--navy); }
.dash-player .pname b { color: var(--blue); }
.dash-player .chev { width: 26px; height: 26px; border-radius: 50%; background: var(--mist); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-faint); font-size: 13px; }

.dash-h { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 2px 0; }
.dash-h-title { font-size: 17px; font-weight: 800; color: var(--navy); }
.dash-h-cap { font-size: 8px; font-weight: 800; letter-spacing: 1.2px; color: var(--ink-faint); }

.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; position: relative; overflow: hidden; }
.dash-card.screener::before, .dash-card.gotd::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #d4a017, transparent); }

.screener .period { display: flex; gap: 12px; font-size: 11px; font-weight: 800; color: var(--ink-faint); margin-bottom: 10px; }
.screener .period .on { color: var(--navy); position: relative; }
.screener .period .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--blue); border-radius: 2px; }
.screener .grp { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.screener .grp .g { font-size: 8px; font-weight: 800; letter-spacing: .5px; padding: 4px 7px; border-radius: 6px; background: var(--mist-2); color: var(--ink-faint); }
.screener .grp .g.fav { color: #d4a017; background: rgba(212,160,23,.16); }
.screener .grp .g.on { background: var(--navy); color: #fff; }
.screener .cols { display: grid; grid-template-columns: 1fr 40px 34px 24px; gap: 6px; font-size: 8px; font-weight: 800; letter-spacing: .6px; color: var(--ink-faint); padding-bottom: 6px; border-bottom: 1px solid var(--mist-2); }
.screener .cols span:not(:first-child) { text-align: right; }
.screener .mrow { display: grid; grid-template-columns: 1fr 40px 34px 24px; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--mist-2); }
.screener .mrow .m { font-size: 11px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 5px; }
.screener .mrow .m em { font-style: normal; font-size: 7px; font-weight: 800; letter-spacing: .4px; padding: 2px 4px; border-radius: 4px; }
.screener .mrow .m em.serve { background: rgba(26,111,209,.14); color: #1a6fd1; }
.screener .mrow .m em.ret { background: rgba(237,108,2,.16); color: #ed6c02; }
.screener .mrow .m em.gen { background: rgba(45,121,72,.16); color: #2d7948; }
.screener .spark { display: flex; align-items: flex-end; gap: 2px; height: 20px; }
.screener .spark i { flex: 1; background: var(--blue); opacity: .3; border-radius: 1px; }
.screener .spark i.hi { background: var(--ball); opacity: 1; }
.screener .val { font-size: 14px; font-weight: 800; color: var(--navy); text-align: right; }
.screener .val small { font-size: 9px; }
.screener .chg { font-size: 10px; font-weight: 800; text-align: right; }
.screener .chg.up { color: #2d7948; }
.screener .chg.dn { color: #d50000; }
.screener .seeall { font-size: 10px; font-weight: 700; color: var(--ink-faint); padding-top: 8px; }

.dash-gotd-cap { display: flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; color: #d4a017; padding: 2px; }
.dash-gotd-cap i { width: 5px; height: 5px; border-radius: 50%; background: #d4a017; }
.gotd .gotd-row { display: flex; align-items: center; gap: 12px; }
.gotd .ring { width: 44px; height: 44px; border-radius: 50%; flex: none; background: conic-gradient(var(--green) 0 72%, var(--mist-2) 72% 100%); display: grid; place-items: center; }
.gotd .ring b { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--navy); }
.gotd .gt { font-size: 13px; font-weight: 800; color: var(--navy); }
.gotd .gs { font-size: 10px; color: var(--ink-faint); }

/* ---- On-court shot logging ---- */
.court-screen { background: var(--mist); display: flex; flex-direction: column; }
.court-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.court-top .ct-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.court-top .ct-score { font-size: 13px; font-weight: 800; color: var(--ink-soft); letter-spacing: .5px; }
.court-wrap { padding: 0 14px; }
.court-wrap svg { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-sm); display: block; }
.court-entry { padding: 12px 14px; }
.ce-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ce-serve, .ce-side { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.ce-serve b { color: var(--blue); }
.ce-shots { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.shotrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.shotrow .pl { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.shotrow .pl.p1 { background: #1a1a1a; }
.shotrow .ace { margin-left: auto; font-size: 10px; font-weight: 800; color: #2d7948; background: rgba(45,121,72,.14); padding: 3px 8px; border-radius: 999px; }
.ce-add { width: 100%; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--font); font-weight: 800; font-size: 14px; padding: 12px; cursor: pointer; }

/* showcase two-column layout */
.showcase-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; }
.showcase-copy h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 16px; }
.showcase-copy p { font-size: 17px; color: var(--ink-soft); margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 600; color: var(--navy); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 9px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 20px; }
  .showcase .phone-stage { margin-top: 8px; }
}

/* animate sparklines + ring + court shot inside the phone */
.js .screener .spark i { transform: scaleY(0); transform-origin: bottom; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.js .phone-stage.in .screener .spark i { transform: scaleY(1); }
.js .gotd .ring { transform: scale(0); transition: transform .6s cubic-bezier(.34,1.56,.64,1) .35s; }
.js .phone-stage.in .gotd .ring { transform: scale(1); }
.js .court-shot { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1s ease .3s; }
.js .phone-stage.in .court-shot { stroke-dashoffset: 0; }
.js .court-ball, .js .court-racket { opacity: 0; transition: opacity .4s ease 1.2s; }
.js .phone-stage.in .court-ball, .js .phone-stage.in .court-racket { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .screener .spark i, .js .gotd .ring, .js .court-shot, .js .court-ball, .js .court-racket { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
}
