/* ── Stripe Embedded Checkout Plugin Styles ─────────────────────────────────── */

#scp-wrapper {
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    color: #1a1a2e;
}

/* ── Headings ─────────────────────────────────────────────────────────────── */

.scp-heading {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a1a2e;
}

.scp-subtext {
    text-align: center;
    color: #6b7280;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

/* ── Plan Cards ───────────────────────────────────────────────────────────── */

.scp-plans {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.scp-plan-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    flex: 1 1 240px;
    max-width: 300px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.scp-plan-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
}

.scp-plan-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #374151;
}

/* Featured (yearly) card */
.scp-plan-featured {
    border-color: #6366f1;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.18);
}

.scp-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 99px;
    white-space: nowrap;
}

/* Price display */
.scp-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin: 0.5rem 0 0.25rem;
}

.scp-currency {
    font-size: 1.4rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
}

.scp-period {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
}

.scp-saving {
    font-size: 0.82rem;
    color: #059669;
    font-weight: 600;
    margin: 0.25rem 0 1rem;
}

/* Feature list */
.scp-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    text-align: left;
}

.scp-features li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #4b5563;
}

.scp-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 700;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.scp-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
    text-decoration: none;
    line-height: 1.4;
}

.scp-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    width: 100%;
}

.scp-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
}

.scp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.scp-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

.scp-btn-select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    color: #6366f1;
    border-color: #6366f1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.scp-btn-select:hover {
    background: #6366f1;
    color: #ffffff;
}

/* Override for the featured card's select button */
.scp-plan-featured .scp-btn-select {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
}

.scp-plan-featured .scp-btn-select:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.scp-btn-link {
    background: none;
    border: none;
    padding: 0.25rem 0;
    color: #6366f1;
    font-size: 0.88rem;
    cursor: pointer;
    margin-bottom: 1rem;
    display: inline-block;
}

.scp-btn-link:hover {
    text-decoration: underline;
    color: #4f46e5;
}

/* ── Email Step ───────────────────────────────────────────────────────────── */

#scp-step-email {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.scp-email-form {
    margin-top: 0.5rem;
}

#scp-email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.18s;
    margin-bottom: 0.5rem;
}

#scp-email-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.scp-email-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.scp-email-actions .scp-btn-secondary {
    flex: 0 0 auto;
}

.scp-email-actions .scp-btn-primary {
    flex: 1;
}

/* ── Error messages ───────────────────────────────────────────────────────── */

.scp-error {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    text-align: left;
}

/* ── Checkout container ───────────────────────────────────────────────────── */

#scp-step-checkout {
    max-width: 600px;
    margin: 0 auto;
}

#scp-checkout-mount {
    min-height: 200px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 560px ) {
    .scp-plans {
        flex-direction: column;
        align-items: center;
    }

    .scp-plan-card {
        max-width: 100%;
        width: 100%;
    }

    .scp-email-actions {
        flex-direction: column;
    }
}
