/*
 * VoiceStack Lead Magnet - Styles
 * Design System: Clean + Soft aesthetic
 * Fonts: Geist Sans (body) + Manrope (headlines)
 * Colors: White bg, Near-black text, Purple accent, Green CTA
 */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Colors - Neutrals */
    --color-background: #FFFFFF;
    --color-surface: #F9F9F9;
    --color-surface-alt: #F4F4F5;
    --color-text-primary: #0A0A0A;
    --color-text-secondary: #3d3d3d;
    --color-text-muted: #6b6b6b;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-subtle: rgba(0, 0, 0, 0.05);
    
    /* Colors - Brand */
    --color-accent: #4A3CE1;
    --color-accent-light: rgba(74, 60, 225, 0.1);
    --color-accent-border: rgba(74, 60, 225, 0.15);
    
    /* Colors - CTA */
    --color-cta: #B5EB92;
    --color-cta-stroke: #92D96A;
    --color-cta-hover: #A5E07F;
    
    /* Colors - Status */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    
    /* Typography */
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headline: 'Manrope', 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-cta: 0 0 0 1px var(--color-cta-stroke);
    --shadow-cta-hover: 0 0 0 2px var(--color-cta-stroke), 0 4px 12px rgba(181, 235, 146, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1rem;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: auto;
}

::-webkit-scrollbar-thumb {
    background: #656565;
    border-radius: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* ============================================
   Page Layout
   ============================================ */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(74, 60, 225, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(181, 235, 146, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 1;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
    gap: var(--space-sm);
    animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 1024px) {
    .hero {
        padding: var(--space-2xl) 0 var(--space-xl);
        gap: var(--space-sm);
    }
}

.hero-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-accent-light);
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.headline {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.text-accent {
    color: var(--color-accent);
}

.subheadline {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* Benefits Bar */
.benefits-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.benefit {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.benefit svg {
    width: 18px;
    height: 18px;
    color: var(--color-cta-stroke);
}

.benefit-divider {
    width: 4px;
    height: 4px;
    background: var(--color-border);
    border-radius: 50%;
}

@media (max-width: 640px) {
    .benefits-bar {
        gap: var(--space-sm) var(--space-md);
    }
    
    .benefit-divider {
        display: none;
    }
    
    .benefit {
        font-size: 0.875rem;
    }
}

/* Hero Visual */
.hero-visual {
    flex-shrink: 0;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    width: 280px;
    height: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
}

@media (min-width: 768px) {
    .visual-card {
        width: 340px;
        height: 240px;
    }
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 80px;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(to top, var(--color-accent), var(--color-cta));
    border-radius: 3px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 60px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 80px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 60px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 80px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 60px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 40px; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 20px; animation-delay: 0.8s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.visual-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ============================================
   Demo Section
   ============================================ */
.demo-section {
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Demo Intro */
.demo-intro {
    text-align: center;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.demo-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* Step Labels */
.step-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-family: var(--font-headline);
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    background: var(--color-accent);
    border-radius: 50%;
}

.step-text {
    font-family: var(--font-headline);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.step-container {
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease-out backwards;
}

.step-container:nth-child(2) { animation-delay: 0.5s; }
.step-container:nth-child(3) { animation-delay: 0.6s; }

.step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-family: var(--font-headline);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-accent-light);
    border-radius: 50%;
}

.step-title {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Demo Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    position: relative;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

/* Card Wrapper for flip/expand effect */
.demo-card-wrapper {
    position: relative;
    perspective: 1000px;
}

.demo-card-wrapper.expanded {
    grid-column: 1 / -1;
}

.demo-card-wrapper.hidden {
    display: none;
}

.demo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-background);
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: 
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.demo-card:hover {
    border-color: var(--color-accent-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.demo-card.selected {
    border-color: var(--color-cta-stroke);
    box-shadow: 0 0 0 3px rgba(181, 235, 146, 0.2);
}

.demo-card:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    color: var(--color-accent);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.card-title {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.card-description {
    font-size: 0.9375rem;
    font-weight: 450;
    line-height: 1.6;
    color: var(--color-text-secondary);
    flex: 1;
}

.card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px var(--space-sm);
    background: var(--color-cta);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    margin-top: var(--space-xs);
}

.card-badge-secondary {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* Expanded Card State */
.card-expanded {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    animation: expandIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-card-wrapper.expanded .demo-card {
    display: none;
}

.demo-card-wrapper.expanded .card-expanded {
    display: flex;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.expanded-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.back-btn:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-accent);
    transform: translateX(-2px);
}

.back-btn svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
}

.expanded-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Scenario Options - Card Grid */
.scenario-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .scenario-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scenario-options.two-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

.scenario-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.scenario-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-cta));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.scenario-btn:hover {
    border-color: var(--color-accent-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.scenario-btn:hover::before {
    transform: scaleX(1);
}

.scenario-btn.selected {
    border-color: var(--color-cta-stroke);
    box-shadow: 0 0 0 3px rgba(181, 235, 146, 0.2), var(--shadow-md);
}

.scenario-btn.selected::before {
    transform: scaleX(1);
    background: var(--color-cta);
}

.scenario-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(181, 235, 146, 0.15) 100%);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.scenario-btn:hover .scenario-icon {
    transform: scale(1.05);
}

.scenario-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.scenario-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scenario-title {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.scenario-desc {
    font-size: 0.875rem;
    font-weight: 450;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.scenario-arrow {
    display: none;
}

/* ============================================
   Phone Form
   ============================================ */
.phone-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
    }
}

.input-group {
    display: flex;
    align-items: center;
    flex: 1;
    background: var(--color-background);
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.input-group:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
    height: 44px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.phone-input {
    flex: 1;
    height: 44px;
    padding: 0 var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    outline: none;
}

.phone-input::placeholder {
    color: #999;
    font-weight: 400;
}

.name-group {
    flex: 1;
}

.name-input {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: var(--color-background);
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.name-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.name-input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.hint-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    height: 52px;
    padding: 0 var(--space-xl);
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    background: linear-gradient(to right, var(--color-cta), #d4f5c0);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-cta), 0 2px 8px rgba(181, 235, 146, 0.3);
    cursor: pointer;
    transition: 
        box-shadow var(--transition-base),
        background var(--transition-slow),
        transform var(--transition-base);
}

.submit-btn:hover:not(:disabled) {
    box-shadow: var(--shadow-cta-hover);
    background: linear-gradient(to right, white, var(--color-cta));
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn .btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-text-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Status Container
   ============================================ */
.status-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

.status-container.hidden {
    display: none;
}

.status-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.status-card.hidden {
    display: none;
}

/* Call Header */
.call-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.call-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.call-header-info {
    text-align: left;
}

.status-title {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.status-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.call-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.phone-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-cta), var(--color-cta-stroke));
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.phone-icon {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

.phone-icon-wrapper.ringing {
    animation: phone-ring 0.5s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-8deg); }
    20% { transform: rotate(8deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    50% { transform: rotate(0deg); }
}

.phone-icon-wrapper.speaking {
    animation: none;
    background: linear-gradient(135deg, var(--color-success), #34D399);
}

/* ===========================================
   Call Visualization Section
   =========================================== */

.call-viz-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Animated Conversation Visualization */
.conversation-viz {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.viz-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-alt);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.viz-header svg {
    width: 16px;
    height: 16px;
}

.viz-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: var(--space-lg);
    position: relative;
}

/* Audio Waveform Animation - Clean Modern Design */
.waveform-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 80px;
    padding: 0 var(--space-md);
}

.wave-bar {
    width: 4px;
    min-height: 8px;
    background: var(--color-success);
    border-radius: 4px;
    animation: waveAnimation 1s ease-in-out infinite;
    transform-origin: center;
}

/* Smooth wave pattern - center bars taller */
.wave-bar:nth-child(1) { animation-delay: 0s; max-height: 20px; }
.wave-bar:nth-child(2) { animation-delay: 0.08s; max-height: 30px; }
.wave-bar:nth-child(3) { animation-delay: 0.16s; max-height: 45px; }
.wave-bar:nth-child(4) { animation-delay: 0.24s; max-height: 55px; }
.wave-bar:nth-child(5) { animation-delay: 0.32s; max-height: 65px; }
.wave-bar:nth-child(6) { animation-delay: 0.4s; max-height: 70px; }
.wave-bar:nth-child(7) { animation-delay: 0.36s; max-height: 65px; }
.wave-bar:nth-child(8) { animation-delay: 0.28s; max-height: 55px; }
.wave-bar:nth-child(9) { animation-delay: 0.2s; max-height: 45px; }
.wave-bar:nth-child(10) { animation-delay: 0.12s; max-height: 30px; }
.wave-bar:nth-child(11) { animation-delay: 0.04s; max-height: 20px; }
.wave-bar:nth-child(12) { animation-delay: 0s; max-height: 15px; }

@keyframes waveAnimation {
    0%, 100% {
        height: 8px;
        opacity: 0.4;
    }
    50% {
        height: var(--max-height, 50px);
        opacity: 1;
    }
}

/* Use CSS custom property for dynamic max heights */
.wave-bar:nth-child(1) { --max-height: 20px; }
.wave-bar:nth-child(2) { --max-height: 32px; }
.wave-bar:nth-child(3) { --max-height: 48px; }
.wave-bar:nth-child(4) { --max-height: 58px; }
.wave-bar:nth-child(5) { --max-height: 68px; }
.wave-bar:nth-child(6) { --max-height: 72px; }
.wave-bar:nth-child(7) { --max-height: 68px; }
.wave-bar:nth-child(8) { --max-height: 58px; }
.wave-bar:nth-child(9) { --max-height: 48px; }
.wave-bar:nth-child(10) { --max-height: 32px; }
.wave-bar:nth-child(11) { --max-height: 20px; }
.wave-bar:nth-child(12) { --max-height: 14px; }

/* Remove floating bubbles - no longer used */
.speech-bubbles-animation {
    display: none;
}

.bubble {
    display: none;
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: floatBubble 8s ease-in-out infinite;
}

.bubble-1 {
    width: 60px;
    height: 40px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 80px;
    height: 50px;
    right: 15%;
    top: 30%;
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(99, 102, 241, 0.1));
}

.bubble-3 {
    width: 50px;
    height: 35px;
    left: 20%;
    bottom: 25%;
    animation-delay: 4s;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-10px) scale(1.05);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) scale(1.02);
        opacity: 0.6;
    }
}

/* Status indicator */
.viz-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(34, 197, 94, 0.08);
    border-radius: var(--radius-full);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.viz-status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

.viz-status-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* Transcript Section (kept for toggle) */
.transcript-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-alt);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.transcript-header svg {
    width: 16px;
    height: 16px;
}

.transcript-content {
    padding: var(--space-lg);
    max-height: 280px;
    min-height: 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Smooth scroll for new messages */
.transcript-content {
    scroll-behavior: smooth;
}

.transcript-waiting {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Live indicator badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #22c55e;
    text-transform: uppercase;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.transcript-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.transcript-message.agent {
    align-items: flex-start;
}

.transcript-message.user {
    align-items: flex-end;
}

.transcript-sender {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.transcript-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    max-width: 85%;
}

.transcript-message.agent .transcript-text {
    background: var(--color-background);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.transcript-message.user .transcript-text {
    background: var(--color-accent);
    color: white;
}

.phone-icon {
    width: 28px;
    height: 28px;
    color: var(--color-text-primary);
}

.status-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.status-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-top: calc(-1 * var(--space-sm));
}

.status-note {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    font-style: italic;
    opacity: 0.8;
}

/* Pulse dot for in-progress calls */
.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.transcript-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
}

.transcript-icon.ringing {
    animation: ring-shake 0.5s ease-in-out infinite;
}

@keyframes ring-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.status-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.queued {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.status-badge.queued::before {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-badge.ringing {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.status-badge.ringing::before {
    animation: pulse-dot 0.6s ease-in-out infinite;
}

.status-badge.in-progress {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.status-badge.in-progress::before {
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.status-duration {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Complete Status */
.status-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

/* Complete Layout - Two Column */
.complete-layout {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    align-items: flex-start;
}

.complete-layout.hidden {
    display: none;
}

/* Left Panel - Stats & CTAs */
.complete-left-panel {
    flex-shrink: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    /* Hidden initially - collapsed width */
    width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    border-width: 0;
}

.complete-layout.animate-in .complete-left-panel {
    animation: expandPanel 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 3100ms;
}

@keyframes expandPanel {
    from {
        width: 0;
        padding: 0;
        opacity: 0;
        border-width: 0;
    }
    to {
        width: 340px;
        padding: var(--space-xl);
        opacity: 1;
        border-width: 1px;
    }
}

/* Responsive: Stack on smaller screens */
@media (max-width: 900px) {
    .complete-layout {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .complete-left-panel {
        order: 2;
        max-width: 520px;
    }
    
    .complete-right-panel {
        width: 100%;
        max-width: 520px;
        order: 1;
    }
    
    .complete-left-panel .benefit-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .complete-left-panel .benefit-card {
        flex-direction: column;
        text-align: center;
    }
    
    .complete-cta {
        flex-direction: row;
    }
    
    .complete-cta .cta-primary,
    .complete-cta .cta-secondary {
        flex: 1;
        width: auto;
    }
    
    @keyframes expandPanel {
        from {
            width: 0;
            padding: 0;
            opacity: 0;
        }
        to {
            width: 100%;
            max-width: 520px;
            padding: var(--space-xl);
            opacity: 1;
        }
    }
}

@media (max-width: 640px) {
    .complete-left-panel .benefit-cards {
        grid-template-columns: 1fr;
    }
    
    .complete-cta {
        flex-direction: column;
    }
    
    .complete-cta .cta-primary,
    .complete-cta .cta-secondary {
        width: 100%;
    }
    
    /* Mobile-friendly final screen */
    .complete-layout {
        padding: 0 var(--space-sm);
    }
    
    .complete-right-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .status-card-complete {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .complete-header {
        gap: var(--space-sm);
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .complete-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .complete-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .complete-title {
        font-size: 1.125rem;
    }
    
    .complete-subtitle {
        font-size: 0.875rem;
    }
    
    /* Outcome row mobile - horizontal layout with centered content */
    .complete-outcome-row {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .outcome-badge {
        font-size: 0.875rem;
        padding: var(--space-xs) var(--space-md);
    }
    
    .outcome-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .outcome-duration {
        font-size: 1rem;
    }
    
    .outcome-duration svg {
        width: 18px;
        height: 18px;
    }
    
    /* Summary section mobile */
    .complete-summary {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .summary-title {
        font-size: 0.6875rem;
    }
    
    .summary-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    /* Benefits section mobile - horizontal scrollable row */
    .complete-benefits {
        margin-bottom: var(--space-md);
    }
    
    .benefits-title {
        font-size: 0.6875rem;
        text-align: center;
    }
    
    .benefit-cards {
        display: flex;
        flex-direction: row;
        gap: var(--space-sm);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-xs);
    }
    
    .benefit-card {
        flex: 0 0 auto;
        min-width: 110px;
        padding: var(--space-sm) var(--space-md);
        scroll-snap-align: start;
    }
    
    .benefit-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .benefit-card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .benefit-card-value {
        font-size: 1.25rem;
    }
    
    .benefit-card-label {
        font-size: 0.75rem;
    }
    
    .complete-left-panel .benefit-card {
        padding: var(--space-sm) var(--space-md);
    }
    
    .complete-left-panel .benefit-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .complete-left-panel .benefit-card-value {
        font-size: 1rem;
    }
    
    .complete-left-panel .benefit-card-label {
        font-size: 0.75rem;
    }
    
    /* CTA buttons mobile */
    .complete-cta {
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }
    
    .cta-primary,
    .cta-secondary {
        padding: var(--space-md);
        font-size: 0.9375rem;
    }
    
    /* Expand panel animation for mobile */
    @keyframes expandPanel {
        from {
            width: 0;
            padding: 0;
            opacity: 0;
        }
        to {
            width: 100%;
            max-width: 100%;
            padding: var(--space-lg);
            opacity: 1;
        }
    }
}

/* Right Panel - Call Details */
.complete-right-panel {
    width: 520px;
    max-width: 520px;
    flex-shrink: 0;
    /* Smooth transition when left panel pushes it */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Complete Card */
.status-card-complete {
    animation: fadeInUp 0.5s ease-out;
}

.complete-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.complete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-lg);
    color: var(--color-success);
}

.complete-icon svg {
    width: 24px;
    height: 24px;
}

.complete-header-text {
    flex: 1;
}

.complete-title {
    font-family: var(--font-headline);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.complete-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* Outcome Row */
.complete-outcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
}

.outcome-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
}

.outcome-badge svg {
    width: 20px;
    height: 20px;
}

.outcome-duration {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.outcome-duration svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
}

.outcome-badge.confirmed {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.outcome-badge.scheduled {
    background: rgba(74, 60, 225, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(74, 60, 225, 0.2);
}

.outcome-badge.reschedule {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.outcome-badge.callback {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Summary Section */
.complete-summary {
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

.summary-title {
    font-family: var(--font-headline);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.summary-text {
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Benefits Section */
.complete-benefits {
    margin-bottom: var(--space-xl);
}

/* Left panel specific styling */
.complete-left-panel .benefits-title {
    text-align: center;
}

.complete-left-panel .benefit-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.complete-left-panel .benefit-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
}

.complete-left-panel .benefit-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.complete-left-panel .benefit-card-value {
    font-size: 1.125rem;
    margin-right: var(--space-xs);
}

.complete-left-panel .benefit-card-label {
    font-size: 0.8125rem;
}

.benefits-title {
    font-family: var(--font-headline);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    animation: benefitCardIn 0.5s ease-out forwards;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes benefitCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.benefit-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-cta);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
}

.benefit-card-icon svg {
    width: 22px;
    height: 22px;
}

.benefit-card-value {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.benefit-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Complete CTA */
.complete-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-md);
}

.complete-cta .cta-primary,
.complete-cta .cta-secondary {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
    padding: 0 var(--space-lg);
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    background: linear-gradient(to right, var(--color-cta), white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-cta);
    transition: box-shadow var(--transition-base), background var(--transition-slow);
}

.cta-primary:hover {
    box-shadow: var(--shadow-cta-hover);
    background: linear-gradient(to right, white, var(--color-cta));
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: transparent;
    border: 2px solid var(--color-accent-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.cta-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--color-accent);
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-2xl);
}

.trust-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl) var(--space-2xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    color: var(--color-accent);
}

.trust-icon svg {
    width: 18px;
    height: 18px;
}

.trust-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--container-padding);
    border-top: 1px solid var(--color-border);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

@media (min-width: 640px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
        max-width: var(--container-max);
        margin: 0 auto;
    }
}

.footer-hipaa {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.footer-hipaa svg {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Error state for inputs */
.input-group.error {
    border-color: var(--color-error);
}

.input-group.error:focus-within {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    display: block;
    font-size: 0.875rem;
    color: var(--color-error);
    margin-top: var(--space-sm);
}

/* ============================================
   Progressive Reveal Animation for Call Complete
   ============================================ */

/* Remove the existing card animation - we'll animate children instead */
.complete-layout.animate-in .status-card-complete {
    animation: none;
}

/* Right panel content starts hidden, animates in */
.complete-layout .complete-header,
.complete-layout .complete-outcome-row,
.complete-layout .complete-summary {
    opacity: 0;
    transform: translateY(24px);
}

/* When animate-in class is added, trigger staggered animations */
/* Right panel content reveals first */
.complete-layout.animate-in .complete-header {
    animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0ms;
}

.complete-layout.animate-in .complete-outcome-row {
    animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 500ms;
}

.complete-layout.animate-in .complete-summary {
    animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1100ms;
}

/* Left panel content - starts hidden, inherits visibility from parent */
.complete-layout .complete-benefits,
.complete-layout .complete-cta {
    opacity: 1;
    transform: none;
}

/* Override base benefit-card animation inside complete layout */
.complete-layout .benefit-card {
    opacity: 1;
    transform: none;
    animation: none;
}

/* Individual benefit cards - no stagger needed since parent panel animates */
.complete-layout.animate-in .benefit-card {
    animation: none;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes benefitReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Scenario-Specific Fields
   ============================================ */
.scenario-fields {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(181, 235, 146, 0.05) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.3s ease-out;
}

.scenario-fields.hidden {
    display: none !important;
}

.scenario-field-group {
    margin-bottom: var(--space-md);
}

.scenario-field-group:last-child {
    margin-bottom: 0;
}

.field-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.field-label svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.scenario-input {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.scenario-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.scenario-input::placeholder {
    color: var(--color-text-muted);
}

.field-hint {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    font-style: italic;
}

/* ============================================
   Per-Child Status Cards (Multi-Child Scenario)
   ============================================ */
.children-status-section {
    margin-bottom: var(--space-xl);
}

.children-status-section.hidden {
    display: none !important;
}

.children-status-title {
    font-family: var(--font-headline);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.children-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.child-status-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-background);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(10px);
    animation: childCardIn 0.4s ease-out forwards;
}

.child-status-card:nth-child(1) { animation-delay: 0.1s; }
.child-status-card:nth-child(2) { animation-delay: 0.2s; }
.child-status-card:nth-child(3) { animation-delay: 0.3s; }
.child-status-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes childCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.child-status-card.confirmed {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, var(--color-background) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.child-status-card.pending {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, var(--color-background) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.child-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-accent-light);
    border-radius: 50%;
    color: var(--color-accent);
    flex-shrink: 0;
}

.child-avatar svg {
    width: 18px;
    height: 18px;
}

.child-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.child-name {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.child-time {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.child-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.child-status svg {
    width: 12px;
    height: 12px;
}

.child-status-card.confirmed .child-status {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.child-status-card.confirmed .child-avatar {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.child-status-card.pending .child-status {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.child-status-card.pending .child-avatar {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.child-status-card.rescheduled {
    border-color: rgba(74, 60, 225, 0.3);
    background: linear-gradient(135deg, var(--color-background) 0%, rgba(74, 60, 225, 0.05) 100%);
}

.child-status-card.rescheduled .child-status {
    background: rgba(74, 60, 225, 0.15);
    color: var(--color-accent);
}

.child-status-card.rescheduled .child-avatar {
    background: rgba(74, 60, 225, 0.15);
    color: var(--color-accent);
}

.children-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.children-duration svg {
    width: 16px;
    height: 16px;
}

.children-duration strong {
    font-family: var(--font-headline);
    font-weight: 600;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Animation for children status section in animate-in mode */
.complete-layout .children-status-section {
    opacity: 0;
    transform: translateY(24px);
}

.complete-layout.animate-in .children-status-section {
    animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 500ms;
}

.complete-layout.animate-in .child-status-card {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    animation: benefitReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.complete-layout.animate-in .child-status-card:nth-child(1) {
    animation-delay: 700ms;
}

.complete-layout.animate-in .child-status-card:nth-child(2) {
    animation-delay: 900ms;
}

.complete-layout.animate-in .child-status-card:nth-child(3) {
    animation-delay: 1100ms;
}

.complete-layout.animate-in .child-status-card:nth-child(4) {
    animation-delay: 1300ms;
}

/* ============================================
   Demo Request Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: var(--color-background);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.visible .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-surface-alt);
    color: var(--color-text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    text-align: center;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(181, 235, 146, 0.15) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.modal-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.modal-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.modal-form {
    padding: 0 var(--space-xl) var(--space-xl);
}

/* Honeypot field - hidden from users, visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.modal-form-group {
    margin-bottom: var(--space-md);
}

.modal-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.modal-label svg {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.modal-label .required {
    color: var(--color-error);
}

.modal-label .not-shared {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: auto;
}

.modal-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
    background: var(--color-background);
}

.modal-input::placeholder {
    color: var(--color-text-muted);
}

.modal-phone-input-group {
    display: flex;
    align-items: center;
}

.modal-phone-prefix {
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.modal-phone-input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.modal-form-error {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--color-error);
    font-size: 0.875rem;
}

.modal-form-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.modal-form-error.hidden {
    display: none;
}

.modal-submit-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-cta);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-cta);
}

.modal-submit-btn:hover:not(:disabled) {
    background: var(--color-cta-hover);
    box-shadow: var(--shadow-cta-hover);
    transform: translateY(-1px);
}

.modal-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-btn-loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-btn-loading.hidden {
    display: none;
}

.modal-btn-text.hidden {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    stroke-dasharray: 50;
    stroke-dashoffset: 20;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.modal-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.modal-privacy-note svg {
    width: 14px;
    height: 14px;
    color: var(--color-success);
}

/* Modal Success State */
.modal-success {
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
}

.modal-success.hidden {
    display: none;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(181, 235, 146, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-success);
}

.success-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.success-message {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.modal-close-success-btn {
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close-success-btn:hover {
    background: var(--color-surface-alt);
    color: var(--color-text-primary);
}

/* Modal responsive adjustments */
@media (max-width: 480px) {
    .modal-container {
        max-height: 100vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin-top: auto;
    }
    
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .modal-header {
        padding: var(--space-lg) var(--space-lg) var(--space-md);
    }
    
    .modal-form {
        padding: 0 var(--space-lg) var(--space-lg);
    }
    
    /* Extra small mobile adjustments for final screen */
    .status-container {
        padding: 0 var(--space-xs);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .complete-right-panel {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .status-card-complete {
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .complete-header {
        gap: var(--space-sm);
        padding-bottom: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .complete-icon {
        width: 36px;
        height: 36px;
    }
    
    .complete-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .complete-title {
        font-size: 1rem;
    }
    
    .complete-subtitle {
        font-size: 0.8125rem;
    }
    
    /* Outcome row - compact centered */
    .complete-outcome-row {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
        padding: var(--space-sm) var(--space-md);
        margin-bottom: var(--space-sm);
    }
    
    .outcome-badge {
        font-size: 0.8125rem;
        padding: 4px var(--space-sm);
    }
    
    .outcome-duration {
        font-size: 0.9375rem;
    }
    
    /* Summary section - ensure text doesn't get cut off */
    .complete-summary {
        padding: var(--space-sm) var(--space-md);
        margin-bottom: var(--space-sm);
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }
    
    .summary-title {
        font-size: 0.625rem;
        margin-bottom: var(--space-xs);
    }
    
    .summary-text {
        font-size: 0.8125rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
    }
    
    /* Benefits section - 3 column grid */
    .complete-benefits {
        margin-bottom: var(--space-sm);
    }
    
    .benefits-title {
        font-size: 0.625rem;
        margin-bottom: var(--space-sm);
    }
    
    .benefit-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xs);
        overflow-x: visible;
    }
    
    .benefit-card {
        min-width: unset;
        padding: var(--space-sm) var(--space-xs);
        gap: 4px;
    }
    
    .benefit-card-icon {
        width: 28px;
        height: 28px;
    }
    
    .benefit-card-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .benefit-card-value {
        font-size: 1rem;
    }
    
    .benefit-card-label {
        font-size: 0.625rem;
        line-height: 1.3;
    }
    
    /* Children status cards mobile */
    .children-status-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .child-status-card {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }
    
    .child-avatar {
        width: 32px;
        height: 32px;
    }
    
    .child-avatar svg {
        width: 16px;
        height: 16px;
    }
    
    .child-name {
        font-size: 0.9375rem;
    }
    
    .child-time {
        font-size: 0.8125rem;
    }
    
    .child-status-badge {
        font-size: 0.6875rem;
        padding: 2px 6px;
    }
    
    /* CTA buttons mobile - more compact */
    .complete-cta {
        gap: var(--space-xs);
        margin-top: var(--space-sm);
    }
    
    .cta-primary,
    .cta-secondary {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
}

