:root {
  --bg: #0b1220;
  --panel: #121b2e;
  --border: #24304a;
  --text: #e8eef7;
  --muted: #93a3b8;
  --accent: #ff7a1a;
  --accent-dark: #d96410;
  --danger: #ef4444;
  --ok: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.7rem; line-height: 1.2; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.9);
}
.nav .brand { font-size: 1.15rem; }
.brand-mark { font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em;
  color: #f2ede4; }
.brand-mark em { font-style: normal; color: var(--accent); }
.brand-tag { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.42em; color: var(--muted); margin-top: 0.2rem; }
.nav nav { display: flex; align-items: center; gap: 1rem; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons & forms */
.btn {
  display: inline-block; background: var(--accent); color: #16100a; font-weight: 700;
  border: 0; border-radius: 8px; padding: 0.6rem 1.1rem; cursor: pointer; font-size: 0.95rem;
}
.btn:hover { background: var(--accent-dark); color: #16100a; text-decoration: none; }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; }
.linklike:hover { color: var(--text); }
.linklike.danger:hover { color: var(--danger); }

label { display: block; margin: 0.9rem 0 0.25rem; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="file"] {
  width: 100%; padding: 0.55rem 0.7rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.95rem;
}
input:focus { outline: 2px solid var(--accent); border-color: transparent; }
form .btn { margin-top: 1.2rem; }
.form-errors { background: rgba(239, 68, 68, 0.12); border: 1px solid var(--danger);
  border-radius: 8px; padding: 0.5rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }

/* Layout blocks */
.page { max-width: 960px; margin: 0 auto; padding: 1.5rem 1.2rem; }
.narrow-page { max-width: 680px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem 1.6rem; margin: 1rem 0;
}
.card.narrow { max-width: 460px; margin: 2.5rem auto; }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: 0.8rem; }
.spacer { flex: 1; }

/* Flash */
.flash { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.flash.notice { background: rgba(34, 197, 94, 0.12); color: #86efac; }
.flash.alert { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }

/* Landing */
.hero {
  text-align: center; padding: 5rem 1.2rem 3.5rem; max-width: 760px; margin: 0 auto;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 122, 26, 0.14), transparent 70%);
}
.hero h1 { font-size: 2.9rem; margin-bottom: 1rem; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff, #c8d3e6);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin: 1.8rem 0 0.8rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; max-width: 960px; margin: 1rem auto; padding: 0 1.2rem; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.4rem; }
.feature h3 { color: var(--accent); margin-top: 0; }
.principles { text-align: center; max-width: 640px; margin: 2rem auto 3rem; padding: 0 1.2rem; color: var(--muted); }

/* Map */
.map-page { display: flex; flex-direction: column; height: calc(100vh - 57px); }
.map-stats { display: flex; gap: 1.5rem; align-items: center; padding: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--muted); }
.map-stats strong { color: var(--text); }
.siege-alert { color: #fca5a5; }
.map { width: 100%; height: 420px; border-radius: 12px; background: #0a0f1a; }
.map.tall { flex: 1; border-radius: 0; }

/* Stats + tables */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.7rem; margin: 1.2rem 0; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem; text-align: center; }
.stat strong { display: block; font-size: 1.3rem; }
.stat span { color: var(--muted); font-size: 0.78rem; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04em; }
th, td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }

.badge { padding: 0.15rem 0.55rem; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
.badge.processed { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.badge.processing, .badge.recording { background: rgba(234, 179, 8, 0.15); color: #fde047; }
.badge.rejected { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.badge.flagged { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem; text-align: center; }
.plan.featured { border-color: var(--accent); }
.plan .price { font-size: 2rem; font-weight: 800; margin: 0.4rem 0 1rem; }
.plan .price span { font-size: 0.9rem; color: var(--muted); font-weight: 400; }

/* Settings */
.zone-row { display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.zone-form { display: grid; grid-template-columns: 1.4fr 0.8fr auto;
  gap: 0.5rem; align-items: center; margin-top: 1rem; }
.zone-form .btn { margin-top: 0; }
.garage-form { grid-template-columns: 1fr 1fr 1fr 1fr 0.7fr auto; }
.zone-map { height: 260px; border-radius: 10px; margin-top: 1rem; background: #0a0f1a; }
select { padding: 0.55rem 0.7rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.95rem; }
.danger-zone { border-color: rgba(239, 68, 68, 0.4); }
.legal h3 { margin-top: 1.6rem; }
.legal ul { color: var(--muted); }

/* Leaderboard scope tabs */
.scope-tabs { display: flex; gap: 0.4rem; margin: 1rem 0; }
.scope-tabs a { padding: 0.4rem 0.9rem; border-radius: 99px; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.88rem; }
.scope-tabs a:hover { color: var(--text); text-decoration: none; }
.scope-tabs a.active { background: var(--accent); border-color: var(--accent);
  color: #16100a; font-weight: 700; }

.plan-list { list-style: none; padding: 0; margin: 0.4rem 0 1rem; display: grid; gap: 0.35rem;
  font-size: 0.86rem; color: var(--muted); text-align: left; }
.plan-list strong { color: var(--text); }

.ghost-chip { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--border); border-radius: 99px; padding: 0.05rem 0.45rem;
  color: var(--muted); }

/* Map territory loader */
.map-loader { position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: none; align-items: center; gap: 0.5rem;
  background: rgba(11, 18, 32, 0.9); color: var(--text); border: 1px solid var(--border);
  border-radius: 99px; padding: 0.4rem 0.9rem; font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.map-loader.visible { display: flex; }
.map-loader-spinner { width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 122, 26, 0.35); border-top-color: var(--accent);
  animation: map-spin 0.7s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }

/* Ride import */
.import-rule { border: 1px solid rgba(255, 122, 26, 0.4); background: rgba(255, 122, 26, 0.08);
  border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; margin: 0.9rem 0; }
.import-list { color: var(--muted); display: grid; gap: 0.5rem; padding-left: 1.1rem; }
.import-list strong { color: var(--text); }

/* Club timeline */
.post-form textarea { width: 100%; }
.post-form-row { display: flex; justify-content: space-between; align-items: center;
  gap: 0.6rem; margin: 0.4rem 0 1.2rem; }
.timeline { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.post { border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
  padding: 0.9rem 1rem; }
.post header { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.9rem; }
.post header form { margin-left: auto; }
.post p { margin: 0.5rem 0; white-space: pre-line; }
.post-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem; margin: 0.6rem 0; }
.post-media img, .post-media video { width: 100%; border-radius: 8px; display: block;
  max-height: 340px; object-fit: cover; }
.comments { border-top: 1px solid var(--border); margin-top: 0.6rem; padding-top: 0.6rem; }
.comment { font-size: 0.9rem; color: var(--muted); margin: 0.25rem 0; }
.comment strong { color: var(--text); }
.comment form { display: inline; }
.comment-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.comment-form input[type="text"] { flex: 1; margin: 0; }

/* Clubs & rider pages */
.club-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.club-form input[type="text"] { flex: 1 1 180px; margin: 0; }
.member-list { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.medal-list { list-style: none; padding: 0; display: grid; gap: 0.3rem; font-size: 1.02rem; }
.rider-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  text-align: center; color: var(--muted); margin: 1.6rem 0; }
.rider-stats .lp-stat { font-size: clamp(1.5rem, 4vw, 2.4rem); }
@media (max-width: 640px) { .rider-stats { grid-template-columns: 1fr; } }

.oauth-note { text-align: center; font-size: 0.8rem; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 8px; padding: 0.5rem 0.8rem; margin-top: 1rem; }

.auth-hero { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 0.6rem; }
.auth-hero img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: 50% 30%;
  filter: saturate(1.05) contrast(1.04); transition: opacity 0.4s ease; }
.auth-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11, 18, 32, 0.92)); }
.auth-statement { position: absolute; left: 1rem; bottom: 0.7rem; z-index: 1;
  font-weight: 900; font-style: italic; font-stretch: condensed; text-transform: uppercase;
  font-size: 1.7rem; line-height: 1.02; letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
.auth-statement::before { content: ""; display: block; width: 34px; height: 4px;
  border-radius: 2px; background: var(--accent); margin-bottom: 0.4rem; }
.auth-statement em { display: block; font-style: inherit; color: var(--accent); }

/* Live-rider count + "How it works" rules modal */
.live-count { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem;
  color: var(--muted); margin: 0.1rem 0 0.9rem; }
.live-count .dot { width: 8px; height: 8px; border-radius: 99px; background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.link-btn { background: none; border: none; padding: 0; color: var(--accent);
  font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.rules-modal { border: 1px solid var(--border); border-radius: 14px; background: #16203a;
  color: var(--text); padding: 1.5rem 1.7rem; max-width: 430px; }
.rules-modal::backdrop { background: rgba(4, 8, 16, 0.65); backdrop-filter: blur(3px); }
.rules-modal h2 { margin: 0 0 0.9rem; }
.rules-modal ol { margin: 0 0 1.1rem; padding-left: 1.25rem; color: var(--muted);
  display: grid; gap: 0.7rem; }
.rules-modal strong { color: var(--text); }
.rules-modal .rules-goal { border: 1px solid rgba(255, 122, 26, 0.4); background: rgba(255, 122, 26, 0.1);
  border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.1rem; font-size: 0.92rem; }
.rules-modal .rules-goal strong { display: block; color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.25rem; }
.rules-modal .rules-goal span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }

/* ---- Scroll-zoom hero: land inside the app, pull back into a gloved hand ---- */
.zoom-hero { height: 300vh; position: relative; }
.zoom-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.zoom-bg { position: absolute; inset: 0; opacity: 0; }
.zoom-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(1.05); }
.zoom-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.6) 55%, rgba(11, 18, 32, 0.35) 100%),
              linear-gradient(to top, rgba(11, 18, 32, 0.9) 0%, transparent 45%); }
.zoom-title { position: absolute; left: max(6vw, 1.3rem); top: 50%; transform: translateY(-50%);
  width: min(600px, 88vw); z-index: 1; }
.zoom-title-inner { opacity: 0; pointer-events: none; }
.zoom-composite { position: absolute; right: 7vw; top: 50%;
  --hand-w: min(31vw, 400px);
  width: var(--hand-w); aspect-ratio: 832 / 1248;
  margin-top: calc(var(--hand-w) * -0.75);
  z-index: 2; }
.zoom-hand { width: 100%; height: 100%; object-fit: contain; display: block;
  -webkit-mask-image: radial-gradient(72% 68% at 50% 46%, #000 42%, transparent 82%);
  mask-image: radial-gradient(72% 68% at 50% 46%, #000 42%, transparent 82%); }
.zoom-screen { position: absolute; left: 33.9%; top: 21.8%; width: 32.4%; height: 42.4%;
  border-radius: 9% / 4.5%; overflow: hidden; background: #000; }
.zoom-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.zoom-hint { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%);
  color: var(--muted); letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.72rem;
  animation: zoom-hint-bob 1.8s ease-in-out infinite; }
@keyframes zoom-hint-bob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 820px) {
  .zoom-title { top: 9vh; transform: none; left: 1.2rem; right: 1.2rem; width: auto; }
  .zoom-composite { --hand-w: min(56vw, 300px); right: 50%;
    margin-right: calc(var(--hand-w) * -0.5); top: auto; bottom: -2vh; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zoom-hero { height: auto; }
  .zoom-stage { position: static; height: auto; min-height: 100vh; }
}

/* ---- Animated perimeter demo: ride the loop, claim the inside ---- */
.loop-demo { margin: 0 auto; width: min(420px, 90vw); }
.loop-demo svg { width: 100%; height: auto; display: block;
  background: #0a0f1c; border: 1px solid var(--border); border-radius: 16px; }
.loop-demo figcaption { text-align: center; color: var(--muted); font-size: 0.88rem;
  margin-top: 0.6rem; }
.ld-route { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ld-draw 9s ease-in-out infinite; }
.ld-fill { fill: var(--accent); opacity: 0; animation: ld-claim 9s ease-in-out infinite; }
.ld-rider { fill: #fff; stroke: var(--accent); stroke-width: 4;
  offset-path: path("M96 96 H258 L150 204 V258 H204 V312 H96 Z");
  animation: ld-ride 9s linear infinite; }
.ld-label { fill: var(--accent); font-weight: 900; font-style: italic; font-size: 36px;
  letter-spacing: 0.04em; opacity: 0; animation: ld-shout 9s ease-in-out infinite; }
@keyframes ld-draw { 0% { stroke-dashoffset: 100; } 52% { stroke-dashoffset: 0; }
  92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes ld-ride { 0% { offset-distance: 0%; opacity: 1; } 52% { offset-distance: 100%; opacity: 1; }
  56% { opacity: 0; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes ld-claim { 0%, 52% { opacity: 0; } 62% { opacity: 0.24; }
  90% { opacity: 0.24; } 98%, 100% { opacity: 0; } }
@keyframes ld-shout { 0%, 58% { opacity: 0; transform: scale(0.9); transform-origin: 166px 220px; }
  66% { opacity: 1; transform: scale(1); } 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ld-route, .ld-fill, .ld-rider, .ld-label { animation: none; }
  .ld-route { stroke-dashoffset: 0; }
  .ld-fill { opacity: 0.24; }
  .ld-label { opacity: 1; }
  .ld-rider { display: none; }
}

/* ---- Hooked quotes (brand voice — swapped for real quotes at beta) ---- */
.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.lp-quotes blockquote { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 800;
  font-style: italic; line-height: 1.3; border-left: 4px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1rem; color: var(--text); }
.lp-quotes-note { margin-top: 1.4rem; font-size: 0.85rem; }
.lp-integrations { color: var(--muted); font-size: 0.92rem; border: 1px dashed var(--border);
  border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0 0 1rem; }
.lp-integrations strong { color: var(--text); }
@media (max-width: 760px) { .lp-quotes { grid-template-columns: 1fr; } }

/* ---- Landing page (INTVL-school: giant italic statements, dark grade) ---- */
.lp-display { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 900; font-style: italic;
  text-transform: uppercase; line-height: 0.92; letter-spacing: -0.01em; margin: 0.4rem 0; }
.lp-display em { display: block; font-style: inherit; color: var(--accent); }
.lp-heading { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 1.4rem; }
.lp-center { text-align: center; }
.lp-textlink { font-weight: 700; }

.lp-live { display: flex; align-items: center; gap: 0.45rem; color: var(--muted);
  font-size: 0.9rem; font-weight: 600; margin: 0; }
.lp-live .dot { width: 8px; height: 8px; border-radius: 99px; background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.lp-lede { max-width: 34rem; font-size: 1.15rem; color: var(--text); opacity: 0.92; }
.lp-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.4rem 0 0.6rem; }
.lp-btn { padding: 0.8rem 1.5rem; font-size: 1.02rem; border-radius: 10px; }
.lp-soon { cursor: default; }
.lp-soon:hover { background: transparent; color: var(--text); text-decoration: none; }

.lp-marquee { overflow: hidden; border-block: 1px solid var(--border); background: #0a0f1c;
  padding: 0.85rem 0; display: grid; gap: 0.7rem; }
.lp-marquee-track { display: flex; gap: 2.6rem; width: max-content; padding-right: 2.6rem;
  animation: lp-scroll 32s linear infinite; }
.lp-marquee-track.reverse { animation-direction: reverse; animation-duration: 44s; }
.lp-display-sm { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.lp-marquee span { font-size: 1.5rem; font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.lp-marquee span:nth-child(even) { color: var(--text); -webkit-text-stroke: 0; }
@keyframes lp-scroll { to { transform: translateX(-50%); } }

.lp-section { max-width: 1080px; margin: 0 auto; padding: 4.5rem 1.4rem 1rem; }

/* Scroll reveals: sections rise into place as they enter the viewport */
[data-reveal] { opacity: 0; transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
[data-reveal].revealed { opacity: 1; transform: none; }
.lp-how { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 3rem; align-items: center; }
.lp-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 1.3rem; }
.lp-steps li { counter-increment: step; position: relative; padding-left: 3.4rem; color: var(--muted); }
.lp-steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 99px; background: var(--accent); color: #16100a;
  font-weight: 900; display: grid; place-items: center; font-size: 1.1rem; }
.lp-steps strong { display: block; color: var(--text); font-size: 1.08rem; font-weight: 800;
  text-transform: uppercase; font-style: italic; letter-spacing: 0.02em; margin-bottom: 0.15rem; }
.lp-phone { margin: 0 auto; width: min(290px, 82vw); border-radius: 42px; border: 8px solid #1d2740;
  background: #000; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.lp-phone img { display: block; width: 100%; }

.lp-stats { background: #0a0f1c; border-block: 1px solid var(--border);
  margin-top: 4.5rem; padding: 3.4rem 1.4rem; }
.lp-stats-row { max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; color: var(--muted); }
.lp-stat { display: block; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; font-style: italic;
  color: var(--accent); line-height: 1.05; }

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-card { border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.05), transparent 45%), var(--panel); }
.lp-card h3 { margin: 0 0 0.4rem; }
.lp-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.lp-board .lp-table { width: 100%; max-width: 640px; margin: 0 auto 1rem; border-collapse: collapse; }
.lp-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }
.lp-area { text-align: right; font-weight: 800; color: var(--accent); }

.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 1rem; justify-content: center; }
.lp-plan { border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; background: var(--panel); }
.lp-plan.featured { border-color: var(--accent); box-shadow: 0 0 30px rgba(255, 122, 26, 0.15); }
.lp-plan h3 { margin: 0; text-transform: uppercase; font-style: italic; }
.lp-plan p { color: var(--muted); }
.lp-price { font-size: 2rem; font-weight: 900; color: var(--text); margin: 0.3rem 0; }
.lp-price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }

.lp-faq details { border-bottom: 1px solid var(--border); padding: 0.85rem 0; }
.lp-faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.lp-faq summary::before { content: "+"; color: var(--accent); font-weight: 900; margin-right: 0.6rem; }
.lp-faq details[open] summary::before { content: "–"; }
.lp-faq p { color: var(--muted); margin: 0.6rem 0 0; }

.lp-closer { text-align: center; padding: 5.5rem 1.4rem 6rem; }
.lp-center-actions { justify-content: center; }

@media (max-width: 760px) {
  .lp-how { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-stats-row { grid-template-columns: 1fr; }
}

/* ---- Siege story: scroll-scrubbed hero (night map peels open, a loop
        rides itself, the land floods orange) ---- */
.ss { height: 460vh; position: relative; }
/* dvh: iOS Safari's toolbars shrink the visible viewport; 100vh centers the
   scene too low and the phone slides under the bottom bar */
.ss-stage { position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden; background: #f5f6f4; }
.ss-day { position: absolute; inset: 0; z-index: 1; transform-origin: 50% 45%; will-change: transform; }
.ss-day svg, .ss-night svg { width: 100%; height: 100%; display: block; }
.ss-night { position: absolute; inset: 0; z-index: 4; will-change: clip-path; }
.ss-night-drift { transform-origin: 50% 50%; animation: ss-drift 26s ease-in-out infinite alternate; }
@keyframes ss-drift { to { transform: scale(1.05) translateY(-12px); } }

.ss-hero { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; gap: 0.2rem;
  padding: 0 1.2rem; pointer-events: none; }
.ss-hero .lp-display { text-shadow: 0 4px 34px rgba(4, 8, 16, 0.5); }
.ss-hero .lp-lede { margin: 0.7rem 0 0; }
.ss-hero .lp-actions { justify-content: center; pointer-events: auto; }
.ss-hint { position: absolute; bottom: 3.5vh; left: 50%; transform: translateX(-50%); z-index: 7;
  color: var(--muted); letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.72rem;
  animation: zoom-hint-bob 1.8s ease-in-out infinite; }

/* the ride, drawn at map scale so it lives both inside and outside the phone */
.ss-route { fill: none; stroke: #2563eb; stroke-width: 7; stroke-linecap: round;
  stroke-linejoin: round; visibility: hidden; }
.ss-route-done { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  stroke-linejoin: round; opacity: 0; }
.ss-fill { fill: var(--accent); opacity: 0; }
.ss-start { fill: #2563eb; stroke: #fff; stroke-width: 3; }
.ss-rider .halo { fill: #2563eb; opacity: 0.18; }
.ss-rider .dot { fill: #2563eb; stroke: #fff; stroke-width: 4; }
.ss-pulse { fill: none; stroke: var(--accent); stroke-width: 5; opacity: 0; }

/* phone pinned over the map; its screen is the map itself, the veil dims the rest */
.ss-phone, .ss-veil { position: absolute; left: 50%; top: 50%;
  --ph-w: clamp(250px, 26vw, 520px); width: var(--ph-w); aspect-ratio: 9 / 19;
  transform: translate(-50%, -50%); border-radius: calc(var(--ph-w) * 0.145); }
.ss-veil { z-index: 2; opacity: 0; box-shadow: 0 0 0 200vmax rgba(247, 247, 245, 0.72); }
/* above the fading title so it never ghosts across the screen; pointer-events
   off so the invisible phone can't eat hero CTA taps (the HUD CTA re-enables) */
.ss-phone { z-index: 6; opacity: 0; pointer-events: none;
  border: calc(var(--ph-w) * 0.028) solid #10151f;
  box-shadow: 0 40px 120px rgba(10, 15, 26, 0.35); will-change: transform, opacity; }
.ss-notch { position: absolute; top: 2%; left: 33%; width: 34%; height: 2.6%;
  background: #10151f; border-radius: 99px; }
.ss-rec { position: absolute; top: 6.5%; left: 0; right: 0; margin: 0; text-align: center;
  display: flex; justify-content: center; align-items: center; gap: 0.35rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #475569; }
.ss-rec .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--danger);
  animation: ss-blink 1.6s ease-in-out infinite; }
@keyframes ss-blink { 50% { opacity: 0.25; } }

.ss-hud { position: absolute; left: 4.5%; right: 4.5%; bottom: 3.5%;
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: calc(var(--ph-w) * 0.07); padding: 5% 6%; text-align: center;
  color: #0f172a; box-shadow: 0 12px 40px rgba(10, 15, 26, 0.18); }
.ss-hud-area { margin: 0; font-size: calc(var(--ph-w) * 0.115); font-weight: 900;
  font-style: italic; line-height: 1; font-variant-numeric: tabular-nums; }
.ss-hud-area small { font-size: 0.4em; font-weight: 800; color: #64748b; }
.ss-chip { display: inline-block; margin: 0.5em 0 0.9em; padding: 0.2em 0.8em;
  border-radius: 99px; font-size: calc(var(--ph-w) * 0.028); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; background: #eef1f5; color: #64748b;
  border: 1px solid #dbe1e8; }
.ss-chip.captured { background: rgba(255, 122, 26, 0.14); color: #c2410c;
  border-color: rgba(255, 122, 26, 0.5); }
.ss-hud-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; }
.ss-hud-row small { display: block; font-size: calc(var(--ph-w) * 0.024); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
.ss-hud-row strong { font-size: calc(var(--ph-w) * 0.042); font-weight: 900;
  font-variant-numeric: tabular-nums; }
.ss-cta { display: block; margin-top: 6%; opacity: 0; pointer-events: none;
  font-size: calc(var(--ph-w) * 0.04); padding: 0.7em 1em; }

@media (max-width: 640px) {
  .ss-hero .lp-display { font-size: clamp(2.4rem, 11.5vw, 3.2rem); }
  .ss-hero .lp-lede { font-size: 1rem; }
  /* portrait slice-scaling pushes the loop into the phone's notch; nudge the
     map down so the ride starts below the recording pill */
  .ss-day svg { transform: translateY(7svh); }
  .ss-hud { padding: 4% 5%; }
}

@media (prefers-reduced-motion: reduce) {
  .ss { height: 100vh; min-height: 640px; }
  .ss-stage { position: relative; }
  .ss-night-drift, .ss-rec .dot, .ss-hint { animation: none; }
  .ss-phone, .ss-veil, .ss-hint { display: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0a0f1c;
  padding: 3rem 1.4rem 1.6rem; color: var(--muted); }
.footer-grid { max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.3rem; color: var(--text); }
.footer-brand p { font-size: 0.88rem; max-width: 26rem; }
.footer-co { color: var(--accent); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; }
.footer-co span { letter-spacing: -0.35em; margin-right: 0.55em; }
.footer-col { display: grid; gap: 0.45rem; align-content: start; }
.footer-col h4 { margin: 0 0 0.3rem; color: var(--text); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.12em; }
.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-safety { max-width: 1080px; margin: 2.2rem auto 0; padding-top: 1.2rem;
  border-top: 1px solid var(--border); font-size: 0.8rem; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .zone-form { grid-template-columns: 1fr 1fr; }
  .nav { gap: 0.8rem; }
  .nav nav { gap: 0.6rem; font-size: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
}
