:root {
  --bg: #f6f5f1;
  --alt: #efede7;
  --surface: #ffffff;
  --ink: #121212;
  --text: #2b2b29;
  --muted: #6b6a65;
  --line: #e2dfd7;
  --line-2: #d3cfc4;
  --accent: #e8590c;
  --r1: #2f5bea;
  --r2: #e8590c;
  --r3: #0f8f7f;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Geist, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); max-width: 15ch; letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.h-sm { font-size: 1.3rem; margin-bottom: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }
mark.todo { background: #fff0a8; color: #5c4a00; padding: 0 .2em; }
:focus-visible { outline: 2px solid var(--r1); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .72em 1.2em; border-radius: 7px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: #333; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: .45em .9em; font-size: .93rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--alt); }
.link { font-weight: 500; text-underline-offset: 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 245, 241, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1.12rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); font-weight: 700; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); position: relative; }
.logo-mark::after { content: ""; position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.logo-mark::before { content: ""; position: absolute; left: 5px; bottom: 5px; width: 9px; height: 2px; background: #f6f5f1; transform: rotate(-35deg); transform-origin: left; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--text); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 12px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; margin: 1.6rem 0 clamp(36px, 5vw, 56px); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 40em; margin: 0; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* product screenshot */
.shot { margin: 0; }
.shot figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); }
.app { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40, 32, 10, .28); font-size: 13px; }
.app-top { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.app-logo { font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.app-logo b { color: var(--accent); }
.app-date { font-weight: 500; color: var(--ink); padding-left: 16px; border-left: 1px solid var(--line); }
.app-meta { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.app-actions { margin-left: auto; display: flex; gap: 8px; }
.app-btn { background: var(--ink); color: #fff; padding: 5px 11px; border-radius: 6px; font-weight: 500; font-size: 12px; white-space: nowrap; }
.app-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.app-main { display: grid; grid-template-columns: 300px 1fr; min-height: 420px; }
.app-side { border-right: 1px solid var(--line); padding: 12px 0; background: #fbfaf8; }
.app-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 14px; margin: 4px 0 8px; display: flex; justify-content: space-between; }
.route { display: flex; gap: 10px; align-items: center; padding: 8px 14px; }
.route.open { background: #fff; border-block: 1px solid var(--line); }
.route b { font-weight: 600; color: var(--ink); }
.route small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.swatch.r1 { background: var(--r1); } .swatch.r2 { background: var(--r2); } .swatch.r3 { background: var(--r3); }
.app-stops { list-style: none; margin: 0 0 12px; padding: 4px 0 8px; background: #fff; border-bottom: 1px solid var(--line); }
.app-stops li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; padding: 5px 14px 5px 22px; }
.app-stops .n { width: 18px; height: 18px; border-radius: 50%; background: var(--r1); color: #fff; font: 500 10px/18px var(--mono); text-align: center; }
.app-stops li:first-child .n { border-radius: 4px; background: var(--ink); }
.app-stops .a { color: var(--ink); }
.app-stops .a small { display: block; color: var(--muted); font-size: 11px; }
.app-stops .t { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.app-stops .more { display: block; color: var(--muted); font-size: 12px; padding-left: 52px; }
.app-map { position: relative; }
.plan-map { width: 100%; height: 100%; }
.plan-map .r1 { stroke: var(--r1); } .plan-map .r2 { stroke: var(--r2); } .plan-map .r3 { stroke: var(--r3); }
.plan-map g.r1 .stop { fill: var(--r1); } .plan-map g.r2 .stop { fill: var(--r2); } .plan-map g.r3 .stop { fill: var(--r3); }
.plan-map .stop { stroke: #fff; stroke-width: 2; }
.app-status { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; }
.app-status .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--r3); }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section.tight { padding-top: clamp(24px, 4vw, 40px); border-top: 0; }
.section.alt { background: var(--alt); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 96px; }
.split-head p { max-width: 30em; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.flow li:first-child { border-top: 0; padding-top: 0; }
.flow .mono { color: var(--accent); font-size: .9rem; padding-top: 2px; }
.flow p { margin: 0; color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line-2); }
.specs div { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--line-2); }
.specs dt { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.specs dd { margin: 0; color: var(--muted); font-size: .96rem; max-width: 30em; }
.api { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.api-row { display: grid; grid-template-columns: 52px minmax(0, 210px) 1fr; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.api-row code { font-family: var(--mono); font-size: .86rem; color: var(--ink); overflow-wrap: anywhere; }
.api-row span:last-child { color: var(--muted); }
.verb { font: 500 11px var(--mono); padding: 3px 0; border-radius: 4px; text-align: center; }
.verb.get { background: #e7eefc; color: var(--r1); }
.verb.put { background: #fdeee4; color: #b8460a; }
.api-note { margin: 0; padding: 14px 18px; font-size: .9rem; color: var(--muted); background: #fbfaf8; }

/* driver texts */
.texts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.facts { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .95rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 11px 0; border-top: 1px solid var(--line-2); }
.facts th { width: 38%; font-weight: 500; color: var(--ink); padding-right: 16px; }
.facts td { color: var(--muted); }
.phone { width: min(330px, 100%); margin-inline: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 28px; padding: 6px; box-shadow: 0 30px 60px -30px rgba(40, 32, 10, .3); }
.phone-head { text-align: center; padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.phone-head b { display: block; color: var(--ink); font-size: .92rem; }
.phone-head small { color: var(--muted); font-size: .74rem; }
.phone-body { display: grid; gap: 8px; padding: 14px 10px 18px; }
.bubble { margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 18px; font-size: .8rem; line-height: 1.45; }
.bubble.in { background: #ecebe7; color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.out { justify-self: end; background: var(--r1); color: #fff; border-bottom-right-radius: 5px; }

/* faq */
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); max-width: 42em; }
.faq a { text-underline-offset: 3px; }

.closer { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.closer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closer h2 { margin: 0; max-width: 20ch; }

/* inner pages */
.page-head { padding: clamp(48px, 7vw, 88px) 0 0; }
.prose { font-size: 1rem; }
.prose h2 { font-size: 1.2rem; margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { text-underline-offset: 3px; }

/* forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; padding: .7em .85em; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, .08); }
label.check { display: flex; gap: .7em; align-items: flex-start; font-weight: 400; font-size: .84rem; color: var(--muted); line-height: 1.5; margin: 0; }
label.check input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--ink); }
label.check a { color: var(--ink); }
.form-msg { margin: 0; padding: 12px 14px; border-radius: 7px; font-size: .94rem; background: #e6f4f1; color: #0b6b5f; }
.form-msg.err { background: #fbeaea; color: #9c1f1f; }
.contact-side p { margin-bottom: 1.4em; }
.contact-side a { text-underline-offset: 3px; }
.mono-label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid .muted { margin-top: .8rem; max-width: 24em; }
.site-footer h3 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .9rem; }
.site-footer a:not(.logo) { display: block; text-decoration: none; margin-bottom: .45rem; }
.site-footer p a:not(.logo) { display: inline; }
.site-footer a:not(.logo):hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.footer-base p { margin: 0; max-width: 60em; }

@media (max-width: 960px) {
  .hero-sub, .split, .texts, .contact-grid { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .specs { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-main { grid-template-columns: 240px 1fr; }
  .app-meta { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; padding: .75em 1em; }
  .specs, .row2, .footer-grid { grid-template-columns: 1fr; }
  .app-main { grid-template-columns: 1fr; min-height: 0; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
  .app-map { height: 240px; }
  .app-stops li:nth-child(n+5):not(.more) { display: none; }
  .app-date { display: none; }
  .api-row { grid-template-columns: 46px 1fr; }
  .api-row span:last-child { grid-column: 2; margin-top: -8px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
