/* ===== Design tokens (from Figma variables) ===== */
:root {
  --color-gray-600: #5a5d68;
  --color-white: #ffffff;
  --color-brand: #4141e7;
  --color-blue-25: #f1f2ff;
  --color-gray-200: #e7e8ec;
  --color-gray-900: #0e0f13;
  --color-brand-300: #8a8aff;
  --color-blue-chip: #ecedfe;
  --color-blue-50: #e9eaff;
  --color-gray-500: #7c7f8a;
  --color-brand-600: #3232cf;
  --color-green-600: #15a05e;
  --color-gold: #e8a317;
  --color-green-500: #22c55e;
  --radius-full: 999px;
  --radius-12: 12px;

  /* elevations */
  --elev-button: 0px 12px 26px -12px rgba(65, 65, 231, 0.45);
  --elev-soft: 0px 10px 30px -14px rgba(19, 32, 90, 0.22);
  --elev-card: 0px 24px 60px -22px rgba(19, 32, 90, 0.28);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--color-white);  /* full-width bg */
  color: var(--color-gray-900);
}
img { display: block; max-width: none; }
p { margin: 0; }

/* ===== Page shell — exact Figma frame width ===== */
.home {
  width: 100%;
  margin: 0 auto;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===== NAV ===== */
.nav {
  background: #f0f4fc;
  border-bottom: 1px solid var(--color-gray-200);
  height: 80px;
  width: 100%;
  /* Menu is anchored left (next to the logo); the buttons are pushed to the far
     right with a flexible gap. This keeps the menu in the same place on every
     page regardless of how many buttons are on the right, and never lets the
     links crowd the buttons. */
  display: flex;
  align-items: center;
  gap: 160px;
  padding: 0 130px;
  flex-shrink: 0;
}
.nav > .nav__right { margin-left: auto; }
.nav__logo { display: block; height: 26px; width: 65.619px; flex-shrink: 0; }
.nav__logo img { width: 100%; height: 100%; }
.nav__links {
  flex: 0 1 auto;
  min-width: 1px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--color-gray-600);
  white-space: nowrap;
  text-decoration: none;
}
.nav__caret { width: 10px; height: 10px; }
.nav__caret img { width: 100%; height: 100%; }
.nav__right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* ---- Nav dropdowns (mega menus) ---- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link .caret { width: 10px; height: 10px; opacity: .55; transition: transform .18s ease, opacity .18s ease; }
.nav__item:hover .nav__link .caret, .nav__item.open .nav__link .caret { transform: rotate(180deg); opacity: .85; }
.nav__item:hover > .nav__link, .nav__item.open > .nav__link { color: var(--color-brand); }
/* active page: its menu item is highlighted blue */
.nav__link.is-active, .nav__item.is-active > .nav__link { color: var(--color-brand); }
.mega {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 352px; background: #fff;
  border: 1px solid #edeef6; border-radius: 18px;
  box-shadow: 0 26px 64px -22px rgba(22, 28, 66, .34);
  padding: 8px 8px 6px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav__item:hover .mega, .nav__item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(10px); }
.mega-head { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--color-brand,#4141e7); padding: 12px 14px 8px; }
/* active sub-page inside a dropdown is highlighted blue */
.prow.is-active { background: #f4f5fb; }
.prow.is-active .prow-tx b, .prow.is-active .prow-ic { color: var(--color-brand); }
.mega-row.is-active, .mega-row.is-active .mega-ic, .mega-row.is-active .mega-arw { color: var(--color-brand); }
.mega-row.is-active { background: #f4f6ff; }
.mega-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-decoration: none; color: var(--color-gray-900); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; border-radius: 11px; }
.mega-row:hover { background: #f4f6ff; }
.mega-ic { width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; color: #2a3252; }
.mega-ic svg { width: 24px; height: 24px; }
.mega-tx { flex: 1; }
.mega-arw { width: 17px; height: 17px; flex: none; color: #b7bdd6; transition: transform .15s, color .15s; }
.mega-row:hover .mega-ic, .mega-row:hover .mega-arw { color: var(--color-brand); }
.mega-row:hover .mega-arw { transform: translateX(3px); }
.mega-foot { text-align: right; padding: 10px 14px 8px; }
.mega-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--color-brand); font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 1.6px solid var(--color-brand); padding-bottom: 1px; }
.mega-foot .mega-arw { width: 15px; height: 15px; color: var(--color-brand); }
.mega-foot a:hover .mega-arw { transform: translateX(3px); }
.mega-prod { width: 334px; }
.prow { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 13px; text-decoration: none; transition: background .15s; }
.prow:hover { background: #f4f5fb; }
.prow-ic { width: 26px; height: 26px; flex: none; color: #2a3252; display: flex; align-items: center; justify-content: center; transition: color .15s; }
.prow:hover .prow-ic { color: var(--color-brand); }
.prow-ic svg { width: 24px; height: 24px; }
.prow-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.prow-tx b { font-weight: 600; font-size: 15.5px; color: var(--color-gray-900); letter-spacing: -.01em; }
.prow-tx small { font-size: 12.5px; color: var(--color-gray-500); font-weight: 500; margin-top: 1px; }
.prow-arw { width: 17px; height: 17px; flex: none; color: #b7bdd6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary-sm {
  background: var(--color-brand);
  height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--color-white);
  font-weight: 500;
  font-size: 15px;
  line-height: 15px;
  border: none;
}
.btn--ghost-sm {
  background: transparent;
  border: 1px solid var(--color-brand-300);
  height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--color-brand);
  font-weight: 500;
  font-size: 15px;
  line-height: 15px;
}

/* ===== HERO ===== */
.hero {
  /* Figma: bg-gradient-to-b from #eef2fb to white — a hair cooler than blue-25 */
  background: linear-gradient(to bottom, #eef2fb, var(--color-white));
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 135px 0 64px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero__in { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero__title {
  font-weight: 700;
  font-size: 54px;
  line-height: 1.06;
  color: var(--color-gray-900);
  letter-spacing: -1.5px;
  white-space: nowrap;
}
.hero__title .accent { color: var(--color-brand); }
.hero__sub {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.56;
  color: var(--color-gray-600);
  width: 600px;
}
.hero__cta { display: flex; align-items: center; gap: 14px; height: 119px; }

.btn--primary-lg {
  background: var(--color-brand);
  height: 56px;
  padding: 15px 24px;
  border-radius: 14px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  box-shadow: var(--elev-button);
  border: none;
  gap: 10px;
}
.btn--primary-lg .arrow { width: 18px; height: 18px; }
.btn--primary-lg .arrow img { width: 100%; height: 100%; }
.btn--ghost-lg {
  background: var(--color-white);
  border: 1px solid var(--color-brand-300);
  height: 56px;
  padding: 15px 24px;
  border-radius: 14px;
  color: var(--color-brand);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}

/* hero shot */
.hero-shot { position: relative; width: 1080px; height: 627px; }
.hero-shot .dashboard {
  position: absolute;
  width: 803px; height: 571px;
  left: 49px;
  top: 6px;
  border: 4px solid #D5E0FF;
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0px -4px 25.7px rgba(20, 54, 109, 0.16));
}
.hero-shot .dashboard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shot .phone {
  position: absolute;
  left: 804px; top: 91px;
  width: 226px; height: 489px;
  border: 4px solid #D5E0FF;
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0px -4px 25.7px rgba(20, 54, 109, 0.16));
}
.hero-shot .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* hover one mockup to focus it — it lifts forward with a bright outline,
   the other screen (and its floating label) recedes into the background */
.hero-shot .dashboard,
.hero-shot .phone,
.hero-shot .analytics-badge,
.hero-shot .statuses {
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease, box-shadow .35s ease, filter .35s ease;
}
.hero-shot .dashboard, .hero-shot .phone { cursor: pointer; }

/* focused mockup — forward + brighter brand outline/glow */
.hero-shot .dashboard:hover {
  z-index: 6;
  /* the 4px #d9d9fd bezel stays as-is; this is a second, brighter 1px ring
     laid exactly along its outer edge (box-shadow follows the radius). */
  box-shadow: 0 0 0 1px var(--color-brand), 0 22px 50px -20px rgba(65, 65, 231, .26);
  transform: scale(1.02);
}
.hero-shot .phone:hover {
  z-index: 6;
  box-shadow: 0 0 0 1px var(--color-brand), 0 22px 50px -20px rgba(65, 65, 231, .26);
  transform: scale(1.03);
}

/* The connectors must clear the focused mockup, which lifts to z-index 6 —
   otherwise the Dispatch / Driver app lines slide under it on hover. */
.hero-shot .analytics-badge,
.hero-shot .statuses { z-index: 7; }

/* dashboard focused → phone + "Driver app" label sink back */
.hero-shot:has(.dashboard:hover) .phone { opacity: .4; filter: saturate(.65) blur(1.5px); transform: scale(.96); z-index: 1; }
.hero-shot:has(.dashboard:hover) .statuses { opacity: .3; filter: blur(.4px); }

/* phone focused → dashboard + "Dispatch" label sink back */
.hero-shot:has(.phone:hover) .dashboard { opacity: .4; filter: saturate(.65) blur(1.5px); transform: scale(.96); z-index: 1; }
.hero-shot:has(.phone:hover) .analytics-badge { opacity: .3; filter: blur(.4px); }

.floating-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0px 6px 18px 0px rgba(15, 18, 31, 0.16);
}
.floating-badge .dot { width: 8px; height: 8px; }
.floating-badge .dot img { width: 100%; height: 100%; }
.floating-badge span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.13px;
  color: #0e0f13;
  white-space: nowrap;
}
.analytics-badge { position: absolute; left: -120px; top: 273px; width: 195px; height: 36px; }
.analytics-badge .line { position: absolute; left: 99px; top: 14px; width: 111px; height: 9px; }
.analytics-badge .line img { width: 100%; height: 100%; }
.analytics-badge .floating-badge { left: 0; top: 1px; }
.statuses { position: absolute; left: 1022px; top: 366px; width: 150px; height: 36px; }
.statuses .floating-badge { left: 44px; top: 0; }
.statuses .connector { position: absolute; left: 7px; top: 18px; width: 37px; height: 2px; background: var(--color-brand-300); border-radius: 2px; }
.statuses .end-dot { position: absolute; left: 0; top: 14px; width: 9px; height: 9px; }
.statuses .end-dot img { width: 100%; height: 100%; }

/* ===== STATS ===== */
.stats {
  background: var(--color-blue-25);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 100px 0;
  overflow: hidden;
  flex-shrink: 0;
}
.stats__eyebrow {
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  color: var(--color-brand);
  text-align: center;
  letter-spacing: 1.96px;
  white-space: nowrap;
}
.stats__grid { display: flex; align-items: stretch; gap: 24px; width: min(1080px, calc(100% - 48px)); }
.stat-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--color-gray-200); }
.stat-card.grad { background: linear-gradient(90deg, #4141e7, #6e6ef5); border: none; }
.stat__num { font-weight: 700; font-size: 46px; line-height: 1.08; color: var(--color-gray-900); letter-spacing: -0.92px; font-variant-numeric: tabular-nums; }
.stat-card.grad .stat__num { color: #fff; }
.stat__label { font-weight: 500; font-size: 16px; line-height: 1.56; color: var(--color-gray-600); }
.stat-card.grad .stat__label { color: #e9eaff; }

/* ===== STORY / FEATURES ===== */
.story {
  background: var(--color-white);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 110px;
  padding: 48px 0 100px;
  flex-shrink: 0;
}

/* ---- "How it works" pinned scrollytelling (desktop, JS only) ---- */
.js .story-pin { position: relative; width: 100%; height: calc(100vh * 3); }
.js .story-pin-inner {
  position: sticky; top: 80px;              /* clear the 80px sticky nav so the heading isn't cropped */
  height: calc(100vh - 80px);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 44px;
}
.js .story-pin-inner .story__head { padding-bottom: 0; }
.js .story-stage { position: relative; width: 1080px; height: 360px; overflow: hidden; }
.js .story-stage .panel {
  position: absolute; inset: 0;
  width: 1080px; margin: 0;
  gap: 72px; align-items: center;
}
.js .story-stage .visual-route,
.js .story-stage .visual-map,
.js .story-stage .visual-analytics { transition: opacity .35s ease; will-change: opacity; }
.js .story-stage .panel__copy { will-change: transform; }
.story__head { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 8px; text-align: center; }
.eyebrow { font-weight: 600; font-size: 13px; line-height: 1; color: var(--color-brand); letter-spacing: 0.78px; white-space: nowrap; }
.story__head .h2 { width: 760px; }
.story__head .lead { width: auto; white-space: nowrap; }
@media (max-width: 820px) { .story__head .lead { white-space: normal; width: auto; max-width: 620px; } }
.h2 { font-weight: 700; font-size: 42px; line-height: 1.1; color: var(--color-gray-900); letter-spacing: -1.05px; }
.lead { font-weight: 500; font-size: 16px; line-height: 1.56; color: var(--color-gray-600); }

.panel { display: flex; align-items: center; gap: 72px; width: 1080px; }
.panel__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 468px; }
.panel--analytics .panel__copy { flex: 1 0 0; min-width: 1px; width: auto; }
.panel__copy .h2 { min-width: 100%; font-size: 34px; line-height: 1.14; letter-spacing: -0.8px; }
.panel__copy .lead { min-width: 100%; }
.link-more { font-weight: 600; font-size: 15px; line-height: 1; color: var(--color-brand); white-space: nowrap; }

/* before/after route visual */
.visual-route {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: flex-start;
  border-radius: 22px;
  width: 540px;
  position: relative;
  overflow: hidden;
}
.route-side { position: relative; width: 270px; height: 408px; overflow: hidden; }
.route-side.before { background: #f1f2ff; border-right: 1px solid var(--color-gray-200); }
.route-side.after { background: #eaecfb; }
.route-side .grid-bg, .route-side .route-line { position: absolute; left: 0; top: 0; width: 270px; height: 100%; }
.route-side .grid-bg img, .route-side .route-line img { width: 100%; height: 100%; }
.route-depot {
  position: absolute;
  background: #8a90a8;
  border: 1.5px solid #fff;
  width: 22px; height: 22px;
  border-radius: 7px;
  box-shadow: 0px 10px 30px -14px rgba(19, 32, 90, 0.22);
  overflow: hidden;
}
.route-depot .ico { position: absolute; left: 3.5px; top: 3.5px; width: 12px; height: 12px; }
.route-depot .ico img { width: 100%; height: 100%; }
.stop {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 10px; text-align: center;
  overflow: hidden;
}
.stop.before-stop { background: #fff; border: 1.5px solid #aeb4cc; color: #6b7192; }
.stop.after-stop { background: #4141e7; border: 1.5px solid #fff; color: #fff; box-shadow: 0px 10px 30px -14px rgba(19, 32, 90, 0.22); }
.route-tag {
  position: absolute;
  display: flex; align-items: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 700; font-size: 12px;
  white-space: nowrap;
}
.route-tag.before-tag { background: #fbe7eb; color: #c33b54; left: 14px; top: 14px; }
.route-tag.km-tag { background: #eef0f6; color: #7c8199; left: 14px; top: 87.81%; }
.route-tag.after-tag { background: #e3f6ec; color: #0e8f5c; left: 14px; top: 14px; }
.metric-pill {
  position: absolute;
  left: 14px; top: 86.56%;
  background: #fff;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  box-shadow: 0px 10px 30px -14px rgba(19, 32, 90, 0.22);
}
.metric-pill .g-dot { width: 8px; height: 8px; background: #0e8f5c; border-radius: 999px; }
.metric-pill span { font-weight: 700; font-size: 12.5px; color: var(--color-gray-900); white-space: nowrap; }
.route-arrow {
  position: absolute;
  left: 250px; top: 43.75%;
  background: #fff;
  width: 38px; height: 38px;
  border-radius: 999px;
  box-shadow: var(--elev-card);
  overflow: hidden;
}
.route-arrow .ico { position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; }
.route-arrow .ico img { width: 100%; height: 100%; }

/* map visual */
/* ===== Dispatch & live-tracking map — rebuilt 1:1 from Figma (composed) ===== */
.visual-map {
  position: relative;
  width: 540px;
  aspect-ratio: 542 / 395;
  border: 4px solid var(--color-blue-50);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-blue-50);
}
.map-inner {                       /* Figma "map" 718×401 — centred and clipped by the frame */
  position: absolute;
  width: 718px; height: 401px;
  left: calc(50% + 4px); top: calc(50% + 3px);
  transform: translate(-50%, -50%);
}
.map-bg { position: absolute; left: 84px; top: 0; width: 540px; height: 394px; background: var(--color-blue-50); overflow: hidden; }
.map-bg img { position: absolute; left: -11.48%; top: -41.62%; width: 124.44%; height: 170.56%; max-width: none; opacity: .5; }
.map-route { position: absolute; display: block; max-width: none; }
.map-route.r1 { left: 118px; top: 71px; width: 557px; height: 336px; }
.map-route.r2 { left: 119px; top: 189.7px; width: 205px; height: 216px; }
.map-pin {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--color-brand);
  border-radius: 6px;
  box-shadow: 0px 6px 16px 0px rgba(26, 28, 77, 0.13);
  display: flex; align-items: center; justify-content: center;
  gap: 2px;
}
.map-pin span { font-weight: 700; font-size: 10px; color: var(--color-brand); letter-spacing: -0.1px; line-height: normal; white-space: nowrap; }
.map-pin .chk { width: 7.583px; height: 5.417px; display: block; flex: none; }
.map-name {
  position: absolute; left: 243px; top: 179px; height: 24px;
  background: #fff; border: 1px solid var(--color-gray-200);
  border-radius: 999px; box-shadow: 0px 6px 18px 0px rgba(15, 18, 31, 0.14);
  display: flex; align-items: center; padding: 4px 10px 4px 8px;
  font-weight: 600; font-size: 11px; color: var(--color-brand); white-space: nowrap; z-index: 3;
}
/* animated current-location pulse at the driver spot (no static dot) */
.map-ping { position: absolute; left: 311px; top: 190px; width: 0; height: 0; z-index: 2; pointer-events: none; }
.map-ping::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(65, 65, 231, .30), rgba(65, 65, 231, 0)); }
.map-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-brand); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(26, 28, 77, .32); z-index: 1; }
.map-ping::after { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(65, 65, 231, .5); background: radial-gradient(circle, rgba(65, 65, 231, .22), rgba(65, 65, 231, 0)); transform-origin: center; animation: radar 4.6s cubic-bezier(.22, .61, .36, 1) infinite; }

/* analytics visual */
.visual-analytics {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  display: flex; flex-direction: column; align-items: flex-start;
  border-radius: 22px;
  width: 540px;
  overflow: hidden;
}
.visual-analytics .shot { width: 100%; height: 395px; position: relative; border-radius: 20px; overflow: hidden; }
.visual-analytics .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* Home "How it works": make all 3 visuals TALLER only (same 540 width) — the pinned
   stage grows to fit; each visual fills the taller box (see per-visual rules above). */
@media (min-width: 1081px) {
  .js .story-stage { height: 448px; }
}

/* ===== REVIEWS ===== */
.reviews {
  background: var(--color-brand-600);
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  padding: 100px 0;
  overflow: hidden;
  flex-shrink: 0;
}
.reviews__head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 14px; color: var(--color-white); text-align: center; white-space: nowrap; }
.reviews__head .eyebrow { color: var(--color-white); }
.reviews__head h2 { font-weight: 700; font-size: 42px; line-height: 1.1; letter-spacing: -1.05px; }
.marquee-row { display: flex; gap: 18px; align-items: flex-start; }
.review {
  background: var(--color-white);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: var(--elev-soft);
  width: 328px;
  flex-shrink: 0;
}
.stars { position: relative; width: 77px; height: 13px; overflow: hidden; }
.stars img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars .s { position: absolute; top: 8.33%; bottom: 14.17%; }
.stars .s1 { left: 0.91%; right: 84.66%; }
.stars .s2 { left: 21.69%; right: 63.89%; }
.stars .s3 { left: 42.47%; right: 43.11%; }
.stars .s4 { left: 63.25%; right: 22.33%; }
.stars .s5 { left: 84.03%; right: 1.55%; }
.review__text { font-weight: 400; font-size: 14.5px; line-height: 22px; color: #333a5c; width: 100%; }
.who { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #fff; font-weight: 700; font-size: 13px; text-align: center;
}
.who__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap; }
.who__name { font-weight: 700; font-size: 14px; color: var(--color-gray-900); line-height: normal; }
.who__role { font-weight: 400; font-size: 12px; color: var(--color-gray-500); line-height: normal; }

/* ===== CTA BAND (light) ===== */
.cover-stack { position: relative; width: 100%; }
.cta-band {
  background: var(--color-white);
  width: 100%;
  height: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 220px 0;
  overflow: hidden;
  flex-shrink: 0;
}
/* the band pins in place while the Industries block scrolls up over it, so its
   text stays put and simply dissolves (desktop / pinned scroll only) */
@media (min-width: 1001px) {
  .cta-band { position: sticky; top: 0; z-index: 0; }
}
.cta-band__text { position: relative; width: 1054px; height: 134px; }
.cta-band__title {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 1054px;
  font-weight: 700; font-size: 42px; line-height: 1.1;
  color: var(--color-brand); text-align: center; letter-spacing: -1.05px;
}
.cta-band__actions { position: absolute; left: 368.5px; top: 78px; display: flex; align-items: center; gap: 10px; }
.btn--cta-primary {
  background: var(--color-brand);
  height: 56px;
  padding: 15px 20px 15px 24px;
  border-radius: var(--radius-12);
  color: var(--color-white);
  font-weight: 600; font-size: 15px; line-height: 1;
  gap: 8px; border: none;
}
.btn--cta-primary .ico { width: 16px; height: 16px; position: relative; overflow: hidden; }
.btn--cta-primary .ico img { position: absolute; left: 0; top: 0; width: 16px; height: 16px; }
.btn--cta-ghost {
  border: 1px solid var(--color-brand);
  height: 56px;
  padding: 15px 20px 15px 24px;
  border-radius: var(--radius-12);
  color: var(--color-brand);
  font-weight: 600; font-size: 15px; line-height: 1;
  width: 140px;
  filter: drop-shadow(0px 8px 10px rgba(26, 28, 77, 0.18));
  background: transparent;
}

/* ===== INDUSTRIES ===== */
.industries {
  background: var(--color-blue-25);
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 50px;
  padding: 100px 0 172px;
  overflow: hidden;
  flex-shrink: 0;
  /* industries rides up over the pinned "Start saving" band (which fades beneath it) */
  position: relative;
  z-index: 1;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -30px 60px -30px rgba(19, 32, 90, .16);
}
.cta-band__title, .cta-band__actions { will-change: opacity; }
.industries__header, .industries__viewport { will-change: opacity; }
.industries__header { display: flex; align-items: center; justify-content: center; width: min(1082px, calc(100% - 48px)); }
.industries__header h2 { width: 100%; font-weight: 700; font-size: 42px; line-height: 1.1; color: var(--color-gray-900); text-align: center; letter-spacing: -1.05px; }
.industries__viewport { position: relative; width: 100%; overflow-x: clip; }
.cards {
  display: flex; gap: 24px; align-items: flex-start;
  width: max-content;
  padding: 12px max(20px, calc((100% - 1082px) / 2));
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.industry-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  display: flex; flex-direction: column; align-items: flex-start;
  border-radius: 22px;
  box-shadow: var(--elev-card);
  width: 344px;
  flex-shrink: 0;
  overflow: hidden;
}
.industry-card__img {
  position: relative;
  width: 100%; height: 196px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 14px;
  overflow: hidden;
}
.industry-card__img.placeholder { background: var(--color-blue-50); }
.industry-card__img > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: relative;
  background: #fff;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--elev-soft);
}
.chip .dot { width: 8px; height: 8px; }
.chip .dot img { width: 100%; height: 100%; }
.chip span { font-weight: 600; font-size: 12.5px; color: var(--color-gray-900); white-space: nowrap; }
.industry-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 24px; width: 100%; }
.industry-card__title { font-weight: 800; font-size: 20px; line-height: 26px; color: var(--color-gray-900); letter-spacing: -0.2px; width: 100%; }
.industry-card__desc { font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--color-gray-600); width: 100%; }
.explore { font-weight: 700; font-size: 14px; line-height: normal; color: var(--color-brand); white-space: nowrap; }

.carousel-controls-row { width: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-controls { display: flex; align-items: center; gap: 12px; }
.carousel-arrow {
  background: var(--color-white);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--color-gray-200);
  color: #b6b9c6;
  cursor: pointer;
}
.carousel-arrow svg { width: 18px; height: 18px; display: block; }
.carousel-arrow.on { border-color: var(--color-brand); color: var(--color-brand); }
.carousel-arrow:not(.on) { cursor: default; }

/* ===== YOU MAY ALSO LIKE ===== */
.blog {
  background: var(--color-white);
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  padding: 96px 0;
  flex-shrink: 0;
  /* articles sheet slides up and rides over the industries block */
  position: relative;
  z-index: 2;
  margin-top: -84px;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -30px 60px -30px rgba(19, 32, 90, .22);
}
.blog__header, .blog__row { width: min(1080px, calc(100% - 48px)); }
.blog__header { display: flex; align-items: center; justify-content: space-between; height: 59px; }
.blog__header h2 { width: 240px; font-weight: 700; font-size: 28px; line-height: 1.16; color: var(--color-gray-900); letter-spacing: -0.56px; }
.blog__cta { text-decoration: none;
  background: var(--color-white);
  border: 1px solid var(--color-brand);
  display: flex; align-items: center; gap: 8px;
  height: 50px;
  padding: 11px 16px 11px 18px;
  border-radius: 12px;
}
.blog__cta span { font-weight: 500; font-size: 15px; line-height: 1; color: var(--color-brand); white-space: nowrap; }
.blog__cta .ico { width: 16px; height: 16px; }
.blog__cta .ico img { width: 100%; height: 100%; }
.blog__row { display: flex; gap: 24px; align-items: stretch; }
.article {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  display: flex; flex-direction: column;
  flex: 1 0 0; min-width: 1px;
  padding: 14px;
  border-radius: 18px;
}
.article__img { width: 100%; height: 118px; border-radius: 12px; overflow: hidden; flex: none; background: var(--color-blue-25); }
.article__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.article__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 8px 4px; flex: 1; }
.article__title { font-weight: 700; font-size: 17px; line-height: 1.28; color: var(--color-gray-900); letter-spacing: -0.2px; }
.article__desc { font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--color-gray-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 12px; }
.article__read { font-weight: 500; font-size: 13px; line-height: 1; color: var(--color-gray-600); white-space: nowrap; }
.article__author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.article__avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.article__by { font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--color-gray-900); white-space: nowrap; }
.article__by i { font-style: normal; font-weight: 500; color: var(--color-gray-500); }
.article__foot .ico { width: 18px; height: 18px; }
.article__foot .ico img { width: 100%; height: 100%; }

/* ===== FINAL CTA (gradient) ===== */
.cta-final {
  position: relative;
  width: 100%;
  height: 459px;
  background: linear-gradient(to right, #3a2fc8 0%, #4141e7 50%, #6e6ef5 100%);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 20px;
  padding: 112px 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-grid { position: absolute; left: 700px; top: 0; width: 740px; height: 484px; overflow: hidden; }
.grid-lines { position: absolute; left: 40px; top: 0; width: 700px; height: 484px; opacity: 0.1; overflow: hidden; }
.grid-lines .gl-img { position: absolute; left: 0; right: 0; top: -0.1%; bottom: 0; }
.grid-lines .gl-img img { display: block; width: 100%; height: 100%; }
.grid-lines .gl-grad { position: absolute; inset: 0; }
.grid-lines .gl-marker { position: absolute; left: 320px; top: 176px; width: 42px; height: 42px; }
.grid-lines .gl-marker img { width: 100%; height: 100%; }
/* the exported SVG peaks at pure white mid-gradient — dim the layer, the ends already fade out */
.footer-grid .gl-route { position: absolute; left: 111.5px; top: 30px; width: 380px; height: 330px; opacity: .5; }
.footer-grid .gl-route img { display: block; width: 100%; height: 100%; }
.cta-final__title {
  position: relative;
  z-index: 1;
  width: 100%;
  font-weight: 700; font-size: 54px; line-height: 1.02;
  color: #fff; text-align: center; letter-spacing: -1.35px;
}
.cta-final__sub {
  position: relative; z-index: 1;
  width: 1052px;
  font-weight: 500; font-size: 18px; line-height: 1.5;
  color: #d7d8ff; text-align: center; letter-spacing: -0.18px;
}
.cta-final__actions { position: relative; z-index: 1; width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; }
.cta-final__actions .inner { display: flex; align-items: center; gap: 10px; }
.btn--white {
  background: #fff;
  height: 56px;
  padding: 15px 20px 15px 24px;
  border-radius: var(--radius-12);
  color: var(--color-brand);
  font-weight: 600; font-size: 15px; line-height: 1;
  gap: 8px; border: none;
  box-shadow: 0px 8px 20px 0px rgba(26, 28, 77, 0.18);
}
.btn--white .ico { width: 16px; height: 16px; position: relative; overflow: hidden; }
.btn--white .ico img { position: absolute; left: 0; top: 0; width: 16px; height: 16px; }
.btn--outline-white {
  border: 1px solid #fff;
  height: 56px;
  padding: 15px 20px 15px 24px;
  border-radius: var(--radius-12);
  color: #fff;
  font-weight: 600; font-size: 15px; line-height: 1;
  width: 140px;
  background: transparent;
  filter: drop-shadow(0px 8px 10px rgba(26, 28, 77, 0.18));
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-gray-900);
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 0 40px;
  overflow: hidden;
  flex-shrink: 0;
}
.foot-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 1180px; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.blurb-col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 300px; overflow: hidden; }
.foot-logo { width: 65.619px; height: 26px; }
.foot-logo img { width: 100%; height: 100%; }
.blurb { font-weight: 400; font-size: 14px; line-height: 22px; color: #c7c9de; width: 100%; }
.appbtns { display: flex; gap: 10px; align-items: flex-start; }
.appbtn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  overflow: hidden;
}
.appbtn .ico { width: 22px; height: 22px; }
.appbtn .ico img { width: 100%; height: 100%; }
.appbtn__text { display: flex; flex-direction: column; align-items: flex-start; white-space: nowrap; }
.appbtn__text small { font-weight: 400; font-size: 10px; color: #8a8ca6; line-height: normal; }
.appbtn__text b { font-weight: 700; font-size: 13px; color: #fff; line-height: normal; }
.fcol { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.fcol__title { font-weight: 700; color: #fff; line-height: normal; }
.fcol a, .fcol p { font-weight: 400; color: #c7c9de; line-height: normal; text-decoration: none; }
.foot-divider { width: 1180px; height: 1px; background: rgba(255, 255, 255, 0.1); }
.foot-bot { display: flex; align-items: center; justify-content: space-between; width: 100%; font-weight: 400; font-size: 13px; color: #7c7f8a; white-space: nowrap; }

/* Shared footer variant (matches the Dispatch / Route-Planner footer) */
.rp-footer .foot-inner { width: min(1080px, calc(100% - 48px)); }
.rp-footer .foot-divider { width: 100%; }
.rp-footer .foot-cols { display: flex; gap: 40px; }
.rp-footer .fcol__title { font-size: 11px; text-transform: uppercase; letter-spacing: .66px; color: #d7d9df; }
.rp-footer .fcol a { font-size: 14px; color: #7c7f8a; }
.rp-footer .fcol a:hover { color: #fff; }
.rp-footer .foot-legal { display: flex; gap: 24px; }
@media (max-width: 900px) {
  .rp-footer .foot-cols { flex-wrap: wrap; gap: 28px 40px; }
  .rp-footer .foot-top { flex-direction: column; gap: 32px; }
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
html { scroll-behavior: smooth; }

/* reveal on scroll (only when JS is on; content stays visible otherwise) */
.js .rev-anim { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rev-anim.in { opacity: 1; transform: none; }

/* nav elevation on scroll */
.nav { transition: box-shadow .25s ease, background .25s ease; position: sticky; top: 0; z-index: 50; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(19, 32, 90, 0.08); }

/* scroll progress on the nav's bottom edge — .nav is already sticky, so this rides with it.
   scaleX rather than width keeps every frame on the compositor. */
.nav-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; overflow: hidden; }
.nav-prog i {
  display: block; height: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-300));
  will-change: transform;
}

/* reviews marquee */
.reviews { position: relative; }
.marquee-row { align-self: flex-start; width: max-content; flex-wrap: nowrap; gap: 0; animation: marq 58s linear infinite; animation-play-state: paused; will-change: transform; }
.marquee-row.play { animation-play-state: running; }   /* started by JS after cloning */
.marquee-row:not(.b) { animation-direction: reverse; } /* first row: left → right */
.marquee-row.b { animation-duration: 72s; }            /* second row: right → left */
.review { margin-right: 18px; flex-shrink: 0; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Fluently-style edge fade: review cards dissolve toward the left/right edges.
   Mask lives on a wrapper so only the rows fade — the section's colour panel is untouched. */
.marquee-mask {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* radar ping under the driver marker on the map */
.radar {
  position: absolute;
  left: 262px; top: 135px;   /* centred on the driver dot (284, 157) */
  width: 44px; height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(65, 65, 231, 0.30), rgba(65, 65, 231, 0));
  border: 2px solid rgba(65, 65, 231, 0.5);
  transform-origin: center;
  animation: radar 4.6s cubic-bezier(.22, .61, .36, 1) infinite;
  pointer-events: none;
}
@keyframes radar {
  0%   { transform: scale(.45); opacity: .7; }
  70%  { opacity: .14; }
  100% { transform: scale(2.3); opacity: 0; }
}

/* hover micro-interactions */
.btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary-sm:hover, .btn--primary-lg:hover, .btn--cta-primary:hover { filter: brightness(1.08); }
.btn--white:hover { filter: brightness(.98); }
.nav__link { cursor: pointer; transition: color .15s ease; }
.nav__link:hover { color: var(--color-brand); }
.nav__link.is-active { color: var(--color-brand); }
.industry-card, .article, .review { transition: transform .28s ease, box-shadow .28s ease; }
.industry-card:hover, .article:hover { transform: translateY(-4px); box-shadow: 0px 30px 60px -20px rgba(19, 32, 90, 0.32); }
.link-more, .explore, .blog__cta, .foot-bot p, .fcol a { transition: transform .2s ease, color .2s ease, opacity .2s ease; }
.link-more:hover, .explore:hover { transform: translateX(3px); }
.fcol a:hover { color: #fff; }
.blog__cta { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.blog__cta:hover { transform: translateY(-1px); box-shadow: var(--elev-soft); }
.carousel-arrow { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease; }
.carousel-arrow.on:hover { transform: translateY(-2px); box-shadow: var(--elev-soft); }
.appbtn { transition: border-color .2s ease, background .2s ease; cursor: pointer; }
.appbtn:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }

/* burger (hidden on desktop) */
.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 22px; height: 2px; background: var(--color-gray-900); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .rev-anim { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
.home { width: 100%; max-width: 100%; overflow-x: clip; }

/* ---- Laptop (<=1200) ---- */
@media (max-width: 1200px) {
  .nav { padding: 0 40px; }
}


/* ---- Hero shot fit — scaled fluidly by JS (fitHero) so the floating
       Dispatch / Driver-app labels never get clipped. CSS steps below are
       a fallback only when JS is disabled. ---- */
@media (max-width: 1340px) { html:not(.js) .hero-shot { zoom: .9; } }
@media (max-width: 1120px) { html:not(.js) .hero-shot { zoom: .8; } }
@media (max-width: 940px)  { html:not(.js) .hero-shot { zoom: .66; } }
@media (max-width: 760px)  { html:not(.js) .hero-shot { zoom: .5; } }
@media (max-width: 520px)  { html:not(.js) .hero-shot { zoom: .36; } }

/* ---- CTA band (light) reflow ---- */
@media (max-width: 1080px) {
  .cta-band { height: auto; padding: 80px 24px; }
  .cta-band__text { position: static; width: 100%; max-width: 1080px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .cta-band__title { position: static; transform: none; left: auto; top: auto; width: 100%; font-size: clamp(28px, 4vw, 42px); }
  .cta-band__actions { position: static; left: auto; top: auto; }
}

/* ---- Panels stack + unpin scrollytelling (<=1080) ---- */
@media (max-width: 1080px) {
  .story { gap: 64px; padding: 72px 0; }
  .story__head .h2 { width: 100%; max-width: 88vw; }
  .story__head .lead { width: 100%; max-width: 88vw; }
  .panel { flex-direction: column; align-items: center; width: 100%; max-width: 600px; padding: 0 24px; gap: 28px; margin: 0 auto; }
  .panel__copy { width: 100% !important; max-width: 540px; min-width: 0 !important; }
  .panel__copy .h2, .panel__copy .lead { min-width: 0; width: 100%; }
  /* unpin the scrollytelling on mobile — plain stacked panels */
  .js .story-pin { height: auto; }
  .js .story-pin-inner { position: static; height: auto; overflow: visible; display: flex; flex-direction: column; align-items: center; gap: 48px; }
  .js .story-stage { position: static; width: 100%; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 64px; align-items: center; }
  .js .story-stage .panel { position: static; inset: auto; width: 100%; max-width: 600px; }
}

/* ---- Nav → burger (<=860) ---- */
@media (max-width: 860px) {
  .nav { display: flex; padding: 0 20px; gap: 16px; }
  .nav__links, .nav__right { display: none; }
  .burger { display: flex; }
  .nav.open { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 18px; }
  .nav.open .nav__links { display: flex; flex-direction: column; align-items: flex-start; width: 100%; order: 3; gap: 16px; height: auto; justify-content: flex-start; }
  .nav.open .nav__right { display: flex; width: 100%; order: 4; margin-top: 4px; }
  /* dropdowns expand inline in the mobile menu (tap to toggle) */
  .nav.open .nav__item { flex-direction: column; align-items: flex-start; width: 100%; position: static; }
  .nav.open .mega { position: static; transform: none !important; opacity: 1; visibility: visible; width: 100%; box-shadow: none; border: 1px solid var(--color-gray-200); margin-top: 10px; display: none; }
  .nav.open .mega-prod { width: 100%; }
  .nav.open .nav__item.open .mega { display: block; }
}

/* ---- Industries → native horizontal scroll (<=900) ---- */
@media (max-width: 900px) {
  .industries { padding: 48px 0 120px; gap: 32px; }
  .industries__header { width: 100%; padding: 0 20px; }
  .industries__header h2 { width: 100%; font-size: clamp(26px, 5vw, 42px); }
  .industries__viewport { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cards { width: max-content; padding: 8px 20px 20px; gap: 16px; scroll-snap-type: x mandatory; transform: none !important; transition: none; }
  .industry-card { scroll-snap-align: start; }
  .carousel-controls-row { display: none; }
}

/* ---- Blog stack (<=900) ---- */
@media (max-width: 900px) {
  .blog { width: 100%; height: auto; padding: 64px 24px; margin-top: -48px; border-radius: 32px 32px 0 0; }
  .blog__header, .blog__row { width: 100%; }
  .blog__header { flex-direction: column; align-items: flex-start; gap: 16px; height: auto; }
  .blog__header h2 { width: 100%; }
  .blog__row { flex-direction: column; height: auto; gap: 16px; }
  .article { width: 100%; height: auto; }
}

/* ---- Final CTA + footer reflow (<=900) ---- */
@media (max-width: 900px) {
  .cta-final { height: auto; padding: 72px 24px; align-items: center; }
  .cta-final__title { width: 100%; font-size: clamp(30px, 5.5vw, 54px); }
  .cta-final__sub { width: 100%; max-width: 640px; }
  .foot-inner { width: 100%; padding: 0 24px; }
  .foot-divider { width: 100%; }
}
@media (max-width: 760px) {
  .footer-grid { display: none; }
  .foot-top { flex-wrap: wrap; gap: 32px; }
  .blurb-col { width: 100%; }
  .fcol { width: 40%; }
  .foot-bot { flex-direction: column; gap: 8px; align-items: flex-start; white-space: normal; }
}

/* ---- Tablet type + spacing (<=820) ---- */
@media (max-width: 820px) {
  .hero { padding: 84px 16px 48px; }
  .hero__title { font-size: 44px; white-space: normal; letter-spacing: -1.2px; }
  .hero__sub { width: 100%; max-width: 92vw; }
  .reviews__head h2 { font-size: clamp(28px, 6vw, 42px); }
  .cta-band__title { font-size: clamp(26px, 5vw, 42px); }
}

/* ---- Mobile (<=600) ---- */
@media (max-width: 600px) {
  .hero { padding: 64px 16px 40px; gap: 32px; }
  .hero__title { font-size: 32px; letter-spacing: -0.8px; }
  .hero__sub { font-size: 16px; }
  .hero__cta { height: auto; flex-direction: column; width: 100%; max-width: 320px; }
  .hero__cta .btn { width: 100%; }
  .stats__grid { flex-direction: column; gap: 16px; }
  .stat-card { flex: 1 1 100%; }
  .story__head .h2 { font-size: 30px; }
  .panel__copy .h2 { font-size: 28px; letter-spacing: -0.7px; }
  .visual-route, .visual-map, .visual-analytics { zoom: .84; }
  .reviews { padding: 44px 0 48px; }
  .review { width: 280px; }
  .fcol { width: 100%; }
  .blog__header h2 { font-size: 24px; }
}
@media (max-width: 400px) {
  .visual-route, .visual-map, .visual-analytics { zoom: .66; }
  .hero__title { font-size: 28px; }
}

/* ---- Small-screen text wrapping / anti-clip fixes ---- */
@media (max-width: 900px) {
  .hero__in, .hero__copy { width: 100%; max-width: 100%; }
  .hero__title { white-space: normal; overflow-wrap: break-word; }
  .cta-final__title, .cta-band__title, .h2, .reviews__head h2,
  .article__title, .review__text, .industry-card__title { overflow-wrap: break-word; }
}
@media (max-width: 600px) {
  .stats__eyebrow { white-space: normal; letter-spacing: 1.2px; font-size: 12px; line-height: 1.4; }
  .reviews__head { white-space: normal; }
}

/* injected internal links (industry cards + related posts) keep text styling */
.industry-card__title a, .article__title a { color: inherit; text-decoration: none; }

/* footer legal links + app buttons (now anchors) */
.foot-legal a { color: #7c7f8a; text-decoration: none; }
.appbtn { text-decoration: none; }
