/*
 * dosafe.app — the public landing page.
 *
 * Self-contained like the console (no CDN, no web font, no inline style), so the
 * page runs under the same strict content security policy. Colours are the
 * console's own tokens; the cyan is the logo's.
 */
:root {
  --brand: #00b2e8;
  --brand-deep: #036c95;
  --brand-ink: #024d6b;
  --brand-soft: #e3f4fb;
  --ink: #0f1131;
  --muted: #4f5573;
  --subtle: #6b7190;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --bg-tint: #eef7fc;
  --line: #dfe5ef;
  --safe: #1f8f3a;
  --safe-soft: #e4f5e9;
  --pending: #b45a06;
  --sos: #c0321a;
  --sos-soft: #fbe6e4;
  --draft: #06b4f0;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 49, 0.06), 0 1px 3px rgba(15, 17, 49, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(15, 17, 49, 0.22), 0 18px 36px -18px rgba(15, 17, 49, 0.18);
  --shadow-phone: 0 40px 60px -24px rgba(15, 17, 49, 0.35), 0 10px 24px -12px rgba(15, 17, 49, 0.25);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
/* A phone screen's own picture fills it exactly, at its own proportions. */
.screen > img:not(.layer) { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-deep); color: #fff; box-shadow: 0 8px 20px -8px rgba(3, 108, 149, 0.6); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: #c5cede; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, box-shadow 200ms;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 17, 49, 0.4); }
.site-header__bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 550; color: var(--muted);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.site-header .btn { margin-left: 8px; }
.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(48% 50% at 78% 30%, rgba(0, 178, 232, 0.16), transparent 70%),
    radial-gradient(36% 40% at 12% 8%, rgba(3, 108, 149, 0.10), transparent 70%),
    linear-gradient(180deg, #f6fbfe 0%, #fff 80%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 4px var(--safe-soft); }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 780;
}
.hero h1 span { color: var(--brand-deep); }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--subtle); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 760; margin-top: 12px; }
.section__lead { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }

/* ---------- demo layout ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.62fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.demo--flip { grid-template-columns: minmax(0, 1.62fr) minmax(0, 0.58fr); }
.demo--flip .demo__copy { order: 2; }
.demo__copy h2 { font-size: clamp(30px, 3.2vw, 44px); }
.steps { margin-top: 26px; display: grid; gap: 4px; counter-reset: step; }
.steps li {
  position: relative; padding: 10px 12px 10px 46px; border-radius: 12px;
  color: var(--subtle); font-size: 15.5px; transition: background 300ms, color 300ms;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 10px; top: 9px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); color: var(--subtle);
  transition: background 300ms, color 300ms, border-color 300ms;
}
.steps li.is-current { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.steps li.is-current::before { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.steps li.is-done::before { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-deep); }
.demo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.replay {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.replay:hover { border-color: #c5cede; }
.replay svg { width: 16px; height: 16px; }
.truth {
  margin-top: 22px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.truth strong { color: var(--ink); }

/* ---------- the stage: a browser window and a phone ---------- */
.stage { position: relative; }
.stage--pair { padding-right: clamp(48px, 6.5vw, 110px); padding-bottom: 40px; }
.stage--pair .phone { position: absolute; right: 0; bottom: 0; width: clamp(130px, 14.5vw, 208px); }
.stage--phone { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.stage--phone .phone { width: clamp(220px, 24vw, 300px); }

.browser {
  border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(15, 17, 49, 0.08);
}
.browser__bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4dae5; }
.browser__url {
  flex: 1; max-width: 340px; margin: 0 auto; height: 22px; border-radius: 6px; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; color: var(--subtle); border: 1px solid var(--line);
}
.browser__url svg { width: 10px; height: 10px; }

.screen { position: relative; overflow: hidden; background: var(--bg-soft); }
.screen--desk { aspect-ratio: 1440 / 900; }
.screen--desk-tall { aspect-ratio: 1440 / 1080; }
.screen--phone { aspect-ratio: 440 / 956; background: #e9edf3; }
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 520ms var(--ease);
}
.layer.is-on { opacity: 1; }
.layer--fast { transition-duration: 220ms; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

.phone {
  position: relative; border-radius: clamp(26px, 3.4vw, 46px); padding: clamp(6px, 0.7vw, 9px);
  background: linear-gradient(160deg, #2a2d4a, #0f1131 60%);
  box-shadow: var(--shadow-phone);
}
.phone .screen { border-radius: clamp(20px, 2.8vw, 38px); }
.phone__label { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--subtle); }

/* The demo pointer and taps: what a person would do, not part of the product. */
.pointer {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5;
  transform: translate(-3px, -2px); opacity: 0; transition: opacity 300ms;
  pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.pointer.is-on { opacity: 1; }
.pointer.is-moving { transition: left 760ms var(--ease), top 760ms var(--ease), opacity 300ms; }
.pulse {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; z-index: 4;
  border: 2px solid var(--brand); background: rgba(0, 178, 232, 0.18);
  animation: pulse 700ms var(--ease) forwards; pointer-events: none;
}
.pulse--tap { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(15, 17, 49, 0.16); border-color: rgba(255, 255, 255, 0.9); }
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* Callouts beside the devices: what the system did. */
.callout {
  position: absolute; z-index: 6; max-width: 250px;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; border-radius: 12px; background: #fff;
  box-shadow: 0 12px 30px -10px rgba(15, 17, 49, 0.35); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.4; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.callout.is-on { opacity: 1; transform: none; }
.callout i { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--brand); }
.callout--safe i { background: var(--safe); }
.callout--sos i { background: var(--sos); }
.callout--link { left: 50%; bottom: -14px; transform: translate(-50%, 8px); }
.callout--link.is-on { transform: translate(-50%, 0); }

/* A message travelling from the console to the phone. */
.courier {
  position: absolute; z-index: 7; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 178, 232, 0.22); opacity: 0; pointer-events: none;
}
.courier svg { width: 16px; height: 16px; }

/* ---------- map overlays (SVG) ---------- */
.ov-pin circle.body { stroke: #fff; stroke-width: 2.2; }
.ov-pin text { font: 700 11px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.ov-pin--safe circle.body { fill: var(--safe); }
.ov-pin--pending circle.body { fill: var(--pending); }
.ov-pin--sos circle.body { fill: var(--sos); }
.ov-pin--offline circle.body { fill: #5c6280; }
.ov-pin { transition: opacity 400ms var(--ease); }
.ov-ring { fill: none; stroke: var(--sos); stroke-width: 2.4; transform-box: fill-box; transform-origin: center; animation: ring 1.6s var(--ease) infinite; }
.ov-ring--safe { stroke: var(--safe); }
@keyframes ring { from { opacity: 0.9; transform: scale(0.7); } to { opacity: 0; transform: scale(1.9); } }
.ov-area { transition: fill 700ms var(--ease), stroke 700ms var(--ease), fill-opacity 700ms; stroke-width: 2.2; stroke-linejoin: round; }
.ov-area--draft { fill: var(--draft); fill-opacity: 0.12; stroke: var(--draft); stroke-dasharray: 6 5; }
.ov-area--open { fill: #1f8f3a; fill-opacity: 0.3; stroke: #1f8f3a; stroke-dasharray: none; }
.ov-area--closed { fill: #c0321a; fill-opacity: 0.32; stroke: #c0321a; stroke-dasharray: none; }
.ov-handle { fill: #fff; stroke: var(--draft); stroke-width: 2.4; }
.ov-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ov-glow { fill: none; stroke: rgba(0, 178, 232, 0.35); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- counters drawn over the safety-check cards ----------
   Sized in the screen's own width (cqw), from the console's .metric styles:
   value 28px / 680, note 12px, card padding 16px 18px, at 1440 px wide. */
.screen { container-type: inline-size; }
.patch {
  position: absolute; z-index: 3; background: #fff; color: #0f1131;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.patch b { font-size: 1.944cqw; font-weight: 680; line-height: 1.15; }
.patch small { margin-top: 0.278cqw; font-size: 0.833cqw; line-height: 1.2; color: #5a6079; }
.patch--safe { left: 46.32%; top: 43.78%; width: 8.4%; height: 3.6%; }
.patch--sos { left: 63.96%; top: 43.78%; width: 8.4%; height: 3.6%; background: #fbe6e4; color: #b3261e; }
.patch--waiting { left: 81.6%; top: 43.78%; width: 14%; height: 5.9%; }

/* ---------- scenario switch ---------- */
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.switch button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- reroute: the headline demonstration ---------- */
.reroute { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.5fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.reroute__phone { position: relative; }
.reroute__phone .phone { width: 100%; max-width: 262px; margin: 0 auto; }
.reroute__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 32px; }
.reroute .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.reroute__footer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }

/* ---------- capabilities ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; border-radius: 16px; background: #fff; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 16px 18px 20px; }
.card h3 { font-size: 17px; letter-spacing: -0.01em; }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.card__media--phone { display: grid; place-items: center; background: linear-gradient(160deg, #eef7fc, #f6f8fb); }
.card__media--phone img { position: static; width: 46%; height: auto; object-fit: contain; border-radius: 14px; margin-top: 18%; box-shadow: var(--shadow-lg); }
.card:hover .card__media--phone img { transform: translateY(-6px); }

/* ---------- platform overview ---------- */
.platform { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: stretch; }
.platform .link-line { align-self: center; }
.side { padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side h3 { font-size: 22px; letter-spacing: -0.02em; }
.side p { color: var(--muted); margin-top: 6px; }
.side ul { margin-top: 18px; display: grid; gap: 10px; }
.side li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.side li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand-deep); }
.side__media { margin-top: 22px; }
.side__media .browser { box-shadow: var(--shadow-sm); }
.side__phones { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.side__phones .phone { width: 42%; max-width: 170px; }
.link-line { position: relative; width: clamp(40px, 6vw, 90px); height: 220px; }
.link-line svg { width: 100%; height: 100%; }
.link-line .dash { stroke: var(--brand); stroke-width: 2.4; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }

/* ---------- final call to action ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 72px);
  background: radial-gradient(70% 120% at 90% 0%, rgba(0, 178, 232, 0.45), transparent 60%), linear-gradient(135deg, #04527a, #0f1131);
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; margin: 0 auto; max-width: 18em; }
.cta p { margin: 16px auto 0; max-width: 34em; color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.cta .hero__actions { justify-content: center; }
.cta .btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.cta .btn--primary { background: #fff; color: var(--brand-ink); }
.contact-line { margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.contact-line a { color: #fff; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 120px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__about p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 26em; }
.footer__col h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.footer__col ul { margin-top: 12px; display: grid; gap: 8px; }
.footer__col a { text-decoration: none; color: var(--ink); font-size: 15px; }
.footer__col a:hover { color: var(--brand-deep); text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--subtle); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav, .site-header__bar > .btn { display: none; }
  .menu-toggle { display: grid; }
  .site-header.is-open .nav {
    display: grid; position: absolute; left: 0; right: 0; top: 68px; padding: 12px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 17, 49, 0.3);
  }
  .site-header.is-open .nav a { padding: 12px 14px; font-size: 16px; }
  .site-header.is-open .nav .nav__login { display: block; margin-top: 6px; text-align: center; background: var(--brand-deep); color: #fff; }
  .hero__grid, .demo, .demo--flip, .reroute, .reroute__head, .reroute__footer { grid-template-columns: minmax(0, 1fr); }
  .demo--flip .demo__copy { order: 0; }
  .platform { grid-template-columns: minmax(0, 1fr); }
  .link-line { height: 60px; width: 100%; }
  .link-line svg { transform: rotate(90deg) scale(0.3, 3); }
  .reroute .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) { .nav .nav__login { display: none; } }
@media (max-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Desktop and phone one after the other, each at a readable size. */
  .stage--pair { padding: 0; display: grid; gap: 20px; justify-items: center; }
  .stage--pair .phone { position: relative; width: min(62%, 260px); }
  .stage--phone .phone + .phone { display: none; }
  .stage--phone .phone { width: min(72%, 300px); }
  .callout { max-width: 220px; font-size: 12.5px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 38px; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
}

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

/* ---------- callout positions (no inline styles under the page's CSP) ---------- */
.at-hero-a { left: 2%; top: 8%; }
.at-hero-b { left: 6%; bottom: 10%; }
.at-phone-left { right: clamp(70px, 10vw, 170px); bottom: 34%; }
.at-phone-top { left: 50%; top: -18px; transform: translate(-50%, 8px); min-width: 230px; }
.at-phone-top.is-on { transform: translate(-50%, 0); }
.at-desk-top { left: 3%; top: 10%; }
.at-desk-top-right { right: clamp(70px, 10vw, 170px); top: 2%; }
.at-desk-bottom { left: 50%; bottom: -12px; transform: translate(-50%, 8px); }
.at-desk-bottom.is-on { transform: translate(-50%, 0); }
@media (max-width: 720px) {
  .at-hero-a, .at-hero-b, .at-desk-top, .at-desk-top-right, .at-phone-left { left: 50%; right: auto; top: auto; bottom: auto; transform: translate(-50%, 8px); }
  .at-hero-a.is-on, .at-hero-b.is-on, .at-desk-top.is-on, .at-desk-top-right.is-on, .at-phone-left.is-on { transform: translate(-50%, 0); }
  .stage .callout { position: relative; margin: 4px auto 0; }
}

/* The iOS notification banner, laid out as iOS draws it (from the device
   captures: 422 pt wide, 24 pt corners, 38 pt icon, 15 pt text), over the real
   app screen. Sized in the phone screen's own width (cqw). */
.ios-banner {
  position: absolute; z-index: 4; left: 2.05cqw; right: 2.05cqw; top: 13cqw;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2.7cqw; align-items: center;
  padding: 3.2cqw 3.6cqw; border-radius: 5.45cqw;
  background: rgba(246, 247, 250, 0.82); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 2cqw 6cqw rgba(15, 17, 49, 0.22);
  color: #0f1131; font-size: 3.4cqw; line-height: 1.3;
  opacity: 0; transform: translateY(-30cqw); transition: transform 520ms cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 300ms;
}
.ios-banner.is-on { opacity: 1; transform: none; }
.ios-banner img { width: 8.6cqw; height: 8.6cqw; border-radius: 2cqw; }
.ios-banner b { display: block; font-weight: 650; }
.ios-banner span { display: block; color: #2a2d45; }
.ios-banner small { align-self: start; font-size: 2.9cqw; color: #6b7190; }

/* The wiki card: the console's articles, and the same articles in the app. */
.card__media--combo img.card__phone {
  position: absolute; z-index: 1; right: 6%; bottom: -34%; width: 30%; height: auto; object-fit: contain;
  border-radius: 10px; border: 3px solid #0f1131; box-shadow: var(--shadow-lg);
}

/* A typed field's caret: blinks when idle, solid while typing. */
.ov-caret { animation: caret 1s steps(1) infinite; }
.ov-caret.is-typing { animation: none; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- the navigation view: the app's own map moving under its marker ---------- */
/* Navigation drive: the app's route map moves under the app's marker; the app's own navigation panels
   (instruction, trip card, buttons) sit on top with the map area cut out. Positions are set from script. */
.navcam { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.navcam::before { content: ""; position: absolute; inset: 0; background: #ecebe9; opacity: 0; transition: opacity 400ms var(--ease); }
.navcam.is-driving::before { opacity: 1; }
.navcam__map { position: absolute; left: 0; top: 0; width: 200%; max-width: none; height: auto; transform-origin: 0 0; opacity: 0; transition: opacity 400ms var(--ease); will-change: transform; }
.navcam.is-driving .navcam__map { opacity: 1; }
.navcam__puck { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity 300ms var(--ease); }
.navcam.has-puck .navcam__puck { opacity: 1; }
.navcam__puck::before {
  content: ""; position: absolute; left: -6.74cqw; top: -6.74cqw; width: 13.48cqw; height: 13.48cqw; border-radius: 50%;
  background: rgba(6, 180, 239, 0.32); box-shadow: inset 0 0 0 0.3cqw rgba(3, 120, 170, 0.45);
}
.navcam__puck img { position: absolute; left: -5.45cqw; top: -5.45cqw; width: 10.9cqw; height: 10.9cqw; max-width: none; border-radius: 50%; will-change: transform; }
.navcam__chrome { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 260ms var(--ease); filter: drop-shadow(0 0.2cqw 0.6cqw rgba(15, 17, 49, 0.22)); }
.navcam__chrome.is-on { opacity: 1; }
.navcam__chrome.is-top { z-index: 1; }
.navcam__chrome:not(.is-top) { transition: none; }
