/* Vario Express - Global Shipping Design System */
:root {
  --navy: #0A1F44;
  --navy-deep: #071634;
  --navy-soft: #132E5C;
  --orange: #FF6B2B;
  --orange-deep: #E8541A;
  --teal: #14B8A6;
  --sky: #38BDF8;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --slate: #475569;
  --slate-2: #64748B;
  --slate-3: #94A3B8;
  --mist: #E2E8F0;
  --fog: #F1F5F9;
  --snow: #F8FAFC;
  --white: #FFFFFF;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 10px 30px -12px rgba(15,23,42,.18);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.28);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 10px;
  --grad-hero: linear-gradient(135deg, #071634 0%, #0A1F44 40%, #132E5C 100%);
  --grad-accent: linear-gradient(135deg, #FF6B2B 0%, #FF8D3F 100%);
  --grad-teal: linear-gradient(135deg, #14B8A6 0%, #38BDF8 100%);
  --maxw: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
button { font-family: inherit; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* Typography */
h1,h2,h3,h4 { font-family: 'Sora','Inter',sans-serif; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--slate); }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--orange); }
.muted { color: var(--slate-2); }
.center { text-align: center; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--mist);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-family: 'Sora', sans-serif; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--grad-hero);
  display: grid; place-items: center; color: white; position: relative; overflow: hidden;
  box-shadow: 0 6px 16px -6px rgba(10,31,68,.5);
}
.brand-mark::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 70% 30%, rgba(255,107,43,.8), transparent 55%);
}
.brand-mark svg { position: relative; z-index:1; }
.brand .accent { color: var(--orange); }

.menu { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: 6px;
  font-weight: 600; color: var(--ink-2); font-size: .95rem;
}
.menu a:hover { background: var(--fog); color: var(--navy); }
.menu a.active { color: var(--orange); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Utility bar (FedEx/USPS-style thin top bar) */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}
.util-inner {
  height: 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.util-inner a { color: rgba(255,255,255,.78); font-weight: 500; }
.util-inner a:hover { color: var(--orange); }
.util-region { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.util-links { display: flex; align-items: center; gap: 20px; }
.util-links .sep { width: 1px; height: 14px; background: rgba(255,255,255,.16); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 6px;
  border: 1px solid var(--mist); background: white;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-only { display: none; }
.nav-backdrop { display: none; }

/* Responsive header */
@media (max-width: 940px) {
  .utility-bar { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: white;
    border-bottom: 1px solid var(--mist);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    padding: 12px 0 20px;
  }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav .menu {
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 0 16px;
  }
  .primary-nav .menu a {
    padding: 14px 12px; border-radius: 6px; font-size: 1rem;
    justify-content: space-between;
  }
  .primary-nav .menu a.active { background: rgba(255,107,43,.08); }
  .mobile-only { display: block; }
  .mobile-util {
    margin: 8px 16px 0; padding: 14px 12px 4px;
    border-top: 1px solid var(--mist);
    display: grid; gap: 2px;
  }
  .mobile-util a { padding: 12px; border-radius: 6px; font-weight: 600; color: var(--ink-2); }
  .mobile-util a:hover { background: var(--fog); }
  .mobile-cta { padding: 14px 16px 0; display: grid; gap: 10px; }
  .mobile-cta .btn { width: 100%; justify-content: center; padding: 13px; font-size: 1rem; }

  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .nav-cta .btn-primary.keep-cta { display: inline-flex; }

  .nav-backdrop.show {
    display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    background: rgba(7,22,52,.35); backdrop-filter: blur(1px);
  }
  body.nav-open { overflow: hidden; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 6px;
  font-weight: 600; font-size: .92rem;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-deep); color: white; }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: var(--navy-soft); color: white; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--mist); }
.btn-ghost:hover { background: var(--fog); border-color: var(--slate-3); }
.btn-lg { padding: 13px 20px; font-size: .95rem; border-radius: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: white;
  padding: 96px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 90% 10%, rgba(255,107,43,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(20,184,166,.15), transparent 60%);
  pointer-events: none;
}
.hero .grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { color: white; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { color: rgba(255,255,255,.82); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 12px; border-radius: 999px; color: white; font-size: .85rem; font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.25); }

/* Hero track panel */
.track-panel {
  background: white; color: var(--ink);
  border-radius: 10px; padding: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.5);
}
.track-panel .tabs { display: flex; gap: 6px; background: var(--fog); padding: 6px; border-radius: 8px; margin-bottom: 14px; }
.track-panel .tab {
  flex: 1; text-align: center; padding: 10px 12px; border-radius: 6px;
  font-weight: 700; font-size: .9rem; color: var(--slate); cursor: pointer; border: 0; background: transparent;
}
.track-panel .tab.active { background: white; color: var(--navy); box-shadow: var(--shadow-sm); }
.track-panel h3 { margin: 2px 0 12px; }
.field-row { display: flex; gap: 10px; }
.input, .select, textarea.input {
  width: 100%;
  padding: 11px 12px; border: 1px solid var(--mist); border-radius: 6px;
  font-size: .93rem; font-family: inherit; background: white; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,31,68,.08);
}
label.field-label { font-size: .75rem; font-weight: 600; color: var(--slate-2); display: block; margin-bottom: 6px; letter-spacing: 0; text-transform: none; }

/* Cards */
.card {
  background: white; border: 1px solid var(--mist); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--slate-3); box-shadow: 0 2px 8px -2px rgba(15,23,42,.06); }
.card .icon {
  width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center;
  background: var(--fog); color: var(--navy); margin-bottom: 14px;
}
.card .icon.orange { background: rgba(255,107,43,.12); color: var(--orange); }
.card .icon.teal { background: rgba(20,184,166,.12); color: var(--teal); }
.card .icon.sky { background: rgba(56,189,248,.14); color: var(--sky); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .95rem; margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat {
  background: white; border: 1px solid var(--mist); border-radius: 8px; padding: 22px;
}
.stat .big { font-family: 'Sora',sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stat .label { color: var(--slate-2); font-size: .9rem; }

/* Footer */
.footer {
  background: var(--navy-deep); color: rgba(255,255,255,.78); margin-top: 40px;
}
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: var(--orange); }
.footer-top { padding: 60px 0 40px; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px){ .footer-top { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: white; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .fine { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}

/* TRACKING PAGE — flat, minimal */
.tracking-hero {
  background: var(--navy-deep); color: white; padding: 44px 0 80px; position: relative;
}
.tracking-hero h1 { color: white; font-size: clamp(1.6rem,2.6vw,2.1rem); margin-bottom: 4px; font-weight: 700; letter-spacing: -0.015em; }
.tracking-hero p { color: rgba(255,255,255,.65); max-width: 60ch; font-size: .95rem; }
.tracking-hero .breadcrumb { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 10px; letter-spacing: .02em; }

.tracking-wrap {
  max-width: var(--maxw); margin: -44px auto 0; padding: 0 24px; position: relative; z-index: 2;
}

.shipment-setup {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 20px;
  box-shadow: none;
}
.setup-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 12px; align-items: end;
}
@media (max-width: 980px){ .setup-grid { grid-template-columns: 1fr 1fr; } .setup-grid > :last-child { grid-column: span 2; } }

.tracking-main {
  display: grid; grid-template-columns: 1fr 380px; gap: 20px; margin-top: 20px;
}
@media (max-width: 1100px){ .tracking-main { grid-template-columns: 1fr; } }

/* Map panel */
.map-panel {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}
#map { width: 100%; height: 460px; background: #EEF3FA; }
.map-topbar {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none;
}
.live-chip {
  display: inline-flex; align-items: center; gap: 8px; pointer-events: auto;
  padding: 7px 12px; border-radius: 6px; background: var(--navy);
  color: white; font-size: .8rem; font-weight: 600; letter-spacing: 0;
  box-shadow: none;
}
.live-chip .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: #22D3EE;
  box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
.map-controls { display: flex; gap: 6px; pointer-events: auto; align-items: center; }
.map-btn {
  background: white; border: 1px solid var(--mist); border-radius: 6px;
  padding: 7px 10px; font-weight: 600; font-size: .82rem; color: var(--ink-2); cursor: pointer;
  box-shadow: none; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, color .15s;
}
.map-btn:hover { border-color: var(--navy); color: var(--navy); }
.map-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Floating stats */
.map-hud {
  position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 500;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; pointer-events: none;
}
@media (max-width: 700px){ .map-hud { grid-template-columns: repeat(2,1fr); } }
.hud {
  background: rgba(255,255,255,.98);
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: none;
  pointer-events: auto;
}
.hud .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-2); font-weight: 600; margin-bottom: 2px; }
.hud .v { font-size: .95rem; font-weight: 700; color: var(--navy); font-family: 'Inter',sans-serif; letter-spacing: -0.01em; }

/* Sidebar */
.side-panel {
  display: flex; flex-direction: column; gap: 12px;
}
.panel {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 18px;
  box-shadow: none;
}
.panel h3 { font-size: .95rem; margin-bottom: 14px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }

.tracking-num {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 2px;
}
.tracking-num .num { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; font-weight: 600; color: var(--navy); font-size: .92rem; letter-spacing: .01em; }
.copy-btn { background: transparent; border: 1px solid var(--mist); padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: .75rem; cursor: pointer; color: var(--slate); transition: all .15s; }
.copy-btn:hover { border-color: var(--navy); color: var(--navy); }

.route-line {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--mist);
}
.route-end { display: flex; flex-direction: column; }
.route-end .small { font-size: .68rem; color: var(--slate-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 2px; }
.route-end .place { font-weight: 600; color: var(--navy); font-size: .9rem; line-height: 1.3; letter-spacing: -0.005em; }
.route-dash { color: var(--slate-3); font-weight: 400; font-size: 1rem; }

/* Progress bar */
.progress { width: 100%; height: 4px; background: var(--fog); border-radius: 2px; overflow: hidden; margin: 14px 0 6px; }
.progress .bar { height: 100%; background: var(--orange); width: 0%; transition: width .6s ease; border-radius: 2px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--slate-2); font-weight: 500; }

/* Timeline — flat, clean */
.timeline { position: relative; margin-top: 4px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px;
  width: 1px; background: var(--mist);
}
.tl-item {
  position: relative;
  padding: 0 0 18px 34px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item .tl-dot {
  position: absolute; left: 4px; top: 2px;
  width: 16px; height: 16px; border-radius: 999px;
  background: white;
  border: 1.5px solid var(--slate-3);
  display: grid; place-items: center;
  color: var(--slate-3);
  box-shadow: 0 0 0 3px white;
  transition: all .2s ease;
}
.tl-item .tl-dot svg { width: 9px; height: 9px; opacity: 0; transition: opacity .15s; }
.tl-item.done .tl-dot {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.tl-item.done .tl-dot svg { opacity: 1; }
.tl-item.active .tl-dot {
  background: white;
  border-color: var(--orange);
  border-width: 2px;
  color: var(--orange);
}
.tl-item.active .tl-dot::before {
  content: ""; position: absolute; inset: 2px;
  border-radius: 999px; background: var(--orange);
}
.tl-item.active .tl-dot svg { display: none; }
.tl-title {
  font-weight: 600;
  color: var(--navy);
  font-size: .88rem;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.tl-item.active .tl-title { color: var(--navy); }
.tl-item:not(.done):not(.active) .tl-title { color: var(--slate); font-weight: 500; }
.tl-sub {
  font-size: .8rem;
  color: var(--slate-2);
  margin: 2px 0 0;
  line-height: 1.4;
}
.tl-time {
  font-size: .72rem;
  color: var(--slate-3);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.tl-item.active .tl-time { color: var(--orange); font-weight: 600; }

/* Shipment info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.info-list li { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--slate-2); }
.info-list li strong { color: var(--navy); font-weight: 600; font-size: .88rem; }

/* Status tag (flat) */
.status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: 0;
  background: rgba(255,107,43,.1);
  color: var(--orange-deep);
  border: 1px solid rgba(255,107,43,.2);
  white-space: nowrap;
}
.status-tag.done {
  background: rgba(16,185,129,.1);
  color: #047857;
  border-color: rgba(16,185,129,.22);
}
.status-tag.ready {
  background: var(--fog);
  color: var(--slate);
  border-color: var(--mist);
}
.status-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
}

/* Services page */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 900px){ .services-grid { grid-template-columns: 1fr; } }
.service-card { background: white; border: 1px solid var(--mist); border-radius: 8px; padding: 26px; transition: all .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .icon { width: 54px; height: 54px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-hero); color: white; margin-bottom: 18px; }
.service-card .price { font-family: 'Sora',sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.service-card ul { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 6px; font-size: .92rem; }
.service-card ul li { display: flex; gap: 8px; color: var(--slate); }
.service-card ul li::before { content: "✓"; color: var(--teal); font-weight: 800; }

/* Quote page */
.quote-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
@media (max-width: 1000px){ .quote-grid { grid-template-columns: 1fr; } }
.quote-form {
  background: white; border: 1px solid var(--mist); border-radius: 10px; padding: 28px;
  box-shadow: var(--shadow);
}
.quote-form .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px){ .quote-form .field-grid { grid-template-columns: 1fr; } }
.quote-form .group-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); font-weight: 800; margin: 18px 0 6px; }
.quote-form .group-title:first-child { margin-top: 0; }

.quote-summary {
  background: var(--grad-hero); color: white; border-radius: 10px; padding: 26px; position: sticky; top: 92px;
}
.quote-summary h3 { color: white; }
.quote-summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; color: rgba(255,255,255,.85); }
.quote-summary .row strong { color: white; }
.quote-summary .total { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: white; margin-top: 12px; }
.quote-summary small { color: rgba(255,255,255,.65); }

/* Locations page */
.locations-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; }
@media (max-width: 900px){ .locations-grid { grid-template-columns: 1fr; } }
.locations-list { background: white; border: 1px solid var(--mist); border-radius: 8px; padding: 12px; max-height: 560px; overflow: auto; }
.location-item { padding: 14px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.location-item:hover { background: var(--fog); }
.location-item.active { background: rgba(255,107,43,.08); border-color: rgba(255,107,43,.25); }
.location-item h4 { margin: 0 0 4px; color: var(--navy); font-size: .95rem; }
.location-item p { margin: 0; font-size: .85rem; color: var(--slate-2); }
.location-item .meta { display: flex; gap: 10px; font-size: .78rem; color: var(--slate-2); margin-top: 6px; }
.location-item .meta span.open { color: var(--green); font-weight: 700; }
#locations-map { width: 100%; height: 560px; border-radius: 8px; border: 1px solid var(--mist); }

/* Page title band */
.page-title {
  background: var(--grad-hero); color: white; padding: 52px 0;
}
.page-title h1 { color: white; }
.page-title p { color: rgba(255,255,255,.78); }

/* CTA band */
.cta-band {
  background: var(--grad-hero); color: white; border-radius: 10px; padding: 44px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(255,107,43,.25), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 6px auto 20px; }

/* Leaflet overrides */
.leaflet-container { font-family: 'Inter', sans-serif; }
.leaflet-popup-content-wrapper {
  border-radius: 8px; box-shadow: var(--shadow);
}
.leaflet-popup-content { margin: 14px 16px; }
.custom-marker {
  background: transparent; border: 0; box-shadow: none;
}
.marker-bubble {
  width: 38px; height: 38px; border-radius: 8px; border-bottom-left-radius: 4px;
  background: white; box-shadow: var(--shadow); display: grid; place-items: center;
  border: 2px solid white; transform: translate(-50%, -100%);
}
.marker-bubble.origin { background: var(--grad-teal); color: white; }
.marker-bubble.dest { background: var(--grad-accent); color: white; }
.marker-bubble.hub { background: var(--navy); color: white; }
.marker-pkg {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--orange); display: grid; place-items: center;
  box-shadow: 0 4px 12px -2px rgba(10,31,68,.25);
  border: 3px solid white;
  transform: translate(-50%, -50%);
  position: relative;
  color: white;
}
.marker-pkg svg { stroke: white !important; width: 18px; height: 18px; }
.marker-pkg::before {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  border: 1.5px solid rgba(255,107,43,.45); animation: ring 2s infinite;
}
@keyframes ring {
  0% { transform: scale(.9); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Animations */
.fade-in { animation: fadeUp .6s ease forwards; opacity: 0; transform: translateY(12px); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Utilities */
.hide { display: none !important; }
.split { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  font-size: .75rem; font-weight: 700; border-radius: 999px;
  background: var(--fog); color: var(--slate);
}
.pill.green { background: rgba(16,185,129,.12); color: #065F46; }
.pill.orange { background: rgba(255,107,43,.14); color: var(--orange-deep); }
.pill.blue { background: rgba(56,189,248,.14); color: #0369A1; }

/* Speed control */
.speed-group { display: flex; align-items: center; gap: 8px; }
.speed-group label { font-size: .82rem; color: var(--slate); font-weight: 600; }
.speed-group select { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--mist); }

/* ---------------------------------------------------------------
   Mobile responsiveness polish
--------------------------------------------------------------- */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-inner { gap: 36px; }
  .cta-band { padding: 32px 22px; }
  .page-title { padding: 40px 0; }
  .stat { padding: 18px; }
  .stat .big { font-size: 1.8rem; }
  .footer-top { padding: 44px 0 28px; gap: 28px; }
  .footer .fine { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
  .quote-summary { position: static; }
  .track-panel { padding: 18px; }
  /* Tracking page: keep map usable on phones */
  #map { height: 380px; }
  #locations-map { height: 380px; min-height: 380px; }
  .locations-list { max-height: none; }
  .map-hud { grid-template-columns: repeat(2,1fr); }
  .map-topbar { flex-wrap: wrap; }
  .tracking-hero { padding: 32px 0 72px; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .hero-badges .badge { font-size: .8rem; }
  .btn-lg { padding: 12px 16px; }
  .stats { grid-template-columns: 1fr; }
  .map-hud { grid-template-columns: 1fr 1fr; gap: 6px; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-grid > :last-child { grid-column: auto; }
  .map-controls { width: 100%; justify-content: space-between; }
}

/* Prevent horizontal overflow anywhere */
html, body { overflow-x: hidden; max-width: 100%; }

/* ---------------------------------------------------------------
   Minimal tracking page (FedEx / USPS-style, flat)
--------------------------------------------------------------- */
.track-page { background: var(--snow); }
.track-hero-min {
  background: white; border-bottom: 1px solid var(--mist);
  padding: 26px 0 24px;
}
.track-hero-min .breadcrumb { font-size: .78rem; color: var(--slate-2); margin-bottom: 6px; letter-spacing: .02em; }
.track-hero-min h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0; font-weight: 700; letter-spacing: -0.015em; }

.track-summary {
  background: white; border: 1px solid var(--mist); border-radius: 8px; padding: 24px;
}
.track-summary .ts-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ts-tracknum { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-2); font-weight: 600; margin-bottom: 4px; }
.ts-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; color: var(--navy); font-size: .95rem; letter-spacing: .01em; }
.ts-eta-label { font-size: .8rem; color: var(--slate-2); margin-top: 20px; }
.ts-eta { font-family: 'Sora', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.ts-route { font-size: .9rem; color: var(--slate); margin-top: 8px; }
.ts-route strong { color: var(--navy); font-weight: 600; }

/* Horizontal progress stepper */
.tracker { margin-top: 28px; padding-top: 4px; }
.tracker-track { position: relative; height: 4px; background: var(--fog); border-radius: 3px; margin: 0 6px; }
.tracker-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--orange); border-radius: 3px; transition: width .5s ease; }
.tracker-steps { display: flex; justify-content: space-between; margin-top: -11px; }
.tstep { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 1; text-align: center; }
.tstep .tdot {
  width: 18px; height: 18px; border-radius: 999px; background: white;
  border: 2px solid var(--mist); display: grid; place-items: center; color: white;
  box-shadow: 0 0 0 3px white; z-index: 1; transition: all .2s ease;
}
.tstep .tdot svg { width: 10px; height: 10px; }
.tstep.done .tdot { background: var(--orange); border-color: var(--orange); }
.tstep.active .tdot { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,107,43,.18); }
.tstep .tlabel { font-size: .72rem; font-weight: 600; color: var(--slate-3); max-width: 84px; line-height: 1.25; }
.tstep.done .tlabel, .tstep.active .tlabel { color: var(--navy); }
@media (max-width: 600px){ .tstep .tlabel { font-size: .62rem; max-width: 60px; } .tracker { margin-top: 22px; } }

/* Two-column tracking layout (wide screens) */
.track-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 28px;
}
.track-col-main { display: grid; gap: 20px; min-width: 0; }
.track-col-side { display: grid; gap: 20px; }
.track-col-side .panel { position: sticky; top: 88px; max-height: calc(100dvh - 108px); overflow: auto; }
@media (max-width: 1000px) {
  .track-layout { grid-template-columns: 1fr; }
  .track-col-side .panel { position: static; max-height: none; }
}
/* On two-column, let the map fill the taller left column */
@media (min-width: 1001px) {
  .track-layout .map-panel { height: 100%; }
  .track-layout #map { height: 100%; min-height: 420px; }
}

/* On-hold banner + status pill */
.hold-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412;
  border-radius: 10px; padding: 14px 16px; font-size: .9rem; line-height: 1.5;
}
.hold-banner strong { color: #7C2D12; }
.hold-banner a { color: #B45309; font-weight: 600; }
.status-tag.held {
  background: rgba(245,158,11,.12); color: #B45309; border-color: rgba(245,158,11,.28);
}

/* Empty / not-found states */
.track-state { max-width: 520px; margin: 0 auto; padding: 60px 24px 72px; text-align: center; }
.track-state h2 { font-size: 1.5rem; margin: 0 0 8px; }
.track-state p { margin: 0 auto; max-width: 42ch; }
.track-state-icon {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 16px;
  background: var(--fog); color: var(--navy); display: grid; place-items: center;
}

/* Hero tracking lookup form */
.track-lookup { display: flex; gap: 10px; max-width: 460px; margin-top: 16px; }
.track-lookup .input { flex: 1; }
@media (max-width: 480px){ .track-lookup { flex-direction: column; } .track-lookup .btn { justify-content: center; } }

/* Demo controls (collapsible, understated) */
.demo-controls { border: 1px solid var(--mist); border-radius: 8px; background: white; padding: 14px 18px; }
.demo-controls > summary {
  cursor: pointer; font-weight: 600; color: var(--slate); font-size: .9rem;
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.demo-controls > summary::-webkit-details-marker { display: none; }
.demo-controls > summary::before {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--slate-3);
  border-bottom: 2px solid var(--slate-3); transform: rotate(-45deg); transition: transform .2s;
}
.demo-controls[open] > summary::before { transform: rotate(45deg); }
