:root {
  --ink: #17202c;
  --muted: #647182;
  --quiet: #8a96a6;
  --paper: #ffffff;
  --canvas: #eef3f7;
  --line: #d9e1ea;
  --line-strong: #c4ced8;
  --blue: #2764b3;
  --blue-dark: #183e71;
  --teal: #128f87;
  --amber: #b97818;
  --green: #18805c;
  --red: #b42318;
  --radius: 6px;
  --shadow: 0 18px 48px rgba(37, 57, 80, 0.12);
  --font-sans: "Avenir Next", "Aptos", "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo,
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  color: #263241;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--blue);
}

.language-select select {
  width: 132px;
  height: 36px;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  background: #eef4f8;
  border-bottom: 1px solid var(--line);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#d9e3ec 1px, transparent 1px),
    linear-gradient(90deg, #d9e3ec 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 62px;
  align-items: center;
  width: min(100% - 64px, 1180px);
  min-height: 580px;
  margin: 0 auto;
  padding: 58px 0 64px;
}

.hero-copy {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 12px;
  max-width: 690px;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.02;
}

.result-lookup h1 {
  margin-bottom: 12px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
}

.track-form {
  width: min(100%, 760px);
}

.hero-search {
  width: min(100%, 740px);
}

.track-form label {
  display: block;
  margin-bottom: 8px;
  color: #344051;
  font-size: 13px;
  font-weight: 700;
}

.track-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  overflow: hidden;
  min-height: 58px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(43, 63, 86, 0.08);
}

.track-control input {
  min-width: 0;
  height: 58px;
  padding: 0 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.track-control input::placeholder {
  color: var(--quiet);
}

.track-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 58px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-left: 1px solid #1d5598;
  font-weight: 700;
}

.track-control button:hover {
  background: var(--blue-dark);
}

.form-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.coverage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 740px);
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.coverage-strip div {
  min-width: 0;
  padding: 15px 18px 15px 0;
  border-right: 1px solid var(--line-strong);
}

.coverage-strip div + div {
  padding-left: 18px;
}

.coverage-strip div:last-child {
  border-right: 0;
}

.coverage-strip span,
.route-ticket span,
.parcel-tag span {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.coverage-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.visual-toolbar strong {
  color: var(--green);
}

.map-frame {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-map {
  display: block;
  width: 100%;
  height: auto;
}

.route-ticket,
.parcel-tag {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(24, 47, 76, 0.12);
}

.route-ticket {
  top: 18px;
  left: 18px;
  min-width: 150px;
  padding: 12px 14px;
}

.route-ticket strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.parcel-tag {
  right: 18px;
  bottom: 18px;
  min-width: 220px;
  padding: 12px 14px;
  color: #ffffff;
  background: #17202c;
  border-color: #17202c;
}

.parcel-tag span {
  color: #aebdcd;
  font-family: var(--font-mono);
  word-break: break-word;
}

.parcel-tag strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
}

.event-board {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}

.event-row span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--blue);
  border-radius: 50%;
}

.event-row strong {
  flex: 1;
  min-width: 0;
  color: #253244;
}

.event-row time {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 13px;
}

.event-row.is-done span {
  background: var(--green);
}

.content-section {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 56px;
}

.business-band {
  border-top: 0;
}

.split-section h2 {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.16;
}

.dense-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  color: var(--muted);
  font-size: 16px;
}

.dense-copy p {
  margin-bottom: 0;
}

.service-table {
  padding-top: 46px;
  padding-bottom: 72px;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.14;
}

.table-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 190px;
  gap: 24px;
  min-height: 62px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.table-row span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.table-row span:nth-child(2) {
  color: var(--muted);
}

.table-row span:last-child {
  color: #344051;
  font-weight: 600;
}

.table-row-head {
  min-height: 42px;
  padding-top: 0;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.table-row-head span {
  color: var(--quiet) !important;
}

.track-workspace {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.result-lookup {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  padding-bottom: 26px;
}

.result-lookup h1 {
  margin-bottom: 0;
  font-size: 34px;
  font-weight: 700;
}

.compact-form {
  grid-column: auto;
  width: 100%;
}

.result-section {
  border-top: 1px solid var(--line);
}

.result-container {
  padding-top: 22px;
}

.result-card,
.empty-state {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-card {
  overflow: hidden;
}

.result-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 78px;
  padding: 18px 22px;
  background: #1f4778;
  color: #ffffff;
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: #d6e5f6;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-status h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.tracking-number {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  word-break: break-word;
}

.result-body {
  padding: 22px;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-meta div {
  min-height: 78px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.result-meta div:last-child {
  border-right: 0;
}

.result-meta dt {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-meta dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 700;
  word-break: break-word;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 24px 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 23px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

.timeline time {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.timeline h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 700;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  padding: 34px;
}

.empty-state h2 {
  max-width: 680px;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.empty-state p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 48px;
  color: #d9e5f2;
  background: #182230;
}

.site-footer span {
  font-weight: 700;
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 22px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
  }

  .hero-layout,
  .split-section,
  .result-lookup {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .content-section,
  .track-workspace {
    width: min(100% - 32px, 760px);
  }

  .hero-layout {
    min-height: 0;
    gap: 34px;
    padding: 38px 0 44px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .dense-copy,
  .result-meta {
    grid-template-columns: 1fr;
  }

  .result-meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-meta div:last-child {
    border-bottom: 0;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table-row-head {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 22px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span {
    font-size: 15px;
  }

  .language-select select {
    width: 116px;
  }

  .hero-layout,
  .content-section,
  .track-workspace {
    width: min(100% - 28px, 460px);
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .track-control {
    grid-template-columns: 1fr;
  }

  .track-control button {
    border-top: 1px solid #1d5598;
    border-left: 0;
  }

  .coverage-strip {
    grid-template-columns: 1fr;
  }

  .coverage-strip div,
  .coverage-strip div + div {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .coverage-strip div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    padding: 12px;
  }

  .route-ticket,
  .parcel-tag {
    position: static;
    margin: 10px 10px 0;
  }

  .parcel-tag {
    min-width: 0;
  }

  .event-row {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .event-row time {
    width: 100%;
    padding-left: 22px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .result-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .brand span {
    font-size: 15px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .language-select select {
    width: 112px;
  }

  .main-nav {
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 33px;
  }

  .result-lookup h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }

  .split-section h2 {
    font-size: 24px;
  }

  .result-body {
    padding: 18px;
  }
}
