* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --banner-height: 48px;
  --artwork-ratio: 1222 / 1287;
  --deep-plum: #3c0b25;
  --image-pink: #8f3e5d;
  --hot-pink: #ff1f7a;
  --dark-pink: #d81463;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--deep-plum);
  position: relative;
}

/* A soft, enlarged copy of the artwork fills the unused screen area,
   so the outer background naturally matches the main image. */
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -2;
  background:
    linear-gradient(rgba(40, 4, 23, 0.28), rgba(40, 4, 23, 0.42)),
    url("assets/hero-bg.png") center / cover no-repeat;
  filter: blur(24px) saturate(0.9);
  transform: scale(1.08);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(34, 3, 20, 0.22);
}

.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* On desktop, the card height follows the viewport.
   Its width is calculated from the source image ratio, so the image
   remains full-height without being stretched. */
.promo-card {
  width: min(
    100vw,
    calc((100dvh - var(--banner-height)) * 1222 / 1287)
  );
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--image-pink);
  box-shadow: 0 10px 45px rgba(24, 0, 12, 0.48);
}

.promo-banner {
  flex: 0 0 var(--banner-height);
  min-height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--hot-pink), var(--dark-pink));
  color: #fff;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 8px 18px;
}

.hero-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--image-pink);
  line-height: 0;
}

.hero-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.promo-overlay {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: min(88%, 560px);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  line-height: normal;
  box-shadow: 0 8px 26px rgba(65, 7, 34, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.form-error {
  color: var(--dark-pink);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.overlay-headline {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #1a0510;
  margin-bottom: 6px;
}

.overlay-subtext {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: #a3195a;
  margin-bottom: 14px;
}

.overlay-thanks {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: #1a0510;
}

.overlay-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #eadfe3;
  border-radius: 4px;
  outline: none;
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #3a0a1e;
}

.overlay-input:focus {
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255, 31, 122, 0.15);
}

.overlay-input::placeholder {
  color: #b58a9a;
}

.overlay-submit {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hot-pink), var(--dark-pink));
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.overlay-submit:hover {
  filter: brightness(0.92);
}

/* On narrow portrait screens the artwork uses the full available width.
   This avoids horizontal cropping and keeps the email box positioned
   against the actual image rather than empty viewport space. */
@media (max-width: 600px), (max-aspect-ratio: 3 / 4) {
  :root {
    --banner-height: 58px;
  }

  .page {
    min-height: 100dvh;
    align-items: flex-start;
  }

  .promo-card {
    width: 100%;
    height: auto;
    min-height: 100dvh;
  }

  .hero-frame {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: var(--artwork-ratio);
  }

  .hero-img {
    width: 100%;
    height: 100%;
  }

  .promo-overlay {
    bottom: 10%;
    width: 90%;
    padding: 14px 12px;
  }

  .overlay-headline {
    font-size: 12px;
  }

  .overlay-subtext,
  .form-error {
    font-size: 11px;
  }

  .promo-banner {
    font-size: 11px;
    padding-inline: 12px;
  }

  .overlay-input,
  .overlay-submit {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .promo-overlay {
    bottom: 7%;
    width: 92%;
    padding: 11px 10px;
  }

  .overlay-headline {
    font-size: 11px;
    line-height: 1.3;
  }

  .overlay-subtext {
    margin-bottom: 9px;
  }

  .overlay-form {
    gap: 7px;
  }
}
