/* Container & Grid Setup */
.pp-3ae2caa5-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Base Card Styling (Premium Dark Theme) */
.pp-3ae2caa5-card {
    position: relative;
    background-color: #232323;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    
    /* Viewport Entrance Animation */
    opacity: 0;
    transform: translateY(40px);
}

/* Card hover animation */
.pp-3ae2caa5-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Reveal State when active via Intersection Observer */
.pp-3ae2caa5-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    transition-delay: calc(var(--card-index) * 0.15s);
}

/* Popular Badge */
.pp-3ae2caa5-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Header & Typography */
.pp-3ae2caa5-package-name {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px 0;
}

.pp-3ae2caa5-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.pp-3ae2caa5-price {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pp-3ae2caa5-period {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.pp-3ae2caa5-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
}

/* Delivery & Revisions Meta */
.pp-3ae2caa5-delivery-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-3ae2caa5-meta-item {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Feature List */
.pp-3ae2caa5-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1; /* Pushes footer / CTA to the very bottom */
}

.pp-3ae2caa5-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-3ae2caa5-check-icon {
    color: #10b981;
    font-weight: bold;
    flex-shrink: 0;
}

.pp-3ae2caa5-feature-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* CTA Footer & Button */
.pp-3ae2caa5-footer {
    width: 100%;
    margin-top: auto; /* Ensures anchor to bottom of flex layout */
}

.pp-3ae2caa5-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.pp-3ae2caa5-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Laptop Grid (1366px and below) */
@media (max-width: 1366px) {
    .pp-3ae2caa5-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .pp-3ae2caa5-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .pp-3ae2caa5-card {
        padding: 24px;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .pp-3ae2caa5-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pp-3ae2caa5-card {
        padding: 24px;
    }
    .pp-3ae2caa5-price {
        font-size: 32px;
    }
}
