/* ==========================================================================
   Happy Bangladesh — Design System
   Display: Bricolage Grotesque · Body: Inter · Data: JetBrains Mono · বাংলা: Hind Siliguri
   ========================================================================== */

/* ---------- Tokens ---------------------------------------------------- */
:root {
  /* Surface */
  --paper: #fbfcfe;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --ink: #101632;
  --navy: #262d54;
  --muted: #616985;
  --faint: #939ab5;
  --line: rgba(34, 41, 80, 0.09);
  --line-strong: rgba(34, 41, 80, 0.16);
  --scene-road: #e3e9f4;
  --scene-fill: #ffffff;

  /* Brand */
  --blue: #0b5cf5;
  --blue-600: #0341bc;
  --blue-soft: #e6eefe;
  --marigold: #ffb92e;

  /* Chain / role colours — mirrored from the app's role tiles */
  --c-company: #ff8a3d;
  --c-dealer: #7c4dff;
  --c-sr: #f2452f;
  --c-dm: #12b886;
  --c-retailer: #0b5cf5;
  --c-bss: #00a3b4;

  /* Type */
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --bangla: "Hind Siliguri", "Inter", sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1200px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Form */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(17, 23, 53, 0.03), 0 4px 14px rgba(17, 23, 53, 0.04);
  --shadow-2: 0 1px 3px rgba(17, 23, 53, 0.04), 0 16px 44px rgba(17, 23, 53, 0.08);
  --shadow-blue: 0 8px 24px rgba(11, 92, 245, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;   /* clip, never hidden — hidden would break position:sticky */
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.1vw, 3.15rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.card h3 { font-size: clamp(1.125rem, 1.5vw, 1.3rem); }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.bn { font-family: var(--bangla); letter-spacing: 0; }

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--plain::before { display: none; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }

/* ---------- Layout ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .lead, .section--ink .muted { color: rgba(255, 255, 255, 0.66); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 + .lead { margin-top: 1.1rem; }
h2 + .lead, h3 + .lead { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid--aside { grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.grid--aside-l { grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.grid--toc { grid-template-columns: 1fr 240px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) {
  .grid--aside, .grid--aside-l, .grid--toc { grid-template-columns: 1fr; }
}

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--blue); box-shadow: var(--shadow-blue); }
.btn--primary:hover { --btn-bg: var(--blue-600); box-shadow: 0 14px 38px rgba(11, 92, 245, 0.34); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { --btn-bg: rgba(34, 41, 80, 0.04); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--onink {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.btn--onink:hover { --btn-bg: rgba(255, 255, 255, 0.16); }

.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.875rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

.btn .ico { width: 17px; height: 17px; flex: none; transition: transform 0.4s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue);
}
.textlink svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Header ----------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  height: 76px;
  min-width: 0;
  transition: height 0.4s var(--ease);
}
.is-stuck .nav { height: 66px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}
.brand img { height: 30px; width: auto; flex-shrink: 0; }
.brand-tag {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border-left: 1px solid var(--line-strong);
  padding-left: 0.6rem;
  line-height: 1.3;
  max-width: 6.5rem;
  white-space: normal;
  word-break: break-word;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 1;
  min-width: 0;
  overflow: visible;
}
.nav-list > li { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--navy);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.nav-link:hover { background: rgba(34, 41, 80, 0.05); }
.nav-link[aria-current="page"] { color: var(--blue); font-weight: 550; }
.nav-link .chev { width: 13px; height: 13px; opacity: 0.55; transition: transform 0.3s var(--ease); }
.has-menu:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  width: 320px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
  /* prevent dropdown from being clipped */
  z-index: 200;
}
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.dropdown a:hover { background: var(--surface-2); }
.dropdown .dot {
  width: 8px; height: 8px;
  border-radius: 3px;
  margin-top: 0.5rem;
  flex: none;
  background: var(--role, var(--blue));
}
.dropdown strong { display: block; font-size: 0.9375rem; font-weight: 550; color: var(--ink); }
.dropdown span { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  place-items: center;
}
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 4px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--surface);
  padding: 100px var(--gutter) 2rem;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 42px) 44px);
  transition: clip-path 0.6s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 42px) 44px); visibility: visible; }
.mobile-menu a {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
}
body.menu-open .mobile-menu a { animation: mmIn 0.5s var(--ease) forwards; }
.mobile-menu .sub { font-family: var(--body); font-size: 1rem; color: var(--muted); padding-left: 1rem; }
.mobile-menu .m-actions { display: grid; gap: 0.7rem; margin-top: 2rem; }
.mobile-menu .m-actions .btn { width: 100%; }
@keyframes mmIn { to { opacity: 1; transform: none; } }

/* ---------- Hero ------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 13vw, 10.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { margin: 1.35rem 0 0; }
.hero h1 .accent {
  position: relative;
  color: var(--blue);
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.04em;
  height: 0.1em;
  background: var(--marigold);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  animation: underline 0.9s var(--ease) 0.9s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero .lead { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.bismillah {
  font-family: var(--bangla);
  font-size: 0.9375rem;
  color: var(--faint);
  margin-bottom: 0.35rem;
  direction: rtl;
  text-align: left;
  letter-spacing: 0.02em;
}

/* Hero device */
.hero-visual { position: relative; }
.hero-visual .device {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-visual .badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero-visual .badge b { font-family: var(--display); font-size: 1rem; }
.hero-visual .badge .pip {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  flex: none;
}
.hero-visual .badge .pip svg { width: 15px; height: 15px; }
.badge--tl { top: 6%; left: -6%; animation: float 8s ease-in-out 0.6s infinite; }
.badge--br { bottom: 10%; right: -4%; animation: float 9s ease-in-out 1.2s infinite; }
.badge--br .pip { background: rgba(18, 184, 134, 0.12); color: var(--c-dm); }

/* Stat rail */
.stat-rail {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}
.stat-rail li { padding: 1.5rem 0.5rem 1.5rem 0; }
.stat-rail li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stat-rail .n {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-rail .k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.5rem;
}

/* ---------- Marquee ---------------------------------------------------- */
.marquee {
  --speed: 38s;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide var(--speed) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); padding-right: clamp(2.5rem, 6vw, 5rem); }
.marquee img {
  height: 46px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.35s, opacity 0.35s;
}
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- The Chain (signature) -------------------------------------- */
.chain-sec { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.chain-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(11, 92, 245, 0.22), transparent 70%),
    radial-gradient(50% 50% at 90% 100%, rgba(255, 185, 46, 0.12), transparent 70%);
  pointer-events: none;
}
.chain-sec .wrap { position: relative; z-index: 1; }
.chain-sec h2, .chain-sec h3, .chain-sec h4 { color: #fff; }
.chain-sec .lead { color: rgba(255, 255, 255, 0.66); }
.chain-sec .eyebrow { color: var(--marigold); }

.chain-track { position: relative; margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.chain-line {
  position: absolute;
  top: 27px;
  left: 6%; right: 6%;
  height: 2px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 2px;
}
.chain-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--c-company), var(--c-dealer), var(--c-sr), var(--c-dm), var(--c-retailer));
  border-radius: 2px;
  transition: width 0.9s var(--ease-io);
}
.chain-line .packet {
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.65);
  translate: 0 -50%;
  animation: packet 4.5s linear infinite;
}
.chain-line .packet:nth-child(3) { animation-delay: 1.5s; }
.chain-line .packet:nth-child(4) { animation-delay: 3s; }
@keyframes packet {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.chain-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.chain-node { text-align: center; }
.chain-node button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}
.chain-node .knob {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.45s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.chain-node .knob svg { width: 24px; height: 24px; }
.chain-node .lbl {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.chain-node button:hover { color: #fff; }
.chain-node button:hover .knob { transform: translateY(-4px); }
.chain-node.is-active button { color: #fff; }
.chain-node.is-active .knob {
  background: var(--role);
  border-color: transparent;
  box-shadow: 0 12px 30px -6px var(--role);
  transform: translateY(-4px);
}

.chain-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  backdrop-filter: blur(10px);
}
.chain-panel .stage {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--role);
  margin-bottom: 0.9rem;
  display: block;
}
.chain-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.85rem; }
.chain-panel p { color: rgba(255, 255, 255, 0.66); }
.chain-panel ul { display: grid; gap: 0.85rem; align-content: start; }
.chain-panel li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}
.chain-panel li svg { width: 18px; height: 18px; flex: none; margin-top: 0.24rem; color: var(--role); }
.chain-panel [data-pane] { display: none; }
.chain-panel [data-pane].is-on { display: contents; animation: paneIn 0.5s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Cards ------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card h3, .card h4 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.9375rem; }
.card .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--role-soft, var(--blue-soft));
  color: var(--role, var(--blue));
  margin-bottom: 1.1rem;
}
.card .ic svg { width: 22px; height: 22px; }
.card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}

.card--flat { background: transparent; border-color: transparent; padding-inline: 0; }
.card--flat:hover { transform: none; box-shadow: none; }

/* detail blocks: a role-coloured rule instead of decorative numbering */
.detail { padding: 1.4rem 0 1.4rem 1.5rem; border-left: 2px solid var(--line); transition: border-color 0.4s var(--ease); }
.detail:first-child { padding-top: 0; }
.detail:hover { border-left-color: var(--role, var(--blue)); }
.detail h4 { margin-bottom: 0.4rem; }
.detail p { color: var(--muted); font-size: 0.9375rem; }

/* Role card w/ top hairline */
.role-card { position: relative; overflow: hidden; }
.role-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--role, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.role-card:hover::before { transform: scaleX(1); }

/* ---------- Before / After -------------------------------------------- */
.compare { display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.compare-cell { background: var(--surface); padding: clamp(1.25rem, 2.5vw, 1.9rem); }
.compare-cell.before { background: #fbfbfd; }
.compare-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  white-space: nowrap;
}
.compare-tag svg { width: 13px; height: 13px; }
.before .compare-tag { color: var(--faint); }
.after .compare-tag { color: var(--c-dm); }
.compare-cell p { font-size: 0.9375rem; color: var(--muted); }
.before p { color: var(--faint); }
.after p { color: var(--navy); }
.compare-cell h4 { margin-bottom: 0.45rem; }

/* ---------- Accordion -------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.25s;
}
.acc-btn:hover { color: var(--blue); }
.acc-sign {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.acc-sign::before, .acc-sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.acc-sign::before { width: 11px; height: 1.5px; }
.acc-sign::after { width: 1.5px; height: 11px; }
.acc-item.is-open .acc-sign { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(90deg); }
.acc-item.is-open .acc-sign::after { transform: scaleY(0); opacity: 0; }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p, .acc-panel li { color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }
.acc-panel p + p { margin-top: 0.8rem; }
.acc-panel ul { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.acc-panel li { display: flex; gap: 0.65rem; }
.acc-panel li::before { content: "—"; color: var(--blue); flex: none; }
.acc-panel > div > *:last-child { padding-bottom: 1.6rem; }

/* ---------- App / download -------------------------------------------- */
.app-band {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #16224f 0%, var(--ink) 55%, #0a1030 100%);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.app-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 70% at 85% 30%, rgba(11, 92, 245, 0.35), transparent 70%);
}
.app-band > * { position: relative; }
.app-band h2 { color: #fff; }
.app-band .lead { color: rgba(255, 255, 255, 0.68); }
.app-feature-list { display: grid; gap: 0.7rem; margin: 1.6rem 0 2rem; }
.app-feature-list li { display: flex; gap: 0.7rem; font-size: 0.9375rem; color: var(--muted); }
.app-feature-list svg { width: 18px; height: 18px; color: var(--role, var(--blue)); flex: none; margin-top: 0.22rem; }
.app-band .app-feature-list li,
.auth-aside .app-feature-list li { color: rgba(255, 255, 255, 0.8); }
.app-band .app-feature-list svg,
.auth-aside .app-feature-list svg { color: var(--marigold); }

.store-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}
.rating-chip b { color: #fff; font-family: var(--display); font-size: 1rem; }
.stars { display: inline-flex; gap: 2px; color: var(--marigold); }
.stars svg { width: 13px; height: 13px; }

/* ---------- Steps / timeline ------------------------------------------ */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .yr {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  padding-top: 0.25rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); max-width: 62ch; }

/* ---------- Team ------------------------------------------------------- */
.person { text-align: center; }
.person .ph {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 1rem;
}
.person .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.person:hover .ph img { transform: scale(1.06); }
.person h4 { margin-bottom: 0.15rem; }
.person span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ---------- Forms ------------------------------------------------------ */
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 245, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: #a9b0c8; }
.form-grid { display: grid; gap: 1.1rem; }
.form-note { font-size: 0.8125rem; color: var(--faint); }
.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(18, 184, 134, 0.1);
  color: #0a7a5a;
  font-size: 0.875rem;
}
.form-status.is-on { display: block; animation: paneIn 0.4s var(--ease); }

/* ---------- Contact info ---------------------------------------------- */
.info-list { display: grid; gap: 1.35rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: none;
}
.info-list .ic svg { width: 18px; height: 18px; }
.info-list dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.15rem;
}
.info-list dd { font-size: 0.9375rem; font-weight: 450; color: var(--ink); }

/* ---------- Legal / prose --------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 2.75rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.9688rem; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { display: grid; gap: 0.6rem; margin: 1rem 0; }
.prose ul li { display: flex; gap: 0.7rem; }
.prose ul li::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--blue); flex: none; margin-top: 0.62rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.legal-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 0.1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.legal-toc a {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.35rem 0;
  transition: color 0.2s, transform 0.3s var(--ease);
}
.legal-toc a:hover { color: var(--blue); transform: translateX(3px); }

/* ---------- Page head (inner pages) ----------------------------------- */
.page-head {
  padding-top: clamp(7rem, 12vw, 9.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(11, 92, 245, 0.055), transparent 65%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.crumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.25rem;
}
.crumbs a:hover { color: var(--blue); }
.crumbs span { opacity: 0.4; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .lead { margin-top: 1.1rem; }

/* ---------- CTA band --------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--blue) 0%, #0a3fbe 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 12% 20%, rgba(255, 185, 46, 0.3), transparent 70%),
    radial-gradient(40% 60% at 88% 80%, rgba(255, 255, 255, 0.16), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 54ch; margin: 1.1rem auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.62); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 3rem; }
.site-footer h5 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.15rem;
}
.footer-links { display: grid; gap: 0.7rem; }
.footer-links a { font-size: 0.9375rem; transition: color 0.25s, transform 0.3s var(--ease); display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-brand img { height: 30px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9375rem; max-width: 34ch; }
.footer-contact { display: grid; gap: 0.5rem; margin-top: 1.5rem; font-size: 0.9375rem; }
.footer-contact a:hover { color: #fff; }
.licence {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.34);
  margin-top: 1.25rem;
  line-height: 1.8;
}
.socials { display: flex; gap: 0.55rem; margin-top: 1.75rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.3s, transform 0.4s var(--ease), border-color 0.3s;
}
.socials a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll progress + to-top ---------------------------------- */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), var(--marigold));
  z-index: 200;
  pointer-events: none;
}
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2);
  z-index: 90;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: all 0.45s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Reveal ----------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="clip"] {
  transform: none;
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transition: clip-path 1s var(--ease);
}
[data-reveal="clip"].in { clip-path: inset(0 0 0 0); }

/* ---------- 404 --------------------------------------------------------- */
.err {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--gutter);
}
.err .code {
  font-family: var(--display);
  font-size: clamp(6rem, 22vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  background: linear-gradient(140deg, var(--blue), var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Login ------------------------------------------------------ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: var(--ink);
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(55% 50% at 20% 15%, rgba(11, 92, 245, 0.35), transparent 70%),
              radial-gradient(50% 45% at 85% 90%, rgba(255, 185, 46, 0.16), transparent 70%);
}
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.auth-aside p { color: rgba(255, 255, 255, 0.65); margin-top: 1rem; max-width: 40ch; }
.auth-main { display: grid; place-items: center; padding: clamp(2rem, 5vw, 4rem) var(--gutter); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.5rem; }
.role-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1.5rem 0; }
.role-picker input { position: absolute; opacity: 0; pointer-events: none; }
.role-picker label {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.role-picker label svg { width: 19px; height: 19px; color: var(--muted); transition: color 0.3s; }
.role-picker input:checked + label {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}
.role-picker input:checked + label svg { color: var(--blue); }
.role-picker input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Utilities -------------------------------------------------- */
.stack-sm > * + * { margin-top: 0.6rem; }
.stack > * + * { margin-top: 1.25rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 50%; top: 0;
  translate: -50% -120%;
  z-index: 999;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  transition: translate 0.3s var(--ease);
}
.skip:focus { translate: -50% 0; }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .badge--tl { left: 0; }
  .badge--br { right: 0; }
  .chain-panel { grid-template-columns: 1fr; }
  .app-band { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* --- Header: hide brand-tag and trim padding on mid-sized screens --- */
@media (max-width: 1060px) {
  .brand-tag { display: none; }
  .nav-link { padding: 0.45rem 0.5rem; font-size: 0.8125rem; }
}

/* --- Header: collapse to hamburger --- */
@media (max-width: 860px) {
  .nav-list { display: none; }
  .nav-cta .btn { display: none; }
  .burger { display: grid; }
  .nav-cta { gap: 0.4rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .chain-nodes { grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
  .chain-node .knob { width: 46px; height: 46px; border-radius: 15px; }
  .chain-node .knob svg { width: 20px; height: 20px; }
  .chain-node .lbl { font-size: 0.5625rem; letter-spacing: 0.05em; }
  .chain-line { top: 22px; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .legal-toc { display: none; }
}

@media (max-width: 640px) {
  .brand-tag { display: none; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stat-rail { grid-template-columns: 1fr 1fr; }
  .stat-rail li { padding: 1.15rem 0.5rem; }
  .stat-rail li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat-rail li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1.25rem; }
  .stat-rail li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .compare-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .role-picker { grid-template-columns: repeat(2, 1fr); }
  .marquee img { height: 34px; }
  /* On very small screens, keep only theme toggle + burger in nav-cta */
  .nav-cta { gap: 0.35rem; }
}

/* ---------- Motion preferences ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero h1 .accent::after { transform: scaleX(1); }
}

@media print {
  .site-header, .site-footer, .to-top, .scroll-bar, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
/* ==========================================================================
   Part 2 — dark theme, the logistics scene, and the interactive modules
   ========================================================================== */

/* ---------- Dark theme -------------------------------------------------- */
html[data-theme="dark"] {
  --paper: #0b1026;
  --surface: #111735;
  --surface-2: #171e40;
  --ink: #f2f5fd;
  --navy: #d3daf0;
  --muted: #99a2c4;
  --faint: #7b85ab;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #5b8dff;
  --blue-600: #7ba5ff;
  --blue-soft: rgba(91, 141, 255, 0.14);
  --scene-road: rgba(255, 255, 255, 0.12);
  --scene-fill: #171e40;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 1px 3px rgba(0, 0, 0, 0.35), 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow-blue: 0 8px 24px rgba(91, 141, 255, 0.2);
  color-scheme: dark;
}
html[data-theme="dark"] .section--white { background: var(--surface); }
html[data-theme="dark"] .site-header.is-stuck { background: rgba(11, 16, 38, 0.8); }
html[data-theme="dark"] .compare-cell.before { background: rgba(255, 255, 255, 0.02); }
html[data-theme="dark"] .btn { --btn-bg: #e8ecf8; --btn-fg: #101632; }
html[data-theme="dark"] .btn--primary { --btn-bg: var(--blue); --btn-fg: #06102c; }
html[data-theme="dark"] .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
html[data-theme="dark"] .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.07); }
html[data-theme="dark"] .marquee img { filter: grayscale(1) invert(1) brightness(1.7); opacity: 0.5; }
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .hero-visual img { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .page-head { background: var(--surface); }

/* Theme switch */
.theme-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background 0.25s, transform 0.4s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(-18deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------- Split-text heading reveal ---------------------------------- */
.split {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.12em 0 0.16em;
  margin-bottom: -0.16em;
}
.split > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--wd, 0ms);
}
.split.in > i { transform: none; }

/* ---------- Hero: the logistics scene ----------------------------------- */
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
}
.scene svg { width: 100%; height: 100%; overflow: visible; }

.scene .plate { fill: var(--scene-fill); stroke: var(--line); stroke-width: 1; }
.scene .road {
  fill: none;
  stroke: var(--scene-road);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.scene .flow {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 340;
  stroke-dashoffset: 350;
  animation: flow 3.4s linear infinite;
}
.scene .flow--2 { animation-delay: 1.1s; }
.scene .flow--3 { animation-delay: 2.2s; }
@keyframes flow { to { stroke-dashoffset: -350; } }

.scene .hub circle { fill: var(--blue); }
.scene .ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  transform-origin: center;
  animation: ping 2.8s var(--ease-io) infinite;
}
.scene .ring--b { animation-delay: 1.4s; }
@keyframes ping {
  0% { r: 12; opacity: 0.55; }
  100% { r: 46; opacity: 0; }
}

.scene .pin > g { transform-box: fill-box; transform-origin: center bottom; }
.scene .pin path { fill: var(--scene-fill); stroke: var(--line-strong); stroke-width: 1.6; }
.scene .pin circle { fill: var(--faint); }
.scene .pin.lit path { stroke: var(--pin, var(--c-dm)); }
.scene .pin.lit circle { fill: var(--pin, var(--c-dm)); }
.scene .pin.lit > g { animation: pop 0.6s var(--ease) both; }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.scene .van {
  offset-path: var(--path);
  offset-rotate: 0deg;
  animation: drive 9s linear infinite;
}
.scene .van--b { animation-delay: 4.5s; }
@keyframes drive { to { offset-distance: 100%; } }
.scene .van rect { fill: var(--ink); }
.scene .van .glass { fill: var(--marigold); }

.scene .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--faint);
}

/* status chips floating over the scene */
.scene-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-2);
  font-size: 0.8125rem;
  white-space: nowrap;
  opacity: 0;
  animation: chipIn 9s var(--ease) infinite;
}
.scene-chip b { font-family: var(--display); font-size: 0.9375rem; display: block; color: var(--ink); }
.scene-chip small { color: var(--faint); font-size: 0.6875rem; font-family: var(--mono); letter-spacing: 0.06em; }
.scene-chip .pip {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--chip-soft, var(--blue-soft));
  color: var(--chip, var(--blue));
  flex: none;
}
.scene-chip .pip svg { width: 14px; height: 14px; }
@keyframes chipIn {
  0%, 4% { opacity: 0; transform: translateY(8px) scale(0.96); }
  10%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
.chip-1 { top: 4%; left: -4%; animation-delay: 0s; }
.chip-2 { top: 52%; right: -7%; animation-delay: 3s; --chip: var(--c-dealer); --chip-soft: rgba(124,77,255,.12); }
.chip-3 { bottom: 6%; left: 6%; animation-delay: 6s; --chip: var(--c-dm); --chip-soft: rgba(18,184,134,.12); }

/* ---------- Live order ticker ------------------------------------------ */
.ticker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  max-width: max-content;
}
.ticker .live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-dm);
  flex: none;
}
.ticker .live i {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: blip 2s var(--ease-io) infinite;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.ticker .feed { position: relative; height: 1.3em; overflow: hidden; min-width: 27ch; white-space: nowrap; }
.ticker .feed span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  color: var(--muted);
}
.ticker .feed span.on { opacity: 1; transform: none; }
.ticker .feed span.out { opacity: 0; transform: translateY(-100%); }

/* ---------- Pinned supply chain (scrollytelling) ----------------------- */
.pin-wrap { position: relative; height: 360vh; }
.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.pin-spacer { height: 300vh; pointer-events: none; }
@supports not (position: sticky) { .pin-stage { position: static; min-height: 0; } .pin-spacer { display: none; } }

/* ---------- Savings calculator ----------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.calc > div { background: var(--surface); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.calc > div:first-child { display: flex; flex-direction: column; }
.calc-cta { margin-top: auto; padding-top: 1.5rem; }
.calc-out { background: var(--ink) !important; color: #fff; display: flex; flex-direction: column; justify-content: center; }
html[data-theme="dark"] .calc-out { background: var(--surface-2) !important; }

.slider { margin-bottom: 1.75rem; }
.slider:last-child { margin-bottom: 0; }
.slider header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.slider label { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.slider output {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 40%), var(--line-strong) var(--fill, 40%));
  outline: none;
  padding: 0;
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-1);
  cursor: grab;
  transition: transform 0.25s var(--ease);
}
.slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--blue);
  cursor: grab;
}
.slider .hint { font-size: 0.8125rem; color: var(--faint); margin-top: 0.5rem; }

.calc-result { margin-bottom: 1.75rem; }
.calc-result:last-of-type { margin-bottom: 0; }
.calc-result .k {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.4rem;
}
.calc-result .v {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.calc-result .v small { font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.5); margin-left: .35rem; }
.calc-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Coverage / expansion map ----------------------------------- */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.map-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}
.map-shell svg { width: 100%; height: auto; overflow: visible; }
.map-shell .region { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; transition: fill 0.5s var(--ease); }
.map-shell .region.on { fill: var(--blue-soft); }
.map-shell .node { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transform-box: fill-box; transform-origin: center; }
.map-shell .node circle { fill: var(--blue); }
.map-shell .node.dim { opacity: 0.22; }
.map-shell .node.dim circle { fill: var(--faint); }
.map-shell .halo { fill: none; stroke: var(--blue); stroke-width: 1.2; opacity: 0.35; }

.phase-list { display: grid; gap: 0; }
.phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.4s;
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 0.35rem;
  transition: color 0.3s;
}
.phase h4 { transition: color 0.3s; }
.phase p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.35rem;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s;
  opacity: 0;
}
.phase p > span { overflow: hidden; }
.phase.on p { grid-template-rows: 1fr; opacity: 1; }
.phase.on .n { color: var(--blue); }
.phase.on h4 { color: var(--blue); }
.phase:not(.on) { opacity: 0.55; }
.phase:hover { opacity: 1; }

/* ---------- Metric strip ------------------------------------------------ */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.metrics > div { background: var(--paper); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.metrics .v {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metrics .k { font-size: 0.9375rem; font-weight: 500; color: var(--ink); margin-top: 0.75rem; }
.metrics p { font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Model shift (two-column argument) -------------------------- */
.shift { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.shift-col { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.35rem, 3vw, 2rem); background: var(--surface); }
.shift-col.now { border-style: dashed; background: transparent; }
.shift-arrow { display: grid; place-items: center; color: var(--faint); }
.shift-arrow svg { width: 26px; height: 26px; }
.shift-col h4 { margin-bottom: 0.75rem; }
.shift-col ul { display: grid; gap: 0.6rem; }
.shift-col li { display: flex; gap: 0.6rem; font-size: 0.9375rem; color: var(--muted); }
.shift-col li svg { width: 16px; height: 16px; flex: none; margin-top: 0.25rem; color: var(--blue); }
.shift-col.now li svg { color: var(--faint); }

/* ---------- Responsive add-ons ----------------------------------------- */
@media (max-width: 1024px) {
  .calc, .coverage { grid-template-columns: 1fr; }
  .shift { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); padding-block: 0.5rem; }
  .metrics { grid-template-columns: 1fr; }
  .scene { aspect-ratio: 4 / 3; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
}
@media (max-width: 860px) {
  .pin-wrap { height: auto; }
  .pin-stage { position: static; height: auto; padding-block: var(--section-y); }
}
@media (max-width: 640px) {
  .scene-chip { font-size: 0.75rem; padding: 0.45rem 0.65rem; }
  .ticker { font-size: 0.75rem; }
  .ticker .feed { min-width: 16ch; }
}

@media (prefers-reduced-motion: reduce) {
  .split > i { transform: none !important; }
  .scene .flow, .scene .van, .scene .ring, .scene-chip { animation: none; }
  .scene-chip { opacity: 1; }
  .scene .flow { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.5; }
}



/* ==========================================================================
   Hero narrative — eight beats
   ========================================================================== */
.story { position: relative; }
.story-stage { position: relative; }
.story svg { width: 100%; height: auto; display: block; overflow: visible; }

.story-plate { fill: var(--scene-fill); stroke: var(--line); stroke-width: 1; }
.story-mesh { opacity: 0.75; }

/* --- the rail and the carton ------------------------------------------- */
.story-rail { stroke: var(--scene-road); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.story-carton { opacity: 0; }
.story-carton rect { fill: var(--ink); }
.story[data-beat="1"] .story-carton { animation: cartonRide 2.4s var(--ease-io) forwards; }
@keyframes cartonRide {
  0%   { opacity: 0; transform: translate(var(--x0), 376px) scale(0.7); }
  12%  { opacity: 1; transform: translate(var(--x0), 376px) scale(1); }
  88%  { opacity: 1; }
  100% { opacity: 1; transform: translate(var(--x1), 376px) scale(1); }
}

/* --- chain nodes -------------------------------------------------------- */
.story-node { transition: opacity 0.6s var(--ease); }
.story-node .core { fill: var(--faint); transition: fill 0.6s var(--ease); }
.story-node .ring { fill: none; stroke: var(--c); stroke-width: 1.6; opacity: 0; transition: opacity 0.6s var(--ease); transition-delay: var(--d); }
.story-node text {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.11em;
  text-transform: uppercase; fill: var(--faint);
}
.story[data-beat="2"] .story-node .core, .story[data-beat="3"] .story-node .core, .story[data-beat="4"] .story-node .core, .story[data-beat="5"] .story-node .core, .story[data-beat="6"] .story-node .core, .story[data-beat="7"] .story-node .core, .story[data-beat="8"] .story-node .core { fill: var(--c); }
.story[data-beat="2"] .story-node .ring, .story[data-beat="3"] .story-node .ring, .story[data-beat="4"] .story-node .ring, .story[data-beat="5"] .story-node .ring, .story[data-beat="6"] .story-node .ring, .story[data-beat="7"] .story-node .ring, .story[data-beat="8"] .story-node .ring { opacity: 0.45; }
.story[data-beat="7"] .story-node .ring, .story[data-beat="8"] .story-node .ring { opacity: 0.85; }

/* readout chips above each node */
.story-readout { opacity: 0; transform: translateY(-52px) scale(0.85); transition: all 0.6s var(--ease); transition-delay: var(--d); }
.story-readout rect { fill: var(--surface); stroke: var(--c); stroke-width: 1.4; }
.story-readout .spark { stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story[data-beat="7"] .story-readout, .story[data-beat="8"] .story-readout { opacity: 1; transform: translateY(-62px) scale(1); }

/* --- the records -------------------------------------------------------- */
.story-dot {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(var(--hx), var(--hy)) scale(0.4);
  opacity: 0;
  transition: transform 0.85s var(--ease), opacity 0.5s var(--ease);
  transition-delay: var(--d);
}
.story-dot rect { fill: var(--c); transition: fill 0.6s var(--ease); }

.story[data-beat="2"] .story-dot, .story[data-beat="3"] .story-dot, .story[data-beat="4"] .story-dot, .story[data-beat="5"] .story-dot, .story[data-beat="6"] .story-dot, .story[data-beat="7"] .story-dot, .story[data-beat="8"] .story-dot { opacity: 1; transform: translate(var(--hx), var(--hy)) scale(1); }
.story[data-beat="3"] .story-dot { transform: translate(var(--fx), var(--fy)) scale(1) rotate(-8deg); }
.story[data-beat="3"] .story-dot rect { fill: var(--faint); }
.story[data-beat="4"] .story-dot { transform: translate(var(--fx), var(--fy)) scale(1); }
.story[data-beat="4"] .story-dot rect { fill: var(--faint); }
.story[data-beat="5"] .story-dot, .story[data-beat="6"] .story-dot, .story[data-beat="7"] .story-dot, .story[data-beat="8"] .story-dot { transform: translate(var(--ux), var(--uy)) scale(0.85); }

/* --- connectors up to the core ------------------------------------------ */
.story-link {
  fill: none; stroke: var(--blue); stroke-width: 1.4;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset 0.9s var(--ease), opacity 0.4s;
  transition-delay: var(--d);
}
.story[data-beat="4"] .story-link, .story[data-beat="5"] .story-link, .story[data-beat="6"] .story-link, .story[data-beat="7"] .story-link, .story[data-beat="8"] .story-link { opacity: 0.5; stroke-dashoffset: 0; }
.story[data-beat="5"] .story-link, .story[data-beat="6"] .story-link, .story[data-beat="7"] .story-link, .story[data-beat="8"] .story-link { opacity: 0.28; }

/* --- return flow -------------------------------------------------------- */
.story-back {
  fill: none; stroke: var(--blue); stroke-width: 1.6;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  marker-end: url(#tip);
  transition: stroke-dashoffset 0.9s var(--ease), opacity 0.4s;
  transition-delay: var(--d);
}
.story[data-beat="6"] .story-back, .story[data-beat="7"] .story-back, .story[data-beat="8"] .story-back { opacity: 0.7; stroke-dashoffset: 0; }

/* --- the core ----------------------------------------------------------- */
.story-core { opacity: 0; transition: opacity 0.6s var(--ease); }
.story-core .shell { fill: var(--surface); stroke: var(--blue); stroke-width: 1.6; transition: fill 0.6s var(--ease); }
.story-core .halo { fill: none; stroke: var(--blue); stroke-width: 1; opacity: 0.25; }
.story-core .mark { stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; transition: stroke 0.6s var(--ease); }
.story-core text {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; fill: var(--faint);
}
.story[data-beat="4"] .story-core, .story[data-beat="5"] .story-core, .story[data-beat="6"] .story-core, .story[data-beat="7"] .story-core, .story[data-beat="8"] .story-core { opacity: 1; }
.story[data-beat="5"] .story-core .shell, .story[data-beat="6"] .story-core .shell, .story[data-beat="7"] .story-core .shell, .story[data-beat="8"] .story-core .shell { fill: var(--blue); }
.story[data-beat="5"] .story-core .mark, .story[data-beat="6"] .story-core .mark, .story[data-beat="7"] .story-core .mark, .story[data-beat="8"] .story-core .mark { stroke: #fff; }
.story[data-beat="8"] .story-core .halo { animation: coreHalo 2.4s var(--ease-io) infinite; }
@keyframes coreHalo {
  0%   { r: 54; opacity: 0.3; }
  100% { r: 92; opacity: 0; }
}

/* --- caption + steps ---------------------------------------------------- */
.story-readouts { margin-top: 1.25rem; }
.story-caps { position: relative; min-height: 5.2rem; }
.story-cap {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.story-cap b {
  display: block; font-family: var(--display); font-size: 1.0625rem;
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.3rem;
}
.story-cap span { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.story[data-beat="1"] .story-cap[data-cap="1"], .story[data-beat="2"] .story-cap[data-cap="2"], .story[data-beat="3"] .story-cap[data-cap="3"], .story[data-beat="4"] .story-cap[data-cap="4"], .story[data-beat="5"] .story-cap[data-cap="5"], .story[data-beat="6"] .story-cap[data-cap="6"], .story[data-beat="7"] .story-cap[data-cap="7"], .story[data-beat="8"] .story-cap[data-cap="8"] {
  opacity: 1; transform: none;
}

.story-steps { display: flex; gap: 6px; margin-top: 0.5rem; }
.story-step { flex: 1; padding: 8px 0; }
.story-step i {
  display: block; height: 3px; border-radius: 999px;
  background: var(--line-strong); transition: background 0.4s var(--ease);
}
.story-step:hover i { background: var(--faint); }
.story[data-beat="1"] .story-step:nth-child(-n+1) i, .story[data-beat="2"] .story-step:nth-child(-n+2) i, .story[data-beat="3"] .story-step:nth-child(-n+3) i, .story[data-beat="4"] .story-step:nth-child(-n+4) i, .story[data-beat="5"] .story-step:nth-child(-n+5) i, .story[data-beat="6"] .story-step:nth-child(-n+6) i, .story[data-beat="7"] .story-step:nth-child(-n+7) i, .story[data-beat="8"] .story-step:nth-child(-n+8) i {
  background: var(--blue);
}
.story-step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 640px) {
  .story-caps { min-height: 6.4rem; }
  .story-cap b { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .story-carton { animation: none; opacity: 1; transform: translate(var(--x1), 376px); }
  .story-core .halo { animation: none; }
  .story *, .story *::before { transition-duration: 0.01ms !important; }
}

/* ---------- Brand marquee: typographic marks for logos we do not have --- */
.marquee .wordmark {
  font-family: var(--display); font-size: 1.375rem; font-weight: 600;
  letter-spacing: -0.03em; color: var(--faint); white-space: nowrap;
  transition: color 0.35s;
}
.marquee li:hover .wordmark { color: var(--ink); }

.faces { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.faces img { height: 56px; width: auto; }
.faces p { font-size: 0.9375rem; color: var(--muted); max-width: 42ch; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.duo--flip > *:first-child { order: 2; }
.duo figure { margin: 0; }
.duo img { width: 100%; max-width: 460px; margin-inline: auto; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo--flip > *:first-child { order: 0; }
}

/* ---------- Colour: tinted section washes -------------------------------- */
.section--tint { position: relative; }
.section--tint::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--tint, rgba(11,92,245,.06)), transparent 65%);
  pointer-events: none;
}
.section--tint > * { position: relative; }

/* a hairline of the section's own colour, above the heading */
.eyebrow--dot::before { width: 8px; height: 8px; border-radius: 999px; opacity: 1; }

/* colour-carrying section heads */
.section-head--c .eyebrow { color: var(--sc, var(--blue)); }
.section-head--c h2 .hl { color: var(--sc, var(--blue)); }

/* soft colour chips behind figures */
.tintbox {
  border-radius: var(--r-lg);
  background: var(--tint, rgba(11,92,245,.06));
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
}
html[data-theme="dark"] .tintbox { background: rgba(255,255,255,.03); }





/* ==========================================================================
   Section visuals — every one of these is drawn, not imported
   ========================================================================== */
.viz { width: 100%; }
.viz svg { width: 100%; height: auto; overflow: visible; display: block; }
.viz-cap {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; fill: var(--faint);
}
.viz-cap--warn { fill: var(--c-sr); }

/* --- A · mismatch ------------------------------------------------------- */
.viz--mismatch .viz-sheet { fill: var(--surface); stroke: var(--c); stroke-width: 1.5; opacity: .9; }
.viz--mismatch .viz-fig {
  font-family: var(--mono); font-size: 13px; fill: var(--muted);
  opacity: 0; animation: figIn .5s var(--ease) forwards; animation-delay: var(--d);
}
.viz--mismatch .viz-fig.is-off { fill: var(--c-sr); font-weight: 500; }
@keyframes figIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.viz--mismatch .viz-tie { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.viz--mismatch .viz-clash circle { fill: var(--c-sr); }
.viz--mismatch .viz-clash path { stroke: #fff; stroke-linecap: round; }
/* opacity only — a transform here would overwrite the SVG placement */
.viz--mismatch .viz-clash { animation: clash 2.6s var(--ease-io) infinite; animation-delay: var(--d); }
@keyframes clash { 0%, 60%, 100% { opacity: .55; } 75% { opacity: 1; } }

/* --- B · views ---------------------------------------------------------- */
.viz--views .viz-core .shell { fill: var(--blue); }
.viz--views .viz-core .mark { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.viz--views .viz-core .halo { fill: none; stroke: var(--blue); stroke-width: 1.2; animation: vHalo 3s var(--ease-io) infinite; }
@keyframes vHalo { 0% { r: 30; opacity: .4; } 100% { r: 58; opacity: 0; } }
.viz--views .viz-thread {
  fill: none; stroke: var(--blue); stroke-width: 1.3; opacity: .35;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1s var(--ease) forwards; animation-delay: var(--d);
}
.viz--views .viz-card rect { fill: var(--surface); stroke: var(--c); stroke-width: 1.6; }
.viz--views .viz-card .spark {
  stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease) forwards; animation-delay: calc(var(--d) + .5s);
}
.viz--views .viz-card text {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; fill: var(--c);
}
.viz--views .viz-card .lift {
  opacity: 0; animation: cardUp .7s var(--ease) forwards; animation-delay: var(--d);
  transform-box: fill-box; transform-origin: center;
}
@keyframes cardUp { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- C · route ---------------------------------------------------------- */
.viz--route .viz-road { fill: none; stroke: var(--scene-road); stroke-width: 2.6; stroke-linecap: round; }
.viz--route .viz-run {
  fill: none; stroke: var(--c-dm); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 4.4s linear infinite;
}
.viz--route .viz-depot circle { fill: var(--blue); }
.viz--route .viz-stop path:first-child { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.6; }
.viz--route .viz-stop .tick { stroke: var(--c-dm); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.viz--route .viz-stop { animation: stopHit 4.4s linear infinite; animation-delay: var(--d); }
@keyframes stopHit {
  0%, 4% { }
  6%, 100% { }
}
.viz--route .viz-stop path:first-child { animation: stopFill 4.4s linear infinite; animation-delay: var(--d); }
.viz--route .viz-stop .tick { animation: tickIn 4.4s linear infinite; animation-delay: var(--d); }
@keyframes stopFill { 0%, 2% { stroke: var(--line-strong); } 6%, 96% { stroke: var(--c-dm); } 100% { stroke: var(--line-strong); } }
@keyframes tickIn { 0%, 2% { opacity: 0; } 8%, 96% { opacity: 1; } 100% { opacity: 0; } }
.viz--route .viz-rider { offset-path: var(--p); offset-rotate: 0deg; animation: ride 4.4s linear infinite; }
.viz--route .viz-rider rect { fill: var(--ink); }
.viz--route .viz-rider .glass { fill: var(--marigold); }
@keyframes ride { to { offset-distance: 100%; } }

/* --- D · rings ---------------------------------------------------------- */
.viz--rings .viz-ring {
  fill: none; stroke: var(--c); stroke-width: 2.2; opacity: 0;
  animation: ringIn 1s var(--ease) forwards; animation-delay: var(--d);
}
@keyframes ringIn { from { opacity: 0; transform: scale(.82); } to { opacity: .8; transform: none; } }
.viz--rings .viz-ring { transform-origin: 180px 176px; }
.viz--rings .viz-cap--ring { fill: var(--c); opacity: 0; animation: figIn .6s var(--ease) forwards; animation-delay: var(--d); }
.viz--rings .viz-pulse {
  fill: none; stroke: var(--c-retailer); stroke-width: 1.4;
  transform-origin: 180px 176px; animation: ringPulse 3.4s var(--ease-io) infinite;
}
@keyframes ringPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(3.7); opacity: 0; } }
.viz--rings .viz-shop circle { fill: var(--c-retailer); }

/* --- E · reach ---------------------------------------------------------- */
.viz--reach .viz-horizon { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 4 5; }
.viz--reach .viz-cluster { opacity: 0; animation: fadeIn .7s var(--ease) forwards; animation-delay: var(--d); }
.viz--reach .viz-cluster .glow { fill: var(--c); opacity: .2; }
.viz--reach .viz-cluster .hubdot { fill: var(--c); }
.viz--reach .viz-cluster .pip { fill: var(--c); opacity: .8; animation: pipBlink 2.6s var(--ease-io) infinite; animation-delay: var(--dd); }
@keyframes pipBlink { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }
.viz--reach .viz-hop {
  fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: .6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .9s var(--ease) forwards; animation-delay: var(--d);
}

/* --- F · shop grid ------------------------------------------------------ */
.viz--shopgrid .viz-cell { fill: var(--line-strong); opacity: .5; }
.viz--shopgrid .viz-cell.is-on {
  fill: var(--c-retailer); opacity: 0;
  animation: cellOn .6s var(--ease) forwards; animation-delay: var(--d);
}
@keyframes cellOn { from { opacity: 0; transform: scale(.4); } to { opacity: .9; transform: none; } }
.viz--shopgrid .viz-cell { transform-box: fill-box; transform-origin: center; }

/* --- G · role glyphs ---------------------------------------------------- */
.viz--glyph { width: 132px; }
.viz--glyph .g-box, .viz--glyph .g-bar { fill: var(--c); opacity: 0; }
.viz--glyph .g-box { animation: figIn .5s var(--ease) forwards; animation-delay: var(--d); }
.viz--glyph .g-bar { animation: barUp .7s var(--ease) forwards; animation-delay: var(--d); transform-box: fill-box; transform-origin: center bottom; }
@keyframes barUp { from { opacity: 0; transform: scaleY(.05); } to { opacity: 1; transform: none; } }
.viz--glyph .g-rule { stroke: var(--c); stroke-width: 2; opacity: .35; stroke-linecap: round; }
.viz--glyph .g-line {
  fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1s var(--ease) forwards; animation-delay: var(--d);
}
.viz--glyph .g-node { fill: var(--c); opacity: 0; animation: figIn .5s var(--ease) forwards; animation-delay: var(--d); }
.viz--glyph .g-shield { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; }
.viz--glyph .g-tick {
  stroke: var(--c); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) .3s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .viz * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .viz--route .viz-rider { offset-distance: 100%; }
}

/* ==========================================================================
   Coverage simulation
   ========================================================================== */
.mapsim { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.ms-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(11,92,245,.05), transparent 70%);
  overflow: hidden;
}
.ms-frame svg { width: 100%; height: auto; display: block; }

.ms-world {
  transform-box: view-box; transform-origin: 0 0;
  transition: transform 1.15s var(--ease-io);
}
.mapsim[data-stage="2"] .ms-world { transform: translate(-557.0px, -682.0px) scale(4.10); }
.mapsim[data-stage="3"] .ms-world { transform: translate(-877.9px, -1017.5px) scale(5.60); }

.ms-nation { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; transition: fill .8s var(--ease); }
.mapsim[data-stage="1"] .ms-nation { stroke-width: 1; }
.mapsim[data-stage="2"] .ms-nation, .mapsim[data-stage="3"] .ms-nation { stroke-width: .3; }

.ms-ctx {
  fill: var(--surface); stroke: var(--line-strong); stroke-width: .22;
  opacity: 0; transition: opacity .8s var(--ease);
}
.mapsim[data-stage="2"] .ms-ctx, .mapsim[data-stage="3"] .ms-ctx { opacity: 1; }

.ms-area { stroke-width: .35; transition: fill .8s var(--ease), opacity .8s var(--ease); }
.ms-area--char  { fill: var(--c-retailer); stroke: var(--c-retailer); opacity: .28; }
.ms-area--bagha { fill: var(--c-dm); stroke: var(--c-dm); opacity: 0; }
.mapsim[data-stage="2"] .ms-area--char,
.mapsim[data-stage="3"] .ms-area--char { opacity: .82; }
.mapsim[data-stage="2"] .ms-area--bagha,
.mapsim[data-stage="3"] .ms-area--bagha { opacity: .78; }

.ms-label {
  font-family: var(--mono); font-size: 2.3px; letter-spacing: .1px;
  text-transform: uppercase; fill: var(--ink); opacity: 0;
  transition: opacity .6s var(--ease) .5s;
  paint-order: stroke; stroke: var(--surface); stroke-width: .8px;
}
.mapsim[data-stage="2"] .ms-label, .mapsim[data-stage="3"] .ms-label { opacity: 1; }

.ms-pin .core { fill: var(--blue); }
.ms-pin .halo { fill: none; stroke: var(--blue); stroke-width: 1.4; animation: msPing 2.6s var(--ease-io) infinite; }
.ms-pin .halo--b { animation-delay: 1.3s; }
.ms-pin { transition: opacity .5s var(--ease); }
.mapsim[data-stage="2"] .ms-pin, .mapsim[data-stage="3"] .ms-pin { opacity: 0; }
@keyframes msPing { 0% { r: 5; opacity: .7; } 100% { r: 22; opacity: 0; } }

.ms-hub { opacity: 0; transition: opacity .6s var(--ease) .6s; }
.mapsim[data-stage="3"] .ms-hub { opacity: 1; }
.ms-hub .dot { fill: var(--ink); }
.ms-hub .ping { fill: none; stroke: var(--ink); stroke-width: .12; animation: msHub 2.4s var(--ease-io) infinite; }
.ms-hub .ping--b { animation-delay: 1.2s; }
@keyframes msHub { 0% { r: 0.6; opacity: .6; } 100% { r: 2.6; opacity: 0; } }

.ms-route {
  fill: none; stroke: var(--c-retailer); stroke-width: .26; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
}
.ms-route--b { stroke: var(--c-dm); }
.mapsim[data-stage="3"] .ms-route {
  opacity: .85; animation: msDraw 1s var(--ease) forwards; animation-delay: calc(var(--d) + .7s);
}
@keyframes msDraw { to { stroke-dashoffset: 0; } }

.ms-shop { fill: var(--c); stroke: rgba(0,0,0,.18); stroke-width: .1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mapsim[data-stage="3"] .ms-shop { animation: msPop .5s var(--ease) forwards; animation-delay: calc(var(--d) + .8s); }
@keyframes msPop { from { opacity: 0; transform: scale(.2); } to { opacity: .95; transform: none; } }

.ms-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-dm);
}
.ms-badge i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; animation: blip 2s var(--ease-io) infinite; }

/* --- panel --------------------------------------------------------------- */
.ms-tabs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ms-tab {
  display: flex; align-items: baseline; gap: .9rem; width: 100%;
  padding: .95rem 0; text-align: left;
  border-bottom: 1px solid var(--line);
  transition: opacity .3s;
  opacity: .5;
}
.ms-tab:hover { opacity: .85; }
.ms-tab .n { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; color: var(--faint); }
.ms-tab .t { font-family: var(--display); font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.ms-tab[aria-selected="true"] { opacity: 1; }
.ms-tab[aria-selected="true"] .n { color: var(--blue); }
.ms-tab[aria-selected="true"] .t { color: var(--blue); }

.ms-caps { position: relative; min-height: 7rem; margin-top: 1.25rem; }
.ms-cap {
  position: absolute; inset: 0; opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none;
}
.mapsim[data-stage="1"] .ms-cap[data-cap="1"],
.mapsim[data-stage="2"] .ms-cap[data-cap="2"],
.mapsim[data-stage="3"] .ms-cap[data-cap="3"] { opacity: 1; transform: none; }
.ms-cap b {
  display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
}
.ms-cap span { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .mapsim { grid-template-columns: 1fr; }
  .ms-caps { min-height: 8.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-world { transition: none; }
  .ms-route, .ms-shop { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .ms-pin .halo, .ms-hub .ping { animation: none; }
}

/* ==========================================================================
   Visitor Intelligence & Enterprise Analytics System
   ========================================================================== */

/* Floating Admin Access Button */
.hb-admin-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hb-admin-float-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(11,92,245,0.4);
  color: var(--marigold);
}
.hb-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: hbPulse 1.8s infinite;
}
@keyframes hbPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 16px #22c55e; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Consent Banner */
.hb-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  z-index: 9998;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: hbSlideUp 0.4s var(--ease);
}
@keyframes hbSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hb-consent-content { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hb-consent-icon { font-size: 1.8rem; }
.hb-consent-text { flex: 1; min-width: 240px; }
.hb-consent-text strong { display: block; font-size: 0.9375rem; color: var(--ink); margin-bottom: 0.2rem; }
.hb-consent-text p { font-size: 0.8125rem; color: var(--muted); margin: 0; line-height: 1.45; }
.hb-consent-actions { display: flex; gap: 0.6rem; align-items: center; }
.hb-consent-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.hb-consent-accept { background: var(--blue); color: #fff; }
.hb-consent-strict { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.hb-consent-link { font-size: 0.8125rem; color: var(--muted); text-decoration: underline; }

/* Analytics Dashboard App Layout */
.analytics-app {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}
.analytics-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.analytics-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.analytics-brand h1 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0; }
.analytics-brand-badge {
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-nav-tabs { display: flex; gap: 0.5rem; }
.analytics-nav-tab {
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.analytics-nav-tab.active, .analytics-nav-tab:hover { background: var(--surface-2); color: var(--blue); }

.analytics-body { padding: 1.5rem; max-width: 1400px; margin: 0 auto; display: grid; gap: 1.5rem; }

/* Analytics Grid Layouts */
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-main-side { display: grid; grid-template-columns: 2.2fr 1fr; gap: 1.25rem; }

@media (max-width: 1024px) {
  .grid-cols-4, .grid-cols-3, .grid-main-side { grid-template-columns: 1fr; }
  .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Dashboard Cards */
.ana-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.ana-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.ana-card-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ana-card-sub { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.05em; }

/* Key Metric Cards */
.stat-box { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-box .lbl { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; }
.stat-box .val { font-family: var(--display); font-size: 1.85rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-box .change { font-size: 0.8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem; }
.stat-box .change.pos { color: #16a34a; }
.stat-box .change.neg { color: #dc2626; }

/* Intent Score Badges */
.badge-intent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-intent--high { background: rgba(220, 38, 38, 0.12); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.badge-intent--medium { background: rgba(217, 119, 6, 0.12); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-intent--low { background: rgba(37, 99, 235, 0.12); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.3); }

/* Live Visitor List */
.live-stream-list { display: flex; flex-direction: column; gap: 0.75rem; max-height: 380px; overflow-y: auto; }
.live-stream-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.live-stream-left { display: flex; align-items: center; gap: 0.75rem; }
.live-stream-flag { font-size: 1.2rem; }
.live-stream-loc { font-weight: 600; color: var(--ink); }
.live-stream-page { font-size: 0.8rem; color: var(--muted); }
.live-stream-badge {
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue);
}

/* Funnel Steps */
.funnel-container { display: flex; flex-direction: column; gap: 0.75rem; }
.funnel-step {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.funnel-step-bar-wrap {
  width: 100%;
  height: 28px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
}
.funnel-step-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #3b82f6);
  border-radius: var(--r-sm);
  transition: width 0.6s var(--ease);
}
.funnel-step-label {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  z-index: 2;
}

/* AI Insight Cards */
.ai-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.ai-insight-box {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 1.2rem;
  position: relative;
}
.ai-insight-badge {
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 185, 46, 0.15);
  color: #d97706;
  border: 1px solid rgba(255, 185, 46, 0.3);
  display: inline-block;
  margin-bottom: 0.5rem;
}
.ai-insight-box h4 { font-size: 0.95rem; margin: 0 0 0.4rem 0; color: var(--ink); }
.ai-insight-box p { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.8rem 0; line-height: 1.5; }
.ai-insight-action {
  font-size: 0.78125rem;
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Table Styling */
.ana-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.85rem; }
.ana-table th {
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.ana-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.ana-table tr:hover td { background: var(--surface-2); cursor: pointer; }

/* Visitor 360 Modal Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.drawer-backdrop.active { opacity: 1; pointer-events: auto; }
.drawer-panel {
  width: 100%;
  max-width: 540px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  padding: 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.drawer-backdrop.active .drawer-panel { transform: translateX(0); }

/* Timeline UI */
.timeline-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; position: relative; padding-left: 1.25rem; }
.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-strong);
}
.timeline-item { position: relative; display: flex; flex-direction: column; gap: 0.2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  border: 2px solid var(--surface);
}
.timeline-time { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); }
.timeline-title { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.timeline-detail { font-size: 0.78125rem; color: var(--muted); }

/* Mandatory Location Access Modal */
.hb-location-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(17, 23, 53, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: hbFadeIn 0.3s var(--ease);
}
@keyframes hbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hb-location-modal-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}
.hb-loc-icon { font-size: 2.8rem; margin-bottom: 0.75rem; }
.hb-location-modal-card h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0 0 0.5rem 0; }
.hb-location-modal-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-bottom: 1.25rem; }
.hb-loc-warn { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25); color: #dc2626; padding: 0.6rem 0.8rem; border-radius: var(--r-sm); font-size: 0.8125rem; text-align: left; }
.hb-loc-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.hb-loc-btn {
  width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s;
}
.hb-loc-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(11,92,245,0.3); }
.hb-loc-primary:hover { transform: translateY(-2px); background: #084cd1; }

/* ==========================================================================
   Dynamic Backend — Form States
   ========================================================================== */

/* Form status messages */
.form-status {
  display: none;
  padding: 0.875rem 1.125rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0.25rem;
  border: 1px solid transparent;
  animation: fadeSlideUp 0.35s ease both;
}
.form-status.is-on      { display: block; }
.form-status.is-success {
  background: rgba(18, 184, 134, 0.08);
  border-color: rgba(18, 184, 134, 0.3);
  color: #0d7a5a;
}
[data-theme="dark"] .form-status.is-success {
  background: rgba(18, 184, 134, 0.12);
  color: #34d99b;
}
.form-status.is-error {
  background: rgba(220, 38, 38, 0.07);
  border-color: rgba(220, 38, 38, 0.25);
  color: #c01c1c;
}
[data-theme="dark"] .form-status.is-error {
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
}
/* Legacy is-on without success/error class (neutral style) */
.form-status.is-on:not(.is-success):not(.is-error) {
  background: var(--blue-soft);
  border-color: rgba(11, 92, 245, 0.25);
  color: var(--blue-600);
}

/* Newsletter inline form */
.nl-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 420px;
}
.nl-form input {
  flex: 1 1 180px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.nl-form input:focus { border-color: var(--blue); }
.nl-form button {
  white-space: nowrap;
}
.nl-status {
  display: none;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: var(--muted);
  width: 100%;
}
.nl-status.is-on { display: block; color: #0d7a5a; }

/* Fade-slide-up keyframes (shared with form-status) */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Button loading state */
button[disabled] { opacity: 0.7; cursor: not-allowed; }

/* ==========================================================================
   Coverage & Retailer Locator Map System
   ========================================================================== */

.coverage-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: radial-gradient(circle at 50% 0%, var(--blue-soft) 0%, transparent 70%);
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(18, 184, 134, 0.12);
  border: 1px solid rgba(18, 184, 134, 0.28);
  color: #0d8a64;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
html[data-theme="dark"] .live-pulse-badge {
  background: rgba(18, 184, 134, 0.2);
  color: #38d9a9;
  border-color: rgba(18, 184, 134, 0.4);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b886;
  position: relative;
  box-shadow: 0 0 0 0 rgba(18, 184, 134, 0.7);
  animation: pulseBeacon 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseBeacon {
  0% { box-shadow: 0 0 0 0 rgba(18, 184, 134, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(18, 184, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 184, 134, 0); }
}

/* Coverage Stats Strip */
.coverage-hud-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.coverage-hud-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.coverage-hud-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.hud-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hud-card-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.hud-card-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

/* Smart Control Deck */
.coverage-controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-1);
  margin-bottom: 1.5rem;
}
.controls-top-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.search-box-wrap {
  position: relative;
  flex: 1 1 300px;
}
.search-box-wrap .search-ico {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-box-wrap input {
  width: 100%;
  padding: 0.8rem 2.75rem 0.8rem 2.75rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-box-wrap input:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(11, 92, 245, 0.15);
}
.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  display: none;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  transition: background 0.2s, color 0.2s;
}
.search-clear-btn:hover {
  background: var(--line-strong);
  color: var(--ink);
}

.controls-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.select-wrapper {
  position: relative;
}
.select-wrapper select {
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.select-wrapper select:focus { border-color: var(--blue); }
.select-wrapper .select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--muted);
}

.btn-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-ctrl:hover {
  background: var(--surface);
  border-color: var(--blue);
  color: var(--blue);
}
.btn-ctrl.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}
.btn-ctrl svg {
  width: 16px;
  height: 16px;
}
.btn-ctrl.is-locating {
  pointer-events: none;
  opacity: 0.8;
  animation: pulseSoft 1s infinite alternate;
}
@keyframes pulseSoft {
  from { transform: scale(1); }
  to { transform: scale(0.97); }
}

/* Division Pills */
.division-pills-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.division-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.division-pill:hover {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
}
.division-pill.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.division-pill .count-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
}
.division-pill.is-active .count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Viewport split screen */
.coverage-viewport {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.5rem;
  min-height: 750px;
  height: calc(100vh - 160px);
  max-height: 900px;
  margin-bottom: 4rem;
  position: relative;
}
.coverage-viewport.is-fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  max-height: none;
  z-index: 9999;
  background: var(--paper);
  padding: 1rem;
  margin: 0;
}

/* Sidebar & Store list */
.coverage-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  height: 100%;
}
.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.result-summary-text {
  font-size: 0.875rem;
  color: var(--navy);
}
.result-summary-text strong {
  color: var(--ink);
}
.retailer-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
}

/* Retailer Card */
.retailer-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: all 0.22s var(--ease);
  cursor: pointer;
  position: relative;
}
.retailer-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(11, 92, 245, 0.08);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card-top-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dist-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d8a64;
  background: rgba(18, 184, 134, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.verified-icon {
  color: #0b5cf5;
  display: grid;
  place-items: center;
}
.verified-icon svg {
  width: 16px;
  height: 16px;
}
.card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}
.card-bn-name {
  font-family: var(--bangla);
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.card-loc, .card-owner {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}
.card-loc svg, .card-owner svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--faint);
}
.card-metrics {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 0.6rem;
  margin-top: 0.5rem;
  border-top: 1px dashed var(--line);
}
.card-metrics code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.75rem;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.card-btn-map {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
}
.card-btn-map:hover {
  background: var(--blue);
  color: #ffffff;
}
.card-btn-map svg {
  width: 14px;
  height: 14px;
}
.card-btn-call {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.2s;
}
.card-btn-call:hover {
  background: #12b886;
  border-color: #12b886;
  color: #ffffff;
}
.card-btn-call svg {
  width: 15px;
  height: 15px;
}

/* Empty State */
.list-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.list-empty h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.list-empty p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.load-more-wrap {
  text-align: center;
  padding: 0.75rem 0;
}
.load-more-btn {
  width: 100%;
}

/* Map Wrap */
.coverage-map-wrap {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  height: 100%;
}
#coverage-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Map HUD Overlays */
.map-hud-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  pointer-events: none;
}
.map-hud-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 22, 50, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.78125rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.map-hud-pill strong {
  color: #ffb92e;
  font-weight: 700;
}
.map-hud-shortcuts {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.4rem;
}
.hud-shortcut-btn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: all 0.2s;
}
.hud-shortcut-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

/* Map Loader Spinner */
.map-loader {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: rgba(251, 252, 254, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
html[data-theme="dark"] .map-loader {
  background: rgba(11, 16, 38, 0.85);
}
.map-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(11, 92, 245, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom Marker Pin */
.hbl-pin-wrap {
  background: transparent;
  border: none;
}
.hbl-pin {
  width: 32px;
  height: 38px;
  background: var(--pin-color, var(--blue));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hbl-pin:hover {
  transform: rotate(-45deg) scale(1.18);
  z-index: 1000;
}
.hbl-pin .pin-ico {
  transform: rotate(45deg);
  font-size: 14px;
  display: block;
  line-height: 1;
}
.hbl-pin .pin-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  bottom: -4px;
  right: -4px;
  animation: pinPulse 2s infinite;
}
@keyframes pinPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Custom Cluster Badges */
.hbl-cluster-wrap {
  background: transparent;
  border: none;
}
.hbl-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease);
}
.hbl-cluster:hover {
  transform: scale(1.15);
}
.cluster-sm {
  width: 36px;
  height: 36px;
  font-size: 0.8125rem;
  background: linear-gradient(135deg, #0b5cf5, #00a3b4);
}
.cluster-md {
  width: 42px;
  height: 42px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #7c4dff, #0b5cf5);
}
.cluster-lg {
  width: 48px;
  height: 48px;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #ff8a3d, #f2452f);
}
.cluster-xl {
  width: 56px;
  height: 56px;
  font-size: 1rem;
  background: linear-gradient(135deg, #ffb92e, #f2452f);
}
.cluster-xl.has-pulse {
  position: relative;
}
.cluster-xl.has-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #ffb92e;
  animation: clusterBeacon 2s infinite;
}
@keyframes clusterBeacon {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* User Location Pin */
.user-loc-pin {
  position: relative;
}
.user-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0b5cf5;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.user-radar {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 92, 245, 0.25);
  animation: radarWave 2s infinite ease-out;
}
@keyframes radarWave {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Custom Leaflet Popups */
.hbl-popup-custom .leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 0;
  overflow: hidden;
}
.hbl-popup-custom .leaflet-popup-content {
  margin: 0;
  line-height: 1.5;
}
.hbl-popup-custom .leaflet-popup-tip {
  background: var(--surface);
}

.pop-card {
  padding: 1.15rem;
}
.pop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.pop-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pop-badges {
  display: flex;
  gap: 0.3rem;
}
.pop-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.pop-badge.verified {
  background: rgba(11, 92, 245, 0.12);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.pop-badge.verified svg {
  width: 12px;
  height: 12px;
}
.pop-badge.express {
  background: rgba(255, 185, 46, 0.2);
  color: #b37400;
}
html[data-theme="dark"] .pop-badge.express {
  color: #ffb92e;
}
.pop-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.pop-bn-title {
  font-family: var(--bangla);
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.pop-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.pop-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.pop-row svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}
.pop-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--surface-2);
  padding: 0.6rem;
  border-radius: var(--r-sm);
  margin-bottom: 0.85rem;
  text-align: center;
}
.pop-stat strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}
.pop-stat span {
  font-size: 0.6875rem;
  color: var(--muted);
}
.pop-actions {
  display: flex;
  gap: 0.5rem;
}
.pop-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}
.pop-btn svg {
  width: 14px;
  height: 14px;
}
.pop-btn-call {
  background: #12b886;
  color: #ffffff;
}
.pop-btn-call:hover {
  background: #0ca678;
}
.pop-btn-nav {
  background: var(--blue-soft);
  color: var(--blue);
}
.pop-btn-nav:hover {
  background: var(--blue);
  color: #ffffff;
}

/* Mobile responsive drawer */
.drawer-handle {
  display: none;
}
@media (max-width: 991px) {
  .coverage-viewport {
    grid-template-columns: 1fr;
    grid-template-rows: 46vh 1fr;
    height: auto;
    max-height: none;
  }
  .coverage-map-wrap {
    height: 46vh;
    min-height: 320px;
  }
  .coverage-sidebar {
    height: 420px;
  }
  .drawer-handle {
    display: block;
    width: 48px;
    height: 5px;
    background: var(--line-strong);
    border-radius: 999px;
    margin: 0.5rem auto 0;
  }
}

