/* ===================================
   TenderForge Global Styles v1.0
   Brand-aligned design system
   =================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Primary - Forest Green */
    --tf-green-900: #14503B;
    --tf-green-700: #1E6B4F;
    --tf-green-600: #23795A;
    --tf-green-400: #34B87F;
    --tf-green-50: #E8F5EE;

    /* Accent - Forge Amber */
    --tf-amber-800: #92400E;
    --tf-amber-600: #D97706;
    --tf-amber-500: #F59E0B;
    --tf-amber-400: #FBBF24;
    --tf-amber-50: #FEF3C7;

    /* Neutrals - Slate */
    --tf-slate-900: #111318;
    --tf-slate-800: #1A1D26;
    --tf-slate-600: #374151;
    --tf-slate-500: #5C6370;
    --tf-slate-400: #9098A6;
    --tf-slate-200: #E2E5EA;
    --tf-slate-100: #ECEEF1;
    --tf-slate-50: #F4F5F7;

    /* Semantic */
    --tf-success: #16A34A;
    --tf-success-light: #F0FDF4;
    --tf-info: #2563EB;
    --tf-info-light: #EFF6FF;
    --tf-review: #7C3AED;
    --tf-review-light: #F5F3FF;
    --tf-danger: #DC2626;
    --tf-danger-light: #FEF2F2;

    /* Surfaces */
    --tf-surface: #FFFFFF;
    --tf-surface-variant: var(--tf-slate-50);
    --tf-border: var(--tf-slate-200);

    /* Typography */
    --tf-font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tf-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Shadows */
    --tf-shadow-sm: 0 1px 2px rgba(17, 19, 24, 0.06);
    --tf-shadow-md: 0 2px 8px rgba(17, 19, 24, 0.08);
    --tf-shadow-lg: 0 8px 24px rgba(17, 19, 24, 0.12);
    --tf-shadow-xl: 0 16px 48px rgba(17, 19, 24, 0.18);

    /* Border radius */
    --tf-radius-xs: 4px;
    --tf-radius-sm: 6px;
    --tf-radius-md: 8px;
    --tf-radius-lg: 12px;
    --tf-radius-xl: 16px;
    --tf-radius-2xl: 24px;
    --tf-radius-full: 9999px;

    /* Transitions */
    --tf-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Styles --- */
html, body {
    font-family: var(--tf-font-family);
    color: var(--tf-slate-600);
    background-color: var(--tf-slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tf-slate-800);
    font-weight: 700;
}

/* --- MudBlazor Overrides --- */
.mud-appbar {
    background: var(--tf-green-700) !important;
}

.mud-drawer {
    background: var(--tf-surface) !important;
    border-right: 1px solid var(--tf-border) !important;
}

.mud-nav-link.active {
    background-color: var(--tf-green-50) !important;
    color: var(--tf-green-700) !important;
    border-right: 3px solid var(--tf-green-700);
}

.mud-nav-link:hover {
    background-color: var(--tf-slate-50) !important;
}

.mud-nav-link-icon {
    color: var(--tf-slate-400) !important;
}

.mud-nav-link.active .mud-nav-link-icon {
    color: var(--tf-green-700) !important;
}

/* Cards */
.mud-card {
    border-radius: var(--tf-radius-lg) !important;
    box-shadow: var(--tf-shadow-sm) !important;
    border: 1px solid var(--tf-border);
}

.mud-card:hover {
    box-shadow: var(--tf-shadow-md) !important;
    transition: box-shadow var(--tf-transition);
}

/* Tables */
.mud-table {
    border-radius: var(--tf-radius-lg) !important;
    overflow: hidden;
    border: 1px solid var(--tf-border);
}

.mud-table .mud-table-head .mud-table-cell {
    background-color: var(--tf-slate-50) !important;
    color: var(--tf-slate-500) !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mud-table .mud-table-row:hover {
    background-color: var(--tf-green-50) !important;
}

/* Chips */
.mud-chip {
    border-radius: var(--tf-radius-sm) !important;
    font-weight: 500;
}

/* Buttons */
.mud-button-filled.mud-button-primary {
    background-color: var(--tf-green-700) !important;
}

.mud-button-filled.mud-button-primary:hover {
    background-color: var(--tf-green-600) !important;
}

.mud-button-filled.mud-button-secondary {
    background-color: var(--tf-amber-600) !important;
}

.mud-button-filled.mud-button-secondary:hover {
    background-color: var(--tf-amber-500) !important;
}

.mud-fab.mud-fab-primary {
    background-color: var(--tf-green-700) !important;
}

.mud-fab.mud-fab-primary:hover {
    background-color: var(--tf-green-600) !important;
}

/* Progress bars */
.mud-progress-linear .mud-progress-linear-bar {
    background-color: var(--tf-green-400) !important;
}

/* Alert overrides */
.mud-alert-filled-info {
    background-color: var(--tf-info-light) !important;
    color: var(--tf-info) !important;
}

/* Expansion panels */
.mud-expand-panel {
    border-radius: var(--tf-radius-md) !important;
    border: 1px solid var(--tf-border) !important;
    box-shadow: none !important;
}

/* --- TenderForge Layout Classes --- */
.tf-page-header {
    margin-bottom: 24px;
}

.tf-page-header h4, .tf-page-header .mud-typography-h4 {
    color: var(--tf-slate-800);
    font-weight: 800;
}

.tf-stat-card {
    text-align: center;
    padding: 20px;
}

.tf-stat-card .tf-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tf-green-700);
    line-height: 1;
}

.tf-stat-card .tf-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tf-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Bid status colors */
.tf-status-not-started { background: var(--tf-slate-50); color: var(--tf-slate-400); }
.tf-status-draft { background: var(--tf-amber-50); color: var(--tf-amber-600); }
.tf-status-review { background: var(--tf-review-light); color: var(--tf-review); }
.tf-status-approved { background: var(--tf-success-light); color: var(--tf-success); }
.tf-status-submitted { background: var(--tf-success-light); color: var(--tf-success); }
.tf-status-won { background: var(--tf-success-light); color: var(--tf-success); }
.tf-status-lost { background: var(--tf-danger-light); color: var(--tf-danger); }

/* Question card */
.tf-question-card {
    cursor: pointer;
    transition: all var(--tf-transition);
    border: 1px solid var(--tf-border);
}

.tf-question-card:hover {
    border-color: var(--tf-green-400);
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-1px);
}

/* Sidebar panels */
.tf-sidebar-card {
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
}

.tf-sidebar-card .tf-sidebar-header {
    font-weight: 700;
    color: var(--tf-slate-800);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tf-border);
    margin-bottom: 12px;
}

/* AI generation button */
.tf-ai-button {
    background: linear-gradient(135deg, var(--tf-amber-600), var(--tf-amber-500)) !important;
    color: white !important;
    font-weight: 600;
}

.tf-ai-button:hover {
    background: linear-gradient(135deg, var(--tf-amber-500), var(--tf-amber-400)) !important;
}

/* Auth pages — split screen */
.tf-auth-split {
    display: flex;
    min-height: 100vh;
    font-family: var(--tf-font-family);
}

.tf-auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background: var(--tf-surface);
}

.tf-auth-form-inner {
    width: 100%;
    max-width: 440px;
}

.tf-auth-split-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
}

.tf-auth-split-wordmark {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tf-wm-tender {
    color: var(--tf-slate-800);
}

.tf-wm-forge {
    color: var(--tf-green-700);
}

.tf-auth-split-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tf-slate-900);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    outline: none;       /* Blazor's FocusOnNavigate targets h1 — suppress the browser focus ring */
}

.tf-auth-split-subtitle {
    color: var(--tf-slate-400);
    font-size: 0.95rem;
    margin-bottom: 36px;
    line-height: 1.5;
}

.tf-auth-row {
    display: flex;
    gap: 14px;
}

.tf-auth-row .tf-input-group {
    flex: 1;
}

/* Custom styled checkbox row */
.tf-auth-remember {
    margin-bottom: 28px;
}

.tf-auth-remember label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--tf-slate-500);
    cursor: pointer;
    user-select: none;
}

.tf-auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--tf-green-700);
    cursor: pointer;
    flex-shrink: 0;
}

.tf-auth-copyright {
    text-align: center;
    margin-top: 36px;
    font-size: 0.75rem;
    color: var(--tf-slate-400);
}

/* Form divider */
.tf-form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--tf-slate-400);
    font-size: 0.8rem;
}

.tf-form-divider::before,
.tf-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tf-border);
}

/* Right branded panel */
.tf-auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, var(--tf-green-900) 0%, var(--tf-green-700) 50%, var(--tf-green-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tf-auth-brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(52, 184, 127, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(217, 119, 6, 0.1) 0%, transparent 50%);
}

.tf-auth-brand-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 82px
        );
}

.tf-auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px;
}

.tf-auth-brand-logo {
    width: 160px;
    height: auto;
    margin-bottom: 32px;
}

.tf-auth-brand-wordmark {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.tf-wm-tender-light {
    color: rgba(255, 255, 255, 0.95);
}

.tf-wm-forge-light {
    color: var(--tf-amber-400);
}

.tf-auth-brand-tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.tf-auth-brand-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tf-auth-split {
        flex-direction: column;
    }
    .tf-auth-brand-side {
        display: none;
    }
    .tf-auth-form-side {
        padding: 24px;
    }
}

/* ===================================
   Form & Input System
   =================================== */

.tf-input-group {
    margin-bottom: 20px;
}

.tf-input-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--tf-slate-600);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tf-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--tf-slate-200);
    border-radius: var(--tf-radius-md);
    font-size: 0.95rem;
    font-family: var(--tf-font-family);
    color: var(--tf-slate-800);
    background: var(--tf-surface);
    transition: border-color var(--tf-transition), box-shadow var(--tf-transition), background var(--tf-transition);
    box-sizing: border-box;
    line-height: 1.5;
}

.tf-input:focus {
    outline: none;
    border-color: var(--tf-green-700);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 107, 79, 0.1);
}

.tf-input:hover:not(:focus) {
    border-color: var(--tf-slate-400);
}

.tf-input::placeholder {
    color: var(--tf-slate-400);
    font-weight: 400;
}

.tf-form-hint {
    margin-top: 5px;
    font-size: 0.78rem;
    color: var(--tf-slate-400);
    line-height: 1.4;
}

.tf-form-hint.is-error {
    color: var(--tf-danger);
}

/* ===================================
   Button System
   =================================== */

/* Base shared button styles */
.tf-btn-primary,
.tf-btn-secondary,
.tf-btn-ghost,
.tf-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--tf-radius-md);
    font-size: 0.97rem;
    font-weight: 700;
    font-family: var(--tf-font-family);
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background var(--tf-transition), box-shadow var(--tf-transition), transform var(--tf-transition), border-color var(--tf-transition), color var(--tf-transition);
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
}

/* Primary — Forest Green */
.tf-btn-primary {
    background: linear-gradient(160deg, var(--tf-green-600) 0%, var(--tf-green-700) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 107, 79, 0.35), 0 1px 3px rgba(30, 107, 79, 0.2);
}

.tf-btn-primary:hover {
    background: linear-gradient(160deg, var(--tf-green-400) 0%, var(--tf-green-600) 100%);
    box-shadow: 0 6px 20px rgba(30, 107, 79, 0.45), 0 2px 6px rgba(30, 107, 79, 0.25);
    transform: translateY(-1px);
    color: white;
}

.tf-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 107, 79, 0.3);
}

/* Secondary — Outline green */
.tf-btn-secondary {
    background: transparent;
    color: var(--tf-green-700);
    border: 1.5px solid var(--tf-green-700);
    box-shadow: none;
}

.tf-btn-secondary:hover {
    background: var(--tf-green-50);
    border-color: var(--tf-green-600);
    box-shadow: 0 2px 8px rgba(30, 107, 79, 0.12);
    transform: translateY(-1px);
}

/* Ghost — Subtle text button */
.tf-btn-ghost {
    background: transparent;
    color: var(--tf-slate-600);
    border: 1.5px solid var(--tf-slate-200);
    box-shadow: none;
}

.tf-btn-ghost:hover {
    background: var(--tf-slate-50);
    border-color: var(--tf-slate-400);
    color: var(--tf-slate-800);
}

/* Danger */
.tf-btn-danger {
    background: var(--tf-danger);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.tf-btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* Size modifiers */
.tf-btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
    width: auto;
}

.tf-btn-lg {
    padding: 17px 32px;
    font-size: 1.05rem;
}

.tf-btn-auto {
    width: auto;
}

/* Amber / AI accent button */
.tf-btn-amber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--tf-radius-md);
    font-size: 0.97rem;
    font-weight: 700;
    font-family: var(--tf-font-family);
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--tf-amber-600) 0%, var(--tf-amber-500) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
    transition: background var(--tf-transition), box-shadow var(--tf-transition), transform var(--tf-transition);
}

.tf-btn-amber:hover {
    background: linear-gradient(135deg, var(--tf-amber-500) 0%, var(--tf-amber-400) 100%);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    transform: translateY(-1px);
}

/* Disabled state */
.tf-btn-primary:disabled,
.tf-btn-secondary:disabled,
.tf-btn-ghost:disabled,
.tf-btn-danger:disabled,
.tf-btn-amber:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================================
   Auth form alerts / footer
   =================================== */

.tf-auth-error {
    background: var(--tf-danger-light);
    color: var(--tf-danger);
    padding: 12px 16px;
    border-radius: var(--tf-radius-md);
    margin-bottom: 24px;
    font-size: 0.875rem;
    border-left: 3px solid var(--tf-danger);
    line-height: 1.5;
}

.tf-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--tf-slate-500);
}

.tf-auth-footer a {
    color: var(--tf-green-700);
    text-decoration: none;
    font-weight: 700;
}

.tf-auth-footer a:hover {
    text-decoration: underline;
}

/* AppBar logo area */
.tf-appbar-logo {
    height: 28px;
    margin-right: 8px;
}

.tf-appbar-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

/* Deadline countdown */
.tf-deadline-urgent {
    color: var(--tf-danger);
    font-weight: 600;
}

.tf-deadline-warning {
    color: var(--tf-amber-600);
    font-weight: 500;
}

.tf-deadline-ok {
    color: var(--tf-slate-500);
}

/* Word count indicator */
.tf-wordcount-ok { color: var(--tf-success); }
.tf-wordcount-warning { color: var(--tf-amber-600); }
.tf-wordcount-over { color: var(--tf-danger); font-weight: 600; }

/* Empty states */
.tf-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--tf-slate-400);
}

.tf-empty-state svg, .tf-empty-state .mud-icon-root {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--tf-slate-200);
}

.tf-empty-state h3 {
    color: var(--tf-slate-600);
    margin-bottom: 8px;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--tf-slate-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--tf-slate-400); }

/* ===================================
   Marketing Page Styles
   =================================== */

.tf-marketing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Marketing Header */
.tf-mkt-header {
    background: var(--tf-surface);
    border-bottom: 1px solid var(--tf-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.tf-mkt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tf-mkt-header .tf-mkt-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tf-mkt-logo-link {
    text-decoration: none;
}

.tf-mkt-logo {
    height: 52px;
    width: auto;
    display: block;
}

.tf-mkt-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tf-mkt-nav-link {
    color: var(--tf-slate-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--tf-transition);
}

.tf-mkt-nav-link:hover {
    color: var(--tf-green-700);
}

.tf-mkt-btn-cta {
    background: var(--tf-green-700);
    color: white;
    padding: 8px 20px;
    border-radius: var(--tf-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--tf-transition);
}

.tf-mkt-btn-cta:hover {
    background: var(--tf-green-600);
}

/* Hero Section */
.tf-mkt-hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--tf-surface) 0%, var(--tf-green-50) 100%);
}

.tf-mkt-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.tf-mkt-hero-badge {
    display: inline-block;
    background: var(--tf-green-50);
    color: var(--tf-green-700);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(30, 107, 79, 0.15);
}

.tf-mkt-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--tf-slate-800);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.tf-mkt-hero-highlight {
    color: var(--tf-green-700);
    position: relative;
}

.tf-mkt-hero-subtitle {
    font-size: 1.15rem;
    color: var(--tf-slate-500);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tf-mkt-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.tf-mkt-btn-primary {
    background: var(--tf-green-700);
    color: white;
    padding: 12px 28px;
    border-radius: var(--tf-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--tf-transition);
    display: inline-block;
}

.tf-mkt-btn-primary:hover {
    background: var(--tf-green-600);
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md);
}

.tf-mkt-btn-secondary {
    background: var(--tf-surface);
    color: var(--tf-slate-600);
    padding: 12px 28px;
    border-radius: var(--tf-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--tf-border);
    transition: all var(--tf-transition);
    display: inline-block;
}

.tf-mkt-btn-secondary:hover {
    border-color: var(--tf-green-400);
    color: var(--tf-green-700);
}

.tf-mkt-btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.tf-mkt-hero-note {
    font-size: 0.8rem;
    color: var(--tf-slate-400);
}

/* Social Proof Bar */
.tf-mkt-proof {
    background: var(--tf-slate-800);
    padding: 32px 0;
}

.tf-mkt-proof-items {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.tf-mkt-proof-item {
    text-align: center;
    color: white;
}

.tf-mkt-proof-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--tf-amber-400);
}

.tf-mkt-proof-item span {
    font-size: 0.85rem;
    color: var(--tf-slate-400);
}

/* Features Section */
.tf-mkt-features {
    padding: 80px 0;
    background: var(--tf-surface);
}

.tf-mkt-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--tf-slate-800);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tf-mkt-section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--tf-slate-500);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tf-mkt-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tf-mkt-feature-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 28px;
    transition: all var(--tf-transition);
}

.tf-mkt-feature-card:hover {
    border-color: var(--tf-green-400);
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-2px);
}

.tf-mkt-feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.tf-mkt-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tf-slate-800);
    margin-bottom: 8px;
}

.tf-mkt-feature-card p {
    font-size: 0.9rem;
    color: var(--tf-slate-500);
    line-height: 1.6;
}

/* How It Works */
.tf-mkt-howitworks {
    padding: 80px 0;
    background: var(--tf-slate-50);
}

.tf-mkt-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.tf-mkt-step {
    flex: 1;
    text-align: center;
    padding: 24px;
}

.tf-mkt-step-number {
    width: 48px;
    height: 48px;
    background: var(--tf-green-700);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.tf-mkt-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tf-slate-800);
    margin-bottom: 8px;
}

.tf-mkt-step p {
    font-size: 0.85rem;
    color: var(--tf-slate-500);
    line-height: 1.6;
}

.tf-mkt-step-arrow {
    color: var(--tf-slate-200);
    font-size: 2rem;
    margin-top: 36px;
    font-weight: 300;
}

/* Pricing Section */
.tf-mkt-pricing {
    padding: 80px 0;
    background: var(--tf-surface);
}

.tf-mkt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tf-mkt-pricing-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 28px;
    text-align: center;
    position: relative;
    transition: all var(--tf-transition);
}

.tf-mkt-pricing-card:hover {
    box-shadow: var(--tf-shadow-md);
}

.tf-mkt-pricing-featured {
    border-color: var(--tf-green-700);
    border-width: 2px;
    transform: scale(1.03);
    box-shadow: var(--tf-shadow-md);
}

.tf-mkt-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tf-green-700);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tf-mkt-pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tf-slate-800);
    margin-bottom: 8px;
}

.tf-mkt-pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tf-slate-800);
    margin-bottom: 4px;
}

.tf-mkt-pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--tf-slate-400);
}

.tf-mkt-pricing-desc {
    font-size: 0.85rem;
    color: var(--tf-slate-500);
    margin-bottom: 20px;
}

.tf-mkt-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.tf-mkt-pricing-card li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--tf-slate-600);
    border-bottom: 1px solid var(--tf-slate-50);
}

.tf-mkt-pricing-card li::before {
    content: "\2713  ";
    color: var(--tf-green-400);
    font-weight: 700;
}

.tf-mkt-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-slate-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--tf-transition);
    width: 100%;
    box-sizing: border-box;
}

.tf-mkt-btn-outline:hover {
    border-color: var(--tf-green-400);
    color: var(--tf-green-700);
}

.tf-mkt-pricing-featured .tf-mkt-btn-primary {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* CTA Section */
.tf-mkt-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--tf-green-700) 0%, var(--tf-green-900) 100%);
    text-align: center;
}

.tf-mkt-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.tf-mkt-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tf-mkt-cta .tf-mkt-btn-primary {
    background: white;
    color: var(--tf-green-700);
}

.tf-mkt-cta .tf-mkt-btn-primary:hover {
    background: var(--tf-green-50);
    color: var(--tf-green-900);
}

/* Footer */
.tf-mkt-footer {
    background: var(--tf-slate-900);
    padding: 48px 0 24px;
    margin-top: auto;
}

.tf-mkt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tf-mkt-footer-logo {
    height: 28px;
    margin-bottom: 12px;
}

.tf-mkt-footer-tagline {
    color: var(--tf-slate-400);
    font-size: 0.85rem;
}

.tf-mkt-footer h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.tf-mkt-footer a {
    display: block;
    color: var(--tf-slate-400);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color var(--tf-transition);
}

.tf-mkt-footer a:hover {
    color: white;
}

.tf-mkt-footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.tf-mkt-footer-bottom p {
    color: var(--tf-slate-500);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tf-mkt-hero-title {
        font-size: 2rem;
    }

    .tf-mkt-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .tf-mkt-proof-items {
        flex-direction: column;
        gap: 24px;
    }

    .tf-mkt-features-grid {
        grid-template-columns: 1fr;
    }

    .tf-mkt-steps {
        flex-direction: column;
    }

    .tf-mkt-step-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .tf-mkt-pricing-grid {
        grid-template-columns: 1fr;
    }

    .tf-mkt-pricing-featured {
        transform: none;
    }

    .tf-mkt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tf-mkt-nav {
        gap: 12px;
    }

    .tf-mkt-nav-link {
        display: none;
    }
}

/* ===================================
   Sidebar / Nav Redesign
   =================================== */

/* Remove old MudBlazor nav overrides — replaced by custom nav below */
.mud-nav-link.active {
    background-color: transparent !important;
    color: inherit !important;
    border-right: none !important;
}

.mud-nav-link:hover {
    background-color: transparent !important;
}

.mud-nav-link-icon {
    color: inherit !important;
}

.mud-nav-link.active .mud-nav-link-icon {
    color: inherit !important;
}

/* Custom sidebar nav */
.tf-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 16px;
    height: 100%;
}

.tf-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--tf-border);
    margin-bottom: 8px;
}

.tf-nav-brand-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--tf-slate-800);
    letter-spacing: -0.02em;
}

.tf-nav-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--tf-border);
    margin-bottom: 4px;
}

.tf-nav-section-bottom {
    margin-top: auto;
    border-bottom: none;
    border-top: 1px solid var(--tf-border);
    padding-top: 12px;
}

.tf-nav-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tf-slate-400);
    padding: 4px 16px 6px;
}

.tf-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    margin: 1px 8px;
    border-radius: var(--tf-radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tf-slate-600);
    border-left: 3px solid transparent;
    transition: background var(--tf-transition), color var(--tf-transition), border-color var(--tf-transition);
}

.tf-nav-link:hover {
    background: var(--tf-slate-50);
    color: var(--tf-slate-800);
}

.tf-nav-link.active,
.tf-nav-link[aria-current="page"] {
    background: var(--tf-green-50);
    color: var(--tf-green-700);
    font-weight: 600;
    border-left-color: var(--tf-green-700);
}

.tf-nav-icon {
    font-size: 18px !important;
    flex-shrink: 0;
    color: inherit !important;
}

.tf-nav-link-accent {
    color: var(--tf-green-700);
    font-weight: 600;
}

.tf-nav-link-accent:hover {
    background: var(--tf-green-50);
    color: var(--tf-green-700);
}

/* ===================================
   Bid Workspace Redesign
   =================================== */

/* Header card */
.tf-workspace-header {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    border-left: 4px solid var(--tf-green-700);
    padding: 24px;
    box-shadow: var(--tf-shadow-sm);
}

/* Header chips */
.tf-ref-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tf-slate-500);
    background: var(--tf-slate-100);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-full);
    padding: 3px 10px;
}

.tf-deadline-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--tf-radius-full);
    padding: 3px 10px;
    border: 1px solid currentColor;
}

.tf-deadline-ok {
    color: var(--tf-slate-500);
    background: var(--tf-slate-50);
    border-color: var(--tf-slate-200);
}

.tf-deadline-soon {
    color: var(--tf-amber-800);
    background: var(--tf-amber-50);
    border-color: var(--tf-amber-400);
}

.tf-deadline-overdue {
    color: var(--tf-danger);
    background: var(--tf-danger-light);
    border-color: var(--tf-danger);
}

/* Progress panel */
.tf-progress-panel {
    background: var(--tf-slate-50);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    padding: 16px;
}

.tf-progress-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tf-slate-400);
}

.tf-progress-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--tf-green-700);
}

.tf-progress-sub {
    font-size: 0.75rem;
    color: var(--tf-slate-400);
}

/* Action row */
.tf-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 14px 20px;
    box-shadow: var(--tf-shadow-sm);
}

.tf-action-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-action-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tf-action-btn {
    border-color: var(--tf-border) !important;
    color: var(--tf-slate-600) !important;
}

.tf-action-btn:hover {
    border-color: var(--tf-slate-400) !important;
    background: var(--tf-slate-50) !important;
}

.tf-submitted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tf-success);
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--tf-success-light);
    border: 1px solid var(--tf-success);
    border-radius: var(--tf-radius-full);
    padding: 6px 14px;
}

/* Segmented filter bar */
.tf-segment-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 6px;
    box-shadow: var(--tf-shadow-sm);
}

.tf-segment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--tf-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tf-slate-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--tf-transition), color var(--tf-transition);
    font-family: var(--tf-font-family);
    white-space: nowrap;
}

.tf-segment-btn:hover {
    background: var(--tf-slate-50);
    color: var(--tf-slate-700);
}

.tf-seg-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--tf-radius-full);
    background: var(--tf-slate-100);
    color: var(--tf-slate-500);
}

/* Active segment states */
.tf-seg-active-dark {
    background: var(--tf-slate-800) !important;
    color: white !important;
}
.tf-seg-active-dark .tf-seg-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tf-seg-active-slate {
    background: var(--tf-slate-600) !important;
    color: white !important;
}
.tf-seg-active-slate .tf-seg-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tf-seg-active-amber {
    background: var(--tf-amber-600) !important;
    color: white !important;
}
.tf-seg-active-amber .tf-seg-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tf-seg-active-purple {
    background: var(--tf-review) !important;
    color: white !important;
}
.tf-seg-active-purple .tf-seg-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tf-seg-active-green {
    background: var(--tf-green-700) !important;
    color: white !important;
}
.tf-seg-active-green .tf-seg-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Section block */
.tf-section-block {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
    box-shadow: var(--tf-shadow-sm);
}

.tf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tf-border);
    background: var(--tf-slate-50);
    gap: 12px;
}

.tf-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tf-slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-section-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tf-slate-500);
    background: var(--tf-slate-100);
    border-radius: var(--tf-radius-full);
    padding: 2px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tf-section-pill-green {
    color: var(--tf-success);
    background: var(--tf-success-light);
}

.tf-section-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tf-section-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tf-green-700);
    min-width: 30px;
    text-align: right;
}

.tf-section-filtered-empty {
    padding: 20px 20px;
    color: var(--tf-slate-400);
}

/* Question grid */
.tf-question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--tf-border);
}

/* Question card */
.tf-qcard {
    background: var(--tf-surface);
    padding: 20px;
    cursor: pointer;
    transition: background var(--tf-transition), box-shadow var(--tf-transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

.tf-qcard:hover {
    background: var(--tf-green-50);
    box-shadow: inset 0 0 0 2px var(--tf-green-400);
}

.tf-qcard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.tf-qnumber {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tf-green-700);
    background: var(--tf-green-50);
    border: 1px solid rgba(30, 107, 79, 0.2);
    border-radius: var(--tf-radius-xs);
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tf-qtext {
    font-size: 0.875rem;
    color: var(--tf-slate-700);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tf-qsnippet {
    font-size: 0.8rem;
    color: var(--tf-slate-500);
    line-height: 1.45;
    margin: 0;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 8px 10px;
    background: var(--tf-slate-50);
    border-left: 3px solid var(--tf-green-400);
    border-radius: 0 var(--tf-radius-xs) var(--tf-radius-xs) 0;
}

.tf-qempty {
    font-size: 0.78rem;
    color: var(--tf-slate-400);
    font-style: italic;
    margin: 0;
    padding: 8px 10px;
    background: var(--tf-slate-50);
    border-left: 3px solid var(--tf-slate-200);
    border-radius: 0 var(--tf-radius-xs) var(--tf-radius-xs) 0;
}

.tf-qcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--tf-border);
}

.tf-meta-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: var(--tf-radius-xs);
    padding: 2px 7px;
}

.tf-meta-green {
    background: var(--tf-green-50);
    color: var(--tf-green-700);
}

.tf-meta-slate {
    background: var(--tf-slate-100);
    color: var(--tf-slate-600);
}

.tf-meta-red {
    background: var(--tf-danger-light);
    color: var(--tf-danger);
}

.tf-meta-amber {
    background: var(--tf-amber-50);
    color: var(--tf-amber-800);
}

.tf-qcta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tf-green-700);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive workspace */
@media (max-width: 768px) {
    .tf-workspace-header {
        padding: 16px;
    }
    .tf-action-row {
        flex-direction: column;
        align-items: stretch;
    }
    .tf-action-primary,
    .tf-action-secondary {
        justify-content: center;
    }
    .tf-segment-bar {
        gap: 4px;
    }
    .tf-segment-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    .tf-question-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Inline question accordion ---------- */
.tf-qaccordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    padding: 12px;
}

.tf-qrow {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--tf-transition), box-shadow var(--tf-transition);
}

.tf-qrow-open {
    border-color: var(--tf-green-400);
    box-shadow: 0 2px 8px rgba(30, 107, 79, 0.08);
}

.tf-qrow-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background var(--tf-transition);
}

.tf-qrow-header:hover {
    background: var(--tf-slate-50, #f8fafc);
}

.tf-qrow-open .tf-qrow-header {
    background: var(--tf-green-50, #f0f9f4);
}

.tf-qrow-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tf-qrow-chevron {
    display: inline-flex;
    transition: transform 0.2s ease;
    color: var(--tf-slate-400);
}

.tf-qrow-chevron-open {
    transform: rotate(90deg);
    color: var(--tf-green-700);
}

.tf-qrow-number {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--tf-slate-600, #475569);
    padding: 3px 8px;
    background: var(--tf-slate-100, #f1f5f9);
    border-radius: 4px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tf-qrow-head-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--tf-slate-800, #1e293b);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tf-qrow-head-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.tf-qrow-body {
    padding: 18px 20px 20px;
    border-top: 1px solid var(--tf-border);
    background: var(--tf-surface);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tf-qrow-guidance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--tf-slate-50, #f8fafc);
    border-left: 3px solid var(--tf-slate-300, #cbd5e1);
    color: var(--tf-slate-700, #334155);
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 4px;
}

.tf-qrow-guidance-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--tf-slate-500, #64748b);
    padding: 2px 8px;
    background: var(--tf-surface);
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tf-qrow-generating {
    padding: 12px 14px;
    border: 1px solid var(--tf-green-400);
    background: var(--tf-green-50);
    border-radius: 6px;
}

.tf-qrow-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px dashed var(--tf-border);
    padding-top: 14px;
    margin-top: 2px;
}

.tf-qrow-extlink {
    color: var(--tf-slate-400, #94a3b8) !important;
}

.tf-qrow-extlink:hover {
    color: var(--tf-green-700) !important;
}

/* ---------- Assumption triage panel ---------- */
.tf-assumptions-panel {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tf-assumptions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.tf-assumptions-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--tf-slate-800);
}

.tf-assumptions-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tf-slate-500);
    margin-left: 4px;
}

.tf-assumptions-bulk {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.tf-assumption-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-assumption {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--tf-border);
    border-left-width: 3px;
    border-radius: 6px;
    transition: background var(--tf-transition);
}

.tf-assumption-pending { border-left-color: var(--tf-amber-500, #f59e0b); }
.tf-assumption-accepted {
    border-left-color: var(--tf-success, #16a34a);
    background: var(--tf-success-light, #f0fdf4);
}
.tf-assumption-rejected {
    border-left-color: var(--tf-danger, #dc2626);
    background: var(--tf-danger-light, #fef2f2);
}

.tf-assumption-main {
    display: flex;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.tf-assumption-id {
    font-family: var(--tf-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tf-slate-500);
    background: var(--tf-slate-100);
    padding: 3px 7px;
    border-radius: 4px;
    height: fit-content;
    flex-shrink: 0;
}

.tf-assumption-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tf-assumption-claim {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--tf-slate-800);
}

.tf-assumption-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.tf-assumption-chip {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--tf-slate-100);
    color: var(--tf-slate-600);
}

.tf-confidence-high { background: var(--tf-success-light); color: var(--tf-success); }
.tf-confidence-medium { background: #fef3c7; color: #92400e; }
.tf-confidence-low { background: var(--tf-danger-light); color: var(--tf-danger); }

.tf-assumption-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tf-assumption-state-accepted { color: var(--tf-success); }
.tf-assumption-state-rejected { color: var(--tf-danger); }

.tf-assumption-actions {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .tf-assumption {
        flex-direction: column;
    }
    .tf-assumption-actions {
        justify-content: flex-end;
    }
}

/* ---------- Bulk generate overlay ---------- */
.tf-bulk-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.tf-bulk-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 28px;
    min-width: 420px;
    max-width: 560px;
    width: calc(100% - 48px);
}

@media (max-width: 600px) {
    .tf-qrow-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .tf-qrow-head-right {
        justify-content: flex-start;
    }
    .tf-qrow-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   Marketing home — extended sections
   ============================================================ */

/* Left-aligned section title (for asymmetric problem section) */
.tf-mkt-left { text-align: left !important; }

/* Trust / sources bar */
.tf-mkt-trust {
    padding: 32px 0;
    border-bottom: 1px solid var(--tf-border);
    background: var(--tf-slate-50);
}
.tf-mkt-trust-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--tf-slate-400);
    margin: 0 0 16px;
}
.tf-mkt-trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 32px;
    color: var(--tf-slate-600);
    font-weight: 600;
    font-size: 0.92rem;
}
.tf-mkt-trust-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

/* Problem statement */
.tf-mkt-problem {
    padding: 90px 0;
    background: var(--tf-surface);
}
.tf-mkt-problem-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}
.tf-mkt-problem-grid p {
    color: var(--tf-slate-600);
    line-height: 1.75;
    font-size: 1.02rem;
    margin: 0 0 18px;
}
.tf-mkt-problem-lead {
    font-size: 1.12rem !important;
    color: var(--tf-slate-800) !important;
    font-weight: 500;
}
.tf-mkt-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tf-mkt-stat-card {
    background: var(--tf-green-50);
    border: 1px solid var(--tf-green-400);
    border-radius: var(--tf-radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tf-mkt-stat-card strong {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--tf-green-700);
    font-weight: 800;
}
.tf-mkt-stat-card span {
    color: var(--tf-slate-600);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* The Stack — 5 pillar cards */
.tf-mkt-stack {
    padding: 90px 0;
    background: var(--tf-slate-50);
}
.tf-mkt-stack-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 40px;
}
.tf-mkt-stack-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--tf-transition), transform var(--tf-transition);
}
.tf-mkt-stack-card:hover {
    border-color: var(--tf-green-400);
    transform: translateY(-2px);
}
.tf-mkt-stack-featured {
    background: linear-gradient(180deg, var(--tf-green-50) 0%, var(--tf-surface) 100%);
    border-color: var(--tf-green-400);
}
.tf-mkt-stack-emoji {
    font-size: 1.8rem;
    line-height: 1;
}
.tf-mkt-stack-card h3 {
    color: var(--tf-slate-900);
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
}
.tf-mkt-stack-card p {
    color: var(--tf-slate-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Personas */
.tf-mkt-personas {
    padding: 90px 0;
    background: var(--tf-surface);
}
.tf-mkt-personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.tf-mkt-persona {
    background: var(--tf-slate-50);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tf-mkt-persona h3 {
    color: var(--tf-green-700);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}
.tf-mkt-persona p {
    color: var(--tf-slate-600);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}
.tf-mkt-persona ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tf-mkt-persona li {
    padding-left: 22px;
    position: relative;
    color: var(--tf-slate-600);
    font-size: 0.9rem;
    line-height: 1.5;
}
.tf-mkt-persona li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tf-green-700);
    font-weight: 700;
}

/* Comparison table */
.tf-mkt-compare {
    padding: 90px 0;
    background: var(--tf-slate-50);
}
.tf-mkt-compare-table {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
}
.tf-mkt-compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--tf-border);
    align-items: center;
    font-size: 0.92rem;
    color: var(--tf-slate-600);
}
.tf-mkt-compare-row:last-child {
    border-bottom: none;
}
.tf-mkt-compare-row > div:first-child {
    font-weight: 600;
    color: var(--tf-slate-800);
}
.tf-mkt-compare-head {
    background: var(--tf-slate-50);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tf-slate-500);
}
.tf-mkt-compare-head > div:first-child {
    color: transparent;
}
.tf-mkt-compare-us {
    color: var(--tf-green-700) !important;
    font-weight: 600;
}
.tf-mkt-compare-head .tf-mkt-compare-us {
    color: var(--tf-green-700) !important;
}

/* FAQ */
.tf-mkt-faq {
    padding: 90px 0;
    background: var(--tf-surface);
}
.tf-mkt-faq-list {
    max-width: 820px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tf-mkt-faq-item {
    background: var(--tf-slate-50);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    transition: border-color var(--tf-transition), background var(--tf-transition);
}
.tf-mkt-faq-item[open] {
    border-color: var(--tf-green-400);
    background: var(--tf-surface);
}
.tf-mkt-faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--tf-slate-800);
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.tf-mkt-faq-item summary::-webkit-details-marker { display: none; }
.tf-mkt-faq-item summary::after {
    content: "+";
    color: var(--tf-green-700);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform var(--tf-transition);
}
.tf-mkt-faq-item[open] summary::after { content: "−"; }
.tf-mkt-faq-item p {
    padding: 0 22px 18px;
    margin: 0;
    color: var(--tf-slate-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* CTA fine-print */
.tf-mkt-cta-fine {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 18px;
}

/* Responsive */
@media (max-width: 960px) {
    .tf-mkt-stack-grid { grid-template-columns: repeat(2, 1fr); }
    .tf-mkt-personas-grid { grid-template-columns: 1fr; }
    .tf-mkt-problem-grid { grid-template-columns: 1fr; gap: 40px; }
    .tf-mkt-compare-row { grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.85rem; }
    .tf-mkt-compare-row > div:first-child { grid-column: 1 / -1; margin-bottom: 8px; }
    .tf-mkt-compare-head { display: none; }
}
@media (max-width: 600px) {
    .tf-mkt-stack-grid { grid-template-columns: 1fr; }
    .tf-mkt-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   Forge chatbot — floating bottom-right
   ============================================================ */

.tf-chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;   /* children enable pointer events */
}

/* ---- Launcher (bubble) ---- */
.tf-chatbot-launcher {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--tf-green-700) 0%, var(--tf-green-600) 100%);
    color: #fff;
    border: none;
    height: 56px;
    padding: 0 22px 0 16px;
    border-radius: var(--tf-radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(30, 107, 79, 0.38), 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    font-family: inherit;
}
.tf-chatbot-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(30, 107, 79, 0.45), 0 3px 8px rgba(0,0,0,0.15);
}
.tf-chatbot-launcher-open {
    width: 56px;
    padding: 0;
    justify-content: center;
}
.tf-chatbot-launcher-label {
    white-space: nowrap;
}
.tf-chatbot-launcher-pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tf-amber-500);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: tf-chatbot-pulse 2s infinite;
}
@keyframes tf-chatbot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ---- Chat window ---- */
.tf-chatbot-window {
    pointer-events: auto;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 600px;
    max-height: calc(100vh - 140px);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-xl);
    box-shadow: 0 24px 48px rgba(17, 19, 24, 0.22), 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: tf-chatbot-pop 0.22s ease-out;
}
@keyframes tf-chatbot-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tf-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--tf-green-700) 0%, var(--tf-green-600) 100%);
    color: #fff;
    flex-shrink: 0;
}
.tf-chatbot-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.tf-chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tf-chatbot-ident-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.tf-chatbot-ident-text strong {
    font-size: 1rem;
    font-weight: 700;
}
.tf-chatbot-ident-text span {
    font-size: 0.78rem;
    opacity: 0.85;
}
.tf-chatbot-header-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.tf-chatbot-iconbtn {
    background: transparent;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.tf-chatbot-iconbtn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* ---- Transcript ---- */
.tf-chatbot-transcript {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, var(--tf-slate-50) 0%, var(--tf-surface) 140px);
    scroll-behavior: smooth;
}

.tf-chatbot-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.tf-chatbot-warning {
    background: var(--tf-amber-50);
    border: 1px solid var(--tf-amber-400);
    border-left: 3px solid var(--tf-amber-600);
    color: var(--tf-amber-800);
    padding: 12px 14px;
    border-radius: var(--tf-radius-md);
    font-size: 0.88rem;
    line-height: 1.5;
}

.tf-chatbot-empty {
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tf-chatbot-empty strong {
    font-size: 1.05rem;
    color: var(--tf-slate-800);
}
.tf-chatbot-empty p {
    color: var(--tf-slate-500);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 6px;
    max-width: 320px;
}
.tf-chatbot-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tf-green-50);
    color: var(--tf-green-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tf-chatbot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}
.tf-chatbot-suggest {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    padding: 10px 12px;
    font-size: 0.86rem;
    color: var(--tf-slate-600);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color var(--tf-transition), color var(--tf-transition), background var(--tf-transition);
}
.tf-chatbot-suggest:hover:not(:disabled) {
    border-color: var(--tf-green-400);
    color: var(--tf-green-700);
    background: var(--tf-green-50);
}
.tf-chatbot-suggest:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Messages ---- */
.tf-chatbot-msg {
    display: flex;
    gap: 8px;
    max-width: 92%;
}
.tf-chatbot-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.tf-chatbot-assistant {
    align-self: flex-start;
}
.tf-chatbot-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tf-green-700);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-end;
}
.tf-chatbot-bubble {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--tf-shadow-sm);
    min-width: 0;
}
.tf-chatbot-user .tf-chatbot-bubble {
    background: var(--tf-green-700);
    border-color: var(--tf-green-700);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.tf-chatbot-assistant .tf-chatbot-bubble {
    border-bottom-left-radius: 4px;
}
.tf-chatbot-bubble-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.tf-chatbot-bubble-body p {
    margin: 0 0 8px;
    line-height: 1.55;
    font-size: 0.92rem;
}
.tf-chatbot-bubble-body p:last-child { margin-bottom: 0; }
.tf-chatbot-user .tf-chatbot-bubble-body { color: #fff; }

.tf-chatbot-cite {
    background: var(--tf-amber-50);
    color: var(--tf-amber-800);
    padding: 0 5px;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--tf-font-mono);
    white-space: nowrap;
}
.tf-chatbot-user .tf-chatbot-cite {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.tf-chatbot-bubble-time {
    font-size: 0.66rem;
    color: var(--tf-slate-400);
}
.tf-chatbot-user .tf-chatbot-bubble-time {
    color: rgba(255, 255, 255, 0.6);
}

.tf-chatbot-bubble-thinking {
    padding: 14px 16px;
    flex-direction: row;
    gap: 4px;
}
.tf-chatbot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tf-slate-400);
    animation: tf-chatbot-bounce 1.4s infinite ease-in-out both;
}
.tf-chatbot-dot:nth-child(1) { animation-delay: -0.32s; }
.tf-chatbot-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes tf-chatbot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ---- Input ---- */
.tf-chatbot-input {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--tf-border);
    background: var(--tf-surface);
    flex-shrink: 0;
}
.tf-chatbot-textarea {
    flex: 1;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color var(--tf-transition), box-shadow var(--tf-transition);
    max-height: 120px;
}
.tf-chatbot-textarea:focus {
    border-color: var(--tf-green-400);
    box-shadow: 0 0 0 2px var(--tf-green-50);
}
.tf-chatbot-textarea:disabled { background: var(--tf-slate-50); color: var(--tf-slate-400); }
.tf-chatbot-send {
    background: var(--tf-green-700);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--tf-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--tf-transition);
}
.tf-chatbot-send:hover:not(:disabled) { background: var(--tf-green-600); }
.tf-chatbot-send:disabled { background: var(--tf-slate-200); color: var(--tf-slate-400); cursor: not-allowed; }

/* Mobile: full-width bottom sheet-ish behaviour */
@media (max-width: 600px) {
    .tf-chatbot {
        bottom: 16px;
        right: 16px;
        left: 16px;
        align-items: stretch;
    }
    .tf-chatbot-window {
        width: auto;
        height: calc(100vh - 120px);
    }
    .tf-chatbot-launcher {
        align-self: flex-end;
    }
}

/* ============================================================
   Onboarding wizard
   ============================================================ */

.tf-onb-layout {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--tf-green-50) 0%, var(--tf-slate-50) 400px);
}

.tf-onb { padding: 48px 24px 64px; }
.tf-onb-container { max-width: 760px; margin: 0 auto; }

.tf-onb-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}
.tf-onb-progress-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--tf-slate-100);
    color: var(--tf-slate-400);
    border: 2px solid var(--tf-slate-200);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
    transition: background var(--tf-transition), color var(--tf-transition), border-color var(--tf-transition);
}
.tf-onb-progress-dot.tf-onb-progress-active {
    background: var(--tf-green-700);
    color: #fff;
    border-color: var(--tf-green-700);
}
.tf-onb-progress-bar-line {
    flex: 1; height: 2px;
    background: var(--tf-slate-200);
    max-width: 60px;
    transition: background var(--tf-transition);
}
.tf-onb-progress-bar-line.tf-onb-progress-active { background: var(--tf-green-700); }
.tf-onb-progress-label {
    text-align: center;
    color: var(--tf-slate-500);
    font-size: 0.82rem;
    margin: 0 0 28px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.tf-onb-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-xl);
    padding: 40px 44px 36px;
    box-shadow: var(--tf-shadow-md);
}
.tf-onb-card h1 {
    font-size: 1.8rem; font-weight: 800;
    color: var(--tf-slate-900);
    margin: 0 0 10px;
    line-height: 1.25;
}
.tf-onb-lead {
    color: var(--tf-slate-600);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 24px;
}
.tf-onb-loading { display: flex; justify-content: center; padding: 80px 0; }

.tf-onb-welcome { text-align: center; }
.tf-onb-welcome-icon { font-size: 3rem; margin-bottom: 12px; }
.tf-onb-welcome h1 { text-align: center; }
.tf-onb-welcome .tf-onb-lead {
    text-align: center;
    max-width: 520px;
    margin-left: auto; margin-right: auto;
}

.tf-onb-checklist {
    display: flex; flex-direction: column; gap: 10px;
    margin: 28px auto 32px;
    max-width: 560px;
    text-align: left;
}
.tf-onb-checklist > div {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px;
    background: var(--tf-slate-50);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    font-size: 0.95rem;
    color: var(--tf-slate-600);
    line-height: 1.55;
}
.tf-onb-checklist span {
    width: 24px; height: 24px;
    background: var(--tf-green-700);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.tf-onb-checklist strong {
    color: var(--tf-slate-900);
    display: block;
    margin-bottom: 2px;
}

.tf-onb-actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--tf-border);
    flex-wrap: wrap;
}
.tf-onb-welcome .tf-onb-actions {
    justify-content: center;
    border-top: none;
    padding-top: 0;
}

.tf-onb-row { display: flex; gap: 10px; }
.tf-onb-row > * { flex: 1; }

.tf-onb-matches {
    display: flex; flex-direction: column; gap: 12px;
    margin: 20px 0 28px;
}
.tf-onb-match {
    display: flex; gap: 16px;
    padding: 16px 18px;
    background: var(--tf-slate-50);
    border: 1px solid var(--tf-border);
    border-left: 3px solid var(--tf-green-400);
    border-radius: var(--tf-radius-md);
    align-items: center;
}
.tf-onb-match-score {
    background: var(--tf-green-700);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
}
.tf-onb-match-body { min-width: 0; flex: 1; }
.tf-onb-match-title {
    color: var(--tf-slate-800);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.45;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tf-onb-match-meta {
    color: var(--tf-slate-500);
    font-size: 0.82rem;
    margin-top: 4px;
}

.tf-onb-finish {
    background: var(--tf-green-50);
    border: 1px solid var(--tf-green-400);
    border-radius: var(--tf-radius-md);
    padding: 18px 20px;
    margin-top: 24px;
}
.tf-onb-finish h3 {
    color: var(--tf-green-700);
    margin: 0 0 10px;
    font-size: 1rem; font-weight: 700;
}
.tf-onb-finish ul {
    margin: 0;
    padding-left: 20px;
    color: var(--tf-slate-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .tf-onb-card { padding: 28px 20px; }
    .tf-onb-card h1 { font-size: 1.4rem; }
    .tf-onb-row { flex-direction: column; }
    .tf-onb-progress-bar-line { max-width: 24px; }
}

/* ============================================================
   Reconnect banner — replaces Blazor's default centre-screen modal
   with a subtle top-center pill.
   ============================================================ */

#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: #fff;
    border-radius: var(--tf-radius-full);
    box-shadow: var(--tf-shadow-md);
    border: 1px solid var(--tf-border);
    padding: 8px 18px 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tf-slate-600);
    animation: tf-reconnect-fade 0.2s ease-out;
}

#components-reconnect-modal.components-reconnect-show {
    display: block;
}
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
    border-color: var(--tf-danger);
    background: #fff;
}

#components-reconnect-modal .tf-reconnect-show,
#components-reconnect-modal .tf-reconnect-failed,
#components-reconnect-modal .tf-reconnect-rejected {
    display: none;
    align-items: center;
    gap: 10px;
}
#components-reconnect-modal.components-reconnect-show .tf-reconnect-show { display: inline-flex; }
#components-reconnect-modal.components-reconnect-failed .tf-reconnect-failed { display: inline-flex; }
#components-reconnect-modal.components-reconnect-rejected .tf-reconnect-rejected { display: inline-flex; }

.tf-reconnect-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--tf-slate-200);
    border-top-color: var(--tf-green-700);
    border-radius: 50%;
    animation: tf-reconnect-spin 0.8s linear infinite;
}

.tf-reconnect-failed strong,
.tf-reconnect-rejected strong {
    color: var(--tf-danger);
}

#components-reconnect-modal button {
    background: var(--tf-green-700);
    color: #fff;
    border: none;
    border-radius: var(--tf-radius-full);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

@keyframes tf-reconnect-spin { to { transform: rotate(360deg); } }
@keyframes tf-reconnect-fade { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============================================================
   Home page — new visual flourishes
   ============================================================ */

/* Small eyebrow label above section titles */
.tf-mkt-eyebrow {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--tf-green-700);
    margin: 0 0 10px;
}
.tf-mkt-eyebrow-light { color: var(--tf-green-400); text-align: left; }

/* Hero — subtle green glow behind content */
.tf-mkt-hero { position: relative; overflow: hidden; }
.tf-mkt-hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(52, 184, 127, 0.18) 0%, rgba(52, 184, 127, 0) 70%);
    pointer-events: none;
    z-index: 0;
}
.tf-mkt-hero .tf-mkt-container { position: relative; z-index: 1; }

/* Hero pill row of features */
.tf-mkt-hero-pills {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.tf-mkt-hero-pill {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-full);
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--tf-slate-600);
    transition: border-color var(--tf-transition), color var(--tf-transition);
}
.tf-mkt-hero-pill:hover {
    border-color: var(--tf-green-400);
    color: var(--tf-green-700);
}

/* Live metrics section */
.tf-mkt-metrics {
    padding: 70px 0;
    background: var(--tf-surface);
    border-bottom: 1px solid var(--tf-border);
}
.tf-mkt-metrics-title {
    margin-bottom: 40px !important;
}
.tf-mkt-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.tf-mkt-metric {
    text-align: center;
    padding: 24px 14px;
    border-left: 1px solid var(--tf-border);
}
.tf-mkt-metric:first-child { border-left: none; }
.tf-mkt-metric-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--tf-green-700);
    line-height: 1;
    letter-spacing: -0.02em;
}
.tf-mkt-metric-label {
    color: var(--tf-slate-500);
    font-size: 0.88rem;
    margin-top: 8px;
    line-height: 1.4;
}

/* Dark product preview section */
.tf-mkt-preview {
    padding: 90px 0;
    background: linear-gradient(180deg, #111318 0%, #1A1D26 100%);
    color: #E2E5EA;
    position: relative;
    overflow: hidden;
}
.tf-mkt-preview::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(52, 184, 127, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.tf-mkt-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.tf-mkt-preview-copy h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
}
.tf-mkt-preview-copy p {
    color: rgba(226, 229, 234, 0.82);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0 0 14px;
}
.tf-mkt-preview-tag {
    color: var(--tf-green-400) !important;
    font-weight: 600;
    font-size: 1.05rem !important;
    margin-top: 20px !important;
}

/* Mock window — CSS-only product preview */
.tf-mkt-mock-window {
    background: #0D0F14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--tf-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.tf-mkt-mock-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #17191F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tf-mkt-mock-titlebar > span:nth-child(-n+3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3f4b;
}
.tf-mkt-mock-title {
    margin-left: 12px !important;
    color: rgba(226, 229, 234, 0.6) !important;
    font-size: 0.78rem !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
}
.tf-mkt-mock-body {
    padding: 22px;
}
.tf-mkt-mock-text {
    color: rgba(226, 229, 234, 0.85) !important;
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
    margin: 0 0 22px !important;
}
.tf-mkt-mock-text mark {
    background: rgba(245, 158, 11, 0.22);
    color: #FBBF24;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}
.tf-mkt-mock-panel {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--tf-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tf-mkt-mock-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FBBF24;
    font-size: 0.88rem;
}
.tf-mkt-mock-panel-head strong { font-weight: 700; }
.tf-mkt-mock-flag { font-size: 0.95rem; }
.tf-mkt-mock-assumption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(13, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #F59E0B;
    border-radius: 6px;
    padding: 10px 12px;
}
.tf-mkt-mock-claim {
    color: #E2E5EA;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
}
.tf-mkt-mock-meta {
    color: rgba(226, 229, 234, 0.55);
    font-size: 0.72rem;
    margin-top: 4px;
}
.tf-mkt-mock-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.tf-mkt-mock-accept,
.tf-mkt-mock-reject {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--tf-radius-full);
    white-space: nowrap;
}
.tf-mkt-mock-accept {
    background: rgba(22, 163, 74, 0.2);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.tf-mkt-mock-reject {
    background: rgba(220, 38, 38, 0.15);
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Voice-of-bid-team quotes */
.tf-mkt-voice {
    padding: 90px 0;
    background: var(--tf-slate-50);
}
.tf-mkt-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.tf-mkt-quote {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 32px 28px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}
.tf-mkt-quote::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    left: 20px;
    font-size: 4rem;
    color: var(--tf-green-400);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}
.tf-mkt-quote blockquote {
    margin: 0;
    padding-top: 28px;
    color: var(--tf-slate-800);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}
.tf-mkt-quote figcaption {
    color: var(--tf-slate-500);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 960px) {
    .tf-mkt-preview-grid { grid-template-columns: 1fr; }
    .tf-mkt-quote-grid { grid-template-columns: 1fr; }
    .tf-mkt-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .tf-mkt-metric { border-left: none; border-top: 1px solid var(--tf-border); padding-top: 20px; }
    .tf-mkt-metric:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 600px) {
    .tf-mkt-metrics-grid { grid-template-columns: 1fr; }
    .tf-mkt-metric { border-top: 1px solid var(--tf-border); }
    .tf-mkt-metric:first-child { border-top: none; }
    .tf-mkt-preview-copy h2 { font-size: 1.7rem; }
}
