/* Pricing Page Styles */

/* Override line-height */
body {
    line-height: 1.6;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.billing-option {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.billing-option.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--bg-section);
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--fuel);
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.annual::after {
    transform: translateX(28px);
}

.save-badge {
    background: rgba(50, 215, 75, 0.15);
    color: var(--fuel);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--rise);
    background: linear-gradient(180deg, rgba(191, 90, 242, 0.1) 0%, var(--bg-card) 30%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rise);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.price-container {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-annual {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.price-annual span {
    color: var(--fuel);
    font-weight: 600;
}

/* CTA Buttons (override page-styles.css) */
.cta-button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.cta-button:hover {
    text-decoration: none;
}

.cta-button.primary {
    background: var(--gradient);
    color: white;
}

.cta-button.primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.cta-button.secondary {
    background: var(--bg-section);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.cta-button.secondary:hover {
    background: var(--overlay-active, rgba(255, 255, 255, 0.1));
    opacity: 1;
    transform: none;
}

.cta-button.enterprise {
    background: transparent;
    border: 2px solid var(--rise);
    color: var(--rise);
}

.cta-button.enterprise:hover {
    background: rgba(191, 90, 242, 0.1);
    opacity: 1;
    transform: none;
}

/* Features List */
.features-list {
    list-style: none;
    flex: 1;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features-list li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.features-list li svg.check {
    color: var(--fuel);
}

.features-list li svg.x {
    color: var(--text-muted);
    opacity: 0.5;
}

.features-list li.disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

.feature-highlight {
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* Feature Comparison Table */
.comparison-section {
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.comparison-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-section);
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table td:first-child {
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--control-bg);
}

.table-check {
    color: var(--fuel);
}

.table-x {
    color: var(--text-muted);
    opacity: 0.4;
}

.table-soon {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--rise);
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.category-row td {
    background: var(--bg-section) !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pillars Section */
.pillars-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.pillars-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pillars-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.pillar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pillar-card h3 .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pillar-card.move h3 .dot { background: var(--move); }
.pillar-card.fuel h3 .dot { background: var(--fuel); }
.pillar-card.rest h3 .dot { background: var(--rest); }
.pillar-card.rise h3 .dot { background: var(--rise); }

.pillar-card ul {
    list-style: none;
}

.pillar-card li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
}

.pillar-card li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--rise);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ── Light Theme ── */
[data-theme="light"] .pricing-card {
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .pricing-card:hover {
    box-shadow: var(--shadow-card-hover);
}

[data-theme="light"] .comparison-table {
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .pillar-card {
    box-shadow: var(--shadow-card);
}

/* Footer override */
.footer {
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .comparison-section {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 600px;
    }

    .price {
        font-size: 2.5rem;
    }
}
