/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d10;
  --bg-alt: #0f1216;
  --surface: #13171d;
  --border: #232830;
  --border-strong: #3a414c;
  --ink: #f4f5f7;
  --muted: #9aa3b2;
  --accent: #f2a93b;
  --accent-ink: #14100a;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius: 18px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 28px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
  font-family: var(--font-body); white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-accent:disabled { background: #3a414c; color: #9aa3b2; cursor: not-allowed; filter: none; transform: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 18px; width: auto; }
@media (min-width: 600px) { .brand img { height: 20px; } }
.nav-links { display: none; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ---------- Kicker / type ---------- */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lede, .section-lede { color: var(--muted); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 16px; }
.cta .section-head, .cta .section-lede { text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .section { padding: 72px 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-glow {
  position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(242,169,59,.14), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 56px; align-items: center; position: relative; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 96px 0 120px; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; margin-bottom: 22px; text-wrap: balance; }
.hero .lede { max-width: 560px; margin-bottom: 32px; }

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Signup form ---------- */
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; position: relative; }
.signup-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.signup-form input[type="email"]::placeholder { color: #6b7280; }
.signup-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,169,59,.2); }
.signup-form .btn { height: 50px; }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { flex-basis: 100%; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-status.ok { color: #6fd39a; }
.form-status.err { color: #f08a8a; }
.signup-form-center { margin: 0 auto; justify-content: center; }
.signup-form-center .form-status { text-align: center; }
.signup-form.done input, .signup-form.done .btn { display: none; }
.signup-form.done .form-status { font-size: 17px; font-weight: 600; }

/* ---------- Phone mockups ---------- */
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620; margin: 0 auto;
  border-radius: 44px; background: #1b1f26; padding: 10px;
  box-shadow: 0 0 0 1px #2a2f38, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(242,169,59,.25);
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 999px; background: #0b0d10; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0f1216; display: flex; flex-direction: column; }
.hero-visual { position: relative; height: 560px; }
.hero-visual .shot { position: absolute; top: 0; width: 250px; margin: 0; }
.hero-visual .shot-back { left: 50%; transform: translateX(-88%) rotate(-5deg); opacity: .85; }
.hero-visual .shot-front { left: 50%; transform: translateX(-12%) rotate(3deg); top: 40px; z-index: 2; }
@media (max-width: 899px) { .hero-visual { height: 520px; } .hero-visual .shot { width: 210px; } .hero-visual .shot-back { transform: translateX(-92%) rotate(-5deg); } .hero-visual .shot-front { transform: translateX(-20%) rotate(3deg); } }

.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 54px 18px 12px; border-bottom: 1px solid var(--border); }
.app-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; }
.chip-offline { color: var(--accent); border-color: rgba(242,169,59,.45); background: rgba(242,169,59,.1); }
.chip-offline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip-on { color: var(--ink); border-color: var(--accent); background: rgba(242,169,59,.16); }

.chat { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; line-height: 1.45; overflow: hidden; }
.bubble { padding: 10px 12px; border-radius: 14px; max-width: 92%; }
.bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; font-weight: 500; }
.bubble.bot { align-self: flex-start; background: #1b2028; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.bot p + p, .bubble.bot ol { margin-top: 8px; }
.bubble.bot ol { padding-left: 18px; }
.bubble.bot li + li { margin-top: 3px; }
.bubble .cite { margin-top: 10px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; }
.chat-input { margin: 0 14px 18px; height: 40px; border-radius: 999px; border: 1px solid var(--border-strong); background: #13171d; display: flex; align-items: center; padding: 0 16px; color: #6b7280; font-size: 12.5px; }

.phone-map .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-overlay-top { position: absolute; top: 56px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.map-overlay-bottom { position: absolute; bottom: 20px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.phone-map .chip { background: rgba(11,13,16,.85); backdrop-filter: blur(6px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.icon-chip { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(242,169,59,.14); margin-bottom: 18px; }
.icon-chip svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 18px; margin-top: 48px; border-top: 1px solid var(--border); padding-top: 40px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.tl-when { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--accent); margin-bottom: 8px; }
.tl-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; gap: 48px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 72px; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature-row-reverse .feature-copy { order: 2; }
  .feature-row-reverse .feature-visual { order: 1; }
}
.feature-copy h3 { font-size: clamp(26px, 3.4vw, 36px); margin: 16px 0 16px; text-wrap: balance; }
.feature-copy p { color: var(--muted); font-size: 17px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 5px 12px; border-radius: 999px; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(242,169,59,.16); border: 1px solid rgba(242,169,59,.5); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.prompts span { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--ink); background: var(--surface); }

/* ---------- Layers ---------- */
.layers { display: grid; gap: 20px; }
@media (min-width: 760px) { .layers { grid-template-columns: repeat(3, 1fr); } .layer-wide { grid-column: span 3; } }
.layer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.layer-head h3 { margin: 0; }
.layer-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); flex: none; }
.poi-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.poi-tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); }

/* ---------- Knowledge base ---------- */
.kb-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .kb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .kb-grid { grid-template-columns: repeat(3, 1fr); } }
.kb-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .3s ease, border-color .3s ease; }
.kb-group:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.kb-group h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kb-group ul { list-style: none; display: grid; gap: 8px; }
.kb-group li { font-size: 14.5px; padding-left: 16px; position: relative; color: #d5d9e0; }
.kb-group li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-family: var(--font-display); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 0%, rgba(242,169,59,.12), transparent 70%); pointer-events: none; }
.cta .container { position: relative; }
.cta-wordmark { width: min(420px, 80vw); height: auto; margin: 0 auto 4px; }
.cta h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 16px; }
.cta .section-lede { margin: 0 auto 32px; max-width: 560px; }
.fine { margin-top: 18px; font-size: 13px; color: #6b7280; }
.fine a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.brand-text { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; color: var(--ink); display: block; margin-bottom: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: #6b7280; }

/* ---------- Reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .kb-group, .btn { transition: none; }
}

/* ---------- Real screenshots ---------- */
.shot { margin: 0; border-radius: 30px; background: #1b1f26; padding: 8px; box-shadow: 0 0 0 1px #2a2f38, 0 30px 60px -30px rgba(0,0,0,.9); }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; }
.shot figcaption { padding: 12px 6px 4px; font-size: 13px; color: var(--muted); line-height: 1.4; text-align: center; }
.shot:has(figcaption) { padding-bottom: 4px; }

.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.gallery .shot { flex: 0 0 230px; scroll-snap-align: start; }
.gallery { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gallery img { -webkit-user-drag: none; pointer-events: none; }
.gallery-compact .shot { flex-basis: 210px; }
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.gallery-title { font-size: 20px; margin: 56px 0 16px; color: var(--ink); }
.gallery + .gallery-title { margin-top: 40px; }
@media (max-width: 720px) { .gallery .shot { flex-basis: 200px; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 20px; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform .3s ease, border-color .3s ease; }
.pillar:hover { transform: translateY(-4px); border-color: var(--accent); }
.pillar h3 { font-size: 24px; margin: 16px 0 12px; }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; }
.stat-n { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); color: var(--accent); letter-spacing: -0.02em; }
.stat-l { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.core { margin-top: 56px; display: grid; gap: 32px; }
@media (min-width: 900px) { .core { grid-template-columns: 1fr 2fr; align-items: start; } }
.core-copy h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.core-copy p { color: var(--muted); }
.core-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .core-grid { grid-template-columns: 1fr 1fr; } }
.core-group { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.core-group h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-family: var(--font-display); }
.core-group ul { list-style: none; display: grid; gap: 6px; }
.core-group li { font-size: 14px; color: #d5d9e0; }

/* ---------- Routes ---------- */
.routes-table { display: grid; gap: 8px; margin-top: 22px; }
.routes-table div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; }
.routes-table strong { color: var(--accent); font-family: var(--font-display); white-space: nowrap; }
.fine-inline { font-size: 13px; color: #6b7280; margin-top: 10px; }
.feature-copy .fine-inline { font-size: 13px; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .dl-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.dl-col h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 24px 0 10px; }
.dl-col h3:first-child { margin-top: 0; }
.dl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dl-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.dl-table td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Grid children that contain horizontally scrolling galleries must be allowed to shrink. */
.feature-visual, .feature-copy, .dl-grid > *, .core > *, .hero-grid > * { min-width: 0; }
