/* Shared promotion and header controls for Webapp APA. */

.pm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.pm-header-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #d85a30;
  border-radius: 5px;
  background: #c8551e;
  color: #fff !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(200, 85, 30, 0.2);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pm-header-app:hover {
  border-color: #e87346;
  background: #ae4419;
  color: #fff !important;
  transform: translateY(-1px);
}

.pm-header-app:focus-visible,
.pm-mobile-app:focus-visible,
.apa-webapp-promo__cta:focus-visible,
.pm-header-hamburger:focus-visible {
  outline: 2px solid #f5a887 !important;
  outline-offset: 3px;
}

.pm-header-hamburger {
  appearance: none;
  border: 0;
  background: transparent;
}

.pm-mobile-menu .pm-mobile-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  margin-top: 0.25rem;
  padding: 0 18px;
  border: 1px solid #d85a30;
  border-radius: 6px;
  background: #c8551e;
  color: #fff !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 500;
  text-decoration: none !important;
}

.apa-webapp-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(245, 168, 135, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 13% 45%, rgba(216, 90, 48, 0.2), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(245, 168, 135, 0.1), transparent 26%),
    linear-gradient(135deg, #100b08 0%, #1f120d 52%, #0d0907 100%);
  color: #fff;
  font-family: "DM Sans", sans-serif;
}

.apa-webapp-promo::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -170px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(245, 168, 135, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(245, 168, 135, 0.035),
    0 0 0 96px rgba(245, 168, 135, 0.025);
}

.apa-webapp-promo__inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 270px;
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.apa-webapp-promo__icon-wrap {
  width: 118px;
  height: 118px;
  padding: 13px;
  border: 1px solid rgba(245, 168, 135, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.apa-webapp-promo__icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.apa-webapp-promo__eyebrow {
  margin: 0 0 8px;
  color: #f5a887;
  font-family: "DM Sans", sans-serif !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.apa-webapp-promo__title {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Lora", Georgia, serif !important;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
}

.apa-webapp-promo__description {
  max-width: 630px;
  margin: 0 0 17px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "DM Sans", sans-serif !important;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.apa-webapp-promo__features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apa-webapp-promo__features li {
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.apa-webapp-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #d85a30;
  border-radius: 7px;
  background: #c8551e;
  color: #fff !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(200, 85, 30, 0.26);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.apa-webapp-promo__cta:hover {
  border-color: #e87346;
  background: #ae4419;
  color: #fff !important;
  transform: translateY(-2px);
}

.apa-webapp-promo__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (max-width: 980px) {
  .pm-header-nav,
  .pm-header-actions,
  .pm-header > .pm-header-cta {
    display: none !important;
  }

  .pm-header-hamburger {
    display: flex !important;
  }

  .apa-webapp-promo__inner {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 26px;
  }

  .apa-webapp-promo__icon-wrap {
    width: 96px;
    height: 96px;
    padding: 10px;
    border-radius: 23px;
  }

  .apa-webapp-promo__icon {
    border-radius: 16px;
  }

  .apa-webapp-promo__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .apa-webapp-promo__inner {
    width: min(100% - 36px, 480px);
    padding: 42px 0;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .apa-webapp-promo__icon-wrap {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .apa-webapp-promo__icon {
    border-radius: 13px;
  }

  .apa-webapp-promo__description {
    font-size: 14px;
  }

  .apa-webapp-promo__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-header-app,
  .apa-webapp-promo__cta {
    transition: none;
  }
}
