/* TensorUX custom overrides (not part of the Webflow export) */

/* Home hero, mobile only: buttons pinned to the bottom of the hero and the
   phone screenshot sitting behind the content as a background layer. */
@media screen and (max-width: 767px) {
  .hero-home.top-section {
    display: flex;
    flex-direction: column;
    min-height: max(calc(100vh - 90px), 640px);
    min-height: max(calc(100svh - 90px), 640px);
    padding-bottom: 40px;
  }

  .hero-home > .container-default {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: static;
    z-index: auto;
  }

  .hero-home .hero-home__grid,
  .hero-home .hero-home__content,
  .hero-home .hero-home__content > .inner-container {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .hero-home .hero-home__content {
    position: relative;
    z-index: 2;
  }

  .hero-home .hero-home__content .buttons-row {
    margin-top: auto;
    padding-top: 32px;
  }

  /* Give the outline button a solid-ish fill so it reads over the image */
  .hero-home .hero-home__content .btn-secondary {
    background-color: rgba(38, 23, 60, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  /* Phone screenshot as background */
  .hero-home .top-section-large-image-right---wrapper {
    position: absolute;
    z-index: 0;
    left: 50%;
    right: auto;
    bottom: -12%;
    width: 120%;
    max-width: 460px;
    margin: 0;
    transform: translateX(-40%);
    opacity: 0.8;
    pointer-events: none;
  }

  .hero-home .top-section-large-image-right---image-bg {
    z-index: 0;
    opacity: 0.4 !important;
    pointer-events: none;
  }

  /* Fade from the hero colour so the text on top stays legible */
  .hero-home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      var(--secondary--color-4) 0%,
      var(--secondary--color-4) 40%,
      rgba(38, 23, 60, 0.7) 58%,
      rgba(38, 23, 60, 0.25) 100%
    );
  }
}
