/* Helplane marketing site - plain CSS, no build step */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --line: #dde3ee;
  --text: #17203a;
  --muted: #56617a;
  --accent: #2f63d6;
  --accent-ink: #ffffff;
  --accent-soft: #e3ecff;
  --lane: #f0b429;
  --ok: #1a9c63;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 8px 24px rgba(20, 30, 60, .06);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1522;
    --surface: #171f31;
    --surface-2: #1d2740;
    --line: #2a3550;
    --text: #e6ebf5;
    --muted: #9aa6bd;
    --accent: #5b8fff;
    --accent-ink: #0b1220;
    --accent-soft: #1f2d4f;
    --lane: #f5c451;
    --ok: #34c486;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { 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(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 750; font-size: 1.25rem; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--accent); font-weight: 750; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link { display: none; color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav-links a.link:hover { color: var(--text); background: var(--surface-2); }
@media (min-width: 820px) { .nav-links a.link { display: inline-block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px;
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .95rem; }

/* Hero */
.hero { padding: 48px 0 40px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 80px 0 64px; } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* Hero visual: mock app card */
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.mock-top { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; font-size: .9rem; }
.mock-row small { display: block; color: var(--muted); font-size: .78rem; }
.pill { font-size: .75rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.amber { background: color-mix(in srgb, var(--lane) 22%, transparent); color: color-mix(in srgb, var(--lane) 55%, var(--text)); }
.mock-road { margin-top: 14px; height: 54px; border-radius: 10px; background: #3a4358; position: relative; overflow: hidden; }
.mock-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 26px, transparent 26px 46px); }
.truck { position: absolute; top: 9px; left: 8%; width: 58px; height: 36px; animation: drive 9s linear infinite; }
@keyframes drive { from { left: -15%; } to { left: 105%; } }
@media (prefers-reduced-motion: reduce) { .truck { animation: none; left: 40%; } }
.panda-badge { position: absolute; right: -10px; bottom: -22px; width: 84px; height: 84px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }
@media (min-width: 900px) { .panda-badge { right: -24px; width: 96px; height: 96px; } }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Highlights */
.highlights { display: grid; gap: 16px; }
@media (min-width: 900px) { .highlights { grid-template-columns: repeat(3, 1fr); } }
.hl { border-radius: var(--radius); padding: 24px; background: var(--accent-soft); }
.hl h3 { font-size: 1.2rem; }
.hl p { margin: 0; color: var(--text); opacity: .85; }
.hl .num { font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: block; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--surface); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .box { background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 40px 20px; }
.cta-band h2 { color: inherit; }
.cta-band p { opacity: .9; max-width: 32em; margin: 0 auto 20px; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-ghost { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Simple text pages (privacy, 404) */
.page { padding: 48px 0 64px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound svg { width: 120px; height: 120px; margin: 0 auto 16px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.center-row { justify-content: center; }

section[id] { scroll-margin-top: 72px; }
