/* =========================================================
   SoxyPro – Plan Section
   BEM prefix: pln-
   ========================================================= */

/* ── Variables ────────────────────────────────────────────── */
.pln-section {
    --pln-purple:      #9e6bff;
    --pln-teal:        #4dd9c0;
    --pln-orange:      #fb923c;
    --pln-blue:        #60a5fa;
    --pln-card-bg:     rgba(17, 10, 46, 0.4);
    --pln-card-border: rgba(255, 255, 255, 0.075);
    --pln-text-muted:  rgba(255, 255, 255, 0.55);
}

/* ── Section shell ────────────────────────────────────────── */
.pln-section {
    padding: 5rem 0 6rem;
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.pln-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 55rem 38rem at 15% 30%, rgba(158, 107, 255, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50rem 35rem at 85% 70%, rgba(77, 217, 192, 0.06) 0%, transparent 70%);
}

/* ── Grid ─────────────────────────────────────────────────── */
.pln-container {
    position: relative;
    z-index: 1;
}

.pln-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* ── Card ─────────────────────────────────────────────────── */
.pln-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(17, 10, 46, 0.4);
    backdrop-filter: blur(18px) saturate(135%);
    border: 0.0625rem solid var(--pln-card-border);
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow:
        0 1rem 2.5rem rgba(2, 0, 14, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
    transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out,
                border-color 0.3s ease, box-shadow 0.25s ease;
}

.pln-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pln-card:hover {
    border-color: rgba(158, 107, 255, 0.25);
    box-shadow:
        0 1.5rem 3.5rem rgba(2, 0, 14, 0.28),
        0 0 1rem rgba(158, 107, 255, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Stagger delay for each card */
.pln-card:nth-child(1) { transition-delay: 0s; }
.pln-card:nth-child(2) { transition-delay: 0.1s; }
.pln-card:nth-child(3) { transition-delay: 0.2s; }
.pln-card:nth-child(4) { transition-delay: 0.3s; }

/* ── Card icon ────────────────────────────────────────────── */
.pln-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.pln-card:nth-child(4n+1) .pln-card__icon {
    background: rgba(158, 107, 255, 0.12);
    border: 0.0625rem solid rgba(158, 107, 255, 0.3);
    color: #b07fff;
}

.pln-card:nth-child(4n+2) .pln-card__icon {
    background: rgba(77, 217, 192, 0.1);
    border: 0.0625rem solid rgba(77, 217, 192, 0.3);
    color: #4dd9c0;
}

.pln-card:nth-child(4n+3) .pln-card__icon {
    background: rgba(251, 146, 60, 0.1);
    border: 0.0625rem solid rgba(251, 146, 60, 0.3);
    color: #fb923c;
}

.pln-card:nth-child(4n+4) .pln-card__icon {
    background: rgba(96, 165, 250, 0.1);
    border: 0.0625rem solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

/* ── Card text ────────────────────────────────────────────── */
.pln-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

.pln-card__desc {
    font-size: 0.875rem;
    color: var(--pln-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Accent line ──────────────────────────────────────────── */
.pln-card__accent {
    height: 0.1875rem;
    width: 2.5rem;
    border-radius: 0.125rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 0.1875rem solid transparent;
}

.pln-card:nth-child(4n+1) .pln-card__accent { border-color: rgba(158, 107, 255, 0.4); }
.pln-card:nth-child(4n+2) .pln-card__accent { border-color: rgba(77, 217, 192, 0.4); }
.pln-card:nth-child(4n+3) .pln-card__accent { border-color: rgba(251, 146, 60, 0.4); }
.pln-card:nth-child(4n+4) .pln-card__accent { border-color: rgba(96, 165, 250, 0.4); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 48rem) {
    .pln-section {
        padding: 3.5rem 0 4rem;
    }

    .pln-grid {
        grid-template-columns: 1fr;
    }

    .pln-card:nth-child(n) {
        transition-delay: 0s;
    }
}