/* One stylesheet for every page.
   Palette unifies the app icon (Shidian/AppIcon.icon: navy #16305C -> #0A1430,
   cone #5A8AD0, ring #EAF2FB, dot #45D3FF) with the in-app night map tokens
   (Shidian/Map/MapStyle.swift: page #0A1115, panel #101A20, fog #04080B,
   line #22323A, track #4FD6C8, gold #F2C14E, silver #C9D6DE, bronze #CF9366,
   vista #B9A7FF). Zero external assets or analytics. */

:root {
  --bg: #070e18;
  --bg-top: #122647;
  --page: #0a1115;
  --panel: #0f1923;
  --panel-elev: #142231;
  --ink: #eaf2fb;
  --muted: #93a8bf;
  --subtle: #667d94;
  --line: #203449;
  --line-soft: rgba(148, 184, 224, 0.14);
  --accent: #45d3ff;
  --accent-dim: rgba(69, 211, 255, 0.14);
  --track: #4fd6c8;
  --vista: #b9a7ff;
  --vista-dim: rgba(185, 167, 255, 0.16);
  --gold: #f2c14e;
  --silver: #c9d6de;
  --bronze: #cf9366;
  --fog: #04080b;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 640px at 50% -10%, rgba(28, 66, 122, 0.45), transparent 65%),
    radial-gradient(640px 420px at 85% 22%, rgba(79, 214, 200, 0.08), transparent 70%),
    linear-gradient(180deg, #0d1d36 0%, var(--bg) 520px) var(--bg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7fe2ff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Reading pages (/privacy, /404) — keeps existing HTML structure untouched
   ========================================================================== */

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
}

header.bar {
  padding: 24px 0 16px;
}

header.bar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--display);
  letter-spacing: -0.01em;
}

header.bar img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.wrap main {
  padding: 12px 0 56px;
}

.wrap h1 {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0.4em 0 0.3em;
}

.wrap h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 2em 0 0.45em;
  color: var(--ink);
}

.wrap p {
  margin: 0 0 1em;
  color: #d4e2ef;
}

.muted {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
}

footer a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Landing layout
   ========================================================================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 14, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(69, 211, 255, 0.34);
  color: var(--accent);
  font-weight: 600;
}

.nav-links a.nav-cta:hover {
  background: rgba(69, 211, 255, 0.22);
  color: #a9ebff;
}

/* Hero */
.hero-section {
  position: relative;
  padding: 56px 0 36px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--track);
  box-shadow: 0 0 8px rgba(79, 214, 200, 0.8);
}

.hero-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-icon-wrap img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(4, 8, 16, 0.65),
    0 0 0 1px rgba(234, 242, 251, 0.12);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto 16px;
  max-width: 14ch;
  color: var(--ink);
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #06111f;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(69, 211, 255, 0.25);
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.btn-primary:hover {
  color: #06111f;
  background: #6de0ff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(69, 211, 255, 0.34);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.72);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  color: var(--ink);
  background: rgba(24, 42, 62, 0.85);
  border-color: #355475;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--subtle);
}

/* Map legend strip */
.legend-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.84rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ==========================================================================
   Interactive Demo Section
   ========================================================================== */

.demo-section {
  padding: 12px 0 72px;
}

.demo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--track);
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.demo-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
}

.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 26, 32, 0.9);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(2, 6, 14, 0.72),
    0 0 0 1px rgba(234, 242, 251, 0.04) inset;
}

/* Map stage */
.map-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #081018;
  border-right: 1px solid var(--line);
  min-width: 0;
  min-height: 540px;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16, 26, 32, 0.92);
  border-bottom: 1px solid var(--line);
}

.map-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.map-location-pill .coords {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--muted);
}

.layer-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(10, 17, 21, 0.85);
  color: var(--muted);
  font: 500 0.78rem/1 var(--sans);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.chip-btn:hover {
  border-color: #365068;
  color: var(--ink);
}

.chip-btn[aria-pressed="true"] {
  background: rgba(79, 214, 200, 0.14);
  border-color: rgba(79, 214, 200, 0.45);
  color: var(--track);
}

.chip-btn.reset-btn {
  color: var(--subtle);
}

.chip-btn.reset-btn:hover {
  color: var(--ink);
}

.map-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 440px;
  overflow: hidden;
  user-select: none;
}

.map-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.map-svg .fog-layer {
  transition: opacity 0.28s ease;
}

.map-svg .track-layer {
  transition: opacity 0.25s ease;
}

.map-svg .labels-layer {
  transition: opacity 0.2s ease;
}

.map-pin {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.map-pin:focus {
  outline: none;
}

.map-pin:hover .pin-hover-ring {
  opacity: 0.85;
}

.pin-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
  stroke: rgba(10, 17, 21, 0.94);
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke;
  pointer-events: none;
}

.pin-label.is-vista {
  fill: #e3daff;
}

.pin-label.is-discovered {
  fill: #bfd0db;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.92);
    opacity: 0.78;
  }
  70% {
    transform: scale(1.75);
    opacity: 0;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.vista-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseRing 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

@keyframes revealWave {
  0% {
    r: 10;
    opacity: 0.9;
    stroke-width: 3;
  }
  100% {
    r: 165;
    opacity: 0;
    stroke-width: 0.5;
  }
}

.reveal-wave {
  fill: rgba(185, 167, 255, 0.08);
  stroke: var(--vista);
  animation: revealWave 0.95s ease-out forwards;
}

/* Floating HUD stats on bottom of map */
.map-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 11px 16px;
  background: rgba(16, 26, 32, 0.94);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.hud-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.hud-metrics strong {
  color: var(--ink);
  font-weight: 600;
}

.hud-hint {
  color: var(--muted);
  font-size: 0.79rem;
}

/* Companion panel */
.demo-panel {
  display: flex;
  flex-direction: column;
  background: #101a20;
  min-width: 0;
  min-height: 540px;
}

.panel-pack-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.pack-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pack-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.pack-ratio {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--track);
}

.progress-track {
  margin-top: 9px;
  height: 5px;
  border-radius: 999px;
  background: #1a2a33;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--track), var(--accent));
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Panel tabs */
.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 14px;
  background: #0c1419;
  border-bottom: 1px solid var(--line);
}

.panel-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 600 0.8rem/1 var(--sans);
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.panel-tab:hover {
  color: var(--ink);
}

.panel-tab[aria-selected="true"] {
  background: #16242d;
  border-color: #273c49;
  color: var(--ink);
}

.panel-body {
  flex: 1;
  padding: 16px 18px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Point sheet (mirrors PointSheet.swift) */
.point-card {
  background: #0b1318;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.point-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.point-card-icon {
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: 2px;
}

.point-card-titles {
  flex: 1;
  min-width: 0;
}

.point-card-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

.point-card-sub {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.point-card-dist {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.point-card-about {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd8e2;
}

.point-rows {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.point-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(34, 50, 58, 0.7);
  font-size: 0.84rem;
}

.point-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.point-row-label {
  color: var(--ink);
}

.point-row-val {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.point-row-val.is-ready {
  color: var(--vista);
}

.point-row-val.is-collected {
  color: var(--track);
}

.sheet-action {
  margin-top: 14px;
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 11px;
  padding: 11px 14px;
  font: 650 0.9rem/1.1 var(--sans);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.14s ease, filter 0.14s ease;
}

.sheet-action:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.sheet-action.action-vista {
  background: var(--vista);
  color: #0a1115;
}

.sheet-action.action-walk {
  background: var(--track);
  color: #0a1115;
}

.sheet-action.action-muted {
  background: #192831;
  color: var(--muted);
  cursor: default;
}

.sheet-caption {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Quick pick list under selected card */
.quick-list-title {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  appearance: none;
  background: rgba(11, 19, 24, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.quick-item:hover {
  border-color: #365063;
  background: #13212a;
}

.quick-item[aria-current="true"] {
  border-color: rgba(69, 211, 255, 0.55);
  background: rgba(69, 211, 255, 0.08);
}

.quick-item-name {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-item-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.quick-item-tag.is-ready {
  color: var(--vista);
}

.quick-item-tag.is-collected {
  color: var(--track);
}

/* Collection grid (mirrors CollectionTab.swift) */
.tier-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 6px 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b1318;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.tile-btn:hover:not(:disabled) {
  border-color: #3a576b;
  background: #122029;
}

.tile-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.tile-btn.is-collected {
  border-color: rgba(79, 214, 200, 0.32);
}

.tile-name {
  font-size: 0.7rem;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-btn.is-discovered .tile-name,
.tile-btn.is-hidden .tile-name {
  color: var(--muted);
}

/* GeoJSON preview tab */
.code-card {
  background: #081015;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow-x: auto;
}

.code-card pre {
  margin: 0;
  font: 12px/1.55 var(--mono);
  color: #cfe0ed;
  white-space: pre;
}

.code-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   How it works — 3-step showcase
   ========================================================================== */

.feature-section {
  padding: 20px 0 68px;
}

.section-intro {
  max-width: 60ch;
  margin-bottom: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: linear-gradient(180deg, rgba(19, 34, 52, 0.75), rgba(12, 22, 34, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 17, 21, 0.85);
  border: 1px solid var(--line);
}

.step-card h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.58;
}

/* ==========================================================================
   Your Own Viewpoints — real iOS screenshots & workflow
   ========================================================================== */

.viewpoints-section {
  padding: 12px 0 76px;
}

.vp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr);
  gap: 32px;
  align-items: center;
}

.vp-copy {
  min-width: 0;
}

.vp-copy .section-heading {
  text-wrap: balance;
}

.vp-flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.vp-flow-card {
  background: linear-gradient(180deg, rgba(19, 34, 52, 0.72), rgba(12, 22, 34, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.vp-flow-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vista);
}

.vp-flow-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.vp-flow-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.54;
}

.vp-media {
  min-width: 0;
}

.vp-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.vp-phone-frame {
  margin: 0;
  padding: 7px;
  background: linear-gradient(180deg, #172736 0%, #0b141c 100%);
  border: 1px solid #263b4d;
  border-radius: 26px;
  box-shadow:
    0 24px 56px rgba(2, 6, 14, 0.65),
    0 0 0 1px rgba(234, 242, 251, 0.06) inset;
  overflow: hidden;
}

.vp-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 779 / 1560;
  border-radius: 20px;
  background: #0a1115;
}

.vp-showcase-caption {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--subtle);
  text-align: center;
}

/* ==========================================================================
   Open Format & Privacy split
   ========================================================================== */

.split-section {
  padding: 12px 0 76px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-panel {
  background: rgba(14, 24, 36, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.info-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.38rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.folder-tree {
  margin: 4px 0 0;
  padding: 14px 16px;
  background: #081018;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 0.82rem/1.7 var(--mono);
  color: #cfe0ed;
  max-width: 100%;
  overflow-x: auto;
}

.folder-tree .dim {
  color: var(--subtle);
}

.folder-tree .hl {
  color: var(--track);
}

.privacy-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.privacy-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  color: #d0deea;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--track);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  margin-top: auto;
  padding-top: 6px;
}

.text-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Bottom CTA & Site Footer
   ========================================================================== */

.cta-band {
  margin: 0 0 64px;
  padding: 38px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(69, 211, 255, 0.14), transparent 72%),
    linear-gradient(180deg, #132849 0%, #0b1629 100%);
  border: 1px solid rgba(69, 211, 255, 0.24);
  text-align: center;
}

.cta-band img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 46ch;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.footer-links a {
  margin-right: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .map-stage {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }

  .map-canvas-wrap {
    flex: none;
    aspect-ratio: 760 / 540;
    min-height: 0;
  }

  .map-svg {
    min-height: 0;
  }

  .demo-panel {
    min-height: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .vp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vp-phones {
    max-width: 600px;
    margin: 0 auto;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vp-phones {
    grid-template-columns: 1fr;
    max-width: 310px;
  }

  .vp-flow-card {
    padding: 15px 16px;
  }

  .vp-showcase-caption {
    text-align: left;
  }

  .container {
    padding: 0 16px;
  }

  .nav-links a:not(.nav-cta):not([href="/privacy"]) {
    display: none;
  }

  .nav-links {
    gap: 14px;
  }

  .hero-section {
    padding: 36px 0 26px;
  }

  .hero-icon-wrap img {
    width: 64px;
    height: 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .legend-strip {
    justify-content: flex-start;
    gap: 10px 16px;
    font-size: 0.78rem;
  }

  .map-toolbar {
    padding: 10px 12px;
  }

  .map-location-pill .coords {
    display: none;
  }

  .map-hud {
    padding: 10px 12px;
  }

  .panel-body {
    padding: 14px;
  }

  .tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-panel {
    padding: 22px 18px;
  }

  .folder-tree {
    font-size: 0.72rem;
    padding: 12px;
  }

  .cta-band {
    padding: 28px 18px;
    margin-bottom: 44px;
  }
}
