:root {
  --paper: #fafbf9;
  --ink: #1d211e;
  --muted: color-mix(in srgb, var(--ink) 60%, var(--paper));
  --soft: color-mix(in srgb, var(--ink) 38%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 11%, var(--paper));
  --card: color-mix(in srgb, #fff 72%, var(--paper));
  --accent: #3b7ff0;
  --halo: #d9e7fa;
  --good: #2fa66a;
  --bad: #e2553f;
  --shadow: 0 1px 2px #141e190f, 0 8px 24px #141e1914;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --header: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  background: var(--paper);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

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

.skip {
  position: absolute; top: -60px; left: 12px; z-index: 100;
  background: var(--ink); color: var(--paper);
  border-radius: 8px; padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
.note { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.site-nav { margin-left: auto; display: flex; gap: 28px; font-size: 13.5px; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn--sm { padding: 9px 16px 9px 14px; font-size: 13px; }
.btn--lg { padding: 14px 24px 14px 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--soft); }
.site-header .btn { margin-left: 0; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --header: 58px; }
  .brand { font-size: 16px; }
  .btn--sm { padding: 8px 13px 8px 12px; font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header) + clamp(48px, 9vw, 120px)) 0 clamp(72px, 10vw, 128px);
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1;
  background: radial-gradient(60% 50% at 75% 30%, color-mix(in srgb, var(--halo) 70%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: clamp(40px, 6vw, 96px);
}
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -0.03em; }
.hero h1 span { color: var(--soft); }
.hero__lead { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.8; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero__meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--muted); }

.hero__copy > *, .hero__device { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
.hero__copy > :nth-child(1) { animation-delay: .1s; }
.hero__copy > :nth-child(2) { animation-delay: .2s; }
.hero__copy > :nth-child(3) { animation-delay: .35s; }
.hero__copy > :nth-child(4) { animation-delay: .5s; }
.hero__copy > :nth-child(5) { animation-delay: .6s; }
.hero__device { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__actions, .hero__meta { justify-content: center; }
}

/* ---------- iPhone mockup ---------- */
.hero__device { display: flex; justify-content: center; }
.phone {
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(145deg, #2b302c, #121513);
  box-shadow: 0 0 0 1px #00000026, 0 2px 4px #141e1914, 0 30px 60px -10px #141e1933, 0 60px 120px -40px #3b7ff033;
  position: relative;
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 26%; width: 3px; height: 70px;
  border-radius: 0 3px 3px 0; background: #1a1e1b;
}
.phone__screen {
  height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--paper); position: relative;
  display: flex; flex-direction: column;
  padding: 14px 18px 18px;
  container-type: inline-size;
}
.phone__island {
  width: 31%; height: 26px; border-radius: 20px; background: #0d0f0e;
  margin: 0 auto;
}
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; margin-top: -21px; padding: 0 8px;
}
.phone__status i { display: inline-block; width: 18px; height: 9px; border: 1.2px solid var(--ink); border-radius: 3px; position: relative; }
.phone__status i::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: var(--ink); border-radius: 1px; }

.app-top { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.app-top__track { font-size: 12px; font-weight: 600; line-height: 1.3; }
.app-top__track small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; }
.gps-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; padding: 5px 9px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.gps-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }

.app-lap { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; }
.app-lap .eyebrow { font-size: 9.5px; letter-spacing: .16em; }
.app-time {
  font-family: var(--font); font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 19cqi, 64px); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1; margin-top: 6px;
}
.app-pred { font-size: 11px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.app-pred b { color: var(--ink); font-weight: 600; }

.delta {
  margin-top: 18px; display: grid; gap: 8px;
}
.delta__bar {
  height: 10px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden;
}
.delta__bar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: var(--soft); }
.delta__fill {
  position: absolute; top: 0; bottom: 0; right: 50%; width: 34%;
  background: var(--good); border-radius: 999px 0 0 999px;
  transition: width .6s cubic-bezier(.2,.7,.2,1);
}
.delta__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; color: var(--muted); }
.delta__val { font-size: 22px; font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
.chip {
  border-radius: 12px; padding: 8px 9px; background: var(--card); box-shadow: var(--shadow);
  font-size: 10px; color: var(--muted); line-height: 1.35;
}
.chip b { display: block; color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 650; }
.chip--good b { color: var(--good); }
.chip--bad b { color: var(--bad); }
.chip--live { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
.chip--live b { color: var(--accent); }

.app-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-foot b { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); padding: clamp(80px, 11vw, 150px) 0; }
.section__head { display: grid; gap: 16px; max-width: 40em; }
.section__head--center { margin: 0 auto; text-align: center; justify-items: center; }
.section__title { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.025em; line-height: 1.12; }
.section__lead { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.85; max-width: 36em; }

/* Live demo */
.demo {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}
.panel {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 32px);
}
.demo__map { position: relative; }
.demo__map svg { width: 100%; height: auto; }
.trk-base { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.trk-line { fill: none; stroke: var(--soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.trk-trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trk-sf { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.trk-sec { stroke: var(--soft); stroke-width: 1.5; stroke-dasharray: 2 3; }
.trk-label { font: 600 11px var(--font); fill: var(--muted); letter-spacing: .08em; }
.trk-dot-halo { fill: var(--halo); }
.trk-dot { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.demo__tag { position: absolute; top: clamp(18px, 3vw, 32px); left: clamp(18px, 3vw, 32px); }

.demo__timer { display: flex; flex-direction: column; gap: 18px; }
.demo__time { font-size: clamp(44px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.demo__delta { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); min-height: 1.5em; transition: color .3s; }
.demo__delta.is-good { color: var(--good); }
.demo__delta.is-bad { color: var(--bad); }
.laps { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.laps li {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.laps li span:first-child { color: var(--muted); font-size: 12.5px; }
.laps li .d { font-size: 12.5px; font-weight: 600; }
.laps li .d.good { color: var(--good); }
.laps li .d.bad { color: var(--bad); }
.laps li.is-best span:nth-child(2) { font-weight: 700; }
.laps li.is-new { animation: lapIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes lapIn { from { opacity: 0; transform: translateY(-6px); background: var(--halo); } }

@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }

/* Features grid */
.feature-grid {
  list-style: none; padding: 0; margin: clamp(44px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature-grid li {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 26px 34px; display: grid; gap: 10px; align-content: start;
}
.feature-grid svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.feature-grid h3 { font-size: 17px; letter-spacing: -0.01em; }
.feature-grid p { color: var(--muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid li { padding: 24px 18px 26px; }
}

/* Precision */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rate { display: grid; gap: 22px; }
.rate__row { display: grid; gap: 8px; }
.rate__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; gap: 12px; }
.rate__label span { color: var(--muted); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate__ticks { height: 22px; display: flex; gap: 0; align-items: center; overflow: hidden; }
.rate__ticks svg { width: 100%; height: 22px; }
.rate__ticks line { stroke: var(--soft); stroke-width: 1.5; stroke-linecap: round; }
.rate__row--hi .rate__ticks line { stroke: var(--accent); }
.receivers { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.receivers li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 130px 1fr; gap: 6px 20px; font-size: 14.5px; }
.receivers li:last-child { border-bottom: 1px solid var(--line); }
.receivers b { font-weight: 600; }
.receivers span { color: var(--muted); }
@media (max-width: 480px) { .receivers li { grid-template-columns: 1fr; } }

/* Circuits */
.circuits { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .circuits { grid-template-columns: 1fr; } }
.mini-tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-tracks figure { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.mini-tracks svg { width: 100%; aspect-ratio: 1; }
.mini-tracks path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.mini-tracks figcaption { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.panel__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.panel__foot b { color: var(--ink); font-weight: 600; }

.ref-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ref-table caption { text-align: left; caption-side: top; padding-bottom: 14px; }
.ref-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); }
.ref-table td { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ref-table td:last-child, .ref-table th:last-child { text-align: right; padding-right: 0; }
.ref-table td.t { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ref-table tr.you td { color: var(--accent); }
.ref-table td small { display: block; color: var(--muted); font-size: 12px; }
.illus { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); margin-left: 6px; vertical-align: 2px; }

/* What's new */
.news { list-style: none; margin: 40px 0 0; padding: 0; display: grid; }
.news li { border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 160px 1fr; gap: 8px 20px; padding: 22px 0; font-size: 15px; align-items: baseline; }
.news li:last-child { border-bottom: 1px solid var(--line); }
.news__tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.news__title { font-weight: 600; }
.news p { color: var(--muted); line-height: 1.8; }
@media (max-width: 720px) {
  .news li { grid-template-columns: auto 1fr; }
  .news p { grid-column: 1 / -1; }
}

/* Pricing */
.plans { margin: clamp(40px, 6vw, 64px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 36px); }
.plan--pro { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); position: relative; }
.plan__badge { position: absolute; top: -12px; right: 24px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-size: 18px; }
.plan__price { font-size: clamp(40px, 5vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 16px; height: 16px; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans__note { text-align: center; margin-top: 22px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 32px clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 44px 22px 0; font-size: 16px; font-weight: 600; line-height: 1.5;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; translate: 0 -50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.6px 14px no-repeat;
  transition: rotate .3s;
}
details[open] summary::after { rotate: 45deg; }
details p { color: var(--muted); padding: 0 44px 24px 0; font-size: 15px; line-height: 1.85; }
details[open] p { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

/* Final CTA */
.cta { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.06; }
.cta__mark { width: 56px; height: 56px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 13px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.circuits > .panel:first-child { display: flex; flex-direction: column; justify-content: space-between; }
.circuits .mini-tracks { flex: 1; align-items: center; }
.app-map { flex: 1; min-height: 0; width: 100%; margin: 14px 0 10px; }
.app-map path { fill: none; stroke: var(--line); stroke-width: 16; stroke-linejoin: round; stroke-linecap: round; }
.app-map .app-map__run { stroke: var(--good); stroke-width: 6; stroke-dasharray: 88 100; }
.app-map circle { fill: var(--accent); stroke: #fff; stroke-width: 5; }
.app-lap { margin-top: 0; }
