/*
 * The app's own palette and type rules, from src/theme/index.ts: a graphite
 * chassis, an amber backlight for anything live, a cold cyan for plotted data.
 * Dark only, deliberately — the app has no light mode, and a site that flipped
 * to white would be advertising a different product.
 */

:root {
  --chassis: #14171c;
  --ground: #0e1116;
  --panel: #1b2027;
  --panel-high: #232a33;
  --panel-active: #2c343f;
  --hairline: #657081;
  --divider: #2a313a;
  --ink: #e9eef4;
  --ink-mute: #a7b1be;
  --ink-faint: #838e9d;
  --amber: #ffb13b;
  --amber-ink: #ffc978;
  --amber-dim: #4a3717;
  --cyan: #57d9c6;
  --cyan-dim: #173f3a;
  --alert: #ff5b5b;
  --on-amber: #12151a;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 56px);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--amber-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- type ----------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-weight: 800;
}

h1 {
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-mute);
  max-width: var(--measure);
}

.muted {
  color: var(--ink-faint);
}

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
}

/* --- shell ----------------------------------------------------------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--divider);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
  max-width: var(--measure);
}

/* --- nav ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 13px;
  text-transform: uppercase;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--amber);
  display: grid;
  place-items: center;
  color: var(--on-amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-mute);
}

.nav-links a {
  color: inherit;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Two letters each, because a flag is a country and these are languages. */
.langs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding-left: 18px;
}

.langs a {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1;
}

.langs a:hover {
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}

.langs a.here {
  color: var(--on-amber);
  background: var(--amber);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .langs {
    padding-left: 0;
  }
}

/* --- hero ------------------------------------------------------------ */

.hero {
  border-top: none;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.hero h1 span {
  color: var(--amber);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--on-amber);
}

.btn-primary:hover {
  background: var(--amber-ink);
}

.btn-quiet {
  border-color: var(--divider);
  color: var(--ink);
  background: var(--panel);
}

.btn-quiet:hover {
  border-color: var(--hairline);
  background: var(--panel-high);
}

/* The screen: a phone-shaped frame around the live overlay. */
.screen {
  position: relative;
  border: 1px solid var(--divider);
  border-radius: 16px;
  overflow: hidden;
  background: var(--chassis);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.screen canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border-top: 1px solid var(--divider);
  background: var(--panel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--amber);
}

.rec::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.hero-note::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--hairline);
  flex: none;
}

/* --- discipline scenes ----------------------------------------------- */

.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.scene {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--divider);
  border-radius: 14px;
  overflow: hidden;
}

.scene canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--chassis);
}

.scene figcaption {
  border-top: 1px solid var(--divider);
  padding: 13px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scene figcaption strong {
  font-size: 15px;
  font-weight: 700;
}

.scene figcaption span {
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.45;
}

/* --- gauge wall ------------------------------------------------------ */

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.spec {
  background: var(--panel);
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.spec:hover {
  border-color: var(--hairline);
  transform: translateY(-2px);
}

.spec canvas {
  display: block;
  width: 100%;
  height: 152px;
}

.spec-foot {
  border-top: 1px solid var(--divider);
  padding: 11px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-foot strong {
  font-size: 14px;
  font-weight: 700;
}

.spec-foot span {
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.45;
}

/* --- formats --------------------------------------------------------- */

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
}

.format {
  background: var(--panel);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.format-name {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.format h3 {
  font-size: 16px;
}

.format p {
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.badge {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(87, 217, 198, 0.4);
}

.badge.amber {
  background: var(--amber-dim);
  color: var(--amber-ink);
  border-color: rgba(255, 177, 59, 0.4);
}

/* --- privacy --------------------------------------------------------- */

.privacy {
  background: var(--chassis);
}

.claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.claim {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
}

.claim strong {
  font-size: 16px;
}

.claim p {
  font-size: 14.5px;
  color: var(--ink-mute);
}

/* --- steps ----------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.step-n {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.step p {
  color: var(--ink-mute);
  font-size: 15px;
}

/* --- sports ---------------------------------------------------------- */

.sports {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sport {
  border: 1px solid var(--divider);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink-mute);
}

/* --- pricing --------------------------------------------------------- */

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

.tier {
  background: var(--panel);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier.pro {
  border-color: rgba(255, 177, 59, 0.45);
  background: linear-gradient(180deg, rgba(74, 55, 23, 0.35), var(--panel) 60%);
}

.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
  color: var(--ink-mute);
}

.tier li {
  display: flex;
  gap: 10px;
}

.tier li::before {
  content: '—';
  color: var(--hairline);
  flex: none;
}

.tier.pro li::before {
  content: '+';
  color: var(--amber);
}

/* --- footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid var(--divider);
  padding-block: 40px 56px;
  color: var(--ink-faint);
  font-size: 14px;
}

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

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

footer a {
  color: var(--ink-mute);
}

/* --- prose (privacy, support) ---------------------------------------- */

.prose {
  max-width: 70ch;
  padding-block: clamp(48px, 7vw, 88px);
}

.prose h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: 10px;
}

.prose h2 {
  font-size: 20px;
  margin-top: 44px;
  margin-bottom: 12px;
}

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

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
}

.prose strong {
  color: var(--ink);
}

.stamp {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink-faint);
}
