@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;650;750;850;900&display=swap");

:root {
  color-scheme: light;
  --ink: #161816;
  --muted: #626c68;
  --line: #dfe5e1;
  --paper: #f3f6f4;
  --white: #ffffff;
  --mint: #28b389;
  --coral: #e45746;
  --gold: #d7a928;
  --blue: #376fb2;
  --violet: #6d5dfc;
  --charcoal: #101412;
  --shadow: 0 22px 60px rgba(18, 24, 21, 0.13);
  --soft-shadow: 0 12px 34px rgba(18, 24, 21, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 246, 244, 0.98) 520px),
    var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  white-space: nowrap;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.header-social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.header-social a:hover {
  color: var(--ink);
  background: rgba(40, 179, 137, 0.12);
}

.header-social svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .header-social {
    padding-left: 8px;
    gap: 0;
  }

  .header-social a {
    width: 24px;
    height: 24px;
  }

  .header-social svg {
    width: 13px;
    height: 13px;
  }
}

/* ===== Mobile nav drawer ===== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.nav-toggle:hover {
  background: rgba(40, 179, 137, 0.1);
  border-color: rgba(40, 179, 137, 0.4);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 18, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 60;
}

.nav-backdrop.is-open {
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 320px);
  background: var(--paper, #fff);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -24px rgba(16, 20, 18, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 70;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.nav-drawer-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0;
}

.nav-drawer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.nav-drawer-close:hover {
  background: rgba(40, 179, 137, 0.1);
  border-color: rgba(40, 179, 137, 0.4);
}

.nav-drawer-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.nav-drawer-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease;
}

.nav-drawer-links a:hover,
.nav-drawer-links a[aria-current="page"] {
  background: rgba(40, 179, 137, 0.12);
  color: var(--ink);
}

.nav-drawer-social {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-left: none;
}

.nav-drawer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.nav-drawer-social a:hover {
  color: var(--ink);
  background: rgba(40, 179, 137, 0.12);
}

.nav-drawer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.nav-drawer-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header > nav {
    display: none;
  }
}

@media (min-width: 721px) {
  .nav-drawer,
  .nav-backdrop {
    display: none !important;
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(40, 179, 137, 0.1);
}

.hero {
  min-height: min(780px, calc(100vh - 72px));
  display: grid;
  align-content: end;
  gap: clamp(20px, 4vw, 42px);
  padding: clamp(48px, 8vw, 112px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 20, 18, 0.96) 0%, rgba(16, 20, 18, 0.82) 48%, rgba(16, 20, 18, 0.34) 100%),
    linear-gradient(180deg, rgba(16, 20, 18, 0.1), rgba(16, 20, 18, 0.82)),
    url("assets/buildingpickleball/07-home-adobe-express-file-283-29-png.png") right bottom / min(42vw, 520px) auto no-repeat,
    var(--charcoal);
}

.hero-copy {
  max-width: 980px;
}

.hero h1,
.finder-intro h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p,
.finder-intro p,
.section p,
.split-band p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
}

.hero .eyebrow {
  color: #7fe2bc;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--coral);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  background: var(--white);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.hero .button.primary {
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.button.secondary,
button {
  color: var(--ink);
  background: transparent;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.score-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.score-panel span {
  display: block;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  color: #7fe2bc;
}

.score-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.band,
.section,
.split-band,
.finder-intro,
.recommendations,
.results-section {
  padding: clamp(36px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.stats-band,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stats-band article,
.feature-grid article {
  min-height: 180px;
  padding: 28px;
  background: var(--white);
}

.image-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.image-band h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 0.96;
}

.image-band img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(12px, 3vw, 28px);
  background: #fbfcfb;
  box-shadow: var(--soft-shadow);
}

.stats-band strong,
.feature-grid h3 {
  font-size: 1.45rem;
}

.section-heading h2,
.split-band h2,
.section h2 {
  max-width: 900px;
  margin: 0;
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: 0;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 520px);
  gap: 32px;
  align-items: start;
  background: #e9f5ef;
}

.compact {
  max-width: 920px;
}

.page-hero {
  min-height: 56vh;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: clamp(56px, 10vw, 132px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(79, 191, 143, 0.2), transparent 42%),
    linear-gradient(260deg, rgba(47, 116, 192, 0.16), transparent 36%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: 5.2rem;
  line-height: 0.96;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero p.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
}

.directory-grid,
.discount-grid,
.story-grid,
.recommendation-list,
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(28px, 5vw, 72px);
  background: var(--line);
}

.directory-grid a,
.discount-grid article,
.story-grid a,
.story-grid article,
.recommendation-list article,
.feature-row article {
  min-height: 240px;
  padding: 28px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.directory-grid a:hover,
.discount-grid article:hover,
.story-grid a:hover,
.story-grid article:hover,
.recommendation-list article:hover,
.feature-row article:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.feature-row article .button {
  margin-top: 14px;
}

.directory-tile span,
.story-grid span,
.recommendation-list span,
.discount-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--coral);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.directory-grid h2,
.discount-grid h2,
.story-grid h2,
.recommendation-list h2,
.feature-row h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  line-height: 1.05;
}

.directory-grid p,
.discount-grid p,
.story-grid p,
.recommendation-list p,
.feature-row p {
  color: var(--muted);
  margin: 0;
}

.discount-grid strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.discount-logo {
  width: 100%;
  height: 96px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fbfcfb;
}

.tile-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #e8eeeb;
}

.finder-page {
  background: #f4f7f5;
}

.finder-intro {
  background:
    linear-gradient(135deg, rgba(40, 179, 137, 0.12), rgba(109, 93, 252, 0.08) 44%, rgba(228, 87, 70, 0.08)),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.intelligence-intro {
  padding-bottom: 52px;
}

.intro-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.intro-metrics span {
  border: 1px solid rgba(22, 24, 22, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: 0 8px 28px rgba(18, 24, 21, 0.05);
}

.intro-metrics strong {
  color: var(--ink);
  margin-right: 6px;
}

.quadrant-section {
  padding: clamp(36px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(40, 179, 137, 0.16), transparent 36%),
    linear-gradient(225deg, rgba(228, 87, 70, 0.12), transparent 34%),
    #101412;
  color: var(--white);
}

.quadrant-section .section-heading h2 {
  color: var(--white);
}

.quadrant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}

.quadrant-map {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) 50% 0 / 1px 100% no-repeat,
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) 0 50% / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(40, 179, 137, 0.22), transparent 42%),
    linear-gradient(225deg, rgba(228, 87, 70, 0.18), transparent 42%),
    linear-gradient(45deg, rgba(215, 169, 40, 0.18), transparent 44%),
    #15191d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.18);
}

.axis {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.x-axis {
  left: 18px;
  right: 18px;
  bottom: 14px;
  text-align: center;
}

.y-axis {
  top: 18px;
  left: 18px;
}

.quadrant-zone {
  position: absolute;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 50%;
  height: 50%;
  padding: 22px;
  border: 0;
  color: var(--white);
  text-align: left;
  background: transparent;
  z-index: 1;
}

.quadrant-zone:hover,
.quadrant-zone.active {
  outline: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.quadrant-zone strong {
  font-size: 1.45rem;
  line-height: 1;
}

.quadrant-zone span {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.72);
}

.zone-control { left: 0; top: 0; }
.zone-balanced { right: 0; top: 0; }
.zone-value { left: 0; bottom: 0; }
.zone-power { right: 0; bottom: 0; }

.quadrant-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 2px;
  background: var(--mint);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
  z-index: 3;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.quadrant-dot:hover {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.25);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18);
}

.dot-balanced { background: #7fe2bc; }
.dot-control { background: #9fd3ff; }
.dot-power { background: #ff897b; }
.dot-value { background: #f0c65a; }

.quadrant-picks {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.picks-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quadrant-pick {
  display: grid;
  gap: 3px;
  width: 100%;
  border-color: rgba(255, 255, 255, 0.22);
  padding: 12px;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
}

.quadrant-pick:hover {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.11);
}

.quadrant-pick span,
.quadrant-pick em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-style: normal;
}

.quadrant-copy {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.quadrant-copy h3 {
  margin: 0;
  font-size: 2rem;
}

.quadrant-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.quadrant-legend {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.quadrant-legend button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
}

.quadrant-legend button.active,
.quadrant-legend button:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(150px, 1fr));
  gap: 14px;
  position: sticky;
  top: 65px;
  z-index: 8;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fafcfb;
  color: var(--ink);
}

.recommendations {
  background: var(--white);
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.paddle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.paddle-list {
  display: grid;
  gap: 10px;
}

.paddle-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  min-width: 0;
}

.paddle-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(86px, 0.45fr)) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  text-align: left;
  box-shadow: 0 4px 18px rgba(18, 24, 21, 0.04);
}

.paddle-row:hover {
  border-color: rgba(40, 179, 137, 0.72);
  box-shadow: var(--soft-shadow);
}

.row-title h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.row-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.row-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.row-metric strong {
  font-size: 1rem;
}

.paddle-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f1f3f4, #dfe6e1);
}

.paddle-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.paddle-placeholder {
  display: grid;
  place-items: center;
  width: 76%;
  height: 76%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  padding: 18px;
  background: var(--white);
}

.paddle-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.paddle-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.paddle-title h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
}

.brand-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.score-pill {
  flex: 0 0 auto;
  align-self: start;
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 850;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 8px;
  padding: 5px 8px;
  background: #e9f5ef;
  font-size: 0.8rem;
  font-weight: 750;
}

.notes {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 750;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  background: rgba(17, 20, 23, 0.48);
}

.detail-overlay[hidden] {
  display: none;
}

.detail-panel {
  width: min(720px, 100%);
  height: 100%;
  overflow: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-close {
  position: sticky;
  top: 14px;
  z-index: 2;
  margin: 14px 14px 0 auto;
  display: block;
  background: var(--white);
}

.detail-content {
  display: grid;
  gap: 24px;
  padding: 16px 28px 36px;
}

.detail-content h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
}

.standalone-detail {
  min-height: 70vh;
  padding: clamp(24px, 5vw, 72px);
  background: var(--paper);
}

.page-detail-content {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.page-detail-content h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1;
}

.detail-image {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f0;
}

.detail-image img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 20px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 0.92rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  color: var(--ink);
  font-weight: 800;
}

.footer-brand span {
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links > a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-links > a:hover {
  color: var(--ink);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.footer-social a:hover {
  color: var(--ink);
  background: rgba(40, 179, 137, 0.1);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  footer {
    padding: 24px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-social {
    padding-left: 0;
    border-left: 0;
  }
}

/* =========================================================
   Paddle Intelligence — rebuilt page styles
   ========================================================= */

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 880px;
}

.section-heading.light h2 {
  color: var(--ink);
}

.section-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

/* ----- Best Overall ----- */

.best-overall-section {
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.best-overall-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin-top: 32px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(40, 179, 137, 0.10), transparent 55%),
    radial-gradient(140% 90% at 100% 100%, rgba(109, 93, 252, 0.08), transparent 55%),
    var(--white);
  box-shadow: var(--soft-shadow);
}

.best-overall-loading {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.best-overall-image {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f6f4, #e3ece7);
  padding: 24px;
}

.best-overall-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.best-overall-image .paddle-placeholder {
  width: 70%;
  height: 70%;
}

.best-overall-body {
  display: grid;
  gap: 24px;
  align-content: start;
}

.best-overall-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.best-overall-head h3 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.best-overall-summary {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 60ch;
}

.score-ring {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    conic-gradient(var(--mint) 0 var(--ring, 80%), rgba(40, 179, 137, 0.15) var(--ring, 80%) 100%);
  box-shadow: 0 12px 36px rgba(40, 179, 137, 0.18);
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.score-ring span {
  display: none;
}

.best-overall-breakdown {
  display: grid;
  gap: 10px;
}

.best-overall-breakdown.compact .breakdown-row {
  font-size: 0.86rem;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 12px;
}

.breakdown-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.breakdown-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(22, 24, 22, 0.06);
  overflow: hidden;
}

.breakdown-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), #6dd3ad);
}

.breakdown-value {
  text-align: right;
  font-weight: 800;
  font-size: 0.92rem;
}

.breakdown-value em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  margin-left: 2px;
}

.best-overall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----- Category sections (style + level) ----- */

.category-section {
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.category-section.alt {
  background: var(--white);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 20px;
}

.category-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--white);
  font-weight: 750;
  color: var(--muted);
  cursor: pointer;
  transition: all 160ms ease;
}

.category-tabs button:hover {
  color: var(--ink);
  border-color: rgba(40, 179, 137, 0.5);
}

.category-tabs button.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.category-blurb {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 720px;
  font-size: 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.category-empty {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.category-winner {
  display: grid;
  background: transparent;
}

.winner-card {
  display: grid;
  grid-template-rows: auto auto;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.winner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 179, 137, 0.6);
  box-shadow: 0 22px 50px rgba(18, 24, 21, 0.12);
}

.winner-image {
  display: grid;
  place-items: center;
  height: 240px;
  background: linear-gradient(135deg, #f3f6f4, #e1eae5);
  padding: 20px;
  overflow: hidden;
}

.winner-image img {
  max-width: 70%;
  max-height: 100%;
  object-fit: contain;
}

.winner-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.rank-pill {
  margin: 0;
  align-self: start;
  justify-self: start;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.winner-body h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
}

.winner-brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.winner-blurb {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.winner-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.winner-metrics div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.winner-metrics span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.winner-metrics strong {
  font-size: 1.05rem;
}

.category-runners {
  display: grid;
  gap: 10px;
  align-content: start;
}

.runner-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.4fr) repeat(3, minmax(70px, 0.5fr));
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: all 160ms ease;
}

.runner-row:hover {
  border-color: rgba(40, 179, 137, 0.55);
  transform: translateX(2px);
  box-shadow: 0 10px 24px rgba(18, 24, 21, 0.06);
}

.runner-rank {
  font-weight: 900;
  color: var(--muted);
  font-size: 0.95rem;
  width: 26px;
}

.runner-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.runner-title strong {
  font-size: 0.98rem;
}

.runner-title span {
  font-size: 0.8rem;
  color: var(--muted);
}

.runner-metric {
  text-align: right;
}

.runner-metric span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}

.runner-metric strong {
  font-size: 0.95rem;
}

/* ----- Skip These (worst-ranked) ----- */

.worst-section {
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #181b1f, #101316);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.worst-section .section-heading h2 {
  color: var(--white);
}

.worst-section .section-sub {
  color: rgba(255, 255, 255, 0.62);
}

.eyebrow.warn {
  color: #ff897b;
}

.worst-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.worst-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  text-align: left;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.worst-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 137, 123, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.worst-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 137, 123, 0.18);
  border: 1px solid rgba(255, 137, 123, 0.4);
  color: #ffb6ad;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.worst-image {
  display: grid;
  place-items: center;
  height: 180px;
  background: linear-gradient(135deg, #1f2329, #15181c);
  padding: 18px;
}

.worst-image img {
  max-width: 70%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0.3) brightness(0.92);
}

.worst-image .paddle-placeholder {
  width: 70%;
  height: 70%;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

.worst-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.worst-brand {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.worst-body h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
  color: var(--white);
}

.worst-why {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
}

.worst-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.worst-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.worst-metrics span {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
}

.worst-metrics strong {
  font-size: 0.95rem;
  color: var(--white);
}

/* ----- Explorer (slice & dice) ----- */

.explorer-section {
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.explorer-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.explorer-controls {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 24, 22, 0.18) transparent;
}

.explorer-controls::-webkit-scrollbar {
  width: 8px;
}

.explorer-controls::-webkit-scrollbar-thumb {
  background: rgba(22, 24, 22, 0.18);
  border-radius: 999px;
}

.control-group {
  display: grid;
  gap: 12px;
}

.control-group h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.control-hint {
  margin: -4px 0 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.sliders {
  display: grid;
  gap: 10px;
}

.slider-row {
  display: grid;
  gap: 4px;
  text-transform: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label em {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.slider-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 0;
  height: 4px;
  padding: 0;
  background: rgba(22, 24, 22, 0.1);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.slider-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-row button {
  flex: 1 1 auto;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 750;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.preset-row button:hover {
  border-color: var(--ink);
}

.reset-button {
  width: 100%;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.reset-button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.explorer-results {
  display: grid;
  gap: 14px;
}

.explorer-results .results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.explorer-results .results-heading select {
  width: auto;
  min-width: 220px;
}

.row-image {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f6f4, #e3ece7);
  overflow: hidden;
  flex: 0 0 auto;
}

.row-image img {
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
}

.row-image .paddle-placeholder {
  border-width: 1px;
  font-size: 0.55rem;
  padding: 4px;
  width: 90%;
  height: 90%;
}

.paddle-row {
  grid-template-columns: auto minmax(0, 1.3fr) repeat(5, minmax(72px, 0.45fr));
  border-radius: 12px;
}

.paddle-row .row-title h3 {
  font-size: 1rem;
}

.paddle-row em.quality-strong { color: var(--mint); font-style: normal; font-weight: 800; }
.paddle-row em.quality-usable { color: var(--blue); font-style: normal; font-weight: 800; }
.paddle-row em.quality-weak { color: var(--gold); font-style: normal; font-weight: 800; }
.paddle-row em.quality-manual_queue { color: var(--muted); font-style: normal; font-weight: 800; }

/* ----- Tags + detail polish ----- */

.tag-quality {
  text-transform: lowercase;
  font-weight: 800;
}
.tag-quality.tag-strong { background: rgba(40, 179, 137, 0.16); color: #1c7d5f; }
.tag-quality.tag-usable { background: rgba(55, 111, 178, 0.14); color: #2b5b91; }
.tag-quality.tag-weak { background: rgba(215, 169, 40, 0.18); color: #8c6a10; }
.tag-quality.tag-manual_queue { background: rgba(98, 108, 104, 0.12); color: #4f5754; }
.tag-score { background: var(--ink); color: var(--white); }

.detail-sub {
  margin: 8px 0 14px;
  color: var(--muted);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sources a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}

.sources a:hover {
  border-color: var(--ink);
}

@media (max-width: 1050px) {
  .best-overall-card,
  .category-grid,
  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .explorer-controls {
    position: static;
  }

  .winner-image {
    aspect-ratio: 16 / 10;
  }

  .paddle-row {
    grid-template-columns: auto minmax(0, 1fr) repeat(2, minmax(70px, 0.4fr));
  }

  .paddle-row .row-metric:nth-of-type(4),
  .paddle-row .row-metric:nth-of-type(5),
  .paddle-row .row-metric:nth-of-type(6) {
    display: none;
  }

  .runner-row {
    grid-template-columns: auto minmax(0, 1.5fr) minmax(60px, 0.4fr);
  }

  .runner-row .runner-metric:nth-of-type(3),
  .runner-row .runner-metric:nth-of-type(4) {
    display: none;
  }

  .breakdown-row {
    grid-template-columns: 90px minmax(0, 1fr) 80px;
  }
}

@media (max-width: 720px) {
  .best-overall-head {
    flex-direction: column;
  }

  .winner-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .paddle-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .paddle-row .row-image {
    width: 80px;
    height: 80px;
  }
}

/* ----- Shared cross-link "explore more" block ----- */

.explore-more {
  padding: clamp(36px, 6vw, 80px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.explore-more .section-heading {
  margin-bottom: 24px;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.explore-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.explore-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 179, 137, 0.55);
  box-shadow: 0 16px 32px rgba(18, 24, 21, 0.08);
}

.explore-card .eyebrow {
  margin: 0;
}

.explore-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.explore-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.explore-card span.cta {
  margin-top: 6px;
  font-weight: 800;
}

/* ----- Page hero polish (used by directory/discounts/lessons/etc.) ----- */

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(40, 179, 137, 0.18), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(109, 93, 252, 0.14), transparent 60%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
}

/* ----- Homepage refresh ----- */

.home-best-section {
  padding: clamp(48px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.home-best-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin-top: 32px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(40, 179, 137, 0.10), transparent 55%),
    radial-gradient(140% 90% at 100% 100%, rgba(109, 93, 252, 0.08), transparent 55%),
    var(--white);
  box-shadow: var(--soft-shadow);
}

.home-best-loading {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.home-best-image {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f6f4, #e3ece7);
  padding: 24px;
}

.home-best-image img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.home-best-image .paddle-placeholder {
  width: 70%;
  height: 70%;
}

.home-best-body {
  display: grid;
  gap: 18px;
  align-content: center;
}

.home-best-body h3 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.home-best-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.home-best-summary {
  margin: 0;
  color: var(--ink);
  max-width: 60ch;
  line-height: 1.5;
}

.home-best-bars {
  display: grid;
  gap: 8px;
}

.home-best-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}

.home-best-score {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.home-best-score strong {
  display: inline-block;
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.92rem;
}

.home-style-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.home-style-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-style-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 179, 137, 0.55);
  box-shadow: 0 16px 36px rgba(18, 24, 21, 0.08);
}

.home-style-card .eyebrow {
  margin: 0;
  color: var(--mint);
}

.home-style-card h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  line-height: 1.15;
}

.home-style-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.home-style-score {
  margin-top: 8px;
}

.home-style-score strong {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
}

.home-style-score span {
  color: var(--muted);
  font-size: 0.78rem;
}

.home-stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.home-stats-band article {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 36px clamp(24px, 5vw, 56px);
  background: var(--white);
}

.stat-num {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.home-stats-band strong {
  font-size: 1.08rem;
}

.home-stats-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36ch;
}

.home-pillars {
  padding: clamp(48px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.pillar-card {
  display: grid;
  gap: 10px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 179, 137, 0.55);
  box-shadow: 0 22px 48px rgba(18, 24, 21, 0.10);
}

.pillar-card .eyebrow {
  margin: 0;
}

.pillar-card h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
}

.pillar-cta {
  margin-top: 8px;
  font-weight: 800;
  color: var(--ink);
}

.home-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(48px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.home-cta h2 {
  margin: 8px 0 4px;
  max-width: 740px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
}

.home-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* keep the original responsive block intact below */

@media (max-width: 1050px) {
  .split-band,
  .image-band {
    grid-template-columns: 1fr;
  }

  .controls,
  .paddle-grid,
  .quadrant-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paddle-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(86px, 0.35fr)) auto;
  }

  .paddle-row .row-metric:nth-of-type(4),
  .paddle-row .row-metric:nth-of-type(5) {
    display: none;
  }

  .hero h1,
  .finder-intro h1 {
    font-size: 4.2rem;
  }

  .section-heading h2,
  .split-band h2,
  .section h2,
  .page-hero h1 {
    font-size: 3rem;
  }

  .directory-grid,
  .discount-grid,
  .story-grid,
  .recommendation-list,
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(16, 20, 18, 0.97) 0%, rgba(16, 20, 18, 0.86) 58%, rgba(16, 20, 18, 0.54) 100%),
      linear-gradient(180deg, rgba(16, 20, 18, 0.08), rgba(16, 20, 18, 0.86)),
      url("assets/buildingpickleball/07-home-adobe-express-file-283-29-png.png") right bottom / min(56vw, 420px) auto no-repeat,
      var(--charcoal);
  }
}

/* ===== Mobile + tablet pass for the rebuilt sections ===== */

@media (max-width: 1100px) {
  .home-style-row,
  .pillar-grid,
  .home-stats-band,
  .worst-grid,
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-best-card {
    grid-template-columns: 1fr;
  }

  .home-best-image {
    min-height: 220px;
  }

  .home-best-image img {
    max-height: 240px;
  }

  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .home-style-row,
  .pillar-grid,
  .home-stats-band,
  .worst-grid,
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .home-best-card,
  .best-overall-card {
    padding: 22px;
    border-radius: 14px;
  }

  .home-best-body h3,
  .best-overall-head h3 {
    font-size: 1.8rem;
  }

  .winner-image {
    height: 200px;
  }

  .breakdown-row {
    grid-template-columns: 78px minmax(0, 1fr) 70px;
    gap: 8px;
    font-size: 0.78rem;
  }

  .breakdown-label {
    font-size: 0.66rem;
  }

  .breakdown-value {
    font-size: 0.78rem;
  }

  .home-stats-band article {
    min-height: 0;
    padding: 24px 18px;
  }

  .stat-num {
    font-size: 2.4rem;
  }

  .pillar-card {
    padding: 22px;
  }

  .pillar-card h3 {
    font-size: 1.3rem;
  }

  .home-pillars,
  .home-best-section,
  .home-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .category-tabs button {
    padding: 8px 14px;
    font-size: 0.86rem;
  }

  .winner-body {
    padding: 18px;
  }

  .winner-body h3 {
    font-size: 1.3rem;
  }

  .winner-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .runner-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .runner-row .runner-metric:nth-of-type(2),
  .runner-row .runner-metric:nth-of-type(3),
  .runner-row .runner-metric:nth-of-type(4) {
    display: none;
  }

  .runner-row::after {
    content: "›";
    color: var(--muted);
    font-size: 1.4rem;
  }

  .worst-image {
    height: 160px;
  }

  .worst-card .worst-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .explorer-controls {
    position: static;
    max-height: none;
    padding: 18px;
  }

  .explorer-results .results-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .explorer-results .results-heading select {
    min-width: 0;
    width: 100%;
  }

  .paddle-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    align-items: center;
  }

  .paddle-row .row-image {
    width: 64px;
    height: 64px;
  }

  .paddle-row .row-title h3 {
    font-size: 0.95rem;
  }

  .paddle-row .row-title .row-meta {
    font-size: 0.74rem;
  }

  .paddle-row .row-metric {
    display: none;
  }

  .paddle-row .row-metric:first-of-type {
    display: block;
    text-align: right;
  }

  .detail-panel {
    width: 100%;
  }

  .detail-content {
    padding: 12px 18px 28px;
  }

  .detail-content h2 {
    font-size: 1.8rem;
  }

  .detail-image {
    min-height: 220px;
  }

  .detail-image img {
    max-height: 240px;
  }

  .home-best-actions {
    gap: 12px;
  }

  .home-best-actions .button {
    width: 100%;
    text-align: center;
  }

  .home-best-section .section-heading h2,
  .best-overall-section .section-heading h2,
  .category-section .section-heading h2,
  .worst-section .section-heading h2,
  .explorer-section .section-heading h2,
  .home-pillars .section-heading h2 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .home-cta h2 {
    font-size: 1.8rem;
  }

  .finder-intro h1 {
    font-size: 2.4rem;
  }

  .finder-intro p {
    font-size: 1rem;
  }

  .intro-metrics {
    gap: 8px;
  }

  .intro-metrics span {
    font-size: 0.86rem;
    padding: 8px 10px;
  }

  /* Header: keep brand visible, let nav scroll horizontally instead of stacking weirdly */
  .site-header {
    flex-direction: row;
    align-items: center;
    padding: 12px 18px;
    gap: 12px;
  }

  .site-header nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 0.85rem;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    flex: 0 0 auto;
    padding: 6px 8px;
  }

  .brand {
    flex: 0 0 auto;
    font-size: 0.95rem;
  }

  footer {
    flex-direction: row;
    align-items: center;
    padding: 22px 18px;
    font-size: 0.86rem;
  }
}

@media (max-width: 720px) {
  .results-heading,
  footer {
    align-items: flex-start;
  }

  .controls,
  .paddle-grid,
  .quadrant-layout,
  .stats-band,
  .feature-grid,
  .image-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(16, 20, 18, 0.97) 0%, rgba(16, 20, 18, 0.84) 58%, rgba(16, 20, 18, 0.68) 100%),
      url("assets/buildingpickleball/07-home-adobe-express-file-283-29-png.png") right bottom / min(78vw, 330px) auto no-repeat,
      var(--charcoal);
  }

  .hero h1,
  .finder-intro h1 {
    font-size: 3rem;
  }

  .score-panel span {
    font-size: 5rem;
  }

  .section-heading h2,
  .split-band h2,
  .section h2,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .page-hero {
    min-height: 44vh;
  }

  .directory-grid,
  .discount-grid,
  .story-grid,
  .recommendation-list,
  .feature-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .controls {
    position: static;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .paddle-card {
    grid-template-rows: auto auto;
  }

  .quadrant-map {
    min-height: 520px;
  }

  .quadrant-zone {
    padding: 16px;
  }

  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .paddle-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .paddle-row .row-metric:nth-of-type(4),
  .paddle-row .row-metric:nth-of-type(5) {
    display: block;
  }

  .detail-content h2 {
    font-size: 2rem;
  }

  .page-detail-content h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 56px 18px 44px;
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(16, 20, 18, 0.97) 0%, rgba(16, 20, 18, 0.78) 60%, rgba(16, 20, 18, 0.92) 100%),
      var(--charcoal);
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1;
  }

  .hero .eyebrow {
    font-size: 0.7rem;
  }

  .hero p {
    font-size: 0.96rem;
  }

  .hero .actions .button {
    flex: 1 1 100%;
    text-align: center;
  }

  .score-panel {
    width: 100%;
    padding: 16px 18px;
  }

  .score-panel span {
    font-size: 3.6rem;
  }

  .finder-intro h1 {
    font-size: 2rem;
  }

  .home-best-body h3,
  .best-overall-head h3 {
    font-size: 1.5rem;
  }

  .home-best-section .section-heading h2,
  .best-overall-section .section-heading h2,
  .category-section .section-heading h2,
  .worst-section .section-heading h2,
  .explorer-section .section-heading h2,
  .home-pillars .section-heading h2,
  .home-cta h2 {
    font-size: 1.7rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .home-best-image {
    min-height: 180px;
    padding: 16px;
  }

  .home-best-image img {
    max-height: 200px;
  }

  .winner-image {
    height: 180px;
    padding: 14px;
  }

  .breakdown-row {
    grid-template-columns: 70px minmax(0, 1fr) 60px;
  }

  .home-best-section,
  .best-overall-section,
  .category-section,
  .worst-section,
  .explorer-section,
  .home-pillars,
  .home-cta,
  .explore-more,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .home-cta {
    align-items: flex-start;
  }

  .winner-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .winner-metrics div {
    padding: 8px;
  }

  .worst-image {
    height: 140px;
  }
}
