:root {
  --bg: #FAF8F3;
  --card: #FFFFFF;
  --band: #F1ECE0;
  --ink: #0E1726;
  --body: #3F4A5C;
  --muted: #4A5568;
  --accent: #0B4AA2;
  --accent-hover: #08357A;
  --line: #E2DCCD;
  --btn-bg: #0E1726;
  --btn-fg: #FFFFFF;
  --btn-hover: #1F2937;
  --btn-accent: #0B4AA2;
  --btn-accent-hover: #08357A;
  --warn-bg: #FBEBD9;
  --warn-fg: #7A3A06;
  --navy: #0A2440;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D131D;
    --card: #161E2B;
    --band: #121A26;
    --ink: #EEF1F6;
    --body: #BAC4D3;
    --muted: #9CA8BA;
    --accent: #7DB0FF;
    --accent-hover: #A8C9FF;
    --line: #283244;
    --btn-bg: #EEF1F6;
    --btn-fg: #0E1726;
    --btn-hover: #FFFFFF;
    --btn-accent: #2E6CD0;
    --btn-accent-hover: #3B7BE0;
    --warn-bg: #3A2614;
    --warn-fg: #F4C08C;
    color-scheme: dark;
  }
}

/* Pre-release switch: data-release="pre" on <html>. */
[data-release="pre"] .rel { display: none !important; }
html:not([data-release="pre"]) .pre { display: none !important; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .foot :focus-visible { outline-color: #8FC1E8; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--btn-fg); }

h1, h2, h3, p, figure { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; }

/* Header */
.nav {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.store { color: var(--btn-fg); background: var(--btn-bg); }
.nav .store, .store:hover { color: var(--btn-fg); text-decoration: none; }
.store:hover, .nav .store:hover { background: var(--btn-hover); color: var(--btn-fg); }
.navcta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 10px; font-weight: 600;
}
@media (max-width: 600px) { .navcta { display: none !important; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; font-size: 17px; font-weight: 600;
}

.mail {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; background: var(--btn-accent); color: #FFFFFF; font-size: 16px; font-weight: 600;
}
.mail:hover { color: #FFFFFF; text-decoration: none; background: var(--btn-accent-hover); }

/* Shared type */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.h-section { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--body); }
.muted { color: var(--muted); }

/* Hero */
.hero {
  padding-top: 72px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero-text { flex: 1 1 460px; min-width: 0; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.hero-lede { font-size: 20px; line-height: 1.5; color: var(--body); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }
.hero-actions > span { font-size: 15px; color: var(--muted); }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-figure { flex: 1 1 440px; min-width: 0; }
.window {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0B1626;
  box-shadow: 0 30px 80px rgba(14, 23, 38, 0.22);
}
.window-bar {
  height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: #141D2B; border-bottom: 1px solid #222C3C;
}
.window-bar span:last-child { font-size: 12px; font-weight: 600; color: #D5DCE6; }
.lights { display: flex; gap: 7px; }
.lights span { width: 11px; height: 11px; border-radius: 6px; }
.lights span:nth-child(1) { background: #EC6A5E; }
.lights span:nth-child(2) { background: #F4BF4F; }
.lights span:nth-child(3) { background: #61C554; }
.map { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-figure figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* App illustration: always the light app, whatever the page's appearance */
.shot { padding-top: 24px; padding-bottom: 96px; }
.shot figure { display: flex; flex-direction: column; gap: 14px; }
.shot figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.app {
  color: #0E1726; border-radius: 14px; border: 1px solid #D9D2C2; background: #FFFFFF;
  box-shadow: 0 40px 100px rgba(14, 23, 38, 0.16); overflow: hidden;
}
.app-bar {
  height: 44px; display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: #F6F4EF; border-bottom: 1px solid #E5DFD1;
}
.app-bar .lights { gap: 8px; }
.app-bar .lights span { width: 12px; height: 12px; }
.app-title { font-size: 13px; font-weight: 600; color: #2B3445; }
.app-mode { margin-left: auto; font-size: 12px; color: #4A5568; }
.app-body { display: flex; flex-wrap: wrap; min-height: 420px; }
.app-rules {
  flex: 1 1 220px; min-width: 0; padding: 18px; border-right: 1px solid #ECE6D8; background: #FBFAF7;
  display: flex; flex-direction: column; gap: 4px;
}
.app-label { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: #4A5568; }
.rule {
  display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #ECE6D8;
  font-size: 13px;
}
.rule span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.rule.none { border-bottom: 0; color: #4A5568; }
.rule.none span:last-child { font-weight: 400; }
.app-map { flex: 3 1 420px; min-width: 0; background: #EFE9DC; position: relative; min-height: 300px; }
.app-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-results {
  flex: 1 1 240px; min-width: 0; padding: 18px; border-left: 1px solid #ECE6D8;
  display: flex; flex-direction: column; gap: 2px;
}
.result { display: flex; gap: 10px; align-items: baseline; padding: 9px 10px; font-size: 13px; }
.result.first { border-radius: 8px; background: #EAF0FA; }
.result span:first-child { font-weight: 700; color: #0B4AA2; }
.result span:nth-child(2) { flex: 1; }
.result span:last-child { font-variant-numeric: tabular-nums; color: #4A5568; }
.app-foot {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #ECE6D8; font-size: 12px; line-height: 1.5; color: #4A5568;
}

/* Gallery */
.gallery { padding-bottom: clamp(64px, 8vw, 104px); gap: 32px; }
.section-head { gap: 12px; max-width: 720px; }
.grid-maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.grid-maps figure { display: flex; flex-direction: column; gap: 14px; }
.grid-maps .map { border-radius: 14px; border: 1px solid var(--line); }
.grid-maps figcaption { display: flex; flex-direction: column; gap: 4px; }
.grid-maps figcaption span:first-child { font-size: 17px; font-weight: 600; }
.grid-maps figcaption span:last-child { font-size: 14px; color: var(--muted); }
.credits { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Features */
.features { padding-bottom: clamp(64px, 8vw, 104px); gap: 48px; }
.features .section-head { gap: 16px; max-width: 760px; }
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px 48px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.feature svg { stroke: var(--accent); }
.feature h3 { font-size: 20px; }
.feature p { font-size: 16px; line-height: 1.55; color: var(--body); }

/* Find Sites band */
.dark { background: var(--navy); color: #F4F1EA; }
.dark a { color: #8FC1E8; }
.findsites {
  padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px);
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.findsites-text { flex: 1 1 440px; min-width: 0; gap: 20px; }
.findsites-text .eyebrow { color: #8FC1E8; }
.findsites h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.findsites-text p:not(.eyebrow) { font-size: 19px; line-height: 1.55; color: #C9D3E0; }
.evidence {
  flex: 1 1 420px; min-width: 0; background: var(--bg); color: var(--ink); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.evidence .app-label { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
.check {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.check:last-of-type { border-bottom: 0; }
.check span:last-child { font-weight: 600; color: var(--accent); text-align: right; }
.check.none span:last-child { color: var(--muted); }
.evidence > p:last-child { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Basemap and privacy */
.pair { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); display: flex; flex-wrap: wrap; gap: 48px; }
.pair > div { flex: 1 1 420px; min-width: 0; gap: 16px; }
.pair h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; }
.pair p { font-size: 18px; line-height: 1.55; color: var(--body); }

/* Pricing */
.band { background: var(--band); }
.pricing { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); gap: 48px; }
.grid-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.price-card { background: var(--card); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { outline: 2px solid var(--accent); }
.price-card h3 { font-size: 18px; }
.price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.price .pre { display: block; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; padding: 5px 0; }
.price-card p:last-child { font-size: 15px; line-height: 1.5; color: var(--body); }
.prenote {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 22px; border-radius: 14px;
  border: 1px dashed var(--line); background: var(--card);
}
.badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-fg); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.prenote p { flex: 1 1 320px; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--body); }

/* Footer */
.foot { background: var(--navy); color: #C9D3E0; }
.foot .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; }
.foot a { color: #C9D6E8; }
.foot a:hover { color: #FFFFFF; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 32px; height: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-note { width: 100%; font-size: 13px; color: #9FB0C6; }

/* Support */
.support { padding-top: 64px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 64px; }
.support-main { flex: 1 1 340px; min-width: 0; gap: 20px; }
.page-title { font-size: clamp(36px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.support-main .lede { font-size: 19px; }
.support-main > p:not(.lede) { font-size: 15px; line-height: 1.55; color: var(--muted); }
.requirements { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); gap: 10px; }
.requirements h2 { font-size: 17px; }
.requirements p { font-size: 15px; line-height: 1.6; color: var(--body); }
.faq { flex: 2 1 560px; min-width: 0; }
.faq > h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.01em; }
.qa { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.qa:last-child { border-bottom: 0; }
.qa h3 { font-size: 18px; }
.qa p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* Privacy */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 104px; gap: 40px; }
.draft { padding: 14px 18px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 15px; line-height: 1.5; }
.legal-head { gap: 16px; }
.legal-head p:nth-child(2) { font-size: 20px; line-height: 1.55; color: var(--body); }
.legal-head p:nth-child(3) { font-size: 14px; color: var(--muted); }
.legal section { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; }
.legal section p { font-size: 17px; line-height: 1.65; color: var(--body); }

/* Not found */
.notfound { padding-top: 96px; padding-bottom: 128px; gap: 20px; max-width: 760px; min-height: calc(100vh - 220px); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding-top: 8px; }

@media (prefers-contrast: more) {
  :root { --muted: var(--body); --line: var(--muted); }
}
