/* ============================================================
   LeadsPilot INDIA — DESIGN SYSTEM v4
   No Bootstrap. Pure modern CSS. Mobile-first.
   ============================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  /* Brand */
  --ink-900: #0A0F1E;
  --ink-800: #1A2035;
  --ink-700: #2D3654;
  --ink-500: #5A6A8A;
  --ink-400: #8496B0;
  --ink-200: #D4DCE8;
  --ink-100: #EEF2F7;
  --ink-50:  #F7F9FC;

  --blue-600: #1B4FD8;
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-100: #FEF3C7;
  --amber-50:  #FFFBEB;

  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;
  --emerald-50:  #ECFDF5;

  --red-500: #EF4444;
  --red-100: #FEE2E2;

  --violet-500: #7C3AED;
  --violet-100: #EDE9FE;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --r-xl: 20px; --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10,15,30,.08), 0 1px 2px rgba(10,15,30,.04);
  --shadow-md: 0 4px 12px rgba(10,15,30,.1), 0 2px 4px rgba(10,15,30,.06);
  --shadow-lg: 0 12px 32px rgba(10,15,30,.12), 0 4px 8px rgba(10,15,30,.06);
  --shadow-card: 0 2px 8px rgba(10,15,30,.08);

  /* Typography */
  --font: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', var(--font);

  /* Transitions */
  --ease: cubic-bezier(.16,1,.3,1);

  /* Nav heights */
  --nav-h: 64px;
  --bottom-nav-h: 60px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: .9rem; font-weight: 600; }
p { color: var(--ink-500); line-height: 1.7; }
.text-sm  { font-size: .82rem; }
.text-xs  { font-size: .72rem; }
.text-muted { color: var(--ink-400); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-12) 0; }
.section-sm { padding: var(--sp-8) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); } .gap-6 { gap: var(--sp-6); }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: var(--sp-5); }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 10px 20px; border-radius: var(--r-md);
  font-size: .875rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-500); }
.btn-secondary { background: var(--ink-100); color: var(--ink-800); }
.btn-secondary:hover { background: var(--ink-200); }
.btn-outline { background: transparent; color: var(--blue-600); border: 1.5px solid var(--blue-600); }
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-success { background: var(--emerald-600); color: #fff; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: 6px 14px; font-size: .8rem; border-radius: var(--r-sm); }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--r-md); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: .82rem; font-weight: 600; color: var(--ink-700); }
.form-label .req { color: var(--red-500); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: .9rem; font-family: var(--font);
  color: var(--ink-900);
  background: #fff;
  transition: border-color .18s;
  outline: none;
}
.form-control:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-control::placeholder { color: var(--ink-400); }
.form-error { font-size: .78rem; color: var(--red-500); margin-top: var(--sp-1); }
.input-group { position: relative; display: flex; }
.input-group .form-control { padding-left: 42px; }
.input-group .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-400); font-size: .9rem; pointer-events: none; }
.input-group-right .form-control { padding-left: 14px; padding-right: 42px; }
.input-group-right .input-icon { left: auto; right: 14px; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.badge-blue    { background: var(--blue-50);    color: var(--blue-600); }
.badge-amber   { background: var(--amber-50);   color: #92400E; }
.badge-emerald { background: var(--emerald-50); color: #065F46; }
.badge-red     { background: var(--red-100);    color: #991B1B; }
.badge-violet  { background: var(--violet-100); color: #5B21B6; }
.badge-gray    { background: var(--ink-100);    color: var(--ink-600); }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--ink-100);
}
.navbar-inner {
  height: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-4);
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink-900);
  text-decoration: none; flex-shrink: 0;
}
.nav-brand .brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: #fff;
}
.nav-brand .brand-dot { color: var(--blue-500); }
.nav-links {
  display: flex; align-items: center; gap: var(--sp-1);
  list-style: none; margin: 0; padding: 0; flex: 1;
}
.nav-links a {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px 12px; border-radius: var(--r-md);
  font-size: .875rem; font-weight: 500; color: var(--ink-500);
  transition: all .15s; white-space: nowrap; text-decoration: none;
}
.nav-links a:hover { color: var(--ink-900); background: var(--ink-100); }
.nav-links a.active { color: var(--blue-600); background: var(--blue-50); font-weight: 600; }
.nav-links a .nav-icon { font-size: .85rem; }
.nav-right { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
#navAuthArea { display: flex; align-items: center; gap: 8px; }
.nav-cart {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); cursor: pointer;
  transition: background .15s; color: var(--ink-500);
  border: 1px solid transparent;
}
.nav-cart:hover { background: var(--ink-100); color: var(--ink-900); }
.nav-cart-count {
  position: absolute; top: 3px; right: 3px;
  min-width: 17px; height: 17px;
  background: var(--red-500); color: #fff;
  font-size: .62rem; font-weight: 800; border-radius: var(--r-pill);
  padding: 0 4px; display: none;
  align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.nav-ham {
  display: none; width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  border-radius: var(--r-md); color: var(--ink-700);
  font-size: 1.2rem; align-items: center; justify-content: center;
  transition: background .15s;
min-width:44px;min-height:44px;}
.nav-ham:hover { background: var(--ink-100); }

/* ── BOTTOM NAV (MOBILE APP STYLE) ──────────────────────── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  height: var(--bottom-nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 -4px 24px rgba(10,15,30,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-inner {
  height: 100%; display: flex; align-items: stretch;
}
.bni-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-400); text-decoration: none; cursor: pointer;
  border: none; background: none; font-family: var(--font);
  transition: color .15s; position: relative;
  -webkit-tap-highlight-color: transparent;
  padding: 4px;
}
.bni-tab i { font-size: 1.25rem; line-height: 1; }
.bni-tab span { font-size: .58rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.bni-tab.active { color: var(--blue-600); }
.bni-tab.active i { transform: translateY(-1px); }
.bni-pip {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--blue-600); border-radius: var(--r-pill);
  opacity: 0; transition: opacity .2s;
}
.bni-tab.active .bni-pip { opacity: 1; }
.bni-badge {
  position: absolute; top: 5px; right: calc(50% - 18px);
  min-width: 16px; height: 16px;
  background: var(--red-500); color: #fff;
  font-size: .58rem; font-weight: 800; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid #fff;
}
/* FAB cart in center */
.bni-fab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  border: none; background: none; font-family: var(--font);
  padding-bottom: 2px;
}
.bni-fab-circle {
  width: 48px; height: 48px;
  background: var(--blue-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(27,79,216,.4);
  margin-top: -14px; /* Raised */
  transition: background .15s, transform .15s;
  position: relative;
}
.bni-fab:active .bni-fab-circle { transform: scale(.93); }
.bni-fab span { font-size: .56rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-400); }
.bni-fab-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  background: var(--red-500); color: #fff;
  font-size: .62rem; font-weight: 800; border-radius: var(--r-pill);
  display: none; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid #fff;
}

/* ── MOBILE DRAWER ───────────────────────────────────────── */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,15,30,.5); z-index: 400;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 85vw);
  background: #fff; z-index: 401;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--ink-100);
}
.drawer-header .dh-brand { font-weight: 800; font-size: .95rem; color: var(--blue-600); display: flex; align-items: center; gap: 8px; }
.drawer-header .dh-brand i { color: var(--amber-500); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-3) 0; }
.drawer-link {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; color: var(--ink-700); font-size: .9rem; font-weight: 500;
  border-bottom: 1px solid var(--ink-50); text-decoration: none;
  transition: background .12s;
}
.drawer-link:hover { background: var(--ink-50); }
.drawer-link.active { color: var(--blue-600); background: var(--blue-50); font-weight: 600; }
.drawer-link i { width: 20px; text-align: center; font-size: .95rem; color: var(--ink-400); }
.drawer-link.active i { color: var(--blue-600); }
.drawer-section-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-400); padding: 14px 20px 4px; }
.drawer-footer { padding: 16px 20px; border-top: 1px solid var(--ink-100); display: flex; flex-direction: column; gap: var(--sp-2); }

/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 20px; z-index: 250;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}
/* Raise on mobile above bottom nav */
@media (max-width: 991px) {
  .wa-float { bottom: calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom, 0px)); }
}

/* ── TOAST ───────────────────────────────────────────────── */
#toastRoot {
  position: fixed; bottom: 24px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: var(--sp-2);
  pointer-events: none; max-width: 340px;
}
@media (max-width: 991px) {
  #toastRoot { bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; max-width: none; }
}
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--ink-900); color: #fff;
  font-size: .84rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastSlide .3s var(--ease);
}
.toast-success { border-left: 4px solid var(--emerald-500); }
.toast-error   { border-left: 4px solid var(--red-500); }
.toast-warning { border-left: 4px solid var(--amber-500); }
.toast-info    { border-left: 4px solid var(--blue-400); }
@keyframes toastSlide { from { transform: translateY(10px) scale(.96); opacity: 0; } }

/* ── MODAL / OVERLAY ─────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,15,30,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  opacity: 0; animation: modalIn .2s var(--ease) forwards;
}
@keyframes modalIn { to { opacity: 1; } }
.modal-box {
  background: #fff; border-radius: var(--r-xl);
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.94); animation: modalScale .25s var(--ease) forwards;
}
@keyframes modalScale { to { transform: scale(1); } }
.modal-head { padding: var(--sp-5) var(--sp-6) var(--sp-4); border-bottom: 1px solid var(--ink-100); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: var(--sp-6); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--ink-400); font-size: 1.1rem; width: 32px; height: 32px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--ink-100); color: var(--ink-900); }

/* ── SECTION LABELS ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-600);
}
.section-heading { margin-bottom: var(--sp-3); }
.section-heading p { margin-top: var(--sp-3); font-size: 1.05rem; max-width: 60ch; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--ink-100); margin: var(--sp-6) 0; }
.divider-text { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink-400); font-size: .82rem; margin: var(--sp-5) 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--ink-200); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-5); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--sp-10) 0; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .show-mobile { display: block; }
}
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .bottom-nav { display: block; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
  /* Hide some desktop nav items */
  .nav-desktop-only { display: none; }
}
@media (min-width: 992px) {
  .nav-ham { display: none; }
  .mobile-only { display: none !important; }
}

/* ============================================================
   MOBILE FIX PATCH — fixes all overflow/grid issues
   ============================================================ */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; max-width: 100vw; }
* { min-width: 0; }

/* How-it-works 4-col grid → mobile stack */
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) {
  .how-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .how-steps-grid { grid-template-columns: 1fr; }
}

/* Features 3-col → 2 → 1 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Leads preview 3-col → 1 */
.leads-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) {
  .leads-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .leads-preview-grid { grid-template-columns: 1fr; }
}

/* Testimonials 3-col → 1 */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* City grid 5→4→3→2 */
.city-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }

/* Footer grid 4→2→1 */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Hero grid → stack on mobile */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-card { left: 10px; bottom: -6px; }
  .hero-pill { right: 10px; top: 10px; font-size: .72rem; padding: 6px 12px; }
}
@media (max-width: 480px) {
  .hero-pill { display: none; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-stats { gap: var(--sp-4); }
  .hero-search { flex-direction: column; gap: 6px; }
  .hero-search select,
  .hero-search input { width: 100%; border-right: none; border-bottom: 1px solid var(--ink-200); }
  .hero-search .btn { width: 100%; }
}

/* Trust bar scroll on mobile */
.trust-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex; align-items: center;
  gap: var(--sp-8); flex-wrap: wrap; justify-content: center;
}
@media (max-width: 600px) {
  .trust-inner { gap: 14px; }
  .trust-sep { display: none; }
  .trust-item { font-size: .76rem; }
}

/* Navbar inner padding fix */
@media (max-width: 480px) {
  .navbar-inner { padding: 0 14px; gap: 8px; }
  .nav-brand { font-size: .95rem; gap: 7px; }
  .nav-brand .brand-icon { width: 30px; height: 30px; font-size: .8rem; }
}
@media (max-width: 360px) {
  .navbar-inner { padding: 0 10px; }
  .nav-brand { font-size: .88rem; gap: 6px; }
  .nav-brand .brand-icon { width: 26px; height: 26px; font-size: .75rem; }
}

/* Bottom nav safe area */
.bottom-nav {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 4px);
}

/* Mobile hero image height */
@media (max-width: 900px) {
  .hero-img-wrap { aspect-ratio: 16/9; }
}

/* CTA section mobile */
@media (max-width: 600px) {
  .cta-section { padding: var(--sp-8) var(--sp-4); border-radius: var(--r-lg); margin: var(--sp-8) 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { justify-content: center; }
}

/* Section padding mobile */
@media (max-width: 600px) {
  .section { padding: var(--sp-8) 0; }
  .container { padding: 0 var(--sp-4); }
}

/* How step cards horizontal on mobile */
@media (max-width: 480px) {
  .how-step { flex-direction: row; gap: var(--sp-4); align-items: flex-start; }
  .how-num { flex-shrink: 0; margin-bottom: 0; }
}

/* Lead preview card text */
@media (max-width: 480px) {
  .lp-title { font-size: .9rem; }
  .lp-meta-tag { font-size: .72rem; }
}

/* Register page field row → single col mobile */
@media (max-width: 540px) {
  .field-row, .field-row.triple { grid-template-columns: 1fr !important; }
  .otp-inp { width: 42px; height: 52px; font-size: 1.2rem; }
}

/* Login page */
@media (max-width: 480px) {
  .auth-wrap { padding: 16px 12px 40px; }
  .auth-card { border-radius: var(--r-xl); }
  .auth-header { padding: 24px 20px 0; }
  .auth-body { padding: 0 20px 24px; }
}

/* ── SITE FOOTER GRID (used globally) ───────────────────────── */
.site-footer { background: #0D1117; padding: 56px 0 24px; }
.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width:1024px) { .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 600px) { .site-footer-grid { grid-template-columns: 1fr; gap: 20px; } }

.footer-brand-name { font-family: 'Sora', var(--font); font-size: 1.05rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-desc { font-size: .84rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 28ch; }
.footer-heading { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.25); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: .85rem; text-decoration: none; transition: .15s; }
.footer-social a:hover { background: #1B4FD8; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.25); }

/* ── NAVBAR FIX — dynamic pages collapse into a "More" dropdown ── */
.nav-links li { list-style: none; display: inline-block; position: static; }
.nav-links li.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-toggle .fa-chevron-down { transition: transform .15s; }
.nav-dropdown.open .nav-dropdown-toggle .fa-chevron-down { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 190px; background: #fff;
  border: 1px solid var(--ink-100); border-radius: var(--r-md);
  box-shadow: 0 12px 28px rgba(10,15,30,.14);
  list-style: none; margin: 0; padding: 6px;
  display: none; flex-direction: column; gap: 2px;
  z-index: 250;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu li { display: block; }
.nav-dropdown-menu a { width: 100%; }
.navbar { z-index: 200; }
/* Prevent nav items from overlapping hero */
.navbar + * { position: relative; z-index: 1; }

/* ── LEAD DETAIL BADGE COLORS ────────────────────────────────── */
.badge-gray { background: #F1F5F9; color: #64748B; }

/* ── LEADS PAGE MOBILE COMPLETE FIX ─────────────────────────── */
@media (max-width: 768px) {
  /* Body padding for bottom nav */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 8px)) !important; }
  
  /* Sticky search bar - single row on mobile */  
  .sticky-search-bar > div {
    flex-wrap: nowrap !important;
    overflow-x: auto;
  }
  .sticky-search-bar #sortFilter { display: none !important; }
  
  /* Lead cards - full width on mobile */
  .leads-grid { 
    grid-template-columns: 1fr !important; 
    gap: 10px !important; 
  }
  
  /* Filter bar chips - horizontal scroll */
  .filter-bar-mobile {
    padding: 0 12px;
    gap: 6px;
  }
  .fchip {
    padding: 6px 12px;
    font-size: .78rem;
    white-space: nowrap;
  }
  
  /* Main layout - no gap, full width */
  .main-layout {
    padding: 8px !important;
    gap: 0 !important;
  }
  
  /* Lead card improvements */
  .card-body { padding: 14px !important; }
  .card-meta { gap: 5px !important; }
  .card-title { font-size: .875rem !important; line-height: 1.4 !important; }
  .meta-tag { font-size: .72rem !important; }
  .card-stats { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 8px !important;
  }
  .stat-box { padding: 8px 10px !important; }
  .stat-box .sl { font-size: .62rem !important; }
  .stat-box .sv { font-size: .9rem !important; }
  
  /* Bottom nav improvements */
  .bottom-nav { 
    height: 58px;
  }
  .bni-tab span { font-size: .58rem !important; }
  .bni-tab i { font-size: 1.2rem !important; }
  .bni-fab-circle { 
    width: 44px; height: 44px;
    margin-top: -10px;
    font-size: 1.1rem;
  }
  
  /* WA float above bottom nav */
  .wa-float { 
    bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    width: 44px; height: 44px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .card-stats { grid-template-columns: 1fr 1fr !important; }
  .hero h1 { font-size: 1.75rem !important; }
}


/* ══════════════════════════════════════════════
   DEFINITIVE MOBILE FIXES v5
   These override everything above
   ══════════════════════════════════════════════ */

/* Bottom nav — always fixed, always visible */
@media (max-width: 991px) {
    /* Bottom nav is FIXED — never overlaps content */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 300 !important;
        height: 60px !important;
        background: rgba(255,255,255,.97) !important;
        backdrop-filter: blur(20px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
        border-top: 1px solid rgba(0,0,0,.08) !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,.08) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        display: block !important;
    }
    .bottom-nav-inner {
        height: 100% !important;
        display: flex !important;
        align-items: stretch !important;
    }
    /* Body always has padding for bottom nav */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* WA float above bottom nav */
    .wa-float {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* FAB raised */
    .bni-fab-circle {
        width: 48px !important;
        height: 48px !important;
        margin-top: -14px !important;
    }
    /* Navbar tabs */
    .bni-tab {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        color: #94A3B8 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        border: none !important;
        background: none !important;
        font-family: var(--font) !important;
        padding: 4px 2px !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .bni-tab.active { color: #1B4FD8 !important; }
    .bni-tab i { font-size: 1.2rem !important; line-height: 1 !important; }
    .bni-tab span { font-size: .56rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .3px !important; }
    
    /* Navbar top — hide extra items */
    .nav-links { display: none !important; }
    .nav-desktop-only { display: none !important; }
    .nav-ham { display: flex !important; }
}

/* Hero padding fix for mobile */
@media (max-width: 640px) {
    .hero { padding: 40px 0 36px !important; }
    .hero-inner { padding: 0 16px !important; }
    .hero h1 { font-size: 1.8rem !important; margin-bottom: 12px !important; }
    .hero-sub { font-size: .9rem !important; margin-bottom: 24px !important; }
    .hero-search-wrap { margin: 0 auto 18px !important; }
    .pop-tags { gap: 6px !important; margin-bottom: 24px !important; }
    .pop-tag { font-size: .75rem !important; padding: 5px 12px !important; }
    .hero-stats { gap: 16px !important; }
    .hs-stat-v { font-size: 1.4rem !important; }
    .hs-stat-l { font-size: .68rem !important; }
}

/* Leads page single column on mobile */
@media (max-width: 640px) {
    .leads-grid { grid-template-columns: 1fr !important; }
    .card-stats { grid-template-columns: 1fr 1fr !important; }
}

/* ── COMPACT FOOTER ─────────────────────────────────────────── */
.site-footer { background: #0D1117; padding: 36px 0 16px !important; }
.site-footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 32px !important;
    margin-bottom: 24px !important;
}
.footer-desc { max-width: 24ch !important; font-size: .8rem !important; }
.footer-links { gap: 7px !important; }
.footer-links a { font-size: .8rem !important; }
.footer-heading { margin-bottom: 10px !important; }
.footer-brand-name { margin-bottom: 8px !important; }
.footer-social a { width: 30px !important; height: 30px !important; font-size: .78rem !important; }
.footer-bottom { padding-top: 14px !important; }
@media(max-width:768px) {
    .site-footer { padding: 24px 0 12px !important; }
    .site-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; margin-bottom: 16px !important; }
}
@media(max-width:480px) {
    .site-footer-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
}

/* ── COMPACT FOOTER v2 ───────────────────────────────────────── */
.site-footer { background: #0D1117 !important; padding: 32px 0 12px !important; }
.sf-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 20px;
}
.sf-brand-col .footer-desc { font-size: .8rem; color: rgba(255,255,255,.38); line-height: 1.6; max-width: 22ch; margin: 8px 0 0; }
.sf-links-col .footer-heading { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.22); margin-bottom: 10px; }
.sf-links-col .footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.sf-links-col .footer-links a { font-size: .8rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.sf-links-col .footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .74rem; color: rgba(255,255,255,.22); margin: 0; display: flex; align-items: center; gap: 5px; }
.footer-bottom-right { display: flex; align-items: center; gap: 8px !important; }
.footer-pwa-install { color: rgba(255,255,255,.4) !important; font-size: .72rem !important; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.footer-pwa-install:hover { color: #60A5FA !important; }

/* Mobile footer — horizontal scrolling link row */
@media (max-width: 768px) {
  .site-footer { padding: 20px 0 8px !important; }
  .sf-top { display: flex !important; flex-direction: column !important; gap: 0 !important; }
  .sf-brand-col { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
  .sf-brand-col .footer-desc { display: none !important; } /* hide desc on mobile */
  .footer-social { margin-top: 0 !important; }
  /* Collapse link cols into one horizontal scrollable row */
  .sf-links-col { display: none !important; } /* hide on mobile — key links in bottom nav */
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; padding-top: 10px !important; }
  .footer-bottom p { font-size: .7rem !important; }
}

@media (max-width: 480px) {
  .sf-brand-col { padding-bottom: 10px; margin-bottom: 8px; }
  .footer-bottom { padding-top: 8px; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ LEADS GRID RESPONSIVE ══════════════════════════════════
   Desktop ≥900px: 3 cols | Tablet+Mobile <900px: 2 cols
   ══════════════════════════════════════════════════════════ */
@media screen and (max-width: 540px) {
    .leads-grid { grid-template-columns: 1fr !important; }
}
@media screen and (min-width: 541px) and (max-width: 900px) {
    .leads-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── CONTACT PAGE RESPONSIVE ─────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.contact-info h2, .contact-form h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.social-btns-contact { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.social-btn-c {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 8px;
    font-size: .84rem; font-weight: 700; color: #fff;
    text-decoration: none; border: none; cursor: pointer;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .875rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    outline: none;
    transition: border-color .15s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #1B4FD8; box-shadow: 0 0 0 3px rgba(27,79,216,.08); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .submit-btn {
    background: #1B4FD8; color: #fff; border: none;
    border-radius: 10px; padding: 13px 28px;
    font-size: .95rem; font-weight: 700; cursor: pointer;
    font-family: 'Inter', sans-serif; width: 100%;
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr !important; gap: 28px; }
    .social-btns-contact { flex-direction: row; }
    .social-btn-c { font-size: .78rem; padding: 8px 14px; }
}