:root {
  --red: #901a1e;
  --red-deep: #6f1317;
  --ball: #e3ef4f;
  --ink: #1d1b1a;
  --muted: #5f5955;
  --paper: #fbf9f6;
  --tint: #f3eee8;
  --line: #e2dbd3;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 720px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 249, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar nav a:hover { color: var(--red); }
.topbar nav .nav-cta { background: var(--red); color: #fff; padding: 8px 16px; border-radius: 999px; }
.topbar nav .nav-cta:hover { background: var(--red-deep); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--red);
  color: #fff;
  padding: 72px 0 80px;
}
.court {
  position: absolute; right: -8%; top: 50%;
  width: 70%; min-width: 520px;
  transform: translateY(-50%) rotate(-8deg);
  fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: .6;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: center; }
.hero-logo { width: 240px; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 18px 40px rgba(0, 0, 0, .3); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; max-width: 14ch; }
.hero-text { font-size: 1.15rem; max-width: 38ch; margin: 0 0 28px; color: rgba(255, 255, 255, .88); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-weight: 700; text-decoration: none;
  padding: 11px 20px; border-radius: 999px;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-ball { background: var(--ball); color: var(--ink); font-size: 1.05rem; padding: 14px 28px; }
.btn-ball:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); font-size: 1.05rem; padding: 14px 28px; }
.btn-outline:hover { background: #fff; color: var(--red); }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section p { margin: 0 0 1em; }

/* Join */
.join-text { max-width: 52ch; color: var(--muted); font-size: 1.1rem; }
.join { display: flex; gap: 10px; max-width: 560px; margin-top: 24px; }
.join input[type=email] {
  flex: 1; min-width: 0;
  font: inherit; padding: 12px 18px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.join input[type=email]:focus { outline: none; border-color: var(--red); }
.join .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.join .btn:disabled { opacity: .6; cursor: default; transform: none; }
.join-msg { min-height: 1.6em; margin-top: 12px; font-weight: 600; }
.join-msg.ok { color: #2f6b2f; }
.join-msg.error { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Prices */
.prices-intro { max-width: 60ch; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.venue-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.venue-card h3 { margin: 0; padding: 14px 20px; background: var(--red); color: #fff; font-size: 1.1rem; }
.venue-card h3 span { display: block; font-weight: 400; font-size: .85rem; opacity: .8; margin-top: 2px; }
.venue-card table { width: 100%; border-collapse: collapse; }
.venue-card th, .venue-card td { padding: 12px 16px 12px 4px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.venue-card tr:first-child th, .venue-card tr:first-child td { border-top: 0; }
.venue-card th { font-weight: 600; white-space: nowrap; width: 1%; padding-left: 16px; padding-right: 10px; }
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.slots li { background: var(--tint); border-radius: 999px; padding: 2px 9px; font-size: .94rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slots b { color: var(--red); margin-left: 3px; }

/* About */
.social { color: var(--muted); }

/* Partners */
.partners { display: flex; flex-wrap: wrap; gap: 20px; margin: 28px 0 24px; }
.partners a {
  flex: 1 1 260px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  height: 170px; padding: 28px;
  transition: border-color .15s;
}
.partners a:hover { border-color: var(--red); }
.partners img { width: auto; height: 96px; }
.partners img[alt="State Energy"] { height: 70px; }
.thanks { color: var(--muted); max-width: 64ch; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 48px 0; font-size: .95rem; }
.footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.footer-inner > div:first-child { display: flex; gap: 16px; align-items: flex-start; }
.footer p { margin: 0; }
.footer strong { color: #fff; }
.privacy { grid-column: 1 / -1; font-size: .85rem; color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }

/* Mobile */
@media (max-width: 1040px) {
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { width: 140px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .join { flex-direction: column; }
  .join .btn { align-self: flex-start; }
  .topbar nav a:not(.nav-cta):not(.lang) { display: none; }
  .topbar nav { gap: 14px; }
  .venue-card th, .venue-card td { padding: 10px 14px; }
}
