/* RallyRoster - the public website (landing page). Loaded after app.css, only
 * by layout-public.php. Everything is scoped under body.site so the dashboard
 * is untouched.
 *
 * Colours are tokens with a dark partner for every one. The hero, the board
 * demo and the closing band sit on a fixed dark court-navy in BOTH themes, so
 * the text on them is fixed light and its contrast never depends on the theme.
 */
body.site {
  --s-bg: #f5f7fc;
  --s-surface: #ffffff;
  --s-surface-2: #edf1fb;
  --s-border: #d6deef;
  --s-text: #0b1424;
  --s-muted: #4a5670;
  --s-primary: #1447e6;
  --s-primary-hover: #0f37b8;
  --s-primary-text: #ffffff;
  --s-primary-soft: #dde6ff;
  --s-primary-soft-text: #0c2a8a;
  --s-accent: #c6f135;          /* the ball. Only ever behind dark text. */
  --s-accent-text: #0b1424;
  --s-link: #1447e6;
  --s-tick: #1447e6;
  --s-shadow: 0 1px 2px rgba(11, 20, 36, 0.06), 0 12px 32px rgba(11, 20, 36, 0.08);
  --s-shadow-lg: 0 30px 80px rgba(3, 8, 26, 0.4);
  /* fixed dark stage, identical in both themes */
  --stage-1: #050b18;
  --stage-2: #0a1d4a;
  --stage-3: #0d3bb3;
  --stage-text: #f3f6ff;
  --stage-muted: #b4c3e8;
  --court: #1d4fd8;
  --court-line: rgba(255, 255, 255, 0.85);
  background: var(--s-bg);
  color: var(--s-text);
  font-family: Calibri, "Segoe UI", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.site {
    --s-bg: #060b16;
    --s-surface: #0c1528;
    --s-surface-2: #101d36;
    --s-border: #22345a;
    --s-text: #e7ecfb;
    --s-muted: #a6b3d3;
    --s-primary: #6f95ff;
    --s-primary-hover: #93b0ff;
    --s-primary-text: #06112a;
    --s-primary-soft: #142a63;
    --s-primary-soft-text: #d3defe;
    --s-link: #93b0ff;
    --s-tick: #93b0ff;
    --s-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] body.site {
  --s-bg: #060b16;
  --s-surface: #0c1528;
  --s-surface-2: #101d36;
  --s-border: #22345a;
  --s-text: #e7ecfb;
  --s-muted: #a6b3d3;
  --s-primary: #6f95ff;
  --s-primary-hover: #93b0ff;
  --s-primary-text: #06112a;
  --s-primary-soft: #142a63;
  --s-primary-soft-text: #d3defe;
  --s-link: #93b0ff;
  --s-tick: #93b0ff;
  --s-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.site * { box-sizing: border-box; }
body.site a { color: var(--s-link); }
body.site button, body.site input, body.site select, body.site textarea { font-family: inherit; }
body.site main { display: block; padding: 0; max-width: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 12px; z-index: 100; background: var(--s-surface); color: var(--s-text); padding: 8px 12px; border-radius: 8px; }

/* ---------------------------------------------------------------- buttons */

.site .sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  vertical-align: middle; font-family: inherit; font-size: 16px; font-weight: 700;
  line-height: 1.25; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.site .sbtn:focus-visible { outline: 3px solid var(--s-accent); outline-offset: 3px; }
.site .sbtn:hover { transform: translateY(-1px); }
.site .sbtn-primary { background: var(--s-primary); color: var(--s-primary-text); }
.site .sbtn-primary:hover { background: var(--s-primary-hover); }
.site .sbtn-accent { background: var(--s-accent); color: var(--s-accent-text); box-shadow: 0 8px 24px rgba(198, 241, 53, 0.25); }
.site .sbtn-accent:hover { box-shadow: 0 10px 30px rgba(198, 241, 53, 0.4); }
.site .sbtn-ghost { background: transparent; color: var(--s-text); border-color: var(--s-border); }
.site .sbtn-ghost:hover { background: var(--s-surface-2); }
.site .sbtn-stage { background: rgba(255, 255, 255, 0.08); color: var(--stage-text); border-color: rgba(255, 255, 255, 0.35); }
.site .sbtn-stage:hover { background: rgba(255, 255, 255, 0.16); }
.site .sbtn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.site .sbtn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------- header */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--s-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--s-border) 70%, transparent);
}
.site-nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--s-text); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.site .logo { color: var(--s-text); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo .brand-logo { max-height: 36px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.site .nav-links a { color: var(--s-muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.site .nav-links a:hover { color: var(--s-text); background: var(--s-surface-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site .icon-btn { color: var(--s-text); }
.menu-btn { display: none; background: none; border: 1px solid var(--s-border); border-radius: 10px; width: 44px; height: 44px; color: var(--s-text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu[data-open] {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 20px;
    border-top: 1px solid var(--s-border); background: var(--s-bg);
  }
  .site .mobile-menu a:not(.sbtn) { color: var(--s-text); text-decoration: none; font-weight: 600; padding: 12px 8px; border-radius: 8px; }
  .site .mobile-menu a:not(.sbtn):hover { background: var(--s-surface-2); }
  .mobile-menu .sbtn { margin-top: 8px; }
}

/* ---------------------------------------------------------------- hero */

.hero-stage {
  position: relative; overflow: hidden; color: var(--stage-text);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(36, 121, 249, 0.38), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(198, 241, 53, 0.12), transparent 60%),
    linear-gradient(160deg, var(--stage-1) 0%, var(--stage-2) 55%, var(--stage-3) 100%);
}
.hero-stage::before {
  /* faint court markings across the whole hero */
  content: ""; position: absolute; inset: 0; opacity: 0.09; pointer-events: none;
  background-image:
    linear-gradient(var(--court-line) 2px, transparent 2px),
    linear-gradient(90deg, var(--court-line) 2px, transparent 2px);
  background-size: 220px 140px; background-position: center;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; padding: 72px 20px 96px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 800; color: var(--stage-text); }
.hero h1 .hl { color: var(--s-accent); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--stage-muted); max-width: 560px; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--stage-muted); font-size: 15px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--s-accent); }
.store-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); color: var(--stage-text);
  font-size: 14px; line-height: 1.2;
}
.store-pill svg { width: 22px; height: 22px; }
.store-pill small { display: block; color: var(--stage-muted); font-size: 12px; }

/* the TV board and the phone */
.showcase { position: relative; min-height: 460px; margin-bottom: 40px; }
.tv {
  position: relative; background: #0a0f12; border-radius: 18px; padding: 12px;
  box-shadow: var(--s-shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transform-origin: left center;
}
.tv::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 120px; height: 26px; transform: translateX(-50%); background: linear-gradient(#161d21, #0a0f12); border-radius: 0 0 12px 12px; }
.board {
  position: relative; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #142a5c, #070f24 70%);
  padding: 16px 16px 18px; color: #fff;
}
.board-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.board-title { font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: #c9d6f7; }
.board-clock {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 26px; color: #fff;
  background: rgba(255, 255, 255, 0.08); padding: 2px 12px; border-radius: 10px;
}
.board-clock.is-break { color: var(--s-accent); }
.courts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.court-wrap { text-align: center; }
.court-name { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #c9d6f7; margin-bottom: 4px; }
.court {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--court);
  border: 2px solid var(--court-line); border-radius: 6px; min-height: 92px;
}
.court::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--court-line); }
.side { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 6px; }
.chip {
  font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .35s ease, transform .35s ease;
}
.board.swapping .chip { opacity: 0; transform: translateY(6px); }
.resting {
  margin-top: 12px; text-align: center; font-weight: 700; font-size: 14px; color: #0b1424;
  background: var(--s-accent); border-radius: 8px; padding: 6px 10px; transition: opacity .35s ease;
}
.board.swapping .resting { opacity: 0.2; }
.board-progress { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.board-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2479f9, var(--s-accent)); transition: width .4s linear; }

.phone {
  position: absolute; right: -28px; bottom: -92px; width: 200px; border-radius: 30px; padding: 9px;
  background: #0a0f12; box-shadow: var(--s-shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(4deg);
}
.phone-screen { background: #f5f7fc; border-radius: 22px; overflow: hidden; color: #0b1424; }
.phone-bar { background: #1447e6; color: #fff; padding: 14px 12px 10px; font-weight: 800; font-size: 14px; }
.phone-tabs { display: flex; font-size: 11px; font-weight: 700; color: #1447e6; border-bottom: 1px solid #d6deef; background: #fff; }
.phone-tabs span { flex: 1; text-align: center; padding: 7px 0; }
.phone-tabs span.on { border-bottom: 2px solid #1447e6; }
.phone-list { padding: 6px 10px 12px; }
.phone-row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #e3e8f4; }
.phone-row .box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid #1447e6; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-row .box.on { background: #1447e6; }
.phone-row .box.on::after { content: ""; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.phone-row .late { margin-left: auto; font-size: 10px; font-weight: 800; color: #6b4b00; background: #ffe79a; padding: 1px 6px; border-radius: 6px; }
.phone-count { font-size: 12px; font-weight: 800; padding: 8px 10px 0; color: #0b1424; }

.hero-wave { display: block; width: 100%; height: 64px; margin-top: -1px; color: var(--s-bg); }

/* ---------------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section-alt { background: var(--s-surface-2); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-primary); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 10px 0 14px; color: var(--s-text); }
.section-head p { color: var(--s-muted); font-size: 18px; line-height: 1.6; margin: 0; }

/* sports strip */
.sports-strip { padding: 34px 0 10px; }
.sports-strip p { text-align: center; color: var(--s-muted); font-weight: 700; margin: 0 0 18px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.sports { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.sport {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px;
  background: var(--s-surface); border: 1px solid var(--s-border); box-shadow: var(--s-shadow);
  font-weight: 700; color: var(--s-text); transition: transform .2s ease, border-color .2s ease;
}
.sport:hover { transform: translateY(-3px); border-color: var(--s-primary); }
.sport svg { width: 30px; height: 30px; color: var(--s-primary); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 22px;
  padding: 28px 24px 26px; box-shadow: var(--s-shadow);
}
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--s-primary-soft); color: var(--s-primary-soft-text); font-weight: 800; font-size: 20px; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 21px; color: var(--s-text); }
.step p { margin: 0; color: var(--s-muted); line-height: 1.6; }
.step-art { margin-top: 18px; border-radius: 14px; background: var(--s-surface-2); border: 1px solid var(--s-border); padding: 14px; min-height: 108px; }
.mini-row { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 4px 0; color: var(--s-text); }
.mini-row .box { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--s-tick); }
.mini-row .box.on { background: var(--s-tick); }
.dice { display: flex; align-items: center; justify-content: center; gap: 14px; height: 80px; }
.dice svg { width: 56px; height: 56px; color: var(--s-primary); animation: wobble 3s ease-in-out infinite; }
.dice svg + svg { animation-delay: .4s; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) translateY(-4px); } }
.screen-art { height: 80px; display: flex; align-items: center; justify-content: center; }
.screen-art .mini-tv { width: 150px; height: 80px; border-radius: 8px; background: #0a0f12; padding: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.screen-art .mini-tv span { background: var(--court); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 3px; }

/* feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 30px 0; }
.feature-row + .feature-row { margin-top: 30px; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 8px 0 14px; color: var(--s-text); letter-spacing: -0.015em; }
.feature-copy p { color: var(--s-muted); font-size: 18px; line-height: 1.6; margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--s-text); line-height: 1.5; }
.ticks svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--s-tick); margin-top: 1px; }
.feature-art {
  position: relative; border-radius: 24px; padding: 26px; min-height: 300px;
  background: linear-gradient(150deg, var(--stage-1), var(--stage-2) 60%, var(--stage-3));
  box-shadow: var(--s-shadow); overflow: hidden; color: var(--stage-text);
}
.feature-art .court { min-height: 120px; }
.feature-art .chip { font-size: 15px; }

.dialog-art {
  max-width: 340px; margin: 18px auto 0; background: #ffffff; color: #0b1424; border-radius: 18px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.dialog-art h4 { margin: 0 0 6px; font-size: 18px; }
.dialog-art p { margin: 0 0 14px; color: #4a5670; font-size: 14px; line-height: 1.5; }
.dialog-art .sbtn { width: 100%; min-height: 42px; font-size: 15px; background: #1447e6; color: #fff; }
.dialog-art .sbtn + .sbtn { margin-top: 8px; background: transparent; color: #1447e6; border-color: #c5d0ea; }

.finish-art { display: grid; gap: 14px; }
.timeline { display: flex; gap: 6px; align-items: flex-end; height: 120px; }
.timeline span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(#2479f9, #0d3bb3); }
.timeline span.break { background: rgba(255, 255, 255, 0.18); height: 30% !important; }
.finish-labels { display: flex; justify-content: space-between; color: var(--stage-muted); font-size: 14px; font-weight: 700; }
.finish-badge { display: inline-flex; align-items: center; gap: 8px; align-self: start; background: var(--s-accent); color: #0b1424; font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: 14px; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard {
  background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 20px; padding: 24px;
  box-shadow: var(--s-shadow); transition: transform .2s ease, border-color .2s ease;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--s-primary); }
.ficon { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--s-primary-soft); color: var(--s-primary-soft-text); margin-bottom: 14px; }
.ficon svg { width: 24px; height: 24px; }
.fcard h3 { margin: 0 0 8px; font-size: 19px; color: var(--s-text); }
.fcard p { margin: 0; color: var(--s-muted); line-height: 1.6; }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.plan {
  position: relative; background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 26px; padding: 32px;
  box-shadow: var(--s-shadow); display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--s-primary); }
.plan-tag { position: absolute; top: -14px; left: 32px; background: var(--s-accent); color: var(--s-accent-text); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 24px; color: var(--s-text); }
.plan-sub { color: var(--s-muted); margin: 6px 0 22px; line-height: 1.5; }
.plan .ticks { margin-bottom: 28px; }
.plan .sbtn { margin-top: auto; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: 16px; padding: 0 22px; box-shadow: var(--s-shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 18px; color: var(--s-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--s-primary); outline-offset: 4px; border-radius: 6px; }
.faq summary .chev { width: 22px; height: 22px; color: var(--s-primary); transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--s-muted); line-height: 1.65; }

/* closing band */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  position: relative; overflow: hidden; border-radius: 30px; padding: 56px 40px; text-align: center; color: var(--stage-text);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(198, 241, 53, 0.18), transparent 60%),
    linear-gradient(140deg, var(--stage-1), var(--stage-2) 55%, var(--stage-3));
  box-shadow: var(--s-shadow-lg);
}
.cta-inner h2 { color: var(--stage-text); margin-top: 0; }
.cta-inner p { color: var(--stage-muted); font-size: 18px; max-width: 560px; margin: 0 auto 26px; line-height: 1.6; }
.cta-inner .hero-ctas { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--s-border); background: var(--s-surface); padding: 52px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid p { color: var(--s-muted); line-height: 1.6; margin: 12px 0 0; max-width: 320px; }
.foot-grid h4 { margin: 4px 0 12px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s-text); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site .foot-grid a { color: var(--s-muted); text-decoration: none; }
.site .foot-grid a:hover { color: var(--s-link); text-decoration: underline; }
.foot-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--s-border); color: var(--s-muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* scroll reveal - only when the script has run and motion is welcome */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dice svg { animation: none; }
  .tv { transform: none; }
  .site .sbtn:hover, .sport:hover, .fcard:hover { transform: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .showcase { max-width: 620px; margin: 0 auto; width: 100%; }
  .tv { transform: none; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.flip .feature-copy { order: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .courts { grid-template-columns: 1fr 1fr; }
  .courts .court-wrap:nth-child(3) { display: none; }
  .showcase { min-height: 0; }
  .phone { position: relative; right: auto; bottom: auto; width: 170px; margin: -28px 6px 0 auto; transform: rotate(3deg); }
  .feature-grid, .plans { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 22px; }
  .hero-ctas .sbtn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* the logo: light and dark artwork swap with the theme */
.logo-img { height: 34px; width: auto; display: block; }
.logo-img.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-img.on-light { display: none; }
  :root:not([data-theme="light"]) .logo-img.on-dark { display: block; }
}
:root[data-theme="dark"] .logo-img.on-light { display: none; }
:root[data-theme="dark"] .logo-img.on-dark { display: block; }
.site-footer .logo-img { height: 30px; }
@media (max-width: 400px) { .logo-img { height: 28px; } }
