/* Let the homepage grow with content so the demo player is not clipped. */
body.body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

/*
  Gradually reduce .mainheroback height only between 980px and 1580px.
  1580px → 100vh (same as default). 980px → 75vh. Other widths unchanged.
*/
@media screen and (min-width: 980px) and (max-width: 1580px) {
  .mainheroback.wf-section,
  .mainheroback {
    height: calc(75vh + (100vw - 980px) / 600px * 25vh);
  }
}

.home-demo-video {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 28px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f8 22%, #f4f5f8 100%);
  box-sizing: border-box;
}

.home-demo-video__inner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: border-box;
  text-align: center;
}

.home-demo-video__eyebrow {
  margin: 0 0 8px;
  color: #8a8a8a;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-demo-video__title {
  margin: 0 0 12px;
  font-family: Poppins, sans-serif;
  color: #2a2a44;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.home-demo-video__title span {
  color: #ff6e5c;
}

.home-demo-video__lede {
  max-width: 520px;
  margin: 0 auto 28px;
  color: #686868;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

.home-demo-video__card {
  width: 100%;
  border-radius: 14px;
  background-color: #2a2a44;
  box-shadow: 0 18px 40px rgba(42, 42, 68, 0.16),
    0 2px 6px rgba(42, 42, 68, 0.08);
}

.home-demo-video__frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background-color: #2a2a44;
}

.home-demo-video__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Keep this heading fully inside its section; it used to sit under the splash. */
.what-we-give-you-section {
  height: auto;
  min-height: 220px;
  margin-top: 0;
  padding-top: 56px;
  padding-bottom: 56px;
  overflow: visible;
}

.what-we-give_01 {
  margin-top: 0;
}

@media screen and (max-width: 991px) {
  .home-demo-video {
    padding: 32px 0 48px;
  }

  .home-demo-video__title {
    font-size: 26px;
  }

  .what-we-give-you-section {
    margin-top: 0;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media screen and (max-width: 767px) {
  .home-demo-video__inner {
    padding: 0 4%;
  }

  .home-demo-video__title {
    font-size: 22px;
  }

  .home-demo-video__lede {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .home-demo-video__card,
  .home-demo-video__frame {
    border-radius: 10px;
  }

  .what-we-give-you-section {
    margin-top: 0;
    padding-top: 32px;
    padding-bottom: 32px;
  }
}
