/* ==== Leaflet container ==== */
.map-outer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: #f3efe7;
}
@media (max-width: 900px) {
  .map-outer { min-height: 380px; height: 380px; }
}
.map-inner {
  position: absolute; inset: 0;
  z-index: 1;
}
.leaflet-container { background: #f3efe7 !important; font-family: 'Satoshi', sans-serif !important; }
.station-marker { background: transparent !important; border: none !important; }
.mk-wrap {
  transition: transform 0.2s ease;
  cursor: pointer;
}
.mk-wrap:hover { transform: scale(1.08); z-index: 500; }
.mk-wrap.flash {
  animation: mk-flash 1s ease-out;
}
@keyframes mk-flash {
  0% { filter: brightness(1.6); transform: scale(1.2); }
  100% { filter: none; transform: scale(1); }
}

.map-legend {
  position: absolute;
  bottom: 18px; left: 18px;
  z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.map-legend-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.legend-items { display: flex; gap: 14px; flex-wrap: wrap; }
.legend-items .li {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
}
.legend-items .sw {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
}

.map-city {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 10;
  background: #0a0a0a;
  color: #fff;
  padding: 8px 14px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.map-city-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  position: relative;
}
.map-city-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(234,194,18,0.6);
  animation: pulse-dot 1.6s infinite;
  will-change: transform, opacity;
}
@keyframes pulse-dot {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.flash-toast {
  position: absolute;
  bottom: 18px; right: 18px;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.18);
  animation: toast-in 0.4s cubic-bezier(.2,.8,.2,1);
  max-width: 280px;
}
@keyframes toast-in {
  from { transform: translate(20px, 8px); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}
.flash-ico {
  width: 36px; height: 36px; border-radius: 5px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flash-user { font-weight: 700; font-size: 13px; }
.flash-meta { font-size: 11px; color: var(--mute); font-family: 'JetBrains Mono', monospace; }

/* ==== Phone ==== */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300/610;
  margin: 0 auto;
}
.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  padding: 10px;
  box-shadow:
    0 50px 80px -20px rgba(0,0,0,0.25),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone-notch {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 95px; height: 28px;
  background: #000;
  border-radius: 5px;
  z-index: 10;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: #f7f3ea;
}
.phone-status {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 0;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0a0a0a;
  z-index: 5;
}
.phone-status-right { display: flex; gap: 5px; align-items: center; }
.battery {
  width: 22px; height: 11px;
  border: 1px solid #0a0a0a;
  border-radius: 3px;
  padding: 1px;
  position: relative;
}
.battery::after {
  content: '';
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: #0a0a0a;
  border-radius: 0 1px 1px 0;
}
.battery div {
  width: 80%; height: 100%; background: #0a0a0a; border-radius: 1px;
}
.phone-content {
  position: absolute;
  top: 48px; bottom: 0; left: 0; right: 0;
  overflow: hidden;
}

/* Screen: Camera */
.scr-cam {
  position: relative; width: 100%; height: 100%;
  background: #0a0a0a;
  overflow: hidden;
}
.scr-cam::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: url('/landing/upload-11-bg.jpg') center center / cover no-repeat;
  animation: scr-shake 7.3s ease-in-out infinite;
  will-change: transform;
  z-index: 0;
}
@keyframes scr-shake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  10%  { transform: translate(-2.4px, 1.6px) rotate(-0.25deg); }
  20%  { transform: translate(2.8px, -1.2px) rotate(0.32deg); }
  30%  { transform: translate(-1.6px, -2.6px) rotate(-0.18deg); }
  40%  { transform: translate(2.2px, 2.4px) rotate(0.28deg); }
  50%  { transform: translate(-2.8px, -0.8px) rotate(-0.34deg); }
  60%  { transform: translate(1.4px, -2.2px) rotate(0.22deg); }
  70%  { transform: translate(-2.2px, 1.8px) rotate(-0.3deg); }
  80%  { transform: translate(2.6px, 2.2px) rotate(0.16deg); }
  90%  { transform: translate(-1.2px, -1.4px) rotate(-0.2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .scr-cam::before { animation: none; }
}
.scr-cam-top {
  position: absolute; top: 16px; left: 0; right: 0;
  display: flex; justify-content: center;
  z-index: 5;
}
.scr-cam-chip {
  padding: 7px 14px;
  border-radius: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.dot-rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5a4e;
  animation: rec 1s infinite;
}
@keyframes rec { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }

.pylon {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #e8e6e0;
  border: 3px solid #d0cec8;
  border-radius: 5px;
  padding: 10px 10px;
  width: 120px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.pylon-brand {
  text-align: center;
  font-family: 'Satoshi'; font-weight: 900; font-size: 11px;
  color: #0a0a0a; margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.pylon-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.pylon-fuel {
  width: 22px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; color: #fff;
  border-radius: 2px;
}
.pylon-price {
  font-family: 'Satoshi'; font-weight: 900; font-size: 14px;
  color: #0a0a0a; letter-spacing: -0.02em;
  flex: 1; text-align: right;
}

.scr-cam-brackets {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}
.scr-scan-line {
  position: absolute;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 12px var(--brand);
  z-index: 4;
}

.scr-cam-bottom {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-around;
  z-index: 6;
}
.cam-thumb { width: 32px; height: 32px; border-radius: 5px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); }
.cam-shutter {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid #fff;
  padding: 3px;
}
.cam-shutter div { width: 100%; height: 100%; border-radius: 50%; background: var(--brand); }
.cam-flip {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}

.scr-cam-ai {
  position: absolute;
  bottom: 92px; left: 16px; right: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  padding: 10px 12px;
  z-index: 5;
}
.scr-cam-ai-label {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.scr-cam-ai-row {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; color: #0a0a0a;
  padding: 3px 0;
}
.scr-cam-ai-row span:first-child {
  width: 22px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; color: #fff;
  border-radius: 2px;
}
.scr-cam-ai-row .check {
  margin-left: auto; color: #4ea862; font-weight: 900;
}

/* Screen: Map */
.scr-map {
  position: relative; width: 100%; height: 100%;
  background: #f3efe7;
  overflow: hidden;
}
.scr-map-bg { position: absolute; inset: 0; }
.scr-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.m-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid rgba(10,10,10,0.1);
  border-radius: 5px;
  padding: 3px 6px 3px 3px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-family: 'Satoshi';
  font-size: 10px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  z-index: 2;
}
.m-pin.best {
  border-color: var(--brand);
  border-width: 2px;
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 3;
}
.m-pin.best::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 5px;
  border: 2px solid var(--brand);
  opacity: 0.4;
  animation: pulse-ring 1.8s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
.m-fuel {
  width: 16px; height: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; font-weight: 900; color: #fff;
  border-radius: 2px;
}

.me-dot { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.me-ring {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(58,110,200,0.22);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: me-pulse 2s infinite;
}
@keyframes me-pulse {
  0% { transform: translate(-50%,-50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}
.me-core {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #3a6ec8;
  border: 3px solid #fff;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.scr-map-top {
  position: absolute;
  top: 16px; left: 12px; right: 12px;
  z-index: 4;
}
.scr-map-search {
  background: #fff;
  border-radius: 5px;
  padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #0a0a0a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.scr-map-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 5px 5px 0 0;
  padding: 10px 14px 14px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
  z-index: 5;
}
.sheet-grip {
  width: 36px; height: 4px;
  background: #d9d5cc;
  border-radius: 2px;
  margin: 0 auto 10px;
}
.sheet-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.sheet-row {
  display: flex; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0ece3;
}
.sheet-row:last-of-type { border: none; }
.sheet-col { flex: 1; }
.sheet-name { font-weight: 700; font-size: 12px; }
.sheet-meta { font-size: 10px; color: var(--mute); font-family: 'JetBrains Mono', monospace; }
.sheet-price { font-weight: 900; font-size: 15px; letter-spacing: -0.02em; }
.sheet-cta {
  margin-top: 8px;
  background: var(--brand);
  color: #0a0a0a;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

/* Screen: Points */
.scr-pts {
  position: relative;
  width: 100%; height: 100%;
  background: #f7f3ea;
  padding: 18px 16px;
}
.pts-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pts-hello { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.pts-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 11px;
}
.pts-streak {
  background: #0a0a0a;
  color: #fff;
  border-radius: 5px;
  padding: 14px 14px 16px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.pts-streak::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.15;
}
.pts-streak-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.pts-streak-big {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.pts-streak-big span { font-size: 14px; font-weight: 500; opacity: 0.7; letter-spacing: -0.02em; }
.pts-streak-bar {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.pts-streak-bar div { height: 100%; background: var(--brand); border-radius: 2px; }

.pts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pts-card {
  background: #fff;
  border-radius: 5px;
  padding: 12px;
}
.pts-card-num {
  font-size: 24px; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1;
}
.pts-card-label {
  font-size: 10px; color: var(--mute);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.pts-log { background: #fff; border-radius: 5px; padding: 12px; }
.pts-log-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.pts-log-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0ece3;
}
.pts-log-row:last-of-type { border: none; }
.pts-log-ic {
  width: 28px; height: 28px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 11px;
  letter-spacing: -0.02em;
}
.pts-log-txt { flex: 1; font-size: 11px; font-weight: 600; }
.pts-log-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--mute);
}

/* Side shadows for depth */
.phone-side {
  display: none;
}

/* ==== Calculator ==== */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: #fff;
  border-radius: 5px;
  padding: 48px;
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; padding: 28px; gap: 32px; }
}
.calc-inputs { display: flex; flex-direction: column; gap: 32px; }
.calc-group { display: flex; flex-direction: column; gap: 10px; }
.calc-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 700; font-size: 15px;
}
.calc-val { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; }
.calc-val em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--mute); font-family: 'JetBrains Mono', monospace; }
.calc-ticks {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--mute);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--cream-2);
  border-radius: 3px;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #0a0a0a;
  cursor: pointer;
  border: 4px solid var(--brand);
  transition: transform 0.15s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #0a0a0a;
  cursor: pointer;
  border: 4px solid var(--brand);
}

.calc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.calc-pill:hover { border-color: #0a0a0a; }
.calc-pill.on {
  background: #0a0a0a; color: #fff; border-color: #0a0a0a;
}
.pill-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.calc-result {
  background: var(--ink);
  color: var(--cream);
  border-radius: 5px;
  padding: 32px 36px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .calc-result { padding: 24px 28px; }
  .calc-result-label { font-size: 26px; }
}
.calc-result::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,194,18,0.25), transparent 70%);
}
.calc-result-label {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.calc-result-big {
  font-size: clamp(48px, 5.5vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin: 12px 0 16px;
}
.calc-result-row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-weight: 500;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.calc-result-row span:last-child { font-weight: 800; }
.calc-result-stripe {
  display: flex; gap: 4px; align-items: flex-end;
  height: 60px;
  margin: 16px 0;
}
.stripe-col {
  flex: 1; background: var(--brand); border-radius: 2px;
  min-height: 10px;
  opacity: 0.9;
  transition: height 0.4s cubic-bezier(.2,.7,.2,1);
}
.calc-result-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
  letter-spacing: 0;
}

/* ==== Testers / marquee ==== */
.beta-rows { overflow: hidden; }
.tester {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px 20px 14px 14px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.tester:hover { transform: translateY(-2px); border-color: var(--ink); }
.tester-av {
  width: 48px; height: 48px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.tester-name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.tester-role { font-size: 12px; color: var(--mute); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

.marquee-track.reverse { animation-direction: reverse; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
  animation: fade 0.2s;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal-card {
  background: #fff;
  border-radius: 5px;
  padding: 48px 40px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal-av {
  width: 88px; height: 88px;
  border-radius: 5px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.modal-name { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.modal-role { color: var(--mute); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.modal-bio { margin: 20px 0 24px; line-height: 1.6; color: #36332c; font-size: 16px; }
.modal-links { display: flex; justify-content: center; gap: 20px; }
.modal-links a {
  color: #0a0a0a; font-weight: 700; font-size: 14px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brand);
  padding-bottom: 2px;
}

/* ==== Contact form ==== */
.contact {
  display: flex; flex-direction: column;
  gap: 22px;
  max-width: 540px;
}
.contact-field {
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.contact-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.contact-field input, .contact-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  padding: 10px 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}
.contact-field input:focus, .contact-field textarea:focus {
  border-color: var(--ink);
}
.contact-field .err { color: #c54a3f; font-size: 13px; font-weight: 500; }
.contact-note { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mute); }

/* ==== Hero specific ==== */
.hero-fullbleed {
  padding: 90px 0 0;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  overflow: hidden;
}
.hero-grid-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 90px);
  width: 100%;
}
@media (max-width: 900px) {
  .hero-grid-full { grid-template-columns: 1fr; min-height: auto; }
}
.hero-fullbleed .hero-copy {
  padding: 48px 64px 48px 48px;
  max-width: 720px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 1200px) {
  .hero-fullbleed .hero-copy { padding: 48px; }
}
@media (max-width: 900px) {
  .hero-fullbleed .hero-copy { padding: 32px 20px; max-width: 100%; justify-self: stretch; }
}
.hero-fullbleed .hero-map-wrap {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 90px);
}
@media (max-width: 900px) {
  .hero-fullbleed .hero-map-wrap { min-height: 380px; height: 380px; margin-top: 40px; }
}
@media (max-width: 900px) { .hero { min-height: auto; padding: 90px 0 40px; } }
@media (max-width: 900px) { .hero.hero-fullbleed { padding-bottom: 0; } }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 80vh;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-right: 48px;
  max-width: 640px;
}
@media (max-width: 900px) { .hero-copy { padding-right: 0; } }
.hero-map-wrap {
  width: 100%;
  height: 100%;
  min-height: 560px;
  align-self: stretch;
}
@media (max-width: 900px) {
  .hero-map-wrap { min-height: 480px; }
}

/* ==== Feature rows ==== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse .feature-copy { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .feature-row.reverse .feature-copy { order: unset; }
}
.feature-copy { display: flex; flex-direction: column; gap: 24px; }
.feature-num {
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 5px;
  background: var(--brand);
  color: #0a0a0a;
  font-weight: 900;
  font-size: 22px;
  align-items: center; justify-content: center;
  letter-spacing: -0.03em;
}
.feature-title { font-weight: 800; font-size: 48px; letter-spacing: -0.02em; line-height: 1.05; }
.feature-desc { font-size: 24px; line-height: 1.5; color: #36332c; max-width: 560px; }
.feature-phone-wrap {
  display: flex; justify-content: center;
  padding: 40px 0;
}

/* ==== About / Founder / Video ==== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.video-wrap {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
}
.video-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.video-wrap:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-play svg { margin-left: 6px; }
.video-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 5px 10px;
  border-radius: 4px;
}

/* ==== Block yellow hero for value / big statement ==== */
.value-block {
  background: var(--brand);
  color: #0a0a0a;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .value-block { padding: 80px 0; } }
.value-block .huge {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 32px;
}
.value-block .huge em {
  font-style: normal;
  font-weight: 100;
  font-family: 'Satoshi', serif;
}
.value-block .huge u {
  text-decoration: none;
  background: #0a0a0a;
  color: var(--brand);
  padding: 0 0.1em;
}
.value-block .support {
  max-width: 720px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
}

/* ==== Footer ==== */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.5);
  margin-bottom: 18px;
}
.footer a { color: var(--cream); opacity: 0.75; text-decoration: none; display: block; padding: 4px 0; font-weight: 500; transition: opacity 0.15s; }
.footer a:hover { opacity: 1; }
.footer-giant {
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  padding: 60px 0 30px;
  color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
}
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-company {
  line-height: 1.7;
  font-size: 13px;
  color: rgba(244,241,234,0.65);
}
.footer-company strong { color: var(--cream); font-weight: 700; display: block; font-size: 15px; margin-bottom: 6px; }

/* ==== Stats row ==== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat-num { font-size: clamp(40px, 5vw, 72px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }

/* ==== Tweaks panel ==== */
.tweaks {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  background: #fff;
  border-radius: 5px;
  padding: 18px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  width: 280px;
  font-size: 13px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks-title { font-weight: 900; font-size: 14px; letter-spacing: -0.01em; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.tweaks-close { background: none; border: none; font-size: 20px; cursor: pointer; line-height: 1; }
.tweaks-group { margin-bottom: 14px; }
.tweaks-group label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.tweaks-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tweaks-pill {
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.tweaks-pill.on { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

/* Hero "mini map" fallback if Leaflet takes a second to load */
.map-outer.loading::after {
  content: 'Ładuję mapę...';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  z-index: 0;
}

/* Station popup — clicked marker shows full price card with directions link */
.leaflet-popup.station-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 5px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); border: 1px solid rgba(10,10,10,0.06); }
.leaflet-popup.station-popup .leaflet-popup-content { margin: 0; min-width: 220px; line-height: 1.35; }
.leaflet-popup.station-popup .leaflet-popup-tip { background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.10); }
.leaflet-popup.station-popup .leaflet-popup-close-button { color: #6b665c; font-size: 22px; padding: 6px 8px 0 0; }
.pop-card { padding: 14px 16px 12px; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(10,10,10,0.06); }
.pop-name { font-family: Satoshi, sans-serif; font-weight: 800; font-size: 14px; color: #0a0a0a; letter-spacing: -0.01em; }
.pop-badge { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--brand); color: #0a0a0a; padding: 3px 7px; border-radius: 4px; flex-shrink: 0; }
.pop-rows { display: flex; flex-direction: column; gap: 6px; }
.pop-row { display: flex; align-items: center; gap: 10px; font-family: Satoshi, sans-serif; font-size: 13px; }
.pop-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.pop-fuel { font-weight: 700; min-width: 36px; color: #0a0a0a; }
.pop-price { margin-left: auto; font-weight: 900; color: #0a0a0a; letter-spacing: -0.02em; }
.pop-price em { font-style: normal; font-weight: 500; color: #6b665c; font-size: 10px; margin-left: 2px; }
.leaflet-popup-content a.pop-route { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; background: #0a0a0a; color: #fff; border-radius: 5px; text-decoration: none; font-family: Satoshi, sans-serif; font-weight: 700; font-size: 13px; justify-content: center; }
.leaflet-popup-content a.pop-route:hover { background: #1a1a1a; color: #fff; }

/* ==== Join overlay (true full-screen cover triggered by nav "Dołącz") ==== */
.join-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  animation: join-fade 0.22s ease;
}
@keyframes join-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.join-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 56px; height: 56px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.join-close:hover { background: rgba(255, 255, 255, 0.12); }
.join-panel {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
  align-items: center;
  animation: join-slide 0.32s cubic-bezier(.2, .8, .2, 1);
}
@keyframes join-slide {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.join-heading {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-align: center;
}
.join-form {
  width: 100%;
  max-width: 560px;
}
.join-success {
  margin: 0;
  font-size: 20px;
  color: var(--cream);
  opacity: 0.75;
  text-align: center;
}
@media (max-width: 600px) {
  .join-overlay { padding: 24px 20px; }
  .join-panel { gap: 28px; }
  .join-heading { font-size: 32px; line-height: 1.18; }
  .join-close { top: 12px; right: 12px; width: 48px; height: 48px; font-size: 38px; }
}

/* ==== Calculator question heading (relocated under hero) ==== */
.calc-question {
  margin: 0 0 40px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}
.calc-question-num {
  display: inline-block;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: var(--brand);
  padding: 0 0.15em;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1;
}
.calc-br-mobile { display: inline; }
@media (min-width: 900px) { .calc-br-mobile { display: none; } }
@media (max-width: 600px) {
  .calc-question { margin-bottom: 28px; font-size: 34px; line-height: 1.15; }
  .calc-question-num { font-size: 42px; }
}

/* ==== Camera shutter flash (section 01 — clicking shutter mocks taking a photo) ==== */
.cam-shutter { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.cam-shutter:active div { transform: scale(0.92); }
.cam-shutter div { transition: transform 0.08s ease; }
.scr-cam-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 100;
  pointer-events: none;
  animation: scr-flash-anim 380ms ease-out forwards;
}
@keyframes scr-flash-anim {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Calculator explainer footnote — references the * in the heading */
.calc-explainer {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--mute);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* DataMiners inline link in founder paragraph — magenta on hover */
.dm-link {
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.18s ease;
}
.dm-link:hover, .dm-link:focus { color: #e71665; }

/* ─── Hero mobile overflow fix — wartości jak .feature-title ──────────────── */
@media (max-width: 600px) {
  .hero-fullbleed .hero-copy {
    padding: 32px 16px !important;
    min-width: 0;
  }
  .hero-copy h1.display-xl {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.05 !important;
    max-width: 100%;
  }
  .hero-copy h2.body-lg {
    font-size: 24px !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    overflow-wrap: break-word;
  }
  .email-form {
    width: 100%;
    max-width: 100%;
  }
  .email-form input {
    font-size: 16px !important; /* 16px = brak zoom-in na iOS */
    min-width: 0;
    width: 0;
  }
  .email-form button {
    font-size: 16px !important;
    padding: 10px 14px !important;
  }
}



/* ─── Kim jestem? — grid layout z reorderingiem na mobile ─────────────────── */
.kim-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "title  image"
    "text   image";
  gap: 0 80px;
  align-items: start;
}
.kim-grid .kim-title { grid-area: title; margin-bottom: 32px; }
.kim-grid .kim-image { grid-area: image; display: flex; justify-content: flex-start; align-items: center; }
.kim-grid .kim-text  { grid-area: text; }

@media (max-width: 900px) {
  .kim-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "image" "text";
    gap: 24px;
  }
  .kim-grid .kim-title { margin-bottom: 0; }
  .kim-grid .kim-image { justify-content: flex-start; }
}

/* ─── Globalna naprawa: atrybut [hidden] zawsze wins nad specific display: ── */
[hidden] { display: none !important; }

/* ─── h1 hero — JS fituje font-size do najdłuższego słowa ──────────── */
.hero-copy h1.display-xl { max-width: 100%; }


/* ─── CSS-only animation: scr-scan-line (zamiast JS RAF z React) ────────── */
.scr-scan-line {
  top: 20%;
  animation: scan-sweep 2.8s linear infinite;
}
@keyframes scan-sweep {
  0%   { top: 20%; opacity: 1; }
  50%  { top: 90%; opacity: 1; }
  51%  { opacity: 0; }
  52%  { top: 20%; opacity: 0; }
  53%  { opacity: 1; }
  100% { top: 90%; opacity: 1; }
}
