/* ============================================================================
   Landing Fyndi — strona główna (2026-11).
   Trzy motywy: dzień (`light`, domyślny), zmierzch (`dusk`), noc (`dark`).
   Palety bazowe (--bg, --ink, --accent…) pochodzą z `styles.css`; tutaj dokładamy
   wyłącznie to, czego landing potrzebuje ponad wspólne tokeny: zasłonę mapy,
   karty „żywego UI”, siatkę sekcji i ciemny pas pobrania.

   Font: Figtree (self-hosted, `assets/fonts/`) — Calibri/Carlito zostaje dla panelu.
   CSP ma `font-src 'self' data:`, więc Google Fonts byłby zablokowany.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.ld {
  --ld-font: "Figtree", "Calibri", "Carlito", system-ui, sans-serif;
  --ld-wrap-w: 1240px;
  --ld-radius: 18px;

  /* Zasłona nad mapą = kolor tła strony; trzymana jako składowe RGB, żeby móc mieszać alpha. */
  --ld-veil: 247 250 248;
  --ld-route-ghost: #7f9c94;
  --ld-card: 255 255 255;
  --ld-card-alpha: 0.97;
  --ld-card-brd: rgba(20, 32, 28, 0.07);
  --ld-shadow: 0 10px 26px rgba(20, 32, 28, 0.1), 0 30px 70px rgba(20, 32, 28, 0.1);

  --ld-route-line: #0f766e;
  --ld-route-casing: #ffffff;
  --ld-map-veil: #2a1a12;
  --ld-map-veil-alpha: 0;

  --ld-band: #14201c;
  --ld-band-ink: #eaf4f0;
  --ld-band-muted: rgba(234, 244, 240, 0.62);
  --ld-band-card: rgba(255, 255, 255, 0.06);
  --ld-band-line: rgba(255, 255, 255, 0.14);

  font-family: var(--ld-font);
  letter-spacing: -0.01em;
}

html[data-theme="dusk"] body.ld {
  --ld-veil: 30 25 23;
  --ld-route-ghost: #b39c8d;
  --ld-card: 53 44 40;
  --ld-card-brd: rgba(243, 233, 225, 0.1);
  --ld-shadow: 0 10px 26px rgba(0, 0, 0, 0.36), 0 30px 70px rgba(0, 0, 0, 0.34);
  --ld-route-line: #f3e9e1;
  --ld-route-casing: #1b1412;
  --ld-map-veil: #3a2118;
  --ld-map-veil-alpha: 0.12;
  --ld-band: #15100e;
  --ld-band-ink: #f3e9e1;
  --ld-band-muted: rgba(243, 233, 225, 0.6);
  --ld-band-card: rgba(255, 255, 255, 0.05);
  --ld-band-line: rgba(243, 233, 225, 0.14);
}

html[data-theme="dark"] body.ld {
  --ld-route-ghost: #5f8078;
  --ld-veil: 16 22 20;
  --ld-card: 26 34 30;
  --ld-card-brd: rgba(232, 238, 234, 0.1);
  --ld-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), 0 30px 70px rgba(0, 0, 0, 0.4);
  --ld-route-line: #6fd3c2;
  --ld-route-casing: #0d1412;
  --ld-map-veil: #050f0e;
  --ld-map-veil-alpha: 0.2;
  --ld-band: #0b1210;
  --ld-band-ink: #e8eeea;
  --ld-band-muted: rgba(232, 238, 234, 0.58);
  --ld-band-card: rgba(255, 255, 255, 0.05);
  --ld-band-line: rgba(232, 238, 234, 0.14);
}

body.ld h1,
body.ld h2,
body.ld h3 {
  font-family: var(--ld-font);
  letter-spacing: -0.035em;
}

.ld-wrap {
  width: min(var(--ld-wrap-w), 92vw);
  margin: 0 auto;
}

.ld-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent-strong);
  color: var(--accent-strong-ink);
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
}
.ld-skip:focus {
  left: 0;
}

/* ── GÓRNY PASEK ─────────────────────────────────────────────────────────── */

.ld-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 68px;
  background: rgb(var(--ld-veil) / 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.ld-top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.ld-brand {
  display: inline-flex;
  align-items: center;
}
.ld-logo {
  height: 26px;
  width: auto;
}
.ld-logo-night {
  display: none;
}
html:is([data-theme="dark"], [data-theme="dusk"]) .ld-logo-day {
  display: none;
}
html:is([data-theme="dark"], [data-theme="dusk"]) .ld-logo-night {
  display: block;
}

.ld-nav {
  display: flex;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
}
.ld-nav a {
  color: var(--muted);
}
.ld-nav a:hover {
  color: var(--ink);
}

.ld-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Przełącznik motywu — trzy stany, jak w apce (dzień / zmierzch / noc). */
.ld-theme {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(var(--ld-card) / 0.6);
}
.ld-theme button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.ld-theme button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ld-theme button:hover {
  color: var(--ink);
}
.ld-theme button[aria-pressed="true"] {
  background: var(--accent-strong);
  color: var(--accent-strong-ink);
}

/* ── PRZYCISKI ───────────────────────────────────────────────────────────── */

/* Przycisk bez akcji — premiera jeszcze nie ogłoszona. Szary i nieklikalny,
   ale zostaje w layoucie, żeby nikt nie pomyślał, że pobieranie zniknęło. */
.ld-btn.is-disabled,
.btn.is-disabled {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
  pointer-events: none;
}

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 22px;
  font: 600 15px/1 var(--ld-font);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ld-btn:active {
  transform: translateY(1px);
}
.ld-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ld-btn.ld-btn-primary {
  background: var(--accent-strong);
  /* Podwójna klasa = specyficzność (0,2,0); samo `.ld-btn-primary` (0,1,0) przegrywa z
     `html:is([data-theme="dark"],…) a { color: var(--accent) }` z styles.css i etykieta
     robiła się turkusowa na turkusowym tle (dokładnie ta sama pułapka co w panelu). */
  color: var(--accent-strong-ink);
  box-shadow: 0 6px 18px rgb(var(--ld-veil) / 0.18);
}
.ld-btn-primary:hover {
  background: var(--accent-strong);
  filter: brightness(1.08);
}
.ld-btn.ld-btn-ghost {
  background: rgb(var(--ld-card) / 0.72);
  color: var(--ink);
  border-color: var(--line-strong);
}
.ld-btn-ghost:hover {
  background: rgb(var(--ld-card) / 0.95);
}
.ld-btn.ld-btn-light {
  width: 100%;
  background: var(--ld-band-ink);
  color: var(--ld-band);
}
.ld-btn-light:hover {
  filter: brightness(0.96);
}
.ld-btn-small {
  padding: 10px 16px;
  font-size: 13.5px;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */

.ld-hero {
  position: relative;
  min-height: 100svh;
  padding-top: 68px;
  overflow: hidden;
  isolation: isolate;
}

/* Zanim wystartuje Mapbox, hero ma własne tło: delikatna siatka + gradient.
   Dzięki temu nie ma „białego mignięcia” i nie płacimy za statyczny render mapy. */
.ld-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgb(var(--ld-veil) / 0.9), rgb(var(--ld-veil) / 0.9)),
    radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0);
  background-size: auto, 26px 26px;
}

.ld-hero-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.ld-hero-map.is-ready {
  opacity: 1;
}

/* Motyw mapy: kanwa zawsze renderuje się w `lightPreset: day`, a zmierzch/noc to warstwa
   przyciemniająca NAD kanwą, ale POD linią trasy i znacznikami (dlatego powstała w JS jako
   element w kontenerze kanwy). Filtr CSS nie wystarczał: nawet `brightness(0.35)` na jasnej
   mapie dawał szarość zamiast nocy. */
.ld-map-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--ld-map-veil, transparent);
  opacity: var(--ld-map-veil-alpha, 0);
  transition: opacity 0.35s ease, background-color 0.35s ease;
}

.ld-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgb(var(--ld-veil)) 0%,
      rgb(var(--ld-veil)) 28%,
      rgb(var(--ld-veil) / 0.94) 37%,
      rgb(var(--ld-veil) / 0.66) 47%,
      rgb(var(--ld-veil) / 0.22) 56%,
      rgb(var(--ld-veil) / 0) 64%
    ),
    linear-gradient(
      180deg,
      rgb(var(--ld-veil) / 0.9) 0%,
      rgb(var(--ld-veil) / 0) 14%,
      rgb(var(--ld-veil) / 0) 84%,
      rgb(var(--ld-veil) / 0.9) 100%
    );
}

.ld-hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--ld-wrap-w), 92vw);
  margin: 0 auto;
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 120px;
}
.ld-hero-inner {
  /* Kontener jest pełnej szerokości i leży NAD mapą — bez `pointer-events: none` zasłaniał
     całą mapę i przeciąganie nie działało (klik trafiał w pusty div). */
  pointer-events: none;
}
.ld-hero-inner > * {
  max-width: 600px;
  pointer-events: auto;
}

.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ld-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.ld-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  font-weight: 800;
}
.ld-hero h1 span {
  color: var(--muted);
  font-weight: 500;
}

.ld-lead {
  margin: 0 0 30px;
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.ld-lead b {
  color: var(--ink);
  font-weight: 600;
}

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

.ld-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.ld-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ── KARTY „ŻYWEGO UI” NAD MAPĄ ──────────────────────────────────────────── */

.ld-widgets {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.ld-widget {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgb(var(--ld-card) / var(--ld-card-alpha));
  border: 1px solid var(--ld-card-brd);
  border-radius: 20px;
  box-shadow: var(--ld-shadow);
  backdrop-filter: blur(14px);
  animation: ld-float 7s ease-in-out infinite;
}

@keyframes ld-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.ld-widget-bot {
  right: 2.2vw;
  top: 14vh;
  width: 280px;
  padding: 12px 14px;
  animation-delay: 0.6s;
}

.ld-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: 0 0 auto;
}

.ld-w-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ld-w-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ld-w-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ld-pill {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ld-widget-count {
  right: 2.2vw;
  top: 29vh;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  animation-duration: 5.6s;
}

.ld-star {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #fbf0dc;
  color: #8a5f00;
  display: grid;
  place-items: center;
  font-size: 14px;
}
html:is([data-theme="dark"], [data-theme="dusk"]) .ld-star {
  background: rgba(201, 133, 13, 0.18);
  color: #e9b866;
}

.ld-widget-route {
  right: 2vw;
  bottom: 13vh;
  width: 300px;
  display: block;
  padding: 16px 18px;
  animation-duration: 8s;
}

.ld-w-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ld-w-title {
  display: block;
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.ld-w-stats {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.ld-w-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-text);
}

/* ── CHIPSY TRAS ─────────────────────────────────────────────────────────── */

.ld-chips {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: min(1100px, 92vw);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  border-radius: 999px;
  background: rgb(var(--ld-card) / 0.8);
  border: 1px solid var(--ld-card-brd);
  box-shadow: var(--ld-shadow);
  backdrop-filter: blur(14px);
}
.ld-chips::-webkit-scrollbar {
  display: none;
}
.ld-chips button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--ld-font);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.ld-chips button:hover {
  color: var(--ink);
}
.ld-chips button[aria-pressed="true"] {
  background: var(--accent-strong);
  color: var(--accent-strong-ink);
}



/* ── SEKCJE ──────────────────────────────────────────────────────────────── */

.ld-section {
  position: relative;
  padding: 96px 0;
}

.ld-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 38px;
}
.ld-head h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06;
  font-weight: 800;
  max-width: 20ch;
}
.ld-head-note {
  max-width: 44ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.ld-routes {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ld-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ld-loading {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ld-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--ld-radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.ld-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ld-shadow);
  border-color: var(--line-strong);
}
.ld-card-map {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}
.ld-card-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ld-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(var(--ld-card) / 0.94);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ld-badge-warn {
  color: #8a5f00;
}
html:is([data-theme="dark"], [data-theme="dusk"]) .ld-badge-warn {
  color: #e9b866;
}
.ld-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 17px;
}
.ld-card-body h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
}
.ld-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.ld-card-meta .ld-dot {
  background: var(--line-strong);
}
.ld-card-link {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-text);
}

/* ── POSTAĆ ──────────────────────────────────────────────────────────────── */

.ld-char-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.ld-stage-wrap {
  position: relative;
  min-height: 520px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: radial-gradient(
    120% 90% at 50% 8%,
    rgb(var(--ld-card) / 0.9) 0%,
    var(--bg-soft) 58%,
    var(--bg) 100%
  );
  box-shadow: var(--ld-shadow);
  overflow: hidden;
}
.ld-stage-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 220px;
  height: 32px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.16), transparent);
  filter: blur(3px);
  pointer-events: none;
}

.ld-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ld-stage model-viewer,
.ld-stage canvas {
  width: 100%;
  height: 100%;
  background: transparent !important;
  --poster-color: transparent;
  --progress-bar-color: transparent;
}
.ld-stage model-viewer::part(default-progress-bar) {
  display: none !important;
}

.ld-stage-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ld-chip {
  position: absolute;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgb(var(--ld-card) / 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--ld-shadow);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.ld-chip-1 {
  left: 26px;
  top: 64px;
}
.ld-chip-2 {
  right: 26px;
  top: 170px;
}
.ld-chip-3 {
  left: 34px;
  bottom: 150px;
}
.ld-chip-4 {
  right: 30px;
  bottom: 104px;
}
.ld-chip-5 {
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
}

.ld-char-copy h2 {
  margin: 10px 0 18px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.07;
  font-weight: 800;
}
.ld-char-lead {
  max-width: 46ch;
  margin: 0 0 24px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}

.ld-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.ld-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}
.ld-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--accent-soft);
}
.ld-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}

/* ── POBIERANIE ──────────────────────────────────────────────────────────── */

.ld-download {
  background: var(--ld-band);
  color: var(--ld-band-ink);
  padding: 88px 0 76px;
}

.ld-dl-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.ld-download h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.04;
  font-weight: 800;
  color: var(--ld-band-ink);
}
.ld-dl-lead {
  max-width: 42ch;
  margin: 0 0 30px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ld-band-muted);
}

.ld-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--ld-band-line);
}
.ld-stats dt {
  order: 2;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ld-band-muted);
}
.ld-stats dd {
  order: 1;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ld-stats div {
  display: flex;
  flex-direction: column;
}

.ld-dl-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--ld-band-card);
  border: 1px solid var(--ld-band-line);
}
.ld-dl-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.ld-qr {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}
.ld-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ld-dl-title {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 700;
}
.ld-dl-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ld-band-muted);
}
.ld-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ld-step;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ld-band-muted);
}
.ld-steps li {
  counter-increment: ld-step;
  padding-left: 22px;
  position: relative;
}
.ld-steps li::before {
  content: counter(ld-step) ".";
  position: absolute;
  left: 0;
  color: var(--ld-band-ink);
  font-weight: 700;
}

/* ── STOPKA ──────────────────────────────────────────────────────────────── */

.ld-foot {
  background: var(--ld-band);
  border-top: 1px solid var(--ld-band-line);
  padding: 30px 0 36px;
  color: var(--ld-band-muted);
  font-size: 13px;
}
.ld-foot-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.ld-foot .ld-logo {
  height: 22px;
}
.ld-foot-muted {
  color: var(--ld-band-muted);
}
.ld-foot-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.ld-foot-links a {
  color: var(--ld-band-muted);
  text-decoration: none;
}
.ld-foot-links a:hover {
  color: var(--ld-band-ink);
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .ld-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .ld-char-grid,
  .ld-dl-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ld-widget-count {
    right: 6vw;
    top: 40vh;
  }
}

@media (max-width: 860px) {
  .ld-nav {
    display: none;
  }
  .ld-widget {
    display: none;
  }
  .ld-hero {
    min-height: 0;
    padding-top: 60px;
  }
  .ld-hero-map {
    position: relative;
    inset: auto;
    height: 42svh;
    min-height: 300px;
  }
  .ld-hero::before {
    display: none;
  }
  .ld-hero-scrim {
    display: none;
  }
  .ld-hero-inner {
    width: auto;
    min-height: 0;
    margin: -34px 0 0;
    padding: 30px 6vw 26px;
    background: var(--bg);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.08);
  }
  .ld-hero-inner > * {
    max-width: none;
  }
  .ld-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    margin-bottom: 16px;
  }
  .ld-lead {
    font-size: 16px;
    margin-bottom: 22px;
  }
  .ld-btn {
    padding: 13px 18px;
    font-size: 14.5px;
  }
  .ld-meta {
    font-size: 12px;
    margin-top: 14px;
  }
  .ld-chips {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0 0 6px;
    max-width: none;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 12px 6vw 4px;
  }
  .ld-chips button {
    background: rgb(var(--ld-card) / 0.9);
    border: 1px solid var(--line);
  }
  .ld-section {
    padding: 64px 0;
  }
  .ld-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
  }
  .ld-cards {
    grid-template-columns: 1fr;
  }
  .ld-stage-wrap {
    min-height: 420px;
  }
  .ld-chip {
    font-size: 11.5px;
    padding: 7px 10px;
  }
  .ld-download {
    padding: 64px 0 56px;
  }
  .ld-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ld-top-right .ld-btn-ghost {
    display: none;
  }
  .ld-foot-in {
    gap: 12px;
  }
  .ld-foot-links {
    margin-left: 0;
    gap: 14px;
  }
}

/* ── SUWAK PRZYBLIŻENIA ───────────────────────────────────────────────────── */

.ld-zoom {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 999px;
  background: rgb(var(--ld-card) / 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

.ld-zoom-step {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 600 18px/1 var(--ld-font);
  cursor: pointer;
}

.ld-zoom-step:hover { background: rgb(var(--ld-card-brd) / 0.6); }

.ld-zoom-track {
  position: relative;
  width: 4px;
  height: 132px;
  border-radius: 999px;
  background: var(--ld-card-brd);
  cursor: pointer;
  touch-action: none;
}

.ld-zoom-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  border-radius: 999px;
  background: var(--accent);
}

.ld-zoom-thumb {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 16px;
  height: 16px;
  margin: 0 0 -8px -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

/* ── TRASY W TLE (wszystkie, nie tylko wybrana) ───────────────────────────── */

.ld-route-ghost {
  fill: none;
  stroke: var(--ld-route-ghost);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 6;
  opacity: 0.9;
}

/* Mapbox przy `cooperativeGestures` zasłania mapę czarną płachtą z angielskim
   „Use ctrl + scroll to zoom the map”. Wolimy własną, dyskretną podpowiedź. */
.mapboxgl-scroll-zoom-blocker,
.mapboxgl-touch-pan-blocker {
  display: none !important;
}

.ld-map-hint {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(var(--ld-card) / 0.88);
  color: var(--muted);
  font: 600 11px/1.3 var(--ld-font);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.ld-hint-touch { display: none; }

@media (max-width: 760px) {
  .ld-hint-desk { display: none; }
  .ld-hint-touch { display: inline; }
}

/* ── WARSTWA 3D (boty i skrzynki nad mapą) ───────────────────────────────── */

.ld-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Boty: element markera Mapboxa (kotwica „bottom” = punkt na ziemi). */
.ld-bot3d {
  position: relative;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Kwadrat, w którym renderuje się postać; skalowany z zoomem, dół = stopy w punkcie. */
.ld-bot3d-inner {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  transform-origin: 50% 100%;
  will-change: transform;
}

.ld-bot3d model-viewer {
  width: 100%;
  height: 100%;
  background: transparent !important;
  --poster-color: transparent;
  --progress-bar-color: transparent;
}

/* Etykieta nad modelem 3D (warstwa rysuje ją sama i przesuwa w każdej klatce). */
.ld-botmark3d {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(var(--ld-card) / 0.94);
  color: var(--ink);
  font: 700 10.5px/1.25 var(--ld-font);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  will-change: transform;
}

/* ── LINIA TRASY (SVG nad kanwą mapy) ─────────────────────────────────────── */

.ld-route-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.ld-route-casing {
  fill: none;
  stroke: var(--ld-route-casing);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}
.ld-route-line {
  fill: none;
  stroke: var(--ld-route-line);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── ZNACZNIKI NA MAPIE (DOM, nie warstwy stylu) ─────────────────────────── */

.ld-stop {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2.5px solid var(--accent-strong);
  color: var(--ink);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--ld-font);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  cursor: default;
}

.ld-botmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.ld-botmark-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgb(var(--ld-card) / 0.96);
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 17px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.ld-botmark-label {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(var(--ld-card) / 0.94);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .ld-widget {
    animation: none;
  }
  .ld-hero-map {
    transition: none;
  }
  .ld-card:hover {
    transform: none;
  }
}
