:root {
  /* Palette: slate + periwinkle / royal blue */
  --court: #3b5998;        /* brand blue: links, accents, active states */
  --court-deep: #2a4173;
  --cta: #0f172a;          /* dark slate primary button */
  --cta-hover: #1e293b;
  --optic: #93a8d1;        /* periwinkle accent */
  --optic-soft: #c5d2e8;
  --ink: #0f172a;
  --paper: #eef1ef;
  --card: #ffffff;
  --surface-alt: #f8fafc;
  --muted: #64748b;
  --line: #e2e8f0;
  --good: #3b5998;
  --warn: #c98a14;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, .hero-title, .band-title, .nav-brand, .match-name, .kit-value,
.setup-text, .footer-brand { font-family: var(--font-heading); }

* { box-sizing: border-box; margin: 0; padding: 0; }
/* The hidden attribute must always win, even over display:grid/flex rules
   (otherwise the gallery/table toggle and view switching don't hide). */
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* floating background orbs */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
}
.bg-orbs span:nth-child(1){ width: 420px; height: 420px; background: var(--optic); top: -120px; right: -80px; }
.bg-orbs span:nth-child(2){ width: 360px; height: 360px; background: #7fd6a6; bottom: -120px; left: -100px; }
.bg-orbs span:nth-child(3){ width: 280px; height: 280px; background: #aef0c8; top: 40%; right: 10%; opacity: .2; }

/* header / footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 920px; margin: 0 auto; padding: 22px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.02em; }
.brand .ball { font-size: 26px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.brand-name strong { color: var(--court); }
.ghost-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.ghost-link:hover { color: var(--court); }

.site-footer {
  max-width: 920px; margin: 32px auto; padding: 0 24px;
  color: var(--muted); font-size: 13px; text-align: center;
}

.container { max-width: 920px; margin: 0 auto; padding: 12px 24px 40px; }

/* panels */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  animation: rise .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel.center { text-align: center; }

/* intro */
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  font-weight: 700; color: var(--court); margin-bottom: 14px;
}
.intro h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
.lede { font-size: 18px; color: var(--muted); margin: 18px 0 28px; max-width: 56ch; }
.trust { list-style: none; display: flex; gap: 28px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.trust strong { display: block; font-size: 24px; color: var(--ink); }

/* buttons */
.btn {
  font: inherit; font-weight: 700; border: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; transition: transform .12s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.22); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: var(--court); color: #fff; box-shadow: 0 8px 20px rgba(59,89,152,.26); }
.btn-secondary:hover { background: var(--court-deep); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--court); background: #eef1f7; }

/* progress */
.progress { margin-bottom: 26px; }
.progress-bar { height: 8px; background: #e7ebf2; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--court), #6781b5); border-radius: 99px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.progress-label { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* question */
.q-title { font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.q-help { color: var(--muted); margin-bottom: 22px; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.option:hover { border-color: #bcc9e6; background: #f5f7fc; }
.option.selected { border-color: var(--court); background: #eef1f9; }
.option .dot {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #c7d0e0; margin-top: 2px; transition: all .15s;
  display: grid; place-items: center;
}
.option.selected .dot { border-color: var(--court); background: var(--court); box-shadow: inset 0 0 0 3px #fff; }
.option .opt-label { font-weight: 700; }
.option .opt-desc { color: var(--muted); font-size: 14px; }
.num-input {
  width: 100%; font: inherit; padding: 16px 18px; border: 2px solid var(--line);
  border-radius: 14px; outline: none;
}
.num-input:focus { border-color: var(--court); }

.survey-nav { display: flex; justify-content: space-between; margin-top: 28px; }

/* spinner */
.spinner {
  width: 46px; height: 46px; border-radius: 50%; margin: 8px auto 18px;
  border: 5px solid #e2e8f0; border-top-color: var(--court); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* results */
.results-head { margin-bottom: 22px; }
.results-head h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; }
.section-title { margin: 30px 0 14px; font-size: 18px; }

.ideal-card {
  background: linear-gradient(135deg, var(--court), var(--court-deep));
  color: #eaeefb; border-radius: 16px; padding: 24px; box-shadow: var(--shadow);
}
.ideal-card h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; margin-bottom: 16px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.spec-chip { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; }
.spec-chip .k { font-size: 12px; opacity: .8; }
.spec-chip .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ideal-notes { margin-top: 16px; display: grid; gap: 6px; }
.ideal-notes li { list-style: none; font-size: 14px; opacity: .92; padding-left: 18px; position: relative; }
.ideal-notes li::before { content: "›"; position: absolute; left: 4px; color: var(--optic); }

.match-list { display: grid; gap: 16px; }
.match {
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  background: #fff; transition: box-shadow .2s, transform .15s; position: relative; overflow: hidden;
}
.match:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.match.top { border-color: var(--court); box-shadow: var(--shadow-lg); }
.match-rank { position: absolute; top: 0; right: 0; background: var(--optic); color: var(--ink); font-weight: 800; font-size: 12px; padding: 6px 12px; border-bottom-left-radius: 12px; }
.match.top .match-rank { background: var(--court); color: #fff; }
.match-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.match-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.match-cat { color: var(--muted); font-size: 13px; font-weight: 600; }
.match-price { color: var(--court); font-weight: 700; }

.score-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.score-track { flex: 1; height: 10px; background: #e9edf4; border-radius: 99px; overflow: hidden; }
.score-bar { height: 100%; background: linear-gradient(90deg, #6781b5, var(--court)); border-radius: 99px; width: 0; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.score-pct { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }

.spec-line { color: var(--muted); font-size: 14px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.reasons { display: grid; gap: 6px; }
.reasons li { list-style: none; font-size: 14px; padding-left: 24px; position: relative; }
.reasons li.good::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.reasons li.warn::before { content: "!"; position: absolute; left: 6px; color: var(--warn); font-weight: 800; }

.results-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.disclaimer { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.racket-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.racket-table th, .racket-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.racket-table th { background: #f1f4f9; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); position: sticky; top: 0; }
.racket-table tbody tr:hover { background: #f5f7fc; }
.racket-table td:first-child { font-weight: 700; }

.error { color: #b3261e; font-weight: 600; }

/* setup banner */
.setup-banner {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px;
  padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(135deg, var(--optic), var(--optic-soft));
  border: 1px solid #cfe26a; box-shadow: var(--shadow);
}
.setup-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #5c6b1e; }
.setup-text { font-size: clamp(17px, 3vw, 22px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* new 2026 badge */
.new-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  background: var(--court); color: #fff; padding: 3px 8px; border-radius: 999px;
}

/* small pills */
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 6px; }
.pill-soft { background: #e8edf8; color: var(--court); border: 1px solid #c3d0ec; }

/* kit cards (tension + grip) */
.kit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.kit-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff;
  box-shadow: var(--shadow);
}
.kit-icon { font-size: 26px; }
.kit-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-top: 6px; }
.kit-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--court); }
.kit-sub { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.kit-notes { display: grid; gap: 6px; }
.kit-notes li { list-style: none; font-size: 13px; color: var(--muted); padding-left: 16px; position: relative; }
.kit-notes li::before { content: "›"; position: absolute; left: 2px; color: var(--court); }

@media (max-width: 560px) {
  .kit-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .panel { padding: 26px 20px; }
  .trust { gap: 18px; }
  .survey-nav .btn, .results-actions .btn { flex: 1; }
}

/* browse extras */
.muted-count { color: var(--muted); font-weight: 600; font-size: 16px; }
#browseFilter { margin-bottom: 16px; }

/* ============================================================
   app shell: nav, hero, 3D court, bands, footer
   ============================================================ */

:root { --nav-h: 64px; }
html { scroll-behavior: smooth; }
body { background: var(--paper); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.view-pad { padding-top: 40px; padding-bottom: 64px; }
.center { text-align: center; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 244, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(19,74,49,.06); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px; }
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink); font-size: 20px; letter-spacing: -.02em; font-weight: 700; }
.nav-brand strong { color: var(--court); }
.nav-ball { font-size: 22px; }
.nav-tabs { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.nav-tab { position: relative; text-decoration: none; color: var(--muted); font-weight: 600;
  font-size: 15px; padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-tab:hover { color: var(--court); background: #eef1f7; }
.nav-tab.active { color: var(--court); }
.nav-tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--court); border-radius: 2px; }
.nav-cta { margin-left: auto; }
.nav-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

@media (max-width: 820px) {
  .nav-tabs, .nav-cta { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav.nav-open .nav-tabs {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 16px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.nav-open .nav-tab { padding: 12px; font-size: 16px; }
  .nav.nav-open .nav-cta { display: block; margin: 8px 16px 14px; text-align: center; }
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, #dbe4f5 0%, rgba(219,228,245,0) 60%),
    radial-gradient(700px 500px at 0% 110%, #e2e8f5 0%, rgba(226,232,245,0) 55%),
    var(--paper);
}
.hero-grid { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 7vw, 84px) 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 0; }
.hl { color: var(--court); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6%; height: .34em;
  background: var(--optic); opacity: .55; z-index: -1; border-radius: 3px; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 52ch; margin: 22px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 3D BALL STAGE ---------- */
.hero-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ball-stage { width: min(100%, 460px); aspect-ratio: 1; position: relative;
  display: grid; place-items: center;
  filter: drop-shadow(0 30px 50px rgba(80,110,20,.28)); }
.ball-canvas { width: 100% !important; height: 100% !important; touch-action: none; }
.ball-hint { margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; opacity: .8; }
/* CSS fallback ball (only shown if 3D fails) */
.ball-fallback { width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f0ff75, #d4ee3f 55%, #aac326 100%);
  box-shadow: inset -18px -22px 40px rgba(0,0,0,.18), inset 14px 16px 30px rgba(255,255,255,.4);
  position: relative; animation: spin-ball 9s linear infinite; }
.ball-fallback::before, .ball-fallback::after { content: ""; position: absolute; inset: 6% ;
  border-radius: 50%; border: 7px solid #fbfbf2; }
.ball-fallback::before { clip-path: inset(0 0 50% 0); transform: rotate(18deg) scaleX(1.35); }
.ball-fallback::after { clip-path: inset(50% 0 0 0); transform: rotate(18deg) scaleX(1.35); }
@keyframes spin-ball { to { transform: rotate(360deg); } }

/* ---------- BANDS ---------- */
.band { padding: clamp(48px, 8vw, 88px) 0; }
.band-alt { background: linear-gradient(180deg, #fff, var(--surface-alt)); border-block: 1px solid var(--line); }
.eyebrow.center { text-align: center; }
.band-title { text-align: center; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; margin: 6px 0 10px; }
.band-lead { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 28px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--court); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 14px; }

/* map grid */
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.map-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transition: transform .15s, box-shadow .2s, border-color .15s; }
.map-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #bcc9e6; }
.map-emoji { font-size: 30px; }
.map-title { font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.map-desc { color: var(--muted); font-size: 14px; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 26px auto 0; }
.compare-col { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.compare-col h3 { font-size: 18px; margin-bottom: 14px; }
.compare-col--us { border-color: var(--court); box-shadow: var(--shadow-lg); }
.x-list, .check-list { list-style: none; display: grid; gap: 10px; }
.x-list li, .check-list li { padding-left: 28px; position: relative; color: var(--ink); font-size: 15px; }
.x-list li::before { content: "✕"; position: absolute; left: 2px; color: #c0524a; font-weight: 800; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 800; }

/* sample */
.sample { max-width: 760px; margin: 26px auto 0; text-align: center; }
.sample-banner { background: linear-gradient(135deg, var(--court), var(--court-deep)); color: #eaeefb;
  border-radius: 16px; padding: 22px; font-size: 14px; box-shadow: var(--shadow); }
.sample-banner strong { font-size: 19px; letter-spacing: -.02em; }
.sample-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 22px; }
.sample-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 2px; }
.sample-k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.sample-v { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--court); }
.sample-d { font-size: 12px; color: var(--muted); }

/* faq accordion */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--court); font-size: 22px; font-weight: 700; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 18px; margin: 0; }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--court-deep), var(--court)); color: #eaeefb;
  padding: clamp(48px, 8vw, 80px) 0; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; }
.cta-band p { opacity: .85; margin: 8px 0 24px; }

/* prose / guide */
.prose { font-size: 16px; color: var(--ink); }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose h3 { margin: 26px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.guide-list { list-style: none; display: grid; gap: 10px; margin: 8px 0 28px; }
.guide-list li { padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; font-size: 14px; color: var(--muted); }
.guide-list strong { color: var(--ink); }

/* footer */
.site-footer-lg { background: #0f172a; color: #c7d0e0; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; color: #fff; font-weight: 700; font-size: 20px; }
.footer-brand strong { color: var(--optic); }
.footer-brand p { color: #93a3c0; font-size: 14px; font-weight: 400; max-width: 34ch; margin-top: 4px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: #93a3c0; text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--optic); }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 34px; padding-top: 18px;
  color: #7e8aa6; font-size: 13px; }

/* responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
  .hero-stage { order: -1; }
  .ball-stage { width: min(80%, 340px); }
  .steps, .sample-row { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps, .map-grid, .sample-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Additions: spinning logo cube, language picker, gallery,
   segmented toggle, results media
   ============================================================ */

/* ---------- spinning tennis-ball logo (top-left + footer) ---------- */
.logo-ball {
  width: 24px; height: 24px; border-radius: 50%; position: relative; display: inline-block;
  flex: 0 0 auto; overflow: hidden;
  background: radial-gradient(circle at 35% 28%, #f2ff7a 0%, #ddf24a 45%, #b9d233 75%, #97b328 100%);
  box-shadow: inset -3px -4px 7px rgba(0, 0, 0, .28), inset 3px 3px 6px rgba(255, 255, 255, .55);
  animation: ball-roll 3.6s linear infinite;
}
.logo-ball::before, .logo-ball::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 2px solid #fbfbf2;
}
.logo-ball::before { clip-path: inset(0 0 50% 0); transform: rotate(18deg) scaleX(1.4); }
.logo-ball::after  { clip-path: inset(50% 0 0 0); transform: rotate(18deg) scaleX(1.4); }
.nav-brand:hover .logo-ball { animation-duration: 1.3s; }
.footer-brand .logo-ball { width: 28px; height: 28px; }
@keyframes ball-roll { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo-ball { animation: none; } }

/* ---------- language picker ---------- */
.lang-wrap { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.lang-globe { font-size: 15px; line-height: 1; }
.lang-select {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; cursor: pointer; transition: border-color .15s;
}
.lang-select:hover { border-color: var(--court); }
.nav-cta { margin-left: 12px; }

/* ---------- segmented gallery/table toggle ---------- */
.browse-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.seg-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg {
  font: inherit; font-weight: 700; font-size: 13px; border: none; background: transparent;
  color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.seg.active { background: var(--court); color: #fff; }

/* ---------- gallery cards (generated racket/string artwork) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 16px; margin-top: 14px; }
.gcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  text-align: center; transition: transform .15s, box-shadow .2s, border-color .15s;
}
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bcc9e6; }
.gcard-media { height: 150px; display: grid; place-items: center; margin-bottom: 10px; }
.gcard-media svg { height: 100%; width: auto; max-width: 100%; }
.gcard-media--string svg { height: 128px; }
.gcard-media img.real-photo, .match-media img.real-photo { max-width: 100%; max-height: 100%; object-fit: contain; }
.gcard-media img.real-photo { max-height: 150px; }
.gcard-name { font-family: var(--font-heading); font-weight: 800; letter-spacing: -.01em; font-size: 15px; }
.gcard-meta { color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.gcard-spec { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- results: small artwork beside each match ---------- */
.match { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.match-media { width: 72px; display: grid; place-items: center; }
.match-media svg { max-width: 100%; max-height: 104px; width: auto; height: auto; }
@media (max-width: 480px) {
  .match { grid-template-columns: 54px 1fr; gap: 12px; }
  .match-media { width: 54px; }
}

/* ---------- string tier badges ---------- */
.tier-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff;
  vertical-align: middle; margin-left: 4px; font-family: var(--font); }
.tier-S { background: #16a34a; }
.tier-A { background: #3b5998; }
.tier-B { background: #64748b; }
.tier-C { background: #94a3b8; }
.tier-D { background: #b45309; }

/* ---------- customization tips card (results) ---------- */
.custom-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; background: #fff; box-shadow: var(--shadow); }
.custom-card:empty { display: none; }
.custom-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.custom-sw { font-size: 18px; font-weight: 800; color: var(--court); letter-spacing: -.02em; }
.custom-tips { display: grid; gap: 8px; }
.custom-tips li { list-style: none; font-size: 14px; color: var(--ink); padding-left: 18px; position: relative; }
.custom-tips li::before { content: "\203A"; position: absolute; left: 2px; color: var(--court); font-weight: 800; }
.custom-link { display: inline-block; margin-top: 14px; color: var(--court); font-weight: 700;
  text-decoration: none; font-size: 14px; }
.custom-link:hover { text-decoration: underline; }
