/* ── Popy Popup – Frontend ───────────────────────────────────────── */

/* Overlay */
.popy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .3s ease;
}
.popy-overlay.popy-in { opacity: 1; }

/* Box */
.popy-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 40px 32px 32px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 24px 72px rgba(0,0,0,.18);
    transform: translateY(32px) scale(.97);
    opacity: 0;
    transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.popy-overlay.popy-in .popy-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close */
.popy-x {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 17px; line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.popy-x:hover { color: #333; background: #f0f0f0; }

/* Icon */
.popy-icon { font-size: 44px; margin: 0 0 12px; line-height: 1; }

/* Eyebrow */
.popy-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

/* Title */
.popy-title {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin: 0 0 16px;
}

/* Subtitle */
.popy-subtitle {
    font-size: 17px;
    color: #333;
    margin: 0 0 6px;
}
.popy-subtitle strong { color: #111; }

/* Body */
.popy-body {
    font-size: 15px;
    color: #555;
    margin: 0 0 4px;
}
.popy-body strong { color: #111; }

/* Divider */
.popy-rule {
    border: none;
    border-top: 1px solid #eee;
    margin: 22px 0;
}

/* Primary button */
.popy-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    margin-bottom: 10px;
    transition: filter .2s, transform .15s;
    box-sizing: border-box;
}
.popy-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }

/* Secondary button */
.popy-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #333 !important;
    background: #f0f0f0;
    text-decoration: none;
    margin-bottom: 18px;
    transition: background .2s;
    box-sizing: border-box;
}
.popy-btn-secondary:hover { background: #e4e4e4; text-decoration: none; }

/* Footnote + dismiss */
.popy-footnote {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}
.popy-dismiss {
    color: #888;
    text-decoration: underline;
    cursor: pointer;
}
.popy-dismiss:hover { color: #333; }

/* Responsive */
@media (max-width: 520px) {
    .popy-box { padding: 36px 20px 24px; }
    .popy-title { font-size: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .popy-overlay, .popy-box { transition: none; }
}
