:root {
  --bg: #ffffff;
  --surface: #f3f6fb;
  --text: #16181d;
  --muted: #5a6270;
  --border: #e1e4e8;
  --accent: #1f5fd6;
  --accent-soft: #e6eefc;
  --on-accent: #ffffff;
  --hero-a: #eaf1ff;
  --hero-b: #fff3e8;
  --blue: #2f6feb;
  --orange: #f28c28;
  --purple: #7c4dcf;
  --green: #2e9e5b;
  --red: #d93025;
  --teal: #0f8f86;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #181c23;
    --text: #eceef1;
    --muted: #9aa1ac;
    --border: #2b2f36;
    --accent: #7aa7f5;
    --accent-soft: #1d2840;
    --on-accent: #0f1114;
    --hero-a: #141c2e;
    --hero-b: #221a14;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
/* The colour glows reach past the edges; never let them make the page scroll sideways. */
html, body { overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { letter-spacing: -0.015em; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand.small { font-size: 14px; font-weight: 600; color: var(--muted); }
.brand.small img { width: 22px; height: 22px; border-radius: 6px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--text); }
nav a.nav-cta { color: var(--on-accent); background: var(--accent); padding: 9px 16px; border-radius: 10px; font-weight: 700; }

/* Hero */
.hero-bg {
  background:
    radial-gradient(900px 500px at 85% 20%, var(--hero-b), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, var(--hero-a), transparent 60%),
    var(--bg);
}
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 48px 0 90px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 32em; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.buttons.center { justify-content: center; }
.btn { display: inline-block; padding: 15px 24px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgba(31, 95, 214, 0.3); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(31, 95, 214, 0.35); }
.btn.ghost { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.stores { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero-shot { display: flex; justify-content: center; }

/* Phone frame */
.phone {
  width: min(310px, 78vw);
  border-radius: 38px;
  border: 10px solid #0b0c0e;
  overflow: hidden;
  background: #0b0c0e;
  box-shadow: 0 40px 80px rgba(15, 25, 50, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone img { display: block; width: 100%; height: auto; }
.phone.tilt { transform: rotate(3deg); }

/* How it works */
section.how { padding: 72px 0 40px; text-align: center; }
section h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 14px; line-height: 1.15; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.steps li { background: var(--surface); border-radius: 18px; padding: 26px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px;
}
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }

/* Alternating screenshots: copy and phone tucked together, centred. */
.showcase { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: center; gap: 48px; align-items: center; padding: 36px 0; }
.showcase.flip { grid-template-columns: auto minmax(0, 420px); }
.showcase .phone { justify-self: center; }
.showcase.flip .showcase-copy { order: 2; }
.showcase-copy h2 { margin-bottom: 14px; }
.showcase-copy p { color: var(--muted); font-size: 18px; margin: 0; max-width: 30em; }

/* Soft colour glows carried down the page, in the app's palette. */
main { position: relative; isolation: isolate; }
[class*='glow-'] { position: relative; }
[class*='glow-']::before {
  content: '';
  position: absolute;
  inset: -10% -15%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.glow-blue { --glow: rgba(47, 111, 235, 0.16); }
.glow-purple { --glow: rgba(124, 77, 207, 0.16); }
.glow-green { --glow: rgba(46, 158, 91, 0.15); }
.glow-orange { --glow: rgba(242, 140, 40, 0.13); }
.glow-teal { --glow: rgba(15, 143, 134, 0.13); }
@media (prefers-color-scheme: dark) {
  .glow-blue { --glow: rgba(90, 140, 255, 0.22); }
  .glow-purple { --glow: rgba(150, 100, 240, 0.22); }
  .glow-green { --glow: rgba(70, 190, 120, 0.18); }
  .glow-orange { --glow: rgba(242, 140, 40, 0.16); }
  .glow-teal { --glow: rgba(30, 180, 170, 0.16); }
}

/* Features */
section.features { padding: 60px 0 70px; }
section.features h2 { text-align: center; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: 18px; padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.blue { background: var(--blue); }
.icon.orange { background: var(--orange); }
.icon.purple { background: var(--purple); }
.icon.green { background: var(--green); }
.icon.red { background: var(--red); }
.icon.teal { background: var(--teal); }

/* Call to action */
.cta {
  text-align: center;
  border-radius: 26px;
  padding: 56px 24px;
  margin-bottom: 70px;
  background:
    radial-gradient(600px 300px at 20% 0%, var(--hero-a), transparent 70%),
    radial-gradient(600px 300px at 90% 100%, var(--hero-b), transparent 70%),
    var(--surface);
}
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 34em; font-size: 17px; }

footer { border-top: 1px solid var(--border); padding: 26px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }

/* Privacy and terms */
article.legal { max-width: 760px; padding: 20px 0 60px; }
article.legal h1 { font-size: 34px; margin-bottom: 4px; }
article.legal .updated { color: var(--muted); margin-top: 0; }
article.legal h2 { font-size: 21px; margin: 30px 0 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 16px 0 60px; gap: 40px; }
  .phone.tilt { transform: none; }
  .steps, .grid { grid-template-columns: 1fr; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .showcase.flip .showcase-copy { order: 0; }
  nav a:not(.nav-cta) { display: none; }
}
