:root {
  --bg: #e8edf4;
  --bg-2: #f4f6f9;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --panel-2: rgba(16, 18, 24, 0.04);
  --line: rgba(16, 18, 24, 0.08);
  --line-2: rgba(16, 18, 24, 0.14);
  --text: #101218;
  --muted: #5c6572;
  --faint: #6d7684;
  --accent: #111827;
  --accent-ink: #ffffff;
  --danger: #c62845;
  --ocean: #070c16;
  --land: #1b2d4a;
  --land-stroke: #3a5580;
  --grat: rgba(186, 208, 236, 0.16);
  --arc-case: #fb923c;
  --radius: 28px;
  --shadow: 0 24px 60px -36px rgba(16, 24, 40, 0.45), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  --shadow-sm: 0 1px 2px rgba(16, 18, 24, 0.05), 0 10px 24px -18px rgba(16, 18, 24, 0.4);
  --ring: 0 0 0 4px rgba(47, 91, 255, 0.22);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #07080d;
  --bg-2: #10131b;
  --panel: rgba(18, 21, 30, 0.78);
  --panel-solid: #1a1e29;
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #b4bdca;
  --faint: #8e98a8;
  --accent: #f1f5f9;
  --accent-ink: #0b1020;
  --danger: #ff8ea3;
  --shadow: 0 28px 70px -36px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ring: 0 0 0 4px rgba(109, 140, 255, 0.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1100px 480px at 88% -12%, rgba(17, 24, 39, 0.05), transparent 58%),
    radial-gradient(800px 360px at -8% 8%, rgba(17, 24, 39, 0.04), transparent 52%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-feature-settings: "cv11" 1, "ss01" 1;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
[data-theme="dark"] body {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(47, 91, 255, 0.18), transparent 55%),
    radial-gradient(700px 320px at 0% 0%, rgba(249, 115, 22, 0.08), transparent 50%),
    var(--bg);
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.lb-gate {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 20px 72px;
}
.lb-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 22px; letter-spacing: -0.03em; text-decoration: none; font-weight: 650;
}
.lb-brand svg { color: var(--muted); }
.lb-gate h1 {
  margin: 22px 0 10px;
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 56px);
  line-height: 0.98; letter-spacing: -0.055em; font-weight: 680;
  text-align: center; max-width: 14ch;
}
.lede { margin: 0 0 32px; max-width: 38ch; text-align: center; color: var(--muted); font-size: 16px; }
.lb-hero-foot { margin: 26px 0 0; color: var(--faint); font-size: 13px; }
.lb-hero-foot a { color: var(--muted); }
.lb-kicker {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.lb-auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 22px;
  backdrop-filter: blur(22px);
}
[data-theme="dark"] .lb-auth-card { border-color: rgba(255, 255, 255, 0.08); }
.fine { margin: 14px 0 0; color: var(--faint); font-size: 13px; line-height: 1.45; }
.oauth-stack { display: grid; gap: 10px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 14px; border-radius: 14px;
  font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.oauth-btn:hover { transform: translateY(-1px); text-decoration: none; }
.oauth-mark { width: 18px; height: 18px; flex: none; }
.oauth-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 550; }
.oauth-x { background: #0f1419; color: #fff; border: 1px solid #0f1419; font-weight: 700; }
.oauth-google:hover { background: #f8f9fa; }
.oauth-x:hover { background: #000; }
:root[data-theme="dark"] .oauth-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
:root[data-theme="dark"] .oauth-google:hover { background: #1f1f1f; }
:root[data-theme="dark"] .oauth-x { background: #fff; color: #0f1419; border-color: #fff; }
:root[data-theme="dark"] .oauth-x:hover { background: #e7e9ea; }
.oauth-or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.oauth-or::before, .oauth-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.oauth-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.oauth-row div { display: flex; flex-direction: column; gap: 2px; }
.oauth-row b { font-weight: 650; }
.oauth-row span { color: var(--muted); font-size: 13px; }
.lb-switch { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; width: fit-content;
  background: var(--panel-2); border-radius: 14px; }
.lb-switch button {
  border: 0; background: transparent; padding: 8px 14px; cursor: pointer;
  color: var(--muted); font-weight: 650; font-size: 14px; border-radius: 10px;
  letter-spacing: -0.015em;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.lb-switch button[aria-selected="true"] {
  color: var(--text); background: var(--panel-solid);
  box-shadow: var(--shadow-sm);
}

.lb-top {
  position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
}
.lb-word {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--serif); font-weight: 650; font-size: 20px; letter-spacing: -0.03em;
}
.lb-pill {
  font-family: var(--sans); font-size: 11px; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px;
  backdrop-filter: blur(12px);
}
.lb-top-spacer { flex: 1; }
.lb-who { font-size: 14px; color: var(--muted); font-weight: 550; }
.lb-wrap { max-width: 1120px; margin: 0 auto; padding: 36px 28px 104px; }
.lb-page-head {
  display: flex; justify-content: space-between; gap: 20px; align-items: flex-end;
  margin: 6px 0 4px;
}
.lb-page-head h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -0.055em; line-height: 0.98; font-weight: 680;
}
.lb-page-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.lb-tabs {
  display: flex; gap: 2px; overflow-x: auto;
  margin: 22px 0 32px; padding-bottom: 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 64px; z-index: 8;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
}
.lb-tabs button {
  border: 0; background: none; border-radius: 0;
  padding: 14px 16px 12px; margin-bottom: -1px;
  cursor: pointer; color: var(--muted); font-weight: 620; font-size: 14px;
  letter-spacing: -0.015em;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.lb-tabs button:hover { color: var(--text); }
.lb-tabs button[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.lb-years {
  display: flex; gap: 4px; align-items: center; margin: 0 0 18px;
  width: fit-content; max-width: 100%; overflow-x: auto;
  padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.lb-years button {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 13px;
  cursor: pointer; color: var(--muted); font-weight: 640; font-size: 13px;
  letter-spacing: -0.015em;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.lb-years button[aria-pressed="true"] {
  color: var(--text); background: var(--panel-solid); box-shadow: var(--shadow-sm);
}

.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border: 0; border-radius: 14px;
}
.seg button {
  border: 0; background: transparent; border-radius: 10px;
  padding: 7px 13px; cursor: pointer; color: var(--muted);
  font-weight: 650; font-size: 13px; letter-spacing: -0.015em;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.seg button[aria-pressed="true"] {
  background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow-sm);
}

.lb-stage {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #070c16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px -48px rgba(7, 12, 22, 0.85), 0 0 0 1px rgba(7, 12, 22, 0.35);
  margin-bottom: 28px;
}
.lb-map-frame { height: min(68vh, 640px); min-height: 480px; background: #070c16; }
#lb-map { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#lb-map:active { cursor: grabbing; }
#lb-map .sphere { fill: url(#lb-ocean); }
#lb-map .atmosphere { pointer-events: none; }
#lb-map .graticule { fill: none; stroke: var(--grat); stroke-width: 0.6; }
#lb-map .land { fill: var(--land); stroke: var(--land-stroke); stroke-width: 0.55; }
#lb-map .route-glow {
  fill: none; stroke: var(--arc-case); stroke-linecap: round; stroke-opacity: 0.55;
  filter: url(#lb-glow);
}
#lb-map .route-arc { fill: none; stroke-linecap: round; }
#lb-map .route-arc.is-draw {
  stroke-dasharray: 1;
  animation: lb-draw 980ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
#lb-map .apt { cursor: pointer; }
#lb-map .apt-dot {
  fill: #fff; stroke: #fb923c; stroke-width: 2;
  transition: r 160ms ease;
}
#lb-map .apt:hover .apt-dot { r: 6px; }
#lb-map .apt-label {
  fill: #f8fafc; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  font-family: var(--sans);
  paint-order: stroke; stroke: #070c16; stroke-width: 4px;
}
#lb-map .apt-label.is-hidden { visibility: hidden; }
#lb-map .apt:hover .apt-label.is-hidden { visibility: visible; }
@keyframes lb-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.lb-map-tools {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: flex; gap: 8px; align-items: center;
}
.lb-stage .seg {
  background: rgba(8, 12, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}
.lb-stage .seg button { color: rgba(248, 250, 252, 0.78); }
.lb-stage .seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.94); color: #101218; }
.lb-legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(8, 12, 22, 0.55);
  color: rgba(248, 250, 252, 0.86); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}
.lb-legend i, .swatch { display: inline-block; width: 16px; height: 3px; border-radius: 99px; margin-right: 5px; vertical-align: middle; }
.swatch.s1 { background: #fdba74; }
.swatch.s2 { background: #f97316; }
.swatch.s3 { background: #fb923c; }
.swatch.s5 { background: #fed7aa; }
.swatch.s10 { background: #fff7ed; }
.lb-legend .dash { color: rgba(248, 250, 252, 0.62); font-weight: 550; }
.lb-empty {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 48px));
  background: rgba(10, 14, 24, 0.72);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px;
  padding: 26px 24px 22px; text-align: center;
  box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.lb-empty h2 {
  margin: 0 0 8px; font-family: var(--sans); font-size: 28px;
  letter-spacing: -0.045em; font-weight: 680;
}
.lb-empty p { margin: 0 0 16px; color: rgba(248, 250, 252, 0.74); font-size: 14px; }

.lb-headline {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.85fr;
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  margin: 0 0 22px; overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
[data-theme="dark"] .lb-headline { border-color: rgba(255, 255, 255, 0.08); }
.lb-stat { padding: 26px 28px 24px; border-right: 1px solid var(--line); }
.lb-stat:last-child { border-right: 0; }
.lb-stat .v {
  font-family: var(--sans); font-weight: 700;
  font-size: 36px; letter-spacing: -0.06em; line-height: 0.95;
  font-variant-numeric: tabular-nums lining-nums;
}
.lb-stat.lead .v { font-size: 48px; }
.lb-stat .k { margin-top: 12px; font-size: 13px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.lb-stat .s { margin-top: 2px; color: var(--faint); font-size: 12px; }
.lb-aside {
  margin: 4px 4px 8px; color: var(--muted); font-size: 15px;
}
.lb-aside strong {
  color: var(--text); font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.lb-aside span { color: var(--faint); padding: 0 6px; }
.lb-note { color: var(--faint); font-size: 13px; margin: 0 0 32px; max-width: 78ch; }

.lb-panel, .lb-sheet {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 8px 26px 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
[data-theme="dark"] .lb-panel,
[data-theme="dark"] .lb-sheet { border-color: rgba(255, 255, 255, 0.08); }
.lb-panel { animation: lb-in 320ms ease; }
@keyframes lb-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.lb-subtabs {
  display: inline-flex; gap: 2px; margin: 16px 0 20px; padding: 4px;
  border-bottom: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.lb-subtabs button {
  border: 0; background: transparent; border-radius: 10px;
  padding: 8px 14px; cursor: pointer;
  color: var(--muted); font-weight: 650; font-size: 14px; letter-spacing: -0.015em;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.lb-subtabs button[aria-selected="true"] {
  color: var(--text); background: var(--panel-solid); box-shadow: var(--shadow-sm);
}
.lb-insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.lb-panel h2, .lb-sheet h2, .lb-insight-grid h2 {
  margin: 0 0 12px; font-size: 12px; font-weight: 650; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
}
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 12px 8px; margin: 0 -8px; border-top: 1px solid var(--line); font-size: 15px;
  border-radius: 12px;
  transition: background 160ms ease;
}
.lb-list li:first-child { border-top: 0; }
.lb-list li:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.lb-list .meta { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.lb-bars { display: grid; gap: 14px; }
.lb-bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.lb-bar .track { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.lb-bar .fill {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2f5bff, #8eabff);
}
.lb-bar .n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.lb-extremes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lb-extreme {
  background: color-mix(in srgb, var(--panel-solid) 70%, transparent);
  border-radius: 18px; padding: 16px 16px 14px;
  border: 1px solid var(--line);
}
.lb-extreme .k { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.lb-extreme .route {
  font-family: var(--sans); font-size: 26px; letter-spacing: -0.045em; font-weight: 700;
  margin-top: 6px; font-variant-numeric: tabular-nums;
}
.lb-extreme .lb-meta { margin-top: 4px; }
.lb-extreme a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 650; color: var(--accent); }

.lb-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.lb-toolbar .lb-years { margin: 0; }
.lb-flights { padding: 8px 12px; }
.lb-flight {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center;
  padding: 16px 14px; border-top: 1px solid var(--line); border-radius: 18px;
  transition: background 160ms ease;
}
.lb-flight:first-child { border-top: 0; }
.lb-flight:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.lb-route {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.045em; font-size: 26px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.lb-route span { color: var(--faint); font-weight: 500; font-size: 13px; letter-spacing: 0; padding: 0 8px; }
.lb-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.lb-dist { font-variant-numeric: tabular-nums; font-weight: 680; text-align: right; font-size: 15px; letter-spacing: -0.03em; }
.lb-dist span { display: block; color: var(--faint); font-weight: 550; font-size: 12px; margin-top: 2px; letter-spacing: 0; }
.lb-actions { display: flex; gap: 2px; margin-top: 6px; }
.lb-search-field { min-width: min(280px, 100%); }
.lb-search { width: 100%; }

label.field, .field { display: grid; gap: 6px; font-size: 13px; font-weight: 640; color: var(--muted); position: relative; }
.field input, .field textarea, .field select, .lb-search, .drop input {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
  border: 1px solid var(--line-2); border-radius: 14px;
  padding: 12px 14px; font-weight: 550; color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus, .lb-search:focus, .drop input:focus {
  border-color: var(--accent); box-shadow: var(--ring); outline: none; background: var(--panel-solid);
}
.field-inline { display: flex; gap: 8px; }
.field-inline input { flex: 1; }
.field-inline .btn { flex: none; }
.lb-form { display: grid; gap: 26px; }
.lb-narrow { max-width: 720px; }
.form-intro h2 {
  margin: 10px 0 6px; font-family: var(--sans); font-size: 32px; letter-spacing: -0.045em;
  text-transform: none; color: var(--text); font-weight: 680;
}
.form-intro p { margin: 0; color: var(--muted); font-size: 15px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
legend {
  padding: 0; margin: 0 0 2px; font-size: 12px; font-weight: 650; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
}
.lb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.lb-grid > * { min-width: 0; }
.lb-grid .wide { grid-column: 1 / -1; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6;
  list-style: none; margin: 0; padding: 6px; background: var(--panel-solid);
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); max-height: 240px; overflow: auto;
}
.suggest li { padding: 8px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--text); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--panel-2); }
.suggest small { display: block; color: var(--muted); font-weight: 500; }
.choice { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.choice label {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; font-weight: 600; color: var(--muted);
  background: color-mix(in srgb, var(--panel-solid) 80%, transparent);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.choice input {
  position: absolute; width: 1px; height: 1px; min-width: 0; max-width: 1px; padding: 0; border: 0;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.choice label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="dark"] .choice label:has(input:checked) { color: #07080d; }
.choice label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn, .btn-primary, .btn-ghost, .btn-danger, .btn-quiet {
  border-radius: 14px; padding: 11px 16px; font-weight: 650; cursor: pointer;
  border: 1px solid transparent; min-height: 42px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.015em;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, color 160ms ease;
}
.btn-primary {
  background: linear-gradient(180deg, #4a72ff 0%, #2f5bff 100%);
  color: #fff; box-shadow: 0 10px 24px -14px rgba(47, 91, 255, 0.9);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost, .btn {
  background: var(--panel-solid); border-color: var(--line-2); color: var(--text);
}
.btn:hover, .btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.btn-danger { background: transparent; color: var(--danger); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn-quiet { background: none; border: 0; color: var(--muted); min-height: 32px; padding: 4px 8px; font-size: 13px; }
.btn-quiet.danger { color: var(--danger); }
.btn-quiet:hover { color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.banner {
  border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.banner.error { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); }
.empty { padding: 32px 12px; color: var(--muted); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 80%, transparent);
  color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, background 160ms ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.lb-stage .icon-btn {
  background: rgba(8, 12, 22, 0.5);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); font-weight: 550; }
.check input { margin-top: 3px; }
.share-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  word-break: break-all; background: var(--panel-2); border-radius: 12px; padding: 10px 12px;
}
.drop {
  display: grid; gap: 8px; padding: 22px; border: 1px dashed var(--line-2);
  border-radius: 20px; background: color-mix(in srgb, var(--panel-solid) 55%, transparent);
  color: var(--muted); font-size: 13px; font-weight: 650;
}
.drop input { background: var(--panel-solid); }
table.preview { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
table.preview th, table.preview td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.preview th { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; }
.lb-settings { display: grid; gap: 18px; max-width: 720px; }
.lb-settings .lb-sheet h2 {
  margin-top: 16px; font-family: var(--sans); font-size: 26px; letter-spacing: -0.04em;
  text-transform: none; color: var(--text); font-weight: 680;
}
.danger-sheet h2 { color: var(--danger); }

@media (max-width: 860px) {
  .lb-wrap { padding: 24px 16px 80px; }
  .lb-headline { grid-template-columns: 1fr 1fr; }
  .lb-stat { border-bottom: 1px solid var(--line); }
  .lb-stat:nth-child(2n) { border-right: 0; }
  .lb-stat.lead { grid-column: 1 / -1; }
  .lb-stat.lead .v { font-size: 42px; }
  .lb-insight-grid, .lb-extremes, .lb-grid { grid-template-columns: minmax(0, 1fr); }
  .lb-map-frame { height: 440px; min-height: 380px; }
  .lb-route { font-size: 22px; }
  .lb-toolbar { flex-direction: column; align-items: stretch; }
  .lb-page-head h1 { font-size: 34px; }
  .lb-subtabs { display: flex; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 560px) {
  .lb-headline { grid-template-columns: 1fr 1fr; }
  .lb-stat { padding: 18px 16px; }
  .lb-stat .v { font-size: 28px; }
  .lb-legend { position: static; border-radius: 0; justify-content: flex-start; }
  .lb-map-tools { top: 10px; right: 10px; }
  .lb-flight { grid-template-columns: 1fr; }
  .lb-dist { text-align: left; }
  .lb-top { padding: 0 14px; }
  .lb-who { display: none; }
  .form-intro h2 { font-size: 28px; }
  .lb-stage { border-radius: 24px; }
}

/* Marketing page — Modul-style: big type, pastel washes, light parallax. */
body:not(.lb-in-app) { background: #f4f2ff; }
[data-theme="dark"] body:not(.lb-in-app) { background: #070a12; }
#lb-marketing {
  --bg: #f4f2ff;
  --pastel-a: #e8d4ff;
  --pastel-b: #ffd8c8;
  --pastel-c: #c8e8ff;
  --panel: #ffffff;
  --text: #0f1220;
  --muted: #4a5168;
  --faint: #6b7280;
  --accent: #111827;
  --accent-ink: #ffffff;
  --line: rgba(15, 18, 32, 0.08);
  --line-2: rgba(15, 18, 32, 0.14);
  --radius: 16px;
  --m-wide: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
[data-theme="dark"] #lb-marketing {
  --bg: #070a12;
  --pastel-a: rgba(120, 80, 200, 0.22);
  --pastel-b: rgba(255, 140, 90, 0.14);
  --pastel-c: rgba(80, 160, 255, 0.16);
  --panel: #12192b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #94a3b8;
  --accent: #f1f5f9;
  --accent-ink: #0b1020;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
}
.m-top, .m-block, .m-foot { width: var(--m-wide); margin-left: auto; margin-right: auto; }
.m-hero, .m-features { width: var(--m-wide); margin-left: auto; margin-right: auto; }
.m-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0 12px; width: var(--m-wide);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
}
.m-brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700; font-size: 22px; letter-spacing: -0.03em;
  text-decoration: none; color: var(--text);
}
.m-beta { font-size: 12px; font-weight: 650; color: var(--muted); }
.m-spacer { flex: 1; }
.m-textlink { font-size: 13px; font-weight: 650; color: var(--muted); text-decoration: none; }
.m-textlink:hover { color: var(--text); }
.m-hero {
  position: relative;
  padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 6vw, 72px);
}
.m-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.m-blob {
  position: absolute; border-radius: 50%; filter: blur(64px);
  opacity: 0.85; will-change: transform;
}
.m-blob-a { width: min(520px, 70vw); height: min(520px, 70vw); background: var(--pastel-a); top: -8%; right: -6%; }
.m-blob-b { width: min(440px, 60vw); height: min(440px, 60vw); background: var(--pastel-b); bottom: 18%; left: -10%; }
.m-blob-c { width: min(380px, 55vw); height: min(380px, 55vw); background: var(--pastel-c); top: 42%; right: 22%; opacity: 0.65; }
.m-hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 48px); }
.m-hero-intro { max-width: 52rem; }
.m-kicker {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--panel) 88%, transparent);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.m-display {
  margin: 0 0 16px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 680; letter-spacing: -0.055em; line-height: 0.92;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
}
.m-display-line { display: block; }
.m-display-accent {
  background: linear-gradient(105deg, #2f5bff 0%, #7c5cff 42%, #ff8a5c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .m-display-accent {
  background: linear-gradient(105deg, #8eabff 0%, #c4b5fd 45%, #ffb088 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-lede {
  margin: 0 0 14px;
  font-size: clamp(1.125rem, 2.2vw, 1.45rem); line-height: 1.35;
  font-weight: 550; color: var(--text); max-width: 28ch;
}
.m-hero-desc, .m-block p, .m-card p {
  margin: 0 0 14px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 42rem;
}
.m-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
#lb-marketing .btn-primary {
  padding: 13px 22px; min-height: 48px; border-radius: 999px;
  font-size: 15px; box-shadow: 0 14px 36px -16px rgba(47, 91, 255, 0.85);
}
#lb-marketing .btn {
  padding: 13px 22px; min-height: 48px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border-color: var(--line-2);
}
.m-access {
  width: auto; max-width: none;
  margin: clamp(28px, 4vw, 40px) 0 0; padding-bottom: 0;
}
.m-split { display: grid; gap: 16px; padding-bottom: 28px; }
.m-hero-shot {
  margin: 0; perspective: 1200px;
  transform: translateZ(0);
}
.m-hero-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); text-align: center; }
.m-hero-shot img, .m-feature img {
  width: 100%; height: auto; display: block;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--line-2) 80%, transparent);
  background: var(--panel);
  box-shadow: 0 40px 80px -48px rgba(15, 18, 32, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}
[data-theme="dark"] .m-hero-shot img, [data-theme="dark"] .m-feature img {
  box-shadow: 0 48px 90px -50px rgba(0, 0, 0, 0.85);
}
.m-parallax-shot { will-change: transform; }
.m-features { margin-top: clamp(48px, 8vw, 96px); margin-bottom: 8px; }
.m-features-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 36rem; }
.m-section-kicker {
  margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.m-section-title {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 680;
  letter-spacing: -0.045em; line-height: 1.05; color: var(--text);
}
.m-feature {
  display: grid; gap: 12px 28px; align-items: start;
  margin: 0 0 clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}
.m-feature:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.m-feature-num {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
.m-feature h2 {
  margin: 0 0 6px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 680; letter-spacing: -0.04em; line-height: 1.08;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text);
}
.m-feature p { margin: 0 0 8px; font-size: 16.5px; line-height: 1.55; color: var(--muted); max-width: 40rem; }
.m-feature p + p { margin-bottom: 14px; color: var(--text); }
.m-feature img { margin-top: 8px; }
.m-block { padding: clamp(48px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); }
.m-block.m-faq .m-section-title { margin-bottom: 8px; }
.m-block h2, .m-card h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
}
.m-card h2 { font-size: 28px; margin: 0 0 10px; color: var(--text); }
.m-block a, .m-card a, .m-foot a { color: var(--text); }
.m-faq dl { margin: 0; max-width: 40rem; }
.m-faq dt {
  font-weight: 650; color: var(--text); margin: 20px 0 6px;
  font-size: 1.05rem; letter-spacing: -0.02em;
}
.m-faq dd { margin: 0; color: var(--muted); line-height: 1.55; font-size: 16px; }
.m-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 18px 40px -28px rgba(17, 24, 39, 0.5);
  display: flex; flex-direction: column;
  scroll-margin-top: 20px;
}
[data-theme="dark"] .m-card { box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.75); }
.m-card h2 { margin-bottom: 8px; }
.m-card > p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.45; }
.m-card .lb-form {
  gap: 14px; flex: 1;
  display: flex; flex-direction: column;
}
.m-card .field { gap: 5px; }
.m-card .field input, .m-card .field textarea {
  background: #f4f6f9; border-color: #d5dbe3; border-radius: 12px;
  min-height: 46px; padding: 11px 14px;
}
.m-card input[type="email"], .m-card input[type="password"] { padding-inline-end: 46px; }
.m-card .field textarea { min-height: 96px; }
.m-card .field input:focus, .m-card .field textarea:focus {
  background: #fff; border-color: #2f5bff; box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.16);
}
[data-theme="dark"] .m-card .field input,
[data-theme="dark"] .m-card .field textarea {
  background: #0c1220; border-color: #334155;
}
[data-theme="dark"] .m-card .field input:focus,
[data-theme="dark"] .m-card .field textarea:focus {
  background: #10182a; border-color: #8eabff; box-shadow: 0 0 0 4px rgba(109, 140, 255, 0.22);
}
.m-card .oauth-stack { margin-top: 12px; }
.m-card .oauth-google {
  background: #fff; border-color: #dadce0;
  box-shadow: 0 1px 2px rgba(16, 18, 24, 0.08);
}
[data-theme="dark"] .m-card .oauth-google {
  background: #131314; border-color: #8e918f; box-shadow: none;
}
.m-card .oauth-or { font-size: 11px; letter-spacing: 0.12em; margin: 16px 0 12px; color: var(--faint); }
.m-card .lb-switch { margin: 0 0 14px; background: #eef1f6; }
[data-theme="dark"] .m-card .lb-switch { background: #0c1220; }
.m-card .lb-switch button[aria-selected="true"] { background: #fff; }
[data-theme="dark"] .m-card .lb-switch button[aria-selected="true"] { background: #1a2236; color: var(--text); }
.m-card .fine { font-size: 13px; margin: 0; line-height: 1.45; }
.m-card .btn-primary { width: 100%; margin-top: auto; }
.m-card .lb-note { margin: 0; }
.m-card .lb-note:empty { display: none; }
.lb-grid .lb-note { margin: 0; }
.m-foot { padding: 8px 0 40px; font-size: 13px; color: var(--muted); text-align: center; }
.m-foot p { margin: 0 0 6px; }
.hp {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
@media (min-width: 800px) {
  .m-split { grid-template-columns: 1fr 1fr; align-items: stretch; width: min(960px, calc(100% - 40px)); }
  .m-hero .m-split, .m-access { width: auto; }
  #waitlist-form textarea { flex: 1; min-height: 112px; }
  .m-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto 1fr;
  }
  .m-feature-num { grid-column: 1; grid-row: 1; }
  .m-feature h2 { grid-column: 1; grid-row: 2; }
  .m-feature p { grid-column: 1; }
  .m-feature img { grid-column: 2; grid-row: 1 / span 10; margin-top: 0; align-self: center; }
  .m-feature:nth-of-type(even) .m-feature-num,
  .m-feature:nth-of-type(even) h2,
  .m-feature:nth-of-type(even) p { grid-column: 2; }
  .m-feature:nth-of-type(even) img { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .m-parallax-shot { transform: none !important; }
  .m-blob { filter: blur(48px); }
}
