/* ============================================================
   DESIGN SYSTEM  —  Warm graphite + amber.  Apple-calibrated.
   Performance rule: no backdrop-filter on scrolling content.
   Materials are opaque elevated surfaces (cheap to composite);
   live blur is reserved for the single sticky nav bar only.
   ============================================================ */
:root {
  /* Surfaces (warm near-black graphite) */
  --bg:          #0d0d0f;
  --surface:     #161618;   /* cards            */
  --surface-2:   #1d1d21;   /* raised controls  */
  --surface-3:   #242429;   /* hover / active   */

  /* Hairlines & text (Apple grays) */
  --hair:        rgba(255,255,255,0.08);
  --hair-strong: rgba(255,255,255,0.14);
  --text:        #f5f5f7;
  --muted:       #a1a1a6;
  --faint:       #6e6e73;

  /* Accent — warm amber → coral */
  --accent:       #f5a623;
  --accent-2:     #ff8a3d;
  --accent-3:     #ffc061;
  --accent-rgb:   245,166,35;
  --accent2-rgb:  255,138,61;
  --on-accent:    #1a1206;   /* text on accent fills */
  --accent-soft:  rgba(var(--accent-rgb),0.14);
  --accent-line:  rgba(var(--accent-rgb),0.34);
  --grad:         linear-gradient(135deg, #f5a623 0%, #ff8a3d 100%);

  /* Semantic */
  --green:       #30d158;  --green-soft: rgba(48,209,88,0.14);  --green-line: rgba(48,209,88,0.32);
  --red:         #ff6b6b;  --red-soft:   rgba(255,107,107,0.14); --red-line:  rgba(255,107,107,0.34);
  --danger:      #ff6b6b;

  /* Radius scale */
  --r-xl: 22px; --r-lg: 18px; --r: 14px; --r-sm: 10px; --pill: 999px;

  /* Elevation — soft, layered (Apple keeps shadows quiet in dark UI) */
  --sh-sm: 0 1px 2px rgba(0,0,0,0.4);
  --sh:    0 6px 20px -8px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
  --sh-lg: 0 24px 60px -24px rgba(0,0,0,0.75), 0 2px 6px rgba(0,0,0,0.4);
  --glow:  0 12px 32px -12px rgba(var(--accent-rgb),0.5);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.28, 0.6, 1);
  --dur: 0.22s;

  color-scheme: dark;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Fixed, static ambient warmth — painted once, never animated */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 82% -5%, rgba(var(--accent-rgb),0.10), transparent 60%),
    radial-gradient(55% 45% at 10% 8%,  rgba(var(--accent2-rgb),0.07), transparent 60%),
    radial-gradient(70% 60% at 50% 108%, rgba(var(--accent-rgb),0.05), transparent 60%);
}

::selection { background: rgba(var(--accent-rgb),0.30); color: #fff; }

a { color: var(--text); text-decoration: none; }

/* Focus — keyboard only */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.13); border-radius: var(--pill);
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.24); background-clip: padding-box; }

/* ---------------- Layout ---------------- */
.shell    { max-width: 1120px; margin: 0 auto; padding: 22px 22px 90px; }
.lp-shell { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------------- Brand ---------------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; background: var(--grad); color: var(--on-accent);
  font-size: 19px; font-weight: 800; overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb),0.6);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.brand__tag  { font-size: 12.5px; color: var(--muted); margin-top: -2px; }

/* ---------------- Nav (landing) ---------------- */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 1180px; margin: 0 auto; padding: 14px 22px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
/* The ONE place we allow live blur — a thin bar is cheap to composite */
.lp-nav.scrolled {
  background: rgba(13,13,15,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}
.lp-nav__links { display: flex; align-items: center; gap: 6px; }
.lp-nav__links a.link {
  padding: 8px 14px; font-size: 14px; font-weight: 550; color: var(--muted);
  border-radius: var(--r-sm); transition: color 0.16s var(--ease);
}
.lp-nav__links a.link:hover { color: var(--text); }
@media (max-width: 680px){ .lp-nav__links a.link:not(.btn){ display: none; } }

/* Segmented control (admin) */
.nav-pill {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--pill);
  background: var(--surface-2); border: 1px solid var(--hair);
}
.nav-pill a {
  padding: 7px 16px; border-radius: var(--pill); font-size: 13.5px;
  font-weight: 550; color: var(--muted); transition: color 0.16s var(--ease);
}
.nav-pill a.active { background: var(--grad); color: var(--on-accent); font-weight: 650; }
.nav-pill a:not(.active):hover { color: var(--text); }

/* Sticky glass header (admin shell) */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 -22px 26px; padding: 15px 22px;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.topbar.stuck {
  background: rgba(13,13,15,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}

/* ---------------- Surface / card ---------------- */
.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}
/* Subtle top sheen (a cheap 1px gradient border, no blur) */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ---------------- Buttons ---------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent;
  background: var(--grad); color: var(--on-accent);
  font: inherit; font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--glow);
  transition: transform 0.18s var(--spring), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 46%);
}
.btn:hover { filter: brightness(1.04); box-shadow: 0 16px 38px -12px rgba(var(--accent-rgb),0.62); }
.btn:active { transform: scale(0.975); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn.ghost {
  background: var(--surface-2); border: 1px solid var(--hair);
  color: var(--text); box-shadow: none;
}
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: var(--surface-3); border-color: var(--hair-strong); filter: none; }
.btn.danger { background: linear-gradient(135deg, #ff6b6b, #ff8f5a); color: #fff; box-shadow: 0 12px 30px -12px rgba(255,107,107,0.5); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }

/* ---------------- Inputs ---------------- */
.input {
  width: 100%; padding: 13px 15px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--hair);
  color: var(--text); font: inherit; font-size: 15px; outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.input::placeholder { color: var(--faint); }
.input:hover:not(:focus) { border-color: var(--hair-strong); }
.input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface-3);
}
textarea.input { resize: vertical; min-height: 76px; }
select.input { appearance: none; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero-wrap { position: relative; padding: 44px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
@media (max-width: 940px){ .hero-grid { grid-template-columns: 1fr; gap: 26px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.hero-title {
  font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 18px;
}
.hero-title .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); max-width: 520px; margin: 0 0 28px; letter-spacing: -0.01em; }

.track-card {
  padding: 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-lg);
  max-width: 560px;
}
.track-card .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 10px 2px; font-weight: 650; }

.track-form { display: flex; gap: 10px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.trust-row .ti { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.trust-row .ti svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

/* Hero visual — network globe */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.globe-wrap { position: relative; width: min(430px, 82vw); aspect-ratio: 1; }
.globe {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 22%, rgba(var(--accent-rgb),0.22), transparent 55%),
    radial-gradient(120% 120% at 76% 82%, rgba(var(--accent2-rgb),0.24), transparent 55%),
    radial-gradient(circle at 50% 50%, #0e1514 0, #0c100f 68%, #0a0d0c 100%);
  border: 1px solid var(--hair-strong);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.55), 0 30px 80px -30px rgba(var(--accent-rgb),0.3);
  overflow: hidden;
}
.globe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe .halo {
  position: absolute; inset: -14%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(var(--accent-rgb),0.16), transparent 40%);
  animation: spin 24s linear infinite;
  will-change: transform; transform: translateZ(0);
}
@keyframes spin { to { transform: rotate(360deg); } }

.grid-line { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.route { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 220; animation: dash 5s linear infinite; }
.route.r1 { stroke: var(--accent); }
.route.r2 { stroke: var(--accent-2); animation-delay: 1.4s; }
.route.r3 { stroke: var(--accent-3); animation-delay: 2.8s; }
@keyframes dash { to { stroke-dashoffset: -226; } }
.node { fill: #fff; }
.node-glow { fill: var(--accent); opacity: 0.9; }

.float-card {
  position: absolute; padding: 12px 14px; border-radius: 14px;
  background: rgba(24,24,28,0.94); border: 1px solid var(--hair-strong);
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 11px; font-size: 13px;
  animation: bob 6s ease-in-out infinite;
  will-change: transform; transform: translateZ(0);
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.float-card .k { font-size: 11px; color: var(--faint); }
.float-card .v { font-weight: 650; font-size: 13.5px; }
.float-card.fc1 { top: 4%; left: -6%; }
.float-card.fc2 { bottom: 12%; right: -8%; animation-delay: 1.5s; }
.float-card.fc3 { bottom: -2%; left: 8%; animation-delay: 3s; }
@media (max-width: 940px){ .float-card.fc1{ left: 0; } .float-card.fc2{ right: 0; } }
@media (max-width: 520px){ .float-card{ transform: scale(0.86) translateZ(0); } }
@keyframes bob { 50% { transform: translateY(-11px); } }

/* ---------------- Stats ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  margin: 48px 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hair); background: var(--hair);
}
@media (max-width: 680px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat { background: var(--surface); padding: 24px 20px; text-align: center; }
.stat .n { font-size: clamp(24px,3.4vw,34px); font-weight: 700; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------------- Sections ---------------- */
.section { padding: 62px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 42px; }
.sec-head .kicker { font-size: 12.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { font-size: clamp(27px,3.6vw,40px); letter-spacing: -0.03em; font-weight: 700; margin: 10px 0 12px; }
.sec-head p { color: var(--muted); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 860px){ .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hair);
  transition: transform var(--dur) var(--spring), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--hair-strong); box-shadow: var(--sh-lg); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--on-accent); background: var(--grad); box-shadow: 0 10px 22px -12px rgba(var(--accent-rgb),0.6);
}
.feature .ic svg { width: 23px; height: 23px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 860px){ .steps { grid-template-columns: 1fr; } }
.step-card { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hair); }
.step-card .num {
  font-size: 13px; font-weight: 750; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

.cta {
  margin: 30px 0 10px; padding: 50px 40px; text-align: center; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(var(--accent-rgb),0.16), transparent 62%),
    var(--surface);
  border: 1px solid var(--hair-strong); box-shadow: var(--sh-lg);
}
.cta h2 { font-size: clamp(25px,3.4vw,36px); letter-spacing: -0.03em; font-weight: 700; margin: 0 0 10px; }
.cta p { color: var(--muted); margin: 0 auto 24px; max-width: 440px; }

/* ---------------- Footer ---------------- */
.lp-footer { border-top: 1px solid var(--hair); margin-top: 60px; padding: 44px 0 34px; }
.lp-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; }
.lp-footer .about { max-width: 300px; color: var(--muted); font-size: 13.5px; }
.lp-footer .col h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 12px; font-weight: 650; }
.lp-footer .col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; transition: color 0.16s var(--ease); }
.lp-footer .col a:hover { color: var(--text); }
.lp-footer .base { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--faint); font-size: 12.5px; }

/* ============================================================
   RESULT PANEL (tracking output)
   ============================================================ */
.result { display: none; }
.result.show { display: block; animation: rise 0.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.result-head {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-start;
  padding: 26px 30px 22px;
}
.result-head .tn { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.result-head h2 { margin: 4px 0 2px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.result-head .route { color: var(--muted); font-size: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--pill);
  font-size: 13px; font-weight: 650;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.badge.delivered { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.badge.exception { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.eta-row { display: flex; gap: 26px; flex-wrap: wrap; padding: 0 30px 24px; }
.eta-tile {
  flex: 1; min-width: 150px; background: var(--surface-2); border: 1px solid var(--hair);
  border-radius: var(--r); padding: 16px 18px;
  transition: border-color var(--dur) var(--ease);
}
.eta-tile .k { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }
.eta-tile .v { font-size: 18px; font-weight: 650; margin-top: 4px; letter-spacing: -0.02em; }
.eta-tile .v.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Progress stepper */
.stepper { display: flex; padding: 8px 30px 30px; gap: 6px; }
.step { flex: 1; text-align: center; position: relative; }
.step .rail { height: 5px; border-radius: var(--pill); background: rgba(255,255,255,0.08); overflow: hidden; position: relative; }
.step .rail > span { position: absolute; inset: 0; width: 0; background: var(--grad); transition: width 0.6s var(--ease); }
.step.done .rail > span, .step.current .rail > span { width: 100%; }
.step.current .rail > span { width: 60%; box-shadow: 0 0 14px rgba(var(--accent-rgb),0.7); }
.step .lbl { margin-top: 10px; font-size: 12px; color: var(--faint); font-weight: 600; }
.step.done .lbl { color: var(--muted); }
.step.current .lbl { color: var(--text); }
.step .node { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.12); margin: 8px auto 0; border: 2px solid transparent; }
.step.done .node { background: var(--accent); }
.step.current .node { background: var(--accent-2); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 16px rgba(var(--accent-rgb),0.6); animation: pulse 1.9s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb),0), 0 0 16px rgba(var(--accent-rgb),0.6); } }

/* Split (timeline + map) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 22px 22px; }
@media (max-width: 760px){ .split { grid-template-columns: 1fr; } }
.subcard { background: var(--surface-2); border: 1px solid var(--hair); border-radius: var(--r); padding: 20px; }
.subcard h3 { margin: 0 0 16px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 650; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 24px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: -2px; width: 1px; background: var(--hair-strong); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:first-child .t-note { color: var(--text); font-weight: 600; }
.timeline .t-note { font-size: 14px; }
.timeline .t-meta { font-size: 12px; color: var(--faint); margin-top: 3px; }

/* Map */
#map, .map { height: 260px; width: 100%; border-radius: var(--r); border: 1px solid var(--hair); z-index: 0; background: #0a0d0c; }
.map-loc { font-size: 13px; color: var(--muted); margin-top: 12px; }
.map-loc b { color: var(--text); font-weight: 600; }
.leaflet-container { background: #0a0d0c !important; font: inherit; }
.leaflet-control-attribution { background: rgba(13,13,15,0.6) !important; color: var(--faint) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--hair) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-2) !important; color: var(--text) !important; }

/* Notice / error */
.notice {
  display: none; margin: 14px auto 0; max-width: 560px; padding: 13px 16px; border-radius: var(--r);
  background: var(--red-soft); border: 1px solid var(--red-line); color: #ffb3b3; font-size: 14px; text-align: center;
}
.notice.show { display: block; animation: rise 0.3s var(--ease) both; }

/* ============================================================
   ADMIN CONSOLE
   ============================================================ */
.console-intro { margin-bottom: 22px; }
.console-intro h1 { font-size: clamp(23px,3vw,31px); letter-spacing: -0.03em; font-weight: 700; margin: 0 0 6px; }
.console-intro p { color: var(--muted); margin: 0; font-size: 14.5px; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.summary-chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--hair);
}
.summary-chip .n { font-weight: 750; font-size: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.summary-chip .l { font-size: 12.5px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px){ .grid-2 { grid-template-columns: 1fr; } }

.form-pad { padding: 24px; }
.section-title { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; margin: 0 0 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 550; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.divider { height: 1px; background: var(--hair); margin: 20px 0; }

/* Shipment list */
.ship-list { display: flex; flex-direction: column; gap: 12px; }
.ship-item {
  padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--hair);
  cursor: pointer; transition: transform var(--dur) var(--spring), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ship-item:hover { border-color: var(--hair-strong); background: var(--surface-3); transform: translateY(-2px); }
.ship-item.active { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.ship-item .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ship-item .tn { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.ship-item .name { font-weight: 650; margin-top: 4px; letter-spacing: -0.01em; }
.ship-item .route { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

.chip {
  font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.chip.delivered { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.chip.exception { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }

.stage-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.stage-btns button {
  padding: 8px 12px; font: inherit; font-size: 12.5px; font-weight: 550; border-radius: var(--r-sm); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--hair); color: var(--muted);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.stage-btns button:hover { color: var(--text); border-color: var(--hair-strong); }
.stage-btns button.on { background: var(--grad); color: var(--on-accent); border-color: transparent; font-weight: 650; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); border: 1px solid var(--hair-strong); color: var(--text);
  padding: 12px 20px; border-radius: var(--r); font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; z-index: 999;
  transition: opacity var(--dur) var(--ease), transform 0.32s var(--spring);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty-state { text-align: center; color: var(--faint); padding: 50px 20px; font-size: 14px; line-height: 1.6; }
.foot { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 40px; }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   MOBILE MENU  +  PAGE TEMPLATES  +  RESPONSIVE PASS
   ============================================================ */
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--hair); color: var(--text);
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .lp-nav { position: relative; }
  .nav-toggle { display: inline-flex; }
  .lp-nav__links {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(20,20,24,0.97);
    backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 10px;
    box-shadow: var(--sh-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .lp-nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .lp-nav__links a.link { display: block !important; padding: 12px 14px; font-size: 15px; border-radius: var(--r-sm); }
  .lp-nav__links a.link:not(.btn):hover { background: var(--surface-2); }
  .lp-nav__links a.link.btn { text-align: center; margin-top: 4px; }
}
@media (min-width: 721px) { .nav-toggle { display: none; } }

/* ---- Generic marketing/legal page ---- */
.page { padding: 22px 0 90px; }
.page-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 46px 0 42px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.035em; font-weight: 700; margin: 14px 0 14px; line-height: 1.05; }
.page-hero .lead { font-size: clamp(15px, 1.7vw, 19px); color: var(--muted); margin: 0 auto; max-width: 580px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { color: var(--text); font-size: 20px; letter-spacing: -0.02em; margin: 34px 0 10px; font-weight: 650; }
.prose h3 { color: var(--text); font-size: 16px; margin: 22px 0 8px; font-weight: 650; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); }
.updated { font-size: 13px; color: var(--faint); text-align: center; margin-top: 8px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .row-item { display: flex; gap: 13px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.contact-info .row-item:last-child { border-bottom: none; }
.contact-info .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.contact-info .ic svg { width: 19px; height: 19px; }
.contact-info .k { font-size: 12.5px; color: var(--faint); }
.contact-info .v { font-weight: 600; margin-top: 2px; }
.form-note { display: none; margin-top: 14px; padding: 13px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-size: 14px; }
.form-note.show { display: block; animation: rise 0.3s var(--ease) both; }

/* ---- FAQ / Help ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; padding: 2px 18px; transition: border-color 0.2s var(--ease); }
.faq details[open] { border-color: var(--hair-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 0 0 16px; line-height: 1.65; font-size: 14.5px; }

/* ---- Careers roles ---- */
.roles { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.role { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); transition: border-color 0.2s var(--ease), transform 0.2s var(--spring); }
.role:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.role .t { font-weight: 650; letter-spacing: -0.01em; }
.role .m { font-size: 13px; color: var(--muted); margin-top: 3px; }
.role .arrow { color: var(--accent); font-size: 18px; flex: 0 0 auto; }
@media (max-width: 560px) { .role { flex-direction: column; align-items: flex-start; } .role .arrow { display: none; } }

/* ---- Small-screen refinements ---- */
@media (max-width: 600px) {
  .hero-wrap { padding: 24px 0 6px; }
  .result-head, .eta-row, .split { padding-left: 18px; padding-right: 18px; }
  .stepper { padding-left: 16px; padding-right: 16px; gap: 3px; }
  .step .lbl { font-size: 10px; }
  .form-pad { padding: 18px; }
  .btn { padding: 12px 18px; }
  .section { padding: 46px 0; }
  .cta { padding: 38px 22px; }
}
@media (max-width: 420px) {
  .track-form { flex-direction: column; }
  .track-form .btn { width: 100%; }
  .eta-row { gap: 12px; }
}

/* ============================================================
   CONTRAST FIX  —  button text must stay dark on the accent fill
   even when the element also carries the low-contrast .link color.
   ============================================================ */
.lp-nav__links a.link.btn,
.lp-nav__links a.link.btn:hover { color: var(--on-accent); }
a.btn, a.btn:hover, a.btn:visited { color: var(--on-accent); }
a.btn.ghost, a.btn.ghost:hover { color: var(--text); }
a.btn.danger, a.btn.danger:hover { color: #fff; }

/* ============================================================
   ANIMATED PACKAGE JOURNEY (customer view — replaces the map)
   ============================================================ */
.journey { padding: 40px 30px 24px; }
.jtrack { position: relative; height: 44px; }
.jlane { position: absolute; top: 20px; height: 6px; border-radius: var(--pill); background: rgba(255,255,255,0.09); }
.jfill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: var(--pill);
  background: var(--grad); box-shadow: 0 0 14px rgba(var(--accent-rgb),0.5);
  transition: width 1.1s var(--ease);
}
.jnode {
  position: absolute; top: 23px; width: 12px; height: 12px; margin-left: -6px; margin-top: -6px;
  border-radius: 50%; background: var(--surface-3); border: 2px solid rgba(255,255,255,0.16); z-index: 1;
}
.jnode.done { background: var(--accent); border-color: var(--accent); }
.jnode.current {
  background: var(--accent-2); border-color: transparent;
  box-shadow: 0 0 0 5px var(--accent-soft), 0 0 18px rgba(var(--accent-rgb),0.6);
  animation: pulse 1.9s infinite;
}
.jveh {
  position: absolute; top: -4px; margin-left: -18px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--grad); color: var(--on-accent); box-shadow: var(--glow);
  transition: left 1.1s var(--ease); z-index: 3;
}
.jveh svg { width: 19px; height: 19px; }
.jveh.bob { animation: vbob 1.6s ease-in-out infinite; }
@keyframes vbob { 50% { transform: translateY(-3px); } }
.jlabels { display: flex; margin-top: 15px; }
.jlabel { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--faint); padding: 0 3px; line-height: 1.3; }
.jlabel.done { color: var(--muted); }
.jlabel.current { color: var(--text); }
.jcaption { margin-top: 20px; font-size: 13.5px; color: var(--muted); text-align: center; }
.jcaption b { color: var(--text); font-weight: 650; }
.journey.exception .jfill { background: linear-gradient(135deg, #ff6b6b, #ff8f5a); box-shadow: 0 0 14px rgba(255,107,107,0.5); }
.journey.exception .jveh { background: linear-gradient(135deg, #ff6b6b, #ff8f5a); color: #fff; }
.journey.exception .jnode.current { animation: none; box-shadow: 0 0 0 5px var(--red-soft), 0 0 18px rgba(255,107,107,0.6); background: var(--red); }

@media (max-width: 600px) {
  .journey { padding: 34px 16px 20px; }
  .jlabel { font-size: 9.5px; }
  .jveh { width: 30px; height: 30px; margin-left: -15px; }
}
@media (prefers-reduced-motion: reduce) {
  .jfill, .jveh { transition: none !important; }
  .jveh.bob { animation: none !important; }
}

/* ============================================================
   ADMIN LOGIN GATE
   ============================================================ */
.login-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 22px;
  background:
    radial-gradient(60% 50% at 82% -5%, rgba(var(--accent-rgb),0.10), transparent 60%),
    radial-gradient(55% 45% at 10% 8%, rgba(var(--accent2-rgb),0.07), transparent 60%),
    var(--bg);
}
.login-card { width: 100%; max-width: 400px; }
.login-head { text-align: center; margin-bottom: 20px; }
.login-head h1 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 6px; }
.login-head p { color: var(--muted); font-size: 14px; margin: 0; }
.login-err { color: var(--red); font-size: 13px; margin-top: 12px; text-align: center; display: none; }
.login-err.show { display: block; animation: rise 0.25s var(--ease) both; }
