/* The homepage's delivery band (Ben, 7 November 2026): a full-width navy band between Our
   businesses and Locations, written from delivery.json by scripts/delivery.mjs. The Tap
   line runs on through it (line.js, a box under the band's content): in at the top, into
   a little shop and out at the bottom into Locations; from the shop a short delivery route
   branches off to a house, with a scooter riding along it as the page scrolls
   (delivery-band.js). */

.dband {
  position: relative;
  /* clip, not hidden: hidden would make the band the scrolling frame for the line's
     sticky cover (line.css), which then would not follow the window on a phone. */
  overflow: clip;
  padding: clamp(84px, 9vw, 132px) 0;
  background: var(--navy);
  color: var(--white);
  --focus: var(--accent-soft);
}

.dband__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 56px;
  align-items: center;
}

.dband__eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.dband__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7.2vw, 108px);
  line-height: 0.94;
  letter-spacing: 0.002em;
}

.dband__title-a,
.dband__title-b {
  display: block;
}

.dband__title-b {
  color: var(--accent-bg);
}

.dband__text {
  display: grid;
  gap: 12px;
  max-width: 46ch;
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-navy);
}

.dband__text p {
  margin: 0;
}

/* The small print under the logos. */
.dband__small {
  max-width: 680px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--on-navy);
  opacity: 0.8;
}

.dband__apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 36px;
}

.dband__app {
  aspect-ratio: 2 / 1;
  transition: box-shadow var(--ease), transform var(--ease);
}

.dband__app:hover {
  box-shadow: inset 0 0 0 3px var(--accent-bg);
  transform: translateY(-2px);
}

.dband__go {
  margin-top: 34px;
}

/* The route: the shop top left, the house bottom right; the route between them is drawn
   in .dband__branch, the scooter rides on it. */
.dband__route {
  position: relative;
  height: 340px;
}

/* The shop and the house, icons only: no names beside them (8 and 9 November 2026, Ben). */
.dband__shop,
.dband__home {
  position: absolute;
  z-index: 2;
}

.dband__shop {
  left: 4%;
  top: 6%;
}

/* Where the house sat above its "You" (the label and its gap: 29.69px; 22.59px on a phone), so it has not moved. */
.dband__home {
  right: 2%;
  bottom: calc(4% + 29.69px);
}

.dband__shop svg {
  display: block;
  width: 76px;
  height: auto;
}

.dband__home svg {
  display: block;
  width: 84px;
  height: auto;
}

.dband__scooter {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 66px;
  margin: -38px 0 0 -33px;
  opacity: 0;
  transform-origin: 50% 85%;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.dband__scooter svg {
  display: block;
  width: 100%;
  height: auto;
}

.dband__branch {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.dband__branch path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dband__dots {
  stroke: rgba(213, 221, 234, 0.5);
  stroke-dasharray: 0 11;
}

.dband__live {
  stroke: var(--accent);
}

@media (max-width: 1040px) {
  .dband__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    column-gap: 32px;
  }

  .dband__apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
  }
}

/* Phones: everything indented from the line in the left margin, as the Tap line above;
   the route between the words and the logos, from the shop on the line to the house. */
@media (max-width: 759px) {
  .dband {
    padding: 64px 0 72px;
  }

  .dband__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-left: 54px;
  }

  .dband__copy {
    display: contents;
  }

  .dband__eyebrow { order: 1; }
  .dband__title { order: 2; }
  .dband__text { order: 3; }
  .dband__route { order: 4; }
  .dband__apps { order: 5; }
  .dband__small { order: 6; }
  .dband__go { order: 7; }

  .dband__title {
    margin-top: 12px;
    font-size: clamp(44px, 13vw, 60px);
  }

  .dband__text {
    margin-top: 16px;
    font-size: 17px;
  }

  .dband__route {
    height: 150px;
    margin: 26px 0 8px -54px;
  }

  .dband__shop {
    left: 0;
    top: 10px;
  }

  .dband__home {
    right: 0;
    bottom: 22.59px;
  }

  .dband__shop svg {
    width: 50px;
  }

  .dband__home svg {
    width: 58px;
  }

  .dband__scooter {
    width: 50px;
    margin: -29px 0 0 -25px;
  }

  .dband__apps {
    gap: 10px;
    max-width: none;
    margin-top: 18px;
  }

  .dband__go {
    margin-top: 26px;
  }

  .dband__go .btn--order {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dband__app,
  .dband__scooter {
    transition: none;
  }

  .dband__app:hover {
    transform: none;
  }
}
