:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --card: #ffffff;
  --text: #16171a;
  --muted: #5d606a;
  --line: #e4e6eb;
  --accent: #0a66d8;
  --accent-text: #ffffff;
  --accent-soft: #e8f0fc;
  --gps: #22a35a;
  --rebuilt: #3478f6;
  --warn: #c2410c;
  --warn-soft: #fff4ec;
  --header: rgba(255, 255, 255, 0.82);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.06), 0 24px 60px rgba(16, 24, 40, 0.16);
  --radius: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #15171a;
    --card: #1b1d21;
    --text: #f2f3f5;
    --muted: #a3a7b0;
    --line: #2a2d33;
    --accent: #5aa2ff;
    --accent-text: #08121f;
    --accent-soft: #14243b;
    --gps: #34c472;
    --rebuilt: #6aa1ff;
    --warn: #fb923c;
    --warn-soft: #2a1a10;
    --header: rgba(14, 15, 17, 0.8);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
img { max-width: 100%; }
picture { display: contents; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap { padding: 0 1.5rem; }
}

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { width: 32px; height: 32px; border-radius: 7px; }

nav.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  font-size: 0.92rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background-color 0.15s, color 0.15s;
}

nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); background: var(--surface); }
nav.site a.lang { color: var(--accent); border: 1px solid var(--line); margin-left: 0.25rem; }
nav.site a.lang:hover { background: var(--accent-soft); }

/* Type */

main { padding: 2.5rem 0 4rem; }

h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.1; margin: 0 0 1rem; font-weight: 750; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.2; margin: 2.5rem 0 0.75rem; font-weight: 700; }
h3 { font-size: 1.08rem; line-height: 1.35; margin: 1.5rem 0 0.35rem; font-weight: 650; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.94rem; }

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Prose pages (privacy, support) */

.wrap.narrow { max-width: 46rem; }
.narrow h2 { padding-top: 0.5rem; }
.narrow > .lead { margin-bottom: 1.25rem; }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.3rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.soon { cursor: default; }
.btn.soon:hover { box-shadow: none; transform: none; }
.btn.soon small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.75; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust li { display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.trust svg { width: 1rem; height: 1rem; color: var(--gps); flex: none; }

/* Landing sections */

main.landing { padding: 0; }

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { margin-top: 0; }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.hero > *, .split > * { min-width: 0; }

.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 34rem; }
.shot { display: flex; justify-content: center; }

@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}

.backdrop {
  background:
    radial-gradient(60rem 30rem at 85% 10%, color-mix(in srgb, var(--rebuilt) 14%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at 0% 100%, color-mix(in srgb, var(--gps) 10%, transparent), transparent 70%);
}

/* Phone frame */

.phone {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 598 / 1300;
  padding: 0.55rem;
  border-radius: 2.6rem;
  background: #0b0b0c;
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2.1rem;
}

/* Route illustration */

figure.route {
  margin: 0;
  padding: clamp(1rem, 0.5rem + 2vw, 1.75rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.25);
  box-shadow: var(--shadow);
}

figure.route svg { width: 100%; max-width: 46rem; height: auto; display: block; margin: 0 auto; }
figure.route figcaption { margin-top: 1rem; }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 0.5rem; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.legend i { display: inline-block; width: 1.6rem; height: 0; border-top: 4px solid; border-radius: 2px; }
.legend .gps { border-color: var(--gps); }
.legend .lost { border-color: var(--warn); border-top-width: 3px; }
.legend .rebuilt { border-color: var(--rebuilt); border-top-style: dotted; }

.track { stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.track.gps { stroke: var(--gps); }
.track.rebuilt { stroke: var(--rebuilt); stroke-dasharray: 2 8; }
/* A spoof jumps: straight hops with sharp corners. */
.track.lost { stroke: var(--warn); stroke-width: 2.5; stroke-linejoin: miter; stroke-linecap: butt; opacity: 0.75; }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  border-radius: 0.8rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg { width: 1.4rem; height: 1.4rem; }

/* Split: screenshot beside text */

.split { display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 56rem) {
  .split { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
}

.options { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }

.options li {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.options li strong { display: block; margin-bottom: 0.15rem; }
.options li span { color: var(--muted); font-size: 0.96rem; }
.options li.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li { margin: 0; padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 0.88rem; font-weight: 600; }
.tags li small { color: var(--muted); font-weight: 500; }

/* Privacy points */

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.points li { margin: 0; }
.points strong { display: block; margin-bottom: 0.25rem; }
.points span { color: var(--muted); font-size: 0.96rem; }

/* Callouts */

.note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--radius);
  font-weight: 600;
}

.note svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--warn); margin-top: 0.1rem; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(135deg, #0a5cc4, #3478f6 60%, #22a35a);
  color: #fff;
}

.cta h2 { margin: 0 0 0.35rem; color: #fff; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta .btn { background: #fff; border-color: #fff; color: #0b2a55; }
.cta-brand { display: flex; align-items: center; gap: 1.25rem; }
.cta-brand img { width: 64px; height: 64px; border-radius: 14px; flex: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }

/* FAQ */

details {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
  margin-bottom: 0.6rem;
  transition: box-shadow 0.15s;
}

details[open] { box-shadow: var(--shadow); }

details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s;
}

details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
details > :not(summary) { margin-left: 1.1rem; margin-right: 1.1rem; color: var(--muted); }
details > :last-child { margin-bottom: 1rem; }
details strong { color: var(--text); }

/* Tables */

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0 0 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.scroll { overflow-x: auto; }

/* Footer */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site p { margin: 0 0 0.35rem; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.foot .brand { margin-bottom: 0.4rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Language picker and 404 */

.choose {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-align: center;
  gap: 0.5rem;
}

.choose img { width: 96px; height: 96px; border-radius: 21px; box-shadow: var(--shadow-lg); margin-bottom: 0.75rem; }
.choose h1 { font-size: 2rem; margin: 0; }
.choose p { color: var(--muted); margin: 0; }
.choose ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.choose li { margin: 0; }

.choose ul a {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.choose ul a:hover { border-color: var(--accent); }

@media (max-width: 26rem) {
  header.site .brand span { display: none; }
}

@media (max-width: 34rem) {
  nav.site { flex-wrap: nowrap; gap: 0; font-size: 0.85rem; }
  nav.site a { padding: 0.3rem 0.45rem; white-space: nowrap; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta { flex-direction: column; align-items: flex-start; }
}

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