/* Tokens follow the app's design system (docs/design-system.md in the app repo). */
:root {
  color-scheme: dark;
  --canvas: #050607;
  --surface: #0b0d0e;
  --surface-raised: #121516;
  --text: #f4f5f1;
  --secondary: #aeb5b2;
  --tertiary: #747c79;
  --separator: #222625;
  --observation: #ff8c68;
  --ember: #e0512e;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--observation); }
a:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--observation);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; top: 0.5rem; left: 1rem; z-index: 20;
  padding: 0.5rem 1rem; background: var(--text); color: var(--canvas);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--canvas); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10;
  background: linear-gradient(to bottom, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.6) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 650; font-size: 1.125rem; letter-spacing: -0.03em; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.brand-name span { color: var(--observation); }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.site-nav a { color: var(--secondary); text-decoration: none; padding-block: 0.5rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 40rem) { .site-nav .optional { display: none; } .site-nav { gap: 1.1rem; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 56rem); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(5, 6, 7, 0.9), rgba(5, 6, 7, 0.45) 55%, rgba(5, 6, 7, 0.1)),
    linear-gradient(to top, var(--canvas), transparent 35%);
}
.hero-copy { padding-block: 9rem clamp(4rem, 12vh, 8rem); }
.eyebrow { margin: 0 0 1rem; color: var(--observation); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 {
  margin: 0; max-width: 11ch;
  font: 400 clamp(3rem, 9vw, 6.5rem)/0.98 var(--serif);
  letter-spacing: -0.02em;
}
.hero .lede { max-width: 34rem; margin: 1.5rem 0 0; color: var(--secondary); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.hero .lede strong { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.4rem;
  border-radius: 999px; background: var(--text); color: var(--canvas);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.button:hover { color: var(--canvas); background: #fff; }
.button svg { width: 1.1rem; height: 1.1rem; }
.button[aria-disabled="true"] { cursor: default; }
.text-link { color: var(--secondary); font-size: 0.9375rem; text-decoration: none; }
.text-link:hover { color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--tertiary); font-size: 0.875rem; }
.facts li::before { content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; margin: 0 0.5rem 0.15rem 0; border-radius: 50%; background: var(--observation); }

/* Sections */
.section { padding-block: clamp(4.5rem, 11vw, 8rem); border-top: 1px solid var(--separator); }
.section h2 { margin: 0; font: 400 clamp(2.1rem, 5vw, 3.4rem)/1.05 var(--serif); letter-spacing: -0.015em; max-width: 16ch; }
.section p { color: var(--secondary); max-width: 36rem; }
.section-intro { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-intro p { font-size: 1.125rem; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.feature.reverse { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
.feature.reverse .feature-copy { order: 2; }
.feature-copy p { font-size: 1.125rem; }
.feature-copy ul { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.feature-copy li { padding-left: 1.25rem; position: relative; color: var(--secondary); }
.feature-copy li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 1px; background: var(--observation); }
.feature-copy li strong { color: var(--text); font-weight: 500; }
@media (max-width: 52rem) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .feature .phone { justify-self: center; }
}

/* Phone frame around a rendered app screen (1320 x 2868) */
.phone {
  width: min(100%, 20rem);
  padding: 0.55rem;
  border-radius: 3rem;
  background: linear-gradient(160deg, #2a2f2e, #0d0f10 40%, #1b1f1f);
  box-shadow: 0 0 0 1px #2e3433, 0 40px 80px -30px rgba(224, 81, 46, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; border-radius: 2.5rem; background: var(--surface); }
.phone-pair { display: flex; align-items: flex-start; justify-content: center; gap: clamp(1rem, 4vw, 2.5rem); margin-bottom: clamp(3rem, 7vw, 4.5rem); }
.phone-pair .phone { width: min(46%, 17rem); }
.phone-pair .phone:last-child { margin-top: 3rem; }

/* Sports */
.sports { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--separator); border: 1px solid var(--separator); border-radius: 1.25rem; overflow: hidden; }
.sports li { background: var(--canvas); padding: 1.4rem 1.4rem 1.5rem; }
@media (min-width: 40rem) { .sports { grid-template-columns: repeat(2, 1fr); } .sports li:last-child { grid-column: 1 / -1; } }
@media (min-width: 60rem) { .sports { grid-template-columns: repeat(3, 1fr); } .sports li:last-child { grid-column: auto; } }
.sports h3 { margin: 0 0 0.35rem; font: 400 1.5rem/1.2 var(--serif); }
.sports p { margin: 0; color: var(--secondary); font-size: 0.9375rem; line-height: 1.5; }
.sports .kind { display: block; margin-bottom: 0.6rem; color: var(--observation); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.footnote { margin-top: 1.5rem; color: var(--tertiary); font-size: 0.9375rem; }

/* Privacy grid */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: clamp(1.5rem, 4vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.points li { border-top: 1px solid var(--separator); padding-top: 1.25rem; }
.points h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 600; }
.points p { margin: 0; font-size: 0.9375rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.plans > li { border: 1px solid var(--separator); border-radius: 1.25rem; padding: 1.75rem; }
.plans > li.plus { border-color: rgba(255, 140, 104, 0.45); background: linear-gradient(160deg, rgba(255, 140, 104, 0.08), transparent 55%); }
.plans h3 { margin: 0 0 0.25rem; font: 400 1.75rem/1.2 var(--serif); }
.plans .price { margin: 0 0 1.25rem; color: var(--tertiary); font-size: 0.9375rem; }
.plans ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.plans ul li { padding-left: 1.25rem; position: relative; color: var(--secondary); font-size: 0.9375rem; }
.plans ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 1px; background: var(--observation); }

/* FAQ */
.faq { max-width: 46rem; border-top: 1px solid var(--separator); }
.faq details { border-bottom: 1px solid var(--separator); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; font-size: 1.125rem; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--observation); font-size: 1.5rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Closing call */
.closing { text-align: center; }
.closing h2 { margin-inline: auto; max-width: 18ch; }
.closing p { margin-inline: auto; }
.closing .actions { justify-content: center; }
.closing img { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.75rem; border-radius: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--separator); padding-block: 2.5rem 3rem; color: var(--tertiary); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* Documents (privacy, terms, support) */
.document { padding-block: 8rem 5rem; }
.document article { max-width: 44rem; }
.document h1 { margin: 0 0 0.5rem; font: 400 clamp(2.6rem, 7vw, 4rem)/1.05 var(--serif); letter-spacing: -0.015em; }
.document .meta { margin: 0 0 2.5rem; color: var(--tertiary); font-size: 0.9375rem; }
.document h2 { margin: 3rem 0 0.75rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.document p, .document li { color: var(--secondary); }
.document strong { color: var(--text); font-weight: 600; }
.document a { color: var(--text); }
.document a:hover { color: var(--observation); }
.document ol, .document ul { padding-left: 1.25rem; }
.document li { margin-bottom: 0.5rem; }
.document li::marker { color: var(--observation); }
.contact-card { margin: 0 0 2.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--separator); border-radius: 1rem; background: var(--surface); }
.contact-card p { margin: 0; color: var(--text); }
.contact-card p + p { margin-top: 0.25rem; color: var(--secondary); font-size: 0.9375rem; }

.not-found { min-height: 80svh; display: grid; place-content: center; text-align: center; padding: 8rem var(--gutter) 4rem; }
.not-found h1 { margin: 0 0 1rem; font: 400 clamp(2.4rem, 7vw, 4rem)/1.05 var(--serif); }
.not-found p { color: var(--secondary); margin: 0 0 2rem; }
.not-found .actions { justify-content: center; }

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .document { padding: 0; }
  .document p, .document li, .document .meta { color: #000; }
}
