* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; 
    color: #1e293b; 
    min-height: 100vh; 
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 5vh 2vw; 
    overflow-y: auto; 
    overflow-x: hidden;
}

.dashboard {
    background: #ffffff; 
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1); 
    width: 100%;
    max-width: 1100px;
    height: auto; 
    display: flex;
    flex-direction: column;
}

.header {
    background: #ffffff;
    padding: 2vh 2vw 1.5vh 2vw;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.brand-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
    margin-bottom: 1vh;
}

.brand-logo {
    height: clamp(30px, 5vh, 50px);
    width: auto;
    object-fit: contain;
}

.header h1 { font-size: clamp(1.5rem, 3.5vh, 2.2rem); font-weight: 800; margin: 0; color: #0f172a; }
.header h1 span { color: #3b82f6; } 

.client-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.prepared-for {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

#client-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 6px 15px;
    border-radius: 6px;
    text-align: center;
    width: 250px;
    transition: all 0.3s ease;
}

#client-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#client-input::placeholder { color: #94a3b8; font-weight: 600; }

.main-content {
    display: flex;
    flex: 1;
    padding: 3vh 3vw;
    gap: 3vw;
    overflow: visible; 
}

.controls-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible; 
}

.intro-box {
    background: #eff6ff; 
    border-left: 4px solid #3b82f6;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}
.intro-box p { font-size: 0.85rem; color: #475569; line-height: 1.5; }
.intro-box strong { color: #0f172a; }
.intro-box em { color: #64748b; font-style: normal; }

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
}

.slider-group { display: flex; flex-direction: column; justify-content: center; }

label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.label-with-tooltip { display: flex; align-items: center; }
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #1e293b; 
    color: #f8fafc;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 50;
    bottom: 150%;
    left: 50%; 
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(5px);
    font-size: 0.75rem;
    font-weight: normal;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%; 
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.tooltip:hover { color: #3b82f6; }

.badge {
    background: #3b82f6;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
}

.bg-green { background: #10b981; color: #fff; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%;
    background: #3b82f6; cursor: pointer; margin-top: -7px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
#rate::-webkit-slider-thumb { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 6px; background: #cbd5e1; border-radius: 3px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 5px;
}
.checkbox-label {
    display: flex; justify-content: flex-start; gap: 8px; font-weight: normal; font-size: 0.8rem;
    background: #f8fafc; padding: 8px; border-radius: 6px; border: 1px solid #cbd5e1; cursor: pointer;
    color: #334155;
    margin-bottom: 0;
    transition: background 0.2s;
}
.checkbox-label:hover { background: #f1f5f9; }

.results-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8fafc; 
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 3vh 3vw;
    text-align: center;
    gap: 20px; 
    overflow: visible; 
}

.metric-block h2 { color: #64748b; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.total-display { font-size: clamp(2.5rem, 5vh, 4rem); font-weight: 800; color: #0f172a; }

.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.highlight-block { background: #ffffff; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.money-block { border-color: #10b981; background: rgba(16, 185, 129, 0.05); }

.time-display { font-size: clamp(1.5rem, 3vh, 2rem); font-weight: 800; color: #3b82f6; }
.money-display { font-size: clamp(1.5rem, 3vh, 2rem); font-weight: 800; color: #10b981; }
.sub-text { font-size: 0.75rem; color: #64748b; margin-top: 5px; }

.reaction-block { background: #ffffff; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.reaction-compare { display: flex; justify-content: center; align-items: center; gap: 20px; font-weight: 800; margin-top: 10px; }
.human-time { color: #ef4444; }
.ai-time { color: #10b981; }
.vs { color: #94a3b8; font-size: 0.8rem; }

/* Warning Box */
.warning-box {
    display: flex; align-items: center; background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444; padding: 15px; border-radius: 10px; text-align: left;
    animation: pulse 2s infinite;
}
.warning-box.hidden { display: none; }
.warning-icon { font-size: 2rem; margin-right: 15px; }
.warning-text strong { display: block; color: #ef4444; font-size: 1rem; }
.warning-text span { color: #1e293b; font-size: 0.8rem; }

.export-button {
    background: #3b82f6; 
    color: white; border: none; padding: 15px 20px; font-size: 1rem; font-weight: 800;
    border-radius: 8px; cursor: pointer; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; margin-top: auto;
}
.export-button:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 768px) {
    .main-content { flex-direction: column; overflow: visible; }
    .sliders-grid { grid-template-columns: 1fr; }
}

.hidden { display: none !important; }

/* Blurred Results Class */
.blurred-result {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

/* Lead Capture Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 90%; max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 1.5rem; cursor: pointer; color: #94a3b8;
}
.close-modal:hover { color: #0f172a; }

.modal-content h2 { color: #0f172a; font-size: 1.5rem; margin-bottom: 10px; }
.modal-content p { color: #64748b; font-size: 0.9rem; margin-bottom: 25px; line-height: 1.5; }

#lead-form input {
    width: 100%; padding: 14px; margin-bottom: 15px;
    border: 1px solid #cbd5e1; border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 1rem;
    color: #1e293b;
}
#lead-form input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }

#submit-lead-btn { width: 100%; margin-top: 10px; }

#success-message {
    margin-top: 20px; color: #10b981; font-weight: 800; font-size: 1.1rem;
    background: rgba(16, 185, 129, 0.1); padding: 15px; border-radius: 6px;
}

/* Hides tooltips, sliders, and buttons during PDF generation */
.pdf-exporting .tooltip { display: none !important; }
.pdf-exporting input[type=range] { visibility: hidden !important; }
.pdf-exporting #lead-trigger-btn { display: none !important; }