/* Pricing-specific styles */

.pricing-hero {
    background: var(--gradient-hero);
    color: var(--text-on-dark);
    padding: 4rem 0 3rem;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pricing-hero h1 i {
    font-size: 2.25rem;
}

.pricing-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.pricing-section {
    padding: 4rem 0;
    background-color: var(--bg-page);
}

/* Free Tier */
.pricing-tier {
    max-width: 900px;
    margin: 0 auto 4rem;
    background: var(--bg-primary);  /* Semantic variable */
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tier-header {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.free-tier {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tier-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price-display {
    margin: 1.5rem 0;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
}

.tier-description {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0;
}

.tier-content {
    padding: 2rem;
}

.features-list .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list .feature-item:last-child {
    border-bottom: none;
}

.features-list .feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.features-list .feature-item.included i {
    color: #4CAF50;
}

.features-list .feature-item span {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Premium Modules */
.premium-modules {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.module-card {
    background: var(--bg-primary);  /* Semantic variable */
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.module-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.weather-icon {
    background: linear-gradient(135deg, #35B7C8 0%, #2A9BB7 100%);
    color: white;
}

.astronomy-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
}

.compass-icon {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.module-card h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);  /* Semantic variable */
    margin-bottom: 1rem;
}

.module-price {
    text-align: center;
    margin: 1.5rem 0;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);  /* Semantic variable */
    vertical-align: super;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
}

.module-tagline {
    text-align: center;
    color: var(--text-secondary);  /* Semantic variable */
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.module-features {
    margin-top: 2rem;
}

.module-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);  /* Semantic variable */
}

.module-features .feature-item i {
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Bundle Section */
.bundle-section {
    margin: 5rem 0;
}

.bundle-card {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-primary);  /* Semantic variable */
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    border: 3px solid var(--color-primary);
}

.bundle-card.popular {
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: var(--primary-color);
    }
    50% {
        border-color: #35B7C8;
    }
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 2rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1D294A;
    padding: 0.75rem 2rem;
    border-radius: 0 0 1rem 1rem;
    font-weight: 800;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bundle-header {
    background: linear-gradient(135deg, #1D294A 0%, #2A3E74 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.bundle-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.bundle-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.bundle-tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
}

.bundle-pricing {
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(53, 183, 200, 0.05), transparent);
}

.price-comparison {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.individual-price,
.bundle-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);  /* Semantic variable */
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.individual-price .label,
.bundle-price .label {
    font-size: 1rem;
    color: var(--text-secondary);  /* Semantic variable */
    font-weight: 600;
}

.individual-price .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);  /* Semantic variable */
    text-decoration: line-through;
}

.bundle-price .price-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bundle-price .price-currency {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.bundle-price .price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.savings-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bundle-features {
    padding: 3rem 2rem;
}

.bundle-features > h3 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-column h4 {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-column li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
}

.feature-column li::before {
    content: "?";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.bundle-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.bundle-card .btn-large {
    margin: 2rem auto 0;
    display: block;
    width: fit-content;
}

/* Comparison Table */
.comparison-section {
    margin: 5rem 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    background: var(--bg-primary);  /* Semantic variable */
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table thead {
    background: var(--gradient-hero);
    color: var(--text-on-dark);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table th.highlight-col {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2A9BB7 100%);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-default);  /* Semantic variable */
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);  /* Semantic variable */
}

.comparison-table td {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);  /* Semantic variable */
    border-right: 1px solid var(--border-default);  /* Semantic variable */
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);  /* Semantic variable */
}

.comparison-table td.highlight-col {
    background: rgba(53, 183, 200, 0.05);
    font-weight: 600;
}

.category-row td {
    background: var(--bg-secondary);  /* Semantic variable */
    font-weight: 700;
    color: var(--color-primary);
    padding: 0.75rem 1rem;
}

.price-row {
    background: var(--bg-secondary);  /* Semantic variable */
    font-weight: 700;
}

.price-row td {
    padding: 1.5rem 1rem;
    font-size: 1.125rem;
}

.text-success {
    color: #4CAF50;
}

.text-muted {
    color: #ccc;
}

/* Pricing FAQ */
.pricing-faq {
    margin: 5rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-card {
    background: var(--bg-primary);  /* Semantic variable */
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.faq-card h3 {
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-card p {
    color: var(--text-secondary);  /* Semantic variable */
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1D294A 0%, #2A3E74 50%, #35B7C8 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Active nav link */
.nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .feature-columns {
        grid-template-columns: 1fr;
    }

    .bundle-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .bundle-header {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .bundle-header h2 {
        font-size: 1.75rem;
    }

    .popular-badge {
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.5rem 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 3rem 0 2rem;
    }

    .pricing-hero h1 {
        font-size: 1.5rem;
    }

    .tier-header {
        padding: 2rem 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .tier-content {
        padding: 1.5rem;
    }

    .module-card {
        padding: 1.5rem;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .bundle-pricing {
        padding: 1.5rem;
    }

    .bundle-features {
        padding: 2rem 1.5rem;
    }

    .bundle-benefits {
        padding: 1.5rem;
    }
}
