/* ===========================
   Pricing Page - Fully Responsive
   =========================== */

:root {
    --pricing-gradient-start: #667eea;
    --pricing-gradient-end: #764ba2;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Pricing Hero Section
   =========================== */
.pricing-hero {
    background: linear-gradient(135deg, var(--pricing-gradient-start), var(--pricing-gradient-end));
    color: white;
    padding: clamp(60px, 10vw, 100px) 20px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.2;
}

.pricing-hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===========================
   Pricing Tiers
   =========================== */
.pricing-tiers {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: var(--light-gray);
}

.tiers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(30px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .tiers-container {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Pricing Tier Card
   =========================== */
.pricing-tier {
    background: white;
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(30px, 5vw, 40px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-tier:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.popular-tier {
    border: 3px solid var(--electric-blue);
    transform: scale(1.05);
}

@media (max-width: 960px) {
    .popular-tier {
        transform: scale(1);
    }
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4285f4, #007bff);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: clamp(0.813rem, 2vw, 0.875rem);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* ===========================
   Tier Header
   =========================== */
.tier-header {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 30px);
    padding-bottom: clamp(20px, 4vw, 30px);
    border-bottom: 2px solid var(--light-gray);
}

.tier-name {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.tier-price {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--electric-blue);
    line-height: 1;
}

.tier-period {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--dark-gray);
    margin-top: 8px;
}

/* ===========================
   Tier Description & Features
   =========================== */
.tier-description {
    color: var(--dark-gray);
    margin-bottom: clamp(20px, 4vw, 30px);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
    flex-grow: 1;
}

.tier-features {
    margin-bottom: clamp(25px, 4vw, 30px);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--navy);
    line-height: 1.5;
}

.feature-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ===========================
   Tier CTA Buttons
   =========================== */
.tier-cta {
    width: 100%;
    padding: clamp(12px, 3vw, 16px) clamp(20px, 4vw, 32px);
    border-radius: 8px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: auto;
}

.primary-cta {
    background: linear-gradient(135deg, #4285f4, #007bff);
    color: white;
}

.primary-cta:hover {
    background: linear-gradient(135deg, #007bff, #00b4d8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

.secondary-cta {
    background: white;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.secondary-cta:hover {
    background: var(--electric-blue);
    color: white;
}

/* ===========================
   Demo Section
   =========================== */
.demo-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: white;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
    }
}

.demo-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--navy);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.demo-content p {
    color: var(--dark-gray);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.6;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.demo-content ul {
    list-style: none;
    padding: 0;
}

.demo-content ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    color: var(--dark-gray);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.demo-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===========================
   Demo Upload Box
   =========================== */
.demo-box {
    background: var(--light-gray);
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(30px, 5vw, 40px);
    text-align: center;
}

.upload-area {
    background: white;
    border: 3px dashed var(--dark-gray);
    border-radius: 12px;
    padding: clamp(40px, 6vw, 60px) clamp(20px, 4vw, 30px);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--electric-blue);
    background: rgba(59, 130, 246, 0.02);
}

.upload-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    margin-bottom: 12px;
    color: var(--navy);
}

.upload-area p {
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ===========================
   Feature Comparison Table
   =========================== */
.feature-comparison {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: var(--light-gray);
}

.feature-comparison h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--navy);
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 40px);
}

.comparison-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: clamp(12px, 2vw, 16px);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

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

.comparison-table th {
    padding: clamp(16px, 3vw, 20px);
    text-align: left;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.comparison-table td {
    padding: clamp(16px, 3vw, 20px);
    border-bottom: 1px solid var(--light-gray);
    font-size: clamp(0.875rem, 2vw, 0.95rem);
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

.check-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Mobile table responsiveness */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .comparison-table thead {
        display: none;
    }
    
    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }
    
    .comparison-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--light-gray);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .comparison-table td {
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    
    .comparison-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        font-weight: 600;
        color: var(--navy);
    }
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: white;
}

.faq-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--navy);
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 40px);
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 20px;
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: clamp(18px, 4vw, 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    transition: background 0.3s ease;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.05);
}

.faq-question span:last-child {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--electric-blue);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-answer.active {
    max-height: 500px;
    padding: clamp(18px, 4vw, 24px);
}

.faq-answer p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 480px) {
    .pricing-tier {
        padding: 24px;
    }
    
    .tier-features {
        margin-bottom: 20px;
    }
    
    .feature-item {
        margin-bottom: 12px;
    }
    
    .demo-box {
        padding: 24px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .pricing-hero,
    .demo-section,
    .faq-section {
        break-inside: avoid;
    }
    
    .pricing-tier {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .tier-cta {
        display: none;
    }
}
