/* ==========================================================================
   Eleven11 Courier — design system (dark-first)

   The one recurring device is the "route line": a dashed path between a
   pickup dot and a drop-off dot, with a moving marker standing in for the
   package. It appears in the hero, the dashboard, and every shipment page —
   a single visual idea that ties back to what this product actually does,
   instead of decorative gradient blobs. Everything else stays quiet: one
   dark canvas, one action color (signal orange), one status color (signal
   mint) for anything "live".
   ========================================================================== */

:root {
  --bg: #0a0d12;
  --bg-raise: #0d1118;
  --surface: #12161f;
  --surface-2: #181d28;
  --surface-sunken: #0d1118;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);

  --ink: #f3f4f7;
  --ink-soft: #9aa3b5;
  --ink-faint: #5b6478;

  --brand: #ff6a2c;
  --brand-2: #ffc247;
  --brand-ink: #ff8a4c;
  --brand-glow: rgba(255, 106, 44, 0.38);

  --signal: #32e0a1;
  --signal-ink: #1fae7c;
  --signal-bg: rgba(50, 224, 161, 0.14);

  --blue: #5b7cff;
  --blue-ink: #7d98ff;

  --ok: #32e0a1;
  --ok-bg: rgba(50, 224, 161, 0.14);
  --bad: #ff5470;
  --bad-bg: rgba(255, 84, 112, 0.14);
  --neutral-bg: rgba(255, 255, 255, 0.06);
  --active-bg: rgba(91, 124, 255, 0.16);
  --active-fg: #8fa5ff;
  --warn: #ffb020;
  --warn-bg: rgba(255, 176, 32, 0.14);

  --radius-sm: 9px;
  --radius: 15px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.65);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Sora', var(--font-sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 2rem; margin: 0 0 6px; font-weight: 800; }
h2 { font-size: 1.3rem; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 1.04rem; margin: 0 0 8px; font-weight: 700; }
.subtitle { color: var(--ink-soft); margin: 0 0 24px; font-size: 1.04rem; }

/* ---------- top nav ---------- */

.topbar {
  background: rgba(10, 13, 18, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; color: var(--ink); }
.brand-mark {
  width: 31px; height: 31px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -4px var(--brand-glow);
  flex-shrink: 0;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand .dim { color: var(--ink-faint); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 19px; flex-wrap: wrap; font-size: 0.9rem; }
.nav a:not(.btn) { color: var(--ink-soft); font-weight: 600; text-decoration: none; position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transition: transform .15s ease;
}
.nav a.active::after, .nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav a.active, .nav a:not(.btn):hover { color: var(--ink); }
.nav-user { font-size: 0.84rem; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.role-pill {
  background: var(--neutral-bg); color: var(--ink-soft); font-size: 0.66rem; font-weight: 800;
  padding: 3px 9px; border-radius: 20px; letter-spacing: 0.04em;
}

.page { max-width: 1120px; margin: 0 auto; padding: 32px 20px 72px; }
.page.full-bleed { max-width: none; padding: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0d12; border: none; border-radius: 12px;
  padding: 12px 20px; font-size: 0.93rem; font-weight: 800;
  cursor: pointer; text-align: center; font-family: inherit;
  box-shadow: 0 10px 24px -10px var(--brand-glow);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px -10px var(--brand-glow); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 7px 13px; font-size: 0.82rem; border-radius: 9px; box-shadow: none; }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); transform: none; filter: none; }
.btn-secondary { background: linear-gradient(135deg, var(--blue), #8fa5ff); color: #0a0d12; box-shadow: 0 10px 24px -10px rgba(91, 124, 255, 0.4); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---------- cards & layout ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card-tight { padding: 18px 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

/* bento-style stat row: first tile a little wider, rest even — a mosaic
   rather than identical repeated cards */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-row .stat-tile:first-child { grid-column: span 2; }
@media (max-width: 560px) { .stat-row .stat-tile:first-child { grid-column: span 1; } }
.stat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat-tile .stat-label { font-size: 0.74rem; font-weight: 700; color: var(--ink-faint); margin-bottom: 6px; }
.stat-tile .stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.stat-tile .stat-value.accent { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 0.76rem; color: var(--ink-faint); font-weight: 400; }
.checkbox-field label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; }
.checkbox-field input[type="checkbox"] { width: auto; accent-color: var(--brand); }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chip {
  background: var(--surface-2); border: 1.5px solid var(--border); color: var(--ink-soft);
  font-size: 0.8rem; font-weight: 700; padding: 7px 13px; border-radius: 20px; cursor: pointer;
  font-family: inherit; transition: all .12s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.chip-active { background: var(--brand); border-color: var(--brand); color: #0a0d12; }

input, select, textarea {
  background: var(--surface-2);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.93rem;
  font-family: inherit;
  width: 100%;
  transition: border-color .12s ease, background .12s ease;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(255, 106, 44, 0.14);
}
select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6478' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px;
}

/* ---------- badges & pills ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.01em;
  padding: 4px 12px 4px 10px; border-radius: 20px;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-neutral { background: var(--neutral-bg); color: var(--ink-soft); }
.tone-active { background: var(--active-bg); color: var(--active-fg); }
.tone-good { background: var(--ok-bg); color: var(--ok); }
.tone-bad { background: var(--bad-bg); color: var(--bad); }

.alert { border-radius: var(--radius-sm); padding: 13px 18px; margin-bottom: 18px; font-size: 0.9rem; font-weight: 600; border: 1px solid transparent; }
.alert-error { background: var(--bad-bg); color: var(--bad); border-color: rgba(255, 84, 112, 0.25); }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: rgba(50, 224, 161, 0.25); }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: rgba(255, 176, 32, 0.25); }

/* ---------- tables ---------- */

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border-soft); }
th { color: var(--ink-faint); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr { transition: background .1s ease; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* ---------- hero ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(50, 224, 161, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(50, 224, 161, 0); }
}
@keyframes dashMove {
  to { background-position: -24px 0; }
}

.hero-wrap {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 106, 44, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 86% 82%, rgba(50, 224, 161, 0.1) 0%, transparent 42%),
    var(--bg);
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid var(--border-soft);
}
.hero-wrap .grid-overlay {
  position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 100%);
}

.hero {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  padding: 92px 20px 54px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 56px 20px 40px; } }

.hero > div:first-child > * { animation: fadeUp 0.7s cubic-bezier(.2,.7,.3,1) both; }
.hero .eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: .08s; }
.hero p.lead { animation-delay: .16s; }
.hero .btn-row { animation-delay: .24s; }
.hero .hero-trust { animation-delay: .32s; }
.mock-card { animation: fadeUp 0.8s cubic-bezier(.2,.7,.3,1) .2s both; }

.stat-strip {
  position: relative;
  max-width: 1040px; margin: 0 auto; padding: 0 20px;
  transform: translateY(-46px);
}
.stat-strip-inner {
  background: rgba(18, 22, 31, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
@media (max-width: 760px) { .stat-strip-inner { grid-template-columns: repeat(2, 1fr); } }
.stat-strip-item { padding: 22px 20px; text-align: center; border-right: 1px solid var(--border-soft); }
.stat-strip-item:last-child { border-right: none; }
@media (max-width: 760px) { .stat-strip-item:nth-child(2) { border-right: none; } .stat-strip-item:nth-child(1), .stat-strip-item:nth-child(2) { border-bottom: 1px solid var(--border-soft); } }
.stat-strip-item .num { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--brand-ink); }
.stat-strip-item .lbl { font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; margin-top: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: #ffd8b8;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(50,224,161,0.5); animation: ringPulse 1.8s ease-out infinite; }

.hero h1 { font-size: 3.2rem; line-height: 1.04; margin-bottom: 18px; color: #fff; letter-spacing: -0.02em; }
.hero h1 .grad { color: var(--brand-2); }
.hero p.lead { color: rgba(255,255,255,0.68); font-size: 1.1rem; max-width: 480px; margin: 0 0 28px; }
@media (max-width: 860px) { .hero h1 { font-size: 2.2rem; } .hero p.lead { max-width: none; } }

.hero-trust { display: flex; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust div { font-size: 0.8rem; color: rgba(255,255,255,0.52); display: flex; align-items: center; gap: 7px; font-weight: 600; }
.hero-trust svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--brand-2); }

/* floating tracking-card mockup */
.mock-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}
.mock-card .mock-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.mock-card .mock-ref { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: #fff; }
.mock-card .mock-route { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 3px; }
.mock-badge { background: rgba(255,194,71,0.16); color: var(--brand-2); font-size: 0.68rem; font-weight: 800; padding: 4px 11px; border-radius: 20px; }

/* ---- route line: the signature recurring motif (pure HTML/CSS, not SVG,
   so the pins stay perfect circles regardless of how wide the container
   is) ---- */
.route-line { position: relative; height: 28px; margin: 6px 0 16px; }
.route-line .rl-track {
  position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; transform: translateY(-50%);
  background-image: linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
}
.route-line .rl-fill {
  position: absolute; left: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background-image: linear-gradient(90deg, var(--signal) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  animation: dashMove 0.6s linear infinite;
}
.route-line .rl-pin {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--brand-2); transform: translate(-50%, -50%); z-index: 1;
}
.route-line .rl-pin-pickup { left: 10px; }
.route-line .rl-pin-drop { left: auto; right: 10px; transform: translate(50%, -50%); border-color: var(--signal); }
.route-line .rl-mover {
  position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  transform: translate(-50%, -50%); z-index: 2;
  box-shadow: 0 0 0 6px rgba(255, 106, 44, 0.22);
}

.mock-steps { display: flex; flex-direction: column; gap: 0; }
.mock-step { display: flex; align-items: center; gap: 12px; padding: 8px 0; position: relative; }
.mock-step .dot { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.mock-step.done .dot { background: var(--signal); }
.mock-step.done .dot svg { width: 11px; height: 11px; color: #06251a; }
.mock-step.current .dot { background: rgba(255,106,44,0.18); border: 2px solid var(--brand); animation: ringPulse 1.8s ease-out infinite; }
.mock-step.current .dot span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.mock-step.upcoming .dot { background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.14); }
.mock-step:not(:last-child)::before {
  content: ''; position: absolute; left: 9px; top: 28px; width: 2px; height: calc(100% - 10px);
  background: rgba(255,255,255,0.1);
}
.mock-step.done:not(:last-child)::before { background: var(--signal); }
.mock-step .label { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.48); }
.mock-step.done .label, .mock-step.current .label { color: #fff; }
.mock-step .time { margin-left: auto; font-size: 0.72rem; color: rgba(255,255,255,0.38); }

/* ---------- features / process ---------- */

.section { padding: 58px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-head .kicker { font-size: 0.86rem; font-weight: 800; color: var(--brand-ink); margin-bottom: 8px; }
.section-head h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature .icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,106,44,0.16), rgba(255,194,71,0.1));
  margin-bottom: 14px;
}
.feature .icon-badge svg { width: 22px; height: 22px; color: var(--brand-ink); }
.feature h3 { margin-bottom: 5px; }
.feature p { color: var(--ink-soft); font-size: 0.89rem; margin: 0; }

.steps-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
@media (max-width: 820px) { .steps-strip { grid-template-columns: 1fr; gap: 22px; } }
.steps-strip .step { text-align: center; padding: 0 10px; position: relative; }
@media (max-width: 820px) { .steps-strip .step { text-align: left; padding-left: 54px; } }
.steps-strip .step .num {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; position: relative; z-index: 1;
}
@media (max-width: 820px) { .steps-strip .step .num { position: absolute; left: 0; top: 0; margin: 0; } }
.steps-strip .step h3 { font-size: 0.92rem; margin-bottom: 4px; }
.steps-strip .step p { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.steps-strip::before {
  content: ''; position: absolute; top: 19px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
}
@media (max-width: 820px) { .steps-strip::before { display: none; } }

.showcase {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center;
}
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.showcase-copy .kicker { font-size: 0.86rem; font-weight: 800; color: var(--brand-ink); margin-bottom: 8px; }
.showcase-copy h2 { font-size: 1.7rem; margin-bottom: 12px; }
.showcase-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.showcase-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.showcase-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.showcase-list li svg { width: 18px; height: 18px; color: var(--signal); flex-shrink: 0; margin-top: 1px; }

/* bento dashboard-preview mockup */
.browser-frame {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}
.browser-frame .chrome-bar { height: 38px; background: var(--surface-2); display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); }
.browser-frame .chrome-bar .dot-b { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-frame .chrome-bar .url { margin-left: 12px; background: var(--surface-sunken); border-radius: 6px; padding: 4px 12px; font-size: 0.72rem; color: var(--ink-faint); font-family: var(--font-sans); }
.browser-frame .chrome-body { padding: 18px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.bento-tile {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  grid-column: span 2;
}
.bento-tile.wide { grid-column: span 4; }
@media (max-width: 420px) { .bento-tile { grid-column: span 4 !important; } }
.bento-tile .n { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.bento-tile .l { font-size: 0.7rem; color: var(--ink-faint); font-weight: 700; margin-top: 2px; }
.bento-tile.accent-brand .n { color: var(--brand-2); }
.bento-tile.accent-signal .n { color: var(--signal); }

.mini-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.mini-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.mini-stat .l { font-size: 0.68rem; color: var(--ink-faint); font-weight: 700; margin-top: 2px; }

.mini-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); font-size: 0.8rem; }
.mini-row:last-child { border-bottom: none; }
.mini-row .ref { font-weight: 700; width: 108px; flex-shrink: 0; color: var(--ink); }
.mini-row .route { color: var(--ink-soft); flex: 1; }

.cta-band {
  background: linear-gradient(135deg, var(--surface), var(--bg-raise));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; width: 280px; height: 280px; background: var(--brand); opacity: 0.22;
  filter: blur(80px); border-radius: 50%; top: -110px; right: -40px;
}
.cta-band h2 { color: #fff; margin-bottom: 4px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.6); margin: 0; position: relative; }
.cta-band .btn-row { position: relative; }

/* ---------- progress stepper (shipment / tracking) ---------- */

.progress-stepper { display: flex; align-items: flex-start; margin: 6px 0 4px; overflow-x: auto; padding-bottom: 4px; }
.progress-step { flex: 1; min-width: 84px; text-align: center; position: relative; }
.progress-step .node {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 2px solid var(--border); position: relative; z-index: 1;
}
.progress-step.done .node { background: var(--signal); border-color: transparent; }
.progress-step.done .node svg { width: 14px; height: 14px; color: #06251a; }
.progress-step.current .node { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(255,106,44,0.16); }
.progress-step.current .node .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.progress-step .bar {
  position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0;
}
.progress-step:first-child .bar { display: none; }
.progress-step.done .bar { background: var(--signal); }
.progress-step .plabel { font-size: 0.72rem; font-weight: 700; color: var(--ink-faint); }
.progress-step.done .plabel, .progress-step.current .plabel { color: var(--ink); }

/* ---------- timeline (detail history) ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 3px 0 18px 28px; border-left: 2px solid var(--border-soft); margin-left: 7px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--surface);
}
.timeline .t-status { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.timeline .t-meta { color: var(--ink-faint); font-size: 0.78rem; margin-top: 2px; }

/* ---------- otp box ---------- */

.otp-box {
  background: var(--surface-2);
  border: 1.5px dashed var(--brand);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.otp-box .otp { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: 0.24em; color: var(--brand-2); }

pre {
  background: var(--surface-sunken); color: #e2e8f0; padding: 12px 14px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: 0.78rem; white-space: pre-wrap; word-break: break-word;
  border: 1px solid var(--border);
}

.quote-total { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; margin-top: 6px; }
.quote-total .amount { font-family: var(--font-display); font-size: 1.95rem; font-weight: 800; color: var(--ink); }
.quote-line { display: flex; justify-content: space-between; font-size: 0.86rem; padding: 4px 0; color: var(--ink-soft); }
.quote-line strong { color: var(--ink); }

.footer { border-top: 1px solid var(--border-soft); margin-top: 44px; background: var(--bg); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 22px 20px; color: var(--ink-faint); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.section-gap { margin-top: 28px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.83rem; }

/* ---------- swipe-to-confirm (rider marking a delivery) ---------- */

.swipe-slider {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.swipe-slider .swipe-track-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.01em; pointer-events: none;
}
.swipe-slider .swipe-fill {
  position: absolute; inset: 0; width: 56px; background: var(--signal); border-radius: 999px 0 0 999px;
  transition: background .15s ease;
}
.swipe-slider.swipe-complete .swipe-fill { width: 100%; border-radius: 999px; }
.swipe-slider .swipe-handle {
  position: relative; z-index: 2; width: 48px; height: 48px; margin-left: 4px; border-radius: 50%;
  background: #06251a; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3); cursor: grab; touch-action: none;
}
.swipe-slider .swipe-handle svg { width: 20px; height: 20px; color: var(--signal); }
.swipe-slider.swipe-complete .swipe-handle { cursor: default; }
.swipe-slider.swipe-complete .swipe-track-label { color: #06251a; }

@media (max-width: 640px) {
  .card { padding: 18px 18px; }
  .hero { padding: 44px 16px 36px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tile { grid-column: span 2 !important; }
}
