/* ==========================================================================
   Marshal Maps: landing page
   Tokens follow MARSHAL_MAPS_LANDING_HANDOFF.md §3
   ========================================================================== */

:root {
  /* Brand */
  --brand: #FF6A00;          /* main orange: buttons, pins, accents */
  --brand-hover: #FF8533;
  --on-brand: #0F172B;       /* navy text on orange = 6.2:1 (white on orange fails AA) */
  --navy: #0F172B;           /* alt dark background */
  --navy-2: #16213A;
  --navy-3: #0A1020;

  /* Light theme (default) */
  --bg: #F8FAFC;             /* main alt background */
  --surface: #FFFFFF;
  --surface-muted: #F1F5F9;
  --surface-sunken: #F1F5F9;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --ink: #0F172B;
  --ink-muted: #475569;      /* 7.2:1 on --bg */
  --action: #C2410C;         /* orange for small text/borders on light (5:1) */
  --eyebrow: #C2410C;
  --accent-ico: #EA580C;
  --focus: #0F172B;

  --status-in: #15803D;
  --status-route: #B45309;
  --status-none: #64748B;
  --select-bg: #FFF4EC;
  --select-line: #FFC9A3;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --header-h: 72px;
  --gutter: 20px;
  --maxw: 1200px;
  --section-y: 40px;

  --r-input: 10px;
  --r-card: 16px;
  --r-panel: 28px;
  --r-window: 20px;
  --shadow-window: 0 50px 100px -30px rgba(3, 7, 18, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-float: 0 16px 32px -12px rgba(15, 23, 43, .28);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* Theme scopes: any element can switch palette; children inherit */
.theme-light {
  --bg: #F8FAFC; --surface: #FFFFFF; --surface-muted: #F1F5F9; --surface-sunken: #F1F5F9;
  --line: #E2E8F0; --line-strong: #CBD5E1; --ink: #0F172B; --ink-muted: #475569;
  --action: #C2410C; --eyebrow: #C2410C; --accent-ico: #EA580C; --focus: #0F172B;
  color: var(--ink);
}
.theme-dark {
  --bg: #0F172B; --surface: #16213A; --surface-muted: #1B2742; --surface-sunken: #1B2742;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
  --ink: #FFFFFF; --ink-muted: #CBD5E1; --action: #FF6A00; --eyebrow: #FF6A00; --accent-ico: #FF6A00; --focus: #FF6A00;
  color: var(--ink);
}
.theme-orange {
  --bg: #FF6A00; --ink: #0F172B; --ink-muted: #0F172B; --line: rgba(15, 23, 43, .2); --line-strong: rgba(15, 23, 43, .3);
  --action: #0F172B; --eyebrow: #0F172B; --accent-ico: #0F172B; --focus: #0F172B;
  color: var(--ink);
}

@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --section-y: 96px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

section[id], main [id] { scroll-margin-top: var(--header-h); }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }

/* Visible TODO marker for values awaiting client confirmation (§5, §11). */
.todo {
  display: inline-block; padding: 0 .4em; border-radius: 6px;
  border: 1px dashed #BDB8AE; background: rgba(255, 255, 255, .6);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; font-weight: 500;
  color: var(--ink-muted); letter-spacing: 0;
}
.theme-dark .todo { background: rgba(255,255,255,.04); color: var(--ink-muted); border-color: rgba(255,255,255,.3); }

/* ---------- Type ---------- */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
.h1 { font-size: clamp(42px, 29.4px + 3.24vw, 76px); line-height: 1.03; letter-spacing: -.03em; }
.h2 { font-size: clamp(32px, 24.6px + 1.9vw, 52px); line-height: 1.06; letter-spacing: -.02em; }
.h3 { font-size: clamp(28px, 23.5px + 1.14vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 15.9px + .29vw, 20px); line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.body { font-size: clamp(15px, 14.6px + .1vw, 17px); color: var(--ink-muted); text-wrap: pretty; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--eyebrow);
}
@media (min-width: 768px) { .eyebrow { font-size: 14px; } }
.micro { font-size: 13px; color: var(--ink-muted); }
@media (min-width: 768px) { .micro { font-size: 14px; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn-lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { --h: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -10px rgba(255, 106, 0, .75); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 32px -12px rgba(255, 106, 0, .9); }
.btn-primary:active { transform: translateY(0); }
.btn-primary .arrow { transition: transform .2s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); font-weight: 500; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--action); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(246, 245, 242, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(15, 23, 43, .5); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
}
.logo { white-space: nowrap; }
@media (max-width: 389px) { .logo { font-size: 18px; gap: 8px; } .logo-mark { width: 32px; height: 32px; } .header .btn-sm { padding: 0 14px; } }
@media (max-width: 359px) { .header-in { gap: 8px; } .logo { font-size: 16px; gap: 6px; } .menu-btn { margin-left: 2px; } .header .btn-sm { padding: 0 12px; } }
@media (max-width: 479px) { .pill { font-size: 13px; } }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  clip-path: circle(49.5%);
}
.nav { display: none; }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.login { display: none; padding: 0 14px; min-height: 44px; align-items: center; font-size: 15px; font-weight: 500; text-decoration: none; }
.login:hover { color: var(--action); }
.cta-long { display: none; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; margin-left: 6px;
}
@media (min-width: 768px) { .cta-long { display: inline; } .cta-short { display: none; } }
@media (min-width: 960px) {
  .nav { display: block; }
  .login { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Scroll progress: the route you've "run" down the page */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--brand); transform-origin: left; transform: scaleX(var(--scroll, 0));
}

/* Mobile menu */
.menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  box-shadow: 0 30px 40px -30px rgba(15, 23, 43, .4);
  transform-origin: top; animation: menu-in .2s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu a:not(.btn) {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 22px; font-weight: 600; text-decoration: none;
}
.menu .btn { margin-top: 20px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(28px, 3.3vw, 48px); isolation: isolate; }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero .h1 { max-width: 920px; }
.hero .lead { max-width: 640px; }
.hero .lead-sub { margin-top: -12px; max-width: 600px; font-size: clamp(15px, 14.4px + .17vw, 17px); }
.pill {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; text-decoration: none;
  transition: border-color .15s, transform .2s var(--ease-out);
}
.pill:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-in); box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); animation: ping 2.4s infinite; }
.pill .more { color: var(--ink-muted); }
.pill:hover .more { color: var(--action); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); } }

/* Hand-drawn route underline under "right place" */
.hl { position: relative; white-space: nowrap; }
.hl svg { position: absolute; left: -2%; width: 104%; bottom: -.14em; height: .32em; overflow: visible; }
.hl path { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hl path { stroke-dashoffset: 1; animation: draw 0.9s .35s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.cta-row { display: none; gap: 12px; margin-top: 6px; }
.hero .micro { display: none; }
@media (min-width: 768px) {
  .cta-row { display: flex; flex-wrap: wrap; justify-content: center; }
  .hero .micro { display: block; }
}

/* QR popover */
.qr-wrap { position: relative; }
.qr-pop {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 30; width: 280px;
  transform: translateX(-50%);
  padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float); text-align: center;
  animation: pop-in .18s var(--ease-out);
}
.qr-pop[hidden] { display: none; }
.qr-pop::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: var(--surface);
  border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); transform: translateX(-50%) rotate(45deg);
}
.qr-code { width: 188px; height: 188px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface-sunken); border-radius: 12px; }
.qr-code svg { width: 100%; height: 100%; }
.qr-pop p { font-size: 14px; color: var(--ink-muted); }
.qr-pop a { font-size: 13px; font-weight: 700; word-break: break-all; }
.qr-close { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; color: var(--ink-muted); }
.qr-close:hover { color: var(--ink); }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -4px) scale(.98); } }

/* ---------- Demo / product window ---------- */
.demo { padding-bottom: 8px; }
.demo-stage { perspective: 1800px; }
.app {
  --p: 1;
  position: relative; display: flex; flex-direction: column;
  height: 500px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-window); overflow: hidden; box-shadow: var(--shadow-window);
  transform-origin: 50% 0;
  will-change: transform;
}
@media (min-width: 768px) { .app { height: 600px; } }
@media (min-width: 1200px) { .app { height: 680px; } }
.js .app.tilt {
  transform:
    translateY(calc((1 - var(--p)) * 40px))
    rotateX(calc((1 - var(--p)) * 9deg))
    scale(calc(.95 + var(--p) * .05));
}

/* top bar: logo, event name and date, like the real app */
.app-bar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface);
}
@media (min-width: 768px) { .app-bar { min-height: 64px; padding: 0 20px; } }
.app-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-logo { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.app-title strong { font-family: var(--font-display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 419px) { .app-bar { gap: 8px; padding: 10px 12px; } .app-logo { width: 28px; height: 28px; } .app-title strong { font-size: 15px; } .ci-word { display: none; } }
@media (min-width: 768px) { .app-title strong { font-size: 20px; } }
.app-date { display: none; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
@media (min-width: 900px) { .app-date { display: inline; } }

.app-status { display: flex; align-items: center; gap: 16px; }
.live-count { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.live-count b { color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--status-in); font-weight: 700; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ping 2s infinite; }
.app-dash { display: none; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--ink); }
.app-dash:hover { color: var(--action); }
@media (min-width: 1024px) { .app-dash { display: inline-flex; } }

.app-body { flex: 1; display: flex; min-height: 0; }

/* orange menu rail */
.app-rail { display: none; flex-direction: column; flex-shrink: 0; width: 64px; background: var(--brand); padding: 6px 0; overflow-y: auto; scrollbar-width: none; }
@media (min-width: 768px) { .app-rail { display: flex; } }
@media (min-width: 1024px) { .app-rail { width: 84px; } }
.rail-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 64px; padding: 8px 4px; border: 0; background: transparent; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; transition: background-color .15s, color .15s;
}
.rail-btn span { display: none; }
@media (min-width: 1024px) { .rail-btn span { display: block; } }
.rail-btn:hover { background: rgba(255, 255, 255, .14); }
.rail-btn[aria-pressed="true"] { background: #fff; color: var(--action); }
.rail-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.rail-btn[aria-pressed="true"]:focus-visible { outline-color: var(--brand); }
.rail-gap { flex: 1; min-height: 8px; }

/* marshals panel */
.app-side { display: none; flex-direction: column; min-height: 0; width: 280px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .app-side { display: flex; } }
@media (min-width: 1200px) { .app-side { width: 340px; } }
.view-info .app-side { display: none; }
.side-head { padding: 16px 16px 12px; }
.side-head h2 { font-family: var(--font-display); font-size: 20px; line-height: 1.2; }
.side-head p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px; }
.side-tabs button { min-height: 36px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink); }
.side-tabs button.on { background: var(--brand); color: var(--on-brand); }
.side-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 0; }
.side-tools button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700;
}
.side-tools button:hover { border-color: var(--ink); }
.side-search { padding: 12px 16px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .2); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; }
.search input::placeholder { color: #8A857C; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.side-list { flex: 1; overflow-y: auto; padding: 0 12px 8px; overscroll-behavior: contain; scrollbar-width: thin; }
.mcard {
  display: flex; align-items: center; gap: 6px; padding-right: 8px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.mcard[hidden] { display: none; }
.mcard:hover { border-color: var(--line-strong); box-shadow: 0 2px 6px -2px rgba(15, 23, 43, .12); }
.mcard:has(.row[aria-current="true"]) { border-color: var(--select-line); background: var(--select-bg); }
.row {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 64px; padding: 8px 4px 8px 10px;
  border: 0; border-radius: 8px; background: transparent; text-align: left;
}
.lpin { position: relative; width: 26px; height: 34px; flex-shrink: 0; }
.lpin svg { width: 26px; height: 34px; overflow: visible; filter: drop-shadow(0 1px 1px rgba(15, 23, 43, .25)); }
.lpin path { fill: var(--c); stroke: #fff; stroke-width: 2; transition: fill .3s; }
.lpin span { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-size: 11px; font-weight: 700; color: #fff; line-height: 14px; }
.who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.who b { font-size: 15px; }
.who span { font-size: 13px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-acts { display: flex; gap: 6px; flex-shrink: 0; }
.act { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; transition: filter .15s, transform .15s; }
.act:hover { filter: brightness(.92); transform: translateY(-1px); }
.act-call { background: #38BDF8; }
.act-chat { background: #22C55E; }
.act-edit { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
@media (max-width: 1199px) { .act-edit { display: none; } }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.side-foot span { display: inline-flex; align-items: center; gap: 8px; }
.side-foot button { border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--action); }
.num {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.st i, .dot-s { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--c, var(--status-none)); }
.s-in { --c: var(--status-in); }
.s-route { --c: var(--status-route); }
.s-none { --c: var(--status-none); }
/* in the app, anyone not yet checked in shows as an orange pin */
.app .s-route, .app .s-none { --c: #F26B1D; }
.app .s-in { --c: #1F9D55; }
.empty { padding: 24px 12px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.mcard:has(.row.flash) { animation: flash 1.2s var(--ease-out); }
@keyframes flash { 0%, 30% { background: #E8F5EC; } }

/* main area */
.app-main { position: relative; flex: 1; min-width: 0; }
.view { position: absolute; inset: 0; }
.view[hidden] { display: none; }
.map-view { background: #E8EDF2; overflow: hidden; }
.map { position: absolute; inset: 0; z-index: 0; }
.map:focus-visible { outline-offset: -3px; }

/* SVG fallback / skeleton shown until Leaflet is ready */
.fallback { position: absolute; inset: 0; transition: opacity .3s; }
.fallback.gone { opacity: 0; pointer-events: none; }
.fallback svg { width: 100%; height: 100%; }
.fb-pins { position: absolute; inset: 0; }
.fb-pins .pin { position: absolute; transform: translate(-50%, -100%); }

/* Leaflet overrides */
.leaflet-container { font-family: var(--font-body); background: #E8EDF2; }
.leaflet-tile-pane { filter: saturate(.6) brightness(1.03) contrast(.95); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75) !important; border-top-left-radius: 6px; }
.leaflet-control-attribution a { color: var(--ink-muted); }
.leaflet-marker-icon.pin-wrap { background: none; border: 0; }
.mm-route { stroke-dasharray: var(--len, none); stroke-dashoffset: var(--len, 0); }
.mm-route.drawn { transition: stroke-dashoffset 1.6s var(--ease-out); stroke-dashoffset: 0; }

/* pins */
.pin {
  position: relative; width: 34px; height: 44px; padding: 0; border: 0; background: transparent;
  pointer-events: auto; transition: opacity .2s, transform .2s var(--ease-out);
  filter: drop-shadow(0 3px 3px rgba(15, 23, 43, .25));
}
.pin svg { width: 34px; height: 44px; overflow: visible; }
.pin path { fill: var(--c); stroke: #fff; stroke-width: 2; transition: stroke .15s, stroke-width .15s; }
.pin span {
  position: absolute; left: 0; right: 0; top: 8px; text-align: center;
  font-size: 13px; font-weight: 700; color: #fff; line-height: 18px; pointer-events: none;
}
.pin:hover { transform: translateY(-2px); }
.pin[aria-pressed="true"] path { stroke: var(--ink); stroke-width: 3; }
.pin[aria-pressed="true"] { transform: scale(1.12); transform-origin: 50% 100%; }
.pin.dim { opacity: .25; }
.pin:focus-visible { outline-offset: 0; }
.pin.pulse::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 16px; height: 8px; margin-left: -8px;
  border-radius: 50%; border: 2px solid var(--status-in); animation: ripple 1.2s 2 var(--ease-out);
}
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.js .pin.drop { animation: drop .42s var(--ease-spring) backwards; animation-delay: calc(var(--i, 0) * 45ms + 500ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-18px); } }

.fac {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; box-shadow: 0 2px 4px rgba(15,23,43,.18);
}
.flag {
  position: absolute; left: 0; top: 0;
  padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 2px 4px rgba(15,23,43,.2); display: inline-block;
}
.flag-start { transform: translate(-50%, calc(-100% - 8px)); }
.flag-finish { transform: translate(12px, -50%); }

/* popover */
.pop {
  position: absolute; left: 0; top: 0; z-index: 500; width: 264px;
  padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float); display: none; flex-direction: column; gap: 10px;
  transition: opacity .15s;
}
@media (min-width: 768px) { .pop { display: flex; } }
.pop.hide { opacity: 0; pointer-events: none; }
.pop-head { display: flex; flex-direction: column; gap: 2px; }
.pop-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.pop-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; }
.pop-loc { font-size: 14px; color: var(--ink-muted); }
.pop-st { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.pop-st .dot-s { width: 10px; height: 10px; }
.pop-actions { display: flex; gap: 8px; }
.pop-actions button, .sheet-actions button {
  flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, background-color .15s;
}
.pop-actions button:hover, .sheet-actions button:hover { border-color: var(--ink); }
.pop.enter { animation: pop-up .18s var(--ease-out); }
@keyframes pop-up { from { opacity: 0; translate: 0 6px; } }

/* map controls, hint, legend */
.map-ctrls { position: absolute; right: 14px; bottom: 28px; z-index: 450; display: flex; flex-direction: column; gap: 10px; }
.ctrl {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(15, 23, 43, .35); transition: background-color .15s;
}
.ctrl:hover { background: var(--bg); }
.ctrl[aria-pressed="false"] { color: var(--ink-muted); }
.ctrl[aria-pressed="false"] svg { opacity: .5; }
@media (max-width: 767px) { .map-ctrls { bottom: auto; top: 12px; right: 12px; } .map-ctrls .ctrl-layers, .map-ctrls .ctrl-expand { display: none; } }

.map-search {
  position: absolute; right: 14px; top: 14px; z-index: 450; display: none; align-items: center; gap: 10px;
  width: 250px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface);
  box-shadow: 0 4px 14px -4px rgba(15, 23, 43, .3); color: var(--ink-muted);
}
@media (min-width: 1024px) { .map-search { display: flex; } }
.map-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 106, 0, .3), 0 4px 14px -4px rgba(15, 23, 43, .3); }
.map-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.map-search input::placeholder { color: var(--ink); }

.hint {
  position: absolute; left: 12px; top: 12px; z-index: 450;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 16px -8px rgba(15,23,43,.5); transition: opacity .3s, transform .3s;
}
@media (min-width: 768px) { .hint { top: auto; bottom: 16px; left: 16px; font-size: 14px; } }
.hint .h-long { display: none; }
@media (min-width: 768px) { .hint .h-long { display: inline; } .hint .h-short { display: none; } }
.hint.bob svg { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-6deg); } }
.hint.used { opacity: 0; transform: translateY(6px); pointer-events: none; }

.legend {
  position: absolute; right: 72px; bottom: 28px; z-index: 450; display: none; gap: 14px;
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 13px;
}
@media (min-width: 1024px) { .legend { display: flex; } }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* "Try it as a marshal" entry point */
.try-marshal {
  position: absolute; left: 16px; top: 16px; z-index: 460;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 16px 5px 5px;
  border-radius: 999px; border: 0; background: var(--brand); color: var(--on-brand);
  font-size: 14px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(255, 106, 0, .8);
  transition: transform .2s var(--ease-out), background-color .15s, opacity .2s;
}
.try-marshal:hover { background: var(--brand-hover); transform: translateY(-1px); }
.try-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.try-marshal::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid rgba(255, 106, 0, .55);
  animation: try-ping 2.4s 1.5s infinite;
  pointer-events: none;
}
@keyframes try-ping { 0% { opacity: 1; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.12); } }
@media (max-width: 767px) { .try-marshal { top: 64px; left: 12px; font-size: 13px; } }
.mm-on .try-marshal { opacity: 0; pointer-events: none; }
.mm-on .pop, .mm-on .sheet { display: none; }
.mm-on .hint { opacity: 0; }
/* While the marshal's phone is out, the whole organiser window fades back behind it
   (the pin turning green on the map still shows through) */
.app::after {
  content: ""; position: absolute; inset: 0; z-index: 640; pointer-events: none;
  background: rgba(15, 23, 43, .5); opacity: 0; transition: opacity .35s;
}
.app.mm-open::after { opacity: 1; }

.pop-try {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: 100%;
  border-radius: 10px; border: 0; background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 700;
  transition: background-color .15s;
}
.pop-try:hover { background: var(--brand-hover); }

/* The marshal's phone */
.mphone {
  position: absolute; left: clamp(16px, 4%, 56px); top: 20px; bottom: 20px; z-index: 650; width: 300px; max-height: 620px;
  padding: 9px; border-radius: 36px; background: var(--navy);
  box-shadow: 0 40px 80px -30px rgba(3, 7, 18, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transform: translateX(calc(-100% - 24px)) rotate(-4deg); opacity: 0;
  transition: transform .45s var(--ease-spring), opacity .2s;
}
.mphone.open { transform: none; opacity: 1; }
.mphone[hidden] { display: none; }
@media (max-width: 767px) {
  .mphone { left: 10px; right: 10px; top: 10px; bottom: 10px; width: auto; max-height: none; border-radius: 30px; }
}
.mphone-screen {
  height: 100%; overflow-y: auto; border-radius: 28px; background: #fff; color: var(--ink);
  padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none;
}
@media (max-width: 767px) { .mphone-screen { border-radius: 22px; } }
.mphone-status { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 0 6px; }
.mphone-status span:last-child { letter-spacing: -1px; font-size: 8px; }
.mphone-notch { width: 70px; height: 18px; border-radius: 999px; background: var(--navy); }
.mphone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mphone-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9A3412; background: #FFF1E6; padding: 4px 8px; border-radius: 999px; }
.mphone-close { width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 12px; background: transparent; display: grid; place-items: center; color: var(--ink-muted); }
.mphone-close:hover { background: var(--surface-muted); color: var(--ink); }
.mphone-k { font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-top: -4px; }
.mphone-title { font-family: var(--font-display); font-size: 22px; line-height: 1.15; letter-spacing: -.01em; margin-top: -8px; }
.mphone-map { height: 96px; flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.mphone-map svg { width: 100%; height: 100%; }
.mphone-ring { fill: none; stroke: var(--brand); stroke-width: 2; transform-origin: 120px 52px; animation: ring 1.6s infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.mphone-point { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-muted); line-height: 1.4; }
.mphone-point b { font-size: 16px; color: var(--ink); }
.mphone-btn {
  margin-top: auto; min-height: 56px; border: 0; border-radius: 16px; background: var(--brand); color: var(--on-brand);
  font-size: 18px; font-weight: 700; box-shadow: 0 12px 24px -12px rgba(255, 106, 0, .9);
  transition: transform .1s, background-color .15s;
}
.mphone-btn:hover { background: var(--brand-hover); }
.mphone-btn:active, .mphone-btn.busy { transform: scale(.97); }
.mphone-btn.busy { cursor: progress; }
.mphone-help { font-size: 12px; color: var(--ink-muted); text-align: center; }
.mphone-done {
  margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 16px 12px; border-radius: 16px; background: #EEF7F1; color: var(--ink); font-size: 13px;
  animation: done-in .4s var(--ease-spring);
}
.mphone-done b { font-size: 16px; color: var(--status-in); }
.mphone-tick { width: 44px; height: 44px; border-radius: 50%; background: var(--status-in); color: #fff; display: grid; place-items: center; margin-bottom: 4px; }
@keyframes done-in { from { opacity: 0; transform: scale(.92); } }
.mphone-back { min-height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 700; }
.mphone-back:hover { border-color: var(--ink); }

/* toast */
.toast {
  position: absolute; left: 50%; top: 14px; z-index: 660; max-width: calc(100% - 120px);
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float);
  font-size: 14px; font-weight: 500; transition: opacity .2s, transform .25s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .toast { top: 72px; } }
@media (max-width: 767px) {
  .toast { left: 12px; right: 12px; top: 12px; max-width: none; transform: translateY(-12px); z-index: 700; }
  .toast.show { transform: none; }
}

.gesture {
  position: absolute; inset: 0; z-index: 700; display: grid; place-items: center; padding: 20px;
  background: rgba(15, 23, 43, .5); color: #fff; font-size: 16px; font-weight: 700; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.gesture.show { opacity: 1; }

/* mobile bottom sheet */
.sheet {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 550;
  padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 -10px 30px -16px rgba(15,23,43,.45);
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 768px) { .sheet { display: none; } }
.sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: -4px auto 0; }
.sheet-top { display: flex; align-items: center; gap: 12px; }
.sheet-top .num { width: 36px; height: 36px; font-size: 14px; }
.sheet-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sheet-meta b { font-family: var(--font-display); font-size: 18px; }
.sheet-meta span { font-size: 13px; color: var(--ink-muted); }
.sheet-nav { display: flex; gap: 4px; }
.sheet-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.sheet-actions { display: flex; gap: 8px; }
.sheet.swap { animation: sheet-swap .22s var(--ease-out); }
@keyframes sheet-swap { from { opacity: .4; transform: translateY(6px); } }

/* marshals + race info views */
.info-view { overflow-y: auto; padding: 24px; background: var(--bg); }
.info-grid { display: grid; gap: 16px; grid-template-columns: 1.4fr 1fr; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; font-size: 14px; color: var(--ink-muted); }
.info-card h2 { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.info-card p + p { margin-top: 8px; }
.info-card li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.info-card li:last-child { border-bottom: 0; }
.info-card li b { color: var(--ink); }

.demo-mobile { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; text-align: center; }
@media (min-width: 768px) { .demo-mobile { display: none; } }

/* ---------- Trust strip ---------- */
/* Demo footer: scan-to-phone on the left, trust strip on the right */
.demo-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 40px;
  margin-top: 28px; padding: 22px 0 clamp(28px, 3vw, 40px); border-top: 1px solid var(--line);
}
.scan { display: none; align-items: center; gap: 16px; text-decoration: none; color: inherit; border-radius: 16px; }
@media (min-width: 768px) { .scan { display: inline-flex; } }
.scan-qr {
  width: 76px; height: 76px; flex-shrink: 0; padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 24px -12px rgba(255, 106, 0, .6);
  display: grid; place-items: center; transition: transform .2s var(--ease-out);
}
.scan-qr svg { width: 100%; height: 100%; }
.scan:hover .scan-qr { transform: scale(1.05) rotate(-2deg); }
.scan-copy { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: var(--ink-muted); max-width: 300px; }
.scan-copy b { color: var(--ink); font-weight: 700; }
.scan:hover .scan-copy b { color: var(--brand); }
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.trust-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
@media (min-width: 768px) { .trust-k { font-size: 14px; } }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 40px; }
.logos img { height: 44px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .8; mix-blend-mode: multiply; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- How it works ---------- */
.how { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .h2 { max-width: 700px; }
.sec-head .kicker { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
  .sec-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .sec-head.split .body { max-width: 380px; }
}

/* the "course" rail that fills as you scroll */
.rail { position: relative; display: none; height: 28px; margin-bottom: 20px; }
@media (min-width: 900px) { .rail { display: block; } }
.rail-line { position: absolute; left: 12.5%; right: 12.5%; top: 13px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.rail-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 1)); }
.rail-dots { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.rail-dots span {
  justify-self: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink-muted);
  transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease-spring);
}
.rail-dots span.on { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.1); }

.steps { display: grid; gap: 20px; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(15,23,43,.45); border-color: var(--line-strong); }
.step-ui { position: relative; height: 200px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); overflow: hidden; }
.step-copy { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-n { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--eyebrow); }
.step h3 { font-size: 19px; line-height: 1.3; }
.step p { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

@media (max-width: 599px) {
  /* Mobile: numbered vertical list plus one UI image (§5.4) */
  .steps { gap: 0; position: relative; padding-left: 4px; }
  .step { flex-direction: row; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .step:hover { transform: none; box-shadow: none; }
  .step-ui { display: none; }
  .step-copy { padding: 0 0 26px 52px; position: relative; }
  .step-n {
    position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
    background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; z-index: 1;
  }
  .step:not(:last-child) .step-copy::before {
    content: ""; position: absolute; left: 17px; top: 34px; bottom: 0; width: 2px;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px);
  }
  .steps-shot { display: block !important; }
}
.steps-shot { display: none; margin-top: 8px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-sunken); height: 220px; position: relative; }

/* --- mini UI vignettes (decorative, aria-hidden) --- */
.v-map { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 49%, #fff 49% 51%, transparent 51%) 0 0 / 100% 100%,
  #E8EDF2; }
.v-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-fields rect { fill: #DCE9DD; }
.v-roads path { stroke: #fff; fill: none; }
.v-route { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.v-route-casing { fill: none; stroke: #fff; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.js .anim .v-route, .js .anim .v-route-casing { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .anim.in .v-route, .js .anim.in .v-route-casing { transition: stroke-dashoffset 1.8s var(--ease-out) .15s; stroke-dashoffset: 0; }
.v-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 8px 16px -10px rgba(15,23,43,.4);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.v-chip small { font-weight: 500; color: var(--ink-muted); }
.v-file { width: 22px; height: 26px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 7px; font-weight: 800; display: grid; place-items: end center; padding-bottom: 3px; }
.js .anim .pop-in { opacity: 0; transform: translateY(8px) scale(.96); }
.js .anim.in .pop-in { opacity: 1; transform: none; transition: opacity .2s, transform .35s var(--ease-spring); transition-delay: var(--d, .6s); }

.vp path { fill: var(--c, var(--brand)); stroke: #fff; stroke-width: 3; }
.vp text { fill: #fff; font-family: var(--font-body); font-weight: 700; text-anchor: middle; }
.vp { filter: drop-shadow(0 2px 2px rgba(15,23,43,.25)); }
.js .anim .vp { opacity: 0; transform: translateY(-14px); }
.js .anim.in .vp { opacity: 1; transform: none; transition: opacity .15s, transform .4s var(--ease-spring); transition-delay: calc(var(--i) * 80ms + .3s); }
.js .anim .vf { opacity: 0; transform: scale(.4); }
.js .anim.in .vf { opacity: 1; transform: none; transition: opacity .15s, transform .35s var(--ease-spring); transition-delay: calc(var(--i) * 90ms + 1.2s); }
.v-share { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.v-share-card { width: 100%; max-width: 250px; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; box-shadow: 0 16px 30px -20px rgba(15,23,43,.5); display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
.v-share-card .k { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.v-link { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-copy { margin-top: 8px; display: inline-grid; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.v-copy span { grid-area: 1 / 1; text-align: center; }
.v-copy .ok { opacity: 0; }
.js .anim.in .v-copy { animation: copied 3.2s 1.2s both; }
.js .anim.in .v-copy .pre { animation: fade-out 3.2s 1.2s both; }
.js .anim.in .v-copy .ok { animation: fade-in 3.2s 1.2s both; }
@keyframes copied { 0%, 8% { background: var(--ink); } 12%, 100% { background: var(--status-in); } }
@keyframes fade-out { 0%, 8% { opacity: 1; } 12%, 100% { opacity: 0; } }
@keyframes fade-in { 0%, 8% { opacity: 0; } 12%, 100% { opacity: 1; } }
.v-qr { width: 64px; height: 64px; }
.v-qr rect { fill: var(--ink); }

.v-phone { position: absolute; left: 50%; top: 14px; width: 150px; height: 230px; margin-left: -75px; border-radius: 26px; background: var(--navy); padding: 7px; box-shadow: 0 20px 30px -20px rgba(15,23,43,.6); }
.v-screen { height: 100%; border-radius: 20px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.v-screen-map { height: 46px; background: #E8EDF2; position: relative; overflow: hidden; }
.v-screen-map::before { content: ""; position: absolute; left: -10px; right: -10px; top: 22px; height: 5px; background: #fff; transform: rotate(-8deg); }
.v-screen-body { padding: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: var(--ink-muted); }
.v-screen-body b { font-size: 13px; color: var(--ink); font-family: var(--font-display); }
.v-checkin { position: relative; margin-top: 8px; height: 34px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; display: grid; place-items: center; overflow: hidden; }
.v-checkin span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 5px; }
.v-checkin .done { opacity: 0; }
.js .anim.in .v-checkin { animation: ci-bg 4s 1s both; }
.js .anim.in .v-checkin .todo-t { animation: ci-out 4s 1s both; }
.js .anim.in .v-checkin .done { animation: ci-in 4s 1s both; }
.js .anim.in .v-checkin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255,255,255,.5); animation: ci-tap 4s 1s both; }
@keyframes ci-bg { 0%, 14% { background: var(--brand); color: var(--on-brand); } 18%, 100% { background: var(--status-in); color: #fff; } }
@keyframes ci-out { 0%, 14% { opacity: 1; transform: none; } 18%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes ci-in { 0%, 15% { opacity: 0; transform: translateY(10px); } 20%, 100% { opacity: 1; transform: none; } }
@keyframes ci-tap { 0%, 10% { transform: scale(0); opacity: 1; } 18% { transform: scale(14); opacity: 0; } 100% { opacity: 0; } }
.v-time { font-size: 10px; color: var(--ink-muted); text-align: center; margin-top: 4px; }

/* ---------- Features (stacking panels) ---------- */
.features { padding-top: 24px; }
.panels { display: flex; flex-direction: column; gap: 24px; }
.panel {
  --stack: 0;
  position: relative; background: var(--surface-muted); border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 56px); display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
  transform-origin: 50% 0;
}
@media (min-width: 900px) {
  .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel.flip .panel-copy { order: 2; }
}
@media (min-width: 900px) and (min-height: 760px) {
  .panel { position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 18px); box-shadow: 0 -24px 48px -36px rgba(15,23,43,.35); }
  .js .panel { transform: scale(calc(1 - var(--stack) * .045)); }
}
.panel-copy { display: flex; flex-direction: column; gap: 16px; }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 16px; margin-top: 4px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-ico); }
.panel-ui {
  position: relative; height: clamp(280px, 30vw, 380px); border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -40px rgba(15,23,43,.45);
}

/* feature 1: route editor */
.ed-bar { position: absolute; left: 0; right: 0; top: 0; height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); z-index: 2; font-size: 12px; font-weight: 700; }
.ed-tool { padding: 6px 10px; border-radius: 8px; color: var(--ink-muted); display: inline-flex; gap: 6px; align-items: center; }
.ed-tool.on { background: var(--surface-sunken); color: var(--ink); }
.ed-dist { margin-left: auto; white-space: nowrap; font-family: var(--font-display); font-size: 14px; font-variant-numeric: tabular-nums; }
.ed-map { position: absolute; left: 0; right: 0; top: 48px; bottom: 0; background: #E8EDF2; }
.ed-map svg { width: 100%; height: 100%; }
.ed-map .v-route { stroke-width: 3.5; }
.js .scroll-draw .v-route, .js .scroll-draw .v-route-casing { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); }
.ed-map .vp { transition: opacity .15s, transform .35s var(--ease-spring); }
.js .scroll-draw .vp:not(.on) { opacity: 0; transform: translateY(-12px); }
.ed-w3w { left: 14px; top: 62px; }
.ed-gpx { right: 14px; bottom: 14px; }
@media (max-width: 479px) { .ed-tool.opt { display: none; } }
.ed-w3w .red { color: #E11F26; font-weight: 800; }

/* feature 2: phone */
.ph-stage { background: radial-gradient(120% 80% at 50% 100%, #F4E3D6, #F6F5F2 60%); border: 1px solid var(--line-strong); }
.phone {
  position: absolute; left: 50%; top: 28px; width: 210px; margin-left: -105px; aspect-ratio: 540 / 1010;
  border-radius: 34px; padding: 9px; background: var(--navy); box-shadow: 0 30px 50px -24px rgba(15,23,43,.6);
  transform: translateY(calc(var(--par, 0) * -24px));
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.float-card { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-float); font-size: 13px; }
.float-card .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.float-card b { display: block; font-family: var(--font-display); font-size: 16px; }
.fc-point { left: 6%; bottom: 14%; transform: translateY(calc(var(--par, 0) * 20px)); }
.fc-link { right: 5%; top: 16%; display: flex; align-items: center; gap: 8px; font-weight: 700; transform: translateY(calc(var(--par, 0) * 36px)); }
@media (max-width: 479px) { .fc-point { left: 3%; } .fc-link { right: 3%; } }

/* feature 3: live dashboard */
.dash { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; }
.dash-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-right: 1px solid var(--line); padding: 16px; }
@media (max-width: 479px) { .dash-ring { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; justify-content: flex-start; } }
.ring { position: relative; width: 104px; height: 104px; }
@media (max-width: 479px) { .ring { width: 72px; height: 72px; } }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--surface-muted); }
.ring .val { stroke: var(--status-in); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--ring, .92)); transition: stroke-dashoffset .4s var(--ease-out); }
.ring-n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .ring-n { font-size: 18px; } }
.ring-n small { font-size: .55em; color: var(--ink-muted); font-weight: 600; }
.dash-ring p { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.3; }
.dash-list { padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; transition: background-color .3s, border-color .3s; }
.dash-row .num { width: 24px; height: 24px; font-size: 11px; }
.dash-row .who b { font-size: 13px; }
.dash-row .who span { font-size: 12px; }
.dash-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }
.dash-row .st { font-size: 12px; color: var(--ink); font-weight: 700; }
.dash-row.just { background: #EEF7F1; border-color: #BFE0CB; }
.dash-row.alert { background: #FDF3EC; border-color: var(--select-line); }

/* ---------- Case study ---------- */
.case { border-top: 1px solid var(--line); }
.case-grid { display: grid; gap: clamp(32px, 4.5vw, 64px); }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-copy { display: flex; flex-direction: column; gap: 20px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 110px; }
.stat b { font-family: var(--font-display); font-size: clamp(26px, 22px + .6vw, 32px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-muted); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--surface-muted); }
.photo img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; transform: translateY(calc(var(--par, 0) * 8%)); }
.photo:nth-child(2) img { object-position: 50% 50%; transform: translateY(calc(var(--par, 0) * -8%)); }

.quote {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 24px;
}
.quote .who-q { margin-top: auto; padding-top: 8px; }
/* Event logo sits centred in the space between the quote and the name */
.quote-logo { height: clamp(48px, 4vw, 64px); width: auto; align-self: flex-start; margin: auto 0; }
.quote-logo + .who-q { margin-top: 0; }
.quote-mark { width: 44px; height: 44px; color: var(--brand); }
.quote blockquote { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.quote .pull { font-family: var(--font-display); font-size: clamp(24px, 18.5px + 1.2vw, 34px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.quote .support { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.who-q { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-muted); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--ink-muted); flex-shrink: 0; }
.who-q div { display: flex; flex-direction: column; }
.who-q span { font-size: 14px; color: var(--ink-muted); }

/* ---------- Pricing ---------- */
.pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing .sec-head { align-items: center; text-align: center; }
.price-card {
  max-width: 1000px; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 24px;
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; background: var(--bg);
}
.price-top { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .price-top { flex-direction: row; justify-content: space-between; align-items: center; gap: 32px; } }
.price-main { display: flex; flex-direction: column; gap: 10px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price { font-family: var(--font-display); font-size: clamp(52px, 44px + 1.6vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price-unit { font-size: 17px; color: var(--ink-muted); }
.volume { font-size: 16px; }
.price-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
@media (min-width: 900px) { .price-cta { align-items: center; } }

.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.calc label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; font-size: 20px; font-weight: 500; display: grid; place-items: center; }
.stepper button:hover { background: var(--bg); }
.stepper button:disabled { color: #B9B4AA; cursor: default; background: transparent; }
.stepper input { width: 44px; border: 0; text-align: center; font-weight: 700; font-size: 16px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-out { margin-left: auto; font-variant-numeric: tabular-nums; }
.calc-out b { font-family: var(--font-display); font-size: 20px; }
@media (max-width: 599px) { .calc-out { margin-left: 0; width: 100%; } }
.divider { height: 1px; background: var(--line-strong); }
.incl { display: grid; gap: 14px 24px; font-size: 15px; }
@media (min-width: 600px) { .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .incl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.incl li { display: flex; gap: 8px; align-items: flex-start; }
.incl svg { flex-shrink: 0; margin-top: 4px; color: var(--accent-ico); }

.faq-title { max-width: 1000px; margin: clamp(48px, 6vw, 72px) auto 0; font-family: var(--font-display); font-size: clamp(22px, 19px + .8vw, 28px); letter-spacing: -.01em; text-align: center; }
.faq { max-width: 1000px; margin: 20px auto 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 20px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover svg { color: var(--brand); }
.faq summary svg { flex-shrink: 0; transition: transform .2s var(--ease-out); color: var(--ink-muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; font-size: 15px; color: var(--ink-muted); }

/* ---------- Sign-up ---------- */
.signup { position: relative; background: var(--brand); overflow: hidden; isolation: isolate; }
.signup::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: multiply;
  background: url("../assets/contours.svg") 70% 50% / 1600px auto no-repeat;
}
.signup::after {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent);
}
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
@media (min-width: 900px) { .signup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.signup-copy { display: flex; flex-direction: column; gap: 20px; }
.signup .h2 { font-size: clamp(36px, 26px + 2.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; }
.signup .lead { color: var(--ink); }
.checks.dark { font-weight: 500; }

.form-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -30px rgba(15,23,43,.55); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.input {
  height: 48px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .2); }
.input[aria-invalid="true"], .pw[data-invalid="true"] { border-color: #B91C1C; }
.pw { display: flex; align-items: center; height: 48px; padding: 0 6px 0 14px; border-radius: var(--r-input); border: 1px solid var(--line-strong); transition: border-color .15s, box-shadow .15s; }
.pw:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .2); }
.pw input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 16px; }
.pw button { min-width: 64px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--surface-sunken); font-size: 13px; font-weight: 700; }
.pw button:hover { background: var(--surface-muted); }
.rules { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-muted); }
.rules span { display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.rules .tick { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #A8A399; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.rules .tick svg { opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s var(--ease-spring); }
.rules .met { color: var(--status-in); }
.rules .met .tick { background: var(--status-in); border-color: var(--status-in); }
.rules .met .tick svg { opacity: 1; transform: none; }
.err { font-size: 13px; font-weight: 500; color: #B91C1C; }
.err:empty { display: none; }
.form-err { padding: 12px 14px; border-radius: 10px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: 14px; }
.form-err[hidden] { display: none; }
.form-card .btn-primary { --h: 54px; font-size: 17px; margin-top: 4px; }
.form-card .btn-primary[aria-busy="true"] { opacity: .8; cursor: progress; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal { font-size: 13px; color: var(--ink-muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-card { align-items: center; text-align: center; padding-block: 48px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: #EEF7F1; color: var(--status-in); display: grid; place-items: center; }

/* ---------- Text pages (terms.html) ---------- */
.doc-page { padding-block: clamp(32px, 5vw, 64px) var(--section-y); }
.doc { max-width: 760px; }
.doc-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.doc h1 { margin: 8px 0 24px; }
.doc h2 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--ink-muted); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc-login { display: inline-flex; }
@media (max-width: 479px) { .doc-login { display: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: var(--ink-muted); font-size: 14px; padding-block: 40px; }
.footer-in { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .footer-in { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand b { font-family: var(--font-display); font-size: 18px; color: #fff; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-underline-offset: 3px; }
.footer nav a:hover { color: var(--brand); }

/* ==========================================================================
   Brand layer: navy / orange / slate
   ========================================================================== */

/* Header: light glass */
.header { background: rgba(255, 255, 255, .82); border-bottom-color: var(--line); }
.header.is-scrolled { background: rgba(255, 255, 255, .92); box-shadow: 0 12px 30px -22px rgba(15, 23, 43, .35); }
.header .nav a { color: var(--ink-muted); }
.header .nav a:hover, .header .nav a[aria-current="true"] { color: var(--ink); }
.header .login:hover { color: var(--action); }

/* Eyebrows get a small orange rule */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.theme-orange .eyebrow::before { background: var(--navy); }
.pricing .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }

/* Hero + demo: one light stage with orange glows and contour lines */
.stage { position: relative; isolation: isolate; overflow: hidden; }
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 38% at 50% 0%, rgba(255, 106, 0, .20), transparent 72%),
    radial-gradient(32% 30% at 96% 22%, rgba(255, 106, 0, .12), transparent 70%),
    radial-gradient(30% 28% at 2% 48%, rgba(255, 140, 60, .12), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 55%);
}
/* Contour lines, tinted orange at the top and fading to slate */
.stage-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 106, 0, .28) 0%, rgba(255, 106, 0, .16) 35%, rgba(71, 85, 105, .12) 70%);
  -webkit-mask-image: url("../assets/contours.svg"), radial-gradient(ellipse 85% 55% at 50% 22%, #000 30%, transparent 78%);
  -webkit-mask-size: max(1600px, 110%) auto, 100% 100%;
  -webkit-mask-position: center top, center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: url("../assets/contours.svg"), radial-gradient(ellipse 85% 55% at 50% 22%, #000 30%, transparent 78%);
  mask-size: max(1600px, 110%) auto, 100% 100%;
  mask-position: center top, center;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}
.hero { padding-top: clamp(48px, 6vw, 96px); }
.hl { color: #EA580C; } /* 3.4:1, passes AA for large text */
.pill { box-shadow: 0 6px 16px -10px rgba(15, 23, 43, .25); }
.pill .more { color: var(--action); }
.hero .btn-outline { box-shadow: 0 6px 16px -10px rgba(15, 23, 43, .25); }

.demo { position: relative; padding-bottom: 0; }
.demo-stage { position: relative; }
.demo-stage::before {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; top: 12%; bottom: -10%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(255, 106, 0, .38), rgba(255, 140, 60, .12) 55%, rgba(255, 106, 0, 0) 75%);
  filter: blur(46px); pointer-events: none;
}
.demo::after {
  /* faint grid under the product window */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 43, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 43, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 65%, transparent);
}
.app.theme-light { border-color: var(--line-strong); box-shadow: 0 50px 100px -40px rgba(15, 23, 43, .35), 0 24px 60px -30px rgba(255, 106, 0, .35); }
.qr-pop.theme-light { color: var(--ink); }

.demo .logos img { height: 48px; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); filter: none; opacity: 1; mix-blend-mode: normal; }

/* How it works */
.how { border-top: 0; }
.step { box-shadow: 0 1px 2px rgba(15, 23, 43, .04); }
.step:hover { border-color: rgba(255, 106, 0, .45); box-shadow: 0 24px 48px -30px rgba(15, 23, 43, .45); }
.step-n {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  background: #FFF1E6; color: #9A3412; font-size: 13px;
}
@media (max-width: 599px) { .step-n { background: var(--brand); color: var(--on-brand); padding: 0; } }
.rail-dots span.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Features */
.panel { background: var(--surface); border: 1px solid var(--line); }
.panel.theme-dark { background: var(--navy); border-color: var(--navy); overflow: hidden; isolation: isolate; }
.panel.theme-dark::before {
  content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: -200px; bottom: -420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .28), transparent);
}
.panel-ui.theme-light { color: var(--ink); }
.ph-stage { background: radial-gradient(90% 70% at 50% 105%, rgba(255, 106, 0, .55), transparent 70%), var(--navy-2); border-color: rgba(255, 255, 255, .1); }
.float-card.theme-light { color: var(--ink); }
.ring .val { stroke: var(--status-in); }

/* Case study */
.case { border-top: 0; }
.stat { box-shadow: 0 1px 2px rgba(15, 23, 43, .04); }
.stat b { color: var(--ink); }
.quote.theme-dark { background: var(--navy); border-color: var(--navy); overflow: hidden; isolation: isolate; }
.quote.theme-dark::after {
  content: ""; position: absolute; z-index: -1; right: -180px; top: -180px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .3), transparent);
}
.quote .avatar { background: var(--brand); color: var(--on-brand); }

/* Pricing on navy */
.pricing.theme-dark { background: var(--navy); border: 0; position: relative; isolation: isolate; overflow: hidden; }
.pricing.theme-dark::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 30%; width: 1000px; height: 600px; margin-left: -500px;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .25), transparent);
}
.price-card.theme-light { background: var(--surface); border: 0; box-shadow: 0 50px 100px -40px rgba(3, 7, 18, .7); position: relative; }
.price-card.theme-light::before {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--brand);
}
.price-card .calc { background: var(--bg); }
.price { color: var(--ink); }
.theme-dark .faq details { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.theme-dark .faq details[open] { border-color: rgba(255, 255, 255, .18); }

/* Pricing option B: trial banner + plan cards */
.trial-banner {
  max-width: 1000px; margin: 0 auto 20px; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(3, 7, 18, .7); position: relative; overflow: hidden; isolation: isolate;
}
.trial-banner::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, .18), transparent);
}
@media (min-width: 900px) { .trial-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.trial-copy { display: flex; flex-direction: column; gap: 8px; }
.trial-badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; }
.trial-head { font-family: var(--font-display); font-size: clamp(22px, 18px + 1vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.trial-sub { font-size: 15px; color: var(--ink-muted); max-width: 520px; }
.trial-banner .btn { flex-shrink: 0; }

.plans { max-width: 1000px; margin: 0 auto; display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.plan-featured { border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(255, 106, 0, .55); }
@media (min-width: 900px) { .plan-featured { transform: translateY(-8px); } }
.plan-flag {
  position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.plan-name { font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; }
.plan-for { font-size: 14px; color: var(--ink-muted); min-height: 2.9em; }
.plan-for.text-base { font-size: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.plan-price .price { font-size: clamp(44px, 38px + 1vw, 52px); }
.price-talk { font-size: clamp(34px, 30px + .8vw, 40px) !important; }
.plan-per { font-size: 15px; color: var(--ink-muted); }
.plan-events { font-size: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.plan-cta { margin-top: auto; }
.plan-ent { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
.plan-ent .plan-events { border-bottom-color: rgba(255, 255, 255, .12); }
.plans-incl { max-width: 1000px; margin: 28px auto 0; padding: 24px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); }
.plans-incl-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.plans-vat { margin-top: 16px; font-size: 13px; color: var(--ink-muted); }

/* Light cards nested inside navy sections get their light styles back */
.theme-dark .theme-light .btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.theme-dark .theme-light .btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.theme-dark .theme-light .todo { background: rgba(255, 255, 255, .6); color: var(--ink-muted); border-color: #BDB8AE; }

/* Pricing: two paid plans with a compact trial box below */
.tiers .plan { padding-top: 30px; }
.plan-list { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 18px; font-size: 14px; }
.plan-list li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.plan-list svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-ico); }
.plan-list li.off { color: var(--ink-muted); opacity: .7; }
.plan-list li.off svg { color: var(--ink-muted); }
.plan-lead { font-size: 14px; font-weight: 700; margin-top: 4px; }
.tiers .plan-price { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tiers .plan-ent .plan-price { border-bottom-color: rgba(255, 255, 255, .12); }
.tiers + .plans-vat { max-width: 1000px; margin: 18px auto 0; text-align: center; }
.plan-trial { max-width: 1000px; margin: 20px auto 0; gap: 18px; }
.plan-trial .plan-for { min-height: 0; margin-top: 6px; }
.plan-trial .plan-cta { margin-top: 0; }
@media (min-width: 900px) {
  .plan-trial { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
}

/* REVIEW ONLY: pull-out "Versions" tab, bottom right */
.review { position: fixed; right: 0; bottom: 24px; z-index: 90; display: flex; align-items: flex-end; pointer-events: none; }
.review > * { pointer-events: auto; }
.review-tab {
  order: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, .14); border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(3, 7, 18, .6);
  transform: translateX(calc(100% - 36px)); transition: transform .25s var(--ease-out), background-color .15s;
}
.review-tab svg { color: var(--brand); flex-shrink: 0; }
.review-tab:hover, .review-tab:focus-visible, .review.open .review-tab { transform: none; }
.review-tab:focus-visible { outline-color: var(--brand); }
.review-panel {
  order: 1; margin-right: 8px; width: 260px; padding: 16px; border-radius: 16px;
  background: rgba(15, 23, 43, .96); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -20px rgba(3, 7, 18, .75);
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.review.open .review-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s; }
.review-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.review-title span { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }
.review-group { display: flex; flex-direction: column; gap: 6px; }
.review-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }
.review-opts { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.review-opts a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 10px; border-radius: 9px; color: #E2E8F0; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.review-opts a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.review-opts a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.review :focus-visible { outline-color: var(--brand); }
.review-foot { font-size: 12px; color: #94A3B8; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.review-foot a { color: #E2E8F0; text-underline-offset: 2px; }
.review-foot a:hover { color: var(--brand); }
@media (max-width: 479px) { .review { bottom: 16px; } .review-panel { width: min(260px, calc(100vw - 72px)); } }

/* Sign-up form sits on orange */
.theme-orange .checks svg { color: var(--navy); }
.theme-orange .link { color: var(--ink); }

/* ---------- Reveal on scroll (≤200ms, triggers early, content never left faded) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .2s ease-out, transform .45s var(--ease-out); transition-delay: calc(var(--r, 0) * 50ms); }

/* Hero: plays on load rather than on scroll, and the h1 (LCP) never starts invisible */
.js .hero .reveal { opacity: 1; transform: none; animation: rise .55s var(--ease-out) backwards; animation-delay: calc(var(--r, 0) * 70ms); }
.js .hero .h1 { animation-name: rise-y; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-y { from { transform: translateY(14px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .app.tilt, .js .panel, .phone, .fc-point, .fc-link, .photo img { transform: none !important; }
  .js .hl path { stroke-dashoffset: 0; }
}
