:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --dark: #111111;
  --soft: #fafafa;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.trackShell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.heroCard, .lookupCard, .statusCard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
}

.heroCard {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  font-size: 12px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 8px; line-height: .95; }
h2 { margin-bottom: 8px; }
.subtext, .muted { color: var(--muted); }
.homeLink, button, .carrierLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.lookupCard, .statusCard { padding: 22px; }
.lookupCard { margin-bottom: 18px; }
.lookupGrid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

.orderTop {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.orderThumb {
  width: 120px;
  height: 140px;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: contain;
  background: var(--soft);
}
.statusPill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #cfcfcf;
  color: #999;
  font-weight: 900;
}
.step.complete .dot { background: #111; border-color: #111; color: #fff; }
.step.active { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.stepTitle { font-weight: 900; }
.stepDate { color: var(--muted); font-size: 13px; margin-top: 3px; }

.itemGrid { display: grid; gap: 10px; margin-top: 16px; }
.itemRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.trackingBox {
  padding: 16px;
  border-radius: 18px;
  background: #f7f7f7;
  border: 1px solid var(--line);
}
.error { color: #9b1c1c; font-weight: 800; }
.loading { color: var(--muted); }

@media (max-width: 700px) {
  .heroCard, .orderTop { grid-template-columns: 1fr; display: grid; }
  .lookupGrid { grid-template-columns: 1fr; }
  .homeLink { width: 100%; }
}
