/* ============================================================
   WML Prestige Pricing
   Premium pricing section — reveal-on-scroll + magnetic CTA
   Extracted from the WML Elements showcase pricing section.
   ============================================================ */
@import url("https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=general-sans@400,500,600,700&display=swap");

.wml-prpr {
    --wml-prpr-accent: #22e58c;
    --wml-prpr-accent-deep: #0fc977;
    --wml-prpr-accent2: #c8ff4d;
    --wml-prpr-card: rgba(16, 22, 36, 0.85);
    --wml-prpr-title: #ffffff;
    --wml-prpr-muted: #9aa3b3;
    --wml-prpr-feature: #b8bfcc;
    --wml-prpr-cols: 3;
    --wml-prpr-gap: 20px;
    --wml-prpr-on-accent: #06210f;

    position: relative;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    font-family: 'General Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wml-prpr *,
.wml-prpr *::before,
.wml-prpr *::after {
    box-sizing: border-box;
}

.wml-prpr-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* ── Grid ─────────────────────────────────────────────────────
   Flex-wrap (not CSS grid) so a leftover card on the last row is
   centered instead of stuck to the left. ─────────────────────── */
.wml-prpr-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--wml-prpr-gap);
}

/* ── Card ─────────────────────────────────────────────────── */
.wml-prpr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 calc((100% - (var(--wml-prpr-cols) - 1) * var(--wml-prpr-gap)) / var(--wml-prpr-cols));
    min-width: 0;
    max-width: 100%;
    border-radius: 24px;
    padding: 34px;
    background: linear-gradient(160deg, var(--wml-prpr-card), rgba(11, 16, 28, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wml-prpr-card.is-featured {
    background: linear-gradient(165deg, color-mix(in srgb, var(--wml-prpr-accent) 8%, transparent), rgba(11, 16, 28, 0.92));
    border: 1px solid color-mix(in srgb, var(--wml-prpr-accent) 30%, transparent);
    box-shadow: 0 40px 80px -24px color-mix(in srgb, var(--wml-prpr-accent) 28%, transparent);
}

.wml-prpr-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: 0 0 13px 13px;
    background: linear-gradient(135deg, var(--wml-prpr-accent), var(--wml-prpr-accent-deep));
    color: var(--wml-prpr-on-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.wml-prpr-tier {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--wml-prpr-muted);
    margin-bottom: 18px;
}

.wml-prpr-card.is-featured .wml-prpr-tier {
    color: color-mix(in srgb, var(--wml-prpr-accent) 65%, #ffffff);
}

.wml-prpr-price {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 6px;
}

.wml-prpr-amount {
    font-family: 'Clash Display', 'General Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 54px;
    color: var(--wml-prpr-title);
    line-height: 1;
}

.wml-prpr-period {
    color: var(--wml-prpr-muted);
    margin-bottom: 11px;
}

.wml-prpr-meta {
    font-size: 14px;
    color: #717a8b;
    margin-bottom: 26px;
}

/* ── Features ─────────────────────────────────────────────── */
.wml-prpr-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
    color: var(--wml-prpr-feature);
    margin-bottom: 30px;
}

.wml-prpr-feat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wml-prpr-check {
    color: var(--wml-prpr-accent);
    font-size: 17px;
    flex-shrink: 0;
}

.wml-prpr-feat.is-muted {
    color: #717a8b;
}

.wml-prpr-feat.is-muted .wml-prpr-check {
    color: #4a5468;
}

/* ── Button ───────────────────────────────────────────────── */
.wml-prpr-btn {
    display: block;
    margin-top: auto;
    text-align: center;
    padding: 14px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #eef2f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: border-color 0.3s, background 0.3s, transform 0.25s cubic-bezier(.16, 1, .3, 1);
}

.wml-prpr-btn:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.04);
}

.wml-prpr-btn.is-primary {
    padding: 16px;
    border: none;
    background: linear-gradient(135deg, var(--wml-prpr-accent), var(--wml-prpr-accent-deep));
    color: var(--wml-prpr-on-accent);
    font-weight: 700;
    font-size: 15.5px;
    box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--wml-prpr-accent) 70%, transparent);
}

.wml-prpr-btn.is-primary:hover {
    background: linear-gradient(135deg, var(--wml-prpr-accent), var(--wml-prpr-accent-deep));
}

/* ── Reveal animation (JS-driven) ─────────────────────────────
   The hidden state is only applied AFTER the script adds
   `.is-reveal-ready`. If the JS never runs (e.g. the Bricks
   editor), the cards simply stay visible. ─────────────────── */
.wml-prpr.is-reveal-ready [data-wml-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
}

.wml-prpr.is-reveal-ready [data-wml-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* ── Responsive ───────────────────────────────────────────────
   Override the per-column basis so cards wrap to 2-up on tablet
   and 1-up on phones regardless of the chosen column count. ──── */
@media (max-width: 900px) {
    .wml-prpr-card {
        flex-basis: calc((100% - var(--wml-prpr-gap)) / 2);
    }
}

@media (max-width: 600px) {
    .wml-prpr-card {
        flex-basis: 100%;
        min-width: 0;
    }
}

