/* =========================================================================
   Nightlyfe site v3 — loaded after app.css (compare variant).
   Caution tape, upgraded iPhone mock, magicui-style effects (dot-pattern,
   animated-grid, pulsating + interactive-hover buttons), sell-bars pitch
   section, real Leaflet map. On-brand, reduced-motion aware.
   ========================================================================= */

/* ---- CAUTION TAPE: two bands cross the WIP feature, edge to edge -------- */
.tape-zone { position: relative; overflow: hidden; }
.tape {
  position: absolute; left: -8%; width: 116%; height: 44px; z-index: 4;
  background: var(--accent);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.30) 0 18px, transparent 18px 40px);
  border-top: 2px solid rgba(255,255,255,.30); border-bottom: 2px solid rgba(0,0,0,.45);
  box-shadow: 0 8px 22px -8px rgba(0,0,0,.7);
  display: flex; align-items: center; overflow: hidden;
}
.tape-1 { top: 38%; transform: rotate(-8deg); }
.tape-2 { top: 38%; transform: rotate(8deg); }
.tape-track { display: inline-flex; white-space: nowrap; animation: ribbon 16s linear infinite; }
.tape-track span { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); padding: 0 16px; }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }
@media (max-width: 600px) { .tape { height: 34px; } .tape-track span { font-size: 10.5px; } }

/* ---- DOT PATTERN (magicui dot-pattern) -------------------------------- */
.dot-pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 35%, transparent 78%); }

/* ---- ANIMATED GRID PATTERN (magicui animated-grid-pattern) ------------- */
.agrid { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 80%); }
.agrid i { position: absolute; width: 47px; height: 47px; background: var(--accent); opacity: 0; border-radius: 2px;
  animation: agrid-fade 5s var(--ease) infinite; }
@keyframes agrid-fade { 0%,100% { opacity: 0; } 50% { opacity: .14; } }
@media (prefers-reduced-motion: reduce) { .agrid i { animation: none; } }

/* ---- PULSATING BUTTON (magicui pulsating-button) ---------------------- */
.btn-pulse { position: relative; isolation: isolate; }
.btn-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--accent); animation: btn-pulse 2s var(--ease) infinite; }
@keyframes btn-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-pulse::after { animation: none; } }

/* ---- INTERACTIVE HOVER BUTTON (magicui interactive-hover-button) ------- */
.btn-ihover { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px; padding: 14px 26px; cursor: pointer;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  transition: color .35s var(--ease), border-color .35s var(--ease); }
.btn-ihover::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--accent);
  border-radius: inherit; transform: scaleX(0); transform-origin: left center; transition: transform .4s var(--ease); }
.btn-ihover .ih-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none;
  position: relative; z-index: 1; transition: opacity .3s var(--ease); }
.btn-ihover .ih-text { position: relative; z-index: 1; transition: transform .35s var(--ease); }
.btn-ihover .ih-arrow { position: absolute; right: 20px; z-index: 1; opacity: 0; transform: translateX(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.btn-ihover:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn-ihover:hover::before { transform: scaleX(1); }
.btn-ihover:hover .ih-dot { opacity: 0; }
.btn-ihover:hover .ih-text { transform: translateX(-4px); }
.btn-ihover:hover .ih-arrow { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn-ihover::before, .btn-ihover .ih-dot, .btn-ihover .ih-text, .btn-ihover .ih-arrow { transition: none; } }

/* ---- UPGRADED iPHONE MOCK --------------------------------------------- */
.ip-stage { position: relative; display: grid; place-items: center; padding: var(--s8) 0; }
.ip-glow { position: absolute; width: 70%; height: 60%; top: 16%; left: 15%; z-index: 0;
  background: radial-gradient(circle, rgba(31,182,255,.30), transparent 65%); filter: blur(40px); }
.iphone { position: relative; z-index: 1; width: 300px; aspect-ratio: 300 / 620;
  border-radius: 56px; padding: 13px;
  background: linear-gradient(150deg, #3a4a55 0%, #18222b 38%, #0c1218 70%, #2a3742 100%);
  box-shadow: 0 50px 90px -34px rgba(0,0,0,.9), inset 0 0 0 2px rgba(255,255,255,.07); }
.iphone::before, .iphone::after { content: ""; position: absolute; left: -3px; width: 3px; border-radius: 3px 0 0 3px;
  background: linear-gradient(#34424d, #1b2530); }
.iphone::before { top: 130px; height: 30px; }
.iphone::after { top: 178px; height: 54px; }
.ip-power { position: absolute; right: -3px; top: 158px; width: 3px; height: 74px; border-radius: 0 3px 3px 0;
  background: linear-gradient(#34424d, #1b2530); }
.ip-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #0c141b;
  box-shadow: inset 0 0 0 2px #05090d; }
.ip-island { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 94px; height: 27px;
  background: #05090d; border-radius: 999px; z-index: 6; }
.ip-island::after { content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: #11202b; box-shadow: inset 0 0 2px #1fb6ff; }
.ip-status { position: absolute; top: 16px; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between;
  padding: 0 26px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink); }
.ip-status .dots { display: inline-flex; gap: 4px; align-items: center; }
.ip-status .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.ip-map { height: 56%; position: relative; margin-top: 48px; overflow: hidden; background: #0c141b; }
.ip-leaflet { position: absolute; inset: 0; background: #0c141b; }
/* real mini-map heat markers (Leaflet divIcons) */
.ip-leaflet .leaflet-div-icon { background: none; border: none; }
.ip-heatdot { position: relative; display: flex; align-items: center; gap: 5px; background: #15202a;
  border: 1px solid #41525f; height: 24px; padding: 0 8px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 11px; color: #f2f6fa;
  transform: translate(-50%, -50%); white-space: nowrap; box-shadow: 0 0 16px 3px var(--g, transparent); }
.ip-heatdot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #fff); }
.ip-heatdot.live { border-color: var(--accent); }
.ip-heat { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ip-blob { position: absolute; border-radius: 50%; filter: blur(15px); opacity: .7; }
.ip-pin { position: absolute; display: flex; align-items: center; gap: 5px; background: #15202a; border: 1px solid #41525f;
  height: 27px; padding: 0 9px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 12px;
  color: #f2f6fa; transform: translate(-50%,-50%); box-shadow: 0 4px 10px -4px rgba(0,0,0,.6); }
.ip-pin i { width: 8px; height: 8px; border-radius: 50%; }
.ip-pin.live { border-color: var(--accent); }
.ip-sheet { padding: 14px 14px 0; }
.ip-sheet .grab { width: 36px; height: 4px; border-radius: 999px; background: #41525f; margin: 0 auto 12px; }
.ip-sheet h4 { color: #f2f6fa; font-size: 14px; }
.ip-row { display: flex; justify-content: space-between; align-items: center; background: #1b2733; border: 1px solid #324250;
  border-radius: 12px; padding: 11px 12px; margin-top: 10px; }
.ip-row .nm { color: #f2f6fa; font-family: var(--display); font-weight: 600; font-size: 13px; }
.ip-row .sub { color: #9aa6b2; font-size: 11px; }
.ip-heat { font-size: 10px; font-weight: 700; color: #04121c; padding: 3px 8px; border-radius: 999px; }
.ip-skip { color: #1fb6ff; font-weight: 700; font-size: 12px; margin-top: 4px; text-align: right; }

/* ---- SELL-BARS pitch section (the core conversion section) ------------- */
.pitch { position: relative; overflow: hidden; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pitch > .wrap { position: relative; z-index: 1; }
.pitch-lede { max-width: 22ch; font-size: clamp(30px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); }
.pitch-sub { margin-top: var(--s4); max-width: 60ch; font-size: clamp(17px,2vw,20px); color: var(--ink-2); }
.pitch-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s12); }
@media (max-width: 860px) { .pitch-steps { grid-template-columns: 1fr; } }
.pitch-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent); letter-spacing: .08em; }
.pitch-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); background: var(--card); }
.pitch-card h3 { font-size: 20px; margin-top: var(--s2); }
.pitch-card p { margin-top: var(--s2); }
.pitch-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); margin-top: var(--s12);
  border-top: 1px solid var(--line); padding-top: var(--s8); }
@media (max-width: 640px) { .pitch-figures { grid-template-columns: 1fr; gap: var(--s6); } }
.pitch-figures .fig b { font-family: var(--display); font-weight: 700; font-size: clamp(34px,5vw,52px); color: var(--ink); display: block; letter-spacing: -0.02em; white-space: nowrap; }
.pitch-figures .fig span { color: var(--ink-2); margin-top: 4px; display: block; }
.pitch-trust { margin-top: var(--s12); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: var(--s12);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s8); align-items: center; background: var(--card); }
@media (max-width: 760px) { .pitch-trust { grid-template-columns: 1fr; text-align: left; } }
.pitch-trust h3 { font-size: clamp(22px,3vw,30px); }
.pitch-trust p { margin-top: var(--s2); max-width: 52ch; }
.hl { color: var(--ink); position: relative; white-space: nowrap; padding: 0 3px; }
.hl::before { content: ""; position: absolute; left: -1px; right: -1px; top: 12%; bottom: 6%; z-index: -1;
  background: var(--accent); opacity: .26; border-radius: 4px; transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease); }
.hl.lit::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .hl::before { transform: scaleX(1); } }

/* ---- REAL MAP (Leaflet) ----------------------------------------------- */
#phillyMap { height: 460px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--bg); z-index: 0; }
.leaflet-container { background: #0c141b !important; font-family: var(--body) !important; }
.leaflet-control-attribution { background: rgba(14,20,27,.7) !important; color: var(--ink-3) !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-popup-content-wrapper { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line-2); border-radius: var(--r-md) !important; }
.leaflet-popup-tip { background: var(--card) !important; }
.leaflet-bar a { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.mk-dot { border-radius: 50%; }
.mk-dot.partner { background: var(--accent); box-shadow: 0 0 0 4px rgba(31,182,255,.25), 0 0 12px rgba(31,182,255,.8); }
.mk-dot.reg { background: #5a6873; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }

/* ---- HERO A sticky restructure (full reveal visible while pinned) ------ */
.hero-ba { height: 240vh; min-height: 1240px; display: block; overflow: visible; }
.ba-sticky { position: sticky; top: 0; width: 100%; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---- App Store badge + app-icon tile (download area) ------------------ */
.store-btn { height: 54px; width: auto; display: block; transition: transform .2s var(--ease); }
a:hover > .store-btn { transform: translateY(-2px); }
.app-icon { width: 58px; height: 58px; border-radius: 14px; background: #101820; border: 1px solid var(--line-2);
  display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.app-icon img { width: 44px; height: auto; aspect-ratio: 1200/1122; }

.iph-glow { position: absolute; width: 92px; height: 92px; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; opacity: .85; }

/* ---- scroll-spy side nav --------------------------------------------- */
.spy { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px; }
.spy a { display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  color: var(--ink-3); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 12px; }
.spy a .lbl { opacity: 0; transform: translateX(6px); white-space: nowrap; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.spy a:hover .lbl, .spy a.active .lbl { opacity: 1; transform: none; }
.spy a .pip { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; transition: all .25s var(--ease); }
.spy a:hover { color: var(--ink-2); } .spy a:hover .pip { border-color: var(--accent); }
.spy a.active { color: var(--ink); }
.spy a.active .pip { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,182,255,.18); }
@media (max-width: 1024px) { .spy { display: none; } }

/* Accessibility: honor reduced-motion — kill non-essential motion, keep content visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track, .agrid i, .mug, .tw-caret, .btn-pulse, .dock-dot { animation: none !important; }
}

/* ---- waitlist form (download modal, pre-launch) ----------------------- */
.wl-form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.wl-roles { display: flex; gap: 8px; flex-basis: 100%; }
.wl-role { flex: 1; }
.wl-role input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.wl-role span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-family: var(--display); font-weight: 600; font-size: 14px; text-align: center; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.wl-role input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wl-role input:focus-visible + span { box-shadow: 0 0 0 4px rgba(31,182,255,.18); }
.wl-input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-family: var(--body); font-size: 15px; }
.wl-input::placeholder { color: var(--ink-3); }
.wl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,182,255,.18); }
.wl-btn { height: 48px; padding: 0 20px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700; font-size: 15px;
  transition: transform .15s var(--ease), filter .2s var(--ease); }
.wl-btn:hover { filter: brightness(1.06); }
.wl-btn:active { transform: scale(.98); }
.wl-msg { margin-top: 12px; font-size: 14px; min-height: 18px; }
.wl-msg.ok { color: var(--accent); }
.wl-msg.err { color: #fb7185; }
.dl-fine { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
