/* ============================================
   ThinkForge Pricing Page Styles
   ============================================ */

/* ============================================
   PROMOTION BANNER
   ============================================ */

.promo-banner {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gradient-end));
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.promo-text {
    font-weight: 500;
    font-size: 14px;
}

.promo-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 4px;
}

.promo-close:hover {
    opacity: 1;
}

/* ============================================
   PRICING HERO
   ============================================ */

.pricing-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--bg-secondary);
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    padding: 8px 20px;
    border-radius: 30px;
}

.billing-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--brand-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.savings-badge {
    background: var(--color-success);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* ============================================
   PROMO CODE SECTION
   ============================================ */

.promo-code-section {
    background: var(--bg-secondary);
    padding: 0 20px 40px;
}

.promo-code-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.promo-code-input {
    display: flex;
    gap: 8px;
    max-width: 360px;
    width: 100%;
}

.promo-code-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.promo-code-input input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.promo-apply-btn {
    padding: 12px 24px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.promo-apply-btn:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.promo-status {
    font-size: 13px;
    font-weight: 500;
}

.promo-status.success {
    color: var(--color-success);
}

.promo-status.error {
    color: var(--color-error);
}

/* ============================================
   PRICING CARDS
   ============================================ */

.pricing-cards-section {
    padding: 60px 20px;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gradient-start), var(--brand-gradient-end));
    border-radius: 16px 16px 0 0;
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-product {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
}

.card-price {
    text-align: center;
    margin-bottom: 16px;
}

.price-original {
    font-size: 1rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-amount.discounted {
    color: var(--color-success);
}

.price-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.price-note {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.5;
}

.price-savings {
    display: inline-block;
    background: var(--color-success-bg);
    color: var(--color-success-text);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.plan-description {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 40px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary) !important;
    color: white;
    transform: translateY(-1px);
}

/* Reassurance Block */
.pricing-reassurance {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.reassurance-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.reassurance-icon {
    stroke: var(--color-success);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .reassurance-items {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .pricing-reassurance {
        padding: 24px 20px;
    }
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--bg-tertiary);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li.not-included {
    color: var(--text-tertiary);
}

.feature-list li.highlighted .feature-name {
    font-weight: 600;
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon.check {
    stroke: var(--color-success);
}

.feature-icon.x {
    stroke: var(--text-tertiary);
}

.feature-name {
    flex: 1;
}

.feature-value {
    font-weight: 600;
    color: var(--brand-primary);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-section {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-sm);
}

.comparison-table thead {
    background: var(--bg-tertiary);
}

.comparison-table th {
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table th.feature-column {
    text-align: left;
    width: 200px;
}

.comparison-table th.popular {
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    color: white;
}

.plan-header-name {
    display: block;
    font-size: 1rem;
}

.plan-header-product {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.comparison-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--bg-tertiary);
    color: var(--text-primary);
}

.comparison-table td.feature-name-cell {
    text-align: left;
    font-weight: 500;
}

.comparison-table td.popular {
    background: rgba(59, 130, 246, 0.05);
}

.comparison-table tr.category-row td {
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-align: left;
    padding: 12px 16px;
}

.feature-no {
    color: var(--text-tertiary);
}

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

.feature-check {
    stroke: var(--color-success);
}

.feature-x {
    stroke: var(--text-tertiary);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--card-bg);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-icon {
    stroke: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end));
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 12px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.cta-section .btn {
    background: white;
    color: var(--brand-primary);
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-sm);
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }

    .comparison-section {
        padding: 60px 10px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================
   DESKTOP COMING SOON CARD (in grid)
   ============================================ */

.pricing-card.desktop-coming {
    border-style: dashed;
    opacity: 0.9;
}

.coming-soon-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}
