/* Whitepaper-specific styles - Clean Modern Design */
.whitepaper-body {
    line-height: 1.8;
    font-size: 17px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
}

.whitepaper {
    background: #ffffff;
    color: #1a1a1a;
}

.whitepaper-header {
    background: #ffffff;
    color: #1a1a1a;
    padding: 60px 0 40px;
    margin-top: 72px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.whitepaper-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
    color: #1a1a1a;
}

.whitepaper-header .subtitle {
    font-size: 20px;
    color: #4b5563;
    margin-bottom: 32px;
    font-weight: 400;
}

.paper-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    color: #9ca3af;
    font-size: 14px;
}

.paper-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.whitepaper-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

.whitepaper-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #1a1a1a;
    line-height: 1.4;
}

.whitepaper-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: #1a1a1a;
}

.whitepaper-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px 0;
    color: #374151;
}

.whitepaper-content p {
    margin-bottom: 20px;
    color: #374151;
    line-height: 1.8;
}

.whitepaper-content ul,
.whitepaper-content ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

.whitepaper-content li {
    margin-bottom: 10px;
    color: #374151;
    padding-left: 20px;
    position: relative;
}

.whitepaper-content li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.abstract {
    background: #fafafa;
    border-left: 3px solid #1a1a1a;
    padding: 24px;
    margin-bottom: 32px;
}

.abstract h2 {
    margin-top: 0;
    font-size: 20px;
    color: #1a1a1a;
    border: none;
    padding: 0;
}

.table-of-contents {
    background: #fafafa;
    border-left: 3px solid #1a1a1a;
    padding: 24px;
    margin-bottom: 32px;
}

.table-of-contents h2 {
    margin-top: 0;
    font-size: 18px;
    border: none;
    padding: 0;
}

.table-of-contents ol {
    margin: 0;
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.architecture-layers {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.layer-detail {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.layer-detail h4 {
    margin-top: 0;
    color: #1a1a1a;
}

.pattern-example {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #1a1a1a;
    border-radius: 0 8px 8px 0;
    padding: 24px;
    margin: 24px 0;
}

.pattern-example h4 {
    margin-top: 0;
    color: #1a1a1a;
}

.case-study-analysis {
    margin: 32px 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.analysis-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.analysis-item h4 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 16px;
}

.transition-plan {
    margin: 32px 0;
}

.transition-phase {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #10b981;
    border-radius: 0 8px 8px 0;
    padding: 24px;
    margin: 24px 0;
}

.transition-phase h4 {
    margin-top: 0;
    color: #1a1a1a;
}

.whitepaper-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 48px 0;
    text-align: center;
    margin-top: 64px;
}

.footer-cta h3 {
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #6b7280;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #1a1a1a;
}

.modal-content h2 {
    margin-bottom: 16px;
    color: #1a1a1a;
}

.modal-content p {
    margin-bottom: 32px;
    color: #6b7280;
}

.quick-signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.quick-signup-form input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.quick-signup-form input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.consent-quick {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
}

/* Print Styles for PDF Generation */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000000;
        background: #ffffff;
    }

    .nav,
    .paper-actions,
    .footer-cta,
    .modal {
        display: none !important;
    }

    .whitepaper-header {
        background: #000000 !important;
        -webkit-print-color-adjust: exact;
        page-break-after: always;
        margin-top: 0;
    }

    .whitepaper-content {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .section {
        page-break-inside: avoid;
        margin-bottom: 24pt;
    }

    h1 {
        page-break-after: avoid;
        font-size: 24pt;
    }

    h2 {
        page-break-after: avoid;
        font-size: 18pt;
        margin-top: 24pt;
        margin-bottom: 12pt;
    }

    h3 {
        page-break-after: avoid;
        font-size: 14pt;
        margin-top: 18pt;
        margin-bottom: 8pt;
    }

    .abstract,
    .table-of-contents,
    .pattern-example,
    .transition-phase {
        border: 1pt solid #000000;
        margin: 12pt 0;
        page-break-inside: avoid;
    }

    .analysis-grid {
        display: block;
    }

    .analysis-item {
        margin-bottom: 12pt;
        page-break-inside: avoid;
    }

    @page {
        margin: 1in;
        @top-center {
            content: "From Monoliths to Living Architecture - AccellerAIte";
        }
        @bottom-center {
            content: counter(page);
        }
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .whitepaper-header {
        padding: 100px 0 60px;
    }

    .whitepaper-header h1 {
        font-size: 36px;
    }

    .whitepaper-header .subtitle {
        font-size: 20px;
    }

    .paper-actions {
        flex-direction: column;
        align-items: center;
    }

    .whitepaper-content {
        padding: 60px 16px;
    }

    .whitepaper-content h2 {
        font-size: 28px;
    }

    .whitepaper-content h3 {
        font-size: 20px;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .paper-meta {
        flex-direction: column;
        gap: 8px;
    }

    .modal-content {
        margin: 20% auto;
        padding: 24px;
    }
}