/* ===== ComplAI Landing Page - Premium Enterprise SaaS ===== */
/* Used by: landing/index.php */

:root {
    --accent: #1c1917;
    --accent-dark: #0c0a09;
    --accent-light: #f5f5f4;
    --accent-blue: #0284c7;
    --accent-blue-light: #e0f2fe;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --bg: #ffffff;
    --bg-muted: #fafaf9;
    --bg-subtle: #f7f6f5;
    --bg-dark: #1c1917;
    --bg-dark-card: #292524;
    --border: #e7e5e4;
    --border-light: #f5f5f4;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0284c7;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.05);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.09);
    --shadow-mockup: 0 2px 4px rgba(0,0,0,0.02), 0 12px 32px rgba(0,0,0,0.07), 0 24px 56px rgba(0,0,0,0.05);
    --shadow-mockup-hover: 0 4px 8px rgba(0,0,0,0.03), 0 20px 48px rgba(0,0,0,0.09), 0 36px 72px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ===== Loading ===== */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.4s ease;
}
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay.hidden { opacity: 0; pointer-events: none; }

/* ===== Navigation ===== */
.navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1000;
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.brand-icon {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
}
.brand-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary) !important; background: var(--bg-muted); }

.btn-nav {
    background: var(--accent) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}
.btn-nav:hover { background: var(--accent-dark) !important; }

/* ===== Hero Section ===== */
.hero-section {
    padding: 8.5rem 0 6rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 60%, #f5f5f4 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 50%; height: 100%;
    background: radial-gradient(ellipse at 70% 40%, rgba(28,25,23,0.025) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { max-width: 500px; }
.hero-badge {
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
    border: 1px solid var(--border);
    padding: 0.4375rem 1.125rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hero-badge i { color: var(--accent); }

.hero-section h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Hero Trust Row */
.hero-trust-row {
    display: flex; flex-wrap: wrap; gap: 0.625rem 1.5rem;
    margin-bottom: 2.25rem;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary);
}
.hero-trust-item i { color: var(--success); font-size: 0.875rem; }

.hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-flex; align-items: center;
}
.btn-accent:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-dark {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}
.btn-outline-dark:hover { border-color: var(--text-muted); background: var(--bg-muted); color: var(--text-primary); }

/* Hero Layered Preview */
.hero-preview {
    position: relative;
    padding-left: 1rem;
    min-height: 480px;
}

/* Shared Panel Styles */
.hero-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Main Dashboard Panel */
.hero-panel-main {
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 16px 40px rgba(0,0,0,0.07), 0 40px 80px rgba(0,0,0,0.05);
}
.panel-browser-bar {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.browser-dots { display: flex; gap: 0.375rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }
.browser-url {
    flex: 1; text-align: center;
    font-size: 0.6875rem; color: var(--text-muted);
    background: white; border: 1px solid var(--border);
    border-radius: 4px; padding: 0.1875rem 0.75rem;
}
/* App Layout: Sidebar + Dashboard */
.hero-app-layout {
    display: flex;
    min-height: 360px;
}
.hero-sidebar {
    width: 48px;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 0;
    gap: 0.25rem;
    flex-shrink: 0;
    border-radius: 0 0 0 var(--radius-xl);
}
.hero-sidebar-brand {
    margin-bottom: 0.75rem;
}
.hero-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 0.5625rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
}
.hero-sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
}
.hero-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    cursor: default;
    transition: var(--transition);
}
.hero-sidebar-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
}
.hero-sidebar-bottom {
    margin-top: auto;
}
.hero-dashboard {
    flex: 1;
    padding: 0.875rem;
    min-width: 0;
}
.panel-body { padding: 0.875rem; }

/* Panel Top Bar */
.panel-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
}
.panel-topbar-title {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.8125rem; font-weight: 700; color: var(--text-primary);
}
.topbar-icon {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--accent); color: white; font-size: 0.75rem;
}
.panel-topbar-meta {
    font-size: 0.6875rem; color: var(--text-muted); font-weight: 500;
}

/* Panel KPI Strip */
.panel-kpi-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.panel-kpi {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.5rem 0.625rem; background: white; text-align: center;
}
.panel-kpi-value { font-size: 1.125rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.panel-kpi-label { font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 0.125rem; }
.panel-kpi-success { border-color: rgba(22,163,74,0.3); background: #f0fdf4; }
.panel-kpi-success .panel-kpi-value { color: var(--success); }
.panel-kpi-warning { border-color: rgba(245,158,11,0.3); background: #fffbeb; }
.panel-kpi-warning .panel-kpi-value { color: var(--warning); }
.panel-kpi-danger { border-color: rgba(220,38,38,0.3); background: #fef2f2; }
.panel-kpi-danger .panel-kpi-value { color: var(--danger); }

/* Panel Table */
.panel-table {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.panel-table-head {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4375rem 0.625rem;
    background: var(--bg-muted); border-bottom: 1px solid var(--border);
    font-size: 0.5625rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--text-muted);
}
.panel-table-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4375rem 0.625rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.6875rem;
}
.panel-table-row:last-child { border-bottom: none; }
.col-company { flex: 2; display: flex; align-items: center; gap: 0.375rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-cin { flex: 2.5; font-size: 0.625rem; color: var(--text-muted); font-family: monospace; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-status { flex: 1.2; }
.col-progress { flex: 1.5; display: flex; align-items: center; gap: 0.375rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-green { background: var(--success); }
.status-amber { background: var(--warning); }
.status-red { background: var(--danger); }
.status-pill {
    display: inline-block; font-size: 0.5625rem; font-weight: 600;
    padding: 0.125rem 0.5rem; border-radius: 50px;
}
.pill-success { background: #dcfce7; color: #15803d; }
.pill-warning { background: #fef3c7; color: #a16207; }
.pill-danger { background: #fee2e2; color: #b91c1c; }
.progress-track { flex: 1; height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: 2px; width: 0; transition: width 0.8s ease-out; }
.fill-success { background: var(--success); }
.fill-warning { background: var(--warning); }
.fill-danger { background: var(--danger); }
.progress-text { font-size: 0.5625rem; font-weight: 700; color: var(--text-muted); min-width: 28px; text-align: right; }

/* Floating Activity Panel */
.hero-panel-activity {
    position: absolute;
    bottom: -20px; left: -30px;
    width: 280px; z-index: 2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 20px 48px rgba(0,0,0,0.06);
}
.floating-panel-header {
    display: flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.6875rem; font-weight: 700; color: var(--text-primary);
}
.floating-panel-header i { color: var(--accent); font-size: 0.875rem; }
.floating-panel-body { padding: 0.5rem 0.75rem; }
.activity-item {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.375rem 0; border-bottom: 1px solid var(--border-light);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 0.375rem; flex-shrink: 0; }
.activity-dot-success { background: var(--success); }
.activity-dot-info { background: var(--info); }
.activity-dot-warning { background: var(--warning); }
.activity-text { flex: 1; min-width: 0; }
.activity-text strong { display: block; font-size: 0.625rem; font-weight: 600; color: var(--text-primary); }
.activity-text span { font-size: 0.5625rem; color: var(--text-muted); }
.activity-time { font-size: 0.5625rem; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }

/* Floating Workflow Panel */
.hero-panel-workflow {
    position: absolute;
    bottom: -30px; right: -20px;
    width: 300px; z-index: 3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 20px 48px rgba(0,0,0,0.06);
}
.hero-wf-body {
    padding: 0.5rem 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hero-wf-card {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-muted);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.hero-wf-bar {
    width: 3px;
    border-radius: 3px;
    flex-shrink: 0;
    align-self: stretch;
}
.hero-wf-bar-warn { background: var(--warning); }
.hero-wf-bar-success { background: var(--success); }
.hero-wf-content {
    flex: 1;
    min-width: 0;
}
.hero-wf-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}
.hero-wf-meta {
    font-size: 0.5625rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}
.hero-wf-progress {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.hero-wf-fill {
    height: 100%;
    background: var(--warning);
    border-radius: 2px;
    width: 0;
    transition: width 0.8s ease-out;
}
.hero-wf-fill-done {
    background: var(--success);
}
.hero-wf-step {
    font-size: 0.5625rem;
    color: var(--text-muted);
    font-weight: 500;
}
.hero-wf-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.hero-wf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    cursor: default;
}
.hero-wf-done {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 6px;
    background: #dcfce7;
    color: var(--success);
    font-size: 0.875rem;
}

/* Floating Compliance Score Card */
.hero-panel-score {
    position: absolute;
    top: 40px; right: -15px;
    z-index: 2;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 20px 48px rgba(0,0,0,0.06);
}
.score-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-bg {
    fill: none; stroke: var(--border); stroke-width: 3;
}
.score-ring-fill {
    fill: none; stroke: var(--success); stroke-width: 3;
    stroke-linecap: round;
}
.score-value {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.625rem; font-weight: 800; color: var(--text-primary);
}
.score-detail strong { display: block; font-size: 0.6875rem; font-weight: 700; color: var(--text-primary); }
.score-trend { font-size: 0.5625rem; color: var(--success); font-weight: 600; }
.score-trend i { font-size: 0.75rem; vertical-align: middle; }

/* ===== Sections ===== */
.section {
    padding: 6.5rem 0;
    position: relative;
}
.section-muted {
    background: linear-gradient(180deg, #f8f7f6 0%, #f5f4f3 50%, #f8f7f6 100%);
    border-top: 1px solid rgba(231,229,228,0.7);
    border-bottom: 1px solid rgba(231,229,228,0.7);
}
.section-dark {
    background: linear-gradient(180deg, #1c1917 0%, #292524 40%, #1c1917 100%);
    position: relative;
}
.section-dark::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-header { text-align: center; margin-bottom: 4rem; max-width: 660px; margin-left: auto; margin-right: auto; }
.section-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
    border: 1px solid var(--border);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.badge-light {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.125rem;
    letter-spacing: -0.03em;
    line-height: 1.12;
}
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.75;
}
.text-white { color: white !important; }

/* ===== Problem Cards ===== */
.problem-card {
    display: flex; gap: 1.25rem; align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-card);
}
.problem-card:hover { box-shadow: var(--shadow-card-hover); border-color: rgba(220,38,38,0.12); transform: translateY(-3px); }
.problem-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: 10px;
    flex-shrink: 0;
    color: var(--danger);
    font-size: 1.125rem;
}
.problem-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.problem-card p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; line-height: 1.7; }

/* ===== Features Overview Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.feature-overview-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.feature-overview-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(28,25,23,0.15);
}
.feature-overview-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #44403c 100%);
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(28,25,23,0.12);
}
.feature-overview-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.feature-overview-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem;
    flex: 1;
}
.feature-overview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition);
}
.feature-overview-card:hover .feature-overview-link {
    gap: 0.5rem;
}
.features-cta {
    text-align: center;
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.125rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== Enterprise Trust Section ===== */
.enterprise-trust-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-muted) 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.trust-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}
.trust-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

/* Featured card spans full width on first row */
.trust-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 1.5rem;
    row-gap: 0.25rem;
    padding: 2.5rem 2.25rem;
    background: linear-gradient(135deg, #fafaf9 0%, #ffffff 50%, #fafaf9 100%);
    border-color: rgba(28,25,23,0.1);
}
.trust-card-featured .trust-card-icon {
    grid-row: 1 / 3;
    align-self: start;
    width: 56px;
    height: 56px;
    font-size: 1.375rem;
}
.trust-card-featured h4 {
    align-self: end;
    font-size: 1.25rem;
    margin-bottom: 0;
}
.trust-card-featured p {
    grid-column: 2;
    max-width: 640px;
}
.trust-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #78716c 100%);
}

.trust-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.trust-icon-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #44403c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(28,25,23,0.15);
}
.trust-icon-blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}
.trust-icon-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #a16207;
}
.trust-icon-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}
.trust-icon-violet {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
}

.trust-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}
.trust-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* ===== Feature Cards ===== */
/* ===== Visual Feature Sections ===== */
.feature-intro { padding-bottom: 1rem; }
.feature-intro .section-header { margin-bottom: 2.5rem; }

/* Feature Module Navigation Strip */
.feature-module-strip {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.feature-module-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}
.feature-module-pill:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-muted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.feature-module-pill i {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.feature-section { padding: 6rem 0; }
.feature-section.section-muted { padding: 6rem 0; }

/* White feature sections get a subtle bottom separator */
.feature-section:not(.section-muted) {
    background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
}

/* Feature Number */
.feature-number {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'Inter', monospace;
}

/* Feature Text Side */
.feature-text-badge {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #44403c 100%);
    color: white;
    font-size: 1.125rem; margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(28,25,23,0.15);
}
.feature-text h3 {
    font-size: 1.625rem; font-weight: 800; color: var(--text-primary);
    margin-bottom: 0.875rem; letter-spacing: -0.02em; line-height: 1.2;
}
.feature-text-desc {
    font-size: 0.9375rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 2rem;
}
.feature-text-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.625rem;
}
.feature-text-list li {
    display: flex; align-items: center; gap: 0.625rem;
    font-size: 0.9375rem; font-weight: 500; color: var(--text-primary);
    line-height: 1.4;
}
.feature-text-list li i { color: var(--success); font-size: 0.9375rem; flex-shrink: 0; }

/* Feature Mockup Panel */
.feature-mockup {
    position: relative;
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-mockup);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.feature-mockup::before {
    content: '';
    position: absolute;
    top: -40px; left: -40px; right: -40px; bottom: -40px;
    background: radial-gradient(ellipse at 50% 50%, rgba(28,25,23,0.03) 0%, transparent 70%);
    border-radius: var(--radius-xl);
    z-index: -1;
    pointer-events: none;
}
.feature-mockup:hover {
    box-shadow: var(--shadow-mockup-hover);
    transform: translateY(-3px);
}
.fm-browser-bar {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-muted); border-bottom: 1px solid var(--border);
}
.fm-url {
    flex: 1; text-align: center;
    font-size: 0.6875rem; color: var(--text-muted);
    background: white; border: 1px solid var(--border);
    border-radius: 4px; padding: 0.1875rem 0.75rem;
}
.fm-body { padding: 0.875rem; }

/* FM Top Bar */
.fm-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem; gap: 0.5rem;
}
.fm-topbar-left { display: flex; align-items: center; gap: 0.5rem; }
.fm-topbar-right { display: flex; align-items: center; gap: 0.375rem; }
.fm-icon-badge {
    width: 28px; height: 28px; border-radius: 6px;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8125rem; flex-shrink: 0;
}
.fm-title { font-size: 0.8125rem; font-weight: 700; color: var(--text-primary); }
.fm-subtitle { font-size: 0.625rem; color: var(--text-muted); }

/* FM Badges & Buttons */
.fm-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.5625rem; font-weight: 600; padding: 0.1875rem 0.5rem;
    border-radius: 50px;
}
.fm-badge-info { background: #e0f2fe; color: #0369a1; }
.fm-btn {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.625rem; font-weight: 600; padding: 0.25rem 0.5rem;
    border-radius: 4px; cursor: default;
}
.fm-btn-primary { background: var(--accent); color: white; }
.fm-btn-outline { background: white; color: var(--text-primary); border: 1px solid var(--border); }
.fm-btn-sm { font-size: 0.5625rem; padding: 0.1875rem 0.375rem; }

/* FM Stepper (Onboarding) */
.fm-stepper {
    display: flex; align-items: center; gap: 0;
    margin-bottom: 0.75rem; padding: 0.5rem 0;
}
.fm-step {
    display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.5625rem; font-weight: 500; color: var(--text-muted);
    white-space: nowrap;
}
.fm-step-dot {
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.5rem; font-weight: 700;
    border: 1.5px solid var(--border); color: var(--text-muted);
    background: white; flex-shrink: 0;
}
.fm-step-done .fm-step-dot { background: var(--success); border-color: var(--success); color: white; }
.fm-step-done { color: var(--text-primary); }
.fm-step-current .fm-step-dot { background: var(--accent); border-color: var(--accent); color: white; }
.fm-step-current { color: var(--text-primary); font-weight: 600; }
.fm-step-line {
    flex: 1; height: 2px; background: var(--border); margin: 0 0.25rem;
    min-width: 12px;
}
.fm-line-done { background: var(--success); }

/* FM Form (Onboarding) */
.fm-form { margin-bottom: 0.75rem; }
.fm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.fm-label { font-size: 0.5625rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.1875rem; display: flex; align-items: center; gap: 0.25rem; }
.fm-source { font-size: 0.5rem; color: #0369a1; font-weight: 600; }
.fm-source i { font-size: 0.5rem; }
.fm-input {
    padding: 0.3125rem 0.5rem; border: 1px solid var(--border); border-radius: 4px;
    font-size: 0.625rem; font-weight: 500; color: var(--text-primary);
    background: white; display: flex; align-items: center; gap: 0.25rem;
}
.fm-input-locked { background: #f0fdf4; border-color: rgba(22,163,74,0.3); }
.fm-input-locked i { color: var(--success); font-size: 0.5rem; margin-left: auto; }
.fm-prefix { color: var(--text-muted); font-weight: 600; }

/* FM Footer */
.fm-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.5rem; border-top: 1px solid var(--border-light);
}
.fm-autosave { font-size: 0.5625rem; color: var(--success); font-weight: 500; display: flex; align-items: center; gap: 0.25rem; }
.fm-actions { display: flex; gap: 0.375rem; }

/* FM Filter Bar (Workflows) */
.fm-filter-bar {
    display: flex; align-items: center; gap: 0.375rem;
    margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.fm-filter-tab {
    font-size: 0.5625rem; font-weight: 500; color: var(--text-muted);
    padding: 0.1875rem 0.5rem; border-radius: 4px; cursor: default;
}
.fm-filter-tab.active { background: var(--accent); color: white; }
.fm-tab-warn.active { background: var(--warning); }
.fm-tab-success.active { background: var(--success); }
.fm-tab-danger.active { background: var(--danger); }
.fm-count { font-size: 0.5rem; opacity: 0.7; }

/* FM Workflow Cards */
.fm-wf-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.fm-wf-card {
    display: flex; align-items: stretch; gap: 0.625rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.5rem 0.625rem; background: white;
}
.fm-wf-bar { width: 3px; border-radius: 2px; flex-shrink: 0; }
.fm-wf-bar-warning { background: var(--warning); }
.fm-wf-bar-success { background: var(--success); }
.fm-wf-content { flex: 1; min-width: 0; }
.fm-wf-title { font-size: 0.6875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.125rem; }
.fm-wf-meta { font-size: 0.5625rem; color: var(--text-muted); margin-bottom: 0.375rem; }
.fm-wf-meta i { font-size: 0.5625rem; vertical-align: middle; }
.fm-priority {
    font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.0625rem 0.3125rem; border-radius: 3px; margin-left: 0.25rem;
}
.fm-priority-high { background: #fee2e2; color: #b91c1c; }
.fm-priority-med { background: #fef3c7; color: #a16207; }
.fm-priority-low { background: #e0f2fe; color: #0369a1; }
.fm-wf-progress-bar { height: 3px; background: var(--border-light); border-radius: 2px; overflow: hidden; margin-bottom: 0.25rem; }
.fm-wf-progress-fill { height: 100%; background: var(--warning); border-radius: 2px; width: 0; transition: width 0.8s ease-out; }
.fm-fill-complete { background: var(--success); }
.fm-wf-step-info { font-size: 0.5rem; color: var(--text-muted); }
.fm-wf-actions { display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; flex-shrink: 0; }
.fm-approved-label { font-size: 0.5625rem; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 0.1875rem; }

/* FM Stats Row (Registers) */
.fm-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.375rem; margin-bottom: 0.625rem; }
.fm-stat {
    text-align: center; padding: 0.375rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: white;
}
.fm-stat-val { display: block; font-size: 0.75rem; font-weight: 800; color: var(--text-primary); }
.fm-stat-label { display: block; font-size: 0.5rem; color: var(--text-muted); font-weight: 500; }

/* FM Table (Registers) */
.fm-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.375rem; }
.fm-table-head {
    display: flex; gap: 0.5rem; padding: 0.375rem 0.625rem;
    background: var(--bg-muted); border-bottom: 1px solid var(--border);
    font-size: 0.5rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--text-muted);
}
.fm-table-row {
    display: flex; gap: 0.5rem; padding: 0.375rem 0.625rem;
    border-bottom: 1px solid var(--border-light); font-size: 0.625rem;
}
.fm-table-row:last-child { border-bottom: none; }
.fm-col-name { flex: 2.5; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-col-shares { flex: 1.5; font-family: monospace; font-size: 0.5625rem; color: var(--text-secondary); }
.fm-col-pct { flex: 0.8; font-weight: 600; color: var(--text-primary); }
.fm-col-cat { flex: 1.2; }
.fm-cat-pill {
    font-size: 0.5rem; font-weight: 600; padding: 0.0625rem 0.375rem;
    border-radius: 50px; display: inline-block;
}
.fm-cat-promoter { background: #f3e8ff; color: #7e22ce; }
.fm-cat-inst { background: #e0f2fe; color: #0369a1; }
.fm-table-footer { font-size: 0.5rem; color: var(--text-muted); padding: 0.25rem 0.625rem; text-align: center; }

/* FM Doc Tabs & List (Documents) */
.fm-doc-tabs {
    display: flex; gap: 0.25rem; margin-bottom: 0.625rem;
    border-bottom: 1px solid var(--border-light); padding-bottom: 0.375rem;
}
.fm-doc-tab {
    font-size: 0.5625rem; font-weight: 500; color: var(--text-muted);
    padding: 0.1875rem 0.5rem; border-radius: 4px; cursor: default;
}
.fm-doc-tab.active { background: var(--accent-light); color: var(--text-primary); font-weight: 600; }
.fm-doc-list { display: flex; flex-direction: column; }
.fm-doc-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4375rem 0; border-bottom: 1px solid var(--border-light);
}
.fm-doc-row:last-child { border-bottom: none; }
.fm-doc-icon {
    width: 26px; height: 26px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; flex-shrink: 0;
}
.fm-doc-pdf { background: #fee2e2; color: #dc2626; }
.fm-doc-excel { background: #dcfce7; color: #16a34a; }
.fm-doc-info { flex: 1; min-width: 0; }
.fm-doc-name { font-size: 0.625rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-doc-meta { font-size: 0.5rem; color: var(--text-muted); }
.fm-doc-ver { font-weight: 700; color: var(--text-secondary); }
.fm-doc-status { font-size: 0.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.1875rem; white-space: nowrap; }
.fm-doc-approved { color: var(--success); }
.fm-doc-review { color: var(--warning); }
.fm-doc-draft { color: var(--text-muted); }
.fm-doc-filed { color: var(--info); }

/* FM Roles & Permissions (RBAC) */
.fm-roles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.fm-role-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.5rem; background: white;
}
.fm-role-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fm-role-header { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.375rem; }
.fm-role-icon {
    width: 24px; height: 24px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
}
.fm-role-admin { background: #1c1917; color: white; }
.fm-role-cs { background: #7e22ce; color: white; }
.fm-role-user { background: #0369a1; color: white; }
.fm-role-name { font-size: 0.625rem; font-weight: 700; color: var(--text-primary); }
.fm-role-count { font-size: 0.5rem; color: var(--text-muted); }
.fm-role-perms { display: flex; flex-wrap: wrap; gap: 0.1875rem; }
.fm-perm-pill {
    font-size: 0.4375rem; font-weight: 600; padding: 0.0625rem 0.3125rem;
    background: var(--bg-muted); border-radius: 3px; color: var(--text-secondary);
}
.fm-perm-full { background: #dcfce7; color: #15803d; }

/* Permission Matrix */
.fm-perm-matrix { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fm-perm-matrix-title {
    font-size: 0.5625rem; font-weight: 600; color: var(--text-secondary);
    padding: 0.375rem 0.5rem; background: var(--bg-muted); border-bottom: 1px solid var(--border);
}
.fm-perm-row {
    display: flex; align-items: center; padding: 0.3125rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.fm-perm-row:last-child { border-bottom: none; }
.fm-perm-row-head { background: var(--bg-muted); font-size: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.fm-perm-resource { flex: 2; font-size: 0.625rem; font-weight: 500; color: var(--text-primary); }
.fm-perm-row-head .fm-perm-resource { color: var(--text-muted); }
.fm-perm-action { flex: 1; font-size: 0.5rem; text-align: center; color: var(--text-muted); }
.fm-perm-check { flex: 1; text-align: center; font-size: 0.75rem; color: var(--success); }
.fm-perm-denied { color: #d4d4d8; }

/* FM Analytics */
.fm-analytics-kpi { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.fm-analytics-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.5rem; background: white; text-align: center;
}
.fm-analytics-warn { border-color: rgba(245,158,11,0.3); background: #fffbeb; }
.fm-analytics-score { font-size: 1.125rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.fm-score-unit { font-size: 0.75rem; }
.fm-analytics-label { font-size: 0.5rem; color: var(--text-muted); font-weight: 500; margin-top: 0.0625rem; }
.fm-analytics-trend { font-size: 0.5rem; font-weight: 700; margin-top: 0.125rem; }
.fm-trend-up { color: var(--success); }
.fm-trend-down { color: var(--danger); }

/* FM Chart */
.fm-chart-area { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.625rem; }
.fm-chart-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.5rem;
}
.fm-chart-title { font-size: 0.625rem; font-weight: 600; color: var(--text-primary); }
.fm-chart-legend { font-size: 0.5rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.fm-legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 0.1875rem; }
.fm-legend-success { background: var(--success); }
.fm-legend-warning { background: var(--warning); }
.fm-chart-visual { position: relative; display: flex; gap: 0.5rem; }
.fm-chart-y-axis {
    display: flex; flex-direction: column; justify-content: space-between;
    font-size: 0.4375rem; color: var(--text-muted); width: 28px; text-align: right;
    padding-bottom: 14px;
}
.fm-chart-bars-area { flex: 1; display: flex; align-items: flex-end; gap: 0.375rem; height: 80px; }
.fm-chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.fm-chart-bar-inner {
    width: 100%; border-radius: 3px 3px 0 0;
    background: rgba(22,163,74,0.3); height: 0;
    transition: height 0.8s ease-out;
}
.fm-bar-current { background: var(--success); }
.fm-chart-x-label { font-size: 0.4375rem; color: var(--text-muted); margin-top: 0.25rem; }
.fm-target-line {
    position: absolute; left: 34px; right: 0; top: 20%;
    border-top: 1px dashed var(--warning); opacity: 0.5;
}

/* ===== Product Screen Layout ===== */
.screen-sidebar {
    width: 180px;
    background: white;
    border-right: 1px solid var(--border);
    padding: 0.75rem;
    flex-shrink: 0;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding: 0.25rem;
}
.sidebar-brand-icon {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 0.5625rem;
    font-weight: 800;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    cursor: default;
}
.sidebar-link i { font-size: 0.875rem; }
.sidebar-link.active { background: var(--accent-light); color: var(--text-primary); font-weight: 600; }

.screen-main {
    flex: 1;
    padding: 1rem 1.25rem;
    overflow: hidden;
}

/* Screen top bar */
.screen-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}
.topbar-title { font-size: 0.8125rem; font-weight: 700; color: var(--text-primary); }
.topbar-subtitle { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.125rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.topbar-date {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.625rem; color: var(--text-muted);
    background: white; border: 1px solid var(--border);
    padding: 0.3125rem 0.625rem; border-radius: 6px;
}
.topbar-bell { position: relative; font-size: 1rem; color: var(--text-muted); }
.bell-dot {
    position: absolute; top: -2px; right: -2px;
    width: 6px; height: 6px;
    background: var(--danger);
    border-radius: 50%;
}

/* ===== Sidebar User ===== */
.sidebar-user {
    margin-top: auto;
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: linear-gradient(135deg, #e7e5e4, #d6d3d1);
    border-radius: 50%;
    font-size: 0.5rem; font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}
.sidebar-user-name { font-size: 0.5625rem; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.sidebar-user-role { font-size: 0.5rem; color: var(--text-muted); }
.screen-sidebar { display: flex; flex-direction: column; }

/* Sidebar register sublinks */
.sidebar-registers { padding: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.sidebar-section-title { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 0.25rem 0.5rem; margin-bottom: 0.25rem; }
.sidebar-sublink {
    display: block; padding: 0.25rem 0.5rem; border-radius: 4px;
    font-size: 0.5625rem; font-weight: 500; color: var(--text-secondary); text-decoration: none;
    cursor: default; transition: var(--transition);
}
.sidebar-sublink.active { background: var(--accent-light); color: var(--text-primary); font-weight: 600; }

/* Topbar avatar */
.topbar-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, var(--accent), #44403c);
    border-radius: 50%;
    font-size: 0.5rem; font-weight: 700;
    color: white;
}

/* ===== Dashboard Screen ===== */
.dash-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.dash-kpi {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    background: white;
}
.dash-kpi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.375rem; }
.dash-kpi-label { font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.dash-kpi-icon { font-size: 0.875rem; color: var(--accent); }
.icon-accent { color: var(--success); }
.icon-warn { color: var(--warning); }
.icon-danger { color: var(--danger); }
.dash-kpi-value { font-size: 1.375rem; font-weight: 800; color: var(--text-primary); }
.accent-value { color: var(--success); }
.warn-value { color: var(--warning); }
.danger-value { color: var(--danger); }
.dash-kpi-trend { font-size: 0.5625rem; font-weight: 600; margin-top: 0.25rem; }
.trend-up { color: var(--success); }
.dash-kpi-bar { height: 4px; background: rgba(22,163,74,0.15); border-radius: 2px; margin-top: 0.375rem; }
.dash-kpi-bar-fill { height: 100%; background: var(--success); border-radius: 2px; }
.dash-kpi-meta { font-size: 0.5625rem; color: var(--text-muted); margin-top: 0.25rem; }
.danger-meta { color: var(--danger); }
.kpi-highlight { border-color: rgba(22,163,74,0.25); background: #f0fdf4; }
.kpi-warn-bg { border-color: rgba(245,158,11,0.25); background: #fffbeb; }
.kpi-danger-bg { border-color: rgba(220,38,38,0.25); background: #fef2f2; }

/* Dashboard content */
.dash-content-row { display: grid; grid-template-columns: 3fr 2fr; gap: 0.5rem; }
.dash-companies, .dash-activity, .dash-chart-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dash-right-col { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-company-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.375rem 0.75rem;
    font-size: 0.5625rem; color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
}
.view-all-link { display: flex; align-items: center; gap: 0.125rem; color: var(--info); font-weight: 600; cursor: default; }

/* Donut chart widget */
.donut-wrapper { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; }
.donut-chart { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center;
}
.donut-pct { font-size: 0.75rem; font-weight: 800; color: var(--text-primary); }
.donut-legend { display: flex; flex-direction: column; gap: 0.375rem; }
.legend-item { display: flex; align-items: center; gap: 0.375rem; font-size: 0.5625rem; color: var(--text-secondary); }
.legend-item strong { color: var(--text-primary); margin-left: auto; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.legend-green { background: var(--success); }
.legend-amber { background: var(--warning); }
.legend-red { background: var(--danger); }
.dash-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-primary);
}
.dash-search {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.5625rem; color: var(--text-muted);
    background: white; border: 1px solid var(--border);
    padding: 0.25rem 0.5rem; border-radius: 4px;
}
.dash-search i { font-size: 0.625rem; }

.dash-company-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4375rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.625rem;
    transition: var(--transition);
}
.dash-company-row:last-child { border-bottom: none; }
.dash-company-row:hover { background: var(--bg-muted); }
.company-name { flex: 1; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.company-cin { font-size: 0.5625rem; color: var(--text-muted); font-family: monospace; white-space: nowrap; }
.company-progress { width: 48px; height: 3px; background: var(--border-light); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.cprog { display: block; height: 100%; background: var(--success); border-radius: 2px; }
.cprog-amber { background: var(--warning); }
.cprog-red { background: var(--danger); }
.company-pct { font-size: 0.5625rem; font-weight: 600; color: var(--text-muted); width: 28px; text-align: right; flex-shrink: 0; }

/* Activity */
.activity-item {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.4375rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 0.25rem; flex-shrink: 0; }
.activity-success { background: var(--success); }
.activity-info { background: var(--info); }
.activity-warn { background: var(--warning); }
.activity-danger { background: var(--danger); }
.activity-text { font-size: 0.625rem; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.activity-meta { font-size: 0.5625rem; color: var(--text-muted); margin-top: 0.125rem; }

/* ===== Onboarding Wizard Screen ===== */
.wizard-status {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.625rem; font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}
.status-inprogress { background: #fef3c7; color: #92400e; }

.wizard-stepper {
    display: flex; align-items: center; gap: 0;
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
}
.wizard-step {
    display: flex; flex-direction: column; align-items: center; gap: 0.375rem;
}
.step-num {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-size: 0.625rem; font-weight: 700;
    background: var(--border-light);
    color: var(--text-muted);
}
.step-done .step-num { background: var(--accent); color: white; }
.step-current .step-num { background: var(--accent-light); color: var(--text-primary); border: 2px solid var(--accent); }
.step-label { font-size: 0.5625rem; font-weight: 500; color: var(--text-muted); text-align: center; white-space: nowrap; }
.step-done .step-label, .step-current .step-label { color: var(--text-primary); }
.wizard-step-line { flex: 1; height: 2px; background: var(--border); min-width: 16px; }
.step-line-done { background: var(--accent); }

.wizard-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.wizard-form-header {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}
.wizard-form-step {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    background: var(--accent-light);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 0.625rem; font-weight: 700;
}
.wizard-form-title { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.wizard-form-subtitle { font-size: 0.5625rem; color: var(--text-muted); }
.wizard-form-body { padding: 1rem; }
.wizard-form-body label { font-size: 0.625rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0.25rem; display: block; }
.wizard-input {
    font-size: 0.75rem; font-weight: 500; color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.375rem 0.625rem;
    background: white;
    display: flex; align-items: center; justify-content: space-between;
}
.input-prefix { font-size: 0.625rem; color: var(--text-muted); margin-right: 0.25rem; }
.wizard-select i { color: var(--text-muted); }

.wizard-autosave {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: 0.75rem;
}
.autosave-badge {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.625rem; font-weight: 500;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
}
.autosave-source { font-size: 0.5625rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }

/* MCA source badges */
.mca-source-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.5625rem; font-weight: 600;
    background: #eff6ff; color: #1d4ed8;
    padding: 0.1875rem 0.5rem; border-radius: 50px;
    border: 1px solid #bfdbfe;
}
.field-source {
    display: inline-flex; align-items: center; gap: 0.125rem;
    font-size: 0.5rem; font-weight: 600;
    color: #1d4ed8; margin-left: 0.25rem;
}
.input-mca { background: #f8fafc; border-color: #bfdbfe; }
.input-lock { font-size: 0.625rem; color: var(--text-muted); margin-left: auto; }
.wizard-completion {
    margin-left: auto;
    font-size: 0.5625rem; font-weight: 600;
    color: var(--success);
    background: #ecfdf5;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
}

.wizard-nav {
    display: flex; align-items: center; justify-content: space-between;
}
.wizard-nav .btn-sm { font-size: 0.6875rem; padding: 0.375rem 0.75rem; }
.wizard-nav-info { font-size: 0.625rem; color: var(--text-muted); }

/* ===== Statutory Register Screen ===== */
.btn-mock {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 0.625rem; font-weight: 600;
    padding: 0.3125rem 0.625rem;
    border-radius: 6px;
    border: none;
    cursor: default;
}
.btn-mock-outline { background: white; border: 1px solid var(--border); color: var(--text-primary); }
.btn-mock-accent { background: var(--accent); color: white; }
.btn-mock-sm { font-size: 0.5625rem; padding: 0.25rem 0.5rem; }

.register-table {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.register-table table { width: 100%; border-collapse: collapse; }
.register-table thead { background: var(--bg-muted); }
.register-table th {
    font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.register-table td {
    font-size: 0.6875rem;
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}
.register-table tr:last-child td { border-bottom: none; }
.register-table tr:hover { background: var(--bg-muted); }
.folio { font-family: monospace; color: var(--info); font-weight: 600; }
.member-name { font-weight: 500; }
.shares { font-variant-numeric: tabular-nums; }
.date { color: var(--text-muted); }

.cat-badge {
    display: inline-block;
    font-size: 0.5625rem; font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
}
.cat-promoter { background: var(--accent-light); color: var(--text-primary); }
.cat-institutional { background: #eff6ff; color: #1d4ed8; }
.cat-fpi { background: #f5f3ff; color: #7c3aed; }

/* Register stats */
.register-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.375rem; margin-bottom: 0.625rem;
}
.reg-stat {
    background: white; border: 1px solid var(--border); border-radius: 6px;
    padding: 0.375rem 0.5rem; text-align: center;
}
.reg-stat-value { font-size: 0.75rem; font-weight: 700; color: var(--text-primary); display: block; }
.reg-stat-label { font-size: 0.5rem; color: var(--text-muted); display: block; }

/* Table enhancements */
.th-check { width: 24px; }
.mock-checkbox {
    display: inline-block; width: 12px; height: 12px;
    border: 1.5px solid var(--border); border-radius: 2px;
    vertical-align: middle;
}
.sort-icon { font-size: 0.5625rem; color: var(--text-muted); margin-left: 0.125rem; vertical-align: middle; }
.sort-active { color: var(--text-primary); }
.page-disabled { opacity: 0.4; }

.register-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0.625rem;
    font-size: 0.625rem; color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.register-pagination { display: flex; gap: 0.25rem; }
.page-btn {
    padding: 0.1875rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.5625rem; font-weight: 500;
    background: white;
    color: var(--text-secondary);
}
.page-active { background: var(--accent-light); border-color: var(--text-primary); color: var(--text-primary); }

/* ===== Workflow Screen ===== */
.wf-filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.625rem; gap: 0.5rem;
}
.wf-filter-tabs { display: flex; gap: 0.25rem; }
.wf-filter-tab {
    font-size: 0.5625rem; font-weight: 600; padding: 0.25rem 0.625rem;
    border-radius: 50px; color: var(--text-muted); background: var(--bg-muted);
    border: 1px solid var(--border); cursor: default; transition: var(--transition);
}
.wf-filter-tab.active { background: var(--accent); color: white; border-color: var(--accent); }
.wf-count { font-weight: 700; }

.approval-cards { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.approval-card {
    display: flex; align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 0;
    overflow: hidden;
}
.approval-left-bar { width: 3px; flex-shrink: 0; align-self: stretch; }
.approval-bar-warning { background: var(--warning); }
.approval-bar-success { background: var(--success); }
.approval-bar-danger { background: var(--danger); }
.approval-main { padding: 0.625rem 0.75rem; flex: 1; }
.approval-actions { padding: 0.625rem 0.75rem; flex-shrink: 0; display: flex; gap: 0.375rem; align-items: flex-start; }
.approval-pending { border-color: rgba(245,158,11,0.3); }

/* Approval progress bar */
.approval-progress-bar { height: 3px; background: var(--border-light); border-radius: 2px; margin-top: 0.375rem; }
.approval-progress-fill { height: 100%; background: var(--warning); border-radius: 2px; transition: width 0.4s ease; }
.approval-fill-complete { background: var(--success); }
.approval-step-info { font-size: 0.5rem; color: var(--text-muted); margin-top: 0.25rem; }
.approval-title { font-size: 0.6875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.125rem; }
.approval-company { font-size: 0.5625rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.approval-details {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.approval-details span {
    display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.5625rem; color: var(--text-secondary);
}
.approval-details i { font-size: 0.6875rem; color: var(--text-muted); }
.approved-label {
    display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.625rem; font-weight: 600; color: var(--success);
}

.priority-badge {
    display: inline-block;
    font-size: 0.5rem; font-weight: 600;
    padding: 0.0625rem 0.375rem;
    border-radius: 50px;
    vertical-align: middle;
    margin-left: 0.25rem;
}
.priority-high { background: #fef2f2; color: #991b1b; }
.priority-medium { background: #fef3c7; color: #92400e; }
.priority-low { background: var(--bg-muted); color: var(--text-muted); }

/* Timeline */
.workflow-timeline {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
}
.timeline-title { font-size: 0.6875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
.timeline-steps { padding-left: 0.25rem; }
.timeline-step {
    display: flex; align-items: flex-start; gap: 0.625rem;
    position: relative;
}
.timeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    flex-shrink: 0;
    margin-top: 0.125rem;
    z-index: 1;
}
.step-complete .timeline-dot { background: var(--success); border-color: var(--success); }
.step-active .timeline-dot { border-color: var(--text-primary); }
.timeline-line {
    position: absolute;
    left: 4px; top: 12px;
    width: 2px; height: calc(100% + 4px);
}
.step-complete .timeline-line { background: var(--success); }
.timeline-step:not(.step-complete) .timeline-line { background: var(--border); }
.timeline-content { padding-bottom: 0.75rem; }
.timeline-text { font-size: 0.6875rem; font-weight: 500; color: var(--text-primary); }
.step-active .timeline-text, .step-complete .timeline-text { color: var(--text-primary); }
.timeline-step:not(.step-complete):not(.step-active) .timeline-text { color: var(--text-muted); }
.timeline-time { font-size: 0.5625rem; color: var(--text-muted); margin-top: 0.125rem; }
.timeline-highlight { color: var(--text-primary) !important; font-weight: 600; }

/* ===== Document Screen ===== */
.doc-breadcrumb {
    display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.5625rem; color: var(--text-muted); margin-bottom: 0.5rem;
}
.breadcrumb-item { cursor: default; }
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }
.breadcrumb-sep { font-size: 0.625rem; color: var(--border); }
.doc-tabs {
    display: flex; gap: 0; margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.doc-tab-count {
    font-size: 0.5rem; font-weight: 600; background: var(--bg-muted);
    color: var(--text-muted); padding: 0.0625rem 0.375rem; border-radius: 50px;
    margin-left: 0.25rem;
}
.doc-tab.active .doc-tab-count { background: var(--accent-light); color: var(--text-primary); }
.doc-tab {
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem; font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: default;
    transition: var(--transition);
}
.doc-tab.active { color: var(--text-primary); border-bottom-color: var(--text-primary); font-weight: 600; }

.doc-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.doc-row {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--bg-muted); }
.doc-icon {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 6px;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.doc-pdf { background: #fef2f2; color: var(--danger); }
.doc-excel { background: #ecfdf5; color: var(--success); }
.doc-word { background: #eff6ff; color: #2563eb; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 0.6875rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 0.5625rem; color: var(--text-muted); margin-top: 0.125rem; }
.doc-version { font-weight: 600; color: var(--info); }
.doc-status {
    font-size: 0.5625rem; font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    flex-shrink: 0;
}
.doc-approved { background: #ecfdf5; color: #065f46; }
.doc-review { background: #fef3c7; color: #92400e; }
.doc-draft { background: var(--bg-muted); color: var(--text-muted); }
.doc-filed { background: var(--accent-blue-light); color: #075985; }

.doc-storage {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}
.storage-label {
    display: flex; justify-content: space-between;
    font-size: 0.625rem; color: var(--text-secondary);
    margin-bottom: 0.375rem;
}
.storage-bar { height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.storage-fill { height: 100%; background: var(--info); border-radius: 2px; }

/* ===== Metrics ===== */
.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.metric-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #78716c);
    opacity: 0.15; transition: opacity 0.3s ease;
}
.metric-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.metric-card:hover::before { opacity: 1; }
.metric-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.035em;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary), #57534e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.metric-label { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; line-height: 1.5; }

/* ===== Audience Cards ===== */
.audience-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    height: 100%;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.audience-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(28,25,23,0.04) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: var(--transition);
}
.audience-card:hover::before { background: radial-gradient(circle, rgba(28,25,23,0.08) 0%, transparent 70%); }
.audience-card:hover { box-shadow: var(--shadow-card-hover); border-color: rgba(28,25,23,0.15); transform: translateY(-3px); }
.audience-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(28,25,23,0.1), rgba(28,25,23,0.03));
    border-radius: 10px;
    color: var(--accent);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}
.audience-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.625rem; letter-spacing: -0.01em; }
.audience-card > p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.7; }
.audience-list {
    list-style: none; padding: 0; margin: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}
.audience-list li {
    display: flex; align-items: center; gap: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.375rem 0;
}
.audience-list li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== Framework Cards ===== */
.framework-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.framework-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.framework-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.framework-card:hover::after { opacity: 1; }
.framework-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(28,25,23,0.1), rgba(28,25,23,0.03));
    border-radius: 10px;
    color: var(--accent);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}
.framework-card h4 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.framework-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ===== FAQ ===== */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.accordion-item:has(.accordion-button:not(.collapsed)) {
    box-shadow: var(--shadow-card);
    border-color: rgba(28,25,23,0.12);
}
.accordion-button {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1.25rem 1.5rem;
    background: white;
    letter-spacing: -0.01em;
}
.accordion-button:not(.collapsed) { color: var(--accent); background: var(--accent-light); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after { background-size: 1rem; }
.accordion-body {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #1c1917 0%, #292524 50%, #1c1917 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
}
.cta-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.cta-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    margin: 0 auto 2.25rem;
    position: relative;
    line-height: 1.75;
}
.cta-buttons {
    display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
    position: relative;
}
.btn-white {
    background: white;
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex; align-items: center;
    transition: var(--transition);
}
.btn-white:hover { background: var(--bg-muted); color: var(--text-primary); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-white {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: white; }
.cta-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin-top: 1.5rem;
    position: relative;
}

/* ===== Product Tour Section ===== */
.product-tour-section {
    padding: 6.5rem 0 7.5rem;
}
.product-tour-section .section-header {
    margin-bottom: 2.5rem;
}
.product-tour-section .section-title {
    letter-spacing: -0.03em;
}
.text-white-70 {
    color: rgba(255,255,255,0.7) !important;
}

/* Tour Navigation Pills */
.tour-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.tour-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: var(--transition);
}
.tour-pill:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}
.tour-pill.active {
    color: white;
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
}
.tour-pill i {
    font-size: 1rem;
}

/* Tour Panels */
.tour-panel {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 6rem;
}
.tour-panel:last-child {
    margin-bottom: 0;
}
.tour-panel-reverse {
    grid-template-columns: 1fr 340px;
}
.tour-panel-reverse .tour-info {
    order: 2;
}
.tour-panel-reverse .tour-screen-wrap {
    order: 1;
}

/* Tour Info */
.tour-info {
    position: sticky;
    top: 100px;
    padding-top: 1rem;
}
.tour-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}
.tour-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.tour-desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}
.tour-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.tour-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.tour-highlight i {
    font-size: 1rem;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Tour Browser / Screen Wrap */
.tour-screen-wrap {
    position: relative;
}
.tour-browser {
    border-radius: 10px;
    overflow: hidden;
    background: #1a1918;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.25),
        0 16px 48px rgba(0,0,0,0.2);
}
.tour-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tour-browser-url {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    flex: 1;
    font-family: monospace;
}
.tour-screen {
    display: flex;
    min-height: 420px;
    background: var(--bg-muted);
}

/* ===== Book a Demo Section ===== */
.demo-section {
    padding: 6.5rem 0;
}
.demo-page-hero {
    padding-top: 9rem;
    min-height: 100vh;
}
.demo-page-hero .demo-title {
    font-size: 2.75rem;
}
.demo-trust-signals {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}
.demo-trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.demo-trust-item i {
    font-size: 0.9375rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.demo-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
}
.demo-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.demo-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.demo-benefit i {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, rgba(28,25,23,0.08), rgba(28,25,23,0.03));
    border-radius: 8px;
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
}
.demo-benefit strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}
.demo-benefit span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.demo-form-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.03),
        0 12px 32px rgba(0,0,0,0.06),
        0 24px 56px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}
.demo-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}
.demo-label .required {
    color: #dc2626;
}
.demo-label .optional {
    font-weight: 400;
    color: var(--text-muted);
}
.demo-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    font-family: inherit;
}
.demo-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(28,25,23,0.06);
}
.demo-input::placeholder {
    color: #9ca3af;
    opacity: 0.5;
}
.demo-input:focus::placeholder {
    opacity: 0;
}
.demo-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}
.demo-textarea {
    resize: vertical;
    min-height: 80px;
}
.demo-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.demo-submit:hover {
    background: #292524;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.demo-submit:active {
    transform: scale(0.98);
}
.demo-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
/* Hidden by default — toggled by JS (replaces inline style="display:none") */
.demo-submit-loading,
.demo-error,
.demo-success { display: none; }

.demo-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0.625rem 0.875rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}
.demo-privacy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.demo-success {
    text-align: center;
    padding: 3rem 1rem;
}
.demo-success i {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 1rem;
    display: block;
}
.demo-success h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.demo-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}
@keyframes demo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.ri-spin {
    animation: demo-spin 1s linear infinite;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, #292524 0%, #1c1917 100%);
    color: rgba(255,255,255,0.7);
    padding: 5.5rem 0 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.footer-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}
.footer-brand .brand-icon { width: 28px; height: 28px; font-size: 0.6875rem; }
.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}
.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    font-size: 0.875rem;
}
.footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8125rem;
    display: block;
    padding: 0.25rem 0;
    transition: var(--transition);
}
.footer a:hover { color: white; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
}
.footer-bottom p { margin: 0; font-size: 0.8125rem; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    font-size: 1rem;
    padding: 0;
}
.footer-social a:hover { background: var(--accent); color: white; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-section { padding: 6rem 0 3rem; }
    .hero-preview { padding-left: 0; margin-top: 2.5rem; min-height: auto; }
    .hero-sidebar { display: none; }
    .hero-app-layout { min-height: auto; }
    .hero-panel-workflow { position: relative; bottom: auto; right: auto; width: 100%; margin-top: 0.75rem; }
    .hero-panel-activity { position: relative; bottom: auto; left: auto; width: 100%; margin-top: 0.75rem; }
    .hero-panel-score { position: relative; top: auto; right: auto; margin-top: 0.75rem; width: fit-content; }
    .section { padding: 5rem 0; }
    .feature-section { padding: 4rem 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-card-featured { grid-column: 1 / -1; }
    .demo-section { padding: 5rem 0; }
    .demo-page-hero { padding-top: 7rem; min-height: auto; }
    .demo-page-hero .demo-title { font-size: 2.25rem; }
    .fm-roles-grid { grid-template-columns: 1fr; }
    .fm-stats-row { grid-template-columns: repeat(2,1fr); }
    .screen-sidebar { display: none; }
    .tour-panel, .tour-panel-reverse { grid-template-columns: 1fr; gap: 2rem; }
    .tour-panel-reverse .tour-info { order: 0; }
    .tour-panel-reverse .tour-screen-wrap { order: 0; }
    .tour-info { position: static; padding-top: 0; }
    .tour-screen { min-height: 350px; }
    .dash-kpi-row { grid-template-columns: repeat(2,1fr); }
    .dash-content-row { grid-template-columns: 1fr; }
    .dash-right-col { display: none; }
    .company-cin { display: none; }
    .col-cin { display: none; }
    .register-stats { grid-template-columns: repeat(2,1fr); }
    .wf-filter-bar { flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
    .section { padding: 4rem 0; }
    .feature-module-strip { gap: 0.375rem; }
    .feature-module-pill { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
    .feature-module-pill span { display: none; }
    .tour-nav { gap: 0.375rem; }
    .tour-pill span { display: none; }
    .tour-pill { padding: 0.5rem 0.75rem; }
    .tour-panel { margin-bottom: 3.5rem; }
    .tour-number { font-size: 2.5rem; }
    .tour-heading { font-size: 1.25rem; }
    .panel-kpi-strip { grid-template-columns: repeat(2,1fr); }
    .fm-analytics-kpi { grid-template-columns: repeat(2,1fr); }
    .fm-stepper span:not(.fm-step-dot) { display: none; }
    .fm-form-row { grid-template-columns: 1fr; }
    .fm-col-shares, .fm-col-pct { display: none; }
    .fm-doc-tabs { overflow-x: auto; }
    .fm-perm-matrix { overflow-x: auto; }
    .wizard-stepper { flex-wrap: wrap; gap: 0.25rem; }
    .register-table { overflow-x: auto; }
    .register-table table { min-width: 500px; }
    .register-stats { display: none; }
    .doc-breadcrumb { display: none; }
    .demo-form-card { padding: 1.5rem; }
    .demo-title { font-size: 1.75rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
}
@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-trust-row { flex-direction: column; gap: 0.375rem; }
    .panel-kpi-strip { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-card-featured { grid-template-columns: 1fr; }
    .trust-card-featured .trust-card-icon { grid-row: auto; }
    .trust-card-featured p { grid-column: 1; }
    .col-status { display: none; }
    .demo-form-card { padding: 1.25rem; }
}
