:root {
  --pn-orange: #e75204;
  --pn-orange-dark: #c8460a;
  --pn-navy: #001a73;
  --pn-blue: #4e4ee2;
  --pn-ink: #1f1e2f;
  --pn-muted: #6b6b78;
  --pn-line: #e4e4ea;
  --pn-green: #1c9e5a;
  --pn-warn-bg: #fdf3d6;
  --pn-warn-line: #f2c94c;
  --pn-illus-bg: #fbe6a2;
  --pn-font: "Hanken Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pn-maxw: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--pn-font);
  color: var(--pn-ink);
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--pn-line);
}

.site-header__inner {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: inline-flex;
}

.site-header__logo img {
  display: block;
  height: 30px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.lang-switch {
  color: var(--pn-muted);
  text-decoration: none;
  padding: 2px 4px;
}

.lang-switch.is-active {
  color: var(--pn-orange);
}

.lang-switch__sep {
  color: var(--pn-line);
}

/* Page */
.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* Warning banner */
.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--pn-warn-bg);
  border: 1px solid var(--pn-warn-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 15px;
}

.banner__icon {
  flex: 0 0 auto;
  color: #b8860b;
}

.banner__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Sender row */
.sender-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pn-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.sender-row__kebab {
  color: var(--pn-muted);
  line-height: 0;
}

.sender-row__kebab svg {
  width: 18px;
  height: 18px;
}

/* Status hero */
.status {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status__text {
  min-width: 0;
}

.status__heading {
  color: var(--pn-navy);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.status--delivered .status__heading {
  color: var(--pn-navy);
}

.status__sub {
  margin: 0;
  font-size: 17px;
  color: var(--pn-ink);
}

.status__sub--muted {
  color: var(--pn-muted);
  font-size: 15px;
  margin-top: 4px;
}

/* Illustration */
.illus {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 20px;
  background: var(--pn-illus-bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.illus svg {
  width: 92px;
  height: 92px;
}

.illus__badge {
  color: #fff;
}

/* Section headings */
.section {
  margin-top: 40px;
}

.section__title {
  color: var(--pn-orange);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.subhead {
  color: var(--pn-ink);
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.subhead:first-child {
  margin-top: 0;
}

.addr {
  margin: 0;
  font-size: 16px;
  color: var(--pn-ink);
}

.addr span {
  display: block;
}

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

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Two-column layout */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 640px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Map (vandaag) */
.map {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #e7ede7 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, #e7ede7 0 1px, transparent 1px 30px),
    linear-gradient(135deg, #eef3ee, #e2ebe5);
  border: 1px solid var(--pn-line);
}

.map__road {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 55%;
  height: 16px;
  background: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 1px var(--pn-line);
}

.map__pin {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50% 50% 50% 0;
  background: var(--pn-orange);
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.map__pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.map__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.map__badge span {
  color: var(--pn-orange);
}

/* Pickup */
.pickup__name {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 2px;
}

.pickup__addr {
  color: var(--pn-muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff7f2;
  border: 1px dashed var(--pn-orange);
  border-radius: 8px;
  padding: 10px 14px;
}

.code__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pn-muted);
  font-weight: 700;
}

.code__value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pn-ink);
}

/* Journey timeline */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey__step {
  position: relative;
  padding: 0 0 22px 34px;
}

.journey__step:last-child {
  padding-bottom: 0;
}

/* Connector runs from this dot's centre to the next dot's centre, so the
   line stays continuous through every dot regardless of step height. */
.journey__step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  bottom: -13px;
  width: 2px;
  background: var(--pn-orange);
  opacity: 0.35;
}

.journey__step:last-child::before {
  display: none;
}

/* Collapsed: show only the first two steps, and stop the line after step 2. */
.journey--collapsed .journey__step:nth-child(n + 3) {
  display: none;
}

.journey--collapsed .journey__step:nth-child(2) {
  padding-bottom: 0;
}

.journey--collapsed .journey__step:nth-child(2)::before {
  display: none;
}

.journey__dot {
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--pn-orange);
  color: var(--pn-orange);
  background: #fff;
  display: grid;
  place-items: center;
}

.journey__dot svg {
  width: 13px;
  height: 13px;
}

.journey__step--latest .journey__dot {
  background: var(--pn-orange);
  color: #fff;
}

.journey__time {
  font-size: 14px;
  color: var(--pn-muted);
}

.journey__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--pn-ink);
  margin: 0;
}

.journey__step--latest .journey__title {
  color: var(--pn-navy);
}

.journey__desc {
  font-size: 14px;
  color: var(--pn-muted);
  margin: 2px 0 0;
}

.toggle {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--pn-blue);
}

.toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background: var(--pn-orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--pn-orange-dark);
}

.btn--ghost {
  background: #fff;
  color: var(--pn-orange);
  box-shadow: inset 0 0 0 2px var(--pn-orange);
}

.btn--ghost:hover {
  background: #fff7f2;
}

/* Footer */
.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--pn-line);
}

.site-footer__inner {
  max-width: var(--pn-maxw);
  margin: 0 auto;
  padding: 22px 24px;
  color: var(--pn-muted);
  font-size: 13px;
}

.site-footer__copy {
  margin: 0 0 4px;
  font-weight: 700;
}

.site-footer__note {
  margin: 0;
}

@media (max-width: 560px) {
  .status {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .status__heading {
    font-size: 26px;
  }
  .illus {
    width: 104px;
    height: 104px;
  }
}
