/*
 * Crossbar store-submission site — shared styles.
 * (SPORT-SPECIFIC: the app name on the line above)
 *
 * The palette mirrors the app's design tokens (src/ui/tokens.ts) so the
 * site reads as the same product. No external fonts, no @import, no
 * url(...) to any network resource: the privacy policy states that this
 * website loads nothing from third parties, and this file is part of
 * keeping that claim true.
 */

:root {
  --bg0: #0B0F14; /* page background (tokens colors.bg0) */
  --bg1: #151B23; /* card surface (tokens colors.bg1) */
  --bg2: #1B222C; /* raised surface (tokens colors.bg2) */
  --bg3: #212A36; /* borders / most raised (tokens colors.bg3) */
  --text: #E6EDF3; /* near-white body text (tokens colors.text) */
  --dim: #8B98A5; /* secondary text (tokens colors.dim) */
  --accent: #2ECC71; /* SPORT-SPECIFIC: accent — keep in sync with colors.accent in the sport app's src/ui/tokens.ts */
}

* { box-sizing: border-box; }

html {
  background: var(--bg0);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--bg3);
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .brand-dot { color: var(--accent); }

.site-nav a {
  color: var(--dim);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Main ---------- */

main { padding: 56px 0 72px; }

h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 44px 0 12px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 6px;
}

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 22px; }

li { margin-bottom: 6px; }

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

a:hover, a:focus-visible { text-decoration-thickness: 2px; }

.lede {
  color: var(--dim);
  font-size: 1.15rem;
  max-width: 62ch;
}

.muted { color: var(--dim); }

.small { font-size: 0.9rem; }

/* ---------- Landing: store badges ---------- */

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.store-badge {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--bg3);
  border-radius: 10px;
  background: var(--bg1);
  color: var(--dim);
  font-weight: 600;
}

/* ---------- Landing: feature cards ---------- */

.features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.features li {
  margin: 0;
  padding: 16px 18px;
  background: var(--bg1);
  border: 1px solid var(--bg3);
  border-radius: 12px;
}

.features strong {
  display: block;
  margin-bottom: 2px;
}

.features span { color: var(--dim); }

/* ---------- Landing: placeholder screenshots ---------- */

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.screens svg {
  width: 100%;
  height: auto;
  display: block;
}

.phone-body { fill: var(--bg1); stroke: var(--bg3); stroke-width: 2; }
.phone-screen { fill: var(--bg0); stroke: var(--bg3); stroke-width: 1; }
.phone-notch { fill: var(--bg3); }
.phone-slot {
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  opacity: 0.55;
}
.phone-label {
  fill: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}
.phone-sub {
  fill: var(--dim);
  font-family: inherit;
  font-size: 12px;
}

/* ---------- Policy / support pages ---------- */

.doc { max-width: 70ch; }

.doc h2 {
  border-top: 1px solid var(--bg3);
  padding-top: 24px;
  margin-top: 36px;
}

.callout {
  background: var(--bg1);
  border: 1px solid var(--bg3);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--bg3);
  padding: 28px 0 40px;
  color: var(--dim);
  font-size: 0.9rem;
}

.site-footer nav { margin-bottom: 14px; }

.site-footer nav a {
  color: var(--text);
  text-decoration: none;
  margin-right: 20px;
  font-weight: 500;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible { color: var(--accent); }

.site-footer p { margin: 0 0 10px; max-width: 70ch; }

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  main { padding: 40px 0 56px; }
}
