.breadcrumb {
  background-color: #f5f5f5;
  padding: 1rem;
  margin: 0rem 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-body {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.landing-caption .store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.landing-caption .store-button img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.landing-caption .store-button:hover img {
  transform: translateY(-2px);
}

.landing-caption .hero-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: #a9abac;
}

/* ==========================================================================
   Screenshot carousel
   ==========================================================================
   Screens are 640x1390 (ratio 0.4604). The hero is height-constrained so a
   tall screenshot can't push the store buttons off a laptop screen: the
   width is derived from the viewport height, then capped.
   ========================================================================== */

.shot-carousel {
  position: relative;
  width: min(290px, calc(58vh * 0.4604));
  margin: 0 auto;
}

.shot-carousel:focus-visible {
  outline: 2px solid #4fc1ea;
  outline-offset: 8px;
}

/* Without JS the slides simply stack; nothing is hidden. */
.shot-slide {
  margin: 0 0 1.5rem;
}

.shot-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(23, 33, 40, 0.26);
}

.shot-arrow,
.shot-dots {
  display: none;
}

/* --- enhanced (JS) state --- */

.shot-carousel.is-enhanced .shot-carousel-viewport {
  position: relative;
  aspect-ratio: 640 / 1390;
}

.shot-carousel.is-enhanced .shot-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.shot-carousel.is-enhanced .shot-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.shot-carousel.is-enhanced .shot-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(20, 28, 34, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.shot-arrow span {
  position: relative;
  top: -2px;
}

.shot-carousel.is-enhanced:hover .shot-arrow,
.shot-carousel.is-enhanced:focus-within .shot-arrow {
  opacity: 1;
}

.shot-carousel.is-enhanced .shot-arrow:hover {
  background: rgba(20, 28, 34, 0.8);
}

.shot-carousel.is-enhanced .shot-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.shot-prev { left: 10px; }
.shot-next { right: 10px; }

.shot-carousel.is-enhanced .shot-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 1.1rem;
}

.shot-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #c3ccd2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shot-dot:hover { background: #8f9ba3; }

.shot-dot.is-active {
  background: #4a5c68;
  transform: scale(1.25);
}

.shot-dot:focus-visible {
  outline: 2px solid #4fc1ea;
  outline-offset: 3px;
}

/* Touch devices have no hover, so keep the arrows visible. */
@media (hover: none) {
  .shot-carousel.is-enhanced .shot-arrow { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-carousel.is-enhanced .shot-slide { transition: none; }
}

/* ==========================================================================
   Section 3 - every screen, side by side
   ========================================================================== */

.screenshot-section {
  background: linear-gradient(180deg, #f9fafb 0%, #eef1f4 100%);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.screenshot-grid .screenshot {
  margin: 0;
}

.screenshot-grid .screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(23, 33, 40, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screenshot-grid .screenshot img:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(23, 33, 40, 0.24);
}

@media (max-width: 1023px) {
  .screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 660px;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .shot-carousel {
    /* Stacked layout scrolls, so the viewport-height cap is dropped. */
    width: min(280px, 78vw);
    margin-top: 3rem;
  }

  .landing-caption .store-buttons { justify-content: center; }
  .landing-caption .hero-note { text-align: center; }

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