/* ============================================================
 * Welcome Popup — Clean & Modern (v21)
 * v21 improvements: input tap-targets ≥44px, hover states, inline field errors,
 * submit spinner, trust footer, optional badge, consent layout, left-aligned status.
 *
 * Layout model:
 *   .wpu                       fixed full-viewport flex column (centers modal + external stack)
 *   .wpu__modal                the white card
 *   .wpu__content              in-modal content slot (InModal placement)
 *   .wpu__external             content slot below the modal (External placement, FullBackground)
 *   .wpu--placement-external   set on root when content is rendered externally
 *   .wpu--cta-only             "image carries the message" — clean CTA, no overlay
 *   .wpu--no-content           banner-only (no header/body/cta/form/code)
 * ============================================================ */

.wpu {
  position: fixed; inset: 0; z-index: 2147483646;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wpu[hidden] { display: none; }
.wpu *, .wpu *::before, .wpu *::after { box-sizing: border-box; }

.wpu__backdrop { position: absolute; inset: 0; z-index: 0;
  background: rgba(15, 23, 42, 0.62); backdrop-filter: blur(6px); }

.wpu__modal {
  position: relative; z-index: 1;
  width: min(560px, 92vw); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  display: flex; flex-direction: column;
  animation: wpu-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wpu-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Close button */
.wpu__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  border: none; background: rgba(255, 255, 255, 0.92); color: #374151;
  font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}
.wpu__close:hover { background: #fff; color: #111; transform: scale(1.08); }
.wpu__close:focus-visible { outline: 2px solid var(--wpu-accent, #1F3A68); outline-offset: 2px; }

.wpu__banner { width: 100%; height: auto; display: block; object-fit: cover; }

/* ---- Content ---- */
.wpu__content { padding: 28px 30px 30px; text-align: center; }
.wpu__header { font-size: 25px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em;
  margin: 0 0 10px; color: #0f172a; }
.wpu__body { font-size: 15px; line-height: 1.6; color: #334155; margin: 0 0 20px; }

/* ---- Subscribe form ---- */
.wpu__form { display: flex; flex-direction: column; gap: 16px; text-align: left; margin-top: 6px; }
.wpu__field { display: flex; flex-direction: column; gap: 5px; }

.wpu__label { font-size: 13px; font-weight: 600; color: var(--wpu-form-text, #1e293b); letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 6px; }

/* Optional: soft green badge */
.wpu__optional {
  font-size: 10.5px; font-weight: 500;
  background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
  border-radius: 4px; padding: 1px 6px; letter-spacing: 0;
}

.wpu__form input[type="email"],
.wpu__form input[type="tel"] {
  width: 100%; padding: 13px 16px; font-size: 16px; color: var(--wpu-form-text, #0f172a);
  border: 2px solid #e2e8f0; border-radius: 12px;
  background: #f8fafc; /* subtle tint shows border clearly */
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.4; /* ensures consistent 46px height */
}
.wpu__form input::placeholder { color: #94a3b8; }

/* Hover — affords interactivity before focus */
.wpu__form input[type="email"]:hover:not(:focus),
.wpu__form input[type="tel"]:hover:not(:focus) {
  border-color: #94a3b8; background: #fff;
}

/* Focus ring */
.wpu__form input:focus {
  outline: none; border-color: var(--wpu-accent, #1F3A68); background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 58, 104, 0.18); /* static fallback */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpu-accent, #1F3A68) 18%, transparent);
}

/* Inline error state */
.wpu__form input.wpu--input-error {
  border-color: #f87171; background: #fff;
}
.wpu__form input.wpu--input-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

/* Per-field error message (shown via JS adding .wpu--show) */
.wpu__field-error {
  font-size: 12px; font-weight: 500; color: #dc2626;
  margin-top: -2px; display: none; line-height: 1.3;
}
.wpu__field-error.wpu--show { display: block; }

.wpu__honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

/* Consent row */
.wpu__consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
  font-size: 12.5px; line-height: 1.5; color: #64748b; cursor: pointer; }
.wpu__consent input { flex: 0 0 18px; margin-top: 1px; width: 18px; height: 18px;
  accent-color: var(--wpu-accent, #1F3A68); cursor: pointer; }
.wpu__consent span { flex: 1; }

/* ---- Submit CTA ---- */
.wpu__cta--submit { width: 100%; margin-top: 2px; padding: 15px 30px;
  font-size: 16.5px; position: relative; }

/* Spinner overlay while submitting */
.wpu__cta--submit.wpu--busy::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%; animation: wpu-spin 0.65s linear infinite;
}
@keyframes wpu-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* AJAX result message */
.wpu__form-status {
  margin-top: 8px; padding: 11px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; line-height: 1.45; text-align: left;
}
.wpu__form-status--success {
  background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
}
.wpu__form-status--success::before { content: "✓  "; font-weight: 700; }
.wpu__form-status--error {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.wpu__form-status--error::before { content: "!  "; font-weight: 700; }

/* Trust footer */
.wpu__trust {
  font-size: 11.5px; color: #94a3b8; text-align: center;
  margin: 0; padding: 4px 0 0; line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ---- CTA link/button (Promo, Reveal, CtaOnly) ---- */
.wpu__cta {
  display: inline-block; padding: 14px 30px;
  background: var(--wpu-accent, #1F3A68); color: var(--wpu-cta-text, #fff);
  border: none; border-radius: 12px; text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: 0.2px; text-align: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); /* static fallback */
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wpu-accent, #1F3A68) 30%, transparent);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.wpu__cta:hover, .wpu__cta:focus-visible {
  transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--wpu-accent, #1F3A68) 42%, transparent);
  color: var(--wpu-cta-text, #fff);
}
.wpu__cta:active { transform: translateY(0); filter: none; }
.wpu__cta:focus-visible { outline: 2px solid var(--wpu-accent, #1F3A68); outline-offset: 3px; }
.wpu__cta[disabled], .wpu__cta.wpu--busy { opacity: 0.65; cursor: not-allowed; transform: none; filter: none; }

/* ---- Coupon code card ---- */
.wpu__code-card { background: #f8fafc; border: 2px dashed var(--wpu-accent, #1F3A68);
  border-radius: 12px; padding: 14px 20px; text-align: center; margin: 4px 0 16px; }
.wpu__code-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--wpu-accent, #1F3A68); margin-bottom: 4px; }
.wpu__code { font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 24px; font-weight: 700;
  letter-spacing: 2px; color: var(--wpu-accent, #1F3A68); word-break: break-all; }
.wpu__expiry { font-size: 12px; color: #94a3b8; margin-top: 5px; }
.wpu__reveal-group { display: flex; flex-direction: column; }

/* ---- Snooze ---- */
.wpu__snooze { display: flex; flex-direction: row; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f5f9;
  font-size: 12.5px; color: #94a3b8; cursor: pointer; }
.wpu__snooze input { width: 15px; height: 15px; accent-color: var(--wpu-accent, #1F3A68); }

/* ─────────────────────────────────────────────────────────────
 * Layout variants:
 *   0 = HeroTop        (1280×560, 16:7)  banner above content
 *   1 = SideBySide     ( 800×1200, 2:3)  banner left, content right
 *   2 = FullBackground (1600×1200, 4:3)  banner as background
 * ───────────────────────────────────────────────────────────── */

.wpu--layout-0 .wpu__modal { width: min(560px, 92vw); }
.wpu--layout-0 .wpu__banner { width: 100%; height: auto; aspect-ratio: 16 / 7;
  object-fit: contain; object-position: center; background: #0f172a; display: block; }
@media (max-width: 480px) {
  .wpu--layout-0 .wpu__banner { aspect-ratio: 4 / 3; }
}

.wpu--layout-1 .wpu__modal {
  width: min(900px, 94vw); height: calc(min(900px, 94vw) * 0.56); max-height: 88vh;
  flex-direction: row; align-items: stretch;
}
/* Promo graphics carry baked-in text → contain (never crop) on a brand-dark fill,
   widened to 46% for more visual mass than the previous 42% cover-crop. */
.wpu--layout-1 .wpu__banner { width: 46%; height: 100%; aspect-ratio: auto;
  object-fit: contain; object-position: center; background: #0f172a;
  align-self: stretch; flex-shrink: 0; }
.wpu--layout-1 .wpu__content { flex: 1 1 54%; padding: 30px 34px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; }
/* Compress copy spacing — the side column is shorter than HeroTop, reclaim ~20px */
.wpu--layout-1 .wpu__header { font-size: 22px; margin-bottom: 8px; }
.wpu--layout-1 .wpu__body { font-size: 14px; margin-bottom: 14px; }
.wpu--layout-1 .wpu__form { gap: 12px; }
@media (max-width: 768px) {
  .wpu--layout-1 .wpu__modal { flex-direction: column; width: 92vw; height: auto; }
  .wpu--layout-1 .wpu__banner { width: 100%; height: auto; aspect-ratio: 16 / 7;
    object-fit: contain; object-position: center; background: #0f172a; }
  .wpu--layout-1 .wpu__content { padding: 22px; }
}

.wpu--layout-2 .wpu__modal { display: grid; grid-template-areas: "stage";
  width: min(680px, 92vw); aspect-ratio: 5 / 4; max-height: 88vh; overflow: hidden; border-radius: 20px; }
.wpu--layout-2 .wpu__banner, .wpu--layout-2 .wpu__content { grid-area: stage; min-width: 0; min-height: 0; }
.wpu--layout-2 .wpu__banner { width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: cover; object-position: center; z-index: 0; }
/* P2b: Subscribe docks a form card on the RIGHT, so shift the banner focal point
   left-of-centre — keeps the image's main subject in the visible-left zone instead of
   bisected by the card. Scoped to subscribe (promo/reveal keep a full centred banner). */
.wpu--layout-2.wpu--mode-subscribe .wpu__banner { object-position: 30% center; }
/* Scrim: keep the opaque zone to the bottom 0–40% only so ~32% more of the
   promo banner stays visible, while still backing the form for readability. */
.wpu--layout-2 .wpu__content { align-self: end; width: 100%; z-index: 1;
  max-height: 100%; overflow-y: auto;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.78) 40%, rgba(0,0,0,0.50) 68%, rgba(0,0,0,0.10) 100%);
  color: #fff; padding: 52px 28px 24px; }
/* Stronger double text-shadow to punch off a busy image; tightened spacing
   so the full subscribe form (header+body+2 fields+consent+CTA) never overflows. */
.wpu--layout-2 .wpu__header { color: #fff; font-size: 22px; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.9); }
.wpu--layout-2 .wpu__body { color: rgba(255,255,255,0.95); margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.wpu--layout-2 .wpu__form { gap: 11px; margin-top: 0; }
.wpu--layout-2 .wpu__cta--submit { padding: 13px 24px; }
.wpu--layout-2 .wpu__label { color: rgba(255,255,255,0.9); }
.wpu--layout-2 .wpu__optional { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.25); }
.wpu--layout-2 .wpu__consent { color: rgba(255,255,255,0.82); font-size: 12px; line-height: 1.4; gap: 9px; }
.wpu--layout-2 .wpu__close { background: rgba(0,0,0,0.5); color: #fff; }
.wpu--layout-2 .wpu__close:hover { background: rgba(0,0,0,0.7); }
.wpu--layout-2 .wpu__snooze { color: rgba(255,255,255,0.82); border-top-color: rgba(255,255,255,0.2); }
.wpu--layout-2 .wpu__field-error { color: #fca5a5; }
.wpu--layout-2 .wpu__trust { color: rgba(255,255,255,0.55); }
.wpu--layout-2 .wpu__form-status--success { background: rgba(240,253,244,0.15); color: #86efac; border-color: rgba(187,247,208,0.3); }
.wpu--layout-2 .wpu__form-status--error { background: rgba(254,242,242,0.15); color: #fca5a5; border-color: rgba(254,202,202,0.3); }

/* Inputs on dark overlay: glassmorphism so the fields read as distinct controls
   over the scrim instead of jarring light rectangles (P0). */
.wpu--layout-2 .wpu__form input[type="email"],
.wpu--layout-2 .wpu__form input[type="tel"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  /* stronger blur turns the busy banner behind the field into a soft wash so the
     input reads as a clear control (P1 legibility) */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wpu--layout-2 .wpu__form input[type="email"]::placeholder,
.wpu--layout-2 .wpu__form input[type="tel"]::placeholder { color: rgba(255, 255, 255, 0.72); }
.wpu--layout-2 .wpu__form input[type="email"]:hover:not(:focus),
.wpu--layout-2 .wpu__form input[type="tel"]:hover:not(:focus) {
  background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.5);
}
.wpu--layout-2 .wpu__form input:focus {
  background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); color: #fff;
}
.wpu--layout-2 .wpu__form input.wpu--input-error {
  border-color: #fca5a5; background: rgba(248, 113, 113, 0.15);
}
.wpu--layout-2 .wpu__consent input { accent-color: #fff; opacity: 0.9; }

/* ─────────────────────────────────────────────────────────────
 * L2 FullBackground + SUBSCRIBE: the form is tall, so a full-width bottom
 * scrim buries the banner. Instead, dock the form into a right-aligned glass
 * panel (~54%) so the banner stays fully visible on the left. The panel uses a
 * left→right transparent→dark gradient to blend into the image. Mobile reverts
 * to a full-width bottom card (side-by-side is too cramped under ~600px).
 * ───────────────────────────────────────────────────────────── */
.wpu--layout-2.wpu--mode-subscribe .wpu__content {
  align-self: center; justify-self: end;     /* hug content height, dock right-center */
  width: 50%; height: auto;
  max-height: calc(100% - 28px); overflow-y: auto;
  margin: 14px 14px 14px 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 22px 20px; border-radius: 14px;
  /* Mask confined to the form CARD only — the rest of the banner stays crisp.
     Neutral charcoal (NO accent tint — a hue clashes with warm/gold banner areas) at
     the original semi-transparent opacity. Left edge fades in (P2a) so the card blends
     into the banner instead of meeting it on a hard vertical line. */
  background: rgba(17, 19, 26, 0.76);
  background: linear-gradient(to right,
    rgba(17, 19, 26, 0.40) 0%, rgba(17, 19, 26, 0.76) 15%, rgba(17, 19, 26, 0.76) 100%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
@media (max-width: 600px) {
  .wpu--layout-2.wpu--mode-subscribe .wpu__content {
    width: auto; justify-self: stretch; align-self: end; height: auto;
    margin: 0 10px 10px; max-height: calc(100% - 20px);
    padding: 20px 18px;
  }
}

/* No-content (banner-only) per-layout */
.wpu--no-content.wpu--layout-1 .wpu__modal { flex-direction: column; width: min(420px, 92vw); height: auto; }
.wpu--no-content.wpu--layout-1 .wpu__banner { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.wpu--no-content.wpu--layout-2 .wpu__content { display: none; }

/* ─────────────────────────────────────────────────────────────
 * CTA-only: clean CTA, no gradient overlay.
 * ───────────────────────────────────────────────────────────── */
.wpu--cta-only .wpu__content { background: none !important; padding: 26px 28px !important; text-align: center; }
.wpu--cta-only:not(.wpu--layout-2) .wpu__snooze { margin-top: 14px; padding-top: 0; border-top: none; justify-content: center; }
.wpu--cta-only.wpu--layout-2 .wpu__content { align-self: end; padding: 0 28px 28px !important; }

/* ─────────────────────────────────────────────────────────────
 * External placement (FullBackground lightweight content below modal).
 * ───────────────────────────────────────────────────────────── */
.wpu__external { position: relative; z-index: 1; margin-top: 16px; width: min(680px, 92vw);
  display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wpu--placement-external .wpu__header { color: #fff; font-size: 20px; margin-bottom: 6px;
  text-align: center; display: inline-block; background: rgba(0,0,0,0.42);
  border-radius: 8px; padding: 6px 16px; }
.wpu--placement-external .wpu__body { color: rgba(255,255,255,0.95); text-align: center;
  margin-bottom: 4px; display: inline-block; background: rgba(0,0,0,0.42);
  border-radius: 8px; padding: 6px 16px; }
.wpu--placement-external .wpu__reveal-group { flex-direction: row; align-items: center; gap: 12px; width: 100%; }
.wpu--placement-external .wpu__code-card { margin: 0; flex: 1 1 0; min-width: 0;
  background: rgba(255,255,255,0.97); box-shadow: 0 3px 14px rgba(0,0,0,0.28);
  display: flex; flex-direction: column; justify-content: center; }
.wpu--placement-external .wpu__cta { margin: 0; flex: 1 1 0; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: center; }
.wpu--placement-external .wpu__code { font-size: clamp(16px, 3.2vw, 22px); }
/* Compact the coupon card so the equal-height (stretch) CTA beside it isn't a
   bulky slab — the row height tracks the taller child (this card), so tightening
   the card shrinks the CTA proportionally while keeping the balanced two-tile look. */
.wpu--placement-external .wpu__code-card { padding: 9px 16px; }
.wpu--placement-external .wpu__code-label { font-size: 10px; letter-spacing: 1px; margin-bottom: 1px; }
.wpu--placement-external .wpu__code { font-size: clamp(15px, 2.8vw, 19px); line-height: 1.15; }
.wpu--placement-external .wpu__expiry { font-size: 10.5px; margin-top: 2px; }
/* Reveal CTA sized like the guest Subscribe submit button (padding 15/30, 16.5px),
   no longer stretched to the coupon card's height (align-items:center above).
   Give the coupon card more width (taller, 3 lines of content) so the shorter CTA
   reads as a proportional button rather than a wide thin bar (~58% / ~42%). */
.wpu--placement-external .wpu__reveal-group .wpu__code-card { flex: 1.4 1 0; }
.wpu--placement-external .wpu__reveal-group .wpu__cta { flex: 1 1 0; font-size: 16.5px; padding: 15px 30px; align-self: center; }
.wpu--placement-external.wpu--cta-only .wpu__cta { animation: wpu-cta-pulse 2.4s ease-in-out infinite; }
@keyframes wpu-cta-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.3); transform: scale(1); }
  50%      { box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 8px rgba(255,255,255,0.22); transform: scale(1.025); }
}
.wpu--placement-external .wpu__cta:hover { animation-play-state: paused; }
@media (max-width: 520px) {
  .wpu--placement-external .wpu__reveal-group { flex-direction: column; }
  .wpu__external { width: 90vw; }
}

/* External snooze */
.wpu__snooze--external { position: relative; z-index: 1; margin-top: 16px; padding: 6px 12px;
  border-top: none; color: rgba(255,255,255,0.88); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.wpu__snooze--external input { accent-color: var(--wpu-accent, #1F3A68); }

/* ─────────────────────────────────────────────────────────────
 * B2B Promo mode refinements (audit P0–P2).
 * Promo = header? + body? + CTA link (no form). The register CTA is the
 * single dominant action → full-width in-modal; the External (FullBackground
 * CTA-only) case keeps its flex sizing but becomes a premium isolated pill.
 * All rules are Promo-scoped and do not affect Subscribe/Reveal/CtaOnly.
 * ───────────────────────────────────────────────────────────── */
.wpu--mode-promo .wpu__cta { letter-spacing: 0.5px; }                       /* P2-2 authority */

/* In-modal CTA: full-width, dominant, consistent top-spacing (P0-1, P0-2) */
.wpu--mode-promo .wpu__content .wpu__cta {
  display: block; width: 100%; padding: 16px 30px; margin-top: 20px;
}
/* L0: center content so header-only / CTA-only doesn't sit flush to the top (P1-3) */
.wpu--layout-0.wpu--mode-promo .wpu__content {
  display: flex; flex-direction: column; justify-content: center; min-height: 100px;
}
/* L1: tighter margin + larger CTA in the ~470px column; wider banner since
   the content column is lighter than Subscribe (P0-2, P1-2, P2-1) */
.wpu--layout-1.wpu--mode-promo .wpu__content .wpu__cta { margin-top: 16px; font-size: 17px; padding: 15px 30px; }
.wpu--layout-1.wpu--mode-promo .wpu__banner { width: 48%; }
.wpu--layout-1.wpu--mode-promo .wpu__content { flex: 1 1 52%; }
/* L2: reclaim banner area (no form → less padding), larger header, tighter CTA (P0-2, P1-1, P1-4) */
.wpu--layout-2.wpu--mode-promo .wpu__content { padding-top: 32px; }
.wpu--layout-2.wpu--mode-promo .wpu__content .wpu__cta { margin-top: 12px; }
.wpu--layout-2.wpu--mode-promo .wpu__header { font-size: 26px; margin-bottom: 10px; }

/* External (FullBackground CTA-only): full-width isolated premium pill (P0-3a, P2-3) */
.wpu--placement-external.wpu--cta-only .wpu__cta {
  width: 100%; min-width: 200px; max-width: 420px;
  padding: 18px 36px; font-size: 17px; border-radius: 16px;
}
/* External Promo header/body pill hierarchy — header reads stronger than body (P1-5) */
.wpu--placement-external.wpu--mode-promo .wpu__header { background: rgba(0,0,0,0.58); font-size: 22px; }
.wpu--placement-external.wpu--mode-promo .wpu__body { background: rgba(0,0,0,0.38); font-size: 14px; color: rgba(255,255,255,0.88); }

/* ---- Responsive + motion + print ---- */
@media (max-width: 768px) {
  .wpu__content { padding: 22px; }
  .wpu__header { font-size: 21px; }
  .wpu__cta--submit { padding: 15px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wpu__modal { animation: none; }
  .wpu--placement-external .wpu__cta { animation: none; }
  .wpu__cta { transition: none; }
  .wpu__close { transition: none; }
  .wpu__cta--submit.wpu--busy::after { animation: none; }
}
@media print { .wpu { display: none !important; } }
