/* ---- Email sign-up pop-up (marketing opt-in) ----
   A centred modal, opened only by the offer bar's "Get the code" button;
   nothing shows it by itself. Same construction as the cookie preferences
   modal (scrim + panel), sitting above both cookie layers. */
.signup-pop[hidden] { display: none !important; }
.signup-pop {
    position: fixed; inset: 0; z-index: 270;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.signup-pop__scrim {
    position: absolute; inset: 0; background: rgba(5, 10, 8, 0.76);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s var(--ease);
}
.signup-pop.is-open .signup-pop__scrim { opacity: 1; }
.signup-pop__card {
    position: relative; z-index: 1; width: 100%; max-width: 520px;
    max-height: min(90vh, 760px); overflow-y: auto; text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(200, 162, 75, 0.38);
    border-radius: 20px; box-shadow: var(--shadow-lg);
    padding: 40px 40px 32px;
    transform: translateY(14px) scale(.985); opacity: 0;
    transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.signup-pop.is-open .signup-pop__card { transform: none; opacity: 1; }
.signup-pop__card:focus { outline: none; }
/* No page scroll behind the modal. */
html.has-modal { overflow: hidden; }

.signup-pop__close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; display: grid; place-items: center;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 50%;
    color: var(--text-muted); cursor: pointer; transition: all .2s var(--ease);
}
.signup-pop__close:hover { color: var(--text); border-color: var(--text-muted); }
.signup-pop__close svg { width: 17px; height: 17px; }

.signup-pop__eyebrow {
    margin: 0 0 8px; font-size: .72rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.signup-pop__title {
    margin: 0 0 10px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.95rem; line-height: 1.12; letter-spacing: -0.015em; color: var(--text);
}
.signup-pop__desc {
    margin: 0 auto 22px; max-width: 38ch;
    font-size: .95rem; line-height: 1.6; color: var(--text-muted);
}
.signup-pop__desc strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

.signup-pop__form { display: flex; gap: 8px; }
.signup-pop__input {
    flex: 1; min-width: 0; height: 50px; padding: 0 20px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: rgba(244, 241, 234, 0.05);
    color: var(--text); font: inherit; font-size: .95rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.signup-pop__input::placeholder { color: var(--text-muted); opacity: .8; }
.signup-pop__input:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 162, 75, 0.22);
}
.signup-pop__submit {
    display: inline-flex; align-items: center; justify-content: center;
    height: 50px; padding: 0 24px; border-radius: 999px; flex: none;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #1a1206; border: 1px solid var(--gold);
    font-family: var(--font-body); font-weight: 700; font-size: .9rem;
    letter-spacing: .01em; white-space: nowrap; cursor: pointer; text-decoration: none;
    box-shadow: 0 6px 18px rgba(200, 162, 75, 0.25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.signup-pop__submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200, 162, 75, 0.32); filter: brightness(1.04); }
.signup-pop__submit:disabled { opacity: .6; cursor: default; transform: none; }
.signup-pop__submit--wide { min-width: 200px; margin-top: 4px; }
/* Honeypot: off-screen for people, present for bots. */
.signup-pop__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-pop__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.signup-pop__consent {
    margin: 16px auto 0; max-width: 46ch;
    font-size: .74rem; line-height: 1.55; color: var(--text-muted);
}
.signup-pop__consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.signup-pop__error { margin: 10px 0 0; font-size: .84rem; color: var(--danger); }
.signup-pop__error[hidden] { display: none; }

/* After a successful sign-up the form gives way to the result. */
.signup-pop__done { display: none; }
.signup-pop__done [hidden] { display: none; }
.signup-pop__code {
    display: inline-block; margin: 2px 0 22px; padding: 12px 28px;
    border: 2px dashed rgba(200, 162, 75, 0.6); border-radius: 12px;
    font-family: var(--font-display); font-size: 2rem; letter-spacing: .14em; color: var(--gold);
}
.signup-pop.is-done [data-signup-intro],
.signup-pop.is-done .signup-pop__form,
.signup-pop.is-done .signup-pop__consent,
.signup-pop.is-done .signup-pop__error { display: none; }
.signup-pop.is-done .signup-pop__done { display: block; }

@media (max-width: 719px) {
    .signup-pop { padding: 16px; }
    .signup-pop__card { padding: 34px 22px 26px; }
    .signup-pop__title { font-size: 1.6rem; }
    .signup-pop__form { flex-direction: column; }
    /* Stacked: the input must keep its height rather than flex to nothing. */
    .signup-pop__input { flex: none; width: 100%; }
    .signup-pop__submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .signup-pop__scrim, .signup-pop__card, .signup-pop__submit { transition: none; }
}
