/* Sideline Text — demo site. Mobile-first, sporty, clean. */
:root {
  --ink: #0c1b2a;
  --ink-soft: #17324a;
  --navy: #123047;
  --field: #0c7a46;
  --field-deep: #0a5e36;
  --turf: #16a34a;
  --lime: #c8f04d;
  --lime-soft: #e7f9a3;
  --sand: #f3efe6;
  --paper: #fffcf8;
  --cream: #f7f4ee;
  --white: #ffffff;
  --mist: #e6eef3;
  --slate: #4a6172;
  --muted: #6b7f8e;
  --line: #d7e1e8;
  --alert: #b42318;
  --amber: #c47b00;
  --sky: #1d6fa5;
  --shadow: 0 10px 30px rgba(12, 27, 42, 0.08);
  --shadow-lg: 0 24px 50px rgba(12, 27, 42, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font: "Barlow", "Segoe UI", "Helvetica Neue", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--field-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--field); }
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 27, 42, 0.96);
  color: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--lime);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-pill {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--lime);
  border: 1px solid rgba(200, 240, 77, 0.55);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ink);
  padding: 8px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav.open { display: block; }
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,0.08); color: var(--lime); }

.demo-banner {
  background: var(--lime);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}
.demo-banner strong { font-weight: 800; }

main { flex: 1; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 48px;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-primary:hover { background: #d6f66a; color: var(--ink); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-secondary:hover { border-color: var(--lime); color: var(--lime); }
.btn-navy {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-navy:hover { background: var(--ink-soft); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 46px,
      rgba(200, 240, 77, 0.07) 46px,
      rgba(200, 240, 77, 0.07) 48px
    );
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 16px 40px;
  display: grid;
  gap: 28px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1, h2, h3, .display {
  font-family: var(--display);
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 800;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero .lead {
  font-size: 1.12rem;
  color: #d5e0e8;
  max-width: 38ch;
  margin: 0 0 22px;
}
.hero-phone { justify-self: center; }

/* Sections */
section { padding: 0; }
.section {
  padding: 48px 16px;
}
.section-head {
  max-width: var(--max);
  margin: 0 auto 28px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-transform: uppercase;
  font-weight: 800;
}
.section-head p { color: var(--slate); margin: 0; max-width: 60ch; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy .section-head p { color: #c5d4de; }

.steps {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.45rem; text-transform: uppercase; }
.step p { margin: 0; color: var(--slate); }

.compare, .pricing, .start-card, .card {
  max-width: var(--max);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.compare p, .pricing p { color: var(--slate); }
.example-box {
  margin-top: 16px;
  background: var(--sand);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
}
.example-box strong { display: block; color: var(--ink); margin-bottom: 6px; }
.price-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.price-item {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.price-item span { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.muted { color: var(--muted); }
.note {
  font-size: 0.92rem;
  color: var(--slate);
}

/* Forms */
form, .form { display: grid; gap: 14px; }
label, .label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  font-size: 0.95rem;
}
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px; /* prevent iOS zoom */
  background: #fff;
  color: var(--ink);
  max-width: 100%;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus {
  border-color: var(--field);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  outline: none;
}
.help { font-weight: 500; color: var(--muted); font-size: 0.88rem; }
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--slate);
}
.checkbox input { margin-top: 4px; width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--field); }
.form-error, .form-ok {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
.form-error { background: #fde8e6; color: var(--alert); }
.form-ok { background: #e6f7ea; color: var(--field-deep); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 650;
}
.radio-chip:has(input:checked) {
  border-color: var(--field);
  background: #eefbf2;
}
.radio-chip input { accent-color: var(--field); }

/* Team page */
.team-hero {
  background: var(--ink);
  color: #fff;
  padding: 28px 16px 32px;
}
.team-hero-inner { max-width: var(--max); margin: 0 auto; }
.team-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 7vw, 3.4rem);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  color: #e8eef3;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}
.chip-lime { background: var(--lime); color: var(--ink); }
.grid-2, .team-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: grid;
  gap: 18px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.schedule-item, .feed-item {
  border-top: 1px solid var(--mist);
  padding: 14px 0;
}
.schedule-item:first-of-type, .feed-item:first-of-type { border-top: 0; padding-top: 0; }
.when {
  font-weight: 800;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--field-deep);
  font-size: 0.95rem;
}
.event-title { font-weight: 750; margin: 2px 0; }
.event-meta { color: var(--slate); font-size: 0.95rem; }
.kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}
.kind-game { background: #e4f0ff; color: var(--sky); }
.kind-tournament { background: #fff3d6; color: #8a5a00; }
.kind-change { background: #fff3d6; color: #8a5a00; }
.kind-practice { background: #e6f7ea; color: var(--field-deep); }

.signup-note {
  background: var(--sand);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 8px;
}

/* Playground */
.try-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: grid;
  gap: 18px;
}
.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sample-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
}
.sample-btn[aria-pressed="true"], .sample-btn:hover {
  border-color: var(--field);
  background: #eefbf2;
}
.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}
.detail {
  background: var(--sand);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.detail .k {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail .v { font-weight: 650; overflow-wrap: anywhere; }
.detail.empty .v { color: var(--muted); font-weight: 500; }
.detail.inferred .v::after {
  content: " (suggested)";
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9em;
}
.messages {
  display: grid;
  gap: 16px;
}
.sms-card, .email-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.sms-card h3, .email-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.char-count { font-family: var(--font); font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; }
.sms-bubble {
  background: #e8e8ed;
  border-radius: 18px 18px 18px 6px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.email-preview {
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.email-preview .subject { font-weight: 750; margin-bottom: 10px; }
.email-preview pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
  overflow-wrap: anywhere;
}
.badge-demo {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* Phones */
.phones {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 16px 48px;
}
.phone-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  justify-content: center;
}
.phone-stage {
  display: flex;
  justify-content: center;
}
.phone-set {
  display: none;
}
.phone-set.active { display: block; }
.phone {
  width: min(320px, 100%);
  background: #1a1d21;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.phone-screen {
  background: #efeae2;
  border-radius: 26px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.phone-appbar {
  text-align: center;
  padding: 8px 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.55);
}
.phone-appbar .from { font-weight: 800; }
.phone-appbar .sub { font-size: 0.78rem; color: var(--slate); }
.phone-thread {
  padding: 16px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.msg {
  align-self: flex-start;
  max-width: 92%;
  background: #fff;
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 0.95rem;
}
.msg.out {
  align-self: flex-end;
  background: #62d26f;
  border-radius: 18px 18px 6px 18px;
}
.msg time { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.rsvp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.rsvp-row button {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rsvp-row button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}
.phone-home {
  height: 5px;
  width: 110px;
  background: #111;
  border-radius: 99px;
  margin: 8px auto 2px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c5d4de;
  padding: 28px 16px 36px;
  margin-top: auto;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.site-footer a { color: var(--lime); }
.site-footer p { margin: 0 0 8px; font-size: 0.92rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Desktop */
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    padding: 0;
    border: 0;
    gap: 4px;
  }
  .site-nav a { padding: 8px 12px; }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 56px 16px 64px;
  }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .try-grid { grid-template-columns: 1fr; }
  .messages { grid-template-columns: 1fr 1fr; }
  .details { grid-template-columns: repeat(3, 1fr); }
  .price-row { grid-template-columns: 1fr 1fr; }
  .phones.desktop-row .phone-tabs { display: none; }
  .phones.desktop-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
  }
  .phones.desktop-row .phone-set { display: block; }
}
@media (min-width: 800px) and (max-width: 1020px) {
  .phones.desktop-row { grid-template-columns: 1fr; justify-items: center; }
  .phones.desktop-row .phone-tabs { display: flex; grid-column: 1 / -1; }
  .phones.desktop-row .phone-set { display: none; }
  .phones.desktop-row .phone-set.active { display: block; }
}
