/* Blitz public shell, homepage, login and client application pages.
   One brand panel (logo, live network map, pitch) beside the page's own
   content: a dark panel with a card (home, login) or the application form.

   Written mobile-first. On a phone each page does one job and leads with it:
     home   logo · map · pitch · Login / New Register in the thumb zone
     login  logo · short map · the form (pitch dropped, they've read it)
     apply  logo · short map · the form
   Two columns only from a landscape screen that fits both (>= 901px wide).
   Tokens measured off app.blitznow.in/login (2026-09-17); map palette from
   the reference illustration (2026-09-25). */

:root {
  --pw-primary: #0066FF;
  --pw-primary-hover: #0052CC;
  --pw-link: #0066FF;
  --pw-text: #0D0D0D;
  --pw-text-secondary: #6E6E7A;
  --pw-border: #D4D4D7;
  --pw-dark-panel: #0D0C22;
  --pw-radius-card: 10px;
  --pw-radius-button: 6px;
  --nm-navy: #040217;
  --nm-ink: #1B1A22;
  --nm-blue: #0066FF;        /* truck + status pills */
  --nm-blue-soft: #3D8BFF;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bz-shell {
  margin: 0;
  font: 400 15px/1.5 'Poppins', sans-serif;
  color: var(--pw-text);
  background: #FFFFFF;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Landing and login are single-screen pages: no rubber-band bounce or
   pull-to-refresh drag. (The application form scrolls, so it's excluded.) */
html:has(.bz-shell--home), html:has(.bz-shell--login) { overscroll-behavior: none; }
.bz-shell--home, .bz-shell--login { overscroll-behavior: none; }
@media (min-width: 901px) and (orientation: landscape), (min-width: 1101px) {
  body.bz-shell--home, body.bz-shell--login { height: 100vh; overflow: hidden; }
}

/* ---------- Brand panel (phone first) ---------- */
.bz-brand {
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 20px 0;
  background: #FFFFFF;
}
.bz-logo { display: inline-flex; align-self: flex-start; }
.bz-logo img { height: 28px; display: block; }

.bz-illustration {
  display: flex;
  justify-content: center;
  margin: 4px -20px 0;         /* full-bleed: the map's edges fade out anyway */
}
.map-wrap { position: relative; width: 100%; }
.map-card {
  position: relative;
  aspect-ratio: 660 / 450;
  container-type: inline-size;
}
.map-card > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.bz-pitch { padding: 4px 0 0; }
.bz-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font: 600 10.5px/1.3 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4B4D5C;
}
.bz-eyebrow::before {
  content: "";
  flex: none;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--nm-blue);
}
.bz-tagline {
  margin: 0 0 8px;
  font: 700 29px/1.08 'Poppins', sans-serif;
  letter-spacing: -.028em;
  color: #0D0C22;
  text-wrap: balance;
}
.bz-tagline .hl {
  background: linear-gradient(transparent 64%, rgba(0, 102, 255, .18) 64%, rgba(0, 102, 255, .18) 92%, transparent 92%);
  padding: 0 .04em;
}
.bz-subtext {
  margin: 0;
  font: 400 14.5px/1.55 'Poppins', sans-serif;
  color: #5B5E6E;
  max-width: 34em;
}

/* Phone map heights. The script re-frames the city to whatever shape the
   card is, so on a phone it can simply take the room the screen has:
   home, the map is the hero and fills what the pitch and buttons leave;
   login / apply, the job is the form, so a short banner and no pitch. */
@media (max-width: 600px) {
  .map-card { aspect-ratio: auto; height: clamp(230px, calc(100svh - 365px), 520px); }
  /* Home: the map takes exactly what's left once the pitch and buttons have
     their room, so a copy change can never push the buttons off-screen. */
  .bz-shell--home .bz-brand { flex: 1 1 auto; }
  .bz-shell--home .bz-illustration { flex: 1 1 0; min-height: 200px; max-height: 520px; }
  .bz-shell--home .map-wrap { display: flex; }
  .bz-shell--home .map-card { flex: 1; height: auto; }
  /* Lift the buttons clear of the phone's bottom edge / gesture bar. */
  .bz-shell--home .bz-side { flex: 0 0 auto; padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 32px)); }
  .bz-shell--compact .bz-illustration { margin-top: 8px; }
  .bz-shell--compact .map-card { height: clamp(190px, 31svh, 270px); }

}
.bz-shell--compact .bz-pitch { display: none; }
/* Phones / upright tablets: the animation lives on the landing page only
   login and the application form go straight to their job. (The side-by-side
   desktop layout brings it back below.) */
.bz-shell--compact .bz-illustration { display: none; }
.bz-shell--login .bz-side { padding-top: 28px; }

/* Small phones (iPhone SE / 360px Androids): one-line eyebrow, and a map
   that gives up height first so both buttons still fit the first screen. */
@media (max-width: 374px) {
  /* The eyebrow is the one line a tiny screen can lose without losing the
     story, the map needs those pixels more. */
  .bz-eyebrow { display: none; }
  .bz-tagline { font-size: 25px; margin-bottom: 6px; }
  .bz-subtext { font-size: 13.5px; line-height: 1.5; }
  .bz-side { padding-top: 16px; }
  .map-card { height: clamp(190px, calc(100svh - 350px), 520px); }
  .bz-shell--home .map-card { height: auto; }
  .bz-shell--home .bz-illustration { min-height: 170px; }
}

/* ---------- Side (phone first: sits on white, in the flow) ---------- */
.bz-side {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 20px max(24px, env(safe-area-inset-bottom));
}
/* Home: push the two buttons to the bottom of the first screen (thumb zone). */
.bz-shell--home .bz-side { justify-content: flex-end; }
.bz-card { width: 100%; }
.bz-card-head { display: none; }        /* phone: the page's own logo covers it */
.bz-card-logo { display: block; height: 48px; width: auto; margin: 0 auto 16px; }
.bz-card h1 { font: 600 24px/1.3 'Poppins', sans-serif; margin: 0 0 6px; color: var(--pw-text); }
.bz-card-sub { font: 400 14px/1.5 'Poppins', sans-serif; color: var(--pw-text-secondary); margin: 0 0 24px; }

.bz-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; padding: 0 16px;
  border-radius: var(--pw-radius-button);
  font: 500 16px/1 'Poppins', sans-serif;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bz-btn + .bz-btn { margin-top: 12px; }
.bz-btn-primary { border: none; background: var(--pw-primary); color: #FFFFFF; }
.bz-btn-primary:hover { background: var(--pw-primary-hover); }
.bz-btn-secondary { border: 1px solid var(--pw-border); background: #FFFFFF; color: var(--pw-text); }
.bz-btn:focus-visible { outline: 2px solid var(--pw-link); outline-offset: 2px; }

/* The form page's side: a light-grey working area. */
.bz-side--form { background: #F7F7F8; padding: 0; }

/* ---------- Tablet, upright (601–1100px portrait, 601–900px any) ---------- */
@media (min-width: 601px) {
  .bz-brand { padding: 28px max(32px, calc((100% - 600px) / 2)) 0; }
  .bz-logo img { height: 32px; }
  .bz-illustration { margin: 12px -32px 8px; }
  .bz-eyebrow { font-size: 12px; letter-spacing: .14em; }
  .bz-tagline { font-size: 42px; }
  .bz-subtext { font-size: 16px; }
  .bz-side { padding: 32px max(32px, calc((100% - 600px) / 2)) 48px; }
  .bz-shell--home .bz-side { justify-content: flex-start; }
}

/* Tablets held upright: same idea as phones, the map takes the height the
   screen has, rather than leaving the bottom third empty. */
@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
  .map-card { aspect-ratio: auto; height: clamp(340px, calc(100svh - 480px), 700px); }
  .bz-shell--compact .map-card { height: clamp(260px, 30svh, 360px); }
}

/* ---------- Two columns: landscape and wide enough for both ---------- */
@media (min-width: 901px) and (orientation: landscape), (min-width: 1101px) {
  body.bz-shell { flex-direction: row; }
  .bz-brand {
    flex: 1 1 auto;
    min-width: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    justify-content: space-between;
    /* Extra bottom room so the headline block sits up off the edge. */
    padding: 40px 40px clamp(56px, 10vh, 104px);
  }
  /* The map takes exactly the height the logo and pitch leave, at any
     window size, the script re-frames the city to whatever shape results,
     so the column never grows past the screen and never scrolls. */
  .bz-illustration {
    flex: 1 1 0;
    min-height: 0;
    align-items: stretch;
    margin: 12px -40px 20px;
  }
  .map-wrap,
  .bz-shell--compact .map-wrap { width: 100%; max-width: 780px; height: 100%; }
  .map-card,
  .bz-shell--home .map-card,
  .bz-shell--compact .map-card { aspect-ratio: auto; height: 100%; }
  .bz-shell--compact .bz-pitch { display: block; }
  .bz-shell--compact .bz-illustration { display: flex; }
  .bz-tagline { font-size: clamp(32px, 3.1vw, 46px); max-width: 520px; margin-bottom: 14px; }
  .bz-subtext { font-size: 15.5px; max-width: 440px; }

  .bz-side {
    flex: 0 0 clamp(440px, 38vw, 560px);
    min-height: 100vh;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    background-color: var(--pw-dark-panel);
    background-image:
      linear-gradient(135deg, transparent 24%, rgba(0,102,255,.18) 25%, rgba(0,102,255,.18) 26%, transparent 27%, transparent 74%, rgba(0,102,255,.18) 75%, rgba(0,102,255,.18) 76%, transparent 77%),
      linear-gradient(45deg, transparent 24%, rgba(0,102,255,.12) 25%, rgba(0,102,255,.12) 26%, transparent 27%, transparent 74%, rgba(0,102,255,.12) 75%, rgba(0,102,255,.12) 76%, transparent 77%);
    background-size: 90px 90px;
  }
  .bz-shell--home .bz-side { justify-content: center; }
  .bz-card {
    width: 420px;
    max-width: 100%;
    background: #FFFFFF;
    border-radius: var(--pw-radius-card);
    box-shadow: 0 15px 24px rgba(10, 76, 173, .16);
    padding: 40px;
  }
  .bz-shell--home .bz-card { text-align: center; }
  .bz-card-head { display: block; }
  .bz-btn { height: 44px; font-size: 14px; }

  .bz-side--form {
    flex: 0 0 min(760px, 58vw);
    display: block;
    padding: 0;
    background: #F7F7F8;
  }
}

/* Short landscape screens (phones on their side stay stacked; this is for
   laptops with little height): keep the map from crowding the pitch. */
@media (max-height: 520px) and (orientation: landscape) {
  .map-wrap, .bz-shell--compact .map-wrap { width: min(100%, 440px); }
}

/* ---------- Map overlays: pills and captions ---------- */
.nm-anchor { position: absolute; transform: translate(0, -50%); pointer-events: none; }
.nm-anchor.nm-above { transform: translate(0, -100%); }
.nm-anchor.nm-below { transform: none; }
.nm-badge {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .4em .45em .4em .4em;
  border-radius: 999px;
  background: var(--nm-blue);
  color: #FFFFFF;
  font: 500 clamp(10px, calc(var(--nm-u, .77) * 15.5px), 15px)/1 'Poppins', sans-serif;
  letter-spacing: -.005em;
  white-space: nowrap;
  box-shadow: 0 12px 26px -10px rgba(0, 72, 184, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0;
  transform: translateY(10px) scale(.9);
  transform-origin: left center;
  transition: opacity .42s cubic-bezier(.16, 1, .3, 1), transform .42s cubic-bezier(.16, 1, .3, 1), background-color .3s;
}
.nm-badge.on { opacity: 1; transform: none; }
.nm-badge.nm-flash { background: #3D8BFF; }
.nm-badge-ic {
  width: 2.1em; height: 2.1em; flex: none;
  border-radius: 50%;
  background: var(--nm-blue-soft);
  display: grid; place-items: center;
}
.nm-badge-ic svg { width: 1.2em; height: 1.2em; }
.nm-chip {
  padding: .45em .65em;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0050CC;
  font: 600 .88em/1 'JetBrains Mono', monospace;
  letter-spacing: -.01em;
}
.nm-cap {
  position: absolute;
  transform: translate(-50%, 0);
  padding: .5em .85em;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--nm-navy);
  font: 600 clamp(9px, calc(var(--nm-u, .77) * 11.5px), 11px)/1 'Poppins', sans-serif;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(13, 12, 34, .3);
  pointer-events: none;
}
.nm-cap.nm-cap-up { transform: translate(-50%, -100%); }
.nm-cap.nm-cap-left { transform: translate(-100%, -50%); }
.nm-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: nmHalo 2.4s cubic-bezier(.16, 1, .3, 1) infinite;
  opacity: 0;
}
.nm-halo-2 { animation-delay: 1.2s; }
@keyframes nmHalo {
  0% { transform: scale(.4); opacity: .5; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* A narrow map can't hold three pills legibly, show only the latest step
   (picked up → stored / request → delivered), one at a time. */
@container (max-width: 560px) {
  .nm-badge.on:not(.nm-latest) { opacity: 0; transform: translateY(-6px) scale(.94); }
}

@media (prefers-reduced-motion: reduce) {
  .nm-halo { animation: none; }
  .nm-badge { transition: none; }
}
