:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5a6870;
  --line: #d9e1e5;
  --paper: #ffffff;
  --wash: #f4f8f7;
  --teal: #007f7a;
  --teal-dark: #005f5c;
  --red: #c9342f;
  --gold: #f4b63f;
  --green: #2f7d32;
  --blue: #2f6fbd;
  --shadow: 0 18px 48px rgba(23, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.92rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 2.7rem;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 13rem;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--teal-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 7.8rem);
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(90deg, rgba(0, 127, 122, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 111, 189, 0.08) 1px, transparent 1px),
    #f8fbfb;
  background-size: 48px 48px;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 12ch;
  font-size: clamp(3.25rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.hero-facts,
.catalog-controls,
.notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button,
.filter-button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button.secondary,
.filter-button {
  background: #fff;
  color: var(--ink);
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero-facts {
  margin-top: 1.4rem;
  color: var(--muted);
  font-weight: 800;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-facts span::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--gold);
}

.hero-visual {
  min-height: 34rem;
}

.route-card {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(244, 182, 63, 0.2), transparent 24%),
    radial-gradient(circle at 84% 75%, rgba(0, 127, 122, 0.16), transparent 25%),
    #fff;
  box-shadow: var(--shadow);
}

.route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.route-top strong {
  color: var(--ink);
}

.route-map {
  position: absolute;
  inset: 4.3rem 1rem 1rem;
}

.route-map::before {
  content: "";
  position: absolute;
  inset: 8% 14% 16% 16%;
  border: 4px solid rgba(0, 127, 122, 0.25);
  border-right-color: rgba(201, 52, 47, 0.3);
  border-bottom-color: rgba(244, 182, 63, 0.45);
  border-radius: 45% 34% 42% 30%;
  transform: rotate(-8deg);
}

.store-node,
.campus-node {
  position: absolute;
  display: grid;
  align-content: center;
  width: clamp(7rem, 14vw, 10rem);
  min-height: 4.9rem;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 0 12px 26px rgba(23, 33, 38, 0.12);
  color: #fff;
  font-weight: 900;
  line-height: 1.08;
}

.store-node small,
.campus-node small {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.walmart { left: 4%; top: 8%; background: var(--blue); }
.dollarama { right: 5%; top: 18%; background: var(--red); }
.tire { left: 12%; bottom: 18%; background: var(--ink); }
.grocer { right: 17%; bottom: 7%; background: var(--green); }
.campus-node {
  right: 22%;
  top: 47%;
  transform: translateY(-50%);
  background: var(--teal);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.section:nth-of-type(even) {
  background: var(--wash);
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 1.6rem;
}

.section-heading.inline {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.compare-grid,
.steps,
.stock-grid,
.bundle-grid,
.option-grid,
.product-grid {
  display: grid;
  gap: 1rem;
}

.compare-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps,
.stock-grid,
.bundle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-grid article,
.steps article,
.stock-grid article,
.product-card,
.bundle,
.option-grid article,
.promo-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
}

.compare-grid article,
.steps article,
.stock-grid article,
.product-card,
.option-grid article,
.faq-list details {
  padding: 1rem;
}

.compare-grid p,
.steps p,
.stock-grid p,
.product-card p,
.option-grid p,
.faq-list p,
.promo-panel p {
  color: var(--muted);
}

.steps article span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.notice-row {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
}

.source-badge {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  background: var(--line);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.source-badge.local { background: #d9f0ee; color: var(--teal-dark); }
.source-badge.marketplace { background: #ffe6bd; color: #815000; }
.source-badge.warehouse { background: #d8e8ff; color: #184f91; }
.source-badge.shuttle { background: #f8d9d7; color: #8e201d; }
.source-badge.walmart { background: #d8e8ff; color: #184f91; }
.source-badge.dollarama { background: #f8d9d7; color: #8e201d; }
.source-badge.tire { background: #e0e3e6; color: #172126; }
.source-badge.grocer { background: #ddf0df; color: #1f6624; }
.source-badge.dropship { background: #fff0bd; color: #755400; }

.product-card {
  display: flex;
  min-height: 13.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.product-card .sku {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.product-card .price {
  margin-top: 0.7rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.bundle {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
}

.bundle.featured {
  border-color: rgba(0, 127, 122, 0.38);
  background: #eefaf8;
}

.bundle strong {
  font-size: 1.6rem;
}

.promo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--ink);
  color: #fff;
}

.promo-panel .eyebrow,
.promo-panel p {
  color: #d5eef0;
}

.interac-box {
  display: grid;
  gap: 0.45rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  padding: 1rem;
}

.interac-box span {
  color: var(--muted);
}

.option-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 58rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0.75rem 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

@media (max-width: 1180px) {
  .compare-grid,
  .stock-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .demo-banner,
  .site-header,
  .section-heading.inline,
  .promo-panel,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    top: 4.15rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.75rem, 13vw, 4.6rem);
  }

  .hero-visual,
  .route-card {
    min-height: 28rem;
  }

  .steps,
  .bundle-grid,
  .option-grid,
  .promo-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 5.55rem;
  }

  .compare-grid,
  .stock-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .catalog-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .catalog-controls .filter-button:first-child {
    grid-column: 1 / -1;
  }

  .store-node,
  .campus-node {
    width: 7.2rem;
    min-height: 4.55rem;
    padding: 0.6rem;
    font-size: 0.88rem;
  }

  .dollarama { right: 0; }
  .campus-node { right: 8%; }
}
