/* About Page Specific Styles */

/* Use the same CSS variables as index.css */
:root {
    --bg-dark: #f5f7fa;
    --bg-card: #ffffff;
    --accent-primary: #005eb8;
    --accent-secondary: #00a3e0;
    --text-primary: #2c3e50;
    --text-secondary: black;
    --gray-light: #e9ecef;
    --gray-medium: #adb5bd;
    --gray-dark: #495057;
    --error: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
    --border: rgba(44, 62, 80, 0.12);
}

.about-section {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

/* Hero Section */
.about-hero {
    text-align: center;
    margin-bottom: 1rem;
}

    .about-hero h1 {
        position: absolute;
        top: 0;
        left:0;
        width: 100%;
        background: #ECF6FC;
        color: #0F2243; 
        font-size: 3rem;
        font-weight: 900;
        line-height: 100px;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
        letter-spacing: -0.02em;
    }

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    margin-top: 65px;
    margin-bottom: 40px;
    color: white;
}

/* About Cards */
.about-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .about-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--accent-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .about-card:hover::before {
        opacity: 1;
    }

    .about-card:hover {
        border-color: rgba(0, 94, 184, 0.3);
        transform: translateY(-4px);
        box-shadow: 0 10px 40px rgba(0, 94, 184, 0.1);
    }

.highlight-card {
    background: white;
    border-color: var(--accent-primary);
}

    .highlight-card::before {
        opacity: 1;
    }

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s ease infinite;
}

.about-card h2 {
    letter-spacing: -2px;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: inline;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

    .about-card p:last-child {
        margin-bottom: 0;
    }

.about-card strong {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Error Messages Intro */
.error-messages-intro {
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.08) 0%, rgba(0, 163, 224, 0.08) 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    margin-bottom: 2rem !important;
    text-align: left !important;
}

/* Problems Grid */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.problem-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

    .problem-item:hover {
        background: rgba(0, 94, 184, 0.03);
        border-color: var(--accent-secondary);
        transform: translateY(-4px);
    }

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.problem-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    margin: 0;
    padding: 0 0.25rem;
}

/* ===== EXPANDABLE PROBLEM ITEMS (Error Messages) ===== */
.expandable-problem {
    cursor: pointer;
    position: relative;
}

    .expandable-problem summary {
        list-style: none;
        cursor: pointer;
    }

        /* Remove ALL default markers */
        .expandable-problem summary::-webkit-details-marker,
        .expandable-problem summary::marker {
            display: none;
            content: '';
        }

    .expandable-problem > summary {
        list-style-type: none;
    }

.problem-summary {
    display: block;
}

    .problem-summary .problem-icon,
    .problem-summary h3,
    .problem-summary p {
        pointer-events: none;
    }

/* Expand indicator */
.expand-indicator {
    display: block;
    margin-top: 1.5rem;
    padding-top: 1rem;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.expandable-problem:hover .expand-indicator {
    color: var(--accent-secondary);
}

.expandable-problem[open] .expand-indicator {
    display: none;
}

/* Error Messages List */
.error-messages-list {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 2px solid var(--accent-primary);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-messages-list h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .error-messages-list h4::before {
        content: '🔍';
        font-size: 1.1rem;
    }

.error-messages-list ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-messages-list li {
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.03) 0%, rgba(0, 163, 224, 0.03) 100%);
    border: 1px solid rgba(0, 94, 184, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .error-messages-list li:hover {
        background: linear-gradient(135deg, rgba(0, 94, 184, 0.06) 0%, rgba(0, 163, 224, 0.06) 100%);
        border-color: rgba(0, 94, 184, 0.3);
        transform: translateX(4px);
    }

.error-messages-list code {
    display: block;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-word;
}

/* Open state styling */
.expandable-problem[open] {
    background: rgba(0, 94, 184, 0.02);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(0, 94, 184, 0.12);
    padding-bottom: 2.5rem;
}

    .expandable-problem[open]:hover {
        transform: none;
    }

.comparison-intro {
    font-size: 1.15rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.scanner-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tier-card {
    background: white;
    border: 3px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

    .tier-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 94, 184, 0.15);
    }

.tier-basic {
    border-color: var(--success);
}

    .tier-basic:hover {
        border-color: var(--success);
        box-shadow: 0 20px 50px rgba(40, 167, 69, 0.2);
    }

.tier-advanced {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.03) 0%, rgba(0, 163, 224, 0.03) 100%);
}

    .tier-advanced:hover {
        border-color: var(--accent-secondary);
        box-shadow: 0 20px 50px rgba(0, 94, 184, 0.25);
    }

.tier-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge-coming {
    background: var(--accent-primary);
}

.tier-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.tier-basic .tier-price {
    color: var(--success);
}

.tier-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.tier-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

    .tier-features li {
        padding: 0.6rem 0;
        color: var(--text-secondary);
        font-size: 0.95rem;
        line-height: 1.6;
        display: flex;
        align-items: flex-start;
    }

        .tier-features li::before {
            content: '';
            margin-right: 0.5rem;
        }

.tier-stats {
    background: rgba(0, 94, 184, 0.08);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.tier-card .btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1rem;
    text-align: center;
}

.btn-secondary {
    background: var(--accent-primary);
    color: white;
    border: none;
}

    .btn-secondary:hover {
        background: var(--accent-secondary);
        transform: translateY(-2px);
    }

/* Comparison Table */
.comparison-table-wrapper {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--border);
}

.comparison-table-title {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comparison-table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

    .comparison-table thead {
        background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
        color: white;
    }

    .comparison-table th {
        padding: 1.2rem 1rem;
        text-align: left;
        font-weight: 700;
        font-size: 1rem;
    }

    .comparison-table .feature-column {
        min-width: 250px;
    }

    .comparison-table .basic-column,
    .comparison-table .advanced-column {
        text-align: center;
        min-width: 180px;
    }

    .comparison-table tbody tr {
        border-bottom: 1px solid var(--gray-light);
        transition: background 0.2s ease;
    }

        .comparison-table tbody tr:hover:not(.category-header) {
            background: rgba(0, 94, 184, 0.03);
        }

    .comparison-table td {
        padding: 1rem;
    }

.category-header td {
    background: rgba(0, 94, 184, 0.08);
    font-weight: 700;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-size: 1rem;
}

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
    text-align: center;
}

.comparison-table .check-advanced {
    color: var(--accent-primary);
    font-weight: 700;
    text-align: center;
}

.comparison-table .cross {
    color: var(--gray-medium);
    text-align: center;
    opacity: 0.6;
}

.highlight-row {
    background: rgba(0, 94, 184, 0.02);
}

    .highlight-row:hover {
        background: rgba(0, 94, 184, 0.06) !important;
    }

/* Waitlist Modal */
.waitlist-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.waitlist-modal-content {
    background-color: white;
    margin: auto;
    padding: 3rem;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: absolute;
}

.waitlist-close {
    color: var(--gray-medium);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.waitlist-modal-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

.waitlist-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .waitlist-form input[type="email"] {
        padding: 1rem;
        border: 2px solid var(--border);
        border-radius: 10px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

        .waitlist-form input[type="email"]:focus {
            outline: none;
            border-color: var(--accent-primary);
        }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
}

    .checkbox-label input[type="checkbox"] {
        margin-top: 0.2rem;
        cursor: pointer;
        width: 18px;
        height: 18px;
    }

.waitlist-form button {
    margin-top: 0.5rem;
}

/* Features Section */
.features-section {
    margin: 3rem 0;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent-primary);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .feature-card:hover::before {
        transform: scaleX(1);
    }

    .feature-card:hover {
        border-color: var(--accent-primary);
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 94, 184, 0.15);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
    padding: 0 0.5rem;
}

/* ===== FAQ SECTION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: var(--accent-secondary);
    }

    .faq-item[open] {
        border-color: var(--accent-primary);
        box-shadow: 0 4px 20px rgba(0, 94, 184, 0.1);
    }

.faq-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    list-style: none;
    transition: background 0.15s ease;
}

    .faq-summary::-webkit-details-marker,
    .faq-summary::marker {
        display: none;
        content: '';
    }

    .faq-summary:hover {
        background: rgba(0, 94, 184, 0.03);
    }

.faq-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: rgba(0, 94, 184, 0.08);
}

.faq-question-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-chevron {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--gray-medium);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 4.35rem;
    animation: slideDown 0.3s ease;
}

    .faq-answer p {
        font-size: 1rem;
        line-height: 1.8;
        color: var(--text-secondary);
        margin: 0;
        padding: 0;
    }

    .faq-answer a {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: 600;
    }

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

/* CTA Section */
.cta-section {
    background: white;
    border: 2px solid var(--accent-primary);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--accent-primary);
    }

    .cta-section h2 {
        font-size: 2.5rem;
        font-weight: 700;
        font-family: 'Montserrat', sans-serif;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .cta-section p {
        font-size: 1.2rem;
        color: var(--text-secondary);
        margin-bottom: 2rem;
        line-height: 2;
        padding: 0 1rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-section .btn {
        margin-top: 0.5rem;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-hero {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }

        .about-hero h1 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

    .hero-subtitle {
        font-size: 1rem;
        text-align: left;
    }

    .about-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }

        .about-card h2 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .about-card p {
            font-size: 1rem;
            text-align: left;
            padding: 0;
        }

    .card-icon {
        font-size: 2.5rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .problem-item {
        padding: 1.5rem;
    }

        .problem-item p {
            text-align: left;
            padding: 0;
        }

    /* Error messages responsive */
    .error-messages-intro {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .error-messages-list {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

        .error-messages-list ul {
            padding-left: 0.5rem;
            gap: 0.875rem;
        }

        .error-messages-list code {
            font-size: 0.8rem;
        }

    .expand-indicator {
        font-size: 0.9rem;
        margin-top: 1.25rem;
    }

    .expandable-problem[open] {
        padding-bottom: 2rem;
    }

    .scanner-tiers {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-intro {
        text-align: left;
        padding: 0;
    }

    .comparison-table-title {
        font-size: 1.4rem;
    }

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

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

    .waitlist-modal-content {
        padding: 2rem;
        width: 95%;
    }

        .waitlist-modal-content h3 {
            font-size: 1.5rem;
        }

    .features-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

        .feature-card p {
            text-align: left;
            padding: 0;
        }

    .cta-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0 1rem;
    }

        .cta-section h2 {
            font-size: 1.75rem;
        }

        .cta-section p {
            font-size: 1rem;
            text-align: left;
            padding: 0;
        }

    /* FAQ responsive */
    .faq-answer {
        padding-left: 1.5rem;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-card h2 {
        font-size: 1.3rem;
    }

    .tier-card h3 {
        font-size: 1.5rem;
    }

    .tier-price {
        font-size: 2rem;
    }

    .features-title {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .faq-summary {
        padding: 1rem 1.15rem;
        gap: 0.65rem;
    }

    .faq-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .faq-question-text {
        font-size: 0.9rem;
    }

    .comparison-table .feature-column {
        min-width: 200px;
    }

    /* Error messages extra small */
    .error-messages-list code {
        font-size: 0.75rem;
    }

    .error-messages-list h4 {
        font-size: 0.9rem;
    }
}

/* Print styles - ensure error messages are visible */
@media print {
    .expandable-problem[open] .error-messages-list,
    .error-messages-list {
        display: block !important;
    }

    .expand-indicator {
        display: none !important;
    }

    .faq-item[open] .faq-answer {
        display: block !important;
    }

    .faq-chevron {
        display: none !important;
    }
}
