/**
 * Newsletter — home #newsletter band with parallax bg.
 */

.ax-newsletter {
  position: relative;
  height: clamp(420px, 50vw, 600px);
  overflow: hidden;
  background: var(--ax-ink);
}

.ax-newsletter__parallax {
  position: absolute;
  top: -8%;
  left: 0;
  right: 0;
  height: 116%;
  will-change: transform;
}

.ax-newsletter__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ax-newsletter__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 24, 51, 0.84), rgba(20, 24, 51, 0.34) 58%, rgba(20, 24, 51, 0.6));
  pointer-events: none;
}

.ax-newsletter__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--ax-gutter);
}

.ax-newsletter__inner {
  max-width: var(--ax-maxw);
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
}

.ax-newsletter__card {
  width: min(620px, 100%);
  border-radius: var(--ax-radius-lg);
  background: var(--ax-glass-dark-strong-bg);
  backdrop-filter: var(--ax-glass-dark-strong-blur);
  -webkit-backdrop-filter: var(--ax-glass-dark-strong-blur);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: clamp(26px, 3vw, 48px);
  color: var(--ax-paper);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 24px);
}

.ax-newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.6);
}

.ax-newsletter__heading {
  margin: 0;
  font-family: 'Gopher Display', var(--ax-font);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.ax-newsletter__lead {
  margin: 0;
  color: rgba(244, 241, 235, 0.7);
  font-size: 15.5px;
  text-wrap: pretty;
}

.ax-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
  max-width: 520px;
}

.ax-newsletter__form input[type="email"] {
  flex: 1 1 200px;
  max-width: 290px;
  min-width: 0;
  background: rgba(244, 241, 235, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ax-pill);
  padding: 17px 24px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ax-paper);
  outline: none;
}

.ax-newsletter__form input[type="email"]::placeholder {
  color: rgba(244, 241, 235, 0.45);
}

.ax-newsletter__form input[type="email"].is-invalid {
  border-color: var(--ax-flag);
}

.ax-newsletter__submit {
  background: var(--ax-paper);
  color: var(--ax-ink);
  border: 0;
  border-radius: var(--ax-pill);
  padding: 17px 26px;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  transition: background 340ms ease, gap 340ms ease;
}

@media (hover: hover) and (pointer: fine) {
.ax-newsletter__submit:hover {
  background: var(--ax-steel);
  gap: 18px;
}
}


.ax-newsletter__msg {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ax-steel);
}

.ax-newsletter__msg[hidden] {
  display: none;
}

.ax-newsletter__fine {
  font-size: 12.5px;
  color: rgba(244, 241, 235, 0.48);
}

@media (max-width: 900px) {
  .ax-newsletter {
    height: auto;
    min-height: 0;
  }

  .ax-newsletter__parallax {
    top: 0;
    height: 100%;
    transform: none !important;
    will-change: auto;
  }

  .ax-newsletter__content {
    position: relative;
    inset: auto;
    padding: 32px var(--ax-gutter);
  }

  .ax-newsletter__card {
    padding: 28px 22px;
    width: 100%;
  }

  .ax-newsletter__form {
    flex-direction: column;
    max-width: none;
    gap: 10px;
  }

  /*
   * Desktop flex:1 1 200px becomes height:200px in a column form.
   * Lock email field to the same control height as the submit pill.
   */
  .ax-newsletter__form input[type="email"] {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: 48px;
    min-height: 48px;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .ax-newsletter__submit {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: 48px;
    height: 48px;
    padding: 0 26px;
    justify-content: center;
  }
}
