/* Research Page Styles */

/* Hero */
.research-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.research-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    max-width: 750px;
    margin: 0 auto 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.research-hero .subtitle {
    font-size: 18px;
    max-width: 600px;
}

/* Stats Bar */
.stats-bar {
    background: var(--primary);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* Findings */
.finding {
    padding: 80px 0;
}

.finding.alt-bg {
    background: var(--bg-alt);
}

.finding-header {
    text-align: center;
    margin-bottom: 48px;
}

.finding-number {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.finding-header h2 {
    font-size: 32px;
    letter-spacing: -0.01em;
}

.finding-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.finding-content.full-width {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.finding-stat {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    position: sticky;
    top: 100px;
}

.finding.alt-bg .finding-stat {
    background: white;
}

.big-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.big-label {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 8px;
}

.finding-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text);
}

.finding-text ul {
    margin: 16px 0 24px 20px;
}

.finding-text li {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text);
}

.finding-text blockquote {
    background: var(--bg-alt);
    padding: 24px;
    border-left: 4px solid var(--primary);
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.finding.alt-bg .finding-text blockquote {
    background: white;
}

.finding-text blockquote p {
    font-style: italic;
    margin-bottom: 8px;
}

.finding-text blockquote cite {
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
}

.finding-cta {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.finding-cta p {
    margin-bottom: 8px;
    font-size: 15px;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

.finding-highlight {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.finding-highlight p {
    margin: 0;
    font-size: 15px;
}

/* Data Sections */
.data-section {
    padding: 80px 0;
}

.data-section.alt-bg {
    background: var(--bg-alt);
}

.data-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}

/* Data Table */
.data-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.data-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    font-size: 15px;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background: #f0fdfa;
}

.highlight-row td {
    color: var(--primary);
}

.lowlight-row {
    background: #fef2f2;
}

.lowlight-row td {
    color: #991b1b;
}

/* Content Mix */
.content-mix {
    max-width: 600px;
    margin: 40px auto;
}

.mix-item {
    margin-bottom: 24px;
}

.mix-bar {
    height: 40px;
    background: var(--primary);
    border-radius: 6px;
    width: var(--percentage);
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    margin-bottom: 8px;
}

.mix-percent {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.mix-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.mix-desc {
    font-size: 13px;
    color: var(--text-light);
}

.mix-insight {
    background: white;
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 32px;
}

.mix-insight p {
    margin: 0;
    font-size: 15px;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.platform-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.platform-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.platform-stat {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.platform-card > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.platform-card ul {
    list-style: none;
}

.platform-card li {
    font-size: 14px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.platform-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.metric-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.metric-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.metric-content h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.metric-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Bottom Line */
.bottom-line {
    padding: 80px 0;
    background: var(--bg-alt);
}

.bottom-line h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 32px;
}

.bottom-line-content {
    max-width: 700px;
    margin: 0 auto;
}

.bottom-line .lead {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.takeaways {
    display: grid;
    gap: 16px;
}

.takeaway {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.takeaway-check {
    color: var(--success);
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.takeaway p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Mini CTA Banner */
.mini-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 32px 0;
}

.mini-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mini-cta-text h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 4px;
}

.mini-cta-text p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}

.mini-cta .cta-button {
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mini-cta .cta-button:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* Nav active state */
.main-nav a.active {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    .finding-content {
        grid-template-columns: 1fr;
    }

    .finding-stat {
        position: static;
        max-width: 280px;
        margin: 0 auto 32px;
    }

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

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

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .research-hero {
        padding: 120px 0 50px;
    }

    .research-hero .subtitle {
        font-size: 16px;
    }

    .finding,
    .data-section,
    .bottom-line {
        padding: 60px 0;
    }

    .big-number {
        font-size: 48px;
    }

    .finding-header h2,
    .data-section h2,
    .bottom-line h2 {
        font-size: 26px;
    }

    .mini-cta .container {
        flex-direction: column;
        text-align: center;
    }

    .mini-cta-text h3 {
        font-size: 18px;
    }

    .mini-cta .cta-button {
        width: 100%;
        max-width: 280px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .takeaway {
        padding: 16px;
    }

    .takeaway p {
        font-size: 15px;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 13px;
    }

    .research-hero h1 {
        font-size: 24px;
    }

    .research-hero .subtitle {
        font-size: 15px;
    }

    .big-number {
        font-size: 40px;
    }

    .finding-header h2,
    .data-section h2,
    .bottom-line h2 {
        font-size: 22px;
    }

    .finding-stat {
        padding: 24px 20px;
    }

    .platform-card {
        padding: 20px;
    }

    .platform-card h3 {
        font-size: 18px;
    }

    .platform-stat {
        font-size: 20px;
    }

    .mix-bar {
        height: 36px;
    }

    .mix-label {
        font-size: 14px;
    }

    .mini-cta {
        padding: 24px 0;
    }

    .mini-cta-text h3 {
        font-size: 16px;
    }

    .mini-cta-text p {
        font-size: 13px;
    }
}
