/* Sprie website — shared styles. Colours and type match the app (src/theme.ts). */
:root {
  --navy: #050560;
  --navy-soft: #E7E9F4;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --ink: #0F172A;
  --body: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #EEF1F5;
  --field: #F1F4F8;
  --surface-alt: #F8FAFC;
  --tint: #EFF6FF;
  --sage: #EEF2EC;
  --park: #D6E6CF;
  --open: #15803D;
  --radius: 14px;
  --radius-lg: 20px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #FFFFFF; color: var(--body);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line-soft); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.6px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--body); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #FFFFFF; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius);
  background: var(--blue); color: #FFFFFF; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.outline { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.outline:hover { background: var(--surface-alt); color: var(--ink); }
.btn.white { background: #FFFFFF; color: var(--navy); }
.btn.white:hover { background: var(--navy-soft); color: var(--navy); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--navy-soft); padding: 6px 12px; border-radius: 999px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--open); }

h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 700; margin: 0; }

/* ── Hero ── */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -2px; margin: 20px 0 20px; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px;
  border-radius: var(--radius); background: var(--ink); color: #FFFFFF;
}
.store:hover { color: #FFFFFF; background: #1E293B; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.2px; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--faint); }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Phone mock-up of the app's Home screen ── */
.stage { position: relative; display: flex; justify-content: center; }
.stage::before {
  content: ""; position: absolute; inset: 8% -10% 4% -10%; border-radius: 48px;
  background: radial-gradient(60% 60% at 50% 45%, var(--navy-soft) 0%, rgba(231,233,244,0) 70%);
}
.phone {
  position: relative; width: 300px; border-radius: 46px; padding: 12px;
  background: #0B0F17; box-shadow: 0 40px 80px -24px rgba(5,5,96,.35), 0 0 0 1px rgba(15,23,42,.08);
}
.screen { border-radius: 36px; overflow: hidden; background: #FFFFFF; height: 600px; position: relative; font-family: var(--sans); }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0B0F17; z-index: 2; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 46px 16px 0; }
.app-brand { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.4px; }
.app-brand img { height: 20px; }
.app-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #FFF; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.app-h { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: -0.5px; padding: 12px 16px 10px; line-height: 1.15; }
.app-search { margin: 0 16px; height: 38px; border-radius: 12px; background: var(--field); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: var(--faint); }
.app-chips { display: flex; gap: 6px; padding: 10px 16px; overflow: hidden; }
.app-chips span { font-size: 11px; font-weight: 500; padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--body); white-space: nowrap; }
.app-chips span.on { background: var(--ink); color: #FFF; box-shadow: none; }
.app-map { position: relative; margin: 4px 16px 0; height: 168px; border-radius: 16px; background: var(--sage); overflow: hidden; }
.app-map .road { position: absolute; background: #FFFFFF; }
.app-map .park { position: absolute; background: var(--park); border-radius: 20px; }
.app-map .pin { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid #FFF; box-shadow: 0 2px 5px rgba(15,23,42,.25); }
.app-map .me { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(37,99,235,.18); display: grid; place-items: center; }
.app-map .me::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); border: 2px solid #FFF; }
.app-map .callout { position: absolute; left: 70px; top: 46px; background: #FFF; border-radius: 10px; padding: 6px 9px; box-shadow: 0 4px 12px rgba(15,23,42,.12); display: flex; gap: 7px; align-items: center; }
.app-map .callout i { width: 22px; height: 22px; border-radius: 6px; background: #E8D9C4; }
.app-map .callout b { display: block; font-size: 10px; color: var(--ink); line-height: 1.2; }
.app-map .callout small { font-size: 9px; color: var(--muted); }
.app-map .pill { position: absolute; bottom: 10px; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 6px 10px; }
.app-map .pill.l { left: 10px; background: #FFF; color: var(--ink); }
.app-map .pill.r { right: 10px; background: var(--ink); color: #FFF; }
.app-sec { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 16px 8px; }
.app-sec b { font-family: var(--display); font-size: 15px; color: var(--ink); letter-spacing: -0.3px; }
.app-sec span { font-size: 11px; font-weight: 600; color: var(--blue); }
.app-cards { display: flex; gap: 10px; padding: 0 16px; }
.app-card { width: 150px; flex: none; }
.app-card .img { height: 84px; border-radius: 12px; }
.app-card b { display: block; font-size: 12px; color: var(--ink); margin-top: 7px; }
.app-card small { display: block; font-size: 10px; color: var(--muted); }
.app-card em { font-style: normal; font-size: 10px; color: var(--open); font-weight: 500; }

/* Floating chips around the phone */
.float { position: absolute; background: #FFF; border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 32px -8px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.04); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); font-weight: 600; }
.float small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.float .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--field); }
.float.a { left: -64px; top: 300px; }
.float.b { right: -48px; bottom: 36px; }
@media (max-width: 520px) { .float { display: none; } }

/* ── Sections ── */
section.block { padding: 96px 0; }
section.block.alt { background: var(--surface-alt); }
.head { max-width: 640px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1.2px; margin: 14px 0 14px; }
.head p { font-size: 18px; color: var(--muted); margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.feature { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--navy-soft); display: grid; place-items: center; margin-bottom: 20px; }
.feature h3 { font-size: 20px; letter-spacing: -0.4px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #FFF; font-family: var(--display); font-weight: 700; font-size: 17px;
  display: grid; place-items: center;
}
.step h3 { font-size: 19px; letter-spacing: -0.3px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── Business band ── */
.biz { background: var(--navy); color: #C7CAE6; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.biz::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.05); }
.biz h2 { color: #FFFFFF; font-size: clamp(30px, 4vw, 42px); letter-spacing: -1.2px; line-height: 1.1; margin: 14px 0 16px; }
.biz .eyebrow { background: rgba(255,255,255,.1); color: #FFFFFF; }
.biz p { font-size: 17px; margin: 0 0 28px; max-width: 480px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #FFFFFF; font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(255,255,255,.14) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) { .biz { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ── Closing call to action ── */
.cta { text-align: center; padding: 96px 0; }
.cta img { height: 56px; width: auto; margin: 0 auto 24px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.2px; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.cta .stores { justify-content: center; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; font-size: 14px; }
.footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer .about { max-width: 300px; color: var(--muted); }
.footer .about p { margin: 12px 0 0; }
.footer h4 { font-size: 13px; color: var(--ink); margin: 0 0 12px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--ink); }
.footer .base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ── Document pages (privacy, terms, delete account) ── */
.doc-hero { background: linear-gradient(180deg, var(--navy-soft) 0%, rgba(231,233,244,0) 100%); padding: 64px 0 40px; }
.doc-hero .crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.doc-hero .crumb a { color: var(--muted); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1.5px; line-height: 1.05; }
.doc-hero .updated { margin-top: 14px; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.doc-hero .lede { margin: 18px 0 0; font-size: 18px; color: var(--muted); max-width: 620px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 24px 0 96px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); font-weight: 600; margin-bottom: 12px; }
.toc a { display: block; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--line-soft); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--navy); border-left-color: var(--navy); font-weight: 600; }
.prose section { padding: 28px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 88px; }
.prose section:last-child { border-bottom: none; }
.prose h2 { font-size: 24px; letter-spacing: -0.5px; margin-bottom: 14px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.75; color: var(--body); }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ol { counter-reset: n; list-style: none; padding: 0; margin: 4px 0 14px; display: grid; gap: 12px; }
.prose ol li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; }
.prose ol li::before { content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-top: 1px; }
.callout-box { background: var(--tint); border-radius: var(--radius); padding: 18px 20px; color: #1E3A8A; font-size: 15.5px; margin-top: 8px; }
.callout-box a { font-weight: 600; }

/* ── 404 ── */
.lost { min-height: calc(100vh - 68px); display: grid; place-items: center; text-align: center; padding: 40px 24px 80px; }
.lost .map { position: relative; width: 220px; height: 150px; margin: 0 auto 32px; border-radius: 24px; background: var(--sage); overflow: hidden; }
.lost .map .road { position: absolute; background: #FFF; }
.lost .map img { position: absolute; left: 50%; top: 50%; height: 64px; transform: translate(-50%, -62%); }
.lost h1 { font-size: 40px; letter-spacing: -1px; margin-bottom: 10px; }
.lost p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
