/* Playr marketing site - design tokens mirror src/theme.js so this reads as
   the same brand as the app. Single dark theme by design (the app itself
   has no light mode), no build step, no JS framework. */

:root {
  --navy: #020617;
  --panel: #0d1220;
  --slate: #10172a;
  --tile: #1b2032;
  --tile-2: #171c2c;
  --ink: #10141f;
  --line: rgba(244, 242, 237, 0.14);
  --line-strong: rgba(244, 242, 237, 0.22);
  --chalk: #dee2e7;
  --dim: #7d818b;
  --coral: #ff5a46;
  --coral-hover: #ff7461;
  --cyan: #3fc1c9;
  --purple: #7d6fe0;
  --green: #5c8e6e;
  --cta-secondary: #1f293b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--chalk);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--coral);
  color: #1a0a06;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---- layout helpers ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
}

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

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--coral);
  color: #1a0a06;
  box-shadow: 0 8px 24px -8px rgba(255, 90, 70, 0.55);
}
.btn-primary:hover {
  background: var(--coral-hover);
}
.btn-secondary {
  background: var(--cta-secondary);
  color: var(--chalk);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--coral);
}
.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.btn-lg {
  padding: 16px 30px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--chalk);
}
.brand .accent-y {
  color: var(--coral);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--chalk);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--chalk);
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a:not(.btn) {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav-links .btn {
    margin-top: 18px;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ---- hero ---- */
.hero {
  padding: 76px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--coral);
}
.hero-sub {
  font-size: 19px;
  color: var(--dim);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ---- hero visual: two nearby players, connected ---- */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.hero-visual .connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-avatar {
  position: absolute;
}
.hero-avatar-a {
  top: 2%;
  left: 0;
  width: 38%;
  aspect-ratio: 1;
}
.hero-avatar-b {
  bottom: 2%;
  right: 0;
  width: 44%;
  aspect-ratio: 1;
}
.hero-avatar-c {
  top: 0;
  right: 2%;
  width: 30%;
  aspect-ratio: 1;
}
.hero-avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-avatar-photo svg {
  width: 42%;
  height: 42%;
  color: var(--dim);
}
.hero-sport-badge {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5);
}
.hero-sport-badge svg {
  width: 52%;
  height: 52%;
  color: #0c0f16;
}
.badge-pos-br {
  right: -6%;
  bottom: -6%;
}
.badge-stack-1 {
  right: -10%;
  top: 5%;
}
.badge-stack-2 {
  right: -10%;
  top: 33%;
}
.badge-stack-3 {
  right: -10%;
  top: 61%;
}
.badge-cyan {
  background: var(--cyan);
}
.badge-coral {
  background: var(--coral);
}
.badge-purple {
  background: var(--purple);
}
.hero-distance-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--tile);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--chalk);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
}
.hero-distance-tag svg {
  width: 13px;
  height: 13px;
  color: var(--cyan);
}
.hero-distance-tag-1 {
  left: 52%;
  top: 45%;
}
.hero-distance-tag-2 {
  left: 83%;
  top: 40%;
}
@media (max-width: 520px) {
  .hero-visual {
    max-width: 320px;
  }
}

/* ---- trust strip ---- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dim);
}
.trust-strip svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
}

/* ---- steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--slate);
  color: var(--coral);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.step p {
  color: var(--dim);
  font-size: 15px;
}

/* ---- feature grid ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 940px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--line-strong);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card p {
  color: var(--dim);
  font-size: 14.5px;
}

.icon-coral {
  background: rgba(255, 90, 70, 0.14);
  color: var(--coral);
}
.icon-cyan {
  background: rgba(63, 193, 201, 0.14);
  color: var(--cyan);
}
.icon-purple {
  background: rgba(125, 111, 224, 0.16);
  color: var(--purple);
}
.icon-green {
  background: rgba(92, 142, 110, 0.18);
  color: var(--green);
}

/* ---- sports pills ---- */
.sport-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sport-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--chalk);
}
.sport-pill svg {
  width: 16px;
  height: 16px;
  color: var(--chalk);
}
.sport-pill.more {
  color: var(--dim);
  border-style: dashed;
}

/* ---- safety section ---- */
.safety-panel {
  background: linear-gradient(155deg, var(--slate), var(--panel) 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
}
@media (max-width: 860px) {
  .safety-panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}
.safety-list {
  display: grid;
  gap: 22px;
}
.safety-item {
  display: flex;
  gap: 16px;
}
.safety-item .icon-coral,
.safety-item .icon-cyan {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.safety-item .icon-coral svg,
.safety-item .icon-cyan svg {
  width: 19px;
  height: 19px;
}
.safety-item h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.safety-item p {
  color: var(--dim);
  font-size: 14.5px;
}

/* ---- premium band ---- */
.premium-band {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (max-width: 780px) {
  .premium-band {
    flex-direction: column;
    text-align: center;
    padding: 36px 26px;
  }
}
.premium-band h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.premium-band p {
  color: var(--dim);
  max-width: 480px;
  font-size: 15px;
}
.premium-band .btn {
  flex-shrink: 0;
}

/* ---- final CTA band ---- */
.cta-band {
  text-align: center;
  padding: 90px 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 90, 70, 0.12), transparent 70%);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}
.cta-band p {
  color: var(--dim);
  font-size: 17px;
  margin-bottom: 34px;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 780px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
.footer-brand p {
  color: var(--dim);
  font-size: 14px;
  margin-top: 14px;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 16px;
}
.footer-col ul {
  display: grid;
  gap: 12px;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--chalk);
  opacity: 0.85;
}
.footer-col a:hover {
  color: var(--coral);
  opacity: 1;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.footer-bottom a {
  color: var(--dim);
}
.footer-bottom a:hover {
  color: var(--chalk);
}

/* ---- simple content pages (about / safety) ---- */
.page-hero {
  padding: 64px 0 20px;
}
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  margin-bottom: 18px;
}
.page-hero p {
  color: var(--dim);
  font-size: 18px;
  max-width: 640px;
}
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  color: var(--dim);
  font-size: 16px;
  margin-bottom: 14px;
}
.prose ul {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 4px;
}
.prose li {
  color: var(--dim);
  font-size: 16px;
  padding-left: 24px;
  position: relative;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose strong {
  color: var(--chalk);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}
.back-link:hover {
  color: var(--coral);
}
.back-link svg {
  width: 15px;
  height: 15px;
}

/* ---- 404 ---- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-page .eyebrow {
  margin-bottom: 18px;
}
.error-page h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
}
.error-page p {
  color: var(--dim);
  font-size: 16px;
  margin-bottom: 30px;
}
