:root {
  color-scheme: light;
  --ink: #102a29;
  --muted: #4a615d;
  --green: #09634e;
  --green-dark: #074937;
  --lime: #d0f483;
  --line: #dce5de;
  --paper: #f4f7f3;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #1a8768; outline-offset: 3px; }
section { scroll-margin-top: 1.25rem; }
.wrap { width: min(100% - 3rem, 68rem); margin-inline: auto; }

.site-header { background: #fff; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-inner { min-height: 5.5rem; }
.brand { display: inline-block; }
.brand img { display: block; width: 8rem; height: auto; }
nav { display: flex; align-items: center; gap: 1.8rem; color: var(--muted); }
nav a { text-decoration: none; font-size: .9rem; font-weight: 700; }
nav a:hover, .nav-current { color: var(--green); }
.nav-current { border-bottom: 2px solid #81b56b; padding-block: .35rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #092b2b; color: #fff; }
.hero-image { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(4, 31, 31, .97), rgba(4, 31, 31, .81) 31%, rgba(4, 31, 31, .23) 59%, transparent 84%), linear-gradient(0deg, rgba(4, 31, 31, .54), transparent 47%); }
.hero-inner { position: relative; padding-block: 4.2rem 8.4rem; }
.eyebrow, .result-label { font-size: .78rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow { display: flex; gap: .65rem; align-items: center; color: var(--lime); margin-bottom: 1.15rem; }
.eyebrow span { width: 1.45rem; height: 2px; background: currentColor; }
h1 { font-size: clamp(3.5rem, 7vw, 6rem); letter-spacing: -.075em; font-weight: 800; line-height: .97; }
h1 span { color: var(--lime); }
.hero-description { margin-top: 1.3rem; max-width: 25rem; color: #e0eee9; font-size: 1.12rem; line-height: 1.58; }

.content { position: relative; margin-top: -4.7rem; }
.tracking-card, .shipment { background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; }
.tracking-card { display: grid; grid-template-columns: 1fr 1.55fr; gap: 2rem; align-items: center; padding: 1.9rem 2rem 1.75rem; box-shadow: 0 16px 42px rgba(22, 43, 33, .09); }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); line-height: 1.2; letter-spacing: -.045em; }
.tracking-intro p { margin-top: .55rem; max-width: 19rem; color: var(--muted); line-height: 1.5; }
label { display: block; font-size: .9rem; font-weight: 800; margin-bottom: .45rem; }
.lookup { display: flex; gap: .6rem; }
.lookup input { min-width: 0; height: 3.3rem; flex: 1; border: 1px solid #9aac9f; border-radius: .55rem; padding-inline: .85rem; background: #fbfdfb; color: var(--ink); font-family: "Space Mono", monospace; }
.lookup input::placeholder { color: #5a6e65; }
.lookup input[aria-invalid="true"] { border-color: #a52832; }
.track-button { border: 0; border-radius: .55rem; background: var(--green); color: #fff; padding-inline: 1.1rem; min-height: 3.3rem; font-weight: 800; white-space: nowrap; }
.track-button:hover { background: var(--green-dark); }
.demo-hint, .error { margin-top: .65rem; font-size: .875rem; line-height: 1.45; }
.demo-hint { color: var(--muted); display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.demo-hint button { background: none; border: 0; padding: .2rem 0; color: var(--green); text-decoration: underline; text-underline-offset: .15em; font-weight: 800; }
.error { color: #a52832; }

.shipment { margin-top: 1.25rem; overflow: hidden; }
.result-header { display: flex; justify-content: space-between; gap: .8rem; align-items: center; background: #eaf3eb; border-bottom: 1px solid var(--line); padding: 1.45rem 2rem; }
.result-label { color: var(--green); margin-bottom: .5rem; }
#result-title, .mono { font-family: "Space Mono", monospace; }
.status { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; font-size: .9rem; font-weight: 800; color: #164732; padding: .45rem .75rem; border-radius: 2rem; background: #d6ecd6; }
.status span { width: .48rem; height: .48rem; border-radius: 50%; background: #25744a; }
.result-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 2rem; padding: 1.55rem 2rem 1.75rem; }
h3 { font-size: 1.08rem; margin-bottom: 1rem; }
.route-point { display: grid; gap: .25rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .5rem; }
.route-point span, .result-note, time { font-size: .875rem; color: var(--muted); }
.destination { margin-top: .6rem; }
.result-note { margin-top: .8rem; }
.history ol { list-style: none; margin: 0; padding: .1rem 0 0 .4rem; }
.history li { position: relative; padding: 0 0 1.2rem 1.1rem; border-left: 1px solid #b8c9be; }
.history li:last-child { border-color: transparent; padding-bottom: 0; }
.history li::before { content: ""; position: absolute; width: .64rem; height: .64rem; border-radius: 50%; top: .35rem; left: -.34rem; background: #fff; border: 2px solid #7b9988; }
.history li:first-child::before { background: var(--green); border-color: var(--green); }
.history li p { font-size: .9rem; color: var(--muted); margin: .16rem 0; }

.help { display: grid; grid-template-columns: 1fr 1.55fr; align-items: start; column-gap: 2rem; padding: 2rem; }
.help h2 { grid-row: span 2; font-size: 1.35rem; }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; padding: .65rem 1.75rem .65rem 0; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; inset-inline-end: .15rem; color: var(--green); }
details[open] summary::after { content: "−"; }
details p { padding: 0 1.25rem .85rem 0; color: var(--muted); line-height: 1.55; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner { min-height: 4.25rem; }
.footer-inner span:first-child { font-weight: 800; color: var(--ink); }

@media (max-width: 56rem) {
  .tracking-card, .result-grid, .help { grid-template-columns: 1fr 1.8fr; gap: 1.25rem; padding-inline: 1.5rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.5rem; gap: .5rem; }
  .brand img { width: 6.5rem; }
  nav { gap: .55rem; }
  .nav-current { display: none; }
  .hero-inner { padding-block: 3.4rem 6rem; }
  .hero-image { object-position: 61% 50%; }
  .hero::after { background: linear-gradient(90deg, rgba(4, 31, 31, .88), rgba(4, 31, 31, .35)), linear-gradient(0deg, rgba(4, 31, 31, .65), transparent 62%); }
  .hero-description { max-width: 19rem; font-size: 1rem; }
  .content { margin-top: -3.5rem; }
  .tracking-card, .result-grid, .help { grid-template-columns: 1fr; }
  .tracking-card, .result-grid, .result-header { padding: 1.2rem; }
  .help { gap: .2rem; padding: 1.75rem .4rem; }
  .help h2 { grid-row: auto; margin-bottom: .45rem; }
}
@media (max-width: 27rem) {
  .lookup { flex-direction: column; }
  .lookup input { flex: auto; width: 100%; }
  .footer-inner { gap: .5rem; font-size: .8rem; }
}
