/* --- MODERN RESET & VARIABLES --- */
:root {
    /* Palette: Deep Navy & Electric Teal */
    --brand-primary: #0F172A; /* Slate 900 */
    --brand-accent: #2563eb;  /* Primary Blue from original */
    --brand-teal: #06B6D4;    /* Modern accent */
    --brand-surface: #F8FAFC;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* UI Tokens */
    --border-subtle: #cbd5e1; /* Updated for 3.3:1 contrast ratio (WCAG 2.2 compliance) */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Analysis page colors (compatibility) */
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --light-blue: #dbeafe;
    --accent-teal: #14b8a6;
    --dark-teal: #0f766e;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-gray: #e5e7eb;
}

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

/* --- SCROLL REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: 'Inter', sans-serif; /* Cleaner body font */
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif; /* Kept original brand font */
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--brand-primary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: var(--brand-surface);
    border-color: var(--brand-primary);
}

/* --- FOCUS STATES (WCAG 2.2 Compliance) --- */
/* Button Focus States */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}

.btn-submit:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Link Focus States */
a:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Form Input Focus States */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: var(--brand-accent);
    outline: 2px solid var(--brand-accent);
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* FAQ Button Focus States */
.faq-question:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Modal Close Button Focus */
.modal-close:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Nav Link Focus States */
.nav-links a:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- NAV (Floating Pill) --- */
header {
    position: fixed;
    top: 20px;
    left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

/* --- Polished Logo Styling --- */

/* 1. Base Logo Link Styling (Sleek and Tighter) */
.logo {
    font-weight: 700;
    font-size: 1.05rem; /* Smaller text size for a sleeker look */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Tightened gap for better cohesion */
    color: var(--brand-primary);
    font-family: 'Space Grotesk', sans-serif;
    transition: transform 0.2s ease; /* Add transition for professional hover */
}
.logo:hover {
    transform: translateY(-1px); /* Subtle lift on hover */
}


/* 2. Styling for the Text */
.logo > span {
    color: var(--brand-primary);
    white-space: nowrap; /* Prevent "Nurse" and "Kind AI" from wrapping */
}
.logo-highlight {
    color: var(--brand-accent);
}

/* 3. Styling for the Picture/Image container (The Icon) */
.logo picture {
    background: #e5f1ff; 
    border-radius: 9px; /* Reduced radius to match scale */
    padding: 2px; /* Minimal padding */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    /* Removed the bulky box-shadow border for a cleaner look */
}

/* 4. Reduced image size */
.logo-icon-img {
    width: 32px !important; /* Significantly reduced size (from 40px) */
    height: 32px !important; 
    border-radius: 6px !important; /* Matched radius to scale */
}
/* --- End Polished Logo Styling --- */
.nav-links { 
    display: flex; 
    gap: 2.5rem; 
    list-style: none; 
    align-items: center; 
}
.nav-links > li > a:not(.btn) { 
    font-size: 0.95rem; 
    font-weight: 500; 
    color: var(--text-muted); 
}
.nav-links > li > a:not(.btn):hover { 
    color: var(--brand-accent); 
}

/* New Nav CTA Styling */
.desktop-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin-left: 1rem; /* Space out the links */
}
.login-text-link {
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
}
.nav-demo-btn {
    padding: 0.4rem 1.25rem; 
    font-size: 0.85rem;
    height: 36px;
}
/* New Login Link Style (Replaces the Button look) */
.nav-login-link {
    font-weight: 500;
    font-size: 0.95rem; /* Consistent with other nav links */
    color: var(--text-muted);
    padding: 0.5rem 0.75rem; /* Gives a good clickable area */
    transition: color 0.2s;
}
.nav-login-link:hover {
    color: var(--brand-accent);
}

.nav-demo-btn {
    padding: 0.4rem 1.25rem; 
    font-size: 0.85rem;
    height: 36px;
}
/* The .nav-login-btn block is now obsolete and removed */
.mobile-cta-group {
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 0.5rem;
}
.mobile-cta-group .btn-primary, .mobile-cta-group .btn-secondary {
    white-space: nowrap; /* Prevent "Demo" or "Login" from wrapping */
}

/* --- HERO SECTION --- */
.hero { 
    padding: 8rem 0 3rem;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--brand-primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content {
    padding-bottom: 0;
}

.hero-subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-muted); line-height: 1.6; }

.hero-stats {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; 
    margin: 1.5rem 0 1.5rem;
    border-top: 1px solid var(--border-subtle); 
    padding-top: 1.5rem;
}
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem; font-weight: 700; color: var(--brand-primary); display: block;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

.hero-cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-section { 
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.75rem;
}

.app-store-section .small-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.app-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.app-badges a {
    display: inline-block;
}

.app-badges img {
    width: auto !important;
    display: block;
}

.hero-screenshot-container {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: white;
    padding: 0.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 0;
}
.hero-screenshot-container img { width: 100%; border-radius: 12px; display: block; }
.hero-screenshot-caption { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }

/* --- PROBLEM SECTION --- */
.problem-solution { padding: 3rem 0 6rem; background: #ffffff; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-tag {
    color: var(--brand-accent); font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; display: block;
}
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }

.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.problem-card {
    background: var(--brand-surface); padding: 2.5rem; border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle); transition: 0.3s;
}
.problem-card:hover { border-color: #ef4444; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.problem-stat { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; color: #ef4444; margin-bottom: 0.5rem; }
.problem-source { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; font-style: italic; border-top: 1px solid var(--border-subtle); padding-top: 0.5rem; }

.solution-box {
    background: linear-gradient(135deg, var(--brand-primary), #1e293b);
    color: white; padding: 3rem; border-radius: 20px; text-align: center;
    box-shadow: var(--shadow-xl);
}
.solution-box h2 { color: white; margin-bottom: 1rem; }
.solution-box p { color: #cbd5e1; font-size: 1.1rem; max-width: 800px; margin: 0 auto; }

/* --- LOGIN SECTION (Restyled) --- */
.login-section { padding: 4rem 0; background: #F1F5F9; }
.login-container {
    max-width: 450px; margin: 0 auto; background: white; padding: 2.5rem;
    border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle);
}
.login-container input {
    width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 1px solid var(--border-subtle);
    border-radius: 8px; font-family: 'Inter', sans-serif;
}
.btn-submit { width: 100%; background: var(--brand-accent); color: white; padding: 0.8rem; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; }

/* --- FEATURES (Bento Grid) --- */
.features { padding: 6rem 0; background: var(--brand-surface); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
    background: white; padding: 2rem; border-radius: 16px; border: 1px solid var(--border-subtle);
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
    font-size: 2rem; margin-bottom: 1rem; display: inline-block;
    background: #E0F2FE; width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}

/* --- HOW IT WORKS (Vertical Timeline) --- */
.how-it-works { padding: 6rem 0; background: white; }
.steps { max-width: 800px; margin: 0 auto; position: relative; }
.steps::before {
    content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--border-subtle);
}
.step {
    padding-left: 80px; position: relative; margin-bottom: 4rem;
}
.step-number {
    position: absolute; left: 0; top: 0; width: 50px; height: 50px;
    background: var(--brand-accent); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: 'JetBrains Mono'; border: 4px solid white;
    z-index: 2;
}
.mobile-screenshot-wrapper {
    background: #F8FAFC; padding: 1rem; border-radius: 12px;
    border: 1px solid var(--border-subtle); margin-top: 1.5rem; display: inline-block;
}
.mobile-screenshot { max-width: 250px; width: 100%; border-radius: 8px; box-shadow: var(--shadow-md); }

/* --- ADMIN SECTION --- */
.admin-section-with-screenshot {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; margin-top: 3rem;
}
.check-list-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.check-icon-green { color: #10b981; font-size: 1.2rem; font-weight: bold; }

/* --- COMPARISON TABLE --- */
.comparison-section { padding: 6rem 0; background: #ffffff; }
.comparison-table-wrapper {
    border-radius: 16px; overflow: hidden; border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md); margin-bottom: 3rem;
    overflow-x: auto; /* Ensure horizontal scroll on mobile */
}
.comparison-table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 700px; /* Force minimum width for mobile */
}
.comparison-table th { padding: 1.5rem; background: var(--brand-surface); font-weight: 600; text-align: center; border-bottom: 1px solid var(--border-subtle); }
.comparison-table th:first-child { text-align: left; padding-left: 2rem; }
.comparison-table th.highlight-col { background: #eff6ff; color: var(--brand-accent); }
.comparison-table td { padding: 1.25rem; border-bottom: 1px solid var(--border-subtle); text-align: center; color: var(--text-muted); }
.comparison-table td:first-child { text-align: left; padding-left: 2rem; font-weight: 500; color: var(--text-main); }
.comparison-table td.highlight-col { background: #eff6ff; font-weight: 600; color: var(--brand-primary); }

.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.highlight-item { padding: 1.5rem; background: #F0FDFA; border-left: 4px solid #14b8a6; border-radius: 8px; }

/* --- PRICING --- */
.pricing { padding: 6rem 0; background: var(--brand-surface); }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.pricing-card {
    background: white; padding: 2.5rem; border-radius: 20px; text-align: center;
    border: 1px solid var(--border-subtle); transition: 0.3s;
    position: relative; /* For the badge */
}
.pricing-card.featured {
    border: 2px solid var(--brand-accent); box-shadow: var(--shadow-xl); transform: scale(1.05); z-index: 2;
}
.badge-most-popular {
    position: absolute; top: 1rem; right: 1rem; 
    background: var(--brand-accent); color: white; 
    padding: 0.25rem 0.75rem; border-radius: 99px; 
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.price { font-size: 3rem; font-weight: 700; color: var(--brand-primary); margin: 1.5rem 0; font-family: 'JetBrains Mono'; }
.price-unit { font-size: 1rem; color: var(--text-muted); font-weight: 400; font-family: 'Inter'; }
.pricing-features { text-align: left; list-style: none; margin: 2rem 0; }
.pricing-features li { margin-bottom: 0.8rem; color: var(--text-muted); padding-left: 1.5rem; position: relative; }
.pricing-features li::before { content: "✓"; color: var(--brand-accent); position: absolute; left: 0; font-weight: bold; }

/* --- FAQ --- */
.faq { padding: 6rem 0; background: white; }
.faq-item { border: 1px solid var(--border-subtle); border-radius: 12px; margin-bottom: 1rem; overflow: hidden; }
.faq-question {
    width: 100%; padding: 1.5rem; text-align: left; background: white; border: none;
    font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between;
}
.faq-question:hover { color: var(--brand-accent); }
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out; 
    background: #F8FAFC;
    opacity: 1 !important;
    transform: none !important;
}
.faq-answer-content { padding: 1.5rem; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 500px; }

/* --- FOOTER --- */
footer { background: var(--brand-primary); color: white; padding: 5rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-section h3 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-section a { display: block; color: #94a3b8; margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-section a:hover { color: white; }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); z-index: 2000;
    align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: white; padding: 2.5rem; border-radius: 20px; width: 90%; max-width: 450px; position: relative;
}
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ===================================================================
   ANALYSIS PAGE SPECIFIC STYLES
   =================================================================== */

/* Analysis Container */
.analysis-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 1rem;
}

/* TABS - Modern Pill Design */
.tabs-container {
    max-width: 1400px;
    margin: 6rem auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.tabs {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.tab {
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.tab:hover {
    color: var(--brand-accent);
    background: rgba(37, 99, 235, 0.08);
}

.tab.active {
    color: white;
    background: var(--brand-accent);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

/* Record Card */
.record-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    border: 1px solid var(--border-subtle);
}

/* Recording Interface */
.recording-interface {
    max-width: 600px;
    margin: 0 auto;
}

.status-idle, .status-recording, .status-processing {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.status-idle {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(20, 184, 166, 0.05));
    border: 2px dashed var(--border-subtle);
}

.status-recording {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.status-processing {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 2px solid rgba(245, 158, 11, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.mic-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.status-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

/* Timer */
.timer-container {
    text-align: center;
    margin-bottom: 2rem;
}

.timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--danger-red);
}

/* Control Buttons */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Space Grotesk', sans-serif;
}

.start-btn {
    background: var(--brand-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.start-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.stop-btn {
    background: var(--danger-red);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.stop-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Recording Tips */
.recording-tips {
    background: var(--brand-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--brand-accent);
}

.recording-tips h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.recording-tips ul {
    list-style: none;
    padding-left: 0;
}

.recording-tips li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.recording-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: 700;
}

/* Processing State */
.processing-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--brand-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

.processing-state h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.processing-state p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border-subtle);
    border-radius: 999px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-teal));
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Results Interface */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--brand-accent);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.action-btn.secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-subtle);
}

.action-btn.secondary:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Score Overview */
.score-overview {
    background: linear-gradient(135deg, var(--brand-primary), #1e293b);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.score-main {
    text-align: center;
}

.score-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.score-value {
    font-size: 5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-max {
    font-size: 2rem;
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
}

.score-rating {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
}

.score-rating.excellent {
    background: var(--success-green);
}

.score-rating.good {
    background: var(--brand-teal);
}

.score-rating.needs-improvement {
    background: #f59e0b;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.breakdown-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.breakdown-max {
    font-size: 1.2rem;
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}

.breakdown-item.clinical {
    border-left: 4px solid var(--brand-accent);
}

.breakdown-item.humanistic {
    border-left: 4px solid var(--brand-teal);
}

/* Detail Sections */
.detail-sections {
    display: grid;
    gap: 2rem;
}

.detail-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.detail-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-subtle);
}

/* Rubric Scores */
.rubric-scores {
    display: grid;
    gap: 1rem;
}

.rubric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--brand-surface);
    border-radius: 8px;
}

.rubric-label {
    flex: 0 0 200px;
    font-weight: 600;
    color: var(--text-dark);
}

.rubric-bar {
    flex: 1;
    height: 12px;
    background: var(--border-subtle);
    border-radius: 999px;
    overflow: hidden;
}

.rubric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-teal));
    border-radius: 999px;
    transition: width 0.5s ease;
}

.rubric-score {
    flex: 0 0 80px;
    text-align: right;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--brand-accent);
    font-size: 1.1rem;
}

/* Chart Container */
.chart-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Transcript Box */
.transcript-box {
    background: var(--brand-surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    max-height: 400px;
    overflow-y: auto;
}

.transcript-box pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Feedback Box */
.feedback-box, .feedback-content {
    background: var(--brand-surface);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--brand-accent);
    line-height: 1.8;
    color: var(--text-medium);
}

.feedback-box h4, .feedback-content h4 {
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.feedback-box h5, .feedback-content h5 {
    color: var(--text-dark);
    margin: 1rem 0 0.5rem;
}

.feedback-box p, .feedback-content p {
    margin-bottom: 1rem;
}

.feedback-box strong, .feedback-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.info-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.results-table thead {
    background: var(--brand-primary);
    color: white;
}

.results-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.results-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tbody tr:hover {
    background: var(--brand-surface);
}

/* Score Badge */
.score-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

.score-badge.excellent {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 2px solid var(--success-green);
}

.score-badge.good {
    background: rgba(20, 184, 166, 0.1);
    color: var(--brand-teal);
    border: 2px solid var(--brand-teal);
}

.score-badge.needs-improvement {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.view-btn, .download-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Space Grotesk', sans-serif;
}

.view-btn {
    background: var(--brand-accent);
    color: white;
}

.view-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

.download-btn {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-subtle);
}

.download-btn:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

/* Modal Large */
.modal-large {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large h2 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 900px) {
    /* Layout Adjustments */
    .hero-layout, .admin-section-with-screenshot { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Hero Stats Mobile */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-store-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .app-badges {
        flex-wrap: wrap;
    }
    
    /* Nav CTA Switch (Prioritize Demo/Login) */
    .nav-links { display: none; } /* Hide full desktop menu */
    .mobile-cta-group { display: flex; } /* Show mobile CTA group */
    .desktop-cta-group { display: none !important; } /* Ensure desktop CTA is hidden */

    /* Timeline Adjustments */
    .steps::before { left: 20px; }
    .step { padding-left: 60px; }
    .step-number { width: 40px; height: 40px; left: 0; }
    
    /* Pricing Card Mobile Compatibility */
    .pricing-card.featured { transform: none; } /* Remove the scale transform on small screens */
    
    /* Analysis Page Responsive */
    .score-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .score-value {
        font-size: 3.5rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .record-card {
        padding: 2rem 1.5rem;
    }
    
    .tabs-container {
        padding: 0 1rem;
    }
    
    .tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}