.tm-home-steps {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 2fr);
  gap: 52px;
  align-items: center;
  width: 100%;
  padding: 42px clamp(24px, 3.2vw, 64px);
  box-sizing: border-box;
  background: #f8f8fb;
  color: #235fa5;
}
.tm-home-steps,
.tm-home-steps * {
  font-family: inherit;
}
.tm-home-steps__intro h2 {
  margin: 0 0 24px;
  color: #2f8ee8;
  font-size: clamp(36px, 4.2vw, 76px);
  font-weight: 500;
  line-height: 0.98;
  white-space: pre-line;
}
.tm-home-steps__intro p {
  margin: 0;
  color: #235fa5;
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-line;
}
.tm-home-steps__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.tm-home-steps__card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(35, 95, 165, 0.08);
}
.tm-home-steps__image {
  position: absolute;
  inset: 0 0 0%;
  display: grid;
  place-items: start start;
  background-position: center;
  background-size: cover;
  color: #df3b86;
  font-size: 50px;
  font-weight: 500;
  z-index: 1;
}
.tm-home-steps__image > span {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: block;
  color: #2f659a;
  line-height: 1;
}
.tm-home-steps__copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 28px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 25%);
}
.tm-home-steps__copy > strong {
  display: none;
}
.tm-home-steps__copy h3 {
  margin: 26px 0 8px;
  color: #2f8ee8;
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 600;
}
.tm-home-steps__copy p {
  margin: 0;
  color: #235fa5;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}
/* .tm-home-steps__card:nth-child(1) .tm-home-steps__image {
  background: linear-gradient(135deg, #fff, #f8e9ef);
}
.tm-home-steps__card:nth-child(2) .tm-home-steps__image {
  background: linear-gradient(135deg, #fff, #f4edf4);
}
.tm-home-steps__card:nth-child(3) .tm-home-steps__image {
  background: linear-gradient(135deg, #fff, #f8edf4);
} */
@media (max-width: 980px) {
  .tm-home-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tm-home-steps__intro h2 {
    font-size: 48px;
  }
  .tm-home-steps__cards {
    grid-template-columns: 1fr;
  }
  .tm-home-steps__card {
    aspect-ratio: 4 / 5;
  }
}
@media (max-width: 767px) {
  .tm-home-steps {
    padding: 34px 20px;
  }
  .tm-home-steps__intro h2 {
    font-size: 40px;
  }
  .tm-home-steps__cards {
    gap: 18px;
  }
  .tm-home-steps__card {
    aspect-ratio: 4 / 5;
  }
  .tm-home-steps__copy {
    padding: 14px 20px 22px;
  }
  .tm-home-steps__copy h3 {
    font-size: 30px;
  }
  .tm-home-steps__copy p {
    font-size: 16px;
  }
  .tm-home-steps__image > span {
    top: 16px;
    right: 16px;
    font-size: 40px;
  }
}
/* Keep uploaded step media contained inside each card. */
.tm-home-steps__image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}
