/*--------------------------------------------------------------
# Pricing Page Specific Styles
--------------------------------------------------------------*/

/* Assumes page slug 'pricing' */

/* --- General Page Structure & Title --- */
.page-slug-pricing .entry-title { display: none; }
.page-slug-pricing .pricing-page-content { max-width: 1200px; margin: 40px auto 20px auto; padding: 0 20px; }
.page-slug-pricing .page-main-heading { text-align: center; font-size: 38px; font-weight: 600; color: #333; margin-bottom: 20px; }
.page-slug-pricing .page-main-heading sup { font-size: 0.5em; top: -1em; position: relative; }
.page-slug-pricing .pricing-intro { text-align: center; max-width: 700px; margin: 0 auto 40px auto; font-size: 18px; line-height: 1.7; color: #555; }

/* --- Launch Offer Banner --- */
.page-slug-pricing .launch-offer { background-color: #e7f5ff; color: #005f99; border: 1px solid #b3e0ff; padding: 15px 25px; border-radius: 8px; text-align: center; margin: 0 auto 50px auto; max-width: 800px; font-size: 16px; }
.page-slug-pricing .launch-offer p { margin: 0; padding: 0; }
.page-slug-pricing .launch-offer strong { font-weight: 600; }

/* --- Pricing Tiers Layout (Using CSS Grid) --- */
.page-slug-pricing .pricing-tiers {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 60px;
    align-items: start; /* Align grid items to the top */
}

/* New container for Enterprise column - acts as the grid item */
.page-slug-pricing .enterprise-column-container {
    /* No specific styling needed unless further adjustments are required */
}

/* Style for the wrapper around Tiers (Acts as grid item OR inside column container) */
.page-slug-pricing .tier-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    /* height: 100%; --- Removed this line --- */
}
.page-slug-pricing .tier-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Tier box styling (Inside wrapper) */
.page-slug-pricing .pricing-tier {
    padding: 35px 30px;
    text-align: center;
    position: relative; /* Positioning context for the badge */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow tier box content to fill wrapper height */
}

/* Keep hover effect on the wrapper */
.page-slug-pricing .pricing-tier:hover {
     transform: none;
     box-shadow: none;
}

.page-slug-pricing .recommended-badge {
    position: absolute;
    top: -15px; /* Position above the top edge of .pricing-tier */
    left: 50%;
    transform: translateX(-50%);
    background-color: #0099ff;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2; /* Ensure badge is above wrapper border */
}

.page-slug-pricing .pricing-tier h2 { font-size: 26px; font-weight: 600; margin-top: 15px; margin-bottom: 10px; color: #333; }
.page-slug-pricing .pricing-tier.recommended h2 { color: #0099ff; }
.page-slug-pricing .pricing-tier h2 sup { font-size: 0.6em; top: -0.8em; font-weight: normal; }
.page-slug-pricing .tier-description { font-size: 14px; color: #6c757d; margin-bottom: 25px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.page-slug-pricing .tier-price { margin-bottom: 30px; }
.page-slug-pricing .price-original { font-size: 16px; color: #6c757d; margin-right: 8px; }
.page-slug-pricing .price-amount { font-size: 42px; font-weight: 600; color: #333; line-height: 1; }
.page-slug-pricing .price-period { font-size: 14px; color: #6c757d; display: block; margin-top: 5px; }

/* Feature list grows to push CTA down */
.page-slug-pricing .tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0; /* Keep existing margin */
    text-align: left;
    flex-grow: 1; /* Still useful to consume extra space if parent is taller */
    min-height: 290px; /* <--- NOTE: CHANGE VALUE IF MORE ITEMS NEEDED */
}
.page-slug-pricing .tier-features li { margin-bottom: 12px; font-size: 15px; color: #555; display: flex; align-items: flex-start; line-height: 1.6; }
.page-slug-pricing .tier-features li .check-icon, .page-slug-pricing .tier-features li .cross-icon { margin-right: 10px; flex-shrink: 0; margin-top: 4px; line-height: 1; width: 16px; text-align: center; }
.page-slug-pricing .tier-features li .check-icon { color: #28a745; }
.page-slug-pricing .tier-features li .cross-icon { color: #dc3545; }
.page-slug-pricing .tier-features li .feature-text { flex-grow: 1; }
.page-slug-pricing .tier-features li strong { font-weight: 600; color: #333; }

/* CTA uses margin-top: auto */
.page-slug-pricing .tier-cta { margin-top: auto; }
.page-slug-pricing .tier-cta .button-main, .page-slug-pricing .tier-cta .button-outline { display: block; width: 100%; padding: 14px 20px; font-size: 16px; box-sizing: border-box; }


/* Styling for footnote - now positioned OUTSIDE the Enterprise box wrapper */
.page-slug-pricing .tier-footnote {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    /* Removed padding intended for inside the box */
    padding: 0;
    /* Added margin-top for space below the box */
    margin-top: 15px; /* Adjust this value as needed */
}

/* --- Token Packs Section --- */
.page-slug-pricing .token-packs { max-width: 900px; margin: 0 auto; text-align: center; padding: 20px 0; border-top: 1px solid #eee; }
.page-slug-pricing .token-packs h2 { font-size: 32px; margin-bottom: 15px; color: #333; }
.page-slug-pricing .token-packs > p { max-width: 600px; margin: 0 auto 40px auto; font-size: 17px; color: #555; line-height: 1.6; }
.page-slug-pricing .token-options { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; align-items: stretch; }
.page-slug-pricing .token-option { border: 1px solid #e9ecef; border-radius: 8px; padding: 25px; background: #fff; flex: 1; min-width: 250px; max-width: 300px; position: relative; display: flex; flex-direction: column; text-align: center; }
.page-slug-pricing .token-option .recommended-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background-color: #0099ff; color: white; padding: 5px 15px; border-radius: 15px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.page-slug-pricing .token-option h3 { font-size: 20px; margin-top: 10px; margin-bottom: 10px; color: #333; }
.page-slug-pricing .token-option .token-price { margin-bottom: 5px; }
.page-slug-pricing .token-option .token-price .price-original { font-size: 14px; color: #6c757d; }
.page-slug-pricing .token-option .token-price .price-amount { font-size: 32px; font-weight: 600; color: #333; }
.page-slug-pricing .token-option .token-subtext { font-size: 13px; color: #555; font-weight: 500; margin-bottom: 10px; }
.page-slug-pricing .token-option .token-pro-price { font-size: 14px; color: #6c757d; font-weight: 500; margin-bottom: 20px; }
.page-slug-pricing .token-option .button-main, .page-slug-pricing .token-option .button-outline { display: block; width: 100%; margin-top: auto; }
.page-slug-pricing .token-footer { font-size: 13px; color: #6c757d; margin-top: 30px; line-height: 1.6; }
.page-slug-pricing .token-footer strong { font-weight: 600; }


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .page-slug-pricing .page-main-heading { font-size: 32px; }
    .page-slug-pricing .pricing-intro p { font-size: 16px; }
    .page-slug-pricing .pricing-tiers { gap: 25px; }
    /* Grid items stack automatically */
    /* Ensure footnote doesn't have excessive width on mobile */
    .page-slug-pricing .tier-footnote { max-width: 90%; margin-left: auto; margin-right: auto; }
    .page-slug-pricing .token-packs h2 { font-size: 28px; }
    .page-slug-pricing .token-packs > p { font-size: 16px; }
    .page-slug-pricing .token-options { flex-direction: column; align-items: center; }
    .page-slug-pricing .token-option { width: 100%; max-width: 350px; }
}
@media (max-width: 480px) {
    .page-slug-pricing .page-main-heading { font-size: 28px; }
    .page-slug-pricing .pricing-tier h2 { font-size: 24px; }
    .page-slug-pricing .tier-price .price-amount { font-size: 36px; }
    .page-slug-pricing .token-packs h2 { font-size: 24px; }
}