/* Adviser Express — mobile app promo (phone mockup + QR) */
.ae-app-promo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #051a38 0%, #0a3268 42%, #0362c1 100%);
  color: #fff;
}

.ae-app-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(3, 98, 193, 0.35), transparent 50%);
  pointer-events: none;
}

.ae-app-promo .container {
  position: relative;
  z-index: 1;
}

.ae-app-promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (max-width: 991px) {
  .ae-app-promo__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.ae-app-promo__copy {
  max-width: 520px;
}

@media (max-width: 991px) {
  .ae-app-promo__copy {
    margin-inline: auto;
  }
}

.ae-app-promo__kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ae-app-promo__title {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ae-app-promo__lead {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.55;
}

.ae-app-promo__qr-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

@media (max-width: 991px) {
  .ae-app-promo__qr-wrap {
    justify-content: center;
  }
}

.ae-app-promo__qr {
  flex: 0 0 auto;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.ae-app-promo__qr img {
  display: block;
  width: 148px;
  height: 148px;
}

.ae-app-promo__qr-hint {
  margin: 0;
  max-width: 220px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.ae-app-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 991px) {
  .ae-app-promo__actions {
    justify-content: center;
  }
}

.ae-app-promo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Scroll-anim wrappers must not swallow Open / Install clicks */
.ae-app-promo,
.ae-app-promo__copy[data-anim],
.ae-app-promo__visual[data-anim],
.ae-app-promo__actions,
.ae-footer-app__btns,
.ae-inner-app-promo,
#ae-inner-app-promo,
#ae-app-promo {
  pointer-events: auto !important;
}

.ae-app-promo__btn:hover {
  transform: translateY(-2px);
}

.ae-app-promo__btn--primary {
  color: #051a38;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.ae-app-promo__btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ae-app-promo__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Phone mockup */
.ae-app-phone {
  display: flex;
  justify-content: center;
  padding: 12px 0 24px;
}

.ae-app-phone__shell {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1a1a1f 0%, #0b0b0f 100%);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 4px #050508;
}

.ae-app-phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 34%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #050508;
}

.ae-app-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #06182b;
}

.ae-app-phone__slides {
  position: absolute;
  inset: 0;
}

.ae-app-phone__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.ae-app-phone__slide.is-on {
  opacity: 1;
}

.ae-app-phone__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 26, 56, 0.15) 0%, rgba(5, 26, 56, 0.72) 68%, rgba(5, 26, 56, 0.92) 100%);
}

.ae-app-phone__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 16px 20px;
  color: #fff;
}

.ae-app-phone__ui img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.ae-app-phone__ui strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.ae-app-phone__ui span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.ae-app-phone__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ae-app-phone__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.ae-app-phone__dot.is-on {
  width: 18px;
  background: #fff;
}

/* Header app pill */
.ae-app-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.ae-app-header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

html:not(.ae-home) .ae-app-header-btn,
body.ae-exp-layout .ae-app-header-btn {
  color: #0362c1 !important;
  background: rgba(3, 98, 193, 0.08);
  border-color: rgba(3, 98, 193, 0.2);
}

.ae-app-header-btn svg {
  flex-shrink: 0;
}

/* Inner pages — app download strip above footer (dark) */
.ae-inner-app-promo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #051a38 0%, #0a3268 42%, #0362c1 100%);
  color: #fff;
}

.ae-inner-app-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(3, 98, 193, 0.35), transparent 50%);
  pointer-events: none;
}

.ae-inner-app-promo .container {
  position: relative;
  z-index: 1;
}

.ae-inner-app-promo .ae-footer-app,
.ae-inner-app-promo__card {
  margin-top: 0;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.ae-inner-app-promo .ae-footer-app__title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.ae-inner-app-promo .ae-footer-app__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  max-width: 480px;
}

.ae-footer-app {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(3, 98, 193, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ae-inner-app-promo .ae-footer-app {
  margin-top: 0;
}

@media (max-width: 767px) {
  .ae-inner-app-promo .ae-footer-app,
  .ae-inner-app-promo__card {
    padding: 22px 20px;
  }
}

.ae-footer-app--home {
  display: none;
}

.ae-footer-app__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ae-footer-app__copy {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 260px;
  min-width: 0;
}

.ae-footer-app__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.ae-footer-app__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.ae-footer-app__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  max-width: 360px;
}

.ae-footer-app__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.ae-footer-app__qr {
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.ae-footer-app__qr img {
  display: block;
  width: 88px;
  height: 88px;
}

.ae-footer-app__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ae-footer-app__btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ae-footer-app__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ae-footer-app__copy {
    flex-direction: column;
    text-align: center;
  }

  .ae-footer-app__lead {
    max-width: none;
  }

  .ae-footer-app__actions {
    justify-content: center;
  }

  .ae-footer-app__btns {
    width: 100%;
  }

  .ae-footer-app__btn {
    width: 100%;
  }
}
