/* ══════════════════════════════════════════════════════════
   woPaddle Pricing Table — Frontend CSS (Menfia Dark Theme)
   All classes prefixed mptf- to avoid theme conflicts
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

.mptf-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 48px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #0a090f;
    border-radius: 16px;
}

/* ── Billing switcher (toggle style) ─────────────────────── */
.mptf-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 0 24px;
}

.mptf-sw-label {
    font-size: 14px;
    font-weight: 400;
    color: #8a8494;
    transition: color .3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mptf-sw-label.is-active {
    color: #fff;
    font-weight: 500;
}

/* Toggle track */
.mptf-toggle-track {
    width: 48px;
    height: 26px;
    background: #7c3aed;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .3s;
    border: none;
    outline: none;
    padding: 0;
}
.mptf-toggle-track:focus-visible {
    box-shadow: 0 0 0 3px rgba(124,58,237,.4);
}

/* Toggle thumb */
.mptf-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.mptf-toggle-track.is-yearly .mptf-toggle-thumb {
    transform: translateX(22px);
}

/* Save badge — appears only when yearly is active */
.mptf-save-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(124,58,237,.18);
    color: #a78bfa;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(124,58,237,.3);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .4s, transform .4s;
    pointer-events: none;
}
.mptf-save-badge.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Grid ─────────────────────────────────────────────────── */
.mptf-grid {
    display: grid;
    gap: 16px;
    align-items: start;
}

.mptf-cols-1 { grid-template-columns: repeat(1, minmax(0, 380px)); justify-content: center; }
.mptf-cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.mptf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mptf-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Tier card ────────────────────────────────────────────── */
.mptf-tier {
    display: flex;
    flex-direction: column;
    background: #13111c;
    border: 1px solid #1e1b2e;
    border-radius: 16px;
    overflow: hidden;
}

/* Featured tier */
.mptf-tier--featured {
    border-color: #7c3aed;
    box-shadow: 0 0 0 1px #7c3aed;
    position: relative;
}

/* Badge */
.mptf-badge {
    text-align: center;
    padding: 0;
}
.mptf-badge-inner {
    display: inline-flex;
    align-items: center;
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
}

/* ── Tier inner ───────────────────────────────────────────── */
.mptf-tier-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 20px;
}

/* Name */
.mptf-name {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}

/* Description */
.mptf-desc {
    font-size: 13px;
    color: #8a8494;
    line-height: 1.6;
    margin: 0 0 18px;
    min-height: 40px;
}

/* ── Price block ──────────────────────────────────────────── */
.mptf-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    min-height: 56px;
    align-items: center;
}
.mptf-was {
    font-size: 18px;
    color: #6b7280;
    text-decoration: line-through;
    font-weight: 400;
}
.mptf-now {
    font-family: 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: #a78bfa;
    line-height: 1;
    letter-spacing: -1px;
}
.mptf-sfx {
    font-size: 14px;
    color: #8a8494;
    font-weight: 400;
    align-self: flex-end;
    padding-bottom: 4px;
}

/* Billed note */
.mptf-billed-note {
    font-size: 12px;
    color: #8a8494;
    margin-bottom: 18px;
    min-height: 18px;
    transition: opacity .3s;
}

/* "You save $X/yr" pill — yearly only */
.mptf-save-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(124,58,237,.15);
    color: #a78bfa;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(124,58,237,.25);
    margin-bottom: 14px;
}

/* Divider */
.mptf-divider {
    border: none;
    border-top: 1px solid #1e1b2e;
    margin: 16px 0;
}

/* Card meta (websites / pageviews) */
.mptf-card-meta {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}
.mptf-card-sub {
    font-size: 12px;
    color: #8a8494;
    margin-bottom: 12px;
}
.mptf-team-label {
    font-size: 13px;
    font-weight: 500;
    color: #8a8494;
    margin-bottom: 10px;
}

/* ── CTA button ───────────────────────────────────────────── */
.mptf-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    margin-bottom: 0;
    cursor: pointer;
    border: 1px solid #2e2a42;
    transition: background .2s, border-color .2s;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}
.mptf-btn:hover {
    background: #1e1b2e;
    border-color: #3d3760;
    color: #fff !important;
    text-decoration: none !important;
}

/* Featured tier button */
.mptf-tier--featured .mptf-btn {
    background: #7c3aed;
    border-color: #7c3aed;
}
.mptf-tier--featured .mptf-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.mptf-btn-bottom {
    margin-top: auto;
    margin-bottom: 0;
    display: none; /* hide bottom duplicate CTA */
}

/* ── Features list ────────────────────────────────────────── */
.mptf-features {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mptf-features li {
    font-size: 13px;
    color: #c4c0d0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.mptf-check {
    color: #7c3aed;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 14px;
    font-weight: 700;
}

/* Addon feature */
.mptf-features li.mptf-feat-addon {
    color: #a78bfa;
}
.mptf-features li.mptf-feat-addon a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .mptf-cols-3,
    .mptf-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .mptf-cols-2,
    .mptf-cols-3,
    .mptf-cols-4 {
        grid-template-columns: 1fr;
    }
    .mptf-now { font-size: 2rem; }
    .mptf-name { font-size: 18px; }
    .mptf-wrap { padding: 0 8px 32px; }
}
