/*
 * Mailbox website. The rider app's palette and type (ink, signal yellow, Outfit, Inter),
 * used sparingly: big photos, big words, very little else.
 */
:root {
  --ink: #0e1726;
  --ink-soft: #3b4656;
  --muted: #5b6675;
  --on-ink: #ffffff;
  --on-ink-soft: rgba(255, 255, 255, 0.66);
  --line: #e3e7ec;
  --ground: #f2f4f7;
  --signal: #ffc400;
  --signal-pressed: #e6b000;
  --success: #15603c;

  --display: "Outfit", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 18px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
p, h1, h2 { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-wrap: balance;
}
h2 { font-size: clamp(48px, 8.4vw, 136px); }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons: the app's primary button, signal yellow with ink text */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 14px;
  background: var(--signal); color: var(--ink);
  font: 600 17px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--signal-pressed); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }

.link {
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}

/* Nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--on-ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 26px/1 var(--display); letter-spacing: -0.04em;
}
.brand span { padding-bottom: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--on-ink-soft); }
.nav-links > a:not(.btn):hover { color: var(--on-ink); }

/* Hero: the photo fills the screen; shading keeps the white type readable.
   The full stop is a small yellow flyer that drops in last. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: max(600px, 100svh);
  background: var(--ink); color: var(--on-ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(14, 23, 38, 0.6) 0, rgba(14, 23, 38, 0) 24%),
    linear-gradient(to top, rgba(14, 23, 38, 0.92) 0, rgba(14, 23, 38, 0.62) 28%, rgba(14, 23, 38, 0.12) 62%, rgba(14, 23, 38, 0) 80%);
}
.hero-content {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding-bottom: clamp(40px, 6vw, 88px);
}
.hero-title {
  font-size: clamp(64px, 10.5vw, 176px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-shadow: 0 2px 40px rgba(14, 23, 38, 0.25);
}
.flyer {
  display: inline-block; width: 0.17em; height: 0.21em; margin-left: 0.05em;
  border-radius: 0.015em; background: var(--signal);
  transform: rotate(-9deg);
}
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 440px; padding-bottom: 0.3em; }
.hero-side p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: rgba(255, 255, 255, 0.86); }

.js .hero-bg { animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero-title { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both; }
.js .hero-side { animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both; }
.js .flyer { animation: post 0.7s cubic-bezier(0.5, 0, 0.3, 1.4) 1.1s both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes post {
  from { opacity: 0; transform: translateY(-0.9em) rotate(14deg); }
  60% { opacity: 1; }
  to { opacity: 1; transform: rotate(-9deg); }
}

/* How it works: the app itself. The step text scrolls while one phone stays pinned and
   switches to the screen for the step in view. Screens are drawn at the app's 390×844 size
   and scaled with --k, which main.js sets from the window height. */
.demo { --k: 0.8; --device-top: 80px; padding: clamp(112px, 12vw, 180px) 0 clamp(40px, 6vw, 96px); }
.steps-label { margin-bottom: clamp(16px, 2vw, 32px); font-size: 16px; font-weight: 500; color: var(--muted); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); }
.demo-steps { grid-column: 1; grid-row: 1; margin: 0; padding: 0; list-style: none; }
.demo-step {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  min-height: 100vh; max-width: 640px;
}
.js .demo-step { opacity: 0.18; transition: opacity 0.4s ease; }
.js .demo-step.is-active { opacity: 1; }
.step-num { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-title { font-size: clamp(40px, 5.6vw, 92px); letter-spacing: -0.05em; line-height: 0.95; }
.step-text { max-width: 26em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-soft); }

.demo-device {
  grid-column: 2; grid-row: 1; align-self: start; justify-self: center;
  position: sticky; top: var(--device-top);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.phone {
  padding: 10px; border-radius: calc(54px * var(--k) + 10px);
  background: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(14, 23, 38, 0.35), inset 0 0 0 2px #2b3a52;
}
.phone-screen {
  position: relative; overflow: hidden;
  width: calc(390px * var(--k)); height: calc(844px * var(--k));
  border-radius: calc(54px * var(--k)); background: #eef0f3;
}
.device-caption { position: relative; height: 20px; width: 100%; text-align: center; font-size: 14px; color: var(--muted); }
.device-caption span { position: absolute; inset: 0; transition: opacity 0.3s; }
.device-caption [data-caption="1"] { opacity: 0; }
.demo[data-step="1"] .device-caption [data-caption="0"],
.demo[data-step="2"] .device-caption [data-caption="0"],
.demo[data-step="3"] .device-caption [data-caption="0"] { opacity: 0; }
.demo[data-step="1"] .device-caption [data-caption="1"],
.demo[data-step="2"] .device-caption [data-caption="1"],
.demo[data-step="3"] .device-caption [data-caption="1"] { opacity: 1; }

/* One screen at the app's own size */
.screen {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px; overflow: hidden;
  transform: scale(var(--k)); transform-origin: 0 0;
  background: #eef0f3; color: var(--ink); font: 400 16px/1.35 var(--body);
  opacity: 0; transition: opacity 0.45s ease;
}
.screen.is-active { opacity: 1; }
.screen-map { position: absolute; left: 0; top: 0; width: 390px; height: 844px; }
.muted { color: var(--ink-soft); font-size: 15px; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 16px; padding: 10px 20px 34px;
  border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -4px 20px rgba(14, 23, 38, 0.1);
}
.grabber { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet-title { font: 700 26px/1.1 var(--display); letter-spacing: -0.02em; }
.sheet-title-lg { font-size: 28px; }
.app-btn {
  display: flex; align-items: center; justify-content: center; height: 58px; border-radius: 14px;
  background: var(--signal); font-size: 18px; font-weight: 700;
}
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; white-space: nowrap; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.seg .on { background: var(--ink); color: #fff; }
.seg-drop { background: var(--ground); }

/* Screen 1: main.js draws the outline with the pen on it; when it closes, the area fills and
   its letterboxes light up outward from the shop */
.js .screen-area .area-fill { opacity: 0; transition: opacity 0.4s ease; }
.js .screen-area.is-closed .area-fill { opacity: 1; }
.js .screen-area .area-dots circle { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; transition: opacity 0.2s, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.js .screen-area .area-dots circle.on { opacity: 1; transform: none; }
.screen-area .area-pen { opacity: 0; transition: opacity 0.2s; }
.screen-area.is-drawing .area-pen { opacity: 1; }
.top-card {
  position: absolute; left: 12px; right: 12px; top: 54px; display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 4px 16px rgba(14, 23, 38, 0.14);
}
.shop-row { display: flex; align-items: center; gap: 12px; }
.shop-row b { display: block; font-size: 16px; }
.shop-row small { display: block; font-size: 14px; color: var(--ink-soft); }
.shop-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--signal); font-size: 20px; font-weight: 700; }
.top-card .seg { background: var(--ground); }
.top-card .seg span { height: 36px; }
.sheet-area { gap: 12px; padding-top: 10px; }
.sheet-area .area-count { margin: -4px 0 6px; font: 800 64px/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.sheet-area .app-btn { margin-top: 4px; }

/* Phone chrome: status bar, dynamic island, home indicator */
.statusbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 50px;
  display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 34px;
  font: 600 16px/1 var(--body); color: var(--ink); pointer-events: none;
}
.statusbar-light { color: #fff; }
.island {
  position: absolute; left: 50%; top: calc(11px * var(--k)); z-index: 5;
  width: calc(120px * var(--k)); height: calc(34px * var(--k)); margin-left: calc(-60px * var(--k));
  border-radius: 999px; background: #05080d;
}
.home-bar { position: absolute; left: 50%; bottom: 8px; z-index: 3; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); }
.home-bar-light { background: #fff; }

/* Screen 2: the claim button is tapped and the app confirms */
.pill-btn {
  position: absolute; left: 16px; top: 56px; display: flex; align-items: center; height: 46px; padding: 0 18px 0 14px;
  border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(14, 23, 38, 0.14); font-size: 15px; font-weight: 700;
}
.sheet-task { height: 430px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--ground); }
.tiles b { font: 700 24px/1.15 var(--display); }
.tiles span { font-size: 13px; color: var(--ink-soft); }
.sheet-task .claim-btn { margin-top: auto; }
.task-note { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.toast {
  position: absolute; left: 12px; right: 12px; top: 114px; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(14, 23, 38, 0.28); opacity: 0; transform: translateY(-12px);
}
.toast-tick { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--signal); color: var(--ink); font-size: 14px; font-weight: 800; }
.screen-task.play .claim-btn { animation: tap 0.35s ease 1s; }
.screen-task.play .toast { animation: toast-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.25s forwards; }
@keyframes tap { 50% { transform: scale(0.96); background: var(--signal-pressed); } }
@keyframes toast-in { to { opacity: 1; transform: none; } }

/* Screen 3: the run */
.status {
  position: absolute; left: 12px; right: 12px; top: 52px; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 4px 16px rgba(14, 23, 38, 0.16);
}
.status b { font-size: 16px; }
.status-time { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.status .bar { display: block; height: 8px; border-radius: 4px; background: #e3e7ec; overflow: hidden; }
.status .bar-fill { display: block; width: 0; height: 100%; background: var(--ink); }
.lb { fill: #fff; stroke: #2457f5; stroke-width: 2.2; transition: fill 0.2s, stroke 0.2s; }
.lb.is-done { fill: #a3acb9; stroke: #a3acb9; }
.status-cov { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip { padding: 4px 10px; border-radius: 999px; background: #eef1f5; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.run-actions {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 16px 16px 34px;
  border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -4px 20px rgba(14, 23, 38, 0.1);
}
.outline-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; border: 2px solid var(--ink); border-radius: 16px; font-size: 17px; font-weight: 700; }
.grey-btn { display: flex; align-items: center; justify-content: center; width: 104px; height: 60px; border-radius: 16px; background: var(--ground); font-size: 16px; font-weight: 700; }

/* Screen 4: the spot-check prompt, then the camera with a flyer half in the slot */
.spot-card {
  position: absolute; left: 12px; right: 12px; bottom: 140px; display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 20px; background: var(--signal); box-shadow: 0 4px 16px rgba(14, 23, 38, 0.18);
  transform: translateY(40px); opacity: 0;
}
.spot-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.spot-left { font: 700 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.spot-card p { font-size: 16px; font-weight: 600; line-height: 1.35; }
.ink-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 700; }
.camera { position: absolute; inset: 0; z-index: 4; background: #05080d; opacity: 0; }
.camera img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cam-frame { position: absolute; left: 44px; top: 470px; width: 316px; height: 200px; border: 3px dashed var(--signal); border-radius: 22px; }
.cam-hint {
  position: absolute; left: 50%; top: 682px; transform: translateX(-50%); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: rgba(5, 8, 13, 0.62); color: #fff; font-size: 14px; font-weight: 600;
}
.cam-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 58px 16px 36px; background: linear-gradient(rgba(5, 8, 13, 0.7), rgba(5, 8, 13, 0)); color: #fff;
}
.cam-x { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 18px; }
.cam-title { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cam-title b { font-size: 17px; }
.cam-title small { font-size: 14px; color: #d3d8df; }
.cam-timer { padding: 8px 12px; border-radius: 999px; background: var(--signal); color: var(--ink); font: 700 17px/1 var(--display); }
.cam-shutter { position: absolute; left: 50%; bottom: 34px; width: 82px; height: 82px; margin-left: -41px; border: 5px solid #fff; border-radius: 50%; }
.cam-shutter::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-saved {
  position: absolute; left: 50%; top: 140px; transform: translate(-50%, -8px); padding: 10px 16px; border-radius: 999px;
  background: var(--success); color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; opacity: 0;
}
.screen-spot.play .spot-card { animation: card-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.3s forwards; }
.screen-spot.play .camera { animation: fade-in 0.4s ease 1.9s forwards; }
.screen-spot.play .cam-shutter::after { animation: shutter 0.3s ease 3.3s; }
.screen-spot.play .cam-flash { animation: flash 0.5s ease 3.4s; }
.screen-spot.play .cam-saved { animation: saved 0.4s ease 3.7s forwards; }
@keyframes card-in { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes shutter { 50% { transform: scale(0.85); } }
@keyframes flash { 30% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes saved { to { opacity: 1; transform: translate(-50%, 0); } }

/* Reduced motion: each screen shows its finished state */
.demo.is-static .screen-area .area-fill, .demo.is-static .screen-area .area-dots circle { opacity: 1; transform: none; }
.demo.is-static .toast, .demo.is-static .spot-card { opacity: 1; transform: none; }
.demo.is-static .camera { opacity: 1; }
.demo.is-static .cam-saved { opacity: 1; transform: translate(-50%, 0); }

/* Proof: a delivery receipt that prints out of a letterbox slot as it scrolls into view */
.proof { background: var(--ground); padding: clamp(112px, 13vw, 200px) 0; overflow: hidden; }
.proof-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px); align-items: center;
}
.proof-copy h2 { max-width: 7.5em; }
.proof-copy p { max-width: 22em; margin-top: clamp(24px, 3vw, 36px); font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); }

.receipt-wrap { position: relative; justify-self: center; width: min(100%, 420px); }
.receipt-slot {
  position: relative; z-index: 2; display: block;
  height: 18px; margin: 0 -28px; border-radius: 9px; background: var(--ink);
  box-shadow: 0 6px 14px rgba(14, 23, 38, 0.18);
}
.receipt-window {
  position: relative; margin-top: -9px; padding-bottom: 24px;
  clip-path: inset(0 -60px -80px -60px); /* only the top edge clips: the paper comes out of the slot */
}
.receipt {
  position: relative; margin: 0 6px; padding: 34px 26px 26px;
  background: #fff; color: var(--ink);
  font: 400 14px/1.75 "IBM Plex Mono", ui-monospace, Menlo, monospace;
  filter: drop-shadow(0 18px 24px rgba(14, 23, 38, 0.12));
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: radial-gradient(circle at 7px 0, #fff 7px, transparent 7.5px) 0 0 / 14px 10px repeat-x;
}
.js .receipt { transform: translateY(-100%); }
.js .receipt.is-printed { animation: print 2.6s cubic-bezier(0.45, 0.1, 0.3, 1) 0.2s forwards; }
@keyframes print { to { transform: none; } }

.r-brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.r-brand b { font: 800 22px/1 var(--display); letter-spacing: -0.04em; padding-bottom: 2px; }
.r-center { text-align: center; }
.receipt > .r-center:first-of-type { margin-top: 6px; font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.r-pairs { margin: 18px 0 0; padding-top: 14px; border-top: 1.5px dashed #c5ccd6; }
.r-pairs div { display: flex; justify-content: space-between; gap: 16px; }
.r-pairs dt { color: var(--muted); }
.r-pairs dd { margin: 0; text-align: right; }
.r-streets { width: 100%; margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed #c5ccd6; border-collapse: collapse; font: inherit; }
.r-streets th { padding: 10px 0 4px; font-weight: 400; text-align: left; color: var(--muted); }
.r-streets td { padding: 0; }
.r-streets th:not(:first-child), .r-streets td:not(:first-child) { text-align: right; }
.r-totals dd { font-weight: 600; }
.r-status {
  margin-top: 18px; padding: 12px 0; border-top: 1.5px dashed #c5ccd6; border-bottom: 1.5px dashed #c5ccd6;
  text-align: center; font-weight: 600; letter-spacing: 0.14em;
}
.r-note { margin-top: 14px; color: var(--ink-soft); }
.r-barcode {
  display: block; height: 46px; margin: 20px 4px 8px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
}
.r-thanks { font-size: 12px; color: var(--muted); }

/* Riders: hi-vis yellow next to a full-height photo */
.riders {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: max(640px, 100svh); background: var(--signal);
}
.riders-photo { position: relative; }
.riders-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.riders-copy {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
}
.riders-copy h2 { font-size: clamp(56px, 7.4vw, 128px); max-width: 6em; }
.riders-copy p { max-width: 21em; margin: clamp(24px, 3vw, 36px) 0 32px; font-size: clamp(18px, 1.5vw, 21px); color: #3a3112; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #1c2a40; }

/* Start */
.start { background: var(--ink); color: var(--on-ink); padding: clamp(112px, 14vw, 220px) 0 clamp(80px, 9vw, 140px); }

.rollout {
  display: flex; flex-wrap: wrap; gap: 12px 0; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; list-style: none;
  font-size: clamp(16px, 1.4vw, 19px); color: var(--on-ink-soft);
}
.rollout li { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 0; }
.rollout .place { display: flex; align-items: center; }
.rollout .count { grid-column: 1; grid-row: 2; padding-left: 22px; margin-top: 4px; font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.45); }
.rollout .place::before {
  content: ""; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.rollout li:not(:last-child)::after {
  content: ""; grid-column: 2; grid-row: 1; width: clamp(28px, 5vw, 72px); height: 2px; margin: 0 16px;
  background: rgba(255, 255, 255, 0.22);
}
.rollout .is-live { color: var(--on-ink); font-weight: 600; }
.rollout .is-live .place::before { border: 3px solid var(--signal); background: var(--ink); }

.signup { max-width: 720px; margin-top: clamp(48px, 6vw, 88px); }
.roles { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.roles label { position: relative; }
.roles input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.roles span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--on-ink-soft);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.roles input:checked + span { border-color: var(--on-ink); background: var(--on-ink); color: var(--ink); }
.roles input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

.signup-row { display: flex; gap: 12px; align-items: stretch; }
.signup-row input {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 2px;
  border: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.4); border-radius: 0;
  background: transparent; color: var(--on-ink);
  font: 500 clamp(20px, 2vw, 26px) var(--body);
}
.signup-row input::placeholder { color: rgba(255, 255, 255, 0.36); }
.signup-row input:focus { outline: none; border-bottom-color: var(--signal); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .btn:disabled { opacity: 0.6; cursor: wait; }
.signup-msg { min-height: 24px; margin-top: 14px; font-size: 15px; color: var(--on-ink-soft); }
.signup-msg.is-error { color: #ffa48f; }
.signup-msg.is-ok { color: var(--signal); }

/* 404: "Wrong letterbox." */
.lost-page { background: var(--ink); }
.lost {
  display: flex; align-items: flex-end; min-height: max(560px, 100svh);
  background: var(--ink); color: var(--on-ink); overflow: hidden;
}
.lost-inner { position: relative; padding-bottom: clamp(48px, 9vw, 120px); }
.lost-mark {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vw, 120px);
  width: clamp(140px, 22vw, 300px); height: auto; transform: rotate(-8deg); opacity: 0.9;
}
.lost-code { font-size: 16px; font-weight: 600; letter-spacing: 0.08em; color: var(--signal); }
.lost h1 { margin-top: 14px; font-size: clamp(56px, 10vw, 160px); line-height: 0.88; letter-spacing: -0.055em; }
.lost-text { margin: clamp(20px, 2.4vw, 32px) 0 32px; font-size: clamp(18px, 1.6vw, 22px); color: var(--on-ink-soft); }
.js .lost .flyer, .lost .flyer { animation: post 0.7s cubic-bezier(0.5, 0, 0.3, 1.4) 0.4s both; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink-soft); font-size: 14px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-sm { font-size: 20px; color: var(--on-ink); }
.footer-legal { text-align: center; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-ink); }

/* Small screens */
@media (max-width: 820px) {
  .hero-content { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-bg { object-position: 40% 50%; }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .riders { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .riders-photo { aspect-ratio: 4 / 5; max-height: 80svh; }
  .lost-mark { position: static; display: block; margin-bottom: 36px; }
}

/* Phones and narrow windows: the phone pins to the top and the steps scroll up beneath it */
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-device {
    grid-column: 1; justify-self: stretch; top: 0; z-index: 2; gap: 10px;
    margin: 0 calc(-1 * var(--gutter)); padding: 14px 0 12px; background: #fff;
  }
  .demo-steps { grid-row: 2; padding-bottom: 30svh; }
  .demo-step { min-height: 46svh; justify-content: flex-start; gap: 10px; padding-top: 28px; }
  .step-title { font-size: clamp(32px, 9vw, 52px); }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav-inner { height: 72px; }
  .nav-links { gap: 18px; }
  .brand { font-size: 23px; }
  .receipt-slot { margin: 0 -10px; }
  .receipt { padding: 30px 18px 22px; font-size: 13px; }
  .hero-side { max-width: none; width: 100%; }
  .hero-side .btn { width: 100%; justify-content: center; }
  .hero-title { font-size: 20vw; }
  .rollout { flex-direction: column; align-items: flex-start; }
  .rollout li:not(:last-child)::after { content: none; }
  .signup-row { flex-direction: column; }
  .footer-legal { order: 3; width: 100%; text-align: left; }
  .signup-row .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-bg, .js .hero-title, .js .hero-side, .js .flyer, .lost .flyer { animation: none; }
  .js .receipt, .js .receipt.is-printed { transform: none; animation: none; }
  .screen, .device-caption span { transition: none; }
}
