/* ============================================================
   geo-performance-monitoring.css — extracted from geo-performance-monitoring.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;
            --alert-red: #C2304A;
            --alert-yellow: #D4A437;
            --alert-blue: #4A6FA5;
        }

        /* 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);
            position: relative;
        }
        .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 ============ */
        .thesis-body p {
            font-size: 17px;
            line-height: 1.85;
            color: var(--ink-2);
            margin-bottom: 24px;
        }
        .thesis-body p strong { color: var(--ink); font-weight: 500; }
        .thesis-body p.emphasis {
            font-family: var(--serif);
            font-size: 22px;
            line-height: 1.6;
            color: var(--ink);
            margin-top: 36px;
            font-weight: 500;
        }

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

        /* ============ Section 4: Two-tier model ============ */
        .twotier-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            border: 1px solid var(--line);
            margin-bottom: 36px;
        }
        .tier {
            padding: 40px 36px;
            background: var(--paper);
            position: relative;
        }
        .tier:first-child { border-right: 1px solid var(--line); }
        .tier .role {
            font-family: var(--serif);
            font-size: 13px;
            color: var(--brand);
            letter-spacing: 0.16em;
            margin-bottom: 14px;
            font-weight: 500;
            text-transform: uppercase;
        }
        .tier h3 {
            font-family: var(--serif);
            font-size: 26px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 16px;
            line-height: 1.3;
        }
        .tier .question {
            font-family: var(--serif);
            font-size: 18px;
            font-weight: 500;
            color: var(--brand);
            margin-bottom: 20px;
            font-style: italic;
        }
        .tier p {
            font-size: 15px;
            line-height: 1.75;
            color: var(--ink-2);
            margin-bottom: 14px;
        }
        .tier ul {
            list-style: none;
            padding-left: 0;
            margin-top: 18px;
        }
        .tier ul li {
            font-size: 14px;
            color: var(--ink-2);
            padding: 6px 0 6px 22px;
            position: relative;
            line-height: 1.7;
        }
        .tier ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 14px;
            width: 12px;
            height: 1px;
            background: var(--brand);
        }
        .tier .badge {
            display: inline-block;
            padding: 4px 10px;
            background: var(--brand-tint);
            color: var(--brand);
            font-size: 12px;
            font-weight: 500;
            border-radius: 3px;
            margin-bottom: 14px;
        }

        /* ============ Section 5: Monitoring Matrix (Featured DARK) ============ */
        .featured-matrix {
            background: var(--night);
            color: white;
            padding: 130px 0;
            position: relative;
            overflow: hidden;
        }
        .featured-matrix::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-matrix > .container { position: relative; z-index: 1; }
        .featured-matrix .section-sub { color: rgba(255,255,255,0.72); margin-bottom: 50px; max-width: 760px; }

        .stat-banner {
            display: flex;
            gap: 50px;
            padding: 32px 40px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            margin-bottom: 50px;
            flex-wrap: wrap;
        }
        .stat-block-dark { flex: 1; min-width: 160px; }
        .stat-num-dark {
            font-family: var(--serif);
            font-size: 44px;
            font-weight: 900;
            color: white;
            line-height: 1;
            margin-bottom: 8px;
        }
        .stat-num-dark .ext {
            font-size: 22px;
            color: rgba(255,255,255,0.5);
            margin-left: 6px;
        }
        .stat-label-dark {
            font-size: 12px;
            color: rgba(255,255,255,0.55);
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        /* Monitoring matrix SVG container */
        .matrix-svg-wrap {
            margin: 30px 0 60px;
            padding: 30px 0;
            overflow-x: auto;
        }
        .matrix-svg-wrap svg {
            width: 100%;
            height: auto;
            display: block;
            min-width: 720px;
        }

        .dim-grid {
            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);
        }
        .dim-cell {
            background: var(--night-2);
            padding: 32px 28px;
        }
        .dim-cell .dim-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;
        }
        .dim-cell h4 {
            font-family: var(--serif);
            font-size: 19px;
            font-weight: 700;
            color: white;
            margin-bottom: 14px;
            line-height: 1.4;
        }
        .dim-cell p {
            font-size: 13.5px;
            line-height: 1.75;
            color: rgba(255,255,255,0.7);
        }
        .dim-cell .star {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 8px;
            background: rgba(244,166,176,0.15);
            color: #F4A6B0;
            font-size: 10px;
            letter-spacing: 0.08em;
            font-weight: 500;
            border-radius: 3px;
            vertical-align: middle;
        }

        .matrix-closing {
            margin-top: 50px;
            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;
        }
        .matrix-closing strong { color: #F4A6B0; font-weight: 500; }

        /* ============ Section 6: Alert Cards ============ */
        .alert-intro {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 48px;
            gap: 40px;
            flex-wrap: wrap;
        }
        .alert-meta {
            font-size: 13px;
            color: var(--ink-3);
            font-style: italic;
            line-height: 1.6;
            max-width: 280px;
        }
        .alert-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .alert-card {
            background: var(--paper);
            border: 1px solid var(--line);
            padding: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .alert-card .alert-header {
            padding: 14px 22px;
            background: var(--paper-2);
            border-bottom: 1px solid var(--line);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            color: var(--ink-3);
            letter-spacing: 0.08em;
            font-weight: 500;
        }
        .alert-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
            flex-shrink: 0;
        }
        .alert-dot.red { background: var(--alert-red); box-shadow: 0 0 0 3px rgba(194,48,74,0.18); }
        .alert-dot.yellow { background: var(--alert-yellow); box-shadow: 0 0 0 3px rgba(212,164,55,0.18); }
        .alert-dot.blue { background: var(--alert-blue); box-shadow: 0 0 0 3px rgba(74,111,165,0.18); }
        .alert-card h3 {
            font-family: var(--serif);
            font-size: 18px;
            font-weight: 700;
            color: var(--ink);
            margin: 24px 24px 8px;
            line-height: 1.4;
        }
        .alert-trigger {
            font-size: 13px;
            color: var(--ink-3);
            margin: 0 24px 16px;
            font-style: italic;
        }
        .alert-example {
            margin: 0 24px;
            padding: 14px 16px;
            background: var(--paper-2);
            border-left: 2px solid var(--brand);
            font-size: 13.5px;
            line-height: 1.7;
            color: var(--ink-2);
            font-family: var(--serif);
            font-style: italic;
        }
        .alert-action {
            margin: 18px 24px 24px;
            font-size: 13px;
            color: var(--ink-2);
            line-height: 1.65;
        }
        .alert-action strong {
            color: var(--ink);
            font-weight: 500;
        }
        .alert-channels {
            margin-top: 32px;
            padding: 24px 28px;
            background: var(--paper);
            border-left: 3px solid var(--brand);
            font-size: 15px;
            color: var(--ink-2);
            line-height: 1.7;
        }
        .alert-channels strong { color: var(--ink); font-weight: 500; }

        /* ============ Section 7: Coverage ============ */
        .cov-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 36px;
        }
        .cov-card {
            background: var(--paper);
            border: 1px solid var(--line);
            border-top: 3px solid var(--brand);
            padding: 36px 32px;
        }
        .cov-tag {
            font-family: var(--serif);
            font-size: 13px;
            color: var(--brand);
            letter-spacing: 0.16em;
            margin-bottom: 14px;
            font-weight: 500;
            text-transform: uppercase;
        }
        .cov-card h3 {
            font-family: var(--serif);
            font-size: 22px;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 18px;
            line-height: 1.35;
        }
        .cov-card .scope {
            font-size: 14px;
            color: var(--ink-3);
            margin-bottom: 24px;
            line-height: 1.65;
        }
        .engine-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .engine-chip {
            padding: 8px 14px;
            background: var(--paper-2);
            border: 1px solid var(--line);
            border-radius: 3px;
            font-size: 13.5px;
            color: var(--ink);
            font-weight: 500;
            transition: all .2s;
        }
        .engine-chip:hover {
            border-color: var(--brand);
            color: var(--brand);
        }

        /* ============ Section 8: Closed-Loop Connection ============ */
        .loop-connect {
            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; }
        .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;
        }
        .loop-flow {
            display: grid;
            grid-template-columns: 1fr auto 1fr auto 1fr;
            gap: 16px;
            align-items: center;
            margin: 40px 0 20px;
        }
        .flow-node {
            background: var(--paper);
            border: 1px solid var(--line);
            padding: 22px 24px;
            text-align: center;
        }
        .flow-node.center {
            background: var(--brand);
            color: white;
            border-color: var(--brand);
        }
        .flow-node .stage {
            font-family: var(--serif);
            font-size: 12px;
            letter-spacing: 0.1em;
            color: var(--ink-3);
            margin-bottom: 8px;
            font-weight: 500;
        }
        .flow-node.center .stage { color: rgba(255,255,255,0.55); }
        .flow-node h4 {
            font-family: var(--serif);
            font-size: 16px;
            font-weight: 700;
            color: var(--ink);
        }
        .flow-node.center h4 { color: white; }
        .flow-arrow {
            color: var(--brand);
            font-size: 24px;
            font-weight: 300;
        }

        /* ============ Section 9: 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 10: 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 11: 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-matrix { padding: 80px 0; }
            .final-cta { padding: 70px 0; }
            .blind-grid, .alert-grid, .cov-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .twotier-grid { grid-template-columns: 1fr; }
            .tier:first-child {
                border-right: none;
                border-bottom: 1px solid var(--line);
            }
            .dim-grid { grid-template-columns: 1fr; }
            .stat-banner { gap: 24px; padding: 24px 24px; }
            .stat-num-dark { font-size: 32px; }
            .loop-flow {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .flow-arrow { transform: rotate(90deg); justify-self: center; }
            .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; }
        }
