/* ---------- tokens ---------- */
:root {
  --paper: #f7f8f8;
  --white: #ffffff;
  --ink: #0c2a32;
  --teal: #1e93b0;
  --signal: #7bdff2;
  --graphite: #55757d;
  --hair: #d8e4e6;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-btn: 8px;
  --radius-card: 16px;
  --wrap: 1160px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: #143c47; }
.btn-secondary {
  background: var(--hair);
  color: var(--ink);
}
.btn-secondary:hover { background: #c9d8db; }
.btn-small {
  height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

/* ---------- header ---------- */
.nav-toggle-input { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 8px 0;
}
.main-nav a:hover { color: var(--teal); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius-btn);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--hair);
}
.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--hair);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle-input:checked ~ .site-header .mobile-nav { display: flex; }
}

/* ---------- section shells ---------- */
.band { padding: 96px 0; }
.band-dark {
  background: var(--ink);
  color: var(--white);
}
.band-dark .section-subhead { color: rgba(255, 255, 255, 0.72); }
.band-dark .btn-primary { background: var(--signal); color: var(--ink); }
.band-dark .btn-primary:hover { background: #9de6f4; }
.band-dark .btn-secondary { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.band-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

h2 {
  font-weight: 800;
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}
.section-subhead {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 1.125rem;
  color: var(--graphite);
  line-height: 1.5;
}

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 0;
  text-align: center;
}
.hero .wrap { max-width: 780px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.hero-subhead {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: 1.1875rem;
  color: var(--graphite);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-note {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--graphite);
}

.hero-scene {
  margin-top: 64px;
  width: 100%;
  line-height: 0;
  background: var(--ink);
}
.hero-scene svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- problem band ---------- */
.figures {
  display: flex;
  gap: 64px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}
.figure {
  max-width: 320px;
  text-align: center;
}
.figure-number {
  font-weight: 800;
  font-size: clamp(2.5rem, 1.9rem + 2vw, 3.5rem);
  letter-spacing: -0.02em;
  color: var(--signal);
  line-height: 1;
}
.figure p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
}

/* ---------- bars ---------- */
.bar-block { margin-top: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.bar-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.band-dark .bar-labels { color: rgba(255, 255, 255, 0.85); }

.bar {
  position: relative;
  display: flex;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.bar-large { height: 64px; }
.bar-small { height: 44px; border-color: var(--hair); }

.bar-fill {
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
}
.bar-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  font-weight: 700;
  font-size: 0.9375rem;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.14) 2px,
    transparent 2px,
    transparent 10px
  );
  color: rgba(255, 255, 255, 0.85);
}
.bar-small .bar-empty {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(12, 42, 50, 0.12),
    rgba(12, 42, 50, 0.12) 2px,
    transparent 2px,
    transparent 10px
  );
  color: var(--ink);
}

.bar-source {
  margin-top: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  padding: 32px;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
}
.step-card h3 {
  margin-top: 20px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.step-card p {
  margin-top: 12px;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- carriers / shippers panels ---------- */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.panel { padding: 88px 24px; }
.panel-light { background: var(--white); }
.panel-dark { background: var(--ink); color: var(--white); }
.panel-inner {
  max-width: 460px;
  margin: 0 auto;
}
.panel h2 { text-align: left; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
.panel-list { margin-top: 32px; }
.panel-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 1.0625rem;
}
.panel-dark .panel-list li { border-bottom-color: rgba(255, 255, 255, 0.16); }
.panel-list li:first-child { padding-top: 0; }
.panel .btn { margin-top: 32px; }
.panel-light .btn { background: var(--ink); color: var(--white); }
.panel-dark .btn { background: var(--signal); color: var(--ink); }
.panel-dark .btn:hover { background: #9de6f4; }

/* ---------- routes ---------- */
.route-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 56px;
}
.route-name {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 10px;
}
.route-note {
  margin-top: 10px;
  color: var(--graphite);
  font-size: 0.9375rem;
}
.legend {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 32px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}
.legend-loaded { background: var(--teal); }
.legend-empty {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(12, 42, 50, 0.25),
    rgba(12, 42, 50, 0.25) 2px,
    transparent 2px,
    transparent 6px
  );
  border: 1px solid var(--hair);
}

/* ---------- status ---------- */
.status-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.status-col {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  padding: 28px;
}
.status-col h3 {
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.status-col p {
  margin-top: 12px;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.program-id {
  margin-top: 14px;
  font-size: 0.8125rem;
  word-break: break-all;
}
.program-id code {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- closing ---------- */
.closing .wrap { max-width: 720px; }

/* ---------- footer ---------- */
.site-footer {
  background: #071a1f;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 72px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.footer-brand .logo-footer {
  color: var(--white);
  font-weight: 800;
  font-size: 1.375rem;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 280px;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9375rem;
}
.footer-col a:hover { color: var(--signal); }

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 56px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 24px;
  font-size: 0.8125rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--signal); }
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .band { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .status-columns { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .figures { gap: 40px; }
}

@media (max-width: 600px) {
  .header-inner { height: 64px; }
  .hero { padding: 56px 0 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .header-actions .btn-small { width: auto; }
  .bar-labels { font-size: 0.8125rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-subhead, .hero-actions, .hero-note {
    animation: fade-up 600ms ease both;
  }
  .hero-subhead { animation-delay: 80ms; }
  .hero-actions { animation-delay: 140ms; }
  .hero-note { animation-delay: 200ms; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
