.graphic-hero {
  display: grid;
  place-items: center;
  height: 590px;
}

.graphic-hero::before {
  inset: 10% 8%;
}

.graphic-stack {
  position: relative;
  width: min(100%, 560px);
  height: 530px;
}

.route-graphic,
.navigation-graphic {
  overflow: hidden;
  color: #132a49;
  background: #fff;
  border: 1px solid rgba(16, 42, 79, 0.13);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(16, 42, 79, 0.16);
}

.graphic-stack > .route-graphic,
.graphic-stack > .navigation-graphic {
  position: absolute;
  width: 74%;
}

.graphic-stack > .route-graphic {
  top: 0;
  left: 0;
}

.graphic-stack > .navigation-graphic {
  right: 0;
  bottom: 0;
}

.graphic-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}

.graphic-badge {
  padding: 5px 9px;
  color: #0877df;
  background: #e7f3ff;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.graphic-title {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graphic-more {
  color: #8190a4;
  letter-spacing: 0.08em;
}

.route-canvas,
.mini-map {
  position: relative;
  overflow: hidden;
  background: #eaf3ed;
}

.route-canvas {
  height: 265px;
  border-top: 1px solid rgba(16, 42, 79, 0.08);
  border-bottom: 1px solid rgba(16, 42, 79, 0.08);
}

.route-canvas svg,
.mini-map svg {
  width: 100%;
  height: 100%;
}

.street-grid,
.map-roads {
  fill: none;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-linecap: round;
}

.street-grid {
  stroke-width: 16;
}

.route-shadow {
  fill: none;
  stroke: rgba(0, 62, 122, 0.13);
  stroke-width: 22;
  stroke-linecap: round;
}

.route-line,
.nav-route {
  fill: none;
  stroke: #0a84ff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-line {
  stroke-width: 11;
}

.route-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #0a84ff;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 7px 14px rgba(16, 42, 79, 0.2);
  font-size: 0.74rem;
  font-weight: 900;
}

.route-pin.pin-one { left: 6%; bottom: 9%; }
.route-pin.pin-two { left: 43%; top: 20%; }
.route-pin.pin-three { right: 21%; top: 38%; }
.route-pin.pin-four { right: 5%; top: 7%; }

.route-pin {
  padding-top: 1px;
  text-indent: 0;
}

.route-summary,
.nav-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  color: #65758b;
  font-size: 0.76rem;
}

.route-summary strong,
.nav-stats strong {
  color: #132a49;
}

.route-summary small {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: #fff;
  background: #23b26d;
  border-radius: 50%;
  font-weight: 900;
}

.navigation-graphic {
  padding-top: 2px;
}

.nav-manoeuvre {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 17px 20px 12px;
}

.turn-symbol {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #0a84ff;
  background: #e4f2ff;
  border-radius: 17px;
  font-size: 2.25rem;
  font-weight: 800;
}

.nav-manoeuvre strong,
.nav-manoeuvre span {
  display: block;
}

.nav-manoeuvre strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.nav-manoeuvre div > span {
  overflow: hidden;
  margin-top: 5px;
  color: #68788e;
  font-size: 0.78rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-divider {
  height: 1px;
  margin: 0 20px;
  background: rgba(16, 42, 79, 0.11);
}

.nav-next {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 22px;
  color: #0a84ff;
}

.nav-next i {
  width: 24%;
  height: 7px;
  background: #d6dde7;
  border-radius: 999px;
}

.nav-next i:last-child {
  width: 15%;
}

.mini-map {
  height: 205px;
  background: #e8f1e7;
  border-top: 1px solid rgba(16, 42, 79, 0.08);
}

.map-roads {
  stroke-width: 18;
}

.nav-route {
  stroke-width: 12;
}

.position-arrow {
  position: absolute;
  left: 54%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: #0a84ff;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 7px 17px rgba(16, 42, 79, 0.22);
  transform: translate(-50%, -50%) rotate(16deg);
}

.product-shots figure {
  padding: 12px;
}

.product-shots .route-graphic,
.product-shots .navigation-graphic {
  height: 455px;
  box-shadow: none;
}

.product-shots .route-canvas {
  height: 342px;
}

.product-shots .mini-map {
  height: 247px;
}

.product-shots figcaption {
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.75rem);
}

@media (max-width: 980px) {
  .graphic-hero {
    height: 570px;
  }
}

@media (max-width: 680px) {
  .graphic-hero {
    height: 470px;
  }

  .graphic-stack {
    height: 440px;
  }

  .graphic-stack > .route-graphic,
  .graphic-stack > .navigation-graphic {
    width: 82%;
  }

  .route-canvas {
    height: 205px;
  }

  .mini-map {
    height: 145px;
  }

  .nav-manoeuvre {
    grid-template-columns: 50px 1fr;
  }

  .turn-symbol {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }

  .nav-manoeuvre strong {
    font-size: 1.25rem;
  }

  .product-shots {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .route-graphic,
  .navigation-graphic {
    color: #eff5fc;
    background: #10233b;
    border-color: rgba(198, 216, 238, 0.18);
  }

  .route-summary strong,
  .nav-stats strong {
    color: #eff5fc;
  }

  .route-canvas,
  .mini-map {
    filter: brightness(0.72) saturate(0.9);
  }
}
