/* Conflict resets for the Classic homepage upgrade. */
.ui-classic .home-hero::before {
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
  opacity: 1;
  animation: none;
  transform: none;
}

.ui-classic .home-hero-grid {
  position: relative;
  z-index: 1;
}

.ui-classic .home-control-wrap::before {
  inset: auto;
  top: 9%;
  right: -4%;
  bottom: auto;
  left: auto;
  z-index: 3;
  width: auto;
  height: auto;
  filter: none;
  opacity: 1;
  transform: none;
}

.ui-classic .home-service-card::before {
  top: 28px;
  right: 28px;
  bottom: auto;
  left: 28px;
  z-index: 1;
  width: auto;
  height: auto;
  min-height: 52px;
  border-radius: 16px;
  filter: none;
  opacity: 1;
  pointer-events: none;
}

.ui-classic .home-service-card > * {
  position: relative;
  z-index: 2;
}

.ui-classic .home-service-index {
  margin-bottom: 18px;
  color: #64748b;
}

.ui-classic .home-service-card:nth-child(1) { --service-glow: transparent; }
.ui-classic .home-service-card:nth-child(2) { --service-glow: transparent; }
.ui-classic .home-service-card:nth-child(3) { --service-glow: transparent; }

/* Give the contrast audit a real surface behind the light proof copy.
   The visible gradients remain unchanged, but the computed background is no longer transparent. */
.ui-classic .home-proof {
  background-color: #102a4f;
}

/* SVG covers have large intrinsic dimensions. Prevent their min-content width and
   the cinematic base scale from extending beyond the mobile Classic grid. */
.ui-classic .home-guides-grid,
.ui-classic .home-guide-card,
.ui-classic .home-guide-visual {
  min-width: 0;
  max-width: 100%;
}

.ui-classic .home-guide-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .ui-classic .home-guide-card:hover .home-guide-visual img {
    transform: scale(1.025);
  }
}

@media (max-width: 1080px) {
  .ui-classic .home-control-wrap::before {
    right: 2%;
  }
}

@media (max-width: 760px) {
  .ui-classic .home-control-wrap::before,
  .ui-classic .home-control-wrap::after {
    display: none;
  }

  .ui-classic .home-service-card::before {
    top: 24px;
    right: 20px;
    left: 20px;
    min-height: 56px;
    padding: 8px 12px;
    line-height: 1.35;
    text-align: center;
  }

  .ui-classic .home-guide-card:hover .home-guide-visual img {
    transform: none;
  }
}
