/* ============================================================
   Pro Player Tracker — shared site styles
   Brand: deep navy + gold (matches the PPT app icon)
   Mobile-first: base styles are the mobile layout.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b2a;
  --navy-light: #16283d;
  --navy-lighter: #1e3450;
  --gold: #f5a623;
  --gold-light: #f7c06a;
  --white: #ffffff;
  --text: #d3deea;
  --gray: #8a9bb0;
  --bg: #0a1520;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --max-w: 1080px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 21, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--white); }

.site-nav a.nav-cta {
  color: var(--navy);
  background: var(--gold);
  padding: 8px 14px;
  border-radius: 999px;
}

.site-nav a.nav-cta:hover { background: var(--gold-light); color: var(--navy); }

/* Hide text nav links on small phones; keep brand + CTA */
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 26px;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-play:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-play svg { width: 22px; height: 22px; fill: var(--navy); flex-shrink: 0; }

.btn-play .btn-sub { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.75; line-height: 1.2; }
.btn-play .btn-main { display: block; font-size: 1rem; line-height: 1.25; }

.btn-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 12px;
}

/* ---------- Hero ---------- */

.hero { padding: 56px 0 24px; }

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 18px;
}

.hero h1 em { font-style: normal; color: var(--gold); }

.hero .lede {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 32px;
}

@media (min-width: 820px) {
  .hero { padding: 72px 0 32px; }
  .hero .wrap {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
  .hero .hero-copy { max-width: 560px; }
  .hero .lede { margin-left: 0; }
}

/* ---------- Phone frame ---------- */

.phone {
  width: min(280px, 72vw);
  border-radius: 36px;
  padding: 10px;
  background: #060d14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 166, 35, 0.06);
  flex-shrink: 0;
}

.phone img { border-radius: 26px; width: 100%; }

.phone-lg { width: min(300px, 78vw); }

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.section-alt { background: var(--navy); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

.section-head h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
}

.section-head p { color: var(--gray); }

/* ---------- Feature cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.card .card-icon { font-size: 1.7rem; margin-bottom: 12px; line-height: 1; }

.card h3 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

.card p { font-size: 0.9rem; color: var(--gray); }

/* ---------- Alternating feature rows ---------- */

.feature-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 40px 0;
}

.feature-row .feature-copy { max-width: 520px; text-align: center; }

.feature-row h2, .feature-row h3 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.feature-row p { color: var(--gray); margin-bottom: 12px; }

.feature-row ul { list-style: none; margin-top: 16px; }

.feature-row li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.95rem;
  text-align: left;
}

.feature-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

@media (min-width: 820px) {
  .feature-row { flex-direction: row; justify-content: space-between; gap: 56px; }
  .feature-row.reverse { flex-direction: row-reverse; }
  .feature-row .feature-copy { text-align: left; }
}

/* ---------- Sports grid ---------- */

.sports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 720px) { .sports-grid { grid-template-columns: repeat(4, 1fr); } }

.sport-card {
  display: block;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}

.sport-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.sport-card .sport-emoji { font-size: 2rem; margin-bottom: 10px; }

.sport-card .sport-name { display: block; color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }

.sport-card .sport-sub { display: block; color: var(--gray); font-size: 0.8rem; }

/* ---------- Stat chips (sport pages) ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 8px;
}

.chip {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}

@media (min-width: 820px) { .chip-row { justify-content: flex-start; } }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
  padding-right: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq details[open] summary::after { content: "–"; }

.faq .faq-a { padding: 0 20px 18px; color: var(--gray); font-size: 0.92rem; }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.82rem;
  color: var(--gray);
  padding: 20px 0 0;
}

.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--gold); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 64px 0;
}

.cta-band img.cta-icon { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 20px; }

.cta-band h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.cta-band p { color: var(--gray); max-width: 480px; margin: 0 auto 28px; }

/* ---------- Long-form prose (sport pages, legal) ---------- */

.prose { max-width: 720px; margin: 0 auto; }

.prose h2 { color: var(--white); font-size: 1.4rem; font-weight: 800; margin: 36px 0 12px; }

.prose p { color: var(--text); margin-bottom: 14px; font-size: 0.97rem; }

.prose p.muted { color: var(--gray); }

/* ---------- Comparison table ---------- */

.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}

.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--navy-lighter);
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table tbody th { color: var(--white); font-weight: 600; }

.compare-table td { color: var(--gray); }

.compare-table td.good { color: var(--gold-light); font-weight: 600; }

.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 36px;
  font-size: 0.85rem;
  color: var(--gray);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; margin-bottom: 10px; }

.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }

.footer-cols h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-cols ul { list-style: none; }

.footer-cols li { margin-bottom: 8px; }

.footer-cols a { color: var(--gray); text-decoration: none; }

.footer-cols a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--gray);
}

.footer-bottom p { margin-bottom: 6px; }

/* ---------- Utility ---------- */

.center { text-align: center; }

.mt-lg { margin-top: 40px; }
