/* Pricing Page Styles */
/* Note: Uses .page-hero and .page-cta from styles.css for shared patterns */

/* Main Pricing Card */
.pricing-section {
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
}

.pricing-card-main {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px -10px var(--accent-glow);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-amount .price {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.pricing-amount .period {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.pricing-features svg {
    color: #22c55e;
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
}

/* Model Costs Section */
.model-costs-section {
    padding: 3rem 0;
}

.model-costs-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.model-costs-section .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.model-costs-section .section-header p {
    color: var(--text-secondary);
}

.model-costs-table-wrapper {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.model-costs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
}

.model-costs-table th,
.model-costs-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.model-costs-table thead {
    background: rgba(99, 102, 241, 0.1);
}

.model-costs-table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-costs-table tbody tr {
    border-top: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.model-costs-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.model-costs-table td {
    color: var(--text-secondary);
}

/* Inherits code styling from styles.css */

.cost-highlight {
    color: #22c55e;
    font-weight: 600;
}

.model-costs-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

/* Cost Example Section */
.cost-example-section {
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.cost-example-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.cost-example-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #22c55e;
}

.cost-example-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cost-example-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cost-example-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cost-big {
    font-size: 3rem;
    font-weight: 800;
    color: #22c55e;
}

.cost-per {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.cost-example-model {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* cost-example-model code inherits from styles.css */

/* FAQ Section */
.pricing-faq-section {
    padding: 3rem 0;
}

.pricing-faq-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-faq-section .section-header h2 {
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-item summary:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* faq-item code inherits from styles.css */

/* CTA section uses .page-cta from styles.css */

/* Responsive */
@media (max-width: 768px) {
    .pricing-amount .price {
        font-size: 3rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    /* Responsive table */
    .model-costs-table thead {
        display: none;
    }

    .model-costs-table,
    .model-costs-table tbody,
    .model-costs-table tr,
    .model-costs-table td {
        display: block;
    }

    .model-costs-table tr {
        padding: 1rem;
        border-top: 1px solid var(--glass-border);
    }

    .model-costs-table tr:first-child {
        border-top: none;
    }

    .model-costs-table td {
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
    }

    .model-costs-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.875rem;
    }

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

    .cost-big {
        font-size: 2.5rem;
    }

    .cost-example-card {
        padding: 2rem;
    }
}
