/* Dedicated, low-specificity visual language for the optional bottom-left newsletter card. */
.nh-newsletter {
  --nh-newsletter-text: #eef9ff;
  box-sizing: border-box;
  position: fixed;
  z-index: 145;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(480px, calc(100vw - 36px));
  padding: 24px 28px 21px;
  /* The decorative glow previously extended the scrollable area horizontally. */
  overflow: hidden;
  isolation: isolate;
  color: var(--nh-newsletter-text);
  background: linear-gradient(155deg, #13233b 0%, #0b162b 59%, #101e30 100%);
  border: 1px solid rgba(117, 226, 225, .34);
  border-radius: 24px;
  box-shadow: 0 22px 65px rgba(0, 4, 15, .6), 0 0 1px rgba(112, 231, 232, .6) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 38px, 0) scale(.965);
  transition: opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1), visibility .55s;
  overscroll-behavior: contain;
}
.nh-newsletter.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}
.nh-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 23px;
  right: 23px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #61deee 24%, #88e9d1 70%, transparent);
}
.nh-newsletter__glow {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  top: -125px;
  right: -105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 215, 238, .24), transparent 70%);
}
.nh-newsletter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nh-newsletter__badge {
  display: block;
  flex: none;
  width: 41px;
  height: 40px;
  overflow: hidden;
  border: 0;
  background: transparent;
}
.nh-newsletter__brand-icon {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.nh-newsletter__close {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  padding: 0;
  border: 1px solid rgba(179, 211, 229, .2);
  border-radius: 50%;
  color: #c9dde8;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  font: 400 24px/1 Arial, sans-serif;
  transition: background .2s, color .2s;
}
.nh-newsletter__close:hover { background: rgba(129,226,219,.18); color: #fff; }
.nh-newsletter__eyebrow {
  margin: 0 0 8px;
  color: #84e3dc;
  font: 700 10px/1.4 'Space Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nh-newsletter__title {
  margin: 0 0 10px;
  max-width: 410px;
  color: #f4fbff;
  font: 700 clamp(24px, 5vw, 29px)/1.12 'Space Grotesk', sans-serif;
  letter-spacing: -.045em;
}
.nh-newsletter__copy { color: #b0c3d5; font: 400 13px/1.62 'Inter', sans-serif; margin: 0 0 18px; }
.nh-newsletter__label {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px;
  color: #e0ebf4;
  font: 600 12px/1.4 'Inter', sans-serif;
}
.nh-newsletter__label span { font-weight: 400; color: #88a3ba; }
.nh-newsletter__label .nh-newsletter__required { color: #89ede0; }
.nh-newsletter__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid rgba(144, 174, 199, .29);
  border-radius: 11px;
  outline: none;
  color: #f5fdff;
  background: rgba(5, 15, 30, .47);
  font: 400 13px 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.nh-newsletter__input::placeholder { color: #6e8ba5; }
.nh-newsletter__input:focus { border-color: #73e0df; box-shadow: 0 0 0 3px rgba(115, 224, 223, .12); }
.nh-newsletter__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nh-newsletter__consent { display: flex; align-items: flex-start; gap: 10px; margin: 3px 0 16px; color: #b8c9d6; font: 400 11px/1.55 'Inter', sans-serif; cursor: pointer; }
.nh-newsletter__consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #5adce3; cursor: pointer; }
.nh-newsletter__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: 11px;
  color: #06242d;
  background: linear-gradient(110deg, #48dce9, #8ae8d2);
  box-shadow: 0 10px 27px rgba(46, 201, 214, .2);
  font: 700 13px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}
.nh-newsletter__submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.nh-newsletter__submit:disabled { opacity: .7; cursor: wait; }
.nh-newsletter__submit > span:last-child { font-size: 19px; line-height: 1; }
.nh-newsletter__status { display: none; margin: 12px 0 0; font: 600 12px/1.5 'Inter', sans-serif; }
.nh-newsletter__status.has-message { display: block; }
.nh-newsletter__status[data-type="success"] { color: #a3f5cd; }
.nh-newsletter__status[data-type="error"] { color: #ffc2ad; }
.nh-newsletter__legal { margin: 12px 0 0; color: #819eaf; font: 400 10px/1.6 'Inter', sans-serif; }
.nh-newsletter__legal a { color: #b4e6e8; text-decoration: underline; text-decoration-color: rgba(180, 230, 232, .4); text-underline-offset: 3px; }
.nh-newsletter__legal a:hover { color: #fff; }
.nh-newsletter :is(button, input, a):focus-visible { outline: 2px solid #b4f5db; outline-offset: 3px; }
.nh-newsletter-inline-wrap, .nh-newsletter--inline { display: none; }
@media (max-width: 720px) {
  .nh-newsletter--popup { display: none; }
  .nh-newsletter-inline-wrap { display: block; padding-block: 1.75rem 2.15rem; }
  .nh-newsletter--inline {
    display: block;
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 590px;
    max-height: none;
    margin: 0 auto;
    padding: 23px 24px;
    transform: none;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .nh-newsletter--inline.is-visible { transform: none; }
}
@media (max-width: 510px) {
  .nh-newsletter--inline { width: 100%; padding: 19px 20px; border-radius: 19px; }
  .nh-newsletter__head { margin-bottom: 10px; }
  .nh-newsletter__copy { margin-bottom: 13px; }
  .nh-newsletter__input { min-height: 42px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .nh-newsletter { transition: none; transform: none; }
  .nh-newsletter__submit { transition: none; }
}
