/* zipcode.lol — landing page.
 *
 * Every colour here is a token from app.css. It used to be 54 hard-coded dark
 * values, which is why switching to light mode changed the shared nav and
 * nothing else: the page had no idea a second palette existed. */

body.landing { background: var(--bg); color: var(--tx); }

/* ---------- hero ---------- */

.hero { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; }

.hero-map { position: absolute; inset: 0; filter: saturate(.75); z-index: 0; }
.hero-map .leaflet-container { background: var(--bg); }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 30% 40%, var(--hero-veil-soft), var(--hero-veil) 70%);
}

.hero-head {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 28px;
}
.hero-head .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.wordmark { font-size: 15px; font-weight: 700; letter-spacing: -.2px; flex: 1; }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass); border: 1px solid var(--bd2); border-radius: 9px;
  padding: 6px 11px; backdrop-filter: blur(8px);
  font-size: 11px; color: var(--tx2);
}

.primary-link {
  background: var(--accent); color: var(--ink); border-radius: 9px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 700;
}
.quiet-link { color: var(--tx2); font-size: 12.5px; font-weight: 600; }

.hero-body {
  position: relative; z-index: 3; flex: 1;
  display: flex; align-items: center;
  padding: 20px 28px 40px;
}
.hero-copy { max-width: 660px; }

.eyebrow {
  display: inline-block;
  border: 1px solid var(--accbd); background: var(--soft);
  border-radius: 99px; padding: 5px 11px;
  font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: .98; letter-spacing: -2.4px; font-weight: 700;
  text-wrap: balance; margin: 0 0 18px;
}
.hero p {
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; color: var(--tx2);
  max-width: 520px; text-wrap: pretty; margin: 0 0 34px;
}

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.btn-accent {
  display: inline-block;
  background: var(--accent); color: var(--ink); border-radius: 11px;
  padding: 13px 20px; font-size: 14px; font-weight: 700; border: 0;
}
.btn-glass {
  display: inline-block;
  background: var(--glass); border: 1px solid var(--btnbd); color: var(--tx);
  border-radius: 11px; padding: 13px 20px; font-size: 14px; font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats b { font-size: 22px; font-weight: 700; letter-spacing: -.6px; display: block; }
.hero-stats span {
  display: block; margin-top: 4px;
  font-size: 10px; color: var(--tx4); letter-spacing: .07em; text-transform: uppercase;
}

/* ---------- rankings ---------- */

.rankings { padding: 64px 28px 80px; border-top: 1px solid var(--hair); background: var(--panel); }
.rankings .inner { max-width: 1180px; margin: 0 auto; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-eyebrow { font-size: 10.5px; font-weight: 700; color: var(--accent); letter-spacing: .09em; text-transform: uppercase; }
.rankings h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -1.2px; margin: 6px 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.rank-card { background: var(--panel); border: 1px solid var(--bd); border-radius: 14px; padding: 16px; }

.rank-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--bd); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px; color: var(--tx);
}
.rank-row:hover { border-color: var(--btnbd); opacity: 1; }
.rank-row .rk { width: 15px; font-size: 10.5px; font-weight: 700; color: var(--tx4); flex: 0 0 auto; }
.rank-row .rk.first { color: var(--accent); }
.rank-row .fav { width: 26px; height: 26px; border-radius: 50%; background: #fff; object-fit: contain; flex: 0 0 auto; }
.rank-main { flex: 1; min-width: 0; }
.rank-main b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-main i { display: block; font-style: normal; font-size: 10px; color: var(--tx4); margin-top: 1px; }
.rank-row .amt { font-size: 12px; font-weight: 700; color: var(--accent); }
.rank-right { text-align: right; flex: 0 0 auto; }
.rank-right b { display: block; font-size: 12px; font-weight: 700; color: var(--accent); }
.rank-right i { display: block; font-style: normal; font-size: 9.5px; color: var(--tx4); }

.track { height: 4px; border-radius: 99px; background: var(--fill); margin-top: 6px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--accent); }

.cheap-card {
  background: linear-gradient(155deg, var(--soft), var(--panel));
  border: 1px solid var(--accbd); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}

.foot {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--tx4);
}

/* hero chips drawn onto the map */
.hero-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translate(-50%, -50%); }
.hero-chip .circle {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #111; display: grid; place-items: center;
  font: 700 12px 'Instrument Sans', sans-serif; overflow: hidden;
  box-shadow: 0 4px 14px var(--shadow), 0 0 0 2px var(--accent);
}
.hero-chip .circle img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; background: #fff; object-fit: contain; }
.hero-chip .pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--glass); border: 1px solid var(--bd2); border-radius: 7px;
  padding: 3px 7px; white-space: nowrap; font: 600 11px 'Instrument Sans', sans-serif; color: var(--tx);
}
.hero-chip .pill span.mono { color: var(--accent); font-weight: 700; }

/* --- responsive ---
   The hero is a full-bleed map with text over it; on a phone the text has to
   win, so the type comes down and the stats stack rather than scrolling off. */
@media (max-width: 860px) {
  .hero-body { padding: 0 20px 48px; }
  .rankings { padding: 48px 20px 64px; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-head { padding: 0 16px; }
  .wordmark { font-size: 14px; }
  .quiet-link { display: none; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 44px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { text-align: center; }
  .hero-stats { gap: 16px 22px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* A hero that is exactly 100vh fights the mobile browser's collapsing
     toolbar; svh is the height that is actually visible. */
  .hero { min-height: 100svh; }
}
