/* TaminYar homepage hero visual v1: spacing + premium 3D app artwork */
#ty-app-release-banner {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin-top: clamp(22px, 2.5vw, 36px) !important;
  min-height: 390px !important;
  padding: clamp(28px, 3.6vw, 50px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 12px !important;
}

/* New 3D smartphone artwork on the left. */
#ty-app-release-banner::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 49% !important;
  pointer-events: none !important;
  background-image: url("/assets/images/taminyar-hero-visual-v1.webp") !important;
  background-repeat: no-repeat !important;
  background-position: center left !important;
  background-size: contain !important;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 76%, transparent 100%) !important;
  mask-image: linear-gradient(90deg, #000 0%, #000 76%, transparent 100%) !important;
}

/* Remove the previous illustration only; keep the banner text and actions. */
#ty-app-release-banner img,
#ty-app-release-banner picture,
#ty-app-release-banner .ty-app-release-banner__visual,
#ty-app-release-banner .ty-app-release-banner__image,
#ty-app-release-banner .ty-release-visual,
#ty-app-release-banner .hero-visual,
#ty-app-release-banner .hero-image,
#ty-app-release-banner [class*="illustration"],
#ty-app-release-banner [class*="mockup"] {
  display: none !important;
}

#ty-app-release-banner > *:not(img):not(picture) {
  position: relative !important;
  z-index: 2 !important;
  width: min(56%, 720px) !important;
  max-width: 56% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

#ty-app-release-banner :is(h1, h2) {
  text-wrap: balance;
}

#ty-app-release-banner :is(a, button) {
  cursor: pointer;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  #ty-app-release-banner {
    min-height: 350px !important;
  }
  #ty-app-release-banner::before {
    width: 43% !important;
  }
  #ty-app-release-banner > *:not(img):not(picture) {
    width: 60% !important;
    max-width: 60% !important;
  }
}

/* Mobile: artwork first, text below; no horizontal overflow. */
@media (max-width: 768px) {
  #ty-app-release-banner {
    margin-top: 19px !important;
    min-height: 0 !important;
    padding: 225px 18px 24px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  #ty-app-release-banner::before {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 225px !important;
    background-position: center top !important;
    background-size: contain !important;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%) !important;
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%) !important;
  }

  #ty-app-release-banner > *:not(img):not(picture) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 380px) {
  #ty-app-release-banner {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 205px !important;
  }
  #ty-app-release-banner::before {
    height: 205px !important;
  }
}
