/* Spurbuch landing page. System fonts only, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --text: #0c1a16;
  --muted: #52615c;
  --line: #e1e7e4;
  --brand: #0f6e5c;
  --brand-strong: #0a5446;
  --brand-ink: #ffffff;
  --brand-soft: #e3f2ed;
  --brand-glow: rgb(15 110 92 / 0.16);
  --accent: #b7791f;
  --accent-soft: #fdf3e1;
  --biz: #0f8a72;
  --priv: #5b6bc0;
  --commute: #c58a1d;
  --focus: #1d4ed8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgb(12 26 22 / 0.06);
  --shadow: 0 1px 2px rgb(12 26 22 / 0.04), 0 12px 32px -12px rgb(12 26 22 / 0.14);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1210;
    --bg-alt: #0f1a17;
    --surface: #13201c;
    --surface-2: #172621;
    --text: #e9f1ee;
    --muted: #a0b0aa;
    --line: #23332e;
    --brand: #43c3a3;
    --brand-strong: #6fd6bc;
    --brand-ink: #04201a;
    --brand-soft: #143a31;
    --brand-glow: rgb(67 195 163 / 0.14);
    --accent: #f2b84b;
    --accent-soft: #2e2512;
    --biz: #43c3a3;
    --priv: #9aa6f2;
    --commute: #f2b84b;
    --focus: #93b4ff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.55em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); font-weight: 720; letter-spacing: -0.028em; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 760px) { .wrap { padding: 0 2rem; } }

.nowrap { white-space: nowrap; }
nav.fine { margin-bottom: 1.1rem; }
nav.fine a { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; }
.nav a { white-space: nowrap; color: var(--muted); text-decoration: none; padding: 0.45rem 0.75rem; border-radius: 999px; transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav .nav-section { display: none; }
.nav .lang { border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.85rem; margin-left: 0.35rem; }
@media (min-width: 860px) { .nav .nav-section { display: inline-block; } }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 2rem 0 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.75rem 1.4rem; border-radius: 14px;
  font: inherit; font-weight: 650; text-decoration: none; border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); }

.store-badge {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 52px; padding: 0.45rem 1.2rem 0.45rem 0.95rem; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid #333; cursor: default;
}
.store-badge svg { width: 24px; height: 24px; fill: currentColor; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 0.72rem; opacity: 0.75; }
.store-badge strong { font-size: 1.05rem; font-weight: 600; }

.fine { font-size: 0.9rem; color: var(--muted); }

/* Trust chips under the hero CTA */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 550; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem 0.35rem 0.6rem; }
.chips svg { width: 16px; height: 16px; color: var(--brand); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 3.5rem 0 4rem;
  background:
    radial-gradient(60rem 30rem at 85% 10%, var(--brand-glow), transparent 70%),
    radial-gradient(40rem 24rem at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero .wrap { position: relative; display: grid; gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 650; color: var(--brand); background: var(--brand-soft); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 36rem; }
@media (min-width: 960px) {
  .hero { padding: 5.5rem 0 6.5rem; }
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
}

/* Phone mockup (pure CSS) */
.phone-stage { position: relative; }
.phone {
  width: min(310px, 82vw); margin: 0 auto; aspect-ratio: 9 / 19;
  border-radius: 48px; padding: 11px; background: #0d0d0d;
  box-shadow: 0 0 0 1.5px #2e2e2e, 0 0 0 7px color-mix(in srgb, var(--text) 6%, transparent), 0 40px 80px -24px rgb(0 0 0 / 0.45);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 21px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 2;
}
.screen {
  height: 100%; border-radius: 38px; overflow: hidden;
  background: #f2f2f7; color: #111; font-size: 12px; line-height: 1.35;
  display: flex; flex-direction: column;
}
@media (prefers-color-scheme: dark) { .screen { background: #000; color: #f2f2f7; } }
.status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-weight: 600; font-size: 12px; }
.app-head { padding: 26px 16px 8px; }
.app-head .t { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.app-head .s { color: #6b6b70; font-size: 11.5px; margin: 0; }
.day { padding: 8px 18px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #6b6b70; }
.trips { list-style: none; margin: 0 12px; padding: 0; border-radius: 14px; overflow: hidden; background: #fff; }
@media (prefers-color-scheme: dark) { .trips { background: #1c1c1e; } .app-head .s, .day { color: #98989f; } }
.trip { position: relative; padding: 9px 12px; border-bottom: 1px solid rgb(128 128 128 / 0.18); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; background: inherit; min-width: 0; }
.trip:last-child { border-bottom: 0; }
.trip .route { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip .meta { color: #6b6b70; font-size: 10.5px; grid-column: 1; }
@media (prefers-color-scheme: dark) { .trip .meta { color: #98989f; } }
.trip .km { font-weight: 600; font-size: 12px; text-align: right; }
.tag { grid-column: 2; justify-self: end; align-self: start; font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #fff; }
.tag.biz { background: #0f8a72; }
.tag.priv { background: #5b6bc0; }
.tag.commute { background: #c58a1d; }
.tag.open { background: #8e8e93; }
.swipe { display: flex; overflow: hidden; background: #0f8a72; border-bottom: 1px solid rgb(128 128 128 / 0.18); }
.swipe .action { color: #fff; font-weight: 700; font-size: 10.5px; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; flex: 0 0 auto; }
.swipe .trip { flex: 1 1 auto; margin-left: auto; border-bottom: 0; background: #fff; border-radius: 0; }
@media (prefers-color-scheme: dark) { .swipe .trip { background: #1c1c1e; } }
.odo { margin: 12px 12px 0; padding: 10px 12px; border-radius: 14px; background: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
@media (prefers-color-scheme: dark) { .odo { background: #1c1c1e; } }
.odo b { font-size: 14px; }
.plate { border: 1.5px solid currentColor; border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: 10px; letter-spacing: 0.04em; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 0 18px; font-size: 9.5px; color: #8e8e93; border-top: 1px solid rgb(128 128 128 / 0.2); }
.tabbar .on { color: #0f8a72; font-weight: 700; }

/* Floating cards next to the phone */
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
  padding: 0.6rem 0.85rem; box-shadow: var(--shadow); font-size: 0.82rem; line-height: 1.3;
}
.float b { display: block; font-size: 0.9rem; }
.float span { color: var(--muted); }
.float .ico { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.float .ico svg { width: 18px; height: 18px; }
.float.f1 { top: 14%; left: max(0px, calc(50% - 280px)); }
.float.f2 { bottom: 12%; right: max(0px, calc(50% - 280px)); }
.float.f2 .ico { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 520px) { .float { display: none; } }

/* Sections */
.section { padding: 4.5rem 0; }
@media (min-width: 960px) { .section { padding: 6.5rem 0; } }
.section.alt { background: var(--bg-alt); }
.section-intro { max-width: 46rem; margin-bottom: 2.5rem; }
.section-intro p { color: var(--muted); font-size: 1.12rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; gap: 1.5rem; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.wrap.grid.two { gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .wrap.grid.two { gap: 4rem; } }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, border-color 0.2s; }
.card:hover { box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .kicker { font-size: 0.78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem; }
.card .icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li.card { padding-top: 4.4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.75rem; top: 1.6rem;
  width: 2.2rem; height: 2.2rem; border-radius: 11px;
  display: grid; place-items: center; font-weight: 750; font-family: var(--font-display);
  background: var(--brand); color: var(--brand-ink);
}

.dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; margin-right: 0.5rem; vertical-align: 0.06em; }
.dot.biz { background: var(--biz); }
.dot.priv { background: var(--priv); }
.dot.commute { background: var(--commute); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.55rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--brand-soft) no-repeat center / 0.75rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a72' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Change log illustration */
.log { font-family: var(--mono); font-size: 0.84rem; line-height: 1.55; }
.log .row { border-left: 3px solid var(--brand); padding: 0.75rem 1rem; margin-bottom: 0.75rem; background: var(--surface-2); border-radius: 0 12px 12px 0; overflow-wrap: anywhere; }
.log .row:last-of-type { margin-bottom: 0.9rem; }
.log .old { text-decoration: line-through; color: var(--muted); }
.log .hash { color: var(--muted); font-size: 0.76rem; margin: 0; }

.note {
  display: block; border-radius: var(--radius-sm); padding: 1.1rem 1.25rem 1.1rem 3.1rem; margin-top: 2rem;
  color: var(--muted); font-size: 0.95rem; background: var(--surface) no-repeat 1.1rem 1.2rem / 1.25rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a72' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px var(--line);
}
.section:not(.alt) .note { background-color: var(--bg-alt); box-shadow: none; }
.note strong { color: var(--text); }

/* Summary table */
.summary { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.summary caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.75rem; }
.summary th, .summary td { padding: 0.75rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 450; }
.summary td { text-align: right; font-weight: 650; }
.summary tr:last-child th, .summary tr:last-child td { border-bottom: 0; padding-top: 1rem; }
.summary tr:last-child td { color: var(--brand); font-size: 1.15rem; }

/* Pricing */
.card .price, .price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 780; letter-spacing: -0.035em; margin: 0.4rem 0 0.6rem; color: var(--text); }
.price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.card.featured { border: 2px solid var(--brand); box-shadow: 0 20px 40px -20px var(--brand-glow), var(--shadow); }
.card h3 .badge { margin-left: 0.4rem; vertical-align: 0.1em; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; background: var(--brand); color: var(--brand-ink); padding: 0.2rem 0.65rem; border-radius: 999px; letter-spacing: 0; }

/* FAQ */
.faq .wrap { max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.4rem; margin-bottom: 0.75rem; transition: border-color 0.15s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq summary { cursor: pointer; font-weight: 650; padding: 1.15rem 2.2rem 1.15rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 1.5rem; height: 1.5rem; margin-top: -0.75rem; border-radius: 50%;
  background: var(--bg-alt) no-repeat center / 0.8rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352615c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details[open] summary { padding-bottom: 0.4rem; }
.faq details p { color: var(--muted); padding-bottom: 0.4rem; }

/* Final CTA */
.final { text-align: center; }
.final .cta-row { justify-content: center; }
.final .section-intro { margin-left: auto; margin-right: auto; }
.section.final {
  background:
    radial-gradient(50rem 22rem at 50% 0%, var(--brand-glow), transparent 70%),
    var(--bg-alt);
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; font-size: 0.92rem; color: var(--muted); background: var(--bg); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.site-footer a { color: var(--text); text-decoration: none; font-weight: 550; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }

/* Legal and guide pages */
.legal { padding: 3.5rem 0 5rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5rem; }
.ph { background: #fff3c4; color: #5a4300; padding: 0 0.25em; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .ph { background: #4a3a06; color: #ffe08a; } }
.todo { border: 2px solid var(--accent); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 2rem; }

.grid + .fine { margin-top: 1.25rem; }
