/* Shared end-of-content membership CTA. Loaded by js/membership-cta.js
   and by pages that include this file directly. Also styles #code-lock
   "Become a Member" buttons that use .sbp-cta-btn. */

#membership-cta-card.sbp-cta-card,
.sbp-cta-card {
    display: block;
    box-sizing: border-box;
    position: relative;
    max-width: 52rem;
    width: 100%;
    margin: 1.75rem auto;
    padding: 2.1rem 1.5rem 1.25rem;
    text-align: center;
    color: #e8eef6;
    background:
        radial-gradient(900px 280px at 50% -8%, rgba(42, 209, 214, 0.16), transparent 60%),
        linear-gradient(180deg, #161b24 0%, #0c1016 100%);
    border: 1px solid rgba(42, 209, 214, 0.55);
    border-radius: 1.25rem;
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 0 32px rgba(42, 209, 214, 0.28),
        0 18px 44px rgba(0, 0, 0, 0.5);
}

.sbp-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 0.85rem;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #1a1200;
    font-family: "Bebas Neue", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.sbp-cta-badge i { color: #1a1200; }

.sbp-cta-title {
    display: block;
    width: 100%;
    clear: both;
    margin: 0 0 0.75rem;
    padding: 0;
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 1px;
    line-height: 1;
    font-weight: 400;
    text-shadow: 0 0 18px rgba(42, 209, 214, 0.35);
}

.sbp-cta-lead {
    margin: 0 auto 1.2rem;
    max-width: 40rem;
    color: #c5cdd8;
    font-size: 1rem;
    line-height: 1.55;
}

.sbp-cta-perks {
    list-style: none;
    margin: 0 auto 1.4rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    max-width: 28rem;
    text-align: left;
}

.sbp-cta-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e8eef6;
    font-size: 0.95rem;
    line-height: 1.3;
}

.sbp-cta-perks i {
    width: 1.15rem;
    text-align: center;
    color: #2ad1d6;
    flex: none;
}

.sbp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

.sbp-cta-btn {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    min-height: 3.1rem;
    padding: 0.7rem 1.25rem;
    border-radius: 16px;
    border: 3px solid #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.15;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.sbp-cta-btn i { margin: 0; }

.sbp-cta-btn-primary {
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 38%, rgba(0, 0, 0, 0) 55%),
        linear-gradient(#fbbf24, #d97706);
    box-shadow:
        0 0 16px rgba(245, 158, 11, 0.55),
        0 5px 0 #92400e,
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.sbp-cta-actions .sbp-cta-btn-primary {
    flex: 1 1 220px;
    max-width: 320px;
}

.sbp-cta-btn-primary:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow:
        0 0 22px rgba(245, 158, 11, 0.75),
        0 7px 0 #92400e,
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.sbp-cta-btn-primary:active {
    color: #fff;
    filter: brightness(0.95);
    transform: translateY(4px);
    box-shadow:
        0 0 10px rgba(245, 158, 11, 0.4),
        0 1px 0 #92400e,
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.sbp-cta-btn-secondary {
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 38%, rgba(0, 0, 0, 0) 55%),
        linear-gradient(#334155, #0f172a);
    box-shadow:
        0 0 10px rgba(42, 209, 214, 0.18),
        0 5px 0 #020617,
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.sbp-cta-actions .sbp-cta-btn-secondary { flex: 0 1 180px; }

.sbp-cta-btn-secondary:hover {
    color: #fff;
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.sbp-cta-btn-secondary:active {
    color: #fff;
    transform: translateY(4px);
    box-shadow:
        0 0 8px rgba(42, 209, 214, 0.15),
        0 1px 0 #020617,
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

.sbp-cta-amazon {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sbp-cta-amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9aa3b2;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.sbp-cta-amazon-link:hover {
    color: #ffd089;
    text-decoration: underline;
}

.sbp-cta-amazon p {
    margin: 0.35rem auto 0;
    max-width: 26rem;
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280;
}

#code-lock #join-membership.sbp-cta-btn {
    margin-top: 0.35rem;
}

@media (min-width: 768px) {
    .sbp-cta-perks {
        grid-template-columns: 1fr 1fr;
        max-width: 36rem;
        gap: 0.55rem 1rem;
    }
    #membership-cta-card.sbp-cta-card,
    .sbp-cta-card { padding: 2.25rem 2rem 1.4rem; }
    .sbp-cta-btn { font-size: 1.25rem; padding: 0.8rem 1.4rem; }
}

@media (max-width: 767px) {
    .sbp-cta-actions .sbp-cta-btn {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sbp-cta-btn,
    .sbp-cta-btn:hover,
    .sbp-cta-btn:active {
        transition: none;
        transform: none;
    }
}
