/* css/blocks/pricing.css */

/* --- Pricing Intro --- */
.sp-pricing-intro {
    text-align: center;
    padding: 80px 24px 20px 24px;
    background-color: var(--bg-global);
}

.pricing-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Pricing Grid --- */
.sp-pricing-cards {
    padding: 20px 0px 0px 0px;
    background-color: var(--bg-global);
    overflow-x: hidden; /* Force bounds locally */
    width: 100%;
}

.pricing-grid {
    display: grid;
    /* Use auto-fit to make it naturally responsive without overflowing */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 0 auto;
    align-items: stretch; /* Make all cards equal height automatically */
    width: 100%;
    max-width: 100%;
}

/* --- Card Base Styles --- */
.price-card {
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.light-card {
    background-color: #F8F9FA;
    border: 1px solid var(--text-border);
}

.dark-card {
    background-color: #212529;
    color: #FFFFFF;
    box-shadow: var(--shadow-premium);
    /* Make the dark card slightly taller */
    padding-top: 50px; 
    padding-bottom: 50px;
    z-index: 2;
}

/* --- Badges --- */
.card-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-badge::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #CBD5E1;
}

.green-dot::after {
    background-color: #22C55E;
}

/* The Striped Tab on the Dark Card */
.highlight-tab {
    position: absolute;
    top: -12px;
    right: 24px;
    background: repeating-linear-gradient(
        45deg,
        #FBBF24,
        #FBBF24 5px,
        #F59E0B 5px,
        #F59E0B 10px
    );
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 12px 12px 0px 12px;
    z-index: 3;
}

.highlight-tab::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #000;
    margin-left: 8px;
}

/* --- Content Styling --- */
.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.dark-card .plan-name {
    color: #FFFFFF;
}

.price-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 24px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 4px;
    transform: translateY(-10px);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.dark-card .amount {
    color: var(--pyro-gold);
}

.billing-cycle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 8px;
    display: flex;
    flex-direction: column;
}

.dark-card .billing-cycle {
    color: #9CA3AF;
}

.plan-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.dark-card .plan-desc {
    color: #D1D5DB;
}

/* --- Divider --- */
.dotted-divider {
    border: none;
    border-top: 2px dotted #E2E8F0;
    margin-bottom: 32px;
}

.dotted-divider.dark {
    border-top-color: #4B5563;
}

/* --- Feature Lists --- */
.feature-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.feature-list li {
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.light-card .feature-list {
    color: var(--text-body);
}

.dark-list {
    color: #E5E7EB;
}

/* Custom Checkmarks and Crosses */
.feature-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-radius;
    flex-shrink: 0;
}

.included::before {
    /* Green Check SVG */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%2322C55E" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.excluded {
    color: #94A3B8 !important;
}

.excluded::before {
    /* Gray Cross SVG */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2394A3B8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
}

/* --- Buttons --- */
.btn-outline, .btn-solid-white {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-border);
    color: var(--text-heading);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--siren-red);
    color: var(--siren-red);
}

.btn-solid-white {
    background: #FFFFFF;
    color: #000000;
    border: none;
}

.btn-solid-white:hover {
    background: var(--siren-red);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1280px) {
    .pricing-grid {
       grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .dark-card {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 1200px) {
 .pricing-grid {
       grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
}

@media (max-width: 600px) {
     .pricing-grid {
       grid-template-columns: 1fr;

    }
    .pricing-title {
        font-size: 2.5rem;
    }
    .sp-pricing-intro {
        padding-top: 40px;
    }
}