:root {
  --court: #1f8a4c;
  --court-dark: #16693a;
  --ink: #14201a;
  --muted: #5b6b63;
  --bg: #f6f9f7;
  --card: #ffffff;
  --line: #e2ebe5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 32, 26, 0.08);
  --max: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--court-dark); }

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--court);
  box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.18);
}

.nav a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 20px 32px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Store badges */
.stores {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  min-width: 200px;
  justify-content: center;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge small { display: block; font-size: 0.7rem; opacity: 0.75; font-weight: 500; }
.store-badge .label { text-align: left; line-height: 1.1; }
.store-badge[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.store-badge[aria-disabled="true"]:hover { transform: none; }

/* Sports row */
.sports {
  margin: 36px auto 8px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.sports span { margin: 0 10px; white-space: nowrap; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 40px auto 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Invite panel */
.invite-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
}
.invite-panel h2 { margin: 0 0 8px; }
.invite-panel p { color: var(--muted); margin: 0 0 22px; }

.btn-primary {
  display: inline-block;
  background: var(--court);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.12s ease;
}
.btn-primary:hover { background: var(--court-dark); }

.invite-fallback {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hidden { display: none !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); margin: 0 10px; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal / privacy page */
.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 32px auto 64px;
  max-width: 820px;
}
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 28px; }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; font-size: 0.92rem; }
.legal code { background: #eef3ef; padding: 1px 5px; border-radius: 4px; }
.legal .updated { color: var(--muted); font-style: italic; }
