/* Landing page only. Tokens come from style.css. */
:root {
  --brand-soft: #e8f0fe;
  --brand-ink: #174ea6;
  --green: #188038;
  --amber: #f9ab00;
  --red: #d93025;
  --purple: #a142f4;
  --grey: #80868b;
  --map: #eef1ee;
  --road: #ffffff;
  --block: #e3e7e3;
  --shadow: 0 1px 2px rgba(60,64,67,.12), 0 8px 28px rgba(60,64,67,.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-soft: #1d2a3f;
    --brand-ink: #aecbfa;
    --map: #24272b;
    --road: #33363b;
    --block: #2b2e33;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.45);
  }
}

.home main { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.home header { margin: 0; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--text); }
.nav nav .button { color: #fff; padding: 8px 16px; }
@media (prefers-color-scheme: dark) { .nav nav .button { color: #17181a; } }
@media (max-width: 720px) { .nav nav a:not(.button) { display: none; } }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 20px 0 18px; }
.hero h1 span { color: var(--brand); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button.big { padding: 13px 24px; font-size: 16px; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { .button.ghost { color: var(--text); } }
.platforms { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Phone mockup */
.phone { justify-self: center; width: 300px; aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px;
  background: #202124; box-shadow: var(--shadow), 0 30px 80px rgba(26,115,232,.18); position: relative; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--map); }
.screen svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip { position: absolute; top: 18px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.chip span { background: var(--bg); box-shadow: var(--shadow); border-radius: 999px; padding: 6px 11px;
  font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.chip .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 10px 16px 18px; box-shadow: 0 -6px 24px rgba(0,0,0,.12); }
.sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet b { display: block; font-size: 14px; }
.sheet small { color: var(--muted); font-size: 11.5px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; }
.seg i { font-style: normal; font-size: 11px; font-weight: 600; text-align: center; padding: 8px 2px; border-radius: 10px;
  background: var(--soft); color: var(--text); }
.seg i.on { background: var(--green); color: #fff; }
.save { background: var(--brand); color: #fff; text-align: center; font-weight: 600; font-size: 12.5px; padding: 9px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .save { color: #17181a; } }

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: 260px; }
}

/* Demo video */
.phone.video { aspect-ratio: 390 / 844; width: 290px; cursor: pointer; }
.phone.video .screen { background: #000; }
.phone.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-note { color: var(--muted); font-size: 13.5px; margin: 20px 0 0; }
#demo .checks { margin-top: 4px; }
@media (max-width: 860px) { .phone.video { width: 260px; } }

/* Sections */
section.band { padding: 80px 0; scroll-margin-top: 40px; }
section.alt { background: var(--soft); }
.kicker { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.home h2 { border: 0; padding: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.015em; margin: 8px 0 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.alt .card { border-color: transparent; box-shadow: 0 1px 2px rgba(60,64,67,.08); }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Outcomes */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin: 0; }
.legend .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); }
.legend b { display: block; font-size: 15.5px; }
.ico.sm { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.ico.sm svg { width: 18px; height: 18px; }
.legend span { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; margin: 0; padding: 24px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #17181a; } }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Privacy */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

/* FAQ */
.faq details, .faq h2 { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* CTA */
.cta { text-align: center; background: var(--brand); color: #fff; border-radius: 28px; padding: 56px 24px; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255,255,255,.85); font-size: 18px; margin: 0 auto 28px; max-width: 32em; }
.cta .button { background: #fff; color: var(--brand-ink); }
@media (prefers-color-scheme: dark) {
  .cta { background: #1d2a3f; }
  .cta .button { color: #174ea6; }
}

.home footer { max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px; }
