/* App Promotion Banner */
.app-promo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1120px;
  height: 66px;
  margin: 20px auto;
  background: linear-gradient(to right, #F73833 0%, #0C4497 100%);
  border-radius: 80px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.app-promo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(247, 56, 51, 0.4), 0 0 40px rgba(12, 68, 151, 0.3);
}

.app-promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/static/images/app/hero-vectors.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.app-promo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
  filter: blur(3px);
  transform: skewX(-20deg);
  mix-blend-mode: overlay;
}

.app-promo:hover::after {
  animation: gleam 0.7s ease-out forwards;
}

@keyframes gleam {
  to {
    left: 150%;
  }
}

.app-promo__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 50px;
  gap: 94px;
}

.app-promo__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.app-promo__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.app-promo__left span {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: bold;
  line-height: 30px;
  white-space: nowrap;
}

.app-promo__right {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: bold;
  text-decoration: underline;
  text-underline-position: from-font;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive styles */
@media (max-width: 1120px) {
  .app-promo {
    margin: 20px;
    border-radius: 40px;
  }

  .app-promo__content {
    padding: 0 40px;
    gap: 40px;
  }

  .app-promo__left span,
  .app-promo__right {
    font-size: 20px;
    line-height: 26px;
  }

  .app-promo__icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .app-promo {
    height: auto;
    min-height: 66px;
    border-radius: 30px;
  }

  .app-promo__content {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    text-align: center;
  }

  .app-promo__left {
    flex-direction: column;
    gap: 12px;
  }

  .app-promo__left span {
    white-space: normal;
  }
}

/* Homepage Banner Wrapper */
.app-promo-wrap {
  padding: 40px 20px 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* Homepage Banner Variant */
.app-promo--homepage {
  height: 180px;
  margin: 0 auto;
  border-radius: 160px;
  max-width: calc(var(--max-width-desktop) - 80px);
}

.app-promo--homepage .app-promo__content {
  padding: 0 60px;
  gap: 40px;
  justify-content: flex-start;
}

.app-promo--homepage .app-promo__icon {
  width: 116px;
  height: 116px;
}

.app-promo--homepage .app-promo__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 750px;
}

.app-promo--homepage .app-promo__headline {
  color: #FFFFFF;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.app-promo--homepage .app-promo__body {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 400;
  line-height: 35px;
  margin: 0;
}

.app-promo--homepage .app-promo__cta {
  text-decoration: underline;
  text-underline-position: from-font;
}

/* Responsive styles for homepage variant */
@media (min-width: 769px) {
  .app-promo-wrap {
    padding: 80px 40px 0;
  }

  .app-promo--homepage {
    max-width: calc(var(--max-width-desktop) - 120px);
  }
}

@media (max-width: 1120px) {
  .app-promo--homepage {
    height: 160px;
    margin: 0 auto;
    border-radius: 80px;
  }

  .app-promo--homepage .app-promo__content {
    padding: 0 50px;
    gap: 30px;
  }

  .app-promo--homepage .app-promo__icon {
    width: 100px;
    height: 100px;
  }

  .app-promo--homepage .app-promo__headline {
    font-size: 32px;
  }

  .app-promo--homepage .app-promo__body {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 768px) {
  .app-promo--homepage {
    height: auto;
    min-height: 140px;
    border-radius: 40px;
  }

  .app-promo--homepage .app-promo__content {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    text-align: center;
  }

  .app-promo--homepage .app-promo__icon {
    width: 80px;
    height: 80px;
  }

  .app-promo--homepage .app-promo__headline {
    font-size: 26px;
  }

  .app-promo--homepage .app-promo__body {
    font-size: 16px;
    line-height: 24px;
  }
}
