/* ============ ZenDMS — Modern Redesign Styles ============ */

:root {
  /* Brand palette — Zen Teal + Deep Ink + Warm Accent */
  --ink-950: #0A0309;
  --ink-900: #16070F;
  --ink-800: #251019;
  --ink-700: #3B1A26;
  --ink-600: #54283A;

  --paper: #FFFFFF;
  --paper-warm: #FAFAF7;
  --paper-cool: #F4F6FA;
  --line: #E5E8EF;
  --line-soft: #EEF1F6;

  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;

  /* Brand — Coral + Burgundy (from ZenDMS logo) */
  --teal-50:  #FDF1EC;
  --teal-100: #F8DDD2;
  --teal-300: #F3B69E;
  --teal-400: #F09877;
  --teal-500: #EE8B6B;   /* coral — primary accent */
  --teal-600: #B23A4C;   /* burgundy-coral bridge */
  --teal-700: #5A1230;   /* burgundy — deep brand ink */
  --teal-800: #3B0B20;

  /* Warm accent */
  --amber-400: #F4B860;
  --coral-500: #EE8B6B;
  --burgundy-700: #5A1230;
  --burgundy-900: #2A0613;

  /* Semantic */
  --bg: var(--paper);
  --fg: var(--ink-900);
  --muted: var(--slate-500);
  --brand: var(--teal-500);
  --brand-ink: var(--teal-700);

  /* Type */
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Plus Jakarta Sans", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ===== Type scale ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, transparent);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.04; font-weight: 600; text-wrap: balance; }
.h-display {
  font-size: clamp(40px, 6.4vw, 84px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-weight: 500;
}
.h-display .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.h-section {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 500;
}
.h-section .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--slate-500);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "cv01";
  letter-spacing: -0.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-900);
  color: white;
}
.btn-primary:hover { background: var(--ink-700); transform: translateY(-1px); }
.btn-brand {
  background: var(--brand);
  color: white;
}
.btn-brand:hover { background: var(--teal-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  padding-inline: 4px;
}
.btn-ghost:hover { color: var(--brand-ink); }
.btn-outline {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-900);
}
.btn-outline:hover { border-color: var(--ink-900); }
.btn .arrow {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Top nav ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1200px, calc(100% - 32px));
  background: color-mix(in oklab, white 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: box-shadow .3s ease, transform .3s ease, padding .3s ease;
  overflow: hidden;
}
.nav.scrolled {
  box-shadow: 0 10px 40px -16px rgba(11, 18, 32, 0.18);
  padding: 8px 10px 8px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.mobile-sheet .brand-mark,
.footer .brand-mark,
.cta .brand-mark {
  background: white;
  border-radius: 8px;
  padding: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-700);
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover,
.nav-link[aria-expanded="true"] { background: var(--paper-cool); color: var(--ink-900); }
.nav-link.active {
  color: var(--ink-900);
  background: color-mix(in oklab, var(--teal-500) 10%, transparent);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 4px; height: 4px;
  background: var(--brand);
  border-radius: 99px;
  transform: translateX(-50%);
}
.nav-link .caret { transition: transform .25s ease; opacity: .7; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Sign-in button — subtle outline in nav-cta */
.btn-signin {
  background: transparent;
  color: var(--ink-900);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-signin:hover {
  background: var(--paper-cool);
  border-color: var(--line);
}
@media (max-width: 920px) { .btn-signin { display: none; } }

/* Mega menu — differentiated icon colours per category card */
.mega-items .mega-item:nth-child(1) .mega-ico { background: var(--teal-50); color: var(--teal-700); }
.mega-items .mega-item:nth-child(2) .mega-ico { background: #FEF3C7; color: #92400E; }
.mega-items .mega-item:nth-child(3) .mega-ico {
  background: color-mix(in oklab, var(--coral-500) 16%, white);
  color: var(--coral-500);
}
.mega-items .mega-item:nth-child(4) .mega-ico {
  background: color-mix(in oklab, var(--ink-900) 8%, white);
  color: var(--ink-900);
}

/* Scroll-progress bar inside nav top edge */
.nav::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(to right, var(--teal-500), var(--teal-700));
  border-radius: 99px;
  transition: width 0.05s linear;
  opacity: 0;
}
.nav.scrolled::after { opacity: 1; }

/* Mobile sheet section header — groups links visually */
.ms-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.42);
  font-weight: 700;
  margin: 24px 0 -4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-sheet > .ms-section:first-of-type {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0;
}

/* Mega menu */
.mega-wrap {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(1080px, calc(100% - 32px));
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.mega-wrap[data-active] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega {
  display: none;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.22),
              0 12px 24px -16px rgba(15, 23, 42, 0.12);
}
.mega-wrap[data-active="solutions"]  .mega[data-menu="solutions"],
.mega-wrap[data-active="industries"] .mega[data-menu="industries"],
.mega-wrap[data-active="features"]   .mega[data-menu="features"] {
  display: block;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.mega-col { display: flex; flex-direction: column; gap: 14px; }
.mega-head {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-weight: 600;
}
.mega-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  transition: background .2s ease;
  align-items: flex-start;
}
.mega-item:hover { background: var(--paper-cool); }
.mega-item .mega-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mega-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.mega-item p {
  margin: 0;
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.45;
}

.mega-feature {
  background: var(--paper-warm);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-feature .mega-tag {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--teal-700);
  font-weight: 700;
}
.mega-feature .mega-feature-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.mega-feature p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--slate-500);
  line-height: 1.5;
}
.mega-feature .btn { padding: 10px 16px; font-size: 13.5px; }

@media (max-width: 920px) {
  .mega-wrap { display: none !important; }
}
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { padding: 10px 16px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 99px;
  background: var(--ink-900);
  color: white;
  align-items: center;
  justify-content: center;
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  background: var(--ink-900);
  color: white;
  z-index: 60;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.mobile-sheet.open { transform: translateY(0); }
.mobile-sheet .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mobile-sheet a {
  display: block;
  padding: 18px 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-sheet .close {
  width: 40px; height: 40px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  color: white;
}
.mobile-sheet-cta {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 24px;
}

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, color-mix(in oklab, var(--teal-400) 32%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 30%, color-mix(in oklab, var(--teal-700) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--paper-warm), white 60%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 99px;
  font-size: 13px;
  color: var(--slate-700);
  margin-bottom: 24px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
}
.hero-pill .tag {
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.hero-pill .dot {
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 99px;
  position: relative;
}
.hero-pill .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 99px;
  background: var(--teal-500);
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 strong { font-weight: 600; }
.hero p.lede { margin-bottom: 32px; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-meta .stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--ink-900);
}
.hero-meta .stat-label {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 6px;
}

/* ===== Hero visual: dashboard mock ===== */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin-left: auto;
}
@media (max-width: 1024px) {
  .hero-visual { margin: 0 auto; }
}

.dash {
  position: absolute;
  inset: 0;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 24px 60px -28px rgba(15, 23, 42, 0.22),
    0 8px 20px -12px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-1.5deg);
}
.dash-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: var(--paper-warm);
}
.dash-head .dots { display: flex; gap: 6px; }
.dash-head .dots span {
  width: 10px; height: 10px; border-radius: 99px; background: var(--line);
}
.dash-head .crumb {
  margin-left: 6px;
  display: flex; align-items: center; gap: 6px;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.dash-head .crumb b { color: var(--ink-900); font-weight: 600; }
.dash-head .live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 600;
}
.dash-head .live::before {
  content: ""; width: 6px; height: 6px; background: var(--teal-500); border-radius: 99px;
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.dash-body { flex: 1; padding: 18px; display: grid; gap: 12px; grid-template-rows: auto 1fr auto; }
.dash-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}

/* Stage tabs */
.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: white;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
  justify-content: center;
}
.stage .dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--slate-300);
}
.stage.active {
  background: var(--teal-50);
  border-color: color-mix(in oklab, var(--teal-500) 30%, transparent);
  color: var(--teal-700);
}
.stage.active .dot {
  background: var(--teal-500);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal-500) 20%, transparent);
}
.kpi {
  background: var(--paper-warm);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
}
.kpi .label { font-size: 10.5px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em; }
.kpi .value { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.kpi .delta { font-size: 10.5px; color: var(--teal-700); font-family: var(--font-mono); }
.kpi .delta.down { color: var(--coral-500); }

.dash-map {
  position: relative;
  background:
    radial-gradient(120% 80% at 80% 10%, color-mix(in oklab, var(--teal-100) 60%, transparent), transparent 60%),
    var(--paper-cool);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.dash-map svg { width: 100%; height: 100%; }

.route-path {
  fill: none;
  stroke: var(--teal-500);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  animation: dash 2.5s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -120; }
}
.route-pin {
  fill: var(--ink-900);
}
.truck {
  animation: drive 6s ease-in-out infinite;
}
@keyframes drive {
  0%, 100% { offset-distance: 0%; }
  50%      { offset-distance: 100%; }
}

.dash-rows {
  display: grid; gap: 6px;
}
.dash-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  font-size: 12px;
}
.dash-row .badge {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
}
.dash-row .meta { color: var(--slate-500); font-size: 11px; }
.dash-row .eta { font-family: var(--font-mono); color: var(--ink-900); font-weight: 600; }
.dash-row .pill {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 600;
}
.dash-row .pill.amber { background: #FEF3C7; color: #92400E; }

/* Floating cards behind dash */
.float-card {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.25);
  font-size: 12.5px;
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.float-card .ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  background: var(--ink-900);
}
.float-card.tl { top: -14px; left: -28px; transform: rotate(-3deg); animation: floaty 6s ease-in-out infinite; }
.float-card.br { bottom: -10px; right: -34px; transform: rotate(2deg); animation: floaty 7s ease-in-out -2s infinite; }
.float-card.ml { top: 48%; left: -50px; transform: rotate(-4deg); animation: floaty 8s ease-in-out -1s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0)); }
  50% { transform: translateY(-6px) rotate(var(--r, 0)); }
}
.float-card .ico.teal { background: var(--teal-600); }
.float-card .ico.amber { background: var(--amber-400); color: var(--ink-900); }
.float-card .ico.coral { background: var(--coral-500); }

@media (max-width: 640px) {
  .float-card.tl, .float-card.ml { display: none; }
}

/* ===== Logos marquee ===== */
.logos {
  padding: 56px 0;
  border-block: 1px solid var(--line-soft);
  background: var(--paper-warm);
}
.logos .label {
  text-align: center;
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: scroll 40s linear infinite;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--slate-400);
  opacity: 0.85;
  white-space: nowrap;
}
.logo-item .dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: currentColor; opacity: 0.5;
}

/* ===== Section base ===== */
section {
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
}
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 44px;
  max-width: 760px;
}
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.row {
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: none;
}
@media (max-width: 720px) {
  .section-head.row { grid-template-columns: 1fr; }
}

/* ===== Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .4s ease, box-shadow .4s ease, border-color .3s;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.2);
  border-color: var(--ink-900);
}
.pillar h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 500; }
.pillar p { color: var(--slate-500); font-size: 15px; margin: 0; }
.pillar .visual {
  margin-top: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: var(--paper-cool);
  border: 1px solid var(--line-soft);
}
.pillar .pill-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
}

/* Pillar 1: AI nodes */
.viz-ai {
  background:
    radial-gradient(60% 60% at 50% 50%, color-mix(in oklab, var(--teal-100) 60%, transparent), transparent),
    var(--paper-cool);
}
.viz-ai .node {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal-500) 20%, transparent);
}
.viz-ai .line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal-500), transparent);
  opacity: 0.6;
  transform-origin: left;
}

/* Pillar 2: Automation flow */
.viz-auto {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px;
  gap: 8px;
}
.viz-auto .step {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-500);
  position: relative;
}
.viz-auto .step.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}
.viz-auto .arrow {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line), var(--ink-900));
  position: relative;
}
.viz-auto .arrow::after {
  content: "";
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 6px; height: 6px;
  border-right: 2px solid var(--ink-900);
  border-bottom: 2px solid var(--ink-900);
}

/* Pillar 3: IoT signal */
.viz-iot {
  background:
    radial-gradient(circle at 30% 60%, color-mix(in oklab, var(--amber-400) 28%, transparent), transparent 50%),
    var(--paper-cool);
}
.viz-iot .truck-ic {
  position: absolute;
  bottom: 22%;
  left: 22%;
  width: 56px; height: 32px;
  background: var(--ink-900);
  border-radius: 6px 12px 4px 4px;
  position: absolute;
}
.viz-iot .truck-ic::before {
  content: "";
  position: absolute;
  left: 8px; bottom: -6px;
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--ink-900);
  box-shadow: 28px 0 var(--ink-900);
}
.viz-iot .ring {
  position: absolute;
  top: 30%; right: 22%;
  width: 24px; height: 24px;
  border-radius: 99px;
  background: var(--teal-500);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--teal-500) 25%, transparent),
              0 0 0 16px color-mix(in oklab, var(--teal-500) 12%, transparent);
}
.viz-iot .signal {
  position: absolute;
  top: 20%; right: 16%;
  width: 80px; height: 80px;
  border-radius: 99px;
  border: 2px solid var(--teal-500);
  opacity: 0;
  animation: ring 2.5s ease-out infinite;
}
.viz-iot .signal:nth-child(2) { animation-delay: 0.8s; }
@keyframes ring {
  0% { transform: scale(0.4); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== Platform showcase ===== */
.platform {
  background: var(--ink-900);
  color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

/* Platform tabs */
.platform-tabs {
  display: flex;
  gap: 6px;
  padding: 18px clamp(20px, 4vw, 40px) 0;
  background: var(--ink-900);
}
.ptab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: transparent;
  color: color-mix(in oklab, white 55%, transparent);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all .25s ease;
  position: relative;
  cursor: pointer;
}
.ptab:hover { color: white; background: color-mix(in oklab, white 4%, transparent); }
.ptab.active {
  background: color-mix(in oklab, white 8%, transparent);
  color: white;
}
.ptab.active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  bottom: 8px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
}
.ptab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 99px;
  background: color-mix(in oklab, white 6%, transparent);
  letter-spacing: 0.04em;
}
.ptab.active .ptab-num { background: var(--teal-500); color: white; }

/* Tab content */
.ptab-pane { position: relative; }
.ptab-content {
  display: none;
  animation: fadeUp .35s ease;
}
.ptab-content.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ptab-h {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: white;
  text-wrap: balance;
}
.ptab-p {
  font-size: 16px;
  color: color-mix(in oklab, white 70%, transparent);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 52ch;
}

@media (max-width: 720px) {
  .platform-tabs { flex-direction: column; padding-bottom: 0; }
  .ptab { padding: 12px 14px; }
  .ptab.active::after { left: 14px; right: auto; width: 28px; bottom: 4px; }
}
.platform .platform-inner {
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .platform .platform-inner { grid-template-columns: 1fr; }
}
.platform h2 { color: white; }
.platform .eyebrow { color: var(--teal-300); }
.platform .eyebrow::before { background: var(--teal-400); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal-400) 20%, transparent); }
.platform .lede { color: color-mix(in oklab, white 70%, transparent); max-width: 50ch; }

.platform-feats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid; gap: 12px;
}
.platform-feats li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: color-mix(in oklab, white 85%, transparent);
}
.platform-feats li .check {
  width: 22px; height: 22px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--teal-400) 22%, transparent);
  color: var(--teal-300);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Platform visual: shipment lifecycle */
.lifecycle {
  position: relative;
  background:
    radial-gradient(60% 50% at 20% 0%, color-mix(in oklab, var(--teal-500) 18%, transparent), transparent),
    color-mix(in oklab, white 4%, var(--ink-900));
  border: 1px solid color-mix(in oklab, white 8%, transparent);
  border-radius: var(--radius-lg);
  padding: 28px;
  aspect-ratio: 4 / 5;
  max-width: 540px;
  margin-left: auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}
@media (max-width: 980px) { .lifecycle { margin: 0 auto; } }

.lifecycle-head {
  display: flex; justify-content: space-between; align-items: center;
}
.lifecycle-head .ship-id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: color-mix(in oklab, white 60%, transparent);
}
.lifecycle-head .ship-id b { color: white; }
.lifecycle-head .status {
  background: color-mix(in oklab, var(--teal-400) 16%, transparent);
  color: var(--teal-300);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.lifecycle-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--teal-400);
  animation: blink 1.4s infinite;
}

.lifecycle-steps {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.lifecycle-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: color-mix(in oklab, white 4%, transparent);
  border: 1px solid color-mix(in oklab, white 6%, transparent);
}
.lifecycle-step.done {
  background: color-mix(in oklab, var(--teal-400) 10%, transparent);
  border-color: color-mix(in oklab, var(--teal-400) 30%, transparent);
}
.lifecycle-step.active {
  background: color-mix(in oklab, white 8%, transparent);
  border-color: color-mix(in oklab, white 18%, transparent);
}
.lifecycle-step .num {
  width: 32px; height: 32px;
  border-radius: 99px;
  background: color-mix(in oklab, white 8%, transparent);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: color-mix(in oklab, white 70%, transparent);
}
.lifecycle-step.done .num { background: var(--teal-500); color: var(--ink-900); }
.lifecycle-step.active .num { background: white; color: var(--ink-900); }
.lifecycle-step .name { font-weight: 600; font-size: 15px; }
.lifecycle-step .time { font-family: var(--font-mono); font-size: 12px; color: color-mix(in oklab, white 50%, transparent); }
.lifecycle-step .info { font-size: 12px; color: color-mix(in oklab, white 50%, transparent); margin-top: 2px; }

/* ===== Integrations bento ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
.bento .card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.bento .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.2);
}
.bento .card h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.bento .card p { color: var(--slate-500); font-size: 14.5px; margin: 8px 0 0; }
.bento .card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bento .card .top .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.bento .card .top .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bento .b-wide { grid-column: span 4; }
.bento .b-3   { grid-column: span 3; }
.bento .b-2   { grid-column: span 2; }
.bento .b-full { grid-column: span 6; }

@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-wide, .bento .b-3, .bento .b-2, .bento .b-full { grid-column: span 2; }
}

/* Bento visuals */
.b-viz {
  margin-top: auto;
  aspect-ratio: 16/8;
  border-radius: var(--radius);
  background: var(--paper-cool);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.viz-routes svg { width: 100%; height: 100%; }
.viz-routes .r-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.viz-routes .r-1 { stroke: var(--teal-500); }
.viz-routes .r-2 { stroke: var(--ink-900); stroke-dasharray: 4 4; }
.viz-routes .pin { fill: var(--ink-900); }
.viz-routes .pin.brand { fill: var(--teal-500); }

.viz-temp {
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 18px;
  height: 100%;
}
.viz-temp .bar {
  flex: 1;
  background: linear-gradient(to top, var(--teal-500), var(--teal-300));
  border-radius: 4px 4px 0 0;
  transition: height .6s ease;
}
.viz-temp .bar.warn { background: linear-gradient(to top, var(--coral-500), var(--amber-400)); }

.viz-driver {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 16px;
}
.viz-driver .phone {
  width: 100px;
  height: 130px;
  background: var(--ink-900);
  border-radius: 16px;
  padding: 8px;
  position: relative;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,0.4);
}
.viz-driver .phone .screen {
  background: white;
  height: 100%;
  border-radius: 8px;
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.viz-driver .phone .screen .row {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}
.viz-driver .phone .screen .row.brand { background: var(--teal-500); width: 70%; }
.viz-driver .phone .screen .row.dark { background: var(--ink-900); width: 50%; }

.viz-analytics svg { width: 100%; height: 100%; padding: 8px; }

.viz-eta {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-mono);
  position: relative;
}
.viz-eta .num {
  font-size: 56px;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  font-weight: 600;
}
.viz-eta .num .small { font-size: 28px; color: var(--slate-500); }
.viz-eta .label { font-size: 11px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em; }

.viz-pod {
  padding: 18px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.viz-pod .img-cell {
  background:
    linear-gradient(135deg, var(--paper-cool), var(--line-soft));
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.viz-pod .img-cell::after {
  content: "";
  position: absolute;
  inset: 30%;
  border: 1.5px solid var(--slate-400);
  border-radius: 4px;
}
.viz-pod .img-cell.brand {
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
}
.viz-pod .img-cell.brand::after { border-color: var(--teal-600); }

/* Logos cell — for integration partner names */
.logos-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px;
  align-content: center;
  align-items: center;
}
.logos-cell span {
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

/* ===== Real-time tracking section ===== */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: 48px;
}
@media (max-width: 920px) {
  .track-grid { grid-template-columns: 1fr; }
}

.track-features { display: grid; gap: 6px; }
.track-feat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  transition: background .25s ease;
}
.track-feat:hover { background: var(--paper-cool); }
.track-feat .track-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.track-feat h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.track-feat p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14.5px;
  line-height: 1.5;
}

.track-visual { display: grid; place-items: center; }
.track-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow:
    0 30px 60px -34px rgba(15, 23, 42, 0.18),
    0 8px 20px -14px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 560px;
  display: flex; flex-direction: column; gap: 14px;
}
.track-head {
  display: flex; justify-content: space-between; align-items: center;
}
.ship-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.track-pill {
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 6px;
}
.track-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--teal-500);
  animation: blink 1.4s infinite;
}
.track-eta { font-size: 13px; color: var(--slate-500); }
.track-eta b { font-weight: 600; color: var(--ink-900); margin-left: 4px; }
.track-map {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--paper-cool);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.track-map svg { width: 100%; height: 100%; }
.track-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.track-stat .ts-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate-400); font-weight: 600;
}
.track-stat .ts-val {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900);
  margin-top: 4px;
}
.track-stat .ts-val span { font-size: 12px; color: var(--slate-500); font-weight: 500; margin-left: 4px; }

/* Track sub-features */
.track-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 920px) { .track-subgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .track-subgrid { grid-template-columns: 1fr; } }

.track-sub {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: all .25s ease;
}
.track-sub:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
}
.track-sub .track-sub-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.track-sub strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.track-sub p {
  margin: 0;
  color: var(--slate-500);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ===== Scheduling section ===== */
.scheduling-section {
  background: var(--paper-warm);
}

.sched-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 920px) {
  .sched-grid { grid-template-columns: 1fr; }
}

.sched-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow:
    0 30px 60px -34px rgba(15, 23, 42, 0.18),
    0 8px 20px -14px rgba(15, 23, 42, 0.08);
}
.sched-head {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.sched-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.sched-sub { font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.sched-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--teal-50); color: var(--teal-700);
  padding: 4px 10px; border-radius: 99px;
}
.sched-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--teal-500);
  animation: blink 1.4s infinite;
}
.sched-board {
  display: grid; gap: 10px;
}
.sched-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: var(--paper-cool);
}
.sched-driver {
  display: flex; gap: 10px; align-items: center;
}
.sched-avatar {
  width: 32px; height: 32px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  color: white;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sched-name { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.sched-meta { font-size: 10.5px; color: var(--slate-500); }
.sched-track {
  position: relative;
  height: 22px;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.sched-slot {
  position: absolute;
  top: 3px; bottom: 3px;
  border-radius: 4px;
  background: var(--teal-300);
}
.sched-slot.done   { background: var(--teal-500); }
.sched-slot.active { background: var(--ink-900); box-shadow: 0 0 0 2px color-mix(in oklab, var(--ink-900) 18%, transparent); }
.sched-slot.warn   { background: var(--coral-500); }
.sched-axis {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--slate-400);
  padding: 0 8px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.sched-features { display: grid; gap: 12px; }
.sched-feat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  transition: all .25s ease;
}
.sched-feat:hover {
  border-color: var(--ink-900);
  transform: translateX(2px);
}
.sched-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 6px 10px; border-radius: 99px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.sched-feat h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.sched-feat p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.5;
}

.sched-benefits {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .sched-benefits { grid-template-columns: repeat(2, 1fr); } }

.sched-benefits > div {
  padding: 28px 24px;
  border-right: 1px solid var(--line-soft);
}
.sched-benefits > div:last-child { border-right: 0; }
@media (max-width: 720px) {
  .sched-benefits > div:nth-child(2) { border-right: 0; }
  .sched-benefits > div { border-bottom: 1px solid var(--line-soft); }
  .sched-benefits > div:nth-last-child(-n+2) { border-bottom: 0; }
}

.sb-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.sb-num span {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 2px;
}
.sb-label {
  font-size: 13.5px;
  color: var(--slate-500);
  margin-top: 12px;
  max-width: 22ch;
}

/* ===== Comparison table ===== */
.cmp-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}
.cmp-table { width: 100%; }
.cmp-head, .cmp-row {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.3fr;
  gap: 24px;
  padding: 18px 28px;
  align-items: center;
}
.cmp-head {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--slate-500);
}
.cmp-head span:nth-child(2) { color: var(--teal-700); }
.cmp-row { border-bottom: 1px solid var(--line-soft); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-cap {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.cmp-cell {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--slate-700);
  display: flex; gap: 10px; align-items: flex-start;
}
.cmp-cell::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 99px;
  display: inline-grid; place-items: center;
  margin-top: 1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60% 60%;
}
.cmp-cell.yes::before {
  background-color: var(--teal-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>");
}
.cmp-cell.no::before {
  background-color: color-mix(in oklab, var(--coral-500) 18%, white);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6 6 18M6 6l12 12'/></svg>");
}

@media (max-width: 760px) {
  .cmp-head { display: none; }
  .cmp-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }
  .cmp-cap {
    font-size: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-soft);
  }
}

/* ===== Stats ===== */
.stats {
  background: var(--paper-warm);
  position: relative;
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stats .stats-6 {
  grid-template-columns: repeat(3, 1fr);
}
.stats .cell .label-strong {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-top: 14px;
}
.stats .cell .label-strong + .label {
  margin-top: 6px;
}
.stats .cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 28px;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.stats .cell .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  font-weight: 400;
}
.stats .cell .num .unit {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 2px;
}
.stats .cell .label {
  font-size: 14px;
  color: var(--slate-500);
  margin-top: 16px;
  max-width: 22ch;
}
@media (max-width: 920px) {
  .stats .grid, .stats .stats-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Industries ===== */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .industries { grid-template-columns: 1fr; } }

.industry {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 5/6;
  background: var(--ink-900);
  color: white;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  cursor: pointer;
  transition: transform .4s ease;
}
.industry:hover { transform: translateY(-4px); }
.industry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 10, 20, 0.95));
  z-index: 1;
}
.industry .scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.industry .scene svg {
  width: 100%; height: 100%;
}
.industry .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: color-mix(in oklab, white 50%, transparent);
  margin-bottom: 8px;
  position: relative; z-index: 2;
}
.industry h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 500;
  position: relative; z-index: 2;
  margin-bottom: 8px;
}
.industry p {
  font-size: 14px;
  color: color-mix(in oklab, white 70%, transparent);
  position: relative; z-index: 2;
  margin: 0;
}
.industry .chip {
  position: absolute;
  top: 22px; right: 22px;
  background: color-mix(in oklab, white 12%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklab, white 18%, transparent);
  color: white;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.industries.industries-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .industries.industries-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .industries.industries-4 { grid-template-columns: 1fr; }
}

/* ===== Other solutions ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .solutions-grid { grid-template-columns: 1fr; } }

.solution-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
  position: relative;
}
.solution-card:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.18);
}
.solution-card .sol-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.solution-card .sol-body h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.solution-card .sol-body p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14.5px;
  line-height: 1.55;
}
.solution-card .sol-arrow {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: var(--paper-cool);
  color: var(--ink-900);
  display: grid; place-items: center;
  transition: transform .25s ease, background .25s ease;
}
.solution-card:hover .sol-arrow {
  background: var(--ink-900);
  color: white;
  transform: rotate(-8deg);
}
.testimonial {
  background: var(--ink-900);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -60px; left: -20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 360px;
  color: color-mix(in oklab, white 6%, transparent);
  line-height: 1;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
  max-width: 24ch;
}
.testimonial .attrib {
  display: flex; gap: 14px; align-items: center;
}
.testimonial .attrib .avatar {
  width: 48px; height: 48px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700));
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.testimonial .attrib .name { font-weight: 600; }
.testimonial .attrib .role { color: color-mix(in oklab, white 60%, transparent); font-size: 14px; }

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 920px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 99px;
  background: var(--paper-cool);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .25s;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--ink-900);
  border-radius: 99px;
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; transition: transform .25s; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 16px 0 4px;
  color: var(--slate-500);
  font-size: 15.5px;
  max-width: 60ch;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-q .plus { background: var(--ink-900); }
.faq-item.open .faq-q .plus::before { background: white; }
.faq-item.open .faq-q .plus::after { background: white; transform: rotate(90deg); }

/* ===== CTA ===== */
.cta {
  background: var(--ink-900);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--teal-400) 40%, transparent), transparent 60%);
  filter: blur(40px);
}
.cta::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -20%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--amber-400) 20%, transparent), transparent 60%);
  filter: blur(40px);
}
.cta h2 { color: white; max-width: 18ch; margin: 0 auto; position: relative; z-index: 2; }
.cta .lede { color: color-mix(in oklab, white 70%, transparent); margin: 22px auto 32px; max-width: 50ch; position: relative; z-index: 2; }
.cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta .btn-outline { background: transparent; color: white; border-color: color-mix(in oklab, white 20%, transparent); }
.cta .btn-outline:hover { border-color: white; }

/* ===== Footer ===== */
.footer {
  padding: 80px 0 40px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.footer ul a:hover { color: var(--brand); }

.footer-brand { max-width: 320px; }
.footer-brand p {
  color: var(--slate-500);
  font-size: 14.5px;
  margin: 14px 0 20px;
}
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--slate-500);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: white;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-900);
  transition: all .2s;
}
.socials a:hover { background: var(--ink-900); color: white; border-color: var(--ink-900); }

/* ISO badge */
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 8px 14px 8px 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.iso-ring {
  width: 56px; height: 56px;
  border-radius: 99px;
  background:
    radial-gradient(circle at 50% 30%, #2563EB 0%, #1D4ED8 70%);
  color: white;
  display: grid; place-items: center;
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
}
.iso-ring .iso-iso {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}
.iso-ring .iso-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: block;
}
.iso-ring .iso-num .iso-yr {
  font-size: 8px;
  opacity: 0.85;
}
.iso-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--slate-500);
}

/* Contact list (with icons) */
.contact-list { display: grid; gap: 14px; }
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--slate-700);
}
.contact-list .contact-ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-list a:hover { color: var(--brand); }

.footer-bottom a { color: var(--slate-700); transition: color .2s; }
.footer-bottom a:hover { color: var(--brand); }

/* ===== Load Planning section ===== */
.load-section { background: white; }

.load-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 920px) { .load-grid { grid-template-columns: 1fr; } }

.load-features {
  display: grid;
  gap: 6px;
}
.load-feat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  align-items: start;
  transition: background .25s ease;
}
.load-feat:hover { background: var(--paper-cool); }
.load-feat .load-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 6px 10px;
  border-radius: 99px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.load-feat h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.load-feat p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Load visual: truck cross-section with cargo */
.load-visual {
  display: grid;
  place-items: center;
}
.load-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 18px;
  box-shadow:
    0 30px 60px -34px rgba(15, 23, 42, 0.18),
    0 8px 20px -14px rgba(15, 23, 42, 0.08);
}
.load-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.load-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.load-sub { font-size: 11.5px; color: var(--slate-500); margin-top: 2px; }
.load-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 4px 10px;
  border-radius: 99px;
}
.load-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--teal-500);
}

.load-truck {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(15,23,42,0.04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(15,23,42,0.04) 0 1px, transparent 1px 28px),
    var(--paper-cool);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  padding: 16px;
}
.load-truck svg { width: 100%; height: 100%; }

.load-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.load-gauge {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper-warm);
}
.load-gauge .lg-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  font-weight: 600;
}
.load-gauge .lg-bar {
  margin-top: 8px;
  height: 6px;
  background: white;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.load-gauge .lg-fill {
  height: 100%;
  background: linear-gradient(to right, var(--teal-500), var(--teal-600));
  border-radius: 99px;
}
.load-gauge .lg-val {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.load-gauge.warn .lg-fill {
  background: linear-gradient(to right, var(--amber-400), var(--coral-500));
}

/* ===== Proof of Delivery section ===== */
.pod-section {
  background: var(--ink-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.pod-section::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--teal-500) 22%, transparent), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.pod-section .eyebrow { color: var(--teal-300); }
.pod-section .eyebrow::before {
  background: var(--teal-400);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal-400) 20%, transparent);
}
.pod-section .h-section { color: white; }
.pod-section .lede { color: color-mix(in oklab, white 70%, transparent); }

.pod-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 920px) { .pod-grid { grid-template-columns: 1fr; } }

/* Phone mockup stack */
.pod-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.pod-phone {
  position: absolute;
  width: 240px;
  background: var(--ink-950);
  border-radius: 28px;
  padding: 10px;
  border: 1px solid color-mix(in oklab, white 14%, transparent);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.pod-phone .pod-screen {
  background: white;
  border-radius: 20px;
  padding: 18px 14px 14px;
  display: grid;
  gap: 10px;
  min-height: 380px;
}
.pod-phone .pod-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate-500);
  padding-bottom: 4px;
}
.pod-phone .pod-bar .dots {
  display: inline-flex; gap: 3px;
}
.pod-phone .pod-bar .dots span {
  width: 4px; height: 4px; border-radius: 99px; background: var(--slate-400);
}
.pod-phone .pod-bar .dots span:last-child { background: var(--teal-500); }
.pod-phone .pod-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.pod-phone .pod-meta {
  font-size: 10.5px;
  color: var(--slate-500);
  font-family: var(--font-mono);
}

/* Phone 1: signature */
.pod-phone-1 {
  left: 4%;
  top: 4%;
  transform: rotate(-7deg);
  z-index: 2;
}
.pod-sig-area {
  margin-top: 4px;
  background: var(--paper-cool);
  border: 1px dashed var(--slate-300);
  border-radius: 10px;
  height: 130px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.pod-sig-area svg {
  width: 70%;
  height: auto;
}
.pod-sig-area .pod-sig-label {
  position: absolute;
  bottom: 8px; left: 10px;
  font-size: 9px;
  color: var(--slate-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.pod-otp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pod-otp .pod-otp-cell {
  aspect-ratio: 1;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}
.pod-otp .pod-otp-cell.filled {
  background: var(--teal-50);
  border-color: var(--teal-500);
  color: var(--teal-700);
}

/* Phone 2: photo + verified */
.pod-phone-2 {
  right: 4%;
  bottom: 4%;
  transform: rotate(6deg);
  z-index: 3;
}
.pod-photo {
  margin-top: 4px;
  border-radius: 10px;
  height: 150px;
  background:
    linear-gradient(135deg, var(--teal-100), var(--teal-50)),
    var(--paper-cool);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pod-photo .pod-box {
  width: 70%;
  height: 65%;
  background: white;
  border: 2px solid var(--teal-600);
  border-radius: 6px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(90,18,48,0.25);
  position: relative;
}
.pod-photo .pod-box::before, .pod-photo .pod-box::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--coral-500);
}
.pod-photo .pod-box::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.pod-photo .pod-box::after  { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.pod-photo .pod-tag {
  position: absolute;
  bottom: 8px; right: 8px;
  background: var(--ink-900);
  color: white;
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}
.pod-verified {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--teal-50);
  border-radius: 8px;
}
.pod-verified .pod-check {
  width: 22px; height: 22px;
  border-radius: 99px;
  background: var(--teal-600);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pod-verified-text {
  font-size: 11.5px;
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.3;
}
.pod-verified-meta {
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--slate-500);
  margin-top: 2px;
}

/* POD features grid */
.pod-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 28px;
}
@media (max-width: 560px) { .pod-features { grid-template-columns: 1fr; } }
.pod-feat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: color-mix(in oklab, white 4%, transparent);
  border: 1px solid color-mix(in oklab, white 8%, transparent);
  transition: all .25s ease;
}
.pod-feat:hover {
  background: color-mix(in oklab, white 7%, transparent);
  border-color: color-mix(in oklab, var(--teal-400) 30%, transparent);
}
.pod-feat .pod-feat-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--teal-400) 18%, transparent);
  color: var(--teal-300);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pod-feat strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 3px;
}
.pod-feat p {
  margin: 0;
  font-size: 12.5px;
  color: color-mix(in oklab, white 60%, transparent);
  line-height: 1.45;
}

/* POD benefit strip */
.pod-bench {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid color-mix(in oklab, white 10%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in oklab, white 3%, transparent);
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .pod-bench { grid-template-columns: repeat(2, 1fr); } }
.pod-bench > div {
  padding: 22px 22px;
  border-right: 1px solid color-mix(in oklab, white 8%, transparent);
}
.pod-bench > div:last-child { border-right: 0; }
@media (max-width: 720px) {
  .pod-bench > div:nth-child(2) { border-right: 0; }
  .pod-bench > div { border-bottom: 1px solid color-mix(in oklab, white 8%, transparent); }
  .pod-bench > div:nth-last-child(-n+2) { border-bottom: 0; }
}
.pod-bench .pb-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: white;
  font-weight: 400;
}
.pod-bench .pb-num span {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 2px;
}
.pod-bench .pb-label {
  font-size: 12.5px;
  color: color-mix(in oklab, white 60%, transparent);
  margin-top: 12px;
  max-width: 22ch;
  line-height: 1.4;
}

/* ===== Sub-page hero (compact) ===== */
.subhero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, color-mix(in oklab, var(--teal-400) 28%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 30%, color-mix(in oklab, var(--teal-700) 10%, transparent), transparent 70%),
    linear-gradient(180deg, var(--paper-warm), white 60%);
  z-index: -1;
}
.subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent);
  z-index: -1;
}
.subhero .container { position: relative; }
.subhero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 1024px) { .subhero-grid { grid-template-columns: 1fr; } }
.subhero .h-display {
  font-size: clamp(36px, 5.2vw, 68px);
}
.bcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--slate-500);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bcrumb a { color: var(--slate-500); }
.bcrumb a:hover { color: var(--ink-900); }
.bcrumb .sep { color: var(--slate-300); }
.bcrumb .here { color: var(--teal-700); font-weight: 600; }

/* Feature grid generic (used by sub-pages) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.feat-card:hover {
  border-color: var(--ink-900);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.18);
}
.feat-card .feat-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feat-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.feat-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Reveal animation ===== */
/* ===== Word rotator (industries) ===== */
.word-rotate {
  display: inline-block;
  height: 1em;
  vertical-align: bottom;
  overflow: hidden;
  position: relative;
  line-height: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}
.word-rotate .wr-stack {
  display: flex;
  flex-direction: column;
  animation: word-flip 18s steps(1, end) infinite;
}
.word-rotate .wr-word {
  height: 1em;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
@keyframes word-flip {
  0%, 16.66% { transform: translateY(0); }
  16.67%, 33.33% { transform: translateY(-1em); }
  33.34%, 50% { transform: translateY(-2em); }
  50.01%, 66.66% { transform: translateY(-3em); }
  66.67%, 83.33% { transform: translateY(-4em); }
  83.34%, 100%  { transform: translateY(-5em); }
}
/* Smooth glide variant — overrides the stepped flip with a quick slide */
.word-rotate .wr-stack {
  animation: word-slide 18s cubic-bezier(.7,.05,.3,1) infinite;
}
@keyframes word-slide {
  0%, 12% { transform: translateY(0); }
  16.66% { transform: translateY(-1em); }
  16.67%, 28.66% { transform: translateY(-1em); }
  33.33% { transform: translateY(-2em); }
  33.34%, 45.33% { transform: translateY(-2em); }
  50%    { transform: translateY(-3em); }
  50.01%, 62% { transform: translateY(-3em); }
  66.66% { transform: translateY(-4em); }
  66.67%, 78.66% { transform: translateY(-4em); }
  83.33% { transform: translateY(-5em); }
  83.34%, 95.33% { transform: translateY(-5em); }
  100%   { transform: translateY(-6em); }
}

/* ===== 3D rotating globe (hero) ===== */
.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin-left: auto;
  perspective: 1600px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
@media (max-width: 1024px) { .globe-stage { margin: 0 auto; } }

/* Soft glow behind globe */
.globe-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--teal-400) 28%, transparent), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.globe-3d {
  width: 76%;
  height: 76%;
  position: relative;
  transform-style: preserve-3d;
  animation: globe-spin 32s linear infinite;
  transform: rotateX(-10deg);
}
@keyframes globe-spin {
  to { transform: rotateX(-10deg) rotateY(360deg); }
}

/* Meridian rings (longitude) — circles rotated around Y axis */
.globe-3d .mer {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in oklab, var(--teal-700) 30%, transparent);
  border-radius: 50%;
  transform: rotateY(var(--a));
  box-sizing: border-box;
}
.globe-3d .mer.thick {
  border-color: color-mix(in oklab, var(--teal-700) 55%, transparent);
  border-width: 1.5px;
}

/* Parallel rings (latitude) — flat circles tilted then offset vertically */
.globe-3d .par {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: var(--w);
  margin-left: calc(var(--w) / -2);
  margin-top:  calc(var(--w) / -2);
  border: 1px solid color-mix(in oklab, var(--teal-700) 22%, transparent);
  border-radius: 50%;
  transform: translateY(var(--y)) rotateX(85deg);
  box-sizing: border-box;
}
.globe-3d .par.eq {
  border-color: color-mix(in oklab, var(--teal-700) 45%, transparent);
  border-width: 1.5px;
}

/* Delivery pins on the surface */
.globe-3d .pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  margin: -5px;
  border-radius: 99px;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal-500) 30%, transparent);
  transform: rotateY(var(--lon)) rotateX(var(--lat)) translateZ(var(--r));
}
.globe-3d .pin.alt {
  background: var(--coral-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--coral-500) 28%, transparent);
}
.globe-3d .pin.warehouse {
  width: 14px; height: 14px;
  margin: -7px;
  background: var(--ink-900);
  border-radius: 3px;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink-900) 18%, transparent);
}

/* Orbital elements: package + truck on tilted orbits */
.globe-stage .orbit {
  position: absolute;
  inset: 4%;
  pointer-events: none;
}
.globe-stage .orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed color-mix(in oklab, var(--teal-500) 28%, transparent);
  border-radius: 50%;
  transform: rotate(-20deg) rotateX(70deg);
  transform-style: preserve-3d;
}
.globe-stage .orbit-ring.tilt-2 {
  border-color: color-mix(in oklab, var(--coral-500) 25%, transparent);
  transform: rotate(35deg) rotateX(72deg);
  inset: -2%;
}
.globe-stage .orbit-ico {
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-900);
  box-shadow: 0 6px 16px -6px rgba(15,23,42,0.18);
  animation: orbit-1 18s linear infinite;
  z-index: 2;
}
.globe-stage .orbit-ico.coral {
  background: var(--coral-500); color: white; border-color: transparent;
  animation: orbit-2 22s linear infinite;
  animation-direction: reverse;
}
@keyframes orbit-1 {
  from { transform: rotate(-20deg) rotateX(70deg) rotate(0deg) translateX(46%) rotateX(-70deg) rotate(20deg); }
  to   { transform: rotate(-20deg) rotateX(70deg) rotate(360deg) translateX(46%) rotateX(-70deg) rotate(20deg); }
}
@keyframes orbit-2 {
  from { transform: rotate(35deg) rotateX(72deg) rotate(0deg) translateX(50%) rotateX(-72deg) rotate(-35deg); }
  to   { transform: rotate(35deg) rotateX(72deg) rotate(360deg) translateX(50%) rotateX(-72deg) rotate(-35deg); }
}

/* Reduce motion: stop spinning */
@media (prefers-reduced-motion: reduce) {
  .globe-3d, .globe-stage .orbit-ico,
  .word-rotate .wr-stack { animation: none !important; }
}

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="left"].in { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="right"].in { transform: translateX(0); }

/* Stagger children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}
[data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 400ms; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   MOBILE TUNING — fixes for tablets and phones
   ============================================================ */

/* Tablet & below */
@media (max-width: 920px) {
  /* Tighter container padding */
  :root { --gutter: 20px; }

  /* Nav: tighter padding, slightly shorter Demo */
  .nav {
    top: 10px;
    padding: 8px 8px 8px 18px;
    width: calc(100% - 16px);
  }
  .nav.scrolled { padding: 6px 6px 6px 16px; }
  .nav-cta .btn-brand { padding: 10px 14px; font-size: 13.5px; }
  .nav-cta .btn-brand .arrow { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }

  /* Section padding */
  section { padding: clamp(48px, 6vw, 72px) 0; }
  .section-head { margin-bottom: 32px; }

  /* Subhero spacing */
  .subhero { padding-top: 110px; padding-bottom: 52px; }
}

/* Phone breakpoint */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  /* Hero: tight top spacing for fixed nav, reduced bottom */
  .hero {
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .hero-pill {
    font-size: 11.5px;
    padding: 5px 5px 5px 12px;
    margin-bottom: 18px;
  }
  .hero-pill .tag { padding: 3px 8px; font-size: 10.5px; }
  .h-display {
    font-size: clamp(34px, 9vw, 48px) !important;
    line-height: 1.04;
    letter-spacing: -0.025em;
  }
  .hero h1 { margin-bottom: 16px; }
  .hero p.lede {
    margin-bottom: 24px;
    font-size: 15px;
  }
  .hero-ctas { gap: 10px; flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-brand { width: 100%; justify-content: center; }
  .hero-meta {
    margin-top: 28px;
    gap: 16px 24px;
    flex-wrap: wrap;
  }
  .hero-meta > div { min-width: 0; }
  .hero-meta .stat-num { font-size: 28px; }
  .hero-meta .stat-label { font-size: 12px; }

  /* Hero globe — smaller + hide floating cards (they'd overflow viewport) */
  .globe-stage {
    max-width: 380px;
    margin: 0 auto !important;
    aspect-ratio: 1 / 1;
  }
  .globe-3d { width: 78%; height: 78%; }
  .float-card.tl, .float-card.ml, .float-card.br { display: none; }
  /* Smaller orbiting icons to fit tighter globe */
  .globe-stage .orbit-ico {
    width: 30px; height: 30px;
    margin: -15px;
  }

  /* Sub-page heros */
  .subhero {
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .subhero .h-display { font-size: clamp(30px, 8.5vw, 42px) !important; }
  .subhero-grid { gap: 28px; }
  .bcrumb { font-size: 11px; margin-bottom: 16px; }

  /* Sub-page hero visual: hide overflowing floats, fit board */
  .tms-hero-visual {
    margin: 0 auto !important;
    max-width: 100%;
  }
  .tms-float.fl-1, .tms-float.fl-2 { display: none; }

  /* Tighter tender / shipment row layout on mobile */
  .tender-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
  }
  .tender-row > div:nth-child(2) { display: none; } /* the empty spacer column */
  .tender-row .rate { grid-column: 2; grid-row: 1; }
  .tender-row .badge { grid-column: 2; grid-row: 2; justify-self: end; }
  .tender-row .carrier { font-size: 12px; }
  .tender-row .lane { font-size: 10.5px; }

  /* Pillars: full-width cards, tighter padding */
  .pillar { padding: 24px; min-height: auto; }
  .pillar h3 { font-size: 22px; }
  .pillar .visual { aspect-ratio: 16/8; }

  /* Bento: single column, more compact */
  .bento {
    grid-template-columns: 1fr !important;
  }
  .bento .b-wide,
  .bento .b-3,
  .bento .b-2,
  .bento .b-full { grid-column: span 1 !important; }
  .bento .card { padding: 22px; min-height: 200px; }
  .bento .card h3 { font-size: 20px; }

  /* Tracking section */
  .track-feat { padding: 14px; gap: 14px; }
  .track-feat .track-ico { width: 38px; height: 38px; }
  .track-feat h3 { font-size: 17px; }
  .track-card { padding: 14px; }
  .track-foot { grid-template-columns: 1fr 1fr; gap: 12px; }
  .track-stat:nth-child(3) { grid-column: span 2; text-align: left; }
  .track-stat .ts-val { font-size: 18px; }

  /* Scheduling */
  .sched-card { padding: 14px; }
  .sched-row { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .sched-driver { flex-direction: row; }
  .sched-track { height: 18px; }
  .sched-axis { font-size: 9.5px; flex-wrap: wrap; gap: 4px; }

  /* Load planning visual */
  .load-card { padding: 14px; gap: 14px; }
  .load-truck { padding: 10px; }
  .load-gauges { gap: 6px; }
  .load-gauge { padding: 8px 10px; }
  .load-gauge .lg-label { font-size: 9.5px; }
  .load-gauge .lg-val { font-size: 11.5px; }

  /* POD section: stack phones simply, no overlap */
  .pod-section { padding: 56px 0; }
  .pod-grid { gap: 32px; }
  .pod-visual {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -40px;
    position: relative;
  }
  .pod-phone {
    position: relative;
    width: 220px;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  .pod-phone-1 { transform: rotate(-4deg); margin-bottom: -40px; z-index: 2; }
  .pod-phone-2 { transform: rotate(4deg); margin-top: 0; align-self: flex-end; }
  .pod-features {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .pod-bench {
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
  }
  .pod-bench > div { padding: 18px; }
  .pod-bench .pb-num { font-size: 32px; }

  /* Comparison table — collapse cleanly */
  .cmp-row { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .cmp-cap { font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .cmp-cell { font-size: 13.5px; }

  /* Stats */
  .stats .cell { padding: 28px 20px; }
  .stats .cell .num { font-size: 56px; }
  .stats .cell .label { font-size: 13px; }

  /* Industries */
  .industry { padding: 22px; aspect-ratio: 4/5; }
  .industry h3 { font-size: 22px; }
  .industry p { font-size: 13px; }
  .industry .chip { top: 16px; right: 16px; padding: 5px 10px; font-size: 11px; }

  /* Solutions / Other-Solutions cards */
  .solution-card { padding: 22px; gap: 14px; grid-template-columns: auto 1fr; }
  .solution-card .sol-arrow { display: none; }
  .solution-card .sol-ico { width: 44px; height: 44px; }
  .solution-card .sol-body h3 { font-size: 18px; }

  /* CTA */
  .cta { padding: 48px 24px; }
  .cta .h-section { font-size: clamp(28px, 7vw, 36px); }
  .cta-ctas { flex-direction: column; gap: 10px; }
  .cta-ctas .btn { width: 100%; justify-content: center; }

  /* FAQ */
  .faq-grid { gap: 28px; }
  .faq-q { font-size: 16px; gap: 12px; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom span:last-child { flex-direction: column !important; gap: 8px !important; align-items: flex-start; }

  /* Pricing cards: single column, more padding */
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .plan { padding: 28px 24px; }
  .plan-vol { font-size: 42px !important; }
  .visibility-strip { padding: 28px 22px; }
  .vs-num { font-size: 64px !important; }
  .vs-label { font-size: 16px !important; }

  /* TMS/WMS/Route Opt flow strip — single column at very narrow widths */
  .tms-flow-step { padding: 22px 18px; }
  .tms-flow-step h4 { font-size: 14px; }
  .tms-flow-step p { font-size: 12.5px; }

  /* Mobile sheet — refined */
  .mobile-sheet { padding: 20px; gap: 4px; }
  .mobile-sheet a {
    font-size: 22px !important;
    padding: 14px 0 !important;
  }
  .ms-section {
    font-size: 10.5px;
    margin: 18px 0 -2px;
    padding-top: 12px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .nav { padding: 6px 6px 6px 14px; }
  .nav-cta .btn-brand {
    font-size: 12.5px;
    padding: 9px 12px;
  }
  .brand span:nth-child(2) { display: none; } /* show only logo to save space */
  .h-display { font-size: clamp(28px, 9vw, 38px) !important; }
  .subhero .h-display { font-size: clamp(26px, 9vw, 36px) !important; }
  .globe-stage { max-width: 300px; }
}

/* ===== Reviews / software listing ===== */
.reviews-strip { padding: 88px 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 1080px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  display: flex; flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  color: inherit;
  text-decoration: none;
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-500);
  box-shadow: 0 22px 50px -28px rgba(15,23,42,0.22);
}
.review-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.review-logo {
  height: 26px;
  display: flex; align-items: center;
}
.review-rating {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper-warm);
  padding: 5px 10px;
  border-radius: 99px;
}
.review-rating .stars {
  display: inline-flex; gap: 1px;
}
.review-rating .rating-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-900);
}
.review-quote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--slate-700);
  flex: 1;
}
.review-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.review-platform {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.review-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-700);
}
.reviews-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  flex-wrap: wrap;
}
.reviews-foot-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-700);
  flex-shrink: 0;
}
.reviews-foot-text {
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.5;
}
.reviews-foot-text strong { color: var(--ink-900); font-weight: 600; }

@media (max-width: 640px) {
  .reviews-strip { padding: 56px 0; }
  .review-card { padding: 20px; }
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
  margin-top: 32px;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 50px -28px rgba(15,23,42,0.16);
}
.contact-form h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.contact-form .sub {
  color: var(--slate-500);
  font-size: 14px;
  margin: 0 0 24px;
}
.contact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 540px) { .contact-row { grid-template-columns: 1fr; } }
.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.field label .opt {
  color: var(--slate-400);
  font-weight: 500;
  font-size: 11.5px;
  margin-left: 4px;
}
.field input,
.field textarea,
.field select {
  font: 500 14.5px/1.4 var(--font-sans);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
  color: var(--ink-900);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  background: white;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal-500) 12%, transparent);
}
.field textarea { min-height: 110px; resize: vertical; }
.choice-row {
  display: flex; gap: 10px;
}
.choice-pill {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-500);
  transition: background .15s, color .15s, border-color .15s;
}
.choice-pill input { display: none; }
.choice-pill:has(input:checked),
.choice-pill.is-checked {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}
.contact-form .submit-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-form .submit-row .fineprint {
  font-size: 12px;
  color: var(--slate-400);
  line-height: 1.4;
  max-width: 280px;
}
.contact-form button[disabled] {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}
.turnstile-wrap {
  min-height: 65px;
  margin-top: 4px;
}

.contact-side {
  display: flex; flex-direction: column;
  gap: 14px;
}
.contact-info-card {
  padding: 24px;
  background: var(--ink-900);
  color: white;
  border-radius: var(--radius-lg);
}
.contact-info-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.01em;
}
.contact-info-card .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--teal-300);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-info-card .items {
  display: grid; gap: 14px;
  margin-top: 22px;
}
.contact-info-card .info-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-info-card .info-item:first-child { border-top: 0; padding-top: 0; }
.contact-info-card .info-item .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info-card .info-item .key {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact-info-card .info-item .val {
  margin-top: 2px;
  font-size: 15px;
  color: white;
  font-weight: 500;
}
.contact-info-card .info-item .val a { color: white; }
.contact-info-card .info-item .val a:hover { color: var(--teal-300); }

.contact-other-card {
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-other-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}
.contact-other-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--slate-500);
  line-height: 1.5;
}
.contact-other-card .links {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.contact-other-card .links a {
  padding: 8px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
}
.contact-other-card .links a:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
  color: var(--teal-700);
}

.contact-map-wrap {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  aspect-ratio: 21 / 9;
  width: 100%;
  position: relative;
}
.contact-map-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
@media (max-width: 720px) { .contact-map-wrap { aspect-ratio: 4 / 5; } }

.success-banner {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--teal-50);
  border: 1px solid var(--teal-500);
  color: var(--teal-700);
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  gap: 10px;
}
.success-banner.show { display: flex; }
.error-banner {
  background: #fff1f2;
  border-color: #fb7185;
  color: #be123c;
}

/* ===== Blog listing & posts ===== */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 28px;
}
.blog-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.blog-search input {
  width: 100%;
  font: 500 14.5px/1.4 var(--font-sans);
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
  color: var(--ink-900);
  outline: none;
}
.blog-search input:focus {
  background: white;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal-500) 12%, transparent);
}
.blog-search svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
}
.blog-cat-row {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none;
}
.blog-cat-row::-webkit-scrollbar { display: none; }
.blog-cat-row button {
  flex-shrink: 0;
  padding: 9px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.blog-cat-row button:hover { color: var(--ink-900); }
.blog-cat-row button.active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-500);
  box-shadow: 0 22px 50px -28px rgba(15,23,42,0.22);
}
.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 800px) {
  .blog-card.featured { grid-template-columns: 1fr; }
}
.blog-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--ink-900);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.blog-card.featured .blog-thumb { aspect-ratio: auto; min-height: 320px; }

.blog-thumb-pattern {
  position: absolute; inset: 0;
  opacity: 0.9;
}
.blog-thumb-pattern.warm { background: linear-gradient(135deg, var(--ink-700), var(--ink-900)); }
.blog-thumb-pattern.teal { background: linear-gradient(135deg, var(--teal-700), var(--ink-900)); }
.blog-thumb-pattern.coral { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); }
.blog-thumb-pattern.cool { background: linear-gradient(135deg, #1F2937, var(--ink-900)); }
.blog-thumb-pattern::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.07) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(238,139,107,0.18) 0, transparent 50%);
}
.blog-thumb-glyph {
  position: relative; z-index: 2;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.blog-card.featured .blog-thumb-glyph { width: 80px; height: 80px; }

.blog-cat-badge {
  position: absolute; top: 18px; left: 18px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
}
.blog-body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.blog-card.featured .blog-body { padding: 36px; justify-content: center; }
.blog-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--slate-500);
  font-family: var(--font-mono);
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 99px; background: var(--slate-300); }
.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}
.blog-card.featured h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.blog-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.55;
  margin: 0;
}
.blog-card.featured p { font-size: 15.5px; }
.blog-card .read {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center; gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-700);
}

.blog-empty {
  display: none;
  padding: 56px 28px;
  text-align: center;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--slate-500);
  grid-column: 1 / -1;
}
.blog-empty.show { display: block; }

/* Blog post detail */
.post-hero {
  padding: 120px 0 64px;
  background:
    radial-gradient(ellipse at top, rgba(238,139,107,0.12), transparent 60%),
    var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.post-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: 14px 0 22px;
  font-size: 13px;
  color: var(--slate-500);
}
.post-meta-row .post-cat {
  padding: 5px 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-meta-row .dot { width: 3px; height: 3px; border-radius: 99px; background: var(--slate-300); }

.post-h {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0 0 18px;
  text-wrap: balance;
}
.post-h .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.post-deck {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--slate-500);
  max-width: 65ch;
  line-height: 1.5;
  margin: 0;
}

.post-body {
  padding: 64px 0;
}
.post-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) { .post-layout { grid-template-columns: 1fr; gap: 28px; } }

.post-toc {
  position: sticky;
  top: 100px;
  font-size: 13px;
}
@media (max-width: 980px) { .post-toc { position: static; } }
.post-toc .toc-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 12px;
}
.post-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--slate-700);
  font-weight: 500;
  line-height: 1.35;
  border-left: 2px solid transparent;
}
.post-toc a:hover { background: var(--paper-warm); color: var(--ink-900); }
.post-toc a.active {
  color: var(--teal-700);
  background: var(--teal-50);
  border-left-color: var(--teal-500);
}

.post-content {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-700);
}
.post-content h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  scroll-margin-top: 110px;
}
.post-content h3 {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}
.post-content p { margin: 0 0 18px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content strong { color: var(--ink-900); font-weight: 600; }
.post-content a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.post-content ul, .post-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.post-content ul li, .post-content ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.post-content ul li::marker { color: var(--teal-500); }
.post-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--paper-warm);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: var(--ink-900);
  font-size: 17px;
}
.post-content figure {
  margin: 28px 0;
  padding: 28px;
  background: var(--ink-900);
  color: white;
  border-radius: 16px;
  text-align: center;
}
.post-content figure .glyph {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.post-content figure figcaption {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  margin-top: 6px;
}

.post-callout {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--teal-50);
  border: 1px solid var(--teal-500);
  border-radius: 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
}
.post-callout .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--teal-500);
  color: white;
  display: grid; place-items: center;
}
.post-callout h4 {
  margin: 0 0 4px;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 600;
}
.post-callout p { margin: 0; color: var(--slate-700); font-size: 14.5px; }

.post-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.post-table th, .post-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.post-table tr:last-child th, .post-table tr:last-child td { border-bottom: 0; }
.post-table thead th {
  background: var(--paper-warm);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.post-table tbody th {
  font-weight: 600;
  color: var(--ink-900);
  background: white;
}
.post-table td { color: var(--slate-700); }

.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .post-hero { padding: 96px 0 48px; }
  .post-body { padding: 40px 0; }
  .post-content { font-size: 15.5px; }
  .post-content h2 { margin: 32px 0 12px; }
}

/* ===== Contact Popup Modal ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 3, 9, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.popup-overlay.is-open .popup-card {
  transform: translateY(0) scale(1);
}
.popup-card {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  /* overflow: visible so the ITL country dropdown can escape the card boundary */
  overflow: visible;
  position: relative;
  box-shadow: 0 32px 80px -16px rgba(10,3,9,0.32);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
/* Inner div handles scroll so the card itself stays overflow:visible */
.popup-card-inner {
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  scrollbar-width: thin;
}
.popup-card-inner::-webkit-scrollbar { width: 4px; }
.popup-card-inner::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.popup-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-cool);
  color: var(--slate-700);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.popup-close:hover { background: var(--line); }
.popup-header { margin-bottom: 24px; padding-right: 40px; }
.popup-header h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.popup-header p {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.5;
}
.popup-not-business {
  margin: 8px 0 16px;
  padding: 14px 18px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #92400E;
}
.field-error {
  display: block;
  font-size: 12px;
  color: #DC2626;
  margin-top: 4px;
  min-height: 16px;
}
@media (max-width: 520px) {
  .popup-card { padding: 20px 18px; border-radius: var(--radius-lg); }
  .popup-close { top: 14px; right: 14px; }
}

/* ===== Mobile Deep Optimization (additions) ===== */

/* Ensure all images and iframes are contained */
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* Ensure all buttons and CTAs are fully visible on mobile */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .nav-cta .btn-brand { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Hero buttons: stacked and full-width */
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Contact form rows: single column */
  .contact-row { grid-template-columns: 1fr !important; }

  /* Popup card: full width on small phones */
  .popup-card {
    max-height: 88vh;
    padding: 16px;
    border-radius: 20px;
  }
  .popup-header h2 { font-size: 18px; }
  .popup-overlay { padding: 8px; align-items: flex-end; }
  .popup-card { border-radius: 20px 20px 0 0; max-height: 94vh; }

  /* CTA section */
  .cta-ctas { flex-direction: column; gap: 10px; align-items: stretch; }
  .cta-ctas .btn { width: 100%; justify-content: center; }

  /* Footer: single column, tighter */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Section heads */
  .section-head.row { grid-template-columns: 1fr; gap: 16px; }
  .section-head.row .btn { align-self: flex-start; }

  /* Prevent text overflow */
  h1, h2, h3, h4, p { overflow-wrap: break-word; word-break: break-word; }

  /* Breadcrumbs */
  .bcrumb { font-size: 11px; }

  /* Pricing table: horizontal scroll for comparison */
  .comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table { min-width: 480px; }

  /* Blog featured card */
  .blog-card.featured { grid-template-columns: 1fr; }

  /* Floating cards on all sub-pages */
  .tms-float { display: none !important; }
  .wms-float { display: none !important; }
  .route-float { display: none !important; }
}

/* Fix nav on very small screens - ensure Request Demo button is visible */
@media (max-width: 360px) {
  .nav-cta .btn-brand { font-size: 11.5px; padding: 8px 10px; }
  .brand-mark { width: 24px; height: 24px; }
}

/* Ensure popup is mobile-safe */
@media (max-width: 640px) {
  .popup-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .popup-card {
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    padding: 20px 18px 32px;
  }
  .popup-header { padding-right: 44px; }
  .popup-close { top: 16px; right: 16px; }
}

/* Ensure the hero visual doesn't overflow on mobile */
@media (max-width: 1024px) {
  .globe-stage { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .globe-stage { display: block; max-width: 340px; margin: 28px auto 0; }
}

/* Fix subhero grids for mobile */
@media (max-width: 640px) {
  .subhero-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .subhero { overflow: hidden; }
  .subhero .hero-visual { display: none; }
}

/* Contact map on mobile */
@media (max-width: 480px) {
  .contact-map-wrap { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }
}

/* Table overflow for comparison pages */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── International Telephone Input — ZenDMS design overrides (v28) ─────────── */
.iti {
  display: block;
  width: 100%;
  position: relative;
  /* Map v28 CSS vars to ZenDMS palette */
  --iti-hover-color: var(--paper-warm, #f8f7f5);
  --iti-border-color: var(--line, #e5e3de);
  --iti-dropdown-bg: white;
  --iti-icon-color: var(--slate-400, #94a3b8);
}

/* Let ITL's JS set padding-left via inline style — do NOT override with !important */
.iti__tel-input {
  border-radius: 10px;
}

/* Country button: transparent bg, inherits input colours */
.iti__selected-country,
.iti__selected-flag {
  background: transparent !important;
}
.iti__selected-dial-code {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900, #1a1614);
  margin-left: 2px;
}

/* Dropdown panel — z-index ensures it floats above other form fields */
.iti__dropdown-content {
  z-index: 100;
  border-radius: 12px !important;
  border: 1px solid var(--line, #e5e3de) !important;
  box-shadow: 0 12px 32px -8px rgba(15,23,42,0.16) !important;
  overflow: hidden;
  font-family: var(--font-sans) !important;
  min-width: 280px;
}

/* Search box — neutralise focus ring so it matches site style */
.iti__search-input-wrapper {
  border-bottom: 1px solid var(--line, #e5e3de) !important;
}
.iti__search-input {
  font: 500 14px/1.4 var(--font-sans) !important;
  color: var(--ink-900, #1a1614) !important;
  /* icon is 17px, spacer 10px each side → 37px; add 2px breathing room */
  padding-left: 39px !important;
  outline: none !important;
  box-shadow: none !important;
}
.iti__search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Country list */
.iti__country-list {
  background: white !important;
  color: var(--ink-900, #1a1614) !important;
  font-family: var(--font-sans) !important;
  border: none !important;
  max-height: 220px;
}
.iti__country {
  padding: 9px 14px !important;
  font-size: 14px;
  outline: none;
}
.iti__country-name {
  font-weight: 500;
}
.iti__dial-code {
  color: var(--slate-400, #94a3b8);
  font-size: 13px;
}
.iti__country:hover,
.iti__country.iti__highlight {
  background: var(--paper-warm, #f8f7f5) !important;
}


