/**
 * Main CSS - Deferred Loading
 * Non-critical styles (sections, testimonials, FAQ, footer, etc.)
 * Matches current index.php design
 */

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--text-muted);
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 380px;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--error); }
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.toast-message { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    transition: var(--transition);
}
.toast-close:hover { color: var(--text-secondary); }

/* ============================================
   SECTION COMMON
   ============================================ */
.section { padding: 80px 24px; }
.section-gray { background: var(--section-alt-bg); }
.section-white { background: var(--bg-primary); }
.section-dark { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-dark .section-title { color: #F8FAFC; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }
.section-dark .section-subtitle { color: #94A3B8; }

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
}
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--brand-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon { font-size: 28px; }
.feature-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.feature-badge.free { background: var(--success-bg); color: #059669; }
.feature-badge.pro { background: var(--brand-bg); color: var(--brand-dark); }
.feature-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    transition: var(--transition);
}
.feature-link:hover { gap: 10px; }

/* ============================================
   HOW IT WORKS / STEPS
   ============================================ */
.steps-container { max-width: 1200px; margin: 0 auto; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
}
.step-card { text-align: center; }
.step-number {
    width: 64px;
    height: 64px;
    background: var(--brand-primary);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}
.step-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.step-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 280px; margin: 0 auto; }
@media (min-width: 900px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 32px;
        left: calc(16.66% + 32px);
        right: calc(16.66% + 32px);
        height: 2px;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-light), var(--brand-primary));
        z-index: 0;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-star { color: #FBBF24; font-size: 18px; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-light), var(--brand-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-inverse);
}
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.testimonial-handle { font-size: 13px; color: var(--text-tertiary); }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 1200px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    gap: 16px;
}
.faq-icon { font-size: 24px; color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--brand-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 24px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   BOTTOM CTA
   ============================================ */
.cta-section { padding: 100px 24px; text-align: center; }
.cta-content { max-width: 1200px; margin: 0 auto; }
.cta-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: white; margin-bottom: 16px; line-height: 1.2; }
.cta-subtitle { font-size: 16px; color: #94A3B8; margin-bottom: 32px; line-height: 1.7; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-buttons .btn-outline { border-color: #475569; color: white; }
.cta-buttons .btn-outline:hover { background: #334155; border-color: #64748B; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0F172A;
    padding: 60px 24px 40px;
    color: #F8FAFC;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: 24px; font-weight: 800; margin-bottom: 16px; color: #F8FAFC; }
.footer-brand span { color: var(--brand-primary); }
.footer-desc { font-size: 14px; color: #94A3B8; line-height: 1.7; max-width: 280px; }
.footer-title { font-size: 14px; font-weight: 700; color: #F8FAFC; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: #94A3B8; transition: var(--transition); }
.footer-links a:hover { color: #F8FAFC; }
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #334155;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-copyright { font-size: 13px; color: #64748B; }

/* ============================================
   PRICING (hidden by default)
   ============================================ */
.currency-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    background: var(--bg-tertiary);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.currency-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}
.currency-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}
.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.pricing-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 36px 28px;
    border: 2px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--brand-primary);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.15);
}
@media (min-width: 768px) { .pricing-card.featured { transform: scale(1.05); z-index: 1; } }
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}
.pricing-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.pricing-desc { font-size: 14px; color: var(--text-tertiary); margin-bottom: 20px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.pricing-currency { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.pricing-amount { font-family: var(--font-mono); font-size: 48px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.pricing-period { font-size: 16px; color: var(--text-tertiary); margin-left: 4px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-secondary); padding: 10px 0; }
.pricing-check { color: var(--success); font-size: 18px; flex-shrink: 0; }
.pricing-card .btn { width: 100%; }

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section { display: none; padding: 40px 24px 80px; max-width: 1200px; margin: 0 auto; }
.results-section.active { display: block; }
.result-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
