:root {
  --ground: #cdc4a6;
  --panel: #121419;
  --panel-2: #191c22;
  --line: rgba(255, 255, 255, .09);
  --ink: #f3f1ec;
  --muted: #a3a8b1;
  --orange: #ff5a1f;
  --orange-d: #e2490f;
  --amber: #f5b100;
  --sign: #0c6a3c;
  --dark: #16181c;
  --gut: 56px;
  --hud: 60px;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
}
@media (min-width: 760px) { :root { --gut: clamp(120px, 12vw, 190px); --hud: 68px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ground); color: var(--dark); font-family: var(--font);
  font-size: 16px; line-height: 1.5; overflow-x: clip;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hud);
  padding: 0 16px; padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; gap: 14px;
  background: rgba(17, 19, 24, .9); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.mark { width: 34px; height: 34px; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font-weight: 900; letter-spacing: .12em; font-size: 15px; }
.wm small { font-size: 9.5px; letter-spacing: .32em; color: var(--muted); margin-top: 4px; font-weight: 700; }
.nav { display: none; gap: 22px; margin-left: 18px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 14px; color: #cfd2d8; }
.nav a:hover { color: #fff; }
.gauge {
  margin-left: auto; display: none; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px;
  background: #0a0b0e; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: #cfd2d8;
}
.gauge b { color: var(--amber); font-weight: 700; }
.g-sep { width: 1px; height: 12px; background: var(--line); }
.sun { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.sun.moon { background: #dfe6f5; box-shadow: 0 0 8px #9fb4e0; }
.auto {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.auto-i { width: 0; height: 0; border-left: 8px solid var(--amber); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.auto[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.auto[aria-pressed="true"] .auto-i { width: 9px; height: 10px; border: 0; border-left: 3px solid var(--amber); border-right: 3px solid var(--amber); }
/* note: .login sits before .auto in the HUD */
.login { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; margin-left: auto; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13px; border: 1px solid rgba(255, 255, 255, .22); flex: none; }
.login svg { width: 17px; height: 17px; }
.login span { display: none; }
.call {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; flex: none;
}
.call svg { width: 17px; height: 17px; }
.call span { display: none; }
@media (min-width: 760px) {
  .gauge { display: flex; }
  .login { margin-left: 0; }
  .login span { display: inline; }
  .call span { display: inline; }
}
@media (min-width: 1180px) { .nav { display: flex; } }
@media (max-width: 380px) { .auto-t { display: none; } .wm small { letter-spacing: .2em; } }

/* ---------- sky layers (opacity set by script) ---------- */
.night, .dusk { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 2; }
.night {
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 71% 27%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 74%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 83%, #fff 50%, transparent 51%),
    #050913;
}
.dusk { background: linear-gradient(180deg, #ff9a45, #d2507a); }

/* ---------- world + road ---------- */
.world {
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(60, 50, 20, .07) 0 1.5px, transparent 2.5px) 0 0 / 31px 37px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .12) 0 1.2px, transparent 2px) 0 0 / 47px 41px,
    radial-gradient(ellipse at 50% 50%, rgba(110, 120, 60, .1), transparent 70%) 0 0 / 420px 380px,
    var(--ground);
}
.road, .lights { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.road { z-index: 0; }
.road svg { position: absolute; left: 0; }
.lights { z-index: 3; }
.glow {
  position: absolute; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .55), rgba(255, 190, 90, .14) 40%, transparent 70%);
  opacity: 0; transition: opacity .8s;
}
.lights-on .glow { opacity: 1; }
.rig { position: absolute; inset: 0 auto auto 0; z-index: 4; pointer-events: none; }
.rig svg { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.cone { opacity: 0; }
.rev { opacity: 0; transition: opacity .15s; }
.reversing .rev { opacity: 1; }
.reversing .tail { fill: #ff3b3b; }
.gutprobe { position: absolute; width: var(--gut); height: 0; visibility: hidden; }

/* ---------- sections ---------- */
.sec { position: relative; z-index: 5; padding: 40px 0; }
.inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sec[data-road="l"] .inner { padding-left: calc(var(--gut) + 14px); }
.sec[data-road="r"] .inner, .sec[data-road="end"] .inner { padding-right: calc(var(--gut) + 14px); }
@media (min-width: 760px) {
  .sec[data-road="l"] .inner { padding-left: calc(var(--gut) + 36px); padding-right: 32px; }
  .sec[data-road="r"] .inner, .sec[data-road="end"] .inner { padding-right: calc(var(--gut) + 36px); padding-left: 32px; }
}
@media (min-width: 1500px) {
  .inner { max-width: none; }
  .sec[data-road="l"] .inner { padding-right: max(32px, calc((100vw - 1240px) / 2 - 60px)); }
  .sec[data-road="r"] .inner, .sec[data-road="end"] .inner { padding-left: max(32px, calc((100vw - 1240px) / 2 - 60px)); }
}

.panel {
  background: rgba(18, 20, 25, .96); color: var(--ink); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
@media (min-width: 760px) { .panel { padding: 44px 44px; border-radius: 28px; } }
.js .panel { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .panel.in { opacity: 1; transform: none; }
.kick { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
h2 { margin: 0; font-size: clamp(30px, 6.4vw, 56px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; }
h2 span { color: var(--muted); }
.sub { color: var(--muted); max-width: 620px; margin: 14px 0 0; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
}
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn-o { background: var(--orange); color: #fff; }
.btn-o:hover { background: var(--orange-d); }
.btn-g { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.pill { font-size: 11px; background: var(--amber); color: var(--dark); padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--hud) + 36px); min-height: 100svh; display: flex; align-items: center; }
.hero .inner { width: 100%; }
.hero-in { display: grid; gap: 28px; }
@media (min-width: 1000px) { h1 { font-size: clamp(64px, 6vw, 96px); }
  .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; } }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #5a523b; }
h1 { margin: 14px 0 0; font-size: clamp(46px, 12vw, 64px); line-height: .9; font-weight: 900; letter-spacing: -.035em; color: var(--dark); }
h1 em { font-style: normal; color: var(--orange); }
.lede { margin: 20px 0 0; font-size: clamp(17px, 2.2vw, 20px); max-width: 520px; color: #3b3829; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .btn-g { color: var(--dark); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; font-size: 14.5px; color: #4a4532; }
.facts b { font-weight: 900; color: var(--dark); font-size: 18px; margin-right: 4px; }
.hint { margin: 26px 0 0; font-family: var(--mono); font-size: 12.5px; color: #5a523b; }

.board { background: var(--panel); color: var(--ink); border-radius: 20px; border: 1px solid var(--line); padding: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.board-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); }
.board-h small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 0 0 rgba(47, 211, 107, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(47, 211, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 211, 107, 0); } }
.board-rows { list-style: none; margin: 0; padding: 0; }
.board-rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.board-rows li:last-child { border-bottom: 0; }
.br-id { font-family: var(--mono); color: var(--muted); font-size: 11.5px; }
.br-lane { font-weight: 800; grid-column: 1; }
.br-eq { color: var(--muted); font-size: 12.5px; }
.br-st { grid-row: 1 / span 3; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: #23272f; color: #cfd2d8; transition: background .4s, color .4s; white-space: nowrap; }
.br-st.s-transit { background: rgba(245, 177, 0, .16); color: var(--amber); }
.br-st.s-done { background: rgba(47, 211, 107, .14); color: #48e07f; }
.br-st.s-load { background: rgba(80, 150, 255, .15); color: #7fb2ff; }
.br-st.flash { animation: flash .6s; }
@keyframes flash { 0% { transform: scale(1.12); } 100% { transform: none; } }

/* ---------- exit bands ---------- */
.band { position: relative; z-index: 5; height: 460px; pointer-events: none; }
@media (min-width: 760px) { .band { height: 560px; } }
.sign {
  pointer-events: auto; position: absolute; top: 9%; width: 236px; text-decoration: none;
  background: var(--sign); color: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .55);
  transition: transform .25s;
}
.sign:hover { transform: translateY(-3px); }
.sign::before, .sign::after { content: ""; position: absolute; top: 100%; width: 7px; height: 70px; background: linear-gradient(90deg, #8b9098, #c9cdd3, #8b9098); z-index: -1; }
.sign::before { left: 30px; }
.sign::after { right: 30px; }
.sign.to-r { right: max(16px, calc(var(--gut) + 6%)); }
.sign.to-l { left: max(16px, calc(var(--gut) + 6%)); }
@media (max-width: 759px) { .sign.to-r { right: 16px; } .sign.to-l { left: 16px; } }
@media (min-width: 760px) { .sign { width: 300px; top: 12%; } }
.s-tab { position: absolute; top: -20px; right: 14px; background: var(--sign); border: 2px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 2px 10px 0; font-weight: 900; font-size: 13px; letter-spacing: .06em; }
.to-l .s-tab { right: auto; left: 14px; }
.s-main { display: flex; flex-direction: column; align-items: center; text-align: center; border: 2px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 12px 10px 10px; }
.s-main b { font-size: 27px; font-weight: 800; line-height: 1.05; letter-spacing: -.005em; }
.s-main span { font-size: 13.5px; opacity: .9; margin-top: 4px; }
.s-foot { display: flex; justify-content: center; align-items: center; gap: 10px; border: 2px solid #fff; border-radius: 0 0 6px 6px; padding: 5px 0 3px; font-weight: 900; font-size: 14px; letter-spacing: .08em; }
.s-foot i { font-style: normal; font-size: 18px; line-height: 1; }
@media (min-width: 760px) { .s-main b { font-size: 33px; } }
.lights-on .sign { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 40px rgba(170, 255, 200, .18), 0 18px 30px -14px rgba(0, 0, 0, .55); }

/* ---------- equipment ---------- */
.equip { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 980px) { .equip { grid-template-columns: 300px 1fr; } }
.eq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start; }
@media (min-width: 560px) and (max-width: 979px) { .eq-list { grid-template-columns: repeat(5, 1fr); } }
.eq-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 11px; min-height: 64px; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 14px;
  transition: border-color .2s, background .2s;
}
.eq-btn svg { width: 100%; height: 16px; }
.eq-btn[aria-selected="true"] { border-color: var(--orange); background: rgba(255, 90, 31, .1); }
.eq-btn:hover { border-color: rgba(255, 255, 255, .3); }
.eq-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.eq-stage {
  height: 150px; position: relative; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, transparent 47%, transparent 47%),
    repeating-linear-gradient(90deg, #f5b100 0 26px, transparent 26px 50px) center 50% / 100% 3px no-repeat,
    linear-gradient(180deg, #2a2d33 0 12%, #f3f1ec 12% 13%, #1d2026 13% 87%, #f3f1ec 87% 88%, #2a2d33 88%);
}
@media (min-width: 760px) { .eq-stage { height: 190px; } }
.eq-rig { width: 82%; max-width: 560px; height: auto; transform: translateX(-4%); }
.eq-rig.pop { animation: hook .55s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes hook { 0% { transform: translateX(-14%); opacity: .4; } 100% { transform: translateX(-4%); opacity: 1; } }
.eq-body { padding: 18px 18px 22px; }
@media (min-width: 760px) { .eq-body { padding: 22px 26px 26px; } }
.eq-hook { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--amber); }
.eq-body h3 { margin: 6px 0 0; font-size: 30px; font-weight: 900; }
.eq-body p { color: #c9ccd2; margin: 6px 0 0; }
.eq-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.eq-specs div { background: #0f1115; border-radius: 10px; padding: 9px 10px; }
.eq-specs dt { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.eq-specs dd { margin: 3px 0 0; font-weight: 800; font-size: 14.5px; }
.eq-hauls { font-size: 14px; color: var(--muted) !important; margin: 0 0 16px !important; }
.svc { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc { grid-template-columns: repeat(3, 1fr); } }
.svc li { border-top: 2px solid var(--orange); padding: 12px 2px 0; }
.svc b { display: block; font-size: 17px; }
.svc span { color: var(--muted); font-size: 14.5px; }

/* ---------- coverage ---------- */
.map-wrap { position: relative; margin-top: 22px; }
.map { width: 100%; height: auto; }
.map .nation { fill: #1d2129; stroke: #3a404b; stroke-width: 1.2; }
.map .borders { fill: none; stroke: #2c313a; stroke-width: .8; }
.map .lane { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; }
.map .lane.l2 { stroke: var(--amber); stroke-width: 1.5; opacity: .85; }
.map .city { fill: #f3f1ec; opacity: 0; transition: opacity .4s; }
.map .city.on { opacity: 1; }
.map .hub { fill: var(--orange); }
.map .hub-ring { fill: none; stroke: var(--orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.2s infinite; }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.map .term { fill: var(--amber); }
.map .hit { fill: transparent; cursor: pointer; }
.map-tip { position: absolute; transform: translate(-50%, -130%); background: #fff; color: var(--dark); font-weight: 800; font-size: 12.5px; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.cov { display: grid; gap: 22px; margin-top: 18px; }
@media (min-width: 900px) { .cov { grid-template-columns: 1fr 1fr; align-items: start; } }
.cov-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cov-stats div, .stats div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; }
.cov-stats b, .stats b { display: block; font-size: clamp(26px, 5vw, 40px); font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cov-stats span, .stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.terms li { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; align-items: baseline; }
.terms i { width: 10px; height: 10px; background: var(--amber); border-radius: 2px; grid-row: 1 / span 2; align-self: start; margin-top: 6px; }
.terms i.t-hq { background: var(--orange); border-radius: 50%; }
.terms b { font-size: 16px; }
.terms span { color: var(--muted); font-size: 14px; }

/* ---------- fleet + tracking ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.track > * { min-width: 0; }
.track { display: grid; gap: 16px; margin-top: 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
@media (min-width: 900px) { .track { grid-template-columns: 320px 1fr; gap: 28px; padding: 24px; } }
.track-f label { font-weight: 900; font-size: 20px; display: block; margin-bottom: 10px; }
.track-row { display: flex; gap: 8px; }
.track-row input { flex: 1; width: 100%; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: #0f1115; padding: 0 14px; font-family: var(--mono); font-size: 16px; letter-spacing: .04em; }
.track-f small { display: block; color: var(--muted); margin-top: 8px; font-size: 12.5px; }
.t-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.t-head b { font-size: 18px; }
.t-head span { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.t-bar { position: relative; height: 6px; background: #2a2e36; border-radius: 6px; margin: 18px 0 22px; }
.t-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--orange), var(--amber)); border-radius: 6px; width: 0; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.t-truck { position: absolute; top: 50%; width: 30px; height: 14px; margin: -7px 0 0 -26px; left: 0; transition: left 1.2s cubic-bezier(.2, .7, .2, 1); }
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.t-steps li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--muted); }
.t-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #4a505a; align-self: center; }
.t-steps li.done { color: var(--ink); }
.t-steps li.done::before { background: var(--orange); border-color: var(--orange); }
.t-steps li.now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 177, 0, .2); }
.t-steps time { font-family: var(--mono); font-size: 12px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px 22px; }
@media (min-width: 760px) { .ticks { grid-template-columns: repeat(2, 1fr); } }
.ticks li::before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 8px; }

/* ---------- forms ---------- */
.quote { display: grid; gap: 20px; margin-top: 26px; }
@media (min-width: 1000px) { .quote { grid-template-columns: 1fr 1fr; gap: 30px; } }
.q-form, .apply { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 480px) { .row2.stack { grid-template-columns: 1fr; } }
.q-form label, .apply label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #c9ccd2; }
.q-form input, .q-form select, .apply input:not([type=checkbox]), .apply select {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #0f1115; padding: 0 12px; font-size: 16px; font-weight: 600; color: var(--ink);
  color-scheme: dark; min-width: 0;
}
.q-form input:focus, .q-form select:focus, .apply input:focus, .apply select:focus { border-color: var(--orange); outline: none; }
.err { color: #ff8a65; margin: 0; font-size: 14px; }
.q-route { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; position: relative; }
.q-map { width: 100%; height: auto; }
.q-map .nation { fill: #1d2129; stroke: #3a404b; stroke-width: 1.2; }
.q-map .route { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.q-map .route-bg { fill: none; stroke: rgba(255, 90, 31, .25); stroke-width: 12; stroke-linecap: round; }
.q-map .pt { fill: #fff; stroke: var(--orange); stroke-width: 3; }
.q-map text { fill: #fff; font: 800 22px var(--font); paint-order: stroke; stroke: #121419; stroke-width: 5px; }
.q-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.q-read div { background: #0f1115; border-radius: 12px; padding: 10px; }
.q-read b { display: block; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.q-read span { font-size: 12px; color: var(--muted); }
.q-done, .a-done { background: rgba(47, 211, 107, .1); border: 1px solid rgba(47, 211, 107, .4); border-radius: 14px; padding: 14px 16px; margin-top: 10px; color: #c9f5d8; font-size: 15px; }
.q-done b, .a-done b { color: #fff; }

/* ---------- drivers ---------- */
.runs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 26px; }
@media (min-width: 760px) { .runs { grid-template-columns: repeat(5, 1fr); } }
.run {
  text-align: left; padding: 14px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  display: grid; gap: 3px; transition: border-color .2s, background .2s;
}
.run b { font-size: 18px; font-weight: 900; }
.run span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.run em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--amber); margin-top: 4px; }
.run[aria-selected="true"] { border-color: var(--orange); background: rgba(255, 90, 31, .1); }
.est { margin-top: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.est-top { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; }
.est-top label { font-weight: 700; color: #c9ccd2; font-size: 14px; }
.est-top label b { color: #fff; font-variant-numeric: tabular-nums; margin-left: 6px; }
#pay { font-size: clamp(30px, 6vw, 44px); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
#pay::after { content: " /wk"; font-size: 15px; color: var(--muted); font-weight: 700; }
input[type=range] { width: 100%; margin: 16px 0 6px; accent-color: var(--orange); height: 28px; }
.est-note { margin: 0; color: var(--muted); font-size: 13px; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 700; }
.apply { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.apply h3 { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.apply h3 small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.chips { border: 0; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; font-weight: 700; color: #c9ccd2; margin-bottom: 6px; padding: 0; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.chips input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.consent { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; font-weight: 600 !important; }
.consent input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }

/* ---------- terminal ---------- */
.terminal { padding-bottom: 0; }
.end { text-align: left; }
.end address { font-style: normal; color: var(--muted); font-size: 14px; margin-top: 22px; }
.end .btn-g { color: var(--ink); }
.yard { height: 360px; }
@media (min-width: 760px) { .yard { height: 420px; } }

/* ---------- footer + mobile bar ---------- */
.foot { position: relative; z-index: 6; background: #0a0b0e; color: var(--muted); padding: 22px 16px calc(96px + env(safe-area-inset-bottom)); font-size: 13.5px; text-align: center; }
.foot p { margin: 0 auto; max-width: 720px; }
.foot b { color: var(--ink); }
@media (min-width: 760px) { .foot { padding-bottom: 26px; } }
.mbar {
  position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 52px; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(17, 19, 24, .94); border-top: 1px solid var(--line); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mbar .btn { min-height: 48px; padding: 0 10px; font-size: 15px; }
.mcall { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #23272f; color: #fff; }
.mcall svg { width: 20px; height: 20px; }
@media (min-width: 760px) { .mbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .panel { opacity: 1; transform: none; transition: none; }
  .dot, .map .hub-ring { animation: none; }
}

.t-steps li > span { min-width: 0; }
@media (max-width: 480px) { .t-steps li { grid-template-columns: 14px 1fr; } .t-steps time { grid-column: 2; margin-top: -6px; color: var(--muted); } }

.portal-cta { display: grid; gap: 10px 16px; align-items: center; margin-top: 14px; padding: 16px 18px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(110deg, rgba(255, 90, 31, .16), rgba(255, 90, 31, .04)); border: 1px solid rgba(255, 90, 31, .45); }
@media (min-width: 900px) { .portal-cta { grid-template-columns: auto 1fr auto; } }
.pc-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #48e07f; }
.pc-live i { width: 8px; height: 8px; border-radius: 50%; background: #48e07f; animation: ping 1.8s infinite; }
.pc-t b { display: block; font-size: 17px; }
.pc-t span { color: var(--muted); font-size: 14.5px; }
.pc-go { font-weight: 800; color: var(--orange); white-space: nowrap; }
.track-f small a { color: var(--amber); }

/* ---------- traffic ---------- */
.npcs { z-index: 4; }
.npc .hl { display: none; }
.lights-on .npc .hl { display: inline; }
.npc .tl { transition: fill .8s; }
.lights-on .npc .tl { fill: #ff3030; }

/* ---------- quick quote + load builder ---------- */
.qk { display: grid; gap: 14px; margin-top: 24px; }
.qk-step { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px; }
@media (min-width: 760px) { .qk-step { padding: 22px; } }
.qk-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; font-size: 18px; font-weight: 900; }
.qk-n i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 14px; box-shadow: 0 0 0 4px rgba(255, 90, 31, .18); }
.qk-n small { flex-basis: 100%; padding-left: 38px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
@media (min-width: 760px) { .qk-n small { flex-basis: auto; padding-left: 4px; } }
.qk-sel { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #c9ccd2; }
.qk-sel select, .qk-eq select {
  width: 100%; height: 50px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #0f1115; padding: 0 12px;
  font-size: 16px; font-weight: 700; color: var(--ink); color-scheme: dark; min-width: 0;
}
.qk-sel select:focus { border-color: var(--orange); outline: none; }

/* presets + freight tiles */
.pl-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-presets button {
  display: grid; gap: 2px; padding: 11px 8px; border-radius: 14px; cursor: pointer; text-align: center; color: var(--ink); font: inherit;
  background: linear-gradient(180deg, rgba(255, 90, 31, .16), rgba(255, 90, 31, .04)); border: 1px solid rgba(255, 90, 31, .45);
  transition: transform .15s, border-color .15s, background .15s;
}
.pl-presets button:hover { border-color: var(--orange); background: linear-gradient(180deg, rgba(255, 90, 31, .26), rgba(255, 90, 31, .08)); }
.pl-presets button:active { transform: scale(.97); }
.pl-presets b { font-size: 14.5px; line-height: 1.15; }
.pl-presets span { font-family: var(--mono); font-size: 11px; color: #f0b9a3; }
.pl-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (min-width: 760px) { .pl-items { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pl-item {
  position: relative; display: grid; justify-items: center; gap: 3px; padding: 12px 6px 10px; border-radius: 14px; cursor: pointer; color: var(--ink); font: inherit;
  background: linear-gradient(180deg, #1f232a, #15181d); border: 1px solid rgba(255, 255, 255, .1); touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pl-item:hover { border-color: rgba(255, 255, 255, .28); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .8); }
.pl-item:active { transform: scale(.95); }
.pl-item svg { width: 50px; height: 34px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.pl-item b { font-size: 13.5px; line-height: 1.1; }
.pl-item small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.25; text-align: center; }
.pl-item[data-n]::after {
  content: "×" attr(data-n); position: absolute; top: -7px; right: -5px; min-width: 24px; padding: 3px 7px; border-radius: 999px;
  background: var(--orange); color: #fff; font: 800 11.5px var(--mono); box-shadow: 0 4px 10px rgba(255, 90, 31, .45);
}
.pl-item.bump { animation: pl-bump .3s ease-out; }
@keyframes pl-bump { 40% { transform: scale(1.07); } }

/* the rig: a top-down 53' trailer with a wood floor, and the tractor at the nose */
.pl-stage { margin-top: 18px; }
.pl-rig { display: flex; align-items: center; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
.pl-trailer {
  position: relative; flex: none; width: 91.6%; aspect-ratio: 636 / 98; padding: 3px; border-radius: 5px 3px 3px 5px;
  background: linear-gradient(180deg, #eef0f3, #c9cdd3 50%, #eef0f3);
}
.pl-trailer::before { content: ""; position: absolute; left: -5px; top: 6%; bottom: 6%; width: 5px; border-radius: 3px 0 0 3px; background: repeating-linear-gradient(180deg, #8b9098 0 3px, #b9bec6 3px 9px); }
.pl-trailer::after { content: ""; position: absolute; left: -2px; top: -3px; bottom: -3px; width: 4px; background: linear-gradient(180deg, #ff3b3b 0 9%, transparent 9% 91%, #ff3b3b 91%); border-radius: 2px; }
.pl-trailer.over { background: linear-gradient(180deg, #ffb4b4, #ff6b6b 50%, #ffb4b4); }
.pl-floor {
  position: absolute; inset: 3px; overflow: hidden; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 13.25 - 1px), rgba(0, 0, 0, .22) calc(100% / 13.25 - 1px) calc(100% / 13.25)),
    repeating-linear-gradient(180deg, #6b4d33 0 11%, #5a3f29 11% 12.5%),
    #6b4d33;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}
.pl-empty { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: rgba(255, 236, 210, .75); text-align: center; padding: 0 10px; transition: opacity .3s; }
.pl-empty.gone { opacity: 0; }
@media (max-width: 759px) { .pl-empty { font-size: 11px; } }
.pl-cab { flex: none; width: 8.4%; height: auto; margin-left: -1px; }
.pl-ruler { display: flex; justify-content: space-between; margin: 7px 8.4% 0 0; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* freight, drawn from above */
.pl-box {
  position: absolute; padding: 0; border: 0; cursor: pointer; border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .3);
  transition: left .55s cubic-bezier(.2, .8, .2, 1), top .55s cubic-bezier(.2, .8, .2, 1);
}
.pl-box.drop { animation: pl-drop .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes pl-drop { 0% { transform: scale(1.5); opacity: 0; } 55% { transform: scale(.94); opacity: 1; } 100% { transform: none; } }
.pl-box:hover { filter: brightness(1.15); }
.pl-box.out { outline: 2px solid #ff4d4d; outline-offset: -2px; animation: pl-out 1s ease-in-out infinite alternate; }
@keyframes pl-out { to { filter: brightness(.6); } }
.f-pal {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(90deg, transparent 0 calc(33.34% - 1px), rgba(90, 55, 20, .5) calc(33.34% - 1px) 33.34%),
    repeating-linear-gradient(180deg, transparent 0 calc(50% - 1px), rgba(90, 55, 20, .5) calc(50% - 1px) 50%),
    #d8b27a;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5), inset 0 0 0 2px #9a7140;
}
.f-cold {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%),
    repeating-linear-gradient(90deg, transparent 0 calc(33.34% - 1px), rgba(20, 95, 105, .4) calc(33.34% - 1px) 33.34%),
    repeating-linear-gradient(180deg, transparent 0 calc(50% - 1px), rgba(20, 95, 105, .4) calc(50% - 1px) 50%),
    #bfeef0;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5), inset 0 0 0 2px #5fb7bd, 0 0 10px rgba(150, 240, 255, .35);
}
.f-crate {
  background:
    linear-gradient(to top right, transparent calc(50% - 1.5px), #7a5228 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 1.5px), #7a5228 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    repeating-linear-gradient(180deg, #c99a5e 0 22%, #a8783f 22% 25%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5), inset 0 0 0 2px #7a5228;
}
.f-drum { background: radial-gradient(circle closest-side, #f6cb75 0 55%, #c98f32 57% 72%, #7a5520 74% 82%, transparent 84%) 0 0 / 50% 50%, #3d3221; }
.f-coil { border-radius: 50%; background: radial-gradient(circle closest-side, #23262c 0 22%, #8d949d 24% 30%, #d3d7dc 32% 52%, #a2a9b1 54% 58%, #d3d7dc 60% 86%, #8d949d 88% 100%); box-shadow: 0 3px 4px rgba(0, 0, 0, .55); }
.f-mach {
  background:
    radial-gradient(circle at 72% 50%, #2a2e36 0 13%, transparent 14%),
    linear-gradient(90deg, transparent 0 18%, rgba(0, 0, 0, .25) 18% 46%, transparent 46%) 0 30% / 100% 40% no-repeat,
    linear-gradient(160deg, #ff9b6e, #e8622f);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .5), inset 0 0 0 3px #f5b100, inset 0 0 0 5px #16181c;
}

/* fill meters */
.pl-meters { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .pl-meters { grid-template-columns: 1fr 1fr auto; align-items: end; gap: 18px; } }
.pl-mt { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.pl-mt span { color: var(--muted); font-weight: 700; }
.pl-mt b { font-variant-numeric: tabular-nums; }
.pl-meter.bad .pl-mt b { color: #ff7b7b; }
.pl-bar { position: relative; height: 12px; border-radius: 8px; overflow: hidden; background: linear-gradient(90deg, #2fd36b, #f5b100 72%, #ff5a1f); box-shadow: 0 0 14px rgba(245, 177, 0, .25); }
.pl-bar i { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; background: #0d0f13; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pl-meter.bad .pl-bar { background: #ff4d4d; box-shadow: 0 0 14px rgba(255, 77, 77, .5); }
.pl-acts { display: flex; gap: 8px; }
.pl-acts .btn-s { height: 40px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.pl-acts .btn-s:hover { border-color: rgba(255, 255, 255, .5); }

/* price */
.qk-grid { display: grid; gap: 14px; }
@media (min-width: 1000px) { .qk-grid { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; } }
.qk-price {
  padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255, 90, 31, .4);
  background: radial-gradient(circle at 0 0, rgba(255, 90, 31, .28), transparent 65%), #0f1115;
}
.qk-price span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.qk-price b { display: block; margin-top: 4px; font-size: clamp(30px, 8vw, 44px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qk-price b.dim { font-size: 24px; color: var(--muted); }
.qk-price small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.pl-rec { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(245, 177, 0, .1); border: 1px solid rgba(245, 177, 0, .35); font-size: 14.5px; color: #f4e2b0; }
.pl-rec b { color: #fff; }
.pl-rec:empty { display: none; }
.qk-form { margin-top: 12px; }
.qk-eq { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #c9ccd2; }
.qk-eq select { height: 44px; font-size: 15px; font-weight: 600; }
.qk-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.q-stops { margin: 10px 2px 0; font-size: 13.5px; color: var(--muted); }
.q-stops:empty { display: none; }
.q-stops b { color: var(--ink); }
.q-map .stop-f { fill: var(--amber); stroke: #121419; stroke-width: 3; }
.q-map .stop-r { fill: #7fb2ff; stroke: #121419; stroke-width: 3; }
.q-map .q-truck { fill: #fff; stroke: var(--orange); stroke-width: 3; }

@media (prefers-reduced-motion: reduce) {
  .pl-box { transition: none; animation: none !important; }
}
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 5px 0 0; }
.lg-f { background: var(--amber); }
.lg-r { background: #7fb2ff; }
@media (max-width: 759px) {
  .qk-step { padding: 14px 12px; }
  .qk-n { font-size: 16.5px; margin-bottom: 12px; }
  .qk-n i { width: 26px; height: 26px; font-size: 13px; }
  .qk-n small { padding-left: 0; font-size: 13px; }
  .pl-presets button { padding: 9px 4px; }
  .pl-presets b { font-size: 13px; }
  .pl-presets span { font-size: 10.5px; }
  .pl-item { padding: 10px 4px 8px; }
  .pl-item svg { width: 42px; height: 29px; }
  .pl-item b { font-size: 12.5px; }
  .pl-item small { font-size: 10px; }
  .pl-ruler { font-size: 9.5px; }
  .q-read b { font-size: 18px; }
  .q-read span { font-size: 11px; }
  .q-read div { padding: 9px 8px; }
}
@media (max-width: 759px) {
  .pl-trailer { width: 88%; aspect-ratio: 636 / 150; }
  .pl-cab { width: 12%; }
  .pl-ruler { margin-right: 12%; }
  .qk-price b { font-size: clamp(26px, 7.4vw, 44px); }
}
