/* Use Case Page Styles */
:root {
    --primary: #1E5F83;
    --secondary: #2D7DA8;
    --accent: #4A9ECC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #FFFFFF;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --font-body: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Navigation */
.use-case-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    padding: var(--space-4) 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.back-button:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-4px);
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Hero Section */
.use-case-hero {
    padding: 120px var(--space-6) 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.hero-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon svg {
    width: 64px;
    height: 64px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.hero-text .badges {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Main Content */
.use-case-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px var(--space-6);
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
}

.section-subtitle {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

/* ROI Calculator */
.roi-calculator {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: var(--space-8);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.input-group input {
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 95, 131, 0.1);
}

.roi-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.result-item {
    text-align: left;
}

.result-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}

.result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.result-unit {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-2);
}

/* Value Proposition */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.value-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
    font-weight: 700;
}

.value-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.value-card p {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Example/Preview */
.example-container {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: var(--space-8);
}

/* AI Expert Chat Container - Large Embed */
.ai-expert-chat-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: var(--space-6);
    box-shadow: 0 8px 24px rgba(30, 95, 131, 0.12);
}

.voiceflow-embed-large {
    width: 100%;
    height: 800px !important;
    max-height: 800px !important;
    min-height: 800px !important;
    overflow: hidden;
    border-radius: 12px;
}

.voiceflow-embed-large > * {
    max-height: 800px !important;
}

@media (max-width: 1024px) {
    .voiceflow-embed-large {
        height: 700px !important;
        max-height: 700px !important;
        min-height: 700px !important;
    }
    
    .voiceflow-embed-large > * {
        max-height: 700px !important;
    }
}

@media (max-width: 768px) {
    .ai-expert-chat-container {
        padding: var(--space-4);
    }
    
    .voiceflow-embed-large {
        height: 600px !important;
        max-height: 600px !important;
        min-height: 600px !important;
    }
    
    .voiceflow-embed-large > * {
        max-height: 600px !important;
    }
}

/* Email Preview */
.email-preview {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
}

.email-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--space-6);
    text-align: center;
}

.email-content {
    padding: var(--space-6);
}

.email-section {
    margin-bottom: var(--space-6);
}

.email-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--gray-200);
}

.email-item {
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: var(--space-2);
}

/* PDF Viewer */
.pdf-viewer {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: var(--space-6);
}

.pdf-controls {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.pdf-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.pdf-embed {
    width: 100%;
    height: 800px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

/* Table Preview */
.table-container {
    overflow-x: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.preview-table th,
.preview-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.preview-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
}

.preview-table tr:hover {
    background: var(--gray-50);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Next Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.step-item {
    display: flex;
    align-items: start;
    gap: var(--space-3);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    padding: var(--space-8);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: var(--space-6);
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .badges {
        justify-content: center;
    }
    
    .calculator-grid,
    .roi-results,
    .value-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
