/* Paintball Coach — marketing site.

   Tokens are lifted from the shipped app's design system
   (PaintballTraining/Source/DesignSystem/PTColors.swift and
   PTTypography.swift), not from the older Variant C handoff doc, which
   still describes a teal and a typeface the app moved off. Values here
   should track the app: if PTColors changes, change these too. */

:root {
  /* Background gradient — ptBackgroundInner / Mid / Outer */
  --bg-inner: #11203c;
  --bg-mid: #0a1226;
  --bg-outer: #060a14;

  --surface: #142038;
  --surface-2: #101a2e;

  --accent: #33e6e0;      /* ptAccent */
  --accent-2: #1aa9d6;    /* ptAccent2 */
  --ink: #04141a;         /* ptInk — text on an accent fill */

  --text: #e9f1fb;        /* ptText */
  --muted: #7f8eb2;       /* ptMuted */
  --dim: #5c6b8c;         /* ptDim */

  --border: rgba(86, 196, 235, 0.18);   /* ptBorder */
  --hairline: rgba(86, 196, 235, 0.12); /* ptHairline */

  --team-own: #f26bc8;      /* ptTeamOwn */
  --team-opponent: #e8a53c; /* ptTeamOpponent */

  /* The app is nearly square-cornered: PTRadius.standard is 8. */
  --radius: 8px;

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page: 1080px;
}

/* Fonts are self-hosted from the app's own bundle copies, so the site
   renders in the same faces as the screenshots with no third-party
   request and nothing to consent to. */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-mid);
  background-image:
    radial-gradient(120% 80% at 50% -10%, var(--bg-inner) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-outer) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

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

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

.brand .mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(51, 230, 224, 0.55);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(51, 230, 224, 0.5);
  color: var(--accent);
}

.btn-ghost:hover { background: rgba(51, 230, 224, 0.08); }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 56ch;
}

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

.hero { padding: 84px 0 40px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--dim);
}

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

.shot {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.85);
  display: block;
  width: 100%;
  height: auto;
}

.shot-lead { max-width: 360px; margin-left: auto; }

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

section { padding: 56px 0; }

.section-head { max-width: 60ch; margin-bottom: 40px; }

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}

.feature:first-of-type { border-top: 0; }

.feature.reverse .feature-media { order: -1; }

.feature-media img { max-width: 330px; }

.feature-body ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

.feature-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Team-colour swatches, matching the app's own two team tints. */
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: baseline;
}
.swatch-own { background: var(--team-own); }
.swatch-opponent { background: var(--team-opponent); }

/* ---------- Prose (privacy / support) ---------- */

.prose {
  max-width: 72ch;
  padding: 64px 0 24px;
}

.prose h2 { margin-top: 44px; }

.prose h2:first-of-type { margin-top: 28px; }

.prose p,
.prose li {
  color: var(--muted);
  font-size: 16px;
}

.prose strong { color: var(--text); font-weight: 700; }

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

.prose ul { padding-left: 20px; }

.prose li { margin-bottom: 8px; }

.updated {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-scroll { overflow-x: auto; }

/* ---------- Callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
}

.callout p { margin: 0; }

/* ---------- Contact ---------- */

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
}

.contact a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  word-break: break-all;
}

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

.cta {
  text-align: center;
  padding: 72px 0 84px;
}

.cta h2 { margin-bottom: 12px; }

.cta p {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 46ch;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  margin-top: 24px;
}

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

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  margin-right: 20px;
}

.site-footer a:hover { color: var(--text); }

.copyright {
  color: var(--dim);
  font-size: 13.5px;
  margin: 0;
}

/* ---------- Focus ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 52px 0 24px; }
  .hero .wrap,
  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature.reverse .feature-media { order: 0; }
  .shot-lead { margin: 0 auto; }
  .feature-media img { max-width: 300px; margin: 0 auto; }
  .nav { gap: 16px; }
}

@media (max-width: 520px) {
  .nav a { font-size: 13.5px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
