/* ==========================================================================
   Twaalf Amsterdam — 10% e-mail overlay
   No card, no window: a blurred page with typographic content on top.
   ========================================================================== */

.discount-popup {
  --dp-paper: #f4f5f2;
  --dp-ink: #141817;
  --dp-soft: #414942;
  --dp-muted: #69736b;
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  background: rgba(244, 245, 242, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(0.92);
  backdrop-filter: blur(14px) saturate(0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.discount-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.discount-popup__inner {
  position: relative;
  width: min(100%, 680px);
  margin: auto;
  color: var(--dp-ink);
  text-align: center;
  transform: translateY(10px);
  transition: transform 420ms cubic-bezier(.2, .65, .25, 1);
  isolation: isolate;
}

.discount-popup__inner::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(244, 245, 242, .78) 0%, rgba(244, 245, 242, .52) 46%, rgba(244, 245, 242, 0) 72%);
  filter: blur(10px);
}

.discount-popup.is-open .discount-popup__inner {
  transform: none;
}

/* Brand line: quiet, top-left of the content column, not a boxed header. */
.discount-popup__brand {
  margin: 0 0 clamp(34px, 5vw, 58px);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dp-muted);
}

.discount-popup__close {
  position: absolute;
  top: -16px;
  right: -8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dp-ink);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s ease;
}
.discount-popup__close:hover { opacity: 1; }

.discount-popup__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dp-muted);
}

.discount-popup__amount {
  margin: 0;
  font-family: var(--font-display, "Inter Tight", sans-serif);
  font-size: clamp(7rem, 18vw, 13rem);
  font-weight: 300;
  line-height: .76;
  letter-spacing: -.09em;
  color: var(--dp-ink);
}
.discount-popup__amount span {
  display: inline-block;
  margin-left: .03em;
  font-size: .36em;
  font-weight: 300;
  letter-spacing: -.04em;
  vertical-align: top;
  transform: translateY(.08em);
}

.discount-popup__headline {
  max-width: 15ch;
  margin: clamp(22px, 3.6vw, 34px) auto 0;
  font-family: var(--font-display, "Inter Tight", sans-serif);
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-transform: none;
}

.discount-popup__intro {
  max-width: 42ch;
  margin: 18px auto 0;
  color: var(--dp-soft);
  font-size: 13px;
  line-height: 1.65;
}

.discount-popup__form {
  display: flex;
  width: min(100%, 460px);
  margin: clamp(28px, 4vw, 38px) auto 0;
  border-bottom: 1px solid var(--dp-ink);
}

.discount-popup__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.discount-popup__form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  padding: 6px 12px 6px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--dp-ink);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 15px;
  font-weight: 300;
}
.discount-popup__form input[type="email"]::placeholder {
  color: var(--dp-muted);
  opacity: 1;
}
.discount-popup__form input[type="email"]:focus {
  box-shadow: 0 0 0 2px rgba(20, 24, 23, .12);
}

.discount-popup__submit {
  flex: 0 0 auto;
  min-height: 54px;
  margin-bottom: 3px;
  padding: 12px 20px;
  border: 1px solid var(--dp-ink);
  border-radius: 0;
  background: var(--dp-ink);
  color: var(--dp-paper);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s ease;
}
.discount-popup__submit:hover { opacity: .82; }
.discount-popup__submit:disabled { cursor: wait; opacity: .55; }

.discount-popup__legal {
  max-width: 48ch;
  margin: 18px auto 0;
  color: var(--dp-muted);
  font-size: 10.5px;
  line-height: 1.6;
}
.discount-popup__legal a {
  color: var(--dp-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.discount-popup__legal a:hover { color: var(--dp-ink); }

.discount-popup__dismiss {
  display: block;
  width: max-content;
  margin: 24px auto 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--dp-muted);
  background: transparent;
  color: var(--dp-muted);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
  cursor: pointer;
}
.discount-popup__dismiss:hover { color: var(--dp-ink); border-color: var(--dp-ink); }

.discount-popup__status {
  min-height: 1.4em;
  margin: 12px auto 0;
  color: var(--dp-muted);
  font-size: 11px;
  line-height: 1.5;
}
.discount-popup__status.is-error { color: #8a3d2e; }

/* Success state */
.discount-popup__success {
  display: none;
}
.discount-popup.is-success .discount-popup__offer {
  display: none;
}
.discount-popup.is-success .discount-popup__success {
  display: block;
}
.discount-popup__success .discount-popup__amount {
  font-size: clamp(4.8rem, 13vw, 9.2rem);
  letter-spacing: -.07em;
}
.discount-popup__code {
  display: inline-block;
  margin: 22px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--dp-ink);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.discount-popup__success .discount-popup__intro {
  max-width: 38ch;
}
.discount-popup__success .discount-popup__dismiss {
  margin-top: 26px;
}

body.discount-popup-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .discount-popup {
    align-items: center;
    padding: 50px 20px 28px;
    background: rgba(244, 245, 242, 0.48);
    -webkit-backdrop-filter: blur(17px) saturate(0.9);
    backdrop-filter: blur(17px) saturate(0.9);
  }

  .discount-popup__inner {
    width: 100%;
  }

  .discount-popup__brand {
    margin-bottom: 38px;
  }

  .discount-popup__close {
    top: -34px;
    right: -4px;
    width: 44px;
    height: 44px;
  }

  .discount-popup__amount {
    font-size: clamp(7.6rem, 28vw, 11rem);
  }

  .discount-popup__headline {
    max-width: 13ch;
    margin-top: 24px;
    font-size: clamp(2.05rem, 9vw, 3rem);
  }

  .discount-popup__intro {
    max-width: 34ch;
    margin-top: 16px;
    font-size: 12.5px;
  }

  .discount-popup__form {
    flex-direction: column;
    gap: 10px;
    border-bottom: 0;
    margin-top: 28px;
  }

  .discount-popup__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.discount-popup__form input[type="email"] {
    min-height: 52px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--dp-ink);
  }

  .discount-popup__submit {
    width: 100%;
    margin: 0;
  }

  .discount-popup__legal {
    max-width: 38ch;
    margin-top: 16px;
    font-size: 10px;
  }

  .discount-popup__dismiss {
    margin-top: 22px;
  }

  .discount-popup__code {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .discount-popup__inner::before { inset: -7% -6%; background: radial-gradient(ellipse at center, rgba(244, 245, 242, .8) 0%, rgba(244, 245, 242, .5) 50%, transparent 74%); }
}

@media (prefers-reduced-motion: reduce) {
  .discount-popup,
  .discount-popup__inner {
    transition: none;
  }
}
