/* AeroPointer homepage banner. Included from includes/aeropointer-banner.njk. */
.ap-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  max-width: 870px;
  min-height: 400px;
  margin: 0 auto;
  padding: 2rem 0 0 2rem;
  border-radius: 12px;
  color: #fff;
  background: radial-gradient(120% 90% at 85% 100%, #3aa3ff 0%, rgba(58, 163, 255, 0) 55%), linear-gradient(135deg, #0b2a5b 0%, #10408f 55%, #0a1d44 100%);
}

/* Faint lat/long grid over the gradient */
.ap-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%);
}

/* LEFT column */
.ap-banner__content {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: 540px;
  margin-right: 1.5rem;
  padding-bottom: 2rem;
}

.ap-banner__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ap-banner__icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ap-banner__name {
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.ap-banner__by {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}

.ap-banner__title {
  font-family: "Montserrat-Bold", sans-serif;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  color: #fff;
  margin: 1.1rem 0 0.6rem;
}

.ap-banner__features {
  margin: 0 0 0.8rem;
  padding-left: 1.3rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.ap-banner__features li {
  display: list-item;
  list-style-type: disc;
}

.ap-banner__free {
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 1.05rem;
  color: #ffd166;
  margin: 0.2rem 0 1rem;
}

.ap-banner__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.ap-banner__cta img {
  display: block;
  width: auto;
  height: 44px;
}

.ap-banner__more {
  font-family: "Montserrat-Bold", sans-serif;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.ap-banner__more:hover {
  color: #fff;
  border-color: #fff;
}

/* RIGHT column: phone screenshot pinned to the bottom edge */
.ap-banner__image {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-end;
  width: 290px;
  height: 330px;
  overflow: hidden;
  overflow: clip;
  margin-right: 2.5rem;
  margin-top: 1.5rem;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
}

.ap-banner__image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) and (min-width: 769px) {
  .ap-banner {
    padding: 2rem 0 0 1.25rem;
  }
  .ap-banner__content {
    max-width: 460px;
  }
  .ap-banner__image {
    width: 250px;
    height: 300px;
    margin-right: 1.25rem;
  }
  .ap-banner__title {
    font-size: 1.3rem;
  }
  .ap-banner__features {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .ap-banner {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 0;
    text-align: center;
  }
  .ap-banner__content {
    max-width: 100%;
    align-items: center;
    margin-right: 0;
    padding-bottom: 1.25rem;
  }
  .ap-banner__brand {
    flex-direction: column;
    text-align: center;
  }
  .ap-banner__features {
    text-align: left;
  }
  .ap-banner__cta {
    justify-content: center;
  }
  .ap-banner__image {
    width: 70%;
    max-width: 260px;
    height: 240px;
    margin-right: 0;
    margin-top: 0;
  }
}