/* ═══════════════════════════════════════════════════════════════════════════
   Sage AI InvoiceNow - Standalone Flyer Styles
   Sumvec.ai | AI Co-Creation Partner
   ══════════════════════════════════════════════════════════════════════════ */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Brand Tokens */
:root {
    --primary-blue: #0A2C4E;
    --slate: #1F2933;
    --cloud: #F4F7FB;
    --accent: #2563EB;
    --border: #D9E1EA;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--slate);
    background: var(--white);
    line-height: 1.6;
}

.flyer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    padding: 32px 48px 64px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.flyer-header {
    position: relative;
    margin-bottom: 48px;
}

.flyer-header a {
    display: inline-block;
}

.logo-image {
    height: 48px;
    width: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 8px;
}

.hero-title sup {
    font-size: 38px;
    vertical-align: super;
    line-height: 0;
    position: relative;
    top: -0.1em;
}

.hero-audience {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 32px;
    font-style: italic;
}

.hero-tagline {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.3;
    margin: 0 0 20px;
}

.hero-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.hero-description sup {
    font-size: 12px;
    vertical-align: super;
    line-height: 0;
    position: relative;
    top: -0.1em;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.hero-badge:nth-child(1) {
    background: #ECFDF5;
    color: #059669;
}

.hero-badge:nth-child(1) i {
    color: #059669;
}

.hero-badge:nth-child(2) {
    background: #F3E8FF;
    color: #7C3AED;
}

.hero-badge:nth-child(2) i {
    color: #7C3AED;
}

.hero-badge:nth-child(3) {
    background: #DBEAFE;
    color: #2563EB;
}

.hero-badge:nth-child(3) i {
    color: #2563EB;
}

.hero-badge i {
    width: 18px;
    height: 18px;
}

.hero-badge:hover {
    transform: translateY(-2px);
}

/* Vendor Communication Box */
.vendor-comm-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    margin-top: 12px;
    overflow: hidden;
}

.comm-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--cloud);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--slate);
}

.comm-header i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.comm-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    color: #059669;
    background: #D1FAE5;
    padding: 3px 8px;
    border-radius: 4px;
}

.comm-messages {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comm-message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.message-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar i {
    width: 14px;
    height: 14px;
}

.ai-avatar {
    background: #DBEAFE;
    color: #2563EB;
}

.vendor-avatar {
    background: #F3E8FF;
    color: #7C3AED;
}

.human-avatar {
    background: #ECFDF5;
    color: #059669;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.message-sender {
    font-size: 10px;
    font-weight: 600;
    color: var(--slate);
}

.message-time {
    font-size: 9px;
    color: #94A3B8;
}

.message-text {
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
    background: var(--cloud);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.ai-message .message-text {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.vendor-message .message-text {
    background: #FAF5FF;
    border-color: #E9D5FF;
}

.human-message .message-text {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
}

.mockup-window {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--cloud);
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) {
    background: #FF5F57;
}

.mockup-dots span:nth-child(2) {
    background: #FFBD2E;
}

.mockup-dots span:nth-child(3) {
    background: #28CA41;
}

.mockup-title {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate);
    letter-spacing: 0.05em;
}

.mockup-metrics {
    font-size: 11px;
    color: #64748B;
}

.mockup-body {
    display: grid;
    grid-template-columns: 100px 1fr;
}

.mockup-sidebar {
    background: var(--primary-blue);
    padding: 16px 12px;
}

.mockup-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    margin-bottom: 4px;
}

.mockup-sidebar .sidebar-item svg {
    width: 14px;
    height: 14px;
}

.mockup-sidebar .sidebar-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.mockup-main {
    padding: 16px;
}

.agent-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.agent-status-grid.six-agents {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.agent-status-grid.six-agents .agent-status-card {
    padding: 10px;
}

.agent-status-grid.six-agents .status-name {
    font-size: 10px;
}

.agent-status-grid.six-agents .status-badge {
    font-size: 8px;
    padding: 2px 6px;
}

.agent-status-grid.six-agents .status-desc {
    font-size: 9px;
}

.agent-status-card {
    background: var(--cloud);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.status-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
}

.status-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.active {
    background: #D1FAE5;
    color: #047857;
}

.status-badge.training {
    background: #FEF3C7;
    color: #B45309;
}

.status-badge.deploy {
    background: #DBEAFE;
    color: #1D4ED8;
}

.status-desc {
    font-size: 10px;
    color: #64748B;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIFFERENCE SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.difference-section {
    padding: 64px 48px;
    background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 16px;
}

.section-title sup {
    font-size: 28px;
    color: inherit;
    vertical-align: super;
    line-height: 0;
    position: relative;
    top: -0.1em;
}

.section-description {
    font-size: 16px;
    color: #475569;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.section-description sup {
    font-size: 14px;
    vertical-align: super;
    line-height: 0;
    position: relative;
    top: -0.1em;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.comparison-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.comparison-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate);
    margin: 0 0 16px;
    text-align: center;
}

.comparison-mockup {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-mockup.pre {
    background: #FEF2F2;
}

.comparison-mockup.post {
    background: #F0FDF4;
}

.pre-mockup-content,
.post-mockup-content {
    padding: 20px;
}

.pre-header,
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pre-badge {
    font-size: 10px;
    font-weight: 700;
    color: #DC2626;
    background: #FECACA;
    padding: 4px 10px;
    border-radius: 4px;
}

.post-badge {
    font-size: 10px;
    font-weight: 700;
    color: #047857;
    background: #A7F3D0;
    padding: 4px 10px;
    border-radius: 4px;
}

.confidence-score {
    font-size: 11px;
    font-weight: 600;
    color: #047857;
}

.pre-invoice,
.post-invoice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.invoice-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

.line-label {
    font-size: 11px;
    color: #64748B;
    width: 80px;
}

.line-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    flex: 1;
}

.line-value.faded {
    color: #94A3B8;
}

.invoice-line.error .line-value {
    color: #DC2626;
}

.invoice-line.success {
    background: rgba(16, 185, 129, 0.05);
    margin: 0 -16px;
    padding: 8px 16px;
}

.check-icon {
    color: var(--success);
    margin-left: auto;
    width: 14px;
    height: 14px;
}

.pre-queue {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queue-label {
    font-size: 12px;
    font-weight: 600;
    color: #DC2626;
}

.queue-time {
    font-size: 11px;
    color: #64748B;
}

.post-status {
    display: flex;
    justify-content: space-between;
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: #047857;
}

.status-time {
    font-size: 11px;
    color: #64748B;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.metric-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    background: #F0FDF4;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.metric-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 4px;
}

.metric-detail {
    display: block;
    font-size: 11px;
    color: #64748B;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.dashboard-section {
    padding: 64px 48px;
}

.section-title-accent {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: #64748B;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

.dashboard-mockup {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
}

.dashboard-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORKBENCH SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.workbench-section {
    padding: 64px 48px;
    background: var(--cloud);
}

.workbench-mockup {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    background: var(--white);
}

.workbench-window {
    background: var(--white);
}

.workbench-header {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.workbench-nav {
    background: var(--primary-blue);
    padding: 16px;
    color: var(--white);
}

.nav-brand {
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.nav-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 24px;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
}

.nav-item svg {
    width: 14px;
    height: 14px;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.workbench-content {
    padding: 24px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--slate);
    margin: 0;
}

.session-badge {
    font-size: 9px;
    font-weight: 600;
    color: #047857;
    background: #D1FAE5;
    padding: 4px 10px;
    border-radius: 4px;
}

.content-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--cloud);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex: 1;
    color: #94A3B8;
    font-size: 13px;
}

.search-box svg {
    width: 14px;
    height: 14px;
}

.toolbar-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    font-size: 12px;
    color: #64748B;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.action-btn.sync {
    background: var(--cloud);
    color: var(--slate);
    border: 1px solid var(--border);
}

.action-btn.primary {
    background: var(--accent);
    color: var(--white);
}

.content-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.stat {
    font-size: 12px;
    color: #64748B;
}

.stat.success {
    color: var(--success);
    font-weight: 600;
}

.content-table {
    background: var(--cloud);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1.2fr 100px;
    gap: 16px;
    padding: 12px 16px;
    background: #E2E8F0;
    font-size: 10px;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.05em;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1.2fr 100px;
    gap: 16px;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--slate);
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.table-row.highlight {
    background: #FEF3C7;
}

.invoice-id {
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

.confidence-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.confidence-bar .bar {
    height: 6px;
    background: var(--success);
    border-radius: 3px;
    display: inline-block;
}

.confidence-bar.low .bar {
    background: var(--warning);
}

.status-badge.ready {
    background: #D1FAE5;
    color: #047857;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.status-badge.exception {
    background: #FEF3C7;
    color: #B45309;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.score-breakdown {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.score-breakdown h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    margin: 0 0 12px;
}

.score-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--cloud);
    border-radius: 6px;
    text-align: center;
}

.score-item.warning {
    background: #FEF3C7;
}

.score-label {
    font-size: 10px;
    color: #64748B;
}

.score-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
}

.score-item.warning .score-value {
    color: var(--warning);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AGENTS SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.agents-section {
    padding: 64px 48px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.agent-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.agent-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.agent-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-icon svg {
    width: 24px;
    height: 24px;
}

.agent-content {
    flex: 1;
}

.agent-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    margin: 0 0 4px;
}

.agent-domain {
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.agent-description {
    font-size: 12px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHITECTURE SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.architecture-section {
    padding: 64px 48px;
    background: var(--primary-blue);
    color: var(--white);
}

/* Solution Architecture Refinements */
.architecture-title.centered {
    text-align: center;
    margin-bottom: 60px;
}

.architecture-solution-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 16px;
    /* Significantly reduced from 48px */
}

.arch-layer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    position: relative;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

/* Blocks */
.arch-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    /* More compact padding */
    text-align: center;
    min-width: 180px;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 12px;
    /* Give space for the absolute label */
}

.arch-block:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-4px);
}

.block-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 800;
    color: #60A5FA;
    letter-spacing: 0.15em;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #020617;
    padding: 1px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.block-content i {
    width: 32px;
    height: 32px;
    color: #60A5FA;
    margin-bottom: 12px;
}

.block-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.block-content p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Arrows & Connectors */
.flow-arrow {
    color: rgba(96, 165, 250, 0.4);
}

.flow-arrow.vertical {
    margin: 8px 0;
    /* Reduced from 20px */
    opacity: 0.6;
}

.flow-connector.mini {
    width: 32px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(96, 165, 250, 0.4), transparent);
}

/* Entry Layer Configuration */
.entry-layer {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 1050px;
}

.entry-layer .arch-block {
    min-width: 0;
    padding: 16px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center horizontally */
}

.entry-layer .block-content p {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
}

.entry-layer .block-content strong {
    font-size: 13px;
}

.entry-layer .block-content i {
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
}

/* Ingestion Items Compact */
.ingestion-items-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.ingestion-items-compact .mini-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    gap: 10px;
    font-size: 11px;
    margin-bottom: 4px;
}

.ingestion-items-compact .mini-item i {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
}

/* Compliance Layer Configuration */
.compliance-layer {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 900px;
}

.compliance-layer .arch-block {
    min-width: 0;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Embedded Observability */
.observability-embedded {
    border: 1px dashed rgba(34, 197, 94, 0.3) !important;
    background: rgba(34, 197, 94, 0.05) !important;
}

.obs-embedded-content i {
    color: #22C55E;
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
}

.obs-embedded-content strong {
    font-size: 13px;
    color: #22C55E;
    display: block;
    margin-bottom: 4px;
}

.obs-mini-pills {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.obs-mini-pills span {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border-radius: 10px;
}

/* Intelligence Hub */
.intelligence-hub {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 24px;
    padding: 32px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.hub-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.hub-title i {
    width: 24px;
    height: 24px;
    color: #60A5FA;
}

.hub-title span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--white);
}

.agent-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    /* Slightly narrower min-width */
    gap: 12px;
    width: 100%;
}

.agent-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    align-items: center;
}

.agent-id {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 800;
    color: #60A5FA;
    opacity: 0.5;
}

.agent-info strong {
    display: block;
    font-size: 11px;
    /* Slightly smaller for density */
    font-weight: 700;
}

.agent-info span {
    font-size: 9px;
    /* Slightly smaller for density */
    color: rgba(255, 255, 255, 0.4);
}

/* LlamaExtract Highlight */
.llama-extract {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.05));
    border: 2px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.llama-extract i {
    color: #60A5FA;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

.llama-extract strong {
    font-size: 18px;
    letter-spacing: 0.05em;
}

/* Observability Sidebar */
.observability-track {
    position: absolute;
    right: -180px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
    border: 1px dashed rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    text-align: center;
}

.obs-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsiveness for Architecture */
@media (max-width: 1024px) {

    .entry-layer,
    .compliance-layer {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    .entry-layer .flow-connector.mini {
        display: none;
    }
}

@media (max-width: 640px) {

    .entry-layer,
    .compliance-layer {
        grid-template-columns: 1fr;
    }

    .agent-pipeline {
        grid-template-columns: 1fr;
    }
}

.observability-track i {
    width: 24px;
    height: 24px;
    color: #22C55E;
    margin-bottom: 12px;
}

.observability-track span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #22C55E;
}

.obs-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.obs-pills span {
    font-size: 9px;
    font-weight: 600;
    padding: 4px;
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border-radius: 4px;
    margin: 0;
}

/* Compliance Layer */
.compliance-layer {
    gap: 20px;
}

.compliance-layer .arch-block {
    min-width: 180px;
    padding: 20px;
}

.compliance-layer i {
    width: 20px;
    height: 20px;
    color: #FACC15;
    margin-bottom: 12px;
}

.compliance-layer strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.compliance-layer span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CITATIONS SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.citations-section {
    padding: 24px 48px;
    background: var(--white);
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: #94A3B8;
}

.citations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.citation-item {
    display: flex;
    gap: 6px;
}

.citation-sup {
    color: var(--accent);
    font-weight: 600;
}

.arch-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item svg {
    width: 14px;
    height: 14px;
    color: #60A5FA;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HUMAN-IN-THE-LOOP SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.hitl-section {
    padding: 64px 48px;
    background: var(--cloud);
}

.hitl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hitl-badge svg {
    width: 14px;
    height: 14px;
}

.hitl-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.hitl-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--slate);
}

.feature-check {
    color: var(--success);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.hitl-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hitl-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.hitl-card-icon {
    width: 48px;
    height: 48px;
    background: var(--cloud);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.hitl-card-icon svg {
    width: 24px;
    height: 24px;
}

.hitl-card-icon.orange {
    background: #FEF3C7;
    color: var(--warning);
}

.hitl-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate);
    margin: 0 0 8px;
}

.hitl-card p {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin: 0 0 16px;
}

.hitl-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--success);
}

.hitl-card-tag svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.flyer-footer {
    padding: 32px 48px;
    background: var(--primary-blue);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 20px;
}

.footer-cta h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}

.footer-cta p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px;
    line-height: 1.5;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #60A5FA;
    text-decoration: none;
}

.cta-link:hover {
    color: #93C5FD;
}

.footer-services h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-services p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

.service-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list-compact li {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    line-height: 1.4;
}

.footer-brand {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand a {
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

.footer-copyright {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════ */
@media print {
    .flyer-container {
        zoom: 0.65;
        max-width: none;
    }

    .hero-section,
    .difference-section,
    .dashboard-section,
    .workbench-section,
    .agents-section,
    .architecture-section,
    .hitl-section,
    .flyer-footer {
        break-inside: avoid;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text {
        text-align: center;
    }

    .comparison-grid,
    .hitl-cards {
        grid-template-columns: 1fr;
    }

    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .architecture-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .arch-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .score-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-status-grid.six-agents {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .hero-section,
    .difference-section,
    .dashboard-section,
    .workbench-section,
    .agents-section,
    .architecture-section,
    .hitl-section,
    .flyer-footer {
        padding: 40px 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .workbench-header {
        grid-template-columns: 1fr;
    }

    .workbench-nav {
        display: none;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .arch-agents-row {
        grid-template-columns: 1fr;
    }

    .arch-governance {
        grid-template-columns: 1fr;
    }

    .score-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        text-align: center;
    }
}

/* 
   LIVE EXTRACTION DEMO
    */
.live-extraction-demo {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    max-width: 900px;
    margin: 40px auto;
    gap: 0;
    align-items: center;
}

.demo-panel {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.invoice-panel {
    background: #E2E8F0;
    padding: 12px;
}

.data-panel {
    background: var(--primary-blue);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Headers */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
}

.data-panel .panel-header {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.window-controls span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin-right: 4px;
}

.scan-status {
    color: var(--accent);
    font-weight: 700;
    animation: pulse 1s infinite;
}

/* Invoice Visual */
.invoice-visual {
    background: white;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.dummy-logo {
    width: 40px;
    height: 40px;
    background: #CBD5E1;
    margin-bottom: 20px;
}

.dummy-line {
    height: 8px;
    background: #E2E8F0;
    margin-bottom: 8px;
    border-radius: 2px;
}

.dummy-row {
    height: 12px;
    background: #F1F5F9;
    margin-bottom: 12px;
    width: 100%;
    border-radius: 2px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Data Stream */
.data-stream-content {
    padding: 16px;
    flex: 1;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.data-row.highlight {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    border-bottom: none;
}

.data-key {
    opacity: 0.7;
}

.data-value {
    font-weight: 600;
}

.data-confidence {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border-radius: 4px;
}

/* Terminal */
.agent-terminal {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

.terminal-line.success {
    color: #34D399;
}

/* Connector */
.demo-connector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: var(--border);
    position: absolute;
    z-index: 1;
}

.connector-pulse {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse-travel 2s infinite ease-in-out;
}

@keyframes pulse-travel {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Restored Process Flow Title */
.process-section .section-title {
    color: var(--primary-blue);
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESS FLOW (MULTI-COLOR LIGHT)
   ══════════════════════════════════════════════════════════════════════════ */
.process-section {
    background: var(--white);
    padding: 64px 48px;
    position: relative;
    border-top: 1px solid var(--border);
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header Strip */
.process-header-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.process-phase-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    text-align: center;
}

/* Color Coding Headers */
.process-phase-header:nth-child(1) {
    color: #3B82F6;
}

/* Arrival - Blue */
.process-phase-header:nth-child(2) {
    color: #8B5CF6;
}

/* Extraction - Purple */
.process-phase-header:nth-child(3) {
    color: #10B981;
}

/* Validation - Emerald */
.process-phase-header:nth-child(4) {
    color: #F59E0B;
}

/* Matching - Amber */
.process-phase-header:nth-child(5) {
    color: #EC4899;
}

/* Deliberation - Rose */
.process-phase-header:nth-child(6) {
    color: #64748B;
}

/* Posting - Slate */

/* Body Columns */
.process-body {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    position: relative;
}

.process-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding: 0 4px;
    min-height: 200px;
}

/* Connecting lines between columns */
.process-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    width: 16px;
    height: 1px;
    background: #E2E8F0;
    z-index: 0;
}

/* Flow Nodes - Base */
.flow-node {
    background: var(--white);
    border: 1px solid var(--border);
    border-left-width: 4px;
    /* Color Accent */
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate);
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}


/* Column Specific Node Styling with High Contrast Text */

/* 1. Arrival (Blue) */
.process-column:nth-child(1) .flow-node {
    border-left-color: #3B82F6;
    background: #EFF6FF;
    border-top-color: #DBEAFE;
    border-right-color: #DBEAFE;
    border-bottom-color: #DBEAFE;
    color: #1E3A8A;
    /* Dark Blue Text */
    font-weight: 600;
}

/* 2. Extraction (Purple) */
.process-column:nth-child(2) .flow-node {
    border-left-color: #8B5CF6;
    background: #F5F3FF;
    border-top-color: #EDE9FE;
    border-right-color: #EDE9FE;
    border-bottom-color: #EDE9FE;
    color: #5B21B6;
    /* Dark Purple Text */
    font-weight: 600;
}

/* 3. Validation (Emerald) */
.process-column:nth-child(3) .flow-node {
    border-left-color: #10B981;
    background: #ECFDF5;
    border-top-color: #D1FAE5;
    border-right-color: #D1FAE5;
    border-bottom-color: #D1FAE5;
    color: #065F46;
    /* Dark Emerald Text */
    font-weight: 600;
}

/* 4. Matching (Amber) */
.process-column:nth-child(4) .flow-node {
    border-left-color: #F59E0B;
    background: #FFFBEB;
    border-top-color: #FEF3C7;
    border-right-color: #FEF3C7;
    border-bottom-color: #FEF3C7;
    color: #92400E;
    /* Dark Amber Text */
    font-weight: 600;
}

/* 5. Deliberation (Rose) */
.process-column:nth-child(5) .flow-node {
    border-left-color: #EC4899;
    background: #FDF2F8;
    border-top-color: #FCE7F3;
    border-right-color: #FCE7F3;
    border-bottom-color: #FCE7F3;
    color: #9D174D;
    /* Dark Rose Text */
    font-weight: 600;
}

/* 6. Posting (Slate) */
.process-column:nth-child(6) .flow-node {
    border-left-color: #64748B;
    background: #F8FAFC;
    border-top-color: #E2E8F0;
    border-right-color: #E2E8F0;
    border-bottom-color: #E2E8F0;
    color: #1E293B;
    /* Dark Slate Text */
    font-weight: 600;
}

/* Special Highlighters */
.flow-node.tall {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arrows inside tall nodes */
.flow-arrow-right {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #CBD5E1;
}

/* Legend */
.process-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748B;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.ai {
    background: #F5F3FF;
    border: 1px solid #8B5CF6;
}

.legend-color.roadmap {
    background: white;
    border: 1px dashed #CBD5E1;
}

@media (max-width: 768px) {

    .process-body,
    .process-header-strip {
        grid-template-columns: 1fr;
    }

    .process-column {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
    }

    .process-column:not(:last-child)::after {
        display: none;
    }
}

/* 
   RESPONSIVE DESIGN SYSTEM
    */

/* Tablet & Smaller Desktops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-badges {
        justify-content: center;
    }

    /* Comparison Grid */
    .comparison-grid {
        gap: 24px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Workbench */
    .workbench-header {
        grid-template-columns: 180px 1fr;
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Global Padding */
    .hero-section,
    .difference-section,
    .dashboard-section,
    .workbench-section,
    .agents-section,
    .process-section,
    .citations-section {
        padding: 40px 24px;
    }

    /* Hero Section */
    .hero-glow {
        top: -100px;
        width: 100%;
        height: 400px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-title sup {
        font-size: 26px;
        /* Smaller superscript for mobile */
    }

    .hero-description sup {
        font-size: 10px;
    }

    .hero-mockup {
        margin-top: 24px;
        width: 100%;
    }

    /* Vendor Comm Box Mobile */
    .vendor-comm-box {
        margin-top: 16px;
    }

    /* Difference Section */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .invoice-line {
        flex-wrap: wrap;
    }

    .line-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    /* Workbench Section */
    .workbench-header {
        grid-template-columns: 1fr;
    }

    .workbench-nav {
        display: none;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .content-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-filters,
    .toolbar-actions {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    /* Workbench Table - Horizontal Scroll */
    .content-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-header,
    .table-row {
        min-width: 600px;
        /* Force minimum width to trigger scroll */
        grid-template-columns: 1fr 1.5fr 1fr 1.2fr 100px;
        /* Maintain desktop column structure */
    }

    /* Score Breakdown (Live Extraction) */
    .score-items {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile instead of 6 */
        gap: 8px;
    }

    .score-item {
        padding: 8px;
    }

    /* Agents Section */
    .agent-status-grid.six-agents {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-cta {
        align-items: center;
    }

    .service-list-compact {
        align-items: center;
    }

    .footer-brand {
        justify-content: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-title sup {
        font-size: 22px;
        /* Even smaller for small mobile */
    }

    .hero-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badge {
        justify-content: center;
    }

    .score-items {
        grid-template-columns: 1fr;
        /* Stack vertically on very small screens */
    }
}
/* Mobile Devices (max-width: 768px) - REVISED CARD LAYOUT */
@media screen and (max-width: 768px) {
    /* Workbench Invoice Queue - Card Layout Override */
    .content-table {
        background: transparent !important;
        overflow: visible !important;
        border-radius: 0 !important;
    }
    
    .table-header {
        display: none !important; /* Hide header row */
    }
    
    .table-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 
            "id status"
            "vendor amount"
            "confidence confidence" !important;
        gap: 6px !important;
        padding: 12px !important;
        margin-bottom: 8px !important;
        background: var(--white) !important;
        border: 1px solid var(--border) !important;
        border-radius: 8px !important;
        min-width: 0 !important; /* Override min-width */
    }
    
    /* Assign Grid Areas */
    .table-row > span:nth-child(1) { grid-area: id; }      /* Invoice ID */
    .table-row > span:nth-child(2) { grid-area: vendor; font-size: 11px; color: #64748B; } /* Vendor */
    .table-row > span:nth-child(3) { grid-area: amount; text-align: right; font-weight: 600; } /* Amount */
    .table-row > span:nth-child(4) { grid-area: confidence; margin-top: 4px; } /* Confidence */
    .table-row > span:nth-child(5) { grid-area: status; justify-self: end; }   /* Status */
    
    /* Score Breakdown (Live Extraction) - Stacked Vertically */
    .score-items {
        grid-template-columns: 1fr !important; /* Stack one after another */
        gap: 8px !important;
    }
    
    .score-item {
        padding: 8px 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Hide toolbar filters/actions on mobile to save space */
    .toolbar-filters, .toolbar-actions {
        display: none !important;
    }
}

/* Mobile Live Extraction Demo Fix */
@media screen and (max-width: 768px) {
    .live-extraction-demo {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-top: 24px !important;
        width: 100% !important;
    }

    .demo-panel {
        width: 100% !important;
        height: auto !important;
        min-height: 350px !important;
    }
    
    .demo-connector {
        width: 100% !important;
        height: 60px !important;
    }

    .connector-line {
        width: 2px !important;
        height: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
    }
    
    .connector-pulse {
        animation: pulse-travel-vertical 2s infinite ease-in-out !important;
    }
}

@keyframes pulse-travel-vertical {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
        top: 0;
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        top: 50%;
    }
    100% {
        opacity: 0.5;
        transform: scale(0.8);
        top: 100%;
    }
}
