.sw-newsletter {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 9, 12, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.32s;
}
.sw-newsletter.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.sw-newsletter__panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  background: #101318;
  color: #f3f6f9;
  border: 1px solid #29303a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(3, 5, 8, 0.42);
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.sw-newsletter.is-open .sw-newsletter__panel {
  transform: translate3d(0, 0, 0) scale(1);
}
.sw-newsletter__rail {
  min-height: 430px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #29303a;
  background:
    linear-gradient(#181d24 1px, transparent 1px),
    linear-gradient(90deg, #181d24 1px, transparent 1px),
    #0b0d11;
  background-size: 44px 44px;
}
.sw-newsletter__index,
.sw-newsletter__eyebrow {
  color: #718096;
  font: 500 10px/1.4 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
}
.sw-newsletter__mark {
  display: grid;
  gap: 11px;
  transform: skewX(-34deg);
}
.sw-newsletter__mark span {
  display: block;
  width: 100%;
  height: 11px;
  background: #e9edf2;
}
.sw-newsletter__mark span:nth-child(3) {
  background: #176bf3;
}
.sw-newsletter__content {
  padding: clamp(38px, 6vw, 68px);
  align-self: center;
}
.sw-newsletter__eyebrow {
  color: #70a4fa;
}
.sw-newsletter__content h2 {
  margin: 20px 0 0;
  max-width: 560px;
  color: #f3f6f9;
  font: 600 clamp(42px, 6.4vw, 68px) / 0.88 Geist, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.sw-newsletter__content > p {
  margin: 24px 0 0;
  max-width: 52ch;
  color: #a9b2bd;
  font: 400 16px/1.62 Geist, "Helvetica Neue", Arial, sans-serif;
}
.sw-newsletter__form {
  margin-top: 32px;
}
.sw-newsletter__form label {
  display: block;
  margin-bottom: 9px;
  color: #c6cdd5;
  font: 500 11px/1.4 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.sw-newsletter__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.sw-newsletter__form input[type="email"] {
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  color: #f3f6f9;
  background: #08090c;
  border: 1px solid #333b46;
  border-radius: 7px;
  font: 400 16px Geist, "Helvetica Neue", Arial, sans-serif;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.sw-newsletter__form input[type="email"]:focus {
  outline: none;
  border-color: #176bf3;
  box-shadow: 0 0 0 3px rgba(23, 107, 243, 0.2);
}
.sw-newsletter__form button[type="submit"] {
  height: 50px;
  padding: 0 20px;
  color: #fff;
  background: #176bf3;
  border: 0;
  border-radius: 7px;
  font: 600 14px Geist, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.sw-newsletter__form button[type="submit"]:hover {
  background: #0f5bd5;
}
.sw-newsletter__form button[type="submit"]:active {
  transform: translateY(1px) scale(0.985);
}
.sw-newsletter__form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.66;
}
.sw-newsletter__fineprint {
  margin-top: 13px;
  color: #7f8995;
  font: 400 11px/1.55 Geist, "Helvetica Neue", Arial, sans-serif;
}
.sw-newsletter__fineprint a {
  color: #a9b2bd;
  text-underline-offset: 3px;
}
.sw-newsletter__status {
  min-height: 20px;
  margin-top: 12px;
  color: #bfc7d0;
  font: 500 12px/1.5 Geist, "Helvetica Neue", Arial, sans-serif;
}
.sw-newsletter__status[data-state="error"] {
  color: #ffaaa2;
}
.sw-newsletter__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #a9b2bd;
  background: #151920;
  border: 1px solid #2c333d;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.sw-newsletter__close:hover {
  color: #f3f6f9;
  background: #1b2028;
}
.sw-newsletter__close:active {
  transform: scale(0.94);
}
.sw-newsletter__close svg {
  width: 16px;
  height: 16px;
}
.sw-newsletter__success {
  display: none;
  padding: 16px 0 4px;
}
.sw-newsletter__success strong {
  display: block;
  color: #f3f6f9;
  font: 600 24px/1.1 Geist, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.03em;
}
.sw-newsletter__success p {
  margin: 10px 0 0;
  color: #a9b2bd;
  font: 400 14px/1.6 Geist, "Helvetica Neue", Arial, sans-serif;
}
.sw-newsletter.is-success .sw-newsletter__form,
.sw-newsletter.is-success .sw-newsletter__content > p {
  display: none;
}
.sw-newsletter.is-success .sw-newsletter__success {
  display: block;
}
.sw-newsletter__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@media (max-width: 680px) {
  .sw-newsletter {
    place-items: end center;
    padding: 0;
  }
  .sw-newsletter__panel {
    width: 100%;
    max-height: min(720px, calc(100dvh - 12px));
    grid-template-columns: 1fr;
    border-width: 1px 0 0;
    transform: translate3d(0, 24px, 0);
  }
  .sw-newsletter__rail {
    min-height: 78px;
    padding: 22px 74px 20px 20px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid #29303a;
    background-size: 36px 36px;
  }
  .sw-newsletter__mark {
    width: 82px;
    gap: 6px;
    margin-top: 14px;
  }
  .sw-newsletter__mark span {
    height: 5px;
  }
  .sw-newsletter__content {
    padding: 30px 20px calc(26px + env(safe-area-inset-bottom));
  }
  .sw-newsletter__content h2 {
    margin-top: 15px;
    font-size: clamp(40px, 12vw, 52px);
  }
  .sw-newsletter__content > p {
    margin-top: 18px;
    font-size: 15px;
  }
  .sw-newsletter__form {
    margin-top: 24px;
  }
  .sw-newsletter__fields {
    grid-template-columns: 1fr;
  }
  .sw-newsletter__form button[type="submit"] {
    width: 100%;
  }
  .sw-newsletter__close {
    top: 18px;
    right: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sw-newsletter,
  .sw-newsletter__panel,
  .sw-newsletter__form button,
  .sw-newsletter__close {
    transition: none !important;
  }
}
