/* Local homepage review: keep the supplied brand and layout, restore breathing room. */
body main > .page-section:not(.block-hero) > .content-shell {
  padding-top: 100px;
  padding-bottom: 100px;
}

body main .section-heading {
  margin-bottom: 48px;
}

body main #home-scenes .home-scenes-rows {
  gap: 56px;
}

body main .block-hero .home-hero-actions {
  margin-top: 32px;
  justify-content: center;
}

body main .block-hero .home-hero-actions .button {
  white-space: nowrap;
}

/* Use the existing clean frame, with locale-specific HTML subtitles. */
body main #home-sample .home-localized-before {
  position: relative;
}

body main #home-sample .home-sample-subtitle {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 9%;
  color: #fff;
  font-size: clamp(11px, 1.3vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  -webkit-text-stroke: 0.6px #24252a;
  paint-order: stroke fill;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Keep transparent subtitle backgrounds; preserve the original per-word colors. */
body main #home-scenes .home-scenes-comparison .home-comparison-subtitled .home-scenes-subtitle,
body main #home-scenes .home-scenes-comparison .home-comparison-subtitled .home-scenes-subtitle :is(b, em, strong) {
  background: transparent !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 600 !important;
  -webkit-text-stroke: 0.6px #24252a;
  paint-order: stroke fill;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* No pink focus frame. Keyboard focus changes the handle itself, not its outline. */
body main #home-scenes .home-scenes-comparison:focus-within .home-comparison-divider i {
  outline: none;
}

body main #home-scenes .home-scenes-comparison:has(.home-comparison-range:focus-visible) .home-comparison-divider i {
  background: #30343c;
  color: #fff;
}

@media (min-width: 701px) {
  body main > .block-hero .hero-grid {
    min-height: 27rem;
  }
}

@media (max-width: 700px) {
  body main .block-hero .hero-grid::after {
    top: -2rem;
    right: 1rem;
  }

  body main > .page-section:not(.block-hero) > .content-shell {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  body main .section-heading {
    margin-bottom: 36px;
  }

  body main #home-scenes .home-scenes-rows {
    gap: 36px;
  }
}
