@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   CLIENT PATH SYSTEMS - DESIGN TOKENS & STYLESHEET
   Standardized to match the Client Path Systems CRM application.
   ========================================================================== */

:root {
    /* Brand Violet Palette (Matches CRM tailwind.config.js) */
    --brand-50: #f5f3ff;
    --brand-100: #ede9fe;
    --brand-200: #ddd6fe;
    --brand-300: #c4b5fd;
    --brand-400: #a78bfa;
    --brand-500: #8b5cf6;
    --brand-600: #7c3aed;  /* Primary Brand Accent */
    --brand-700: #6d28d9;  /* Primary Hover */
    --brand-800: #5b21b6;
    --brand-900: #4c1d95;
    --brand-950: #2e1065;

    /* Slate Neutral Scale */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Surface & Background */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --border-subtle: #f1f5f9;
    --border-card: #e2e8f0;
    --border-focus: #7c3aed;

    /* Text Colors */
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    /* Functional Semantic Accents (Matches CRM LeadStatus & FollowUp Badges) */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-600: #059669;
    --emerald-700: #047857;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-600: #d97706;
    --amber-700: #b45309;

    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-600: #e11d48;
    --rose-700: #be123c;

    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;

    /* Shadows (Matches CRM Tailwind extensions) */
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 10px 25px -5px rgba(124, 58, 237, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-dropdown: 0 10px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-button: 0 4px 14px 0 rgba(124, 58, 237, 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem; /* 6px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 0.75rem;  /* 12px */
    --radius-xl: 1rem;     /* 16px */
    --radius-2xl: 1.5rem;  /* 24px */
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE TYPOGRAPHY
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

/* ==========================================================================
   PILL BADGES (Matches CRM .badge-pill)
   ========================================================================== */

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    width: fit-content;
}

.badge-brand {
    background-color: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
}

.badge-emerald {
    background-color: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid var(--emerald-100);
}

.badge-blue {
    background-color: var(--blue-50);
    color: var(--blue-700);
    border: 1px solid var(--blue-100);
}

.badge-amber {
    background-color: var(--amber-50);
    color: var(--amber-700);
    border: 1px solid var(--amber-100);
}

.badge-rose {
    background-color: var(--rose-50);
    color: var(--rose-700);
    border: 1px solid var(--rose-100);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--emerald-600);
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-heading);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-mark {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--indigo-600) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.875rem;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    letter-spacing: -0.01em;
}

.brand-accent {
    color: var(--brand-600);
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.nav-list a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 500;
    font-size: 0.925rem;
    transition: color 0.15s ease;
}

.nav-list a:hover {
    color: var(--brand-600);
}

.nav-app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background-color: var(--slate-100);
    color: var(--slate-700) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: 1px solid var(--slate-200);
    transition: all 0.15s ease !important;
}

.nav-app-link:hover {
    background-color: var(--brand-50);
    color: var(--brand-700) !important;
    border-color: var(--brand-200);
}

.nav-cta-btn {
    background: var(--brand-600);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem !important;
    box-shadow: var(--shadow-button);
    transition: all 0.2s ease;
}

.nav-cta-btn:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px 0 rgba(124, 58, 237, 0.32);
}

.nav-cta-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   BUTTONS (Matches CRM Buttons)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--brand-600);
    color: #ffffff;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background-color: var(--brand-700);
    color: #ffffff;
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--slate-700);
    border-color: var(--slate-200);
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: 70px 24px 60px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--slate-100);
    position: relative;
    overflow: hidden;
}

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

.hero-eyebrow {
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brand-700);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-badges-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-badge-item svg {
    color: var(--brand-600);
}

/* ==========================================================================
   CRM PRODUCT PREVIEW MOCKUP (Authentic CRM Look & Feel)
   ========================================================================== */

.crm-preview-section {
    max-width: 1140px;
    margin: 40px auto 0;
}

.crm-mockup-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(124, 58, 237, 0.04);
    overflow: hidden;
    text-align: left;
}

.crm-mockup-topbar {
    background: #ffffff;
    padding: 14px 20px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.crm-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crm-app-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.crm-tenant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.crm-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid var(--emerald-100);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.crm-add-btn-preview {
    background: var(--brand-600);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* KPI Cards Row inside Mockup */
.crm-mockup-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
    background-color: var(--slate-50);
    border-bottom: 1px solid var(--slate-100);
}

.crm-kpi-item {
    background: #ffffff;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-subtle);
}

.crm-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.crm-kpi-sub {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 4px;
}

/* Mockup Table */
.crm-mockup-table-wrap {
    padding: 20px;
    overflow-x: auto;
}

.crm-mockup-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.crm-table-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
}

.crm-preview-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.crm-preview-table th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--slate-500);
    border-bottom: 1px solid var(--slate-200);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #ffffff;
}

.crm-preview-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
    vertical-align: middle;
}

.crm-preview-table tr:hover td {
    background-color: var(--brand-50);
}

.lead-name-cell {
    font-weight: 600;
    color: var(--text-heading);
}

.lead-id-sub {
    font-size: 0.72rem;
    color: var(--slate-400);
    display: block;
}

/* ==========================================================================
   SHARED SECTION STYLES
   ========================================================================== */

section {
    padding: 90px 24px;
}

.section-content {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 52px;
    line-height: 1.6;
}

/* ==========================================================================
   CORE POSITIONING PILLARS ("Why Client Path Systems")
   ========================================================================== */

.pillars-section {
    background: #ffffff;
    border-bottom: 1px solid var(--slate-100);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.pillar-card {
    background: var(--bg-page);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--brand-200);
    background: #ffffff;
}

.pillar-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Highlight banner within pillars */
.positioning-callout {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--brand-50) 0%, #ffffff 100%);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 10px;
}

.positioning-callout-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 4px;
}

.positioning-callout-text p {
    font-size: 0.925rem;
    color: var(--slate-600);
}

/* ==========================================================================
   CRM FUNCTIONALITY SHOWCASE
   ========================================================================== */

.features-section {
    background: var(--bg-page);
    border-bottom: 1px solid var(--slate-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--brand-200);
}

.feature-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.icon-brand { background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-200); }
.icon-blue { background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); }
.icon-emerald { background: var(--emerald-50); color: var(--emerald-600); border: 1px solid var(--emerald-100); }
.icon-amber { background: var(--amber-50); color: var(--amber-600); border: 1px solid var(--amber-100); }
.icon-indigo { background: var(--indigo-50); color: var(--indigo-600); border: 1px solid var(--indigo-100); }
.icon-rose { background: var(--rose-50); color: var(--rose-600); border: 1px solid var(--rose-100); }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.feature-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.feature-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-600);
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */

.how-it-works {
    background: #ffffff;
    border-bottom: 1px solid var(--slate-100);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
}

.step-card {
    background: var(--bg-page);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    position: relative;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: var(--brand-200);
    background: #ffffff;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-700);
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   MULTI-INDUSTRY SECTION
   ========================================================================== */

.industries-section {
    background: var(--bg-page);
    border-bottom: 1px solid var(--slate-100);
    padding: 85px 24px;
}

.industries-section .section-subtitle {
    max-width: 680px;
    margin: 0 auto 24px;
}

.industries-closing {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-700);
    margin-top: 0;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   CONTACT & DEMO FORM SECTION
   ========================================================================== */

.contact-section {
    background: #ffffff;
    padding: 90px 24px 110px;
}

.form-wrapper {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    padding: 40px 36px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group label .required,
.question-label .required,
.required {
    color: var(--rose-600);
}

.form-group input,
.form-group textarea,
.question-group input:not([type="checkbox"]):not([type="radio"]),
.question-group textarea,
.conditional-field input:not([type="checkbox"]):not([type="radio"]),
.conditional-field textarea {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    font-family: inherit;
    background: var(--slate-50);
    color: var(--text-heading);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.question-group input:not([type="checkbox"]):not([type="radio"]):focus,
.question-group textarea:focus,
.conditional-field input:not([type="checkbox"]):not([type="radio"]):focus,
.conditional-field textarea:focus {
    outline: none;
    border-color: var(--brand-600);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group input.input-error,
.form-group textarea.input-error,
.question-group input.input-error,
.question-group textarea.input-error,
.conditional-field input.input-error,
.conditional-field textarea.input-error,
.input-error {
    border-color: var(--rose-600) !important;
    background-color: var(--rose-50) !important;
}

.field-error {
    display: block;
    font-size: 0.825rem;
    color: var(--rose-600);
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--brand-600);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-button);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--brand-700);
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

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

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

/* Status Notifications */
.form-status {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    font-size: 0.925rem;
    line-height: 1.5;
    font-weight: 500;
}

.form-status.status-success {
    display: block;
    background: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid var(--emerald-100);
}

.form-status.status-error {
    display: block;
    background: var(--rose-50);
    color: var(--rose-700);
    border: 1px solid var(--rose-100);
}

.form-status.status-warning {
    display: block;
    background: var(--amber-50);
    color: var(--amber-800);
    border: 1px solid var(--amber-200);
}

.crm-sample-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--slate-100);
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-700);
    letter-spacing: 0.02em;
}

.trial-section {
    padding: 90px 24px 100px;
    background: linear-gradient(180deg, #ffffff 0%, var(--brand-50) 100%);
    position: relative;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--brand-200);
}

.trial-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--brand-100);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.form-privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 16px;
    text-align: center;
}

.form-privacy-note a {
    color: var(--brand-600);
    text-decoration: underline;
    font-weight: 500;
}

.form-privacy-note a:hover {
    color: var(--brand-700);
}

.field-optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Privacy Policy Layout */
.privacy-page-hero {
    padding: 80px 24px 40px;
    text-align: center;
}

.privacy-card {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-card);
    text-align: left;
}

.privacy-card h2 {
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-top: 28px;
    margin-bottom: 12px;
}

.privacy-card p, .privacy-card ul {
    font-size: 0.975rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-card ul {
    padding-left: 24px;
}

.privacy-card li {
    margin-bottom: 8px;
}

/* ==========================================================================
   FOOTER (Matches CRM Footer & App Aesthetics)
   ========================================================================== */

.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 60px 24px 36px;
    border-top: 1px solid var(--slate-800);
    font-size: 0.875rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .brand-logo {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--brand-400);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-desc {
    color: var(--slate-400);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 380px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--slate-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--slate-500);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--slate-400);
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ==========================================================================
   HANDLED CONFIRMATION PAGE (handled.html)
   ========================================================================== */

.handled-page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.handled-card {
    max-width: 600px;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    padding: 48px 36px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.handled-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    color: var(--emerald-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
    .crm-mockup-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .positioning-callout {
        grid-column: span 2;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 45px 20px 40px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .pillars-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .positioning-callout {
        grid-column: span 1;
    }

    .crm-mockup-kpis {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: 14px;
        padding: 14px 18px;
    }

    .site-nav .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .form-wrapper {
        padding: 28px 20px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 36px 16px 32px;
    }

    .hero h1 {
        font-size: 1.95rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .trial-section {
        padding: 60px 16px 70px;
    }

    .form-wrapper {
        padding: 24px 16px;
    }

    .site-nav .nav-list {
        gap: 8px 12px;
    }

    .nav-cta-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   CUSTOMER ONBOARDING PAGE (/onboarding)
   ========================================================================== */

.onboarding-page-body {
    background-color: var(--bg-page);
    min-height: 100vh;
}

.onboarding-header {
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.onboarding-nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--slate-100);
    transition: all 0.15s ease;
}

.nav-back-link:hover {
    color: var(--brand-700);
    background: var(--brand-100);
}

.onboarding-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Hero & Introduction */
.onboarding-hero {
    margin-bottom: 36px;
    text-align: left;
}

.onboarding-hero h1 {
    font-size: 2.25rem;
    margin-top: 14px;
    margin-bottom: 14px;
    color: var(--text-heading);
    letter-spacing: -0.025em;
}

.onboarding-intro-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 20px;
}

.supporting-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    color: var(--brand-950);
    font-size: 0.925rem;
    line-height: 1.55;
}

.supporting-callout-icon {
    flex-shrink: 0;
    color: var(--brand-600);
    margin-top: 2px;
}

/* Main Form Card */
.onboarding-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-card);
}

/* Section Styling */
.onboarding-section {
    border: none;
    padding: 0;
    margin: 0 0 36px 0;
}

.onboarding-section:not(:first-child) {
    border-top: 1px solid var(--slate-200);
    padding-top: 36px;
}

.section-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Form Groups and Questions */
.question-group {
    margin-bottom: 26px;
}

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

.question-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.4;
}

.optional-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 6px;
}

.field-helper {
    display: block;
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.45;
}

.helper-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.825rem;
    color: var(--slate-600);
    line-height: 1.5;
    margin-top: 10px;
}

/* Selectable Choice Options (Radios and Checkboxes) */
.choices-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.choice-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.choice-item:hover {
    background: #ffffff;
    border-color: var(--brand-300);
}

.choice-item:focus-within {
    border-color: var(--brand-600);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.choice-item.selected {
    background: var(--brand-50);
    border-color: var(--brand-600);
}

.choice-input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--brand-600);
    cursor: pointer;
    flex-shrink: 0;
}

.choice-label-text {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.4;
}

/* Dynamic Conditional Subfields */
.conditional-field {
    margin-top: 14px;
    padding: 16px 18px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-left: 3px solid var(--brand-500);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.conditional-hidden {
    display: none !important;
}

/* Custom Select Styling */
.form-select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    font-family: inherit;
    background-color: var(--slate-50);
    color: var(--text-heading);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--brand-600);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-select.input-error {
    border-color: var(--rose-600);
    background-color: var(--rose-50);
}

/* Textarea Character Counter */
.textarea-wrapper {
    position: relative;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Security Disclaimer */
.security-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-top: 32px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--slate-600);
    line-height: 1.5;
}

.security-icon {
    flex-shrink: 0;
    color: var(--slate-500);
    margin-top: 2px;
}

/* Success Card */
.onboarding-success-card {
    display: none;
    text-align: center;
    padding: 48px 32px;
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    color: var(--emerald-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.onboarding-success-card h2 {
    font-size: 1.85rem;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.onboarding-success-card p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* Honeypot Styling (Visually hidden, inaccessible to sighted users) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .onboarding-container {
        padding: 32px 16px 60px;
    }

    .onboarding-card {
        padding: 28px 20px;
        border-radius: var(--radius-xl);
    }

    .onboarding-hero h1 {
        font-size: 1.85rem;
    }

    .section-legend {
        font-size: 1.15rem;
    }

    .choices-grid {
        grid-template-columns: 1fr;
    }
}