/* product_demo/assets/demo.css */
/* Troilus product demo styling: light Loadshift product UI, device frames, Cree badges, Google Maps embeds, QR scanner, and page layouts. */
/* Static mock-up only; not connected to any backend. */

/* ════════════════════════════════════════════════════════════════
   TOKENS — Loadshift design-system palette first; Troilus copper and
   Cree ochre / spruce / bone are secondary badge / route accents only.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Loadshift palette for the bundled design system. */
  --ls-navy: #1f376b;
  --ls-navy-dark: #16284f;
  --ls-black: #0d1426;
  --ls-orange: #ff380f;
  --ls-orange-dark: #e63000;
  --ls-grey-1: #f7f8f9;
  --ls-grey-2: #e8eaed;
  --ls-grey-3: #cfd4dc;
  --ls-grey-4: #5c6370;
  --ls-text: #151515;
  --ls-success: #1ba44f;
  --ls-warning: #f5a623;
  --ls-danger: #d32f2f;

  /* Troilus copper / gold — secondary accents only */
  --troilus-copper: #b87333;
  --troilus-copper-dark: #8a531f;
  --troilus-gold: #b8860b;

  /* Cree partnership accents — secondary badges / chips only */
  --cree-ochre: #c17817;
  --cree-deep: #7a2e1f;
  --cree-spruce: #2d4a2b;
  --cree-bone: #f5ede1;

  /* Surfaces */
  --line: #e8eaed;
  --card-shadow: 0 1px 3px rgba(18, 21, 27, 0.12);
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ════════════════════════════════════════════════════════════════
   PART A — INDEX CONTROLLER (light product demo wrapper that embeds
   one Loadshift screen at a time). Class prefix: dx- (demo experience).
   ════════════════════════════════════════════════════════════════ */

body.dx-body {
  background: #f7f8f9;
  color: var(--ls-text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.dx-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 28px 40px;
}

/* ── Top bar — white product header (like Loadshift .top-nav) ── */
.dx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.dx-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dx-brand img {
  height: 26px;
}

.dx-brand .dx-x {
  color: var(--ls-grey-3);
  font-weight: 300;
  font-size: 18px;
}

.dx-brand .dx-troilus {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--ls-navy);
}

.dx-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dx-load-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #eef2fb;
  border: 1px solid #d5deef;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ls-navy);
  white-space: nowrap;
}

.dx-load-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ls-orange);
  box-shadow: 0 0 0 0 rgba(255, 56, 15, 0.6);
  animation: dx-pulse 1.8s infinite;
}

@keyframes dx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 56, 15, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 56, 15, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 56, 15, 0); }
}

.dx-step-counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ls-grey-4);
  white-space: nowrap;
}

.dx-step-counter strong {
  color: var(--ls-navy);
  font-size: 14px;
}

/* ── Main grid: stage + context ── */
.dx-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 24px;
  margin-top: 22px;
  align-items: stretch;
}

.dx-main.is-mobile {
  grid-template-columns: minmax(0, 1fr) 384px;
}

/* ── Stage (holds the device frames) — light product canvas ── */
.dx-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.dx-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, #f2f5fb 0%, transparent 60%);
  pointer-events: none;
}

/* Fit wrapper — JS sets its width/height to the scaled device size so the
   layout box always matches what is visible (no dead whitespace). */
.dx-fit {
  position: relative;
  z-index: 2;
}

/* Phone frame */
.dx-phone {
  position: relative;
  width: 408px;
  height: 812px;
  transform-origin: top left;
  background: linear-gradient(150deg, #2a2f3a, #14161d);
  border-radius: 46px;
  padding: 13px;
  box-shadow: 0 18px 44px -18px rgba(18, 21, 27, 0.4);
  z-index: 2;
}

.dx-phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 30px;
  background: #000;
  border-radius: 16px;
  z-index: 4;
}

.dx-phone__screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
}

.dx-phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 34px;
  background: #fff;
}

/* Browser frame (desktop + full) */
.dx-browser {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px -20px rgba(18, 21, 27, 0.3);
  z-index: 2;
}

.dx-browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  height: 40px; /* deterministic — matched by the JS fit() constant */
  box-sizing: border-box;
  flex-shrink: 0;
  background: #f0f2f5;
  border-bottom: 1px solid var(--line);
}

.dx-browser__dots {
  display: flex;
  gap: 6px;
}

.dx-browser__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ls-grey-3);
}

.dx-browser__dots span:nth-child(1) { background: #ff5f57; }
.dx-browser__dots span:nth-child(2) { background: #ffbd2e; }
.dx-browser__dots span:nth-child(3) { background: #28c940; }

.dx-browser__url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ls-grey-4);
}

/* Viewport clips the fixed-design-width iframe; JS scales the iframe to fit. */
.dx-browser__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.dx-browser iframe {
  display: block;
  width: 1280px; /* design width — JS keeps this in sync */
  height: 780px;
  border: 0;
  background: #fff;
  transform-origin: 0 0;
}

.is-hidden { display: none !important; }

/* ── Context panel — white product side card ── */
.dx-context {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow-y: auto;
  max-height: 812px;
}

.dx-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--ls-grey-1);
  border: 1px solid var(--line);
}

.dx-persona__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.dx-persona__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dx-persona__avatar.side-shipper { background: var(--ls-navy); }
.dx-persona__avatar.side-carrier { background: var(--ls-orange); }
.dx-persona__avatar.side-cree { background: var(--cree-ochre); }
.dx-persona__avatar.side-indigenous { background: var(--cree-spruce); }
.dx-persona__avatar.side-jv { background: var(--troilus-copper); }
.dx-persona__avatar.side-platform { background: linear-gradient(135deg, var(--ls-navy), #35538f); }

.dx-persona__meta .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-grey-4);
}

.dx-persona__meta .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ls-navy);
}

.dx-persona__meta .role {
  font-size: 12px;
  color: var(--ls-grey-4);
}

.dx-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ls-orange);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dx-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ls-orange);
}

.dx-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ls-navy);
  letter-spacing: -0.01em;
}

.dx-story {
  font-size: 13px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ls-grey-4);
  padding-left: 12px;
  border-left: 2px solid var(--ls-orange);
}

.dx-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ls-text);
}

.dx-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ls-grey-4);
}

.dx-features {
  list-style: none;
  display: grid;
  gap: 9px;
}

.dx-features li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ls-text);
}

.dx-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ls-orange);
}

.dx-badge-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dx-impact {
  padding: 14px 16px;
  border-radius: 10px;
  background: #eef2fb;
  border: 1px solid #d5deef;
  border-left: 3px solid var(--ls-navy);
}

.dx-impact .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-navy);
  margin-bottom: 6px;
}

.dx-impact p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ls-text);
}

.dx-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ls-grey-4);
  text-decoration: none;
  margin-top: auto;
}

.dx-open-link:hover { color: var(--ls-navy); }

/* ── Nav controls ── */
.dx-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.dx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dx-btn--prev {
  background: #fff;
  border-color: var(--ls-grey-3);
  color: var(--ls-text);
}

.dx-btn--prev:hover { background: #f0f2f5; }

.dx-btn--prev:disabled {
  opacity: 0.45;
  cursor: default;
  background: #fff;
}

.dx-btn--next {
  background: var(--ls-orange);
  border-color: var(--ls-orange);
  color: #fff;
  /* Fixed width so swapping Next for Restart on the last step does not resize it */
  width: 132px;
  justify-content: center;
  padding: 0;
}

.dx-btn--next:hover { background: var(--ls-orange-dark); border-color: var(--ls-orange-dark); }

.dx-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dx-progress__track {
  height: 5px;
  border-radius: 999px;
  background: var(--ls-grey-2);
  overflow: hidden;
}

.dx-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--ls-orange);
  transition: width 0.35s ease;
}

.dx-pips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dx-pip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--ls-grey-3);
  background: #fff;
  color: var(--ls-grey-4);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}

.dx-pip:hover { border-color: var(--ls-navy); color: var(--ls-navy); }

.dx-pip.is-active {
  background: var(--ls-orange);
  border-color: var(--ls-orange);
  color: #fff;
}

.dx-pip.is-done {
  background: #eef2fb;
  border-color: #c3d0e8;
  color: var(--ls-navy);
}

/* Mid width — keep two columns but give the stage more room */
@media (max-width: 1320px) {
  .dx-main,
  .dx-main.is-mobile { grid-template-columns: minmax(0, 1fr) 330px; }
  .dx-shell { padding: 16px 18px 32px; }
}

@media (max-width: 1080px) {
  .dx-main,
  .dx-main.is-mobile { grid-template-columns: 1fr; }
  .dx-context { max-height: none; }
  .dx-stage { min-height: auto; }
  .dx-header { flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════════════════
   PART B — SHARED PAGE STYLES (used inside the iframes).
   Pages also load the Loadshift design-system CSS; these classes add
   the Troilus / Cree product-screen pieces on top.
   ════════════════════════════════════════════════════════════════ */

/* Reset body inside iframe pages so they sit flush in the frame. */
.demo-page {
  background: var(--ls-grey-1);
  color: var(--ls-text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

.demo-page--desktop { min-width: 0; }

/* ── CREE / STANDARD BADGES (reused across quote, award, profile) ── */
.cree-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.cree-badge svg { flex-shrink: 0; }

.cree-badge--t1 { background: #fbeedb; border: 1px solid var(--cree-ochre); color: var(--cree-deep); }
.cree-badge--t2 { background: #e7efe5; border: 1px solid var(--cree-spruce); color: var(--cree-spruce); }
.cree-badge--t3 {
  background: linear-gradient(90deg, #f3e6d3 50%, #efeae0 50%);
  border: 1px solid var(--troilus-copper);
  color: var(--troilus-copper-dark);
}
.cree-badge--std { background: #eaf2fc; border: 1px solid #c5dbf5; color: #1f376b; }

.cree-badge__tier {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

/* Ownership / JV mini chips that sit beside Tier 2/3 badges */
.own-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  background: var(--ls-grey-1);
  border: 1px solid var(--line);
  color: var(--ls-grey-4);
}

/* ── STATUS CHIPS ── */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip--green { background: #e7f6ec; color: var(--ls-success); }
.status-chip--amber { background: #fff4e0; color: #b97400; }
.status-chip--blue { background: #e6effb; color: var(--ls-navy); }
.status-chip--copper { background: #f6ead9; color: var(--troilus-copper-dark); }
.status-chip--grey { background: var(--ls-grey-1); color: var(--ls-grey-4); }

/* Backhaul marker — recurring copper accent cue */
.backhaul-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(184, 115, 51, 0.12);
  border: 1px dashed var(--troilus-copper);
  color: var(--troilus-copper-dark);
}

/* ── MOBILE APP SHELL (used by mobile pages) ── */
.app {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ls-grey-1);
  display: flex;
  flex-direction: column;
  padding-bottom: 84px; /* clears the fixed .app__sticky CTA on every page */
}

.app__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.app__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 14px;
  color: #fff;
}

.app__topbar--navy { background: var(--ls-navy); }
.app__topbar--navy.app__status-host { padding-top: 0; }

.app__bar {
  background: var(--ls-navy);
  color: #fff;
  padding-bottom: 14px;
}

.app__bar .app__status { color: rgba(255, 255, 255, 0.85); }

.app__back {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}

.app__title small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.app__logo {
  height: 18px;
  filter: brightness(0) invert(1);
}

.app__body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app__sticky {
  /* Fixed, not scroll-sticky: the CTA sits at the same screen position on
     every step regardless of how much content is above it, so the button
     never jumps around when stepping through the flow. */
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 440px;
  z-index: 20;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--ls-grey-1);
  border-top: 1px solid var(--line);
}

/* App card */
.acard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.acard__pad { padding: 16px; }

.acard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.acard__head h3 { font-size: 15px; font-weight: 700; color: var(--ls-navy); }

/* Generic full-width app buttons */
.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.app-btn--primary { background: var(--ls-orange); border-color: var(--ls-orange); color: #fff; }
.app-btn--primary:hover { background: var(--ls-orange-dark); border-color: var(--ls-orange-dark); }
.app-btn--navy { background: var(--ls-navy); border-color: var(--ls-navy); color: #fff; }
.app-btn--navy:hover { background: var(--ls-navy-dark); border-color: var(--ls-navy-dark); }
.app-btn--cree { background: var(--cree-ochre); border-color: var(--cree-ochre); color: #fff; }
.app-btn--ghost { background: #fff; border-color: var(--ls-grey-3); color: var(--ls-text); }
.app-btn--ghost:hover { background: #f0f2f5; }

/* ── KEY/VALUE ROWS ── */
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: none; }
.kv__k { color: var(--ls-grey-4); }
.kv__v { font-weight: 700; color: var(--ls-text); text-align: right; }

.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-grey-4);
}

/* ── ROUTE CARD (origin → destination) ── */
.route-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-leg {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.route-leg__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.route-leg__node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--ls-navy);
  background: #fff;
  margin-top: 3px;
}

.route-leg__node--end { border-color: var(--ls-orange); }
.route-leg__node--copper { border-color: var(--troilus-copper); }

.route-leg__line {
  flex: 1;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--ls-grey-3) 0 5px, transparent 5px 10px);
  margin: 3px 0;
}

.route-leg__line--copper {
  background: repeating-linear-gradient(180deg, var(--troilus-copper) 0 5px, transparent 5px 10px);
}

.route-leg__place { font-size: 14px; font-weight: 700; color: var(--ls-text); }
.route-leg__sub { font-size: 12px; color: var(--ls-grey-4); margin-bottom: 12px; }

/* ── TIMELINE (tracking, pickup, delivery) ── */
.timeline { display: flex; flex-direction: column; }
.timeline__step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
}
.timeline__rail { display: flex; flex-direction: column; align-items: center; }
.timeline__dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--ls-grey-3); background: #fff; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.timeline__dot--done { background: var(--ls-success); border-color: var(--ls-success); }
.timeline__dot--current { border-color: var(--ls-orange); box-shadow: 0 0 0 4px rgba(255, 56, 15, 0.18); }
.timeline__line { flex: 1; width: 2px; background: var(--ls-grey-2); min-height: 18px; }
.timeline__line--done { background: var(--ls-success); }
.timeline__body { padding-bottom: 16px; }
.timeline__title { font-size: 14px; font-weight: 700; color: var(--ls-text); }
.timeline__meta { font-size: 12px; color: var(--ls-grey-4); }

/* ── DESKTOP PRODUCT SHELL (top product header + body) ── */
.console {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ls-grey-1);
}

/* White product top bar, matching the Loadshift .top-nav pattern */
.console__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(28px, calc((100% - 1400px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  color: var(--ls-text);
}

.console__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ls-navy);
}

.console__title .shield {
  width: 30px; height: 30px;
  background: var(--ls-navy); color: #fff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.console__title .powered {
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.02em; color: var(--ls-grey-4);
}

.console__pills { display: flex; gap: 8px; flex-wrap: wrap; }

.console-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 6px 11px;
  border-radius: 6px;
  background: #f0f2f5;
  border: 1px solid var(--line);
  color: var(--ls-grey-4);
  display: inline-flex; align-items: center; gap: 7px;
}

.console-pill--live { background: var(--ls-orange); border-color: var(--ls-orange); color: #fff; }
.console-pill .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dx-blink 1.4s infinite; }
@keyframes dx-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.console__body { flex: 1; padding: 24px max(28px, calc((100% - 1400px) / 2)); }

/* Page heading block used on desktop pages */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ls-navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.page-head .sub { font-size: 13.5px; color: var(--ls-grey-4); margin-top: 4px; max-width: 640px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ls-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--ls-orange); }

/* Generic card for desktop pages */
.d-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}
.d-card__pad { padding: 22px 24px; }
.d-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.d-card__head h2 { font-size: 16px; font-weight: 700; color: var(--ls-navy); }

.grid-2c { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-3c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }

@media (max-width: 980px) {
  .grid-2c, .grid-3c, .grid-sidebar { grid-template-columns: 1fr; }
}

/* ── KPI STRIP ── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.kpi-cell { padding: 16px 20px; border-right: 1px solid var(--line); }
.kpi-cell:last-child { border-right: none; }
.kpi-cell .kpi-num { font-size: 28px; font-weight: 800; color: var(--ls-navy); line-height: 1.1; }
.kpi-cell .kpi-num small { font-size: 13px; font-weight: 600; color: var(--ls-grey-4); }
.kpi-cell.accent .kpi-num { color: var(--ls-orange); }
.kpi-cell.copper .kpi-num { color: var(--troilus-copper); }

@media (max-width: 760px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── TABLES ── */
.d-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.d-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ls-grey-4);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ls-grey-1);
  white-space: nowrap;
}
.d-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.d-table tr:last-child td { border-bottom: none; }
.d-table tr.is-selected td { background: #fff7f3; box-shadow: inset 3px 0 0 var(--ls-orange); }
.d-table .num { font-weight: 700; color: var(--ls-text); }

/* ── PROGRESS BAR (in-page) ── */
.bar { height: 8px; border-radius: 999px; background: var(--ls-grey-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--ls-orange); }
.bar__fill--copper { background: var(--troilus-copper); }
.bar__fill--spruce { background: var(--cree-spruce); }
.bar__fill--navy { background: var(--ls-navy); }

/* Photo avatar utility — use with inline width/height */
.avatar-img {
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

/* ── AVATAR ── */
.avatar {
  width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; flex-shrink: 0; font-size: 15px;
}
.avatar--navy { background: var(--ls-navy); }
.avatar--orange { background: var(--ls-orange); }
.avatar--ochre { background: var(--cree-ochre); }
.avatar--spruce { background: var(--cree-spruce); }
.avatar--copper { background: var(--troilus-copper); }
.avatar--round { border-radius: 50%; }

/* ── STARS ── */
.stars { display: inline-flex; gap: 1px; color: var(--ls-warning); font-size: 13px; }

/* ── COMPLIANCE GATE LIST ── */
.gate { display: grid; gap: 10px; }
.gate__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  background: var(--ls-grey-1); border: 1px solid var(--line);
}
.gate__row .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ls-success); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gate__row.is-blocked .tick { background: var(--ls-danger); }
.gate__row .g-name { font-weight: 700; font-size: 13.5px; }
.gate__row .g-sub { font-size: 12px; color: var(--ls-grey-4); }

/* ── FULL-BLEED INTRO / CLOSING (cover + moat) — light product surface ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  color: var(--ls-text);
  position: relative;
  overflow: hidden;
  background: radial-gradient(90% 70% at 50% -10%, #eef2fb 0%, var(--ls-grey-1) 55%);
}

.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 55, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 55, 107, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 80%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 1080px; margin: 0 auto; width: 100%; z-index: 2; }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ls-orange);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ls-navy);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--ls-orange);
}

.hero__lead {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--ls-grey-4);
  max-width: 720px;
  margin-bottom: 30px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #eef2fb;
  border: 1px solid #d5deef;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ls-navy);
}

.hero__personas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.persona-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  font-size: 12.5px;
}

.persona-pill .a {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}

.persona-pill .a.side-shipper { background: var(--ls-navy); }
.persona-pill .a.side-carrier { background: var(--ls-orange); }
.persona-pill .a.side-cree { background: var(--cree-ochre); }
.persona-pill .a.side-indigenous { background: var(--cree-spruce); }
.persona-pill .a.side-jv { background: var(--troilus-copper); }
.persona-pill .a.side-platform { background: linear-gradient(135deg, var(--ls-navy), #35538f); }

.persona-pill b { color: var(--ls-navy); font-weight: 700; }
.persona-pill span { color: var(--ls-grey-4); }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 6px;
  background: var(--ls-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--ls-orange);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(255, 56, 15, 0.5);
}

.hero-btn:hover { background: var(--ls-orange-dark); border-color: var(--ls-orange-dark); }

/* Recap cards for the moat page */
.recap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.recap-card {
  padding: 18px 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.recap-card h4 { font-size: 15px; font-weight: 700; color: var(--ls-navy); margin-bottom: 6px; }
.recap-card p { font-size: 13px; color: var(--ls-grey-4); line-height: 1.5; }
.recap-card .ic { color: var(--ls-orange); margin-bottom: 10px; }

@media (max-width: 760px) {
  .recap-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 24px; }
}

/* ── MAP WRAP (shared for tracking + fleet console) ── */
.map-wrap {
  position: relative;
  background: #e9efe2;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-wrap svg { display: block; width: 100%; height: 100%; }

.map-legend {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(31, 55, 107, 0.1);
  z-index: 2;
  min-width: 210px;
}
.map-legend h5 {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ls-grey-4); margin-bottom: 10px;
}
.map-legend ul { list-style: none; display: grid; gap: 8px; }
.map-legend li { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; }
.map-legend .sw { width: 14px; height: 14px; flex-shrink: 0; border-radius: 3px; }
.map-legend .sw--navy { background: var(--ls-navy); }
.map-legend .sw--copper { background: var(--troilus-copper); }
.map-legend .sw--ochre { background: var(--cree-ochre); border-radius: 50%; }
.map-legend .sw--diamond { background: var(--cree-ochre); transform: rotate(45deg); width: 11px; height: 11px; }
.map-legend .sw--empty { background: #fff; border: 2px solid var(--ls-orange); border-radius: 50%; }

/* ── GOOGLE MAPS EMBED + PRODUCT OVERLAYS (tracking + fleet console) ── */
.map-wrap .map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* live GPS chip pinned to a map corner */
.map-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(13, 20, 38, 0.86);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(13, 20, 38, 0.28);
  z-index: 3;
  pointer-events: none;
}
.map-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ls-orange); animation: dx-pulse 1.8s infinite; }
.map-badge--tl { top: 12px; left: 12px; }
.map-badge--tr { top: 12px; right: 12px; }

/* floating truck markers pinned over the map */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--ls-navy);
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(31, 55, 107, 0.24);
  z-index: 3;
  pointer-events: none;
}
.map-marker .mm-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-marker--orange { color: var(--ls-orange-dark); }
.map-marker--orange .mm-dot { background: var(--ls-orange); box-shadow: 0 0 0 0 rgba(255, 56, 15, 0.5); animation: dx-pulse 1.8s infinite; }
.map-marker--navy .mm-dot { background: var(--ls-navy); box-shadow: 0 0 0 3px rgba(31, 55, 107, 0.16); }
.map-marker--copper { color: var(--troilus-copper-dark); }
.map-marker--copper .mm-dot { background: var(--troilus-copper); box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.18); }
.map-marker--ochre { color: var(--cree-deep); }
.map-marker--ochre .mm-dot { background: var(--cree-ochre); box-shadow: 0 0 0 3px rgba(193, 120, 23, 0.18); }

/* corridor progress strip (mobile tracking) */
.map-route {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(31, 55, 107, 0.16);
  z-index: 3;
  pointer-events: none;
}
.map-route__node { font-size: 11px; font-weight: 700; color: var(--ls-grey-4); white-space: nowrap; }
.map-route__node.is-done { color: var(--ls-navy); }
.map-route__node.is-now { color: var(--ls-orange); }
.map-route__node.is-dest { color: var(--cree-deep); }
.map-route__seg { flex: 1; height: 2px; border-radius: 2px; background: var(--ls-grey-3); }
.map-route__seg.is-active {
  background: repeating-linear-gradient(90deg, var(--ls-orange) 0 6px, transparent 6px 11px);
  animation: dash-move 1.2s linear infinite;
}

/* linked-load callout (fleet console) */
.map-callout {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--troilus-copper);
  border-left: 4px solid var(--troilus-copper);
  border-radius: 10px;
  padding: 12px 15px;
  box-shadow: 0 8px 22px rgba(31, 55, 107, 0.18);
  z-index: 3;
  pointer-events: none;
}
.map-callout .mc-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--troilus-copper-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}
.map-callout .mc-line { font-size: 12.5px; font-weight: 700; color: var(--ls-navy); margin-top: 5px; }
.map-callout .mc-sub { font-size: 11.5px; color: var(--ls-grey-4); margin-top: 2px; }

/* copper dot variant for a backhaul map badge */
.map-badge--copper .dot { background: var(--troilus-copper); }

/* ── COMPACT GOOGLE-MAP ROUTE CARD ──
   Replaces the drawn origin→destination route-card on the post-load,
   Cree priority, and carrier job pages. A live Google Maps embed of the
   corridor with product overlays on top and an origin/destination legs
   strip below, so no route information is lost. Works on desktop and,
   with .geo-route--compact, inside the mobile phone frame. */
.geo-route {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.geo-route--copper { border-color: var(--troilus-copper); }

.geo-route__map {
  position: relative;
  height: 196px;
  background: #e9efe2;
}
.geo-route--compact .geo-route__map { height: 150px; }
.geo-route__map .map-frame { display: block; width: 100%; height: 100%; border: 0; }

.geo-route__legs {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.geo-leg { display: flex; align-items: flex-start; gap: 10px; }
.geo-leg__dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 3px solid var(--ls-navy); background: #fff;
  flex-shrink: 0; margin-top: 3px;
}
.geo-leg__dot--dest { border-color: var(--ls-orange); }
.geo-leg__dot--copper { border-color: var(--troilus-copper); }
.geo-leg__place { font-size: 13.5px; font-weight: 700; color: var(--ls-text); display: block; line-height: 1.25; }
.geo-leg__sub { font-size: 12px; color: var(--ls-grey-4); display: block; }

.animated-dash { stroke-dasharray: 7 5; animation: dash-move 1.2s linear infinite; }
@keyframes dash-move { to { stroke-dashoffset: -24; } }

.truck-pulse circle.ring {
  fill: none; stroke: var(--ls-orange); stroke-width: 2.5; opacity: 0;
  animation: truck-ring 2s ease-out infinite;
}
@keyframes truck-ring { 0% { r: 16; opacity: 0.7; } 100% { r: 34; opacity: 0; } }

/* ── PHOTO / DOC THUMBS ── */
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb {
  width: 96px; height: 72px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ls-grey-4);
  background: linear-gradient(135deg, #eef1f4, #dfe4ea);
  border: 1px solid var(--line);
  position: relative;
}

/* Real photo thumbnails (pickup / delivery documentation) */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.thumb .thumb__lbl {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(13, 20, 38, 0.75));
  border-radius: 0 0 7px 7px;
  text-transform: uppercase;
}
.thumb .tick {
  position: absolute; right: -5px; top: -5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ls-success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* ── QR PICKUP SCANNER (step 7) — realistic load-tag scan ── */
.qr-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.qr-card__id {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ls-navy);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.qr-scan {
  position: relative;
  margin: 16px;
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(160deg, #1c3160, #0d1426);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-frame {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.qr-code {
  display: block;
  width: 190px;
  height: 190px;
}
.qr-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--ls-orange);
  z-index: 2;
}
.qr-corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.qr-corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.qr-corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.qr-corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.qr-scanline {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ls-orange), transparent);
  box-shadow: 0 0 14px 2px rgba(255, 56, 15, 0.65);
  z-index: 3;
  animation: qr-scan 2.6s ease-in-out infinite;
}
@keyframes qr-scan {
  0%, 100% { top: 30px; opacity: 0.25; }
  50% { top: calc(100% - 30px); opacity: 1; }
}
.qr-card__foot { padding: 0 16px 16px; }
.qr-card__hint { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ls-text); }
.qr-card__stamp {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ls-grey-4);
}

/* Pickup big confirm ring */
.confirm-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--ls-success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(27, 164, 79, 0.15);
}

/* Money / amount emphasis */
.amount { font-size: 22px; font-weight: 800; color: var(--ls-navy); }
.amount small { font-size: 12px; font-weight: 600; color: var(--ls-grey-4); }
.amount--copper { color: var(--troilus-copper); }
.amount--green { color: var(--ls-success); }

/* Section divider label */
.divider-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ls-grey-4); margin: 4px 0;
}
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Pill list (chips row) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--ls-grey-1); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ls-text);
}

/* Countdown block for the priority window — solid Cree ochre accent */
.countdown {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 12px;
  background: var(--cree-ochre);
  color: #fff;
}
.countdown__time { font-size: 30px; font-weight: 800; font-family: var(--mono); letter-spacing: 0.02em; }
.countdown__lbl { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

/* small helper utilities */
.muted { color: var(--ls-grey-4); }
.tx-right { text-align: right; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.fw-700 { font-weight: 700; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════════════
   MERGED BUILD ADDITIONS
   Rules required by the ported marketplace + strategic pages (Parts 2 and 3).
   Additive only — nothing above this line is overridden.
   ══════════════════════════════════════════════════════════════════════════ */

/* Troilus wordmark beside the Loadshift logo in the top bar */
.dx-brand .dx-brand__troilus { height: 20px; width: auto; }

/* Compact tier badges so the side-panel badge rail stays short */
.dx-badge-rail .cree-badge { font-size: 11px; padding: 3px 9px; gap: 4px; }
.dx-badge-rail .cree-badge svg { display: none; }

/* Wide pips: the cover and the three section dividers carry word labels */
.dx-pip--intro { width: auto; padding: 0 9px; }
.dx-pip--section {
  width: auto; padding: 0 9px;
  background: #40507b; border-color: #40507b; color: #fff;
  letter-spacing: 0.04em;
}
.dx-pip--section:hover { color: #fff; }
.dx-pip--section.is-done { background: #40507b; border-color: #40507b; color: #fff; }

/* Faint Canada silhouette watermark behind hero copy (cover, dividers, closing) */
.hero__watermark {
  position: absolute;
  top: 50%; right: -4%;
  transform: translateY(-50%);
  width: min(58vw, 780px);
  aspect-ratio: 1 / 1;
  background: url("../../img/canada-outline.svg") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

/* Mid-tone hero — used only on the three section dividers so they read as chapter breaks */
.hero--dark { background: radial-gradient(115% 95% at 50% -18%, #4c5f8a 0%, #34446c 62%); color: #eef1f8; }
.hero--dark .hero__grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}
.hero--dark .hero__watermark { opacity: 0.1; filter: brightness(0) invert(1); }
.hero--dark .hero__eyebrow { color: #ffb08c; }
.hero--dark h1 { color: #fff; }
.hero--dark h1 .accent { color: var(--ls-orange); }
.hero--dark .hero__lead { color: rgba(255, 255, 255, 0.74); }
.hero--dark .hero__chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #eef2fb; }

/* Priority-window banner — compact Cree ochre accent (marketplace step 2) */
.pwindow {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 15px; border-radius: 12px;
  background: #fff; color: var(--ls-navy);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cree-ochre);
  box-shadow: 0 2px 8px -4px rgba(31, 55, 107, 0.16);
}
.pwindow__icon { flex-shrink: 0; color: var(--cree-ochre); }
.pwindow__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pwindow__lbl {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ls-grey-4);
}
.pwindow__time { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; color: var(--ls-navy); }
.pwindow__unit { font-size: 12px; font-weight: 600; color: var(--ls-grey-4); }
.pwindow__tier {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: #f6ead9;
  border: 1px solid var(--cree-ochre);
  color: var(--cree-deep);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* Small clickable "i" affordance + popover (priority-window explainer) */
.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 2px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ls-grey-3);
  background: #fff;
  color: var(--ls-grey-4);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-size: 10px; font-weight: 700; line-height: 1;
  cursor: pointer; vertical-align: middle; text-transform: none;
}
.info-dot:hover { background: #f0f2f5; color: var(--ls-navy); }
.info-pop {
  position: absolute;
  top: calc(100% + 8px); left: 12px; right: 12px;
  z-index: 5;
  padding: 12px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(31, 55, 107, 0.18);
  font-size: 12.5px; line-height: 1.5; color: var(--ls-text);
  text-transform: none; letter-spacing: normal;
}
.info-pop::before {
  content: "";
  position: absolute; top: -6px; left: 20px;
  width: 11px; height: 11px;
  background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.info-pop b { color: var(--cree-deep); }

/* Fixed overlay markers sit on top of embedded maps, so lock the embed:
   panning would slide the map out from under the labels. */
.map-frame { pointer-events: none; }

.qr-scan { isolation: isolate; }

/* Wrap hygiene for hero pages: balanced headlines, no orphan words in leads */
.hero h1,
.hero__eyebrow {
  text-wrap: balance;
}
.hero__lead {
  text-wrap: pretty;
}

/* Chips never break mid-text; rows wrap whole pills instead */
.chip,
.backhaul-tag {
  white-space: nowrap;
}
