/* Point Sports: shared site styles. Slate palette, follows the system light/dark setting. */

:root {
  --ground: #0D1117;
  --surface: #161C24;
  --border: #242C37;
  --divider: #1E252F;
  --text: #F2F4F7;
  --muted: #9AA4B2;
  --chip-text: #C9D1DB;
  --accent: #7B9FBF;
  --on-accent: #0D1117;
  --accent-text: #7B9FBF;
  --live: #FF6B5E;
  --dot: #7B9FBF;
  --seam: #5E82A2;
  --pro-fill: #C9A45C;
  --pro-on-fill: #17120A;
  --pro-line: #C9A45C;
  --pro-text: #D6B46E;
  --max: 1080px;
  --narrow: 720px;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #F3F5F8;
    --surface: #FFFFFF;
    --border: #E1E5EA;
    --divider: #E1E5EA;
    --text: #0F141A;
    --muted: #5B6470;
    --chip-text: #2B333D;
    --accent: #7B9FBF;
    --on-accent: #0F141A;
    --accent-text: #44678A;
    --live: #D93A2F;
    --dot: #6A8FB0;
    --seam: #557A9C;
    --pro-fill: #B8914A;
    --pro-on-fill: #17120A;
    --pro-line: #A8822F;
    --pro-text: #85621C;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ground);
  color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--divider); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: baseline; text-decoration: none; color: var(--text);
  font-weight: 500; font-size: 24px; letter-spacing: -0.01em; line-height: 1;
}
.brand .period, .wordmark .period {
  display: inline-block; width: 0.23em; height: 0.23em; border-radius: 50%;
  background: var(--dot); margin-left: 0.08em;
}
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 500;
  font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 8px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 500;
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text);
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5.4vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 20px; line-height: 1.3; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--divider); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin-top: 8px; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* Hero */
.hero { padding: 88px 0 80px; text-align: center; }
.hero .ball { width: 84px; height: 84px; margin: 0 auto 32px; }
.hero h1 { max-width: 19ch; margin: 14px auto 0; text-wrap: balance; }
.hero .lede { max-width: 36ch; margin: 18px auto 0; text-wrap: balance; }
.hero-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-status { font-size: 15px; color: var(--muted); }

.ball circle { fill: var(--dot); }
.ball path { fill: none; stroke: var(--seam); stroke-width: 2.2; stroke-dasharray: 3 2.2; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 10px; border: 0; cursor: pointer;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 500;
  font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); text-decoration: none;
}
.button:hover { opacity: 0.9; text-decoration: none; }

/* Cards grid */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .grid.five { grid-template-columns: repeat(6, 1fr); }
  .grid.five > * { grid-column: span 2; }
  .grid.five > :nth-child(4), .grid.five > :nth-child(5) { grid-column: span 3; }
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 20px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 16px; }
.card .mark {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot); margin-bottom: 14px;
}

/* Leagues */
.leagues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.leagues li {
  list-style: none; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 500;
  font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chip-text);
}

/* Feature list */
.features { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Screenshots */
.shots {
  display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .shots {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 0 24px 8px; scroll-padding: 0 24px;
  }
  .shot { flex: 0 0 62%; max-width: 260px; scroll-snap-align: start; }
}
.shot { margin: 0; }
.screen {
  border-radius: 28px 28px 0 0; padding: 8px 8px 0; background: #05070A;
  border: 1px solid var(--border); border-bottom: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.screen img { border-radius: 21px 21px 0 0; width: 100%; height: auto; aspect-ratio: 600 / 769; }
.shot figcaption { margin-top: 6px; font-size: 15px; color: var(--muted); text-align: center; }

/* Pro */
.pro-panel {
  background: var(--surface); border: 1px solid var(--pro-line); border-radius: 18px;
  padding: 36px 32px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr;
}
@media (max-width: 760px) { .pro-panel { grid-template-columns: 1fr; padding: 28px 22px; } }
.pro-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 12px;
  border: 1px solid var(--pro-line); border-radius: 16px; color: var(--pro-text);
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
}
.pro-chip svg { width: 12px; height: 12px; fill: currentColor; }
.pro-panel h2 { margin-top: 16px; }
.pro-panel .intro { margin-top: 12px; color: var(--muted); }
.pro-list { list-style: none; display: grid; gap: 14px; }
.pro-list li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; }
.pro-list svg { width: 14px; height: 14px; fill: var(--pro-text); margin-top: 5px; }
.pro-list strong { font-weight: 500; display: block; }
.pro-list span { color: var(--muted); font-size: 16px; }

/* Waitlist */
.waitlist-section { text-align: center; }
.waitlist-section h2 { max-width: 20ch; margin: 10px auto 0; text-wrap: balance; }
.waitlist-section .lede { max-width: 40ch; margin: 14px auto 0; }
.waitlist { width: 100%; max-width: 440px; margin: 32px auto 0; text-align: center; }
.waitlist-lead { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.field-row { display: flex; gap: 8px; }
.field-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  outline: none; transition: border-color 0.15s;
}
.field-row input::placeholder { color: var(--muted); }
.field-row input:focus { border-color: var(--accent); }
.field-row button {
  height: 48px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer;
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 500;
  font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); transition: opacity 0.15s;
}
.field-row button:hover { opacity: 0.9; }
.field-row button:disabled { opacity: 0.6; cursor: default; }
.fine-print { font-size: 13px; color: var(--muted); margin-top: 10px; }
.form-error { font-size: 14px; color: var(--live); margin-top: 10px; }
.success {
  padding: 18px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
}
.success strong { display: block; font-weight: 500; font-size: 18px; color: var(--text); }
.success span { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Text pages (About, Support, legal) ---------- */
.page-head { padding: 64px 0 8px; }
.page-head h1 { margin-top: 10px; font-size: clamp(32px, 4.6vw, 46px); }
.page-head .lede { margin-top: 14px; }
.prose { padding: 32px 0 80px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }
.prose .meta { color: var(--muted); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 500;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.table-scroll { overflow-x: auto; }
.prose .toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 20px; margin: 8px 0 24px;
}
.contact-card p { margin: 0; }
.contact-card p + p { margin-top: 6px; }
.contact-card .big { font-size: 20px; font-weight: 500; }

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0 6px; }
.prose .faq-item h3 { margin: 0 0 8px; font-size: 19px; }
.faq-item > div p, .faq-item > div ol { color: var(--muted); }
.faq-item > div p { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--divider); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 60px; }
  .site-nav { gap: 16px; }
  .brand { font-size: 22px; }
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; word-break: break-all;
}
@media (max-width: 560px) {
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 9px 8px; }
}
