/* EasyDispatch website. Tokens follow DESIGN.md §3 (the app's EdColors). */

:root {
  --primary: #107ab6;
  --primary-strong: #0b4f77;
  --on-primary: #ffffff;
  --primary-container: #e6f2f9;
  --on-primary-container: #0b4f77;
  --pickup: #8b5cf6;
  --dropoff: #10b981;
  --success: #059669;
  --surface: #fcfcfd;
  --surface-alt: #f8fafc;
  --surface-raised: #ffffff;
  --text: #202939;
  --text-secondary: #4b5565;
  --text-muted: #697586;
  --border: #e3e8ef;
  --border-subtle: #eef2f6;
  --inverse: #0e1a26;
  --on-inverse: #f3f4f6;
  --on-inverse-muted: #9aa4b2;
  --tile-deliver: #5477b0;
  --tile-shop: #58817d;
  --tile-pay: #b08828;
  --tile-orders: #bf7337;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -12px rgba(16, 24, 40, 0.18);
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 20px;
  --max: 1160px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #4fa8dc;
    --primary-strong: #cde7f6;
    --on-primary: #00243a;
    --primary-container: #0b3a55;
    --on-primary-container: #cde7f6;
    --pickup: #a78bfa;
    --dropoff: #34d399;
    --success: #34d399;
    --surface: #0f1419;
    --surface-alt: #141a20;
    --surface-raised: #171d24;
    --text: #f3f4f6;
    --text-secondary: #cdd5df;
    --text-muted: #9aa4b2;
    --border: #262d36;
    --border-subtle: #1e252d;
    --inverse: #1c2833;
    --tile-deliver: #3f5f94;
    --tile-shop: #466a67;
    --tile-pay: #8e6e1f;
    --tile-orders: #9c5b2b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { 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; animation: none !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: var(--radius-s);
}
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--primary); }
.brand svg { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--radius-s);
  color: var(--text-secondary); font-weight: 600; font-size: 15px; text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: var(--surface-alt); }
.nav .btn { margin-left: 8px; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius-s);
  border: 1px solid var(--border); background: var(--surface-raised); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .nav .btn { display: none; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 17px; }
}

/* ── Buttons & badges ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease-out, border-color .15s ease-out;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: #7cc0e8; } }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface-raised); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn svg { width: 18px; height: 18px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges a { display: inline-block; border-radius: 10px; }
.store-badges img { height: 48px; width: auto; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 72px 0 96px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--primary-container);
  color: var(--on-primary-container); font-size: 14px; font-weight: 700;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dropoff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dropoff) 25%, transparent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-secondary); max-width: 34em; }
.hero h1 .accent { color: var(--primary); }
.hero-actions { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.web-link { font-size: 15px; color: var(--text-secondary); }
.web-link a { font-weight: 700; }
.hero-visual { display: flex; justify-content: center; }
.hero-stack { position: relative; width: min(330px, 78vw); }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35;
}
.hero-card strong { display: block; font-size: 15px; }
.hero-card span { color: var(--text-muted); }
.hero-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.hero-card { white-space: nowrap; }
.hero-card.one { left: -24%; top: 57%; }
.hero-card.two { right: -18%; bottom: 7%; }
@media (max-width: 560px) { .hero-card { display: none; } }

/* Phone frame around a real app screenshot */
.phone {
  position: relative; border-radius: 44px; padding: 10px; background: #0e1a26;
  box-shadow: 0 0 0 1px #2a3846 inset, 0 30px 60px -20px rgba(14, 26, 38, 0.45);
}
.phone img { width: 100%; height: auto; border-radius: 34px; aspect-ratio: 1320 / 2868; object-fit: cover; background: var(--surface-alt); }
.phone.sm { border-radius: 36px; padding: 8px; }
.phone.sm img { border-radius: 28px; }

/* ── Sections ───────────────────────────────────────── */
section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--primary); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 1.1rem; }

/* Service tiles: the app's Home tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; border-radius: var(--radius-l); padding: 24px; color: #fff; min-height: 240px;
  display: flex; flex-direction: column; text-decoration: none;
}
.tile h3 { font-size: 1.4rem; margin: auto 0 8px; }
.tile p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 15px; line-height: 1.55; }
.tile .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; margin-bottom: 28px; }
.tile .ic svg { width: 26px; height: 26px; }
.tile.deliver { background: var(--tile-deliver); }
.tile.shop { background: var(--tile-shop); }
.tile.pay { background: var(--tile-pay); }
.tile.orders { background: var(--tile-orders); }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-container); color: var(--on-primary-container); font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* Feature rows with screenshots */
.feature { display: grid; gap: 40px; align-items: center; }
.feature + .feature { margin-top: 96px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .feature-media { order: 2; }
}
.feature-media { display: flex; justify-content: center; gap: 20px; }
.feature-media .phone { width: min(290px, 70vw); }
.feature-media .phone + .phone { margin-top: 56px; display: none; }
@media (min-width: 560px) { .feature-media .phone { width: 250px; } .feature-media .phone + .phone { display: block; } }
.feature-copy p { color: var(--text-secondary); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16px; }
.checks li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--success); }

/* Trust grid */
.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* Returning customers band */
.band { background: var(--inverse); color: var(--on-inverse); border-radius: 28px; padding: 40px 28px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .band { grid-template-columns: 1.4fr 1fr; padding: 56px; } }
.band h2 { color: #fff; }
.band p { color: var(--on-inverse-muted); margin: 0; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band li { display: flex; gap: 12px; align-items: flex-start; }
.band li svg { flex: none; width: 22px; height: 22px; color: #34d399; margin-top: 3px; }

/* Pricing */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px; }
.price-card h3 { display: flex; align-items: center; gap: 10px; }
.price-card p { color: var(--text-secondary); font-size: 15px; }
.price-card ul { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 15px; }
.price-card li + li { margin-top: 6px; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--primary-container); color: var(--on-primary-container); letter-spacing: 0.02em; }

/* FAQ */
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h3 { font-size: 1.15rem; margin-bottom: 12px; }
.faq { max-width: 860px; margin: 0 auto; }
details {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px;
}
details + details { margin-top: 10px; }
summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease-out;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details p { color: var(--text-secondary); padding-bottom: 18px; margin: 0; font-size: 16px; }

/* Download CTA */
.cta { text-align: center; }
.cta .store-badges { justify-content: center; margin-top: 28px; }
.cta .icon-mark { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; box-shadow: var(--shadow); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--inverse); color: var(--on-inverse-muted); padding: 56px 0 32px; font-size: 15px; }
.site-footer a { color: var(--on-inverse); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.socials a:hover { background: rgba(255, 255, 255, 0.16); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }

/* ── Document pages (legal, delete account) ─────────── */
.doc { padding: 56px 0 80px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.doc .meta { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 1.4rem; margin-top: 2.2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--text-secondary); }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); }
.doc .toc { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-secondary); }
.doc th { color: var(--text); font-weight: 700; background: var(--surface-alt); }
.callout { background: var(--primary-container); color: var(--on-primary-container); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.callout p { color: inherit; margin: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; }
.steps-list li + li { margin-top: 14px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 14px;
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound p { color: var(--text-secondary); }
