:root {
  --primary: #167a52;
  --primary-dark: #0e5e3e;
  --primary-soft: #eaf7f0;
  --text: #203029;
  --muted: #6c7a74;
  --border: #e4ebe7;
  --background: #f7faf8;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 12px 35px rgba(24, 54, 42, .08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.topbar-content {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 21px;
}

.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.5px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.hero {
  background: linear-gradient(180deg, #eef8f3 0%, #f7faf8 100%);
  padding: 72px 0 58px;
}

.hero-content {
  max-width: 800px;
  text-align: center;
}

.eyebrow,
.section-label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 17px;
}

.tracking-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}

.tracking-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #ccd8d2;
  border-radius: 10px;
  outline: none;
  color: var(--text);
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s;
}

.input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 122, 82, .12);
}

.input-row button,
.help-button {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.input-row button {
  padding: 0 25px;
  white-space: nowrap;
}

.input-row button:hover,
.help-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.input-row button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.tracking-form > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.message {
  margin: 15px auto 0;
  max-width: 720px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
}

.message.error {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #ffd2cf;
}

.results {
  padding: 45px 0 70px;
}

.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.order-header h2 {
  margin: 5px 0 2px;
  font-size: 29px;
  letter-spacing: -.6px;
}

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

.status-badge {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.info-card,
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(24, 54, 42, .04);
}

.info-card {
  padding: 18px 20px;
}

.info-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.info-card strong {
  font-size: 16px;
}

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

.card {
  padding: 25px;
}

.card-heading h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.timeline {
  margin-top: 28px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 14px;
  padding-bottom: 27px;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 27px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid var(--primary-soft);
  background: var(--primary);
}

.timeline-item:not(.active) .timeline-dot {
  background: #b9c7c1;
  border-color: #edf1ef;
}

.timeline-date {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.timeline-status {
  font-weight: 750;
  font-size: 15px;
}

.timeline-location {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.help-card {
  text-align: center;
}

.help-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  font-size: 20px;
}

.help-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.help-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.help-button {
  display: inline-block;
  padding: 11px 16px;
  text-decoration: none;
  font-size: 14px;
}

.demo-note {
  margin-top: 20px;
  padding: 14px 17px;
  border: 1px dashed #b9cbc2;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

footer {
  background: #edf3f0;
  border-top: 1px solid var(--border);
}

.footer-content {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 48px 0 42px;
  }

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

  .hero p {
    font-size: 15px;
  }

  .tracking-form {
    padding: 17px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    height: 50px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .order-header {
    flex-direction: column;
  }

  .status-badge {
    align-self: flex-start;
  }

  .card {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    justify-content: center;
  }
}
