/* PickleMap CA — demo styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --lime: #c6ff3d;
  --lime-deep: #a3e635;
  --ink: #0b0d10;
  --ink-2: #14181d;
  --ink-3: #1c2127;
  --line: #2a3038;
  --muted: #8a94a3;
  --text: #e7ebf1;
  --warn: #ff7a59;
  --good: #4ade80;
  --bad: #f87171;
}
html, body { background: var(--ink); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px); background: rgba(11,13,16,0.78);
  border-bottom: 1px solid var(--line);
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
nav.top .brand { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
nav.top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
nav.top .links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); align-items: center; }
nav.top .links a { color: var(--muted); }
nav.top .links a:hover { color: var(--text); text-decoration: none; }
nav.top .cta { background: var(--lime); color: #0a0d10; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
nav.top .cta:hover { background: var(--lime-deep); text-decoration: none; }
nav.top .cta-mobile { display: none; }

.hamburger {
  display: none;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburger span {
  display: block; width: 18px; height: 2px; background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  nav.top .row { padding: 12px 0; }
  .hamburger { display: flex; }
  nav.top .cta-desktop { display: none; }
  nav.top .cta-mobile { display: inline-flex; align-items: center; }
  nav.top .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,13,16,0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  nav.top .links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.top .links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
  nav.top .links a:last-child { border-bottom: none; margin-top: 10px; justify-content: center; }
  nav.top .links .cta-mobile { padding: 12px 18px; }
}
.hide-mobile { display: inline; }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .hero { padding: 48px 0 36px; }
  .container { padding: 0 18px; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(198,255,61,0.18), transparent 70%),
    radial-gradient(50% 60% at 10% 80%, rgba(74,222,128,0.10), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.96; letter-spacing: -0.03em;
  font-weight: 900;
  max-width: 920px;
}
.hero h1 .accent { color: var(--lime); }
.hero p.lead {
  margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px);
  color: #b9c2cf; max-width: 640px;
}
.hero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--lime); color: #0a0d10; }
.btn.primary:hover { background: var(--lime-deep); text-decoration: none; }
.btn.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); text-decoration: none; }

/* Live counter */
.live {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.live .stat {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 18px;
}
.live .stat .num { font-weight: 900; font-size: 28px; letter-spacing: -0.02em; }
.live .stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.live .stat .src { font-size: 11px; color: var(--muted); margin-top: 8px; }
@media (max-width: 800px) { .live { grid-template-columns: repeat(2, 1fr); } }

/* Map section */
.map-section { padding: 60px 0; }
.map-section h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; font-weight: 900; }
.map-section .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.map-wrap {
  margin-top: 24px;
  display: grid; grid-template-columns: 320px 1fr; gap: 16px;
}
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }
.filters {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px;
  max-height: 540px; overflow: auto;
}
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.filter-group { margin-bottom: 16px; }
.filter-group .label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--ink-3); color: var(--text); border: 1px solid var(--line);
  cursor: pointer; user-select: none;
}
.chip.active { background: var(--lime); color: #0a0d10; border-color: var(--lime); }
.chip:hover:not(.active) { border-color: var(--lime); color: var(--lime); }
.results-count { font-size: 13px; color: var(--muted); margin-top: 4px; }
#map {
  height: 540px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  background: var(--ink-2);
}
@media (max-width: 900px) {
  #map { height: 420px; }
  .filters { max-height: none; }
}
@media (max-width: 720px) {
  .map-section { padding: 40px 0; }
  #map { height: 360px; }
  .why { padding: 40px 0; }
  .waitlist { padding: 48px 0; }
  .waitlist .box { padding: 24px; gap: 24px; border-radius: 18px; }
  .live { gap: 10px; }
  .live .stat { padding: 14px; }
  .live .stat .num { font-size: 22px; }
  .filters { padding: 14px; }
}
.leaflet-popup-content-wrapper { background: var(--ink-3); color: var(--text); border-radius: 12px; }
.leaflet-popup-tip { background: var(--ink-3); }
.leaflet-popup-content { margin: 12px 14px; font-family: inherit; }
.popup .title { font-weight: 800; font-size: 15px; }
.popup .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.popup .row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; }
.popup .crowd { padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.popup .crowd.low { background: rgba(74,222,128,0.18); color: #4ade80; }
.popup .crowd.mid { background: rgba(255,200,80,0.16); color: #facc15; }
.popup .crowd.high { background: rgba(255,90,80,0.16); color: #f87171; }

/* Why now section */
.why { padding: 60px 0; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; font-weight: 900; }
.why .grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .why .grid { grid-template-columns: 1fr; } }
.why .card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
}
.why .card .big { font-size: 44px; font-weight: 900; letter-spacing: -0.02em; color: var(--lime); }
.why .card .h { font-size: 16px; font-weight: 700; margin-top: 6px; }
.why .card .p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.why .card .src { font-size: 11px; color: var(--muted); margin-top: 12px; opacity: 0.75; }

/* Waitlist */
.waitlist { padding: 80px 0; }
.waitlist .box {
  background: linear-gradient(135deg, rgba(198,255,61,0.10), rgba(74,222,128,0.05));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 800px) { .waitlist .box { grid-template-columns: 1fr; padding: 28px; } }
.waitlist h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; font-weight: 900; }
.waitlist p { color: #b9c2cf; margin-top: 12px; font-size: 15px; }
.waitlist form { display: flex; flex-direction: column; gap: 10px; }
.waitlist input, .waitlist select {
  padding: 14px 16px; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); font-size: 15px; width: 100%;
}
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--lime); }
.waitlist button { padding: 14px 22px; border-radius: 12px; background: var(--lime); color: #0a0d10; font-weight: 800; border: none; cursor: pointer; font-size: 15px; }
.waitlist button:hover { background: var(--lime-deep); }
.waitlist .ok {
  display: none; background: rgba(74,222,128,0.15); color: var(--good);
  border: 1px solid rgba(74,222,128,0.3); padding: 14px; border-radius: 12px;
  margin-top: 12px; font-weight: 600;
}
.waitlist .ok.show { display: block; }

/* Footer */
footer {
  padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .src-list { font-size: 11px; line-height: 1.7; max-width: 760px; margin-top: 10px; }

/* Tiny utility */
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--ink-3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }
.pill { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(198,255,61,0.12); color: var(--lime); border: 1px solid rgba(198,255,61,0.25); font-weight: 600; }
