
        :root {
            /* Tema Cream / Paper */
            --bg-0: #fbf9f4; 
            --bg-1: #f2ece0;
            --panel: #ffffff;
            --panel-2: #f6f3eb;
            --line: #e5dfd3;
            --line-soft: #f0ebd9;
            --blue: #2563eb;
            --blue-soft: #3b82f6;
            --green: #16a34a;
            --green-dim: #15803d;
            --red: #ef4444;
            --amber: #d97706;
            --text: #1e293b;
            --text-dim: #475569;
            --text-faint: #64748b;
            
            --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            --sans: 'Space Grotesk', 'Inter', system-ui, sans-serif;
            --body: 'Inter', system-ui, sans-serif;
        }

        @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            margin: 0;
            background-color: var(--bg-0);
            background-image: radial-gradient(var(--line) 1px, transparent 1px);
            background-size: 32px 32px;
            color: var(--text);
            font-family: var(--body);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow: hidden; /* Travado enquanto splash screen estiver ativa */
        }

        a { color: var(--blue); text-decoration: none; font-weight: 500; }
        a:hover { text-decoration: underline; }
        ::selection { background: rgba(59, 130, 246, 0.2); }

        /* ---------- SPLASH SCREEN ---------- */
        #splash-screen {
            position: fixed;
            inset: 0;
            background-color: var(--bg-0);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px; /* Garante que não encoste nas bordas no mobile */
            transition: opacity 0.6s ease, visibility 0.6s ease;
        }
        #splash-screen img {
            width: 100%;
            max-width: 320px; /* Controle absoluto de limite */
            height: auto; /* Mantém a proporção real da imagem */
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            opacity: 0;
            transform: scale(0.8);
        }

        @keyframes popIn {
            to { opacity: 1; transform: scale(1); }
        }

        /* ---------- MAIN CONTENT ---------- */
        #main-content {
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.8s ease, transform 0.8s ease;
            max-width: 980px;
            margin: 0 auto;
            padding: 0 24px;
            background: var(--bg-0);
            box-shadow: 0 0 40px rgba(0,0,0,0.02);
        }

        #main-content.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ---------- HERO ---------- */
        .hero {
            position: relative;
            padding: 72px 0 56px;
            border-bottom: 1px solid var(--line);
        }
        .status-pill {
            display: inline-flex; align-items: center; gap: 8px;
            font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
            color: var(--green-dim); background: rgba(22, 163, 74, 0.1);
            border: 1px solid rgba(22, 163, 74, 0.2);
            padding: 6px 12px; border-radius: 999px;
            text-transform: uppercase;
            margin-bottom: 28px;
        }
        .status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.8s ease-in-out infinite; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

        h1.title {
            font-family: var(--sans); font-weight: 700;
            font-size: clamp(28px, 6vw, 42px);
            line-height: 1.15;
            letter-spacing: -0.02em;
            margin: 0 0 16px;
            max-width: 820px;
            color: var(--text);
        }
        h1.title .accent { color: var(--blue); }
        .subtitle { color: var(--text-dim); font-size: 17px; max-width: 640px; margin: 0 0 34px; }

        .meta-row { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); }
        .meta-row span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; background: var(--panel); display: flex; align-items: center; gap: 7px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
        .meta-row b { color: var(--text); font-weight: 600; }

        /* ---------- SECTIONS ---------- */
        section { padding: 56px 0; }
        section + section { border-top: 1px solid var(--line); }
        .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
        .eyebrow::before { content: "//"; color: var(--text-faint); }
        h2 { font-family: var(--sans); font-size: 26px; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.01em; }
        p { color: var(--text-dim); margin: 0 0 14px; font-size: 15.5px; }
        strong { color: var(--text); font-weight: 600; }

        /* ---------- SUMMARY CARDS ---------- */
        .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
        .stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
        .stat .n { font-family: var(--sans); font-size: 28px; font-weight: 700; color: var(--text); }
        .stat .n.ok { color: var(--green-dim); }
        .stat .n.bad { color: var(--red); }
        .stat .l { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

        /* ---------- TIMELINE ---------- */
        .timeline { position: relative; margin-top: 36px; }
        .timeline::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
        .step { position: relative; padding-left: 56px; margin-bottom: 42px; }
        .step:last-child { margin-bottom: 0; }
        .step-marker { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--panel); border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--blue); z-index: 1; box-shadow: 0 2px 5px rgba(37,99,235,0.15); }
        .step-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
        .step-title { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--text); }
        .verdict { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
        .verdict.ok { color: var(--green-dim); background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.2); }
        .verdict.bad { color: var(--red); background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }
        .verdict.info { color: var(--amber); background: rgba(217, 119, 6, 0.1); border: 1px solid rgba(217, 119, 6, 0.2); }
        
        .step-desc { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }
        .step-desc code { font-family: var(--mono); font-size: 13px; background: var(--panel-2); padding: 2px 6px; border-radius: 5px; color: var(--text); border: 1px solid var(--line); word-break: break-word; }

        .shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: transform 0.2s ease; cursor: pointer; }
        .shot:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
        .shot img { display: block; width: 100%; height: auto; }
        .shot .cap { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); padding: 10px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: var(--bg-0); }
        .shot .cap::before { content: "▸"; color: var(--blue); }

        /* ---------- DIAGNOSIS ---------- */
        .diagnosis { background: var(--panel); border: 1px solid var(--amber); border-radius: 18px; padding: 32px 30px; margin-top: 8px; position: relative; overflow: hidden; box-shadow: 0 8px 30px rgba(217, 119, 6, 0.08); }
        .diagnosis::after { content: "⚠"; position: absolute; right: 24px; top: 18px; font-size: 64px; opacity: 0.04; color: var(--amber); }
        .diagnosis .eyebrow { color: var(--amber); }
        .diagnosis h3 { font-family: var(--sans); font-size: 20px; margin: 0 0 12px; color: var(--text); }
        .checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
        .checklist li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-dim); background: var(--bg-0); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
        .checklist li::before { content: "✓"; color: var(--green-dim); font-weight: 700; flex-shrink: 0; }

        .ask { margin-top: 22px; padding: 18px 20px; border-radius: 12px; background: rgba(217, 119, 6, 0.05); border: 1px solid rgba(217, 119, 6, 0.2); }
        .ask b { color: var(--amber); }

        /* ---------- CODE COMPARE ---------- */
        .codebox { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 18px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
        .codebox .head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); background: var(--panel); }
        .codebox pre { margin: 0; padding: 16px; font-family: var(--mono); font-size: 12.5px; color: #334155; overflow-x: auto; line-height: 1.7; -webkit-overflow-scrolling: touch; }
        .codebox .hl { background: rgba(22, 163, 74, 0.15); color: var(--green-dim); border-radius: 3px; padding: 2px 4px; font-weight: 600; border: 1px solid rgba(22, 163, 74, 0.2); }

        /* ---------- CONTROLS & FOOTER ---------- */
        .controls { position: fixed; bottom: 24px; right: 24px; z-index: 100; }
        .btn-print { background: var(--text); color: #fff; border: none; padding: 12px 20px; border-radius: 99px; font-family: var(--sans); font-weight: 600; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.2s; display: flex; align-items: center; gap: 8px; }
        .btn-print:hover { transform: translateY(-3px); }

        footer { padding: 48px 0 60px; text-align: center; border-top: 1px solid var(--line); margin-top: 40px; }
        .foot-logo { height: 42px; width: auto; opacity: 0.9; margin-bottom: 14px; border-radius: 6px; }
        footer .line1 { font-family: var(--sans); font-weight: 600; color: var(--text); font-size: 14.5px; }
        footer .line2 { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 4px; }

        /* =========================================
           RESPONSIVIDADE INTELIGENTE (MOBILE-FIRST)
           ========================================= */
        @media (max-width: 768px) {
            #main-content { padding: 0 16px; }
            .grid-3 { grid-template-columns: 1fr; }
            .hero { padding: 40px 0 30px; }
            section { padding: 40px 0; }
            .controls { bottom: 16px; right: 16px; }
            .btn-print { padding: 10px 16px; font-size: 14px; }
        }

        @media (max-width: 480px) {
            h1.title { font-size: 24px; }
            h2 { font-size: 20px; }
            .subtitle { font-size: 15px; }
            
            /* Ajustes na timeline para o conteúdo não amassar no celular */
            .timeline { margin-top: 24px; }
            .timeline::before { left: 14px; }
            .step { padding-left: 40px; margin-bottom: 32px; }
            .step-marker { width: 30px; height: 30px; font-size: 11px; left: 0; }
            .step-head { flex-direction: column; align-items: flex-start; gap: 6px; }
            .step-title { font-size: 16px; }
            
            /* Ajuste de respiro no bloco de diagnóstico */
            .diagnosis { padding: 20px 16px; border-radius: 12px; }
            .diagnosis::after { font-size: 40px; right: 12px; top: 12px; }
            .checklist li { font-size: 13.5px; padding: 10px; }
            
            /* Otimização da caixa de código */
            .codebox .head { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; }
            .codebox pre { font-size: 11.5px; padding: 12px; }
            
            /* Ajuste de espaçamento nas tags (meta) */
            .meta-row span { font-size: 11.5px; padding: 5px 8px; }
        }

        @media print {
            .controls, #splash-screen { display: none !important; }
            body { background: white; color: black; overflow: visible; }
            #main-content { box-shadow: none; max-width: 100%; padding: 0; }
            .shot { box-shadow: none; break-inside: avoid; }
            .hero { padding-top: 0; }
            .diagnosis { break-inside: avoid; }
        }
    