/* ==========================================================================
   Euler Parcel — parcel tracking demo
   Design tokens live on :root so the brand can be re-skinned in one place.
   ========================================================================== */

:root {
  --ink: #081325;
  --navy-900: #0b1a33;
  --navy-800: #10244a;
  --navy-700: #183363;
  --brand: #2f5bff;
  --brand-600: #2246e0;
  --brand-50: #eef2ff;
  --accent: #ff6b2c;
  --accent-600: #ea5718;
  --accent-50: #fff1ea;
  --violet: #7a5af8;
  --violet-50: #f2efff;
  --success: #0e9f6e;
  --success-50: #e6f7f0;
  --warning: #d97706;
  --warning-50: #fff5e6;
  --neutral: #64748b;
  --neutral-50: #f1f4f8;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e3e8f1;
  --line-strong: #cfd7e4;
  --text: #0e1b2e;
  --muted: #5d6b82;
  --on-dark: #e8eefc;
  --on-dark-muted: #9fb0d0;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 46, 0.06);
  --shadow: 0 1px 2px rgba(14, 27, 46, 0.05), 0 8px 24px -8px rgba(14, 27, 46, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(8, 19, 37, 0.45);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 24px;
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-main {
  flex: 1;
}

.page-frame {
  animation: page-in 260ms ease-out;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Buttons, chips, tags ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms, transform 160ms, box-shadow 160ms;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(47, 91, 255, 0.8);
}

.btn--primary:hover:not(:disabled) {
  background: var(--brand-600);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(255, 107, 44, 0.9);
}

.btn--accent:hover:not(:disabled) {
  background: var(--accent-600);
}

.btn--outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--outline:hover:not(:disabled) {
  border-color: var(--text);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn--ghost-light:hover,
.btn--ghost-light.is-active {
  background: rgba(255, 255, 255, 0.16);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row.is-centered {
  justify-content: center;
}

.chip {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--neutral-50);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag--accent {
  background: var(--accent-50);
  color: var(--accent-600);
}

.tag--success {
  background: var(--success-50);
  color: var(--success);
}

.tag--progress {
  background: var(--brand-50);
  color: var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.badge--neutral {
  background: var(--neutral-50);
  color: var(--neutral);
}

.badge--progress {
  background: var(--brand-50);
  color: var(--brand);
}

.badge--brand {
  background: var(--violet-50);
  color: var(--violet);
}

.badge--brand .badge__dot,
.badge--warning .badge__dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.badge--success {
  background: var(--success-50);
  color: var(--success);
}

.badge--warning {
  background: var(--warning-50);
  color: var(--warning);
}

@keyframes pulse-dot {
  50% {
    opacity: 0.35;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
}

.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d39a;
  box-shadow: 0 0 0 0 rgba(53, 211, 154, 0.6);
  animation: live-ring 1.8s ease-out infinite;
}

@keyframes live-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(53, 211, 154, 0.55);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(53, 211, 154, 0);
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #8fb0ff;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
}

.text-link:hover {
  color: var(--brand-600);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 19, 37, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark__tile {
  fill: var(--brand);
}

.brand-mark__line {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark__node {
  fill: #fff;
}

.brand-mark__dot {
  fill: var(--accent);
  stroke: var(--brand);
  stroke-width: 1.4;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.site-nav__link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 160ms, background-color 160ms;
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__actions .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.site-header__menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero,
.page-hero,
.dashboard-hero,
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(47, 91, 255, 0.45), transparent 60%),
    radial-gradient(700px 420px at -10% 120%, rgba(255, 107, 44, 0.22), transparent 60%),
    var(--ink);
  color: #fff;
}

.hero::before,
.page-hero::before,
.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='%23ffffff' stroke-opacity='0.09'%3E%3Ccircle cx='450' cy='450' r='440'/%3E%3Cellipse cx='450' cy='450' rx='330' ry='440'/%3E%3Cellipse cx='450' cy='450' rx='210' ry='440'/%3E%3Cellipse cx='450' cy='450' rx='90' ry='440'/%3E%3Cpath d='M450 10v880M10 450h880'/%3E%3Cellipse cx='450' cy='450' rx='440' ry='150'/%3E%3Cellipse cx='450' cy='450' rx='440' ry='300'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -220px top -160px;
  background-size: 900px 900px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero .lead,
.page-hero .lead,
.dashboard-hero .lead {
  max-width: 560px;
  color: var(--on-dark-muted);
}

/* ---------- Tracking search ---------- */

.track-search {
  width: 100%;
  max-width: 640px;
}

.track-search form {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.track-search__field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
  padding-left: 16px;
  color: var(--muted);
}

.track-search .track-search__field input {
  flex: 1;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}

.track-search__field input::placeholder {
  color: #94a1b6;
  font-family: var(--font);
}

.track-search--large .track-search__field input[type='text'] {
  height: 54px;
  font-size: 16px;
}

.track-search--large .track-search__submit {
  min-height: 54px;
  padding: 0 26px;
}

.track-search__demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--on-dark-muted);
  font-size: 13px;
}

/* ---------- Hero preview card ---------- */

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(1deg);
  transition: transform 260ms ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-card__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card__head strong {
  font-size: 17px;
}

.hero-card__eta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--violet-50), var(--brand-50));
}

.hero-card__eta > span:first-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-card__eta strong {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.hero-card__live,
.live-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--success);
  font-size: 13.5px;
  font-weight: 700;
}

.hero-card__events {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.hero-card__events li {
  display: flex;
  gap: 14px;
}

.hero-card__events li:first-child {
  font-weight: 700;
}

.hero-card__events .mono {
  color: var(--muted);
  font-size: 13px;
}

.hero-card__route {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.hero-card__route span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Milestones ---------- */

.milestones {
  position: relative;
}

.milestones__track {
  position: absolute;
  top: 17px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}

.milestones__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--violet));
  transition: width 600ms ease;
}

.milestones__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.milestone__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #9aa7bb;
}

.milestone__label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.milestone--done .milestone__icon {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.milestone--current .milestone__icon {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(122, 90, 248, 0.18);
}

.milestone--current .milestone__label {
  color: var(--text);
  font-weight: 800;
}

.milestone--current.is-warning .milestone__icon {
  border-color: var(--warning);
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.18);
}

.hero-card .milestone__icon {
  width: 32px;
  height: 32px;
}

.hero-card .milestones__track {
  top: 14px;
}

.hero-card .milestone__label {
  font-size: 11px;
}

/* ---------- Stats ---------- */

.stats {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 30px 24px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 40px 0 88px;
}

.section--tinted {
  background: linear-gradient(180deg, #edf1f8, var(--bg));
}

.section-heading {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-heading.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.feature-card h3,
.service-card h3 {
  font-size: 20px;
}

.feature-card p,
.service-card p {
  flex: 1;
  color: var(--muted);
  font-size: 15px;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand);
}

.feature-card:nth-child(2) .feature-card__icon {
  background: var(--accent-50);
  color: var(--accent-600);
}

.feature-card:nth-child(3) .feature-card__icon {
  background: var(--violet-50);
  color: var(--violet);
}

.feature-card:nth-child(4) .feature-card__icon {
  background: var(--success-50);
  color: var(--success);
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -20px;
  width: 20px;
  border-top: 2px dashed var(--line-strong);
}

.step__number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.split .section-heading {
  margin-bottom: 28px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  font-weight: 600;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand);
}

.notify-mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(47, 91, 255, 0.35), transparent 70%),
    var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.notify-mock__item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.notify-mock__item:nth-child(2) {
  margin-left: 28px;
}

.notify-mock__item:nth-child(3) {
  margin-left: 56px;
}

.notify-mock__item > div {
  flex: 1;
  min-width: 0;
}

.notify-mock__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
}

.notify-mock__item--brand .notify-mock__icon {
  background: var(--violet);
}

.notify-mock__item--progress .notify-mock__icon {
  background: var(--brand);
}

.notify-mock__item--success .notify-mock__icon {
  background: var(--success);
}

.notify-mock__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}

.notify-mock__head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.notify-mock__item p {
  color: var(--muted);
  font-size: 14px;
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.cta-band p {
  color: var(--on-dark-muted);
}

/* ---------- Inner page hero ---------- */

.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-hero h1,
.dashboard-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
}

.page-hero .eyebrow,
.dashboard-hero .eyebrow {
  margin-bottom: 0;
}

.page-hero .track-search {
  margin-top: 10px;
}

/* ---------- Cards ---------- */

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card__title {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 800;
}

.details {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row dt {
  color: var(--muted);
}

.detail-row dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 24px auto;
  padding: 40px 24px;
  text-align: center;
}

.empty-state h2 {
  font-size: 26px;
}

.empty-state p {
  color: var(--muted);
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--brand-50);
  color: var(--brand);
}

.empty-state--compact {
  padding: 32px 16px;
  margin: 0 auto;
}

/* ---------- Track page ---------- */

.recent-parcels__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.recent-parcels__head h2 {
  font-size: 24px;
}

.parcel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.parcel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms, box-shadow 200ms;
}

.parcel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.parcel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.parcel-card__title {
  font-size: 17px;
  font-weight: 700;
}

.parcel-card__route {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.parcel-card__meta {
  color: var(--muted);
  font-size: 13px;
}

.tracking {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: -88px;
  position: relative;
}

.page-hero:has(+ .section .tracking) .page-hero__inner {
  padding-bottom: 120px;
}

.tracking-summary {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.tracking-summary__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tracking-summary__number {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.tracking-summary__id {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-summary__id strong {
  font-size: 22px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.tracking-summary__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tracking-summary__eta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.tracking-summary__eta h2 {
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.tracking-summary__eta .muted {
  font-size: 14px;
  font-weight: 600;
}

.tracking-summary__route {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg);
}

.tracking-summary__arrow {
  color: var(--muted);
}

.endpoint {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.endpoint .muted {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
}

.alert--warning {
  border: 1px solid #f6d7a8;
  background: var(--warning-50);
}

.alert__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fde6c3;
  color: var(--warning);
}

.alert__body {
  flex: 1;
  min-width: 240px;
}

.alert__body strong {
  font-size: 17px;
}

.alert__body p {
  color: #6b4e1f;
  font-size: 15px;
}

.tracking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 20px;
}

.tracking__main,
.tracking__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Journey map ---------- */

.journey__map {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.journey__grid {
  fill: none;
  stroke: #e7ecf4;
  stroke-width: 1;
}

.journey__route {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 3;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey__route--done {
  stroke: var(--brand);
  stroke-width: 4;
  stroke-dasharray: none;
}

.journey__leg-bg {
  fill: #fff;
  stroke: var(--line);
}

.journey__leg {
  color: var(--muted);
}

.journey__stop {
  stroke-width: 3;
}

.journey__stop--done {
  fill: var(--brand);
  stroke: #fff;
}

.journey__stop--upcoming {
  fill: #fff;
  stroke: var(--line-strong);
}

.journey__pulse {
  fill: var(--violet);
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 1.8s ease-out infinite;
}

.journey__marker-dot {
  fill: var(--violet);
  stroke: #fff;
  stroke-width: 3;
}

.journey__marker-core {
  fill: #fff;
}

.journey__marker.is-warning .journey__pulse,
.journey__marker.is-warning .journey__marker-dot {
  fill: var(--warning);
}

@keyframes map-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.journey__labels {
  display: grid;
  margin-top: 6px;
}

.journey__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
}

.journey__label span {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Journey card header (Route / Live map) ---------- */

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card__head .card__title {
  margin-bottom: 0;
}

.segmented--compact button {
  padding: 6px 11px;
  font-size: 13px;
}

/* ---------- Live map ---------- */

.live-map {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-900);
  isolation: isolate;
}

.live-map__canvas {
  position: absolute;
  inset: 0;
}

/* Mapbox's stylesheet loads later and makes this position: relative, so size it explicitly. */
.live-map__mapbox {
  width: 100%;
  height: 100%;
}

.live-map__status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 72px);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.live-map__status-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-map__status.is-delivered .live-map__status-label {
  background: var(--success-50);
  color: var(--success);
}

.live-map__status.is-warning .live-map__status-label {
  background: var(--warning-50);
  color: var(--warning);
}

.live-map__status.is-pending .live-map__status-label,
.live-map__status.is-stopped .live-map__status-label {
  background: var(--neutral-50);
  color: var(--neutral);
}

.live-map__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.live-map__status.is-moving .live-map__status-dot {
  animation: live-map-blink 1.6s ease-in-out infinite;
}

.live-map__status-text {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-map__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--on-dark-muted);
  font-size: 14px;
  text-align: center;
}

.live-map__overlay p {
  max-width: 40ch;
  margin: 0;
}

.live-map__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(159, 176, 208, 0.35);
  border-top-color: var(--on-dark);
  border-radius: 50%;
  animation: live-map-spin 0.8s linear infinite;
}

.live-map__parcel {
  position: relative;
  width: 22px;
  height: 22px;
  --parcel-color: var(--brand);
}

.live-map__parcel.is-warning {
  --parcel-color: var(--warning);
}

.live-map__parcel.is-delivered {
  --parcel-color: var(--success);
}

.live-map__parcel.is-pending,
.live-map__parcel.is-stopped {
  --parcel-color: var(--navy-700);
}

.live-map__parcel-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--parcel-color);
  opacity: 0;
  animation: live-map-pulse 2s ease-out infinite;
}

.live-map__parcel.is-delivered .live-map__parcel-pulse {
  display: none;
}

.live-map__parcel-dot {
  position: absolute;
  inset: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--parcel-color);
  box-shadow: 0 2px 10px rgba(8, 19, 37, 0.35);
}

@keyframes live-map-pulse {
  from {
    transform: scale(0.4);
    opacity: 0.45;
  }

  to {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes live-map-blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes live-map-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .live-map {
    height: 340px;
    margin: 0 -8px;
  }

  .live-map__status {
    max-width: calc(100% - 64px);
    font-size: 12px;
  }
}

/* ---------- Timeline ---------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline__day-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline__event {
  position: relative;
  display: grid;
  grid-template-columns: 52px 20px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 18px;
}

.timeline__event::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: -4px;
  left: 71px;
  width: 2px;
  background: var(--line);
}

.timeline__day:last-child .timeline__event:last-child::before {
  display: none;
}

.timeline__time {
  padding-top: 1px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.timeline__dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: 6px 0 0 4px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.timeline__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline__body strong {
  font-size: 15px;
}

.timeline__detail,
.timeline__place {
  color: var(--muted);
  font-size: 14px;
}

.timeline__place {
  font-size: 13px;
}

.timeline__event.is-latest .timeline__dot {
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(122, 90, 248, 0.18);
}

.timeline__event.is-exception .timeline__dot {
  border-color: var(--warning);
  background: var(--warning);
}

.timeline__event.is-exception strong {
  color: #9a5a05;
}

/* ---------- Tracking side ---------- */

.pod {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--success-50);
  color: var(--success);
  font-size: 14px;
}

.pod div {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.action-list {
  display: flex;
  flex-direction: column;
  margin: 0 -10px;
}

.action-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 160ms;
}

.action-list a:hover {
  background: var(--bg);
}

.action-list__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand);
}

.action-list__label {
  flex: 1;
}

.card--notify p {
  margin: -10px 0 14px;
  font-size: 14px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  flex: 1;
  min-width: 0;
}

.subscribed {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input[type='text'],
input[type='email'],
input[type='search'],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.14);
}

input[readonly] {
  background: var(--bg);
  color: var(--muted);
}

.track-search input:focus {
  box-shadow: none;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.subheading {
  margin: 26px 0 12px;
  font-size: 15px;
}

/* ---------- Quote wizard ---------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 24px;
}

.quote-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.stepper button:disabled {
  cursor: default;
}

.stepper__index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--neutral-50);
  font-size: 13px;
}

.stepper li.is-current button {
  background: var(--ink);
  color: #fff;
}

.stepper li.is-current .stepper__index {
  background: var(--accent);
}

.stepper li.is-done .stepper__index {
  background: var(--brand);
  color: #fff;
}

.stepper li.is-done button {
  color: var(--text);
}

.route-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.route-fields__group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.route-fields__group legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  font-weight: 800;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.preset,
.request-type,
.option,
.kpi {
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, box-shadow 160ms, background-color 160ms;
}

.preset:hover,
.request-type:hover,
.option:hover {
  border-color: var(--line-strong);
}

.preset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
}

.preset span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.preset__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
}

.preset.is-selected,
.request-type.is-selected,
.option.is-selected {
  border-color: var(--brand);
  background: #fafbff;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.14);
}

.preset.is-selected .preset__icon {
  background: var(--brand);
  color: #fff;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
}

.option__radio {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.option.is-selected .option__radio {
  border: 7px solid var(--brand);
}

.option__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.option__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.option__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
}

.option__meta strong {
  font-size: 20px;
}

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.checkbox-tile.is-checked {
  border-color: var(--brand);
  background: #fafbff;
}

.checkbox-tile input {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.checkbox-tile__title {
  font-size: 14px;
  font-weight: 700;
}

.checkbox-tile__subtitle {
  color: var(--muted);
  font-size: 13px;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.request-form .step-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.quote-summary {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.quote-summary__route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg);
}

.quote-summary__route div {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.quote-summary__route .muted {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--text);
  font-weight: 700;
}

.quote-summary__total strong {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin: 20px auto;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirmation--inline {
  max-width: none;
  margin: 0;
}

.confirmation h2 {
  font-size: 30px;
}

.confirmation__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-50);
  color: var(--success);
}

.confirmation__number {
  display: flex;
  flex-direction: column;
  margin: 8px 0;
  padding: 14px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
}

.confirmation__number strong {
  font-size: 24px;
}

/* ---------- Requests ---------- */

.requests-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.requests-main,
.requests-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.request-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.request-type {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
}

.request-type strong {
  font-size: 14.5px;
}

.request-type > span:last-child {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.request-type__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand);
}

.request-type.is-selected .request-type__icon {
  background: var(--brand);
  color: #fff;
}

.request-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.request-list li {
  display: flex;
  gap: 12px;
}

.request-list li > div {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.request-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
}

.request-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.card--contact {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border: 0;
  color: #fff;
}

.card--contact .muted {
  margin: -8px 0 16px;
  color: var(--on-dark-muted);
  font-size: 14px;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.contact-lines > * {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-lines a {
  color: inherit;
}

.contact-lines a:hover {
  color: var(--brand);
}

/* ---------- Dashboard ---------- */

.dashboard-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 104px;
}

.dashboard-hero__inner > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard {
  margin-top: -88px;
  position: relative;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.kpi__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.kpi strong {
  font-size: 30px;
  line-height: 1;
}

.kpi > span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.kpi--progress .kpi__icon {
  background: var(--brand-50);
  color: var(--brand);
}

.kpi--brand .kpi__icon {
  background: var(--violet-50);
  color: var(--violet);
}

.kpi--warning .kpi__icon {
  background: var(--warning-50);
  color: var(--warning);
}

.kpi--success .kpi__icon {
  background: var(--success-50);
  color: var(--success);
}

.kpi.is-selected {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--text);
}

.dashboard__table-card {
  padding: 0;
  overflow: hidden;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button.is-selected {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.segmented__count {
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(14, 27, 46, 0.07);
  font-size: 12px;
}

.toolbar__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  max-width: 100%;
  color: var(--muted);
}

.toolbar__search .icon {
  position: absolute;
  left: 14px;
}

.toolbar__search input {
  padding-left: 42px;
}

.parcel-table__row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.3fr 1.5fr 1.2fr 24px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background-color 160ms;
}

.parcel-table__row:last-child {
  border-bottom: 0;
}

a.parcel-table__row:hover {
  background: #fafbfe;
}

.parcel-table__row--head {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.parcel-table__id,
.parcel-table__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.parcel-table__id .muted,
.parcel-table__status .muted {
  font-size: 12.5px;
}

.parcel-table__chevron {
  color: var(--muted);
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card__speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-600);
  font-size: 14px;
  font-weight: 700;
}

.service-card__perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.service-card__perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__perks .icon {
  color: var(--success);
}

.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.service-card__foot strong {
  font-size: 22px;
}

.comparison-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 8px;
  overflow-x: auto;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison th,
.comparison td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.comparison tbody tr:last-child th,
.comparison tbody tr:last-child td {
  border-bottom: 0;
}

.comparison tbody th {
  font-weight: 600;
  text-align: left;
}

.comparison thead th {
  font-size: 14px;
  font-weight: 800;
}

.comparison .is-yes {
  color: var(--success);
}

.comparison .is-no {
  color: #b6c0d0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.site-footer__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 340px;
}

.site-footer__intro .brand {
  color: #fff;
}

.site-footer__studio {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer__studio-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__studio-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.site-footer__studio-tagline {
  font-size: 13.5px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.site-footer__contact a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__imprint {
  padding-bottom: 28px;
  color: #6f80a3;
  font-size: 12px;
}

.site-footer h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.site-footer__demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .feature-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tracking__grid,
  .quote-layout,
  .requests-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-summary {
    position: static;
  }

  .parcel-table__row {
    grid-template-columns: 1.2fr 1.5fr 1fr 24px;
  }

  .parcel-table__row > :nth-child(2),
  .parcel-table__row > :nth-child(3) {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
    --header-height: 60px;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav__link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero-card {
    transform: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 22px 16px;
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 64px 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step::after {
    display: none;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__intro {
    grid-column: 1 / -1;
  }

  .field-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preset-grid,
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extras {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header__actions .btn span {
    display: none;
  }

  .site-header__actions .btn {
    width: 42px;
    padding: 0;
  }

  .track-search form {
    flex-direction: column;
    border-radius: 20px;
  }

  .track-search__field {
    padding-left: 12px;
  }

  .track-search__submit {
    width: 100%;
  }

  .feature-grid,
  .service-grid,
  .steps,
  .parcel-cards,
  .route-fields,
  .field-grid--2,
  .request-types {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notify-mock {
    padding: 20px;
  }

  .notify-mock__item:nth-child(n) {
    margin-left: 0;
  }

  .milestone__label {
    display: none;
  }

  .milestone--current .milestone__label {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    display: block;
  }

  .milestones {
    padding-bottom: 26px;
  }

  .milestone__icon {
    width: 32px;
    height: 32px;
  }

  .milestones__track {
    top: 14px;
  }

  .tracking-summary {
    padding: 20px;
  }

  .tracking-summary__route {
    width: 100%;
    flex-wrap: wrap;
  }

  .card {
    padding: 20px;
  }

  .stepper {
    border-radius: 18px;
  }

  .stepper button span:last-child {
    display: none;
  }

  .stepper li.is-current button span:last-child {
    display: inline;
  }

  .option {
    flex-wrap: wrap;
  }

  .option__meta {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    padding-left: 38px;
  }

  .step-nav .btn {
    flex: 1;
  }

  .request-form .step-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .parcel-table__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .parcel-table__row--head {
    display: none;
  }

  .parcel-table__row > :nth-child(5),
  .parcel-table__row > :nth-child(6) {
    display: none;
  }

  .toolbar__search {
    width: 100%;
  }

  .segmented {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .segmented button {
    flex: none;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confirmation {
    padding: 36px 20px;
  }
}

/* ---------- Print (label) ---------- */

@media print {
  .site-header,
  .site-footer,
  .page-hero,
  .button-row {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .confirmation {
    box-shadow: none;
    border: 2px solid #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Operator console ---------- */

.site-footer__operator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-dark-muted);
}

.site-footer__operator:hover {
  color: #fff;
}

.admin {
  min-height: 100vh;
  background: var(--bg);
}

.admin-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--ink);
  color: #fff;
}

.admin-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-height);
}

.admin-bar__brand {
  flex: none;
}

.admin-bar__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.16);
  color: #ffb08c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-nav {
  display: flex;
  gap: 4px;
}

.admin-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--on-dark-muted);
  font-size: 14px;
  font-weight: 600;
}

.admin-nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav__link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav__count {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.admin-bar__exit {
  margin-left: auto;
}

.admin-note {
  border-bottom: 1px solid #f6dfb8;
  background: var(--warning-50);
  color: #8a4b06;
  font-size: 13px;
}

.admin-note .container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.admin-note svg {
  flex: none;
}

.admin-page {
  padding-top: 28px;
  padding-bottom: 64px;
}

.admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-heading h1 {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.admin-heading p {
  margin: 0;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: start;
}

.admin-list {
  overflow: hidden;
  padding: 0;
}

.admin-list__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-list__toolbar .toolbar__search {
  flex: 1 1 220px;
}

.admin-list__items {
  display: flex;
  flex-direction: column;
  max-height: 680px;
  overflow-y: auto;
}

.admin-row {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row:hover {
  background: var(--bg);
}

.admin-row.is-selected {
  background: var(--brand-50);
  box-shadow: inset 3px 0 0 var(--brand);
}

.admin-row__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.admin-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-row__meta {
  color: var(--muted);
  font-size: 13px;
}

.admin-row__summary {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-detail__head > div {
  flex: 1;
  min-width: 0;
}

.admin-detail__head h2 {
  margin: 0 0 2px;
  font-size: 20px;
}

.admin-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-quote {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.admin-quote p {
  margin: 0;
  font-weight: 600;
}

.admin-field .segmented {
  display: inline-flex;
}

.admin-parcel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.admin-parcel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-parcel__alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
  font-weight: 700;
}

.admin-parcel .button-row {
  margin-top: 6px;
}

.admin-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-thread .admin-label {
  margin-bottom: 0;
}

.admin-thread__reply {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  background: var(--brand-50);
  font-size: 14px;
}

.admin-reply,
.admin-scan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-scan .admin-label {
  margin-bottom: 0;
}

.admin-confirmation {
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.admin-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-exception {
  margin: 0;
}

.admin-exception .button-row {
  margin-top: 10px;
}

.admin-history {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-history .admin-label {
  margin-bottom: 14px;
}

.admin-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.admin-rates__preview {
  grid-column: 1 / -1;
}

.admin-rates__formula {
  margin: -8px 0 16px;
  font-size: 13px;
}

.admin-rates__services {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-rates__service {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.admin-rates__service strong {
  padding-bottom: 13px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.admin-table th:first-child {
  text-align: left;
}

.admin-table thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table tbody th {
  font-weight: 600;
}

.admin-table td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.admin-rates__preview .admin-hint {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .admin-bar__badge {
    display: none;
  }

  .admin-split,
  .admin-rates {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-list__items {
    max-height: 380px;
  }
}

@media (max-width: 640px) {
  .admin-bar__inner {
    gap: 8px;
  }

  .admin-bar .brand__name,
  .admin-nav__link > span:not(.admin-nav__count),
  .admin-bar__exit span {
    display: none;
  }

  .admin-nav__link {
    padding: 8px 10px;
  }

  .admin-heading h1 {
    font-size: 24px;
  }

  .admin-rates__service {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-rates__service strong {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
}

.kpi--neutral .kpi__icon {
  background: var(--neutral-50);
  color: var(--neutral);
}

/* A reply from the customer team under a request on the Support page. */
.request-list__reply {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px 10px 10px 4px;
  background: var(--brand-50);
  color: var(--text);
  font-size: 13px;
}
