:root {
  --glass: #f4f7f9;
  --panel: #e6edf2;
  --ink: #0f2236;
  --muted: #4c6073;
  --line: #d0dbe4;
  --turf: #1b5da6;
  --turf-deep: #123f73;
  --turf-ink: #ffffff;
  --ball: #d8e84a;
  --ball-ink: #0f2236;
  --differ: #fbfde6;
  --focus: #1b5da6;
  --face: #1b5da6;
  --hole: #f4f7f9;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass: #0d1b2a;
    --panel: #15283c;
    --ink: #e7eff6;
    --muted: #9fb2c4;
    --line: #26405a;
    --turf: #6aa5e6;
    --turf-deep: #12345c;
    --turf-ink: #0d1b2a;
    --differ: #1c2f22;
    --focus: #d8e84a;
    --face: #3f86d6;
    --hole: #0d1b2a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--glass); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); font-variation-settings: "wdth" 100; }

a { color: var(--turf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.05; margin: 0; font-variation-settings: "wdth" 72; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.15rem); font-weight: 750; margin-top: 2.75rem; }
h3 { font-size: 1.35rem; font-weight: 750; margin-top: 1.5rem; }
p, ul, ol, table, dl { margin: 0.85rem 0 0; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose li + li { margin-top: 0.35rem; }
.small { font-size: 0.9rem; color: var(--muted); }
.na { color: var(--muted); font-style: italic; font-size: 0.92em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--glass); padding: 0.5rem 1rem; z-index: 10; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--glass); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.35rem; font-variation-settings: "wdth" 72; }
.brand svg { width: 1.75rem; height: 1.75rem; }
.site-head nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.site-head nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }
.site-head nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ball); }

.site-foot { margin-top: 5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: grid; gap: 0.75rem; padding-block: 1.5rem 2.5rem; }
.site-foot p { margin: 0; max-width: 80ch; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.55rem 1.15rem; border: 2px solid var(--turf); border-radius: 999px; background: var(--turf); color: var(--turf-ink); font: 700 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--turf-deep); border-color: var(--turf-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--turf); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); border-color: var(--turf); }
.btn-shop { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); }
.btn-shop:hover { background: #c8d93a; border-color: #c8d93a; color: var(--ball-ink); }
.btn-small { min-height: 2.25rem; padding: 0.35rem 0.85rem; font-size: 0.92rem; }
.btn-big { min-height: 3.25rem; padding-inline: 1.75rem; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

/* Racket drawing */
.rk { display: block; flex: none; overflow: visible; }
.rk-img { object-fit: contain; background: #fff; border-radius: 10px; }
.rk-face { fill: var(--face); }
.rk-holes { fill: var(--hole); }
.rk-handle { fill: var(--ink); }
.rk-bal { fill: var(--ball); stroke: var(--ink); stroke-width: 2.2; }

/* Hero: the court */
.hero { background: var(--turf); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lede { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 46ch; margin-top: 1rem; }
.hero-shapes { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 2vw, 1.5rem); padding: clamp(1.25rem, 3vw, 2.25rem) clamp(0.75rem, 2vw, 1.5rem) 1.25rem; border: 2px solid rgba(255,255,255,.6); border-bottom: 0;
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.6) calc(50% - 1px), rgba(255,255,255,.6) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 100% 38% no-repeat; }
.hero-shapes figure { margin: 0; text-align: center; }
.hero-shapes .rk { width: clamp(70px, 11vw, 120px); height: auto; margin-inline: auto; }
.hero-shapes .rk-face { fill: #0d2a4d; }
.hero-shapes .rk-holes { fill: var(--turf); }
.hero-shapes .rk-handle { fill: #0d2a4d; }
.hero-shapes figcaption { margin-top: 0.6rem; font-weight: 750; font-variation-settings: "wdth" 72; font-size: 1.2rem; }
.hero-shapes figcaption span { display: block; font-weight: 400; font-size: 0.95rem; opacity: 0.85; font-variation-settings: "wdth" 100; }

.quickstart { margin-top: 2rem; }
.quickstart fieldset { border: 0; padding: 0; margin: 0; }
.quickstart legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.75rem; }
.quickstart .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.quickstart .choice { background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.7); color: #fff; }
.quickstart .choice:hover { background: #fff; color: var(--turf-deep); }
.quickstart .choice:hover span { color: var(--turf-deep); }
.quickstart .choice span { color: rgba(255,255,255,.85); }

/* Choice tiles (finder) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem; }
.choice { display: flex; flex-direction: column; gap: 0.2rem; text-align: left; padding: 0.85rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.choice strong { font-size: 1.15rem; font-variation-settings: "wdth" 80; }
.choice span { font-size: 0.92rem; color: var(--muted); line-height: 1.35; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
label.choice { position: relative; }
label.choice:hover { border-color: var(--turf); }
label.choice:has(input:checked) { border-color: var(--turf); background: var(--turf); color: var(--turf-ink); }
label.choice:has(input:checked) span { color: var(--turf-ink); opacity: 0.9; }
label.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.intro { padding-top: clamp(2rem, 6vw, 3.5rem); }
.intro .lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin-top: 0.9rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.9rem; }
.crumbs a { color: var(--muted); }

.finder { margin-top: 2rem; display: grid; gap: 1.75rem; max-width: 52rem; }
.q { border: 0; padding: 0; margin: 0; }
.q legend { font-weight: 750; font-size: 1.4rem; font-variation-settings: "wdth" 72; margin-bottom: 0.7rem; }
.form-error { color: #b42318; font-weight: 600; }
@media (prefers-color-scheme: dark) { .form-error { color: #ff8a80; } }

/* Finder results */
.finder-results { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 4px solid var(--ball); }
.matches { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.match { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.match h3 { margin-top: 0; font-size: 1.6rem; }
.match-top h3 { font-size: 2.1rem; }
.match h3 a { color: var(--ink); text-decoration: none; }
.match h3 a:hover { text-decoration: underline; }
.why { margin-top: 0.5rem; }

/* Rating bars */
.bars { display: grid; gap: 0.35rem; margin-top: 1rem; max-width: 26rem; }
.bar { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.bar dt { font-size: 0.95rem; color: var(--muted); }
.bar dd { margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.track { flex: 1; height: 0.6rem; border-radius: 99px; background: var(--panel); overflow: hidden; display: inline-block; min-width: 4rem; }
.fill { display: block; height: 100%; background: var(--turf); border-radius: 99px; }
.num { font-weight: 750; font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; min-width: 2ch; font-size: 1.1rem; }
.bars-small .bar { grid-template-columns: 6.5rem minmax(0, 1fr); }

/* Racket list */
.rlist { list-style: none; padding: 0; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.rrow { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.rrow[hidden] { display: none; }
.rrow-link { flex: 1; display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; color: var(--ink); text-decoration: none; min-width: 0; }
.rrow-link:hover .rrow-name { text-decoration: underline; text-decoration-color: var(--turf); }
.rrow-text { display: grid; min-width: 0; }
.rrow-name { font-weight: 750; font-size: 1.3rem; font-variation-settings: "wdth" 75; line-height: 1.15; }
.rrow-spec { color: var(--muted); font-size: 0.95rem; }
.rrow-price { font-weight: 750; font-variation-settings: "wdth" 72; font-size: 1.25rem; font-variant-numeric: tabular-nums; padding-right: 0.25rem; }
.rlist-ranked { counter-reset: rank; }
.count { margin-top: 1.5rem; color: var(--muted); font-weight: 600; }

/* Filters and compare pickers */
.filters, .compare-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; margin-top: 2rem; padding: 1rem; background: var(--panel); border-radius: 16px; }
.compare-pick { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 650; font-size: 0.92rem; }
select { font: inherit; font-size: 1rem; min-height: 2.6rem; padding: 0.35rem 0.6rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--glass); color: var(--ink); width: 100%; }

/* Compare table */
.compare-out { margin-top: 1.75rem; }
.empty { color: var(--muted); }
.table-scroll { overflow-x: auto; margin-top: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
.cmp th, .cmp td { padding: 0.65rem 0.75rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp thead th { vertical-align: bottom; }
.cmp thead .rk { width: 63px; height: 120px; }
.cmp thead a { display: grid; gap: 0.5rem; justify-items: start; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.2rem; font-variation-settings: "wdth" 75; line-height: 1.15; }
.cmp tbody th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.cmp td { min-width: 11rem; }
.cmp .track { width: 5rem; vertical-align: middle; }
.cmp td.lead { font-weight: 750; }
.cmp td.lead .fill { background: var(--ball); box-shadow: inset 0 0 0 1px var(--ink); }
.cmp tr.differ td { background: var(--differ); }

/* Racket page */
.racket-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.racket-art { display: grid; justify-items: center; padding: 1.5rem 2rem; background: var(--panel); border-radius: 22px; }
.art-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }
.racket-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.specs th, .specs td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 9rem; font-weight: 600; color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }
.sources { padding-left: 1.2rem; }

/* Best lists */
.rule { margin-top: 1rem; max-width: 60ch; padding: 0.75rem 1rem; border-left: 4px solid var(--ball); background: var(--panel); border-radius: 0 10px 10px 0; }
.best-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 2rem; }
.best-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.best-list h2 { margin-top: 0; font-size: 1.8rem; }
.best-list h2 a { color: var(--ink); text-decoration: none; }
.best-list h2 a:hover { text-decoration: underline; }
.rank { color: var(--turf); }
.best-block h2 a { color: var(--ink); }

/* Guides */
.shape-demo { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 5vw, 3.5rem); margin-top: 2rem; padding: 2rem 1rem 1.25rem; background: var(--panel); border-radius: 22px; }
.shape-demo figure { margin: 0; display: grid; justify-items: center; gap: 0.5rem; }
.shape-demo figcaption { font-weight: 750; font-variation-settings: "wdth" 72; font-size: 1.3rem; }
.shape-demo .art-note { flex-basis: 100%; }
.vs th, .vs td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs thead th { font-weight: 750; font-variation-settings: "wdth" 75; font-size: 1.15rem; border-bottom: 2px solid var(--ink); }
.vs tbody th { font-weight: 650; white-space: nowrap; }
.cta-line { margin-top: 2rem; }

/* Home */
.home-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.tool-link { border-top: 4px solid var(--ink); padding-top: 0.75rem; }
.tool-link h2 { margin-top: 0; font-size: 1.5rem; }
.tool-link h2 a { color: var(--ink); text-decoration: none; }
.tool-link h2 a:hover { text-decoration: underline; text-decoration-color: var(--ball); text-decoration-thickness: 3px; }
.tool-link p { color: var(--muted); }
.brand-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 650; }

/* FAQ */
.faq { margin-top: 1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin-top: 0.5rem; }

/* Consent */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin-inline: auto; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; box-shadow: 0 10px 30px rgba(15,34,54,.18); z-index: 20; }
.consent p { margin: 0; font-size: 0.95rem; }
.consent-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shapes { order: -1; }
  .hero-shapes .rk { width: 64px; }
  .hero-shapes figcaption { font-size: 1rem; }
  .quickstart .choices { grid-template-columns: 1fr; }
  .home-tools { grid-template-columns: 1fr; gap: 1.25rem; }
  .racket-head { grid-template-columns: 1fr; }
  .racket-art { justify-self: start; padding: 1rem 1.5rem; }
  .racket-art .rk { width: 110px; height: auto; }
  .racket-body { grid-template-columns: 1fr; gap: 0; }
  .match, .best-list > li { grid-template-columns: 1fr; }
  .match-art .rk, .best-art .rk { width: 64px; height: auto; }
  .rrow-link .rk { width: 32px; height: auto; }
  .bar { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .site-head nav { gap: 0.15rem 0.9rem; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
