/* =============================================================================
 * Wefunder community round popup - modal variant
 *
 * Self-contained. Uses the existing cplx.io palette:
 *   dark background #1c2222, teal #2db3b0, cplx blue #289dd5,
 *   waitlist green #179770 / dark green #0e7e65, text #f2f2f2/#aaa,
 *   Montserrat (headings) / Poppins (body).
 * Delete this file to remove the popup styles.
 * ========================================================================== */

.wefunder-popup
{
    display: none;
}

/* Open state */
.wefunder-popup.wefunder-popup-open
{
    display: flex;
}

/* Modal variant: full-screen backdrop, centered card */
.wefunder-popup-modal
{
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.wefunder-popup-modal.wefunder-popup-open
{
    opacity: 1;
}

.wefunder-popup-card
{
    position: relative;
    background: #1c2222;
    border: 1px solid #2db3b0;
    border-radius: 12px;
    padding: 34px 32px 26px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #f2f2f2;
    font-family: Poppins, Lato, Dosis, "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* Prevent the card click from bubbling to the backdrop close handler */
    transform: scale(0.92);
    transition: transform 200ms ease;
}

.wefunder-popup-modal.wefunder-popup-open .wefunder-popup-card
{
    transform: scale(1);
}

/* The card receives focus on open (tabindex="-1") for screen-reader/keyboard
   users. Suppress the default browser focus ring so only the intended teal
   border is visible. */
.wefunder-popup-card:focus
{
    outline: none;
}

.wefunder-popup-close
{
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 150ms ease;
}

.wefunder-popup-close:hover,
.wefunder-popup-close:focus
{
    color: #f2f2f2;
    outline: none;
}

.wefunder-popup-logo
{
    margin-bottom: 18px;
    text-align: center;
}

.wefunder-popup-logo svg
{
    height: 38px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.wefunder-popup-headline
{
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 20px;
    color: #f2f2f2;
}

.wefunder-popup-checkbox
{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 300;
    color: #aaa;
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}

.wefunder-popup-checkbox input
{
    margin: 0;
    accent-color: #289dd5;
    cursor: pointer;
}

.wefunder-popup-cta
{
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #179770;
    color: #fff;
    border: 1px solid #0e7e65;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 15pt;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.wefunder-popup-cta:hover,
.wefunder-popup-cta:focus
{
    background: #289dd5;
    border-color: #289dd5cc;
    color: #fff;
    text-decoration: none;
    outline: none;
}

/* Small screens */
@media (max-width: 480px)
{
    .wefunder-popup-card
    {
        padding: 30px 20px 22px;
    }

    .wefunder-popup-headline
    {
        font-size: 18px;
    }
}