/* How It Works page-specific polish.
   Core layout, typography, buttons, cards, hero, and section styling are inherited from home.css. */

.dhm-how-page-content .dhm-home-hero {
  margin-bottom: 0;
}

.dhm-how-actions__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dhm-how-actions .dhm-home-problem-card__content h3 {
  min-height: 0;
}

.dhm-how-reset .dhm-home-how__grid {
  align-items: start;
}

.dhm-how-reset .dhm-home-how__feature {
  position: sticky;
  top: 110px;
}

.dhm-how-cta .dhm-products-calculator-cta {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .dhm-how-actions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dhm-how-reset .dhm-home-how__feature {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .dhm-how-actions__grid {
    grid-template-columns: 1fr;
  }
}

/* Static mechanism/video section replacing the previous instructions block. */
.dhm-how-mechanics {
  position: relative;
  overflow: hidden;
}

.dhm-how-mechanics__head {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.dhm-how-mechanics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.dhm-how-mechanism-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(3, 38, 70, 0.10);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240, 249, 255, 0.92));
  box-shadow: 0 22px 55px rgba(3, 38, 70, 0.10);
}

.dhm-how-mechanism-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(0, 180, 216, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 180, 216, 0.18);
  font-size: 28px;
  line-height: 1;
}

.dhm-how-mechanism-card__copy h3 {
  margin: 8px 0 10px;
  color: #032646;
  font-size: clamp(1.25rem, 1.6vw, 1.65rem);
  line-height: 1.1;
}

.dhm-how-mechanism-card__copy p:last-child {
  margin-bottom: 0;
}

.dhm-how-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(3, 38, 70, 0.08), rgba(0, 180, 216, 0.12));
  box-shadow: inset 0 0 0 1px rgba(3, 38, 70, 0.08);
}

.dhm-how-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dhm-how-video-caption {
  margin: -4px 0 0;
  color: rgba(3, 38, 70, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .dhm-how-mechanics__grid {
    grid-template-columns: 1fr;
  }

  .dhm-how-mechanism-card {
    padding: 22px;
  }
}


/* Condensed 6-in-1 action cards with images removed. */
.dhm-how-actions .dhm-home-problem-card {
  min-height: 0;
  padding: 18px 20px;
}

.dhm-how-actions .dhm-home-problem-card__image {
  display: none !important;
}

.dhm-how-actions .dhm-home-problem-card__content {
  padding: 0;
}

.dhm-how-actions .dhm-home-problem-card__content h3 {
  margin: 0 0 8px;
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  line-height: 1.15;
}

.dhm-how-actions .dhm-home-problem-card__content p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.dhm-how-actions__grid {
  gap: 16px;
}

/* How Dazzle Works cards without icons. */
.dhm-how-mechanism-card__icon {
  display: none !important;
}

.dhm-how-mechanism-card {
  gap: 16px;
}

@media (max-width: 640px) {
  .dhm-how-actions .dhm-home-problem-card {
    padding: 16px 18px;
  }
}
