/* Website only; the app does not load this popup. */
.newsletter-popup {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 32px;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.newsletter-popup[hidden],
.newsletter-popup [hidden] { display: none; }
.newsletter-popup::backdrop { background: rgb(11 11 18 / 45%); }
.newsletter-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.newsletter-close:hover { background: var(--bg-soft); }
.newsletter-logo { display: block; width: 36px; height: 36px; margin-bottom: 22px; border-radius: 10px; }
.newsletter-pip { display: block; width: 96px; height: auto; aspect-ratio: 296 / 256; margin-bottom: 18px; }
.newsletter-popup h2 { font:600 28px/1.18 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:-.035em; }
.newsletter-copy { margin: 0 0 24px; color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.newsletter-popup label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-soft); }
.newsletter-popup input[type="email"] {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}
.newsletter-popup .button { width: 100%; }
.newsletter-popup button:disabled { opacity: 0.65; cursor: wait; }
.newsletter-privacy { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-soft); }
.newsletter-privacy a { color: inherit; text-decoration: underline; }
.newsletter-message { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.newsletter-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.newsletter-popup :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
    .newsletter-popup { margin: auto auto 12px; padding: 28px 24px max(28px, env(safe-area-inset-bottom)); }
    .newsletter-popup h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .newsletter-popup .button { transition: none; }
}
