:root {
  --bg: #EEEEF0;
  --ink: #191919;
  --muted: #77777C;
  --line: rgba(25, 25, 25, 0.1);
  --card: #F7F7F8;
  --radius: 28px;
  --gutter: clamp(16px, 5vw, 64px);
  --track: -0.02em;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* visible gap between description and product: matches the title -> description gap */
  --copy-gap: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
h1, h2, p, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type */
.display {
  font-size: clamp(2.35rem, 6.4vw, 6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}
.headline {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.muted-dark { color: var(--muted); }
.lead {
  margin-top: 24px;
  max-width: 30ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  color: var(--muted);
}
.aside {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--muted);
}
.fine { font-size: 0.8125rem; color: var(--muted); text-align: center; letter-spacing: -0.01em; }
.fine-left { text-align: left; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 500;
  transition: transform .2s var(--ease), background-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 1.0625rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- top bar */
/* no bar: the logo and the waitlist button float on their own, close to the edges */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) clamp(16px, 2.2vw, 32px) 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand img { width: 50px; height: auto; }

/* ---------- sections */
main > section { padding: clamp(96px, 14vw, 180px) var(--gutter); }

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(140px, 22vh, 220px) !important;
  padding-bottom: clamp(40px, 6vh, 80px) !important;
}
.hero-shot { width: min(100%, 1320px); }
.hero-shot img { width: 100%; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1280px; margin: 0 auto;
}
.split-reverse .copy { order: 2; }
.split .media img { width: min(100%, 560px); margin: 0 auto; }

.center-block { display: flex; flex-direction: column; align-items: center; text-align: center; }
.center-block .lead, .copy-center .lead { margin-left: auto; margin-right: auto; }
.copy-center { text-align: center; }
.media-wide { width: min(100%, 920px); margin: clamp(24px, 4vw, 48px) 0 20px; }
.media-wide img { width: 100%; }

/* the render carries ~10% (of its width) of empty space above the band: pull it up to the copy */
.media-wide.led-shot { width: min(100%, 670px); margin: calc(var(--copy-gap) + 48px - 0.1016 * min(670px, 100vw - 2 * var(--gutter))) 0 0; }
/* status LED: the lit render fades in and out over the unlit one, slowly */
.led-shot { position: relative; }
.led-shot .led-on { position: absolute; inset: 0; opacity: 0; animation: led-breathe 3.6s ease-in-out infinite; }
@keyframes led-breathe {
  0%, 100% { opacity: 0; }
  45%, 60% { opacity: 1; }
}

/* ---------- phone mockup */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: min(100%, 320px);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 48px;
  background: #1c1c1d;
  box-shadow: 0 40px 80px -30px rgba(25,25,25,.35), 0 10px 30px -12px rgba(25,25,25,.25), inset 0 0 0 1.5px #3a3a3c;
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 39px; background: #F4F4F2;
  display: flex; flex-direction: column;
}
.app-status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.app-status-icons { display: flex; gap: 4px; align-items: center; }
.app-status-icons i { width: 14px; height: 8px; border-radius: 2px; background: var(--ink); opacity: .85; }
.app-status-icons i:first-child { width: 10px; }
.app-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 10px; position: relative; z-index: 2; }
.app-title { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.app-chip { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--muted); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.app-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-map .pin text { font: 600 11px var(--font); fill: #fff; }
.app-sheet {
  position: relative; z-index: 2; margin-top: auto;
  background: rgba(255,255,255,.96);
  border-radius: 26px 26px 0 0;
  padding: 8px 16px 20px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.sheet-grip { width: 36px; height: 4px; border-radius: 4px; background: #D6D6DA; margin: 0 auto 10px; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #F0F0F2; font-size: 13px; letter-spacing: -0.01em; }
.people li:first-child { border-top: 0; }
.people .dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 600; font-size: 12px; }
.people div { display: flex; flex-direction: column; line-height: 1.2; }
.people small { color: var(--muted); font-size: 11.5px; }
.people em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11px; }

/* ---------- colors */
.colors { display: flex; flex-direction: column; align-items: center; }
.color-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1600 / 1800;
  /* the render has ~10% empty space above the band and ~17% soft shadow below: tuck both in */
  margin: calc(var(--copy-gap) + 48px - 0.116 * min(560px, 100vw - 2 * var(--gutter))) 0 calc(-0.19 * min(560px, 100vw - 2 * var(--gutter)));
}
.color-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .3s var(--ease);
}
.color-stage img.is-front { opacity: 1; }
/* sits over the stage's shadow area, so it must stack above the images to stay clickable */
.picker { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.color-stage { pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
/* 44px touch target, 28px flat dot */
.swatch {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.swatch::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.swatch:hover::before { transform: scale(1.08); }
.swatch[aria-checked="true"]::before {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink);
}
.color-name { font-size: 0.9375rem; color: var(--muted); min-height: 1.5em; }

/* ---------- closing */
.closing { display: flex; flex-direction: column; align-items: center; gap: 40px; min-height: 80svh; justify-content: center; }

/* ---------- modal: white card on desktop, full white screen on phones */
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  border: 0; border-radius: 28px; padding: 40px 36px 32px;
  background: #fff; color: var(--ink); overflow-y: auto;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.35);
}
.modal::backdrop { background: rgba(25,25,25,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close-form { position: absolute; top: 14px; right: 14px; }
.modal-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; color: var(--ink); }
.modal-x:hover { background: #E4E4E7; }
.modal h2 { margin-top: 4px; font-size: clamp(1.75rem, 4vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.modal-sub { margin-top: 10px; color: var(--muted); max-width: 38ch; }
.wl-form { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.wl-reasons { margin-top: 12px; }
.wl-field { display: flex; flex-direction: column; gap: 8px; }
.wl-field label, .wl-field legend { font-size: .875rem; font-weight: 500; padding: 0; }
.wl-field legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; }
.wl-field legend span { color: var(--muted); font-weight: 400; }
.wl-form input[type="text"], .wl-form input[type="email"] {
  height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid transparent; background: var(--bg);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.wl-form input:focus { outline: none; border-color: var(--ink); background: #fff; }
.wl-form input[aria-invalid="true"] { border-color: #B3261E; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .875rem; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: rgba(25,25,25,.3); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.wl-reasons.is-invalid .chip span { border-color: rgba(179,38,30,.5); }
.wl-other { margin-top: 10px; }
.wl-submit { height: 54px; margin-top: 6px; font-size: 1rem; }
.wl-msg { font-size: .875rem; color: var(--muted); min-height: 1.2em; margin: 0; }
.wl-msg:empty { display: none; }
.wl-msg.is-error { color: #B3261E; }
.wl-msg.is-demo { padding: 12px 14px; border-radius: 14px; background: var(--bg); color: var(--ink); }
.wl-done .wl-submit { width: 100%; margin-top: 28px; }
@media (max-width: 700px) {
  .modal {
    width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0;
    border-radius: 0; padding: max(64px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    box-shadow: none;
  }
  .modal::backdrop { background: #fff; }
  .modal[open] { animation: slide-up .35s var(--ease); }
  .modal-close-form { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; }
  /* the submit button stays docked at the bottom of the screen */
  .wl-form { padding-bottom: 96px; }
  .wl-form .wl-submit {
    position: fixed; left: 20px; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0; z-index: 2;
    box-shadow: 0 -16px 24px 8px #fff;
  }
  .wl-form .wl-msg { position: fixed; left: 20px; right: 20px; bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); z-index: 2; background: #fff; padding: 8px 0; }
  .wl-form .wl-msg.is-demo { background: var(--bg); padding: 12px 14px; }
}
@keyframes slide-up { from { opacity: 0; transform: translateY(24px); } }

/* ---------- reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; text-align: center; }
  .split .copy, .split-reverse .copy { order: 0; }
  .split .lead, .split .aside { margin-left: auto; margin-right: auto; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: 104px !important; }
  .hero-shot { width: min(100%, 460px); }
  .split .media img { width: min(100%, 380px); }
  .closing { min-height: 0; gap: 32px; }
  .display { font-size: clamp(2.1rem, 9.6vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .led-shot .led-on { animation: none; opacity: 1; }
}

/* ---------- hero + simplicity (photo renders) */
.hero-title { font-size: clamp(2rem, 4.6vw, 4.25rem); line-height: 1.04; }
/* renders carry empty space above the product: tuck it under the copy */
.hero { gap: 0; }
.hero-shot { width: min(100%, 560px); margin-top: calc(var(--copy-gap) + 48px - 0.127 * min(560px, 100vw - 2 * var(--gutter))); }
.hero-shot img { width: 100%; }

/* band fills ~73% of the frame: 690px keeps it ~500px wide, like the battery band */
.simple-shot { width: min(100%, 690px); margin-top: calc(var(--copy-gap) + 48px - 0.1058 * min(690px, 100vw - 2 * var(--gutter))); }
.simple-shot img { width: 100%; }
@media (max-width: 700px) {
  .hero-title { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
}

/* two-line description under a display heading */
.lead-wide { max-width: 50ch; text-wrap: balance; }

/* ---------- app concept (centered, live map) */
.app-block .phone-wrap { margin-top: calc(var(--copy-gap) + 48px); }
.app-block .phone-wrap { width: min(100%, 340px); }
.app-block .phone { width: 100%; }
.app-map-live { position: absolute; inset: 0; z-index: 1; background: transparent; }
.app-head, .app-sheet, .app-status { position: relative; z-index: 2; }
.has-live-map .app-map { visibility: hidden; }
.app-map-live .leaflet-control-attribution {
  font: 8px/1.3 var(--font); letter-spacing: 0; background: rgba(255,255,255,.7);
  margin: 0 8px 236px 0; padding: 1px 5px; border-radius: 4px; color: var(--muted);
}
.app-map-live .leaflet-control-attribution a { color: inherit; }
.app-chip { display: inline-flex; align-items: center; gap: 6px; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.45);
  animation: live-dot 2s ease-out infinite;
}
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 100% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.people em { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.people em .live { display: inline-flex; align-items: center; gap: 5px; color: #15803D; font-weight: 500; font-size: 11px; }
.people em small { font-size: 10.5px; }
/* pins: coloured avatar with a slow pulse ring */
.live-pin { position: relative; display: grid; place-items: center; width: 34px; height: 34px; }
.live-pin b {
  position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--c); color: #fff; font: 600 11px var(--font); letter-spacing: 0;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.18);
}
.live-pin i {
  position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: .35;
  animation: pin-pulse 2.4s ease-out infinite; animation-delay: var(--d, 0s);
}
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .live-pin i, .live-dot { animation: none; }
}
/* calm, monochrome city map so the coloured pins carry the attention */
.app-map-live .leaflet-tile-pane { filter: saturate(.45) contrast(.88) brightness(1.06); }
.phone-screen { text-align: left; }

/* phones: logo stays top-left, the waitlist button docks at the bottom of the screen */
@media (max-width: 700px) {
  .topbar .btn {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    translate: -50% 0;
    width: min(calc(100% - 32px), 360px); height: 52px; font-size: 1rem;
    box-shadow: 0 10px 30px -8px rgba(25,25,25,.45);
  }
  main { padding-bottom: 84px; } /* room so the docked button never covers the last content */
}
.app-map-live { background: #F4F4F2; opacity: 0; transition: opacity .6s var(--ease); }
.app-map-live.is-ready { opacity: 1; }
.gm-pin { position: absolute; transform: translate(-50%, -50%); }
/* notification card floating over the map */
.app-alert {
  position: absolute; z-index: 3; top: 16px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 20px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.06);
  font-size: 12.5px; letter-spacing: -0.01em; line-height: 1.25;
}
.app-alert .dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 600; font-size: 12px; }
.app-alert div { display: flex; flex-direction: column; }
.app-alert small { color: var(--muted); font-size: 11.5px; }
.app-alert em { margin-left: auto; align-self: flex-start; font-style: normal; color: var(--muted); font-size: 11px; }
/* closing: the whole range standing in a row; its frame has ~8.6% (of width) empty above the bands */
.family-row { width: min(100%, 1180px); margin-top: calc(var(--copy-gap) + 8px - 0.086 * min(1180px, 100vw - 2 * var(--gutter))); }
.family-row img { width: 100%; }
/* Google map embed, cropped: the top strip hides under the alert, the bottom ends at the sheet */
.gmap {
  /* wider than the screen: the embed's satellite thumbnail and pan control fall outside,
     while the Google logo and "Map data" credit (centred) stay visible */
  position: absolute; left: -72px; right: -72px; top: calc(-1 * var(--crop, 0px));
  height: calc(var(--map-h, 60%) + var(--crop, 0px)); overflow: hidden;
}
.gmap iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.gmap-layer { position: absolute; inset: 0; pointer-events: none; }
.gmap-zone {
  position: absolute; transform: translate(-50%, -50%); border-radius: 50%;
  border: 2px solid #7FC9EE; background: rgba(127, 201, 238, .16);
}

/* iPhone chrome over the map: status bar + Dynamic Island */
.ios-status {
  position: absolute; z-index: 4; inset: 0 0 auto 0; height: 46px;
  background: linear-gradient(rgba(244,244,242,.96) 55%, rgba(244,244,242,0));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px 0 30px;
  color: #111; pointer-events: none;
}
.ios-time { font: 600 14px/1 var(--font); letter-spacing: -0.01em; }
.ios-island { width: 92px; height: 27px; border-radius: 999px; background: #0b0b0c; margin-top: 2px; }
.ios-icons { justify-self: end; display: flex; align-items: center; gap: 5px; }
.ios-icons svg { fill: currentColor; }
.app-alert { top: 54px; }
.app-block .phone { padding: 9px; border-radius: 52px; background: #0f0f10; box-shadow: 0 40px 80px -30px rgba(25,25,25,.4), 0 10px 30px -12px rgba(25,25,25,.25), inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 3px #1c1c1d; }
.app-block .phone-screen { border-radius: 44px; }
@media (max-width: 700px) {
  .app-block .phone-wrap { width: min(100%, 290px); }
}
@media (max-width: 700px) {
  .ios-status { height: 38px; padding: 0 18px 0 24px; }
  .ios-time { font-size: 12px; }
  .ios-island { width: 70px; height: 21px; }
  .ios-icons { gap: 3px; transform: scale(.82); transform-origin: right center; }
  .app-alert { top: 44px; }
}
