/* ============================================================
   data-analysis.css — extracted from data-analysis.html
   ============================================================ */

:root {
            --brand: #991B2D;
            --brand-dark: #6E1320;
            --brand-tint: #FCEFEF;
            --ink: #1A1A1A;
            --ink-2: #4B4F58;
            --ink-3: #8A8A8A;
            --line: #E8E6E1;
            --line-2: #DCD9D1;
            --paper: #FFFFFF;
            --paper-2: #FAF8F4;
            --paper-3: #F4F1EA;
            --night: #1A1416;
            --night-2: #2A2125;
            --serif: 'Spectral', Georgia, 'Times New Roman', serif;
            --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        /* All page styles are scoped under .aipo-page wrapper to avoid bleeding into layouts/main.php navbar/footer. */
        .aipo-page,
        .aipo-page * { box-sizing: border-box; }
        .aipo-page {
            font-family: var(--sans);
            color: var(--ink);
            background: var(--paper);
            line-height: 1.7;
            font-weight: 400;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        .aipo-page h1, .aipo-page h2, .aipo-page h3, .aipo-page h4, .aipo-page h5, .aipo-page h6,
        .aipo-page p, .aipo-page ul, .aipo-page ol, .aipo-page figure, .aipo-page blockquote { margin: 0; padding: 0; }

        .aipo-page .container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
        .aipo-page .container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

        /* ============ Eyebrow ============ */
        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            color: var(--brand);
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            margin-bottom: 28px;
        }
        .eyebrow::before {
            content: '';
            width: 28px;
            height: 1px;
            background: var(--brand);
        }
        .eyebrow.dark { color: rgba(255,255,255,0.6); }
        .eyebrow.dark::before { background: rgba(255,255,255,0.4); }

        /* ============ Hero ============ */
        .hero {
            padding: 130px 0 110px;
            background: var(--paper);
        }
        .hero h1 {
            font-family: var(--serif);
            font-size: clamp(40px, 6vw, 70px);
            font-weight: 700;
            line-height: 1.18;
            letter-spacing: -0.01em;
            margin-bottom: 36px;
            color: var(--ink);
        }
        .hero h1 em { font-style: normal; color: var(--brand); }
        .hero .lead {
            font-size: clamp(17px, 1.4vw, 20px);
            color: var(--ink-2);
            max-width: 740px;
            line-height: 1.75;
            margin-bottom: 48px;
        }
        .cta-row {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 18px 32px;
            background: var(--brand);
            color: white;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            border-radius: 4px;
            transition: all .25s;
        }
        .btn-primary:hover {
            background: var(--brand-dark);
            transform: translateY(-1px);
        }
        .btn-primary .arrow { transition: transform .25s; }
        .btn-primary:hover .arrow { transform: translateX(4px); }
        .btn-ghost {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 17px 28px;
            background: transparent;
            color: var(--ink);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            border: 1px solid var(--line-2);
            border-radius: 4px;
            transition: all .25s;
        }
        .btn-ghost:hover { border-color: var(--ink); }

        /* ============ Section base ============ */
        section.block {
            padding: 110px 0;
            border-top: 1px solid var(--line);
        }
        section.block.alt { background: var(--paper-2); }
        section.block.alt-warm { background: var(--paper-3); }

        h2.section-title {
            font-family: var(--serif);
            font-size: clamp(30px, 3.4vw, 44px);
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.005em;
            color: var(--ink);
            margin-bottom: 18px;
        }
        h2.section-title.dark { color: white; }
        .section-sub {
            font-size: 17px;
            color: var(--ink-2);
            margin-bottom: 56px;
            max-width: 720px;
            line-height: 1.7;
        }
        .section-sub.dark { color: rgba(255,255,255,0.7); }

        /* ============ Section 2: Thesis (vs 04) ============ */
        .vs-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            border: 1px solid var(--line);
            margin: 36px 0;
        }
        .vs-side {
            padding: 36px 32px;
            background: var(--paper);
        }
        .vs-side:first-child {
            border-right: 1px solid var(--line);
            background: var(--paper-2);
        }
        .vs-side .vs-tag {
            font-family: var(--serif);
            font-size: 12px;
            color: var(--ink-3);
            letter-spacing: 0.16em;
            margin-bottom: 12px;
            font-weight: 500;
            text-transform: uppercase;
        }
        .vs-side:last-child .vs-tag { color: var(--brand); }
        .vs-side h3 {
            font-family: var(--serif);
            font-size: 22px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 16px;
            line-height: 1.4;
        }
        .vs-side .question {
            font-family: var(--serif);
            font-size: 17px;
            font-style: italic;
            color: var(--brand);
            margin-bottom: 18px;
        }
        .vs-side ul {
            list-style: none;
            padding-left: 0;
        }
        .vs-side ul li {
            font-size: 14px;
            color: var(--ink-2);
            padding: 6px 0 6px 22px;
            position: relative;
            line-height: 1.7;
        }
        .vs-side ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 14px;
            width: 12px;
            height: 1px;
            background: var(--brand);
        }
        .thesis-quote {
            font-family: var(--serif);
            font-size: 24px;
            line-height: 1.6;
            color: var(--ink);
            text-align: center;
            margin: 40px 0 0;
            font-weight: 500;
            padding: 0 20px;
        }
        .thesis-quote em { font-style: normal; color: var(--brand); }

        /* ============ Section 3: Three problems ============ */
        .problem-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
        }
        .problem-card {
            background: var(--paper);
            border: 1px solid var(--line);
            border-top: 3px solid var(--brand);
            padding: 36px 32px;
            transition: transform .3s, box-shadow .3s;
        }
        .problem-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 40px rgba(153,27,45,0.08);
        }
        .problem-num {
            font-family: var(--serif);
            font-size: 13px;
            color: var(--brand);
            letter-spacing: 0.16em;
            margin-bottom: 16px;
            font-weight: 500;
        }
        .problem-card h3 {
            font-family: var(--serif);
            font-size: 22px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 16px;
            line-height: 1.4;
        }
        .problem-card p {
            font-size: 14.5px;
            line-height: 1.75;
            color: var(--ink-2);
        }
        .problem-card .quote-q {
            font-family: var(--serif);
            font-size: 14.5px;
            color: var(--brand);
            font-style: italic;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px dashed var(--line-2);
        }

        /* ============ Section 4: Five layers ============ */
        .layer-list {
            display: flex;
            flex-direction: column;
            gap: 0;
            border-top: 1px solid var(--line);
        }
        .layer-item {
            display: grid;
            grid-template-columns: 100px 1fr;
            gap: 36px;
            padding: 36px 0;
            border-bottom: 1px solid var(--line);
            align-items: start;
        }
        .layer-num {
            font-family: var(--serif);
            font-size: 48px;
            font-weight: 900;
            color: var(--brand);
            line-height: 1;
        }
        .layer-content h3 {
            font-family: var(--serif);
            font-size: 22px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 8px;
        }
        .layer-tagline {
            font-family: var(--serif);
            font-size: 14px;
            color: var(--ink-3);
            font-style: italic;
            margin-bottom: 14px;
        }
        .layer-content p {
            font-size: 15.5px;
            line-height: 1.75;
            color: var(--ink-2);
        }

        /* ============ Section 5: Benchmark Library (Featured DARK) ============ */
        .featured-benchmark {
            background: var(--night);
            color: white;
            padding: 130px 0;
            position: relative;
            overflow: hidden;
        }
        .featured-benchmark::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image:
                radial-gradient(circle at 20% 30%, rgba(153,27,45,0.18) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(153,27,45,0.12) 0%, transparent 50%);
            pointer-events: none;
        }
        .featured-benchmark > .container { position: relative; z-index: 1; }
        .featured-benchmark .section-sub { color: rgba(255,255,255,0.72); margin-bottom: 50px; max-width: 760px; }

        .percentile-svg-wrap {
            margin: 50px 0 60px;
            padding: 30px 0;
        }
        .percentile-svg-wrap svg {
            width: 100%;
            height: auto;
            display: block;
            max-width: 1000px;
            margin: 0 auto;
        }

        .benchmark-coverage {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.08);
            margin: 50px 0 40px;
        }
        .coverage-cell {
            background: var(--night-2);
            padding: 32px 28px;
        }
        .coverage-cell .cov-num {
            font-family: var(--serif);
            font-size: 13px;
            color: rgba(255,255,255,0.4);
            letter-spacing: 0.14em;
            margin-bottom: 14px;
            font-weight: 500;
        }
        .coverage-cell h4 {
            font-family: var(--serif);
            font-size: 19px;
            font-weight: 700;
            color: white;
            margin-bottom: 12px;
            line-height: 1.4;
        }
        .coverage-cell p {
            font-size: 13.5px;
            line-height: 1.75;
            color: rgba(255,255,255,0.7);
        }
        .coverage-cell .examples {
            margin-top: 14px;
            font-size: 12.5px;
            color: rgba(255,255,255,0.55);
            font-style: italic;
            line-height: 1.6;
        }

        .benchmark-closing {
            margin-top: 30px;
            padding: 32px 36px;
            border-left: 3px solid var(--brand);
            background: rgba(255,255,255,0.04);
            font-family: var(--serif);
            font-size: 19px;
            line-height: 1.7;
            color: white;
        }
        .benchmark-closing strong { color: #F4A6B0; font-weight: 500; }

        /* ============ Section 6: Monthly Brief & Dashboard ============ */
        .delivery-intro {
            margin-bottom: 48px;
        }
        .brief-mockup {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 0;
            background: var(--paper);
            border: 1px solid var(--line);
            margin-bottom: 36px;
            overflow: hidden;
        }
        .brief-cover {
            background: var(--night);
            color: white;
            padding: 48px 36px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 460px;
        }
        .brief-cover .small-tag {
            font-family: var(--serif);
            font-size: 12px;
            color: rgba(255,255,255,0.55);
            letter-spacing: 0.16em;
            margin-bottom: 18px;
            font-weight: 500;
        }
        .brief-cover h3 {
            font-family: var(--serif);
            font-size: 32px;
            font-weight: 900;
            line-height: 1.2;
            color: white;
            margin-bottom: 8px;
        }
        .brief-cover .brief-sub {
            font-size: 14px;
            color: rgba(255,255,255,0.6);
            font-style: italic;
            line-height: 1.5;
        }
        .brief-cover .brief-meta {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 22px;
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            line-height: 1.7;
        }
        .brief-toc {
            padding: 36px 40px;
        }
        .brief-toc-label {
            font-family: var(--serif);
            font-size: 12px;
            color: var(--brand);
            letter-spacing: 0.18em;
            margin-bottom: 22px;
            font-weight: 500;
            text-transform: uppercase;
        }
        .toc-item {
            display: grid;
            grid-template-columns: 36px 1fr;
            gap: 14px;
            padding: 14px 0;
            border-bottom: 1px solid var(--line);
            align-items: start;
        }
        .toc-item:last-child { border-bottom: none; }
        .toc-num {
            font-family: var(--serif);
            font-size: 14px;
            color: var(--ink-3);
            font-weight: 500;
        }
        .toc-content h4 {
            font-family: var(--serif);
            font-size: 15px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 4px;
        }
        .toc-content p {
            font-size: 13px;
            color: var(--ink-2);
            line-height: 1.6;
        }

        .delivery-modes {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 24px;
            margin-top: 16px;
        }
        .mode-card {
            background: var(--paper-2);
            padding: 28px 28px;
            border-left: 3px solid var(--brand);
        }
        .mode-card .mode-tag {
            font-size: 12px;
            color: var(--brand);
            font-weight: 500;
            letter-spacing: 0.12em;
            margin-bottom: 8px;
            text-transform: uppercase;
        }
        .mode-card h4 {
            font-family: var(--serif);
            font-size: 17px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 10px;
        }
        .mode-card p {
            font-size: 13.5px;
            color: var(--ink-2);
            line-height: 1.7;
        }
        .mode-card .freq {
            display: inline-block;
            margin-top: 12px;
            padding: 3px 10px;
            background: white;
            color: var(--ink-3);
            font-size: 11px;
            border-radius: 3px;
            font-weight: 500;
        }
        .delivery-philosophy {
            margin-top: 36px;
            padding: 30px 32px;
            background: var(--paper);
            border-left: 3px solid var(--brand);
            font-family: var(--serif);
            font-size: 19px;
            line-height: 1.65;
            color: var(--ink);
        }

        /* ============ Section 7: Bidirectional Loop ============ */
        .loop-section {
            background: var(--paper-3);
        }
        .loop-narrative {
            font-size: 17px;
            line-height: 1.85;
            color: var(--ink-2);
        }
        .loop-narrative p { margin-bottom: 22px; }
        .loop-narrative p strong { color: var(--ink); font-weight: 500; }
        .bidir-svg-wrap {
            margin: 50px 0;
        }
        .bidir-svg-wrap svg {
            width: 100%;
            height: auto;
            display: block;
            max-width: 800px;
            margin: 0 auto;
        }
        .loop-quote {
            font-family: var(--serif);
            font-size: 22px;
            line-height: 1.6;
            color: var(--ink);
            margin: 36px 0;
            padding: 28px 32px;
            background: var(--paper);
            border-left: 3px solid var(--brand);
            font-weight: 500;
        }

        /* ============ Section 8: Process ============ */
        .process-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 0;
            margin-top: 16px;
            position: relative;
        }
        .process-step {
            padding: 32px 24px 32px 0;
            position: relative;
        }
        .process-step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 56px;
            right: 0;
            width: 1px;
            height: calc(100% - 56px);
            background: var(--line);
        }
        .process-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border: 1.5px solid var(--brand);
            color: var(--brand);
            border-radius: 50%;
            font-family: var(--serif);
            font-weight: 700;
            font-size: 16px;
            margin-bottom: 22px;
        }
        .process-step h3 {
            font-family: var(--serif);
            font-size: 18px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 12px;
            line-height: 1.4;
        }
        .process-step p {
            font-size: 14px;
            line-height: 1.7;
            color: var(--ink-2);
            padding-right: 16px;
        }

        /* ============ Section 9: Self-check ============ */
        .check-wrap { max-width: 760px; margin: 0 auto; }
        .check-list { list-style: none; border-top: 1px solid var(--line); }
        .check-item {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            padding: 24px 4px;
            border-bottom: 1px solid var(--line);
            cursor: pointer;
            transition: background .2s;
            user-select: none;
        }
        .check-item:hover { background: rgba(153,27,45,0.025); }
        .check-input {
            appearance: none;
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border: 1.5px solid var(--ink-3);
            border-radius: 4px;
            margin-top: 3px;
            flex-shrink: 0;
            cursor: pointer;
            position: relative;
            transition: all .2s;
        }
        .check-input:checked {
            background: var(--brand);
            border-color: var(--brand);
        }
        .check-input:checked::after {
            content: '';
            position: absolute;
            top: 4px;
            left: 7px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }
        .check-text {
            font-size: 16px;
            line-height: 1.7;
            color: var(--ink);
            flex: 1;
        }
        .check-num {
            font-family: var(--serif);
            font-size: 13px;
            color: var(--ink-3);
            margin-right: 6px;
            font-weight: 500;
        }
        .check-result {
            margin-top: 36px;
            padding: 28px 32px;
            background: var(--paper-2);
            border-left: 3px solid var(--brand);
            font-size: 16px;
            line-height: 1.7;
            color: var(--ink);
            transition: all .3s;
        }
        .check-result strong {
            font-family: var(--serif);
            font-weight: 700;
            color: var(--brand);
        }

        /* ============ Section 10: Final CTA ============ */
        .final-cta {
            text-align: center;
            padding: 130px 0;
            background: var(--paper-3);
            border-top: 1px solid var(--line);
        }
        .final-cta h2 {
            font-family: var(--serif);
            font-size: clamp(32px, 3.6vw, 48px);
            font-weight: 700;
            line-height: 1.25;
            color: var(--ink);
            margin-bottom: 22px;
        }
        .final-cta p {
            font-size: 17px;
            color: var(--ink-2);
            line-height: 1.7;
            max-width: 620px;
            margin: 0 auto 40px;
        }
        .final-cta .cta-row { justify-content: center; }
        .secondary-link {
            display: block;
            margin-top: 24px;
            font-size: 14px;
            color: var(--ink-3);
            text-decoration: none;
            transition: color .2s;
        }
        .secondary-link:hover { color: var(--brand); }

        /* ============ Responsive ============ */
        @media (max-width: 880px) {
            .hero { padding: 80px 0 70px; }
            section.block { padding: 70px 0; }
            .featured-benchmark { padding: 80px 0; }
            .final-cta { padding: 70px 0; }
            .vs-grid { grid-template-columns: 1fr; }
            .vs-side:first-child {
                border-right: none;
                border-bottom: 1px solid var(--line);
            }
            .problem-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .layer-item {
                grid-template-columns: 1fr;
                gap: 16px;
                padding: 28px 0;
            }
            .layer-num { font-size: 36px; }
            .benchmark-coverage {
                grid-template-columns: 1fr;
            }
            .brief-mockup {
                grid-template-columns: 1fr;
            }
            .brief-cover { min-height: auto; padding: 36px 28px; }
            .brief-cover h3 { font-size: 26px; }
            .brief-toc { padding: 28px 28px; }
            .delivery-modes { grid-template-columns: 1fr; gap: 16px; }
            .process-grid { grid-template-columns: 1fr; }
            .process-step:not(:last-child)::after {
                top: auto;
                bottom: 0;
                left: 20px;
                right: auto;
                width: calc(100% - 40px);
                height: 1px;
            }
            .process-step { padding: 24px 0; border-bottom: 1px solid var(--line); }
            .process-step:last-child { border-bottom: none; }
        }
