:root {
    /* ===== Color — one restrained, on-brand palette ===== */
    --bg-base: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-muted: #f0f0f2;

    --text-primary: #1d1d1f;
    --text-body: #3a3a3c;        /* default paragraph color */
    --text-secondary: #494950;   /* darkened for AA contrast */
    --text-tertiary: #6e6e73;    /* labels ≥14px only, never body */

    --accent-blue: #0066cc;
    --accent-blue-hover: #00529e;
    --accent-blue-soft: #e8f1fb;
    --accent-blue-glow: rgba(0, 102, 204, 0.06);
    --accent-emerald: #34c759;
    --accent-emerald-soft: #e7f8ed;
    --accent-amber: #ff9500;
    --accent-rose: #ff3b30;
    --focus-ring: #0066cc;

    /* Legacy accent aliases kept on-palette (no stray indigo/cyan) */
    --accent-indigo: #6e6e73;
    --accent-indigo-glow: rgba(110, 110, 115, 0.06);
    --accent-cyan: #515154;

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.10);
    --border-hover: rgba(0, 0, 0, 0.18);
    --border-active: #1d1d1f;

    /* ===== Typography ===== */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace, "Roboto Mono", monospace;

    --fs-xs: 0.75rem;      /* 12 */
    --fs-sm: 0.8125rem;    /* 13 */
    --fs-base: 0.9375rem;  /* 15 */
    --fs-md: 1rem;         /* 16 — body */
    --fs-lg: 1.125rem;     /* 18 */
    --fs-xl: 1.5rem;       /* 24 */
    --fs-2xl: 1.875rem;    /* 30 */
    --fs-3xl: 2.25rem;     /* 36 */
    --fs-4xl: 3rem;        /* 48 */
    --fs-hero: clamp(2.75rem, 6vw, 4.5rem);

    /* ===== Spacing (4px base) ===== */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;

    /* Legacy spacing aliases (mapped onto the scale) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container-width: 1100px;

    /* ===== Radius scale ===== */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* ===== Shadow scale ===== */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);

    --transition-fast: 0.15s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at 50% -8%, rgba(0, 102, 204, 0.05) 0%, transparent 55%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
    background: linear-gradient(135deg, #1d1d1f 30%, #515154 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Reveal Animations — gated on .js so content is visible without JS */
html.js .reveal-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Site-wide frosted header bar — full-width, ~52px, Apple-style.
   Single source of truth for `.main-header`; formerly a homepage-only
   modifier class in home-light.css, now promoted here for every page. */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    border-bottom: 1px solid rgba(29, 29, 31, .09);
    border-radius: 0;
    padding: 0 24px;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled state: keep it a hairline bar — just lift it slightly */
.main-header.visible {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    max-width: 1180px;
    margin-inline: auto;
    padding: 0;
}

/* Anchor links truly centered in the bar (Apple-style), independent of
   logo/CTA widths. Falls back to inline flow below 900px. */
.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

@media (max-width: 900px) {
    /* Centered links would collide with logo/CTAs — flow them instead */
    .nav-links {
        position: static;
        transform: none;
        gap: 1rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 26px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition-fast);
}

.main-nav a:hover {
    color: var(--accent-blue);
}

/* The top-nav primary CTA ("Sign in") is an <a>, so the .main-nav a rules above
   (specificity 0,1,1 / hover 0,2,1) outrank .btn-primary's white text and leave
   it dark on the charcoal pill. Restore the button text color for nav anchors. */
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover {
    color: #ffffff;
}

.btn-nav-cta {
    padding: 0.5rem 1.25rem !important;
    font-size: var(--fs-sm) !important;
    border-radius: var(--radius-pill) !important;
}

/* Buttons — one base, three variants, one pill modifier */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--fs-base);
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.btn--pill {
    border-radius: var(--radius-pill);
}

.btn-primary {
    background: var(--text-primary); /* Sleek charcoal ink */
    color: #ffffff;
    border: 1px solid var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    background: #000000;
    border-color: #000000;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-muted);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

.btn-full {
    width: 100%;
}

/* -------------------------------------
   Hero Section & Canvas Waveform
-------------------------------------- */
.hero {
    padding-top: calc(var(--spacing-xl) + 4.5rem);
    padding-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 3D Centered Logo Node */
.hero-avatar-node {
    width: 54px;
    height: 54px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    animation: float-logo 4s ease-in-out infinite;
}

.avatar-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: relative;
}

.avatar-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-indigo);
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 0;
}

/* Flanking Floating Bento Widgets */
.floating-widget {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    width: 220px;
    z-index: 10;
    transition: all 0.3s ease;
    animation: float-widget 6s ease-in-out infinite;
    text-align: left;
}

.widget-left {
    left: 4%;
    top: 35%;
    animation-delay: 0s;
}

.widget-right {
    right: 4%;
    top: 38%;
    animation-delay: 1.5s;
}

.floating-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.widget-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-rose);
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

.widget-dot.green {
    background: var(--accent-emerald);
}

.widget-transcript {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-family: var(--font-mono);
}

.widget-mini-wave {
    display: flex;
    gap: 2px;
    margin-top: 0.5rem;
    align-items: flex-end;
    height: 12px;
}

.widget-mini-wave span {
    width: 2px;
    height: 100%;
    background: var(--accent-blue);
    border-radius: 1px;
    animation: wave-bar 1.2s ease-in-out infinite alternate;
}

.widget-mini-wave span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.widget-mini-wave span:nth-child(3) { animation-delay: 0.4s; height: 90%; }
.widget-mini-wave span:nth-child(4) { animation-delay: 0.1s; height: 40%; }
.widget-mini-wave span:nth-child(5) { animation-delay: 0.3s; height: 75%; }

.widget-status-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.widget-status-item .check-icon {
    color: var(--accent-emerald);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}

/* 100% Full Screen-Width Waveform Container */
.hero-waveform-container {
    width: 100%;
    max-width: 100%;
    height: 180px;
    margin-top: 4rem;
    margin-bottom: 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(240, 244, 255, 0.45) 100%);
    border: none;
    border-top: 1px solid var(--border-subtle);
    overflow: hidden;
}

.hero-waveform-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* -------------------------------------
   Interactive Call Simulator Section
-------------------------------------- */
.demo-section {
    padding: var(--spacing-xl) 0;
    background: rgba(245, 247, 252, 0.6);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 102, 204, 0.12) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-header h2 {
    font-size: var(--fs-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.live-agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.agent-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.agent-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-card-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--text-primary);
    background: var(--bg-base);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-strong);
}

.agent-avatar-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 2px;
    display: block;
}

.agent-card-meta h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.agent-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.green-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    top: 0;
    left: 0;
}

@keyframes ping {
    75%, 100% {
        transform: scale(3);
        opacity: 0;
    }
}

.btn-call-agent {
    margin-top: auto;
    width: 100%;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-primary);
    padding: 0.7rem 1.5rem;
    font-size: 0.88rem;
    border: 1px solid var(--border-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.btn-call-agent:hover {
    background: #fafafc;
    border-color: rgba(27, 54, 93, 0.2);
    color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.phone-icon-svg {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
    stroke: currentColor;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-call-agent:hover .phone-icon-svg {
    transform: translateX(1px);
}

.agent-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.agent-card-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.feature-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-checklist li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.feature-checklist .check-icon {
    color: var(--accent-emerald);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
}

.call-guide-box {
    background: #fafafa;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 1rem;
    margin-top: auto;
}

.call-guide-box h5 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.call-guide-box ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.call-guide-box li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    padding-left: 0.65rem;
}

.call-guide-box li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
    font-weight: 700;
}

.guide-tag {
    color: var(--text-tertiary);
    font-size: 0.72rem;
    font-style: italic;
    display: inline-block;
    margin-left: 0.25rem;
}

@keyframes phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 23, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

/* -------------------------------------
   Core Capabilities (Bento Spec Grid)
-------------------------------------- */
.capabilities-section {
    padding: var(--spacing-xl) 0;
    background-color: transparent;
    border-top: 1px solid var(--border-subtle);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.capability-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(27, 54, 93, 0.02), transparent 45%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.capability-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.1em;
}

.capability-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Bento Spec Visualizers */
.tech-visual {
    background: #fafafc;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* Latency Comparison */
.latency-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.row-label {
    width: 120px;
    color: var(--text-secondary);
    font-size: 0.65rem;
    text-align: left;
    font-weight: 600;
}
.bar-container {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 9999px;
    position: relative;
    display: flex;
    align-items: center;
}
.bar {
    height: 100%;
    border-radius: 9999px;
}
.bar-padoori {
    background: var(--text-primary);
}
.bar-standard {
    background: rgba(0, 0, 0, 0.15);
}
.bar-human {
    background: rgba(0, 0, 0, 0.08);
}
.bar-value {
    position: absolute;
    right: -42px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Prosody Wave */
.prosody-visual {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prosody-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* RAG Circular Layout */
.rag-layout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.circular-search-container {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    border-radius: 50%;
}
.search-ring-svg {
    display: none;
}
.search-status {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.rag-node-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.rag-node {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}
.node-grounded {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    background: rgba(52, 199, 89, 0.04);
}
.node-vector {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: #fafafc;
}
.rag-connector {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
    position: relative;
}
.rag-connector::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    top: -1.5px;
    left: 0;
    animation: flow-particle 2.5s linear infinite;
}
.rag-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
    font-weight: 500;
}

/* Compliance console */
.compliance-visual {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
    max-height: 85px;
    overflow-y: hidden;
}
.comp-log {
    font-size: 0.62rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comp-log.status-ok {
    color: var(--accent-emerald);
}
.comp-log.status-warn {
    color: var(--accent-blue);
}

/* -------------------------------------
   CRM & Software Integrations Section
-------------------------------------- */
.integrations-section {
    padding: var(--spacing-xl) 0;
    background: rgba(245, 247, 252, 0.25);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.integrations-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 3.5rem;
    overflow: hidden;
}

/* Linear gradient overlays on the sides to indicate scrollability */
.integrations-carousel-container::before,
.integrations-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.integrations-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, #f5f6fa 0%, rgba(245, 246, 250, 0) 100%);
}

.integrations-carousel-container::after {
    right: 0;
    background: linear-gradient(-90deg, #f5f6fa 0%, rgba(245, 246, 250, 0) 100%);
}

@media (max-width: 768px) {
    .integrations-carousel-container::before,
    .integrations-carousel-container::after {
        width: 40px; /* narrower fades on small screens */
    }
}

.integrations-grid {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0.75rem 0.5rem 1.75rem 0.5rem;
    width: max-content;
    animation: integrations-marquee 45s linear infinite;
    pointer-events: none; /* completely prevents dragging, clicking, and text selection */
}

.integration-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 110px;
    flex: 0 0 170px;
}

@keyframes integrations-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.integration-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: #fafafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.integration-icon-wrap svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.integration-icon-wrap svg.svg-stroke {
    fill: none;
    stroke: currentColor;
}

.integration-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.integration-card p {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.15rem;
}

/* Default Integration Colors */
.integration-card.int-clio .integration-icon-wrap { border-color: rgba(44, 110, 196, 0.2); background: rgba(44, 110, 196, 0.03); }
.integration-card.int-clio svg { color: #2c6ec4; }

.integration-card.int-servicetitan .integration-icon-wrap { border-color: rgba(0, 43, 73, 0.2); background: rgba(0, 43, 73, 0.03); }
.integration-card.int-servicetitan svg { color: #002b49; }

.integration-card.int-mcleod .integration-icon-wrap { border-color: rgba(11, 92, 171, 0.2); background: rgba(11, 92, 171, 0.03); }
.integration-card.int-mcleod svg { color: #0b5cab; }

.integration-card.int-salesforce .integration-icon-wrap { border-color: rgba(0, 161, 224, 0.2); background: rgba(0, 161, 224, 0.03); }
.integration-card.int-salesforce svg { color: #00a1e0; }

.integration-card.int-hubspot .integration-icon-wrap { border-color: rgba(255, 122, 89, 0.2); background: rgba(255, 122, 89, 0.03); }
.integration-card.int-hubspot svg { color: #ff7a59; }

.integration-card.int-slack .integration-icon-wrap { border-color: rgba(74, 21, 75, 0.2); background: rgba(74, 21, 75, 0.03); }
.integration-card.int-slack svg { color: #4a154b; }

.integration-card.int-gmail .integration-icon-wrap { border-color: rgba(234, 67, 53, 0.2); background: rgba(234, 67, 53, 0.03); }
.integration-card.int-gmail svg { color: #ea4335; }

.integration-card.int-n8n .integration-icon-wrap { border-color: rgba(255, 108, 55, 0.2); background: rgba(255, 108, 55, 0.03); }
.integration-card.int-n8n svg { color: #ff6c37; }

.integration-card.int-filevine .integration-icon-wrap { border-color: rgba(0, 119, 197, 0.2); background: rgba(0, 119, 197, 0.03); }
.integration-card.int-filevine svg { color: #0077c5; }

.integration-card.int-procore .integration-icon-wrap { border-color: rgba(255, 102, 0, 0.2); background: rgba(255, 102, 0, 0.03); }
.integration-card.int-procore svg { color: #ff6600; }

.integration-card.int-samsara .integration-icon-wrap { border-color: rgba(16, 185, 129, 0.2); background: rgba(16, 185, 129, 0.03); }
.integration-card.int-samsara svg { color: var(--accent-emerald); }

.integration-card.int-fieldedge .integration-icon-wrap { border-color: rgba(0, 178, 227, 0.2); background: rgba(0, 178, 227, 0.03); }
.integration-card.int-fieldedge svg { color: #00b2e3; }

.integration-card.int-stripe .integration-icon-wrap { border-color: rgba(99, 91, 255, 0.2); background: rgba(99, 91, 255, 0.03); }
.integration-card.int-stripe svg { color: #635bff; }

.integration-card.int-zendesk .integration-icon-wrap { border-color: rgba(3, 54, 61, 0.2); background: rgba(3, 54, 61, 0.03); }
.integration-card.int-zendesk svg { color: #03363d; }

.integration-card.int-twilio .integration-icon-wrap { border-color: rgba(242, 47, 70, 0.2); background: rgba(242, 47, 70, 0.03); }
.integration-card.int-twilio svg { color: #f22f46; }

.integration-card.int-msdynamics .integration-icon-wrap { border-color: rgba(0, 120, 212, 0.2); background: rgba(0, 120, 212, 0.03); }
.integration-card.int-msdynamics svg { color: #0078d4; }

.integration-card.int-cliogrow .integration-icon-wrap { border-color: rgba(44, 110, 196, 0.2); background: rgba(44, 110, 196, 0.03); }
.integration-card.int-cliogrow svg { color: #2c6ec4; }

.integration-card.integration-card--more .integration-icon-wrap { border-color: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.01); }
.integration-card.integration-card--more svg { color: var(--text-secondary); }

/* Integration Card Hover Styles (Apple-Style Subtle Lifting + Brand Reveal) */
.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.integration-card.int-clio:hover { border-color: rgba(44, 110, 196, 0.4); }
.integration-card.int-clio:hover .integration-icon-wrap { border-color: #2c6ec4; background: rgba(44, 110, 196, 0.04); }
.integration-card.int-clio:hover svg { color: #2c6ec4; }

.integration-card.int-servicetitan:hover { border-color: rgba(0, 43, 73, 0.4); }
.integration-card.int-servicetitan:hover .integration-icon-wrap { border-color: #002b49; background: rgba(0, 43, 73, 0.04); }
.integration-card.int-servicetitan:hover svg { color: #002b49; }

.integration-card.int-mcleod:hover { border-color: rgba(11, 92, 171, 0.4); }
.integration-card.int-mcleod:hover .integration-icon-wrap { border-color: #0b5cab; background: rgba(11, 92, 171, 0.04); }
.integration-card.int-mcleod:hover svg { color: #0b5cab; }

.integration-card.int-salesforce:hover { border-color: rgba(0, 161, 224, 0.4); }
.integration-card.int-salesforce:hover .integration-icon-wrap { border-color: #00a1e0; background: rgba(0, 161, 224, 0.04); }
.integration-card.int-salesforce:hover svg { color: #00a1e0; }

.integration-card.int-hubspot:hover { border-color: rgba(255, 122, 89, 0.4); }
.integration-card.int-hubspot:hover .integration-icon-wrap { border-color: #ff7a59; background: rgba(255, 122, 89, 0.04); }
.integration-card.int-hubspot:hover svg { color: #ff7a59; }

.integration-card.int-slack:hover { border-color: rgba(74, 21, 75, 0.4); }
.integration-card.int-slack:hover .integration-icon-wrap { border-color: #4a154b; background: rgba(74, 21, 75, 0.04); }
.integration-card.int-slack:hover svg { color: #4a154b; }

.integration-card.int-gmail:hover { border-color: rgba(234, 67, 53, 0.4); }
.integration-card.int-gmail:hover .integration-icon-wrap { border-color: #ea4335; background: rgba(234, 67, 53, 0.04); }
.integration-card.int-gmail:hover svg { color: #ea4335; }

.integration-card.int-n8n:hover { border-color: rgba(255, 108, 55, 0.4); }
.integration-card.int-n8n:hover .integration-icon-wrap { border-color: #ff6c37; background: rgba(255, 108, 55, 0.04); }
.integration-card.int-n8n:hover svg { color: #ff6c37; }

.integration-card.int-filevine:hover { border-color: rgba(0, 119, 197, 0.4); }
.integration-card.int-filevine:hover .integration-icon-wrap { border-color: #0077c5; background: rgba(0, 119, 197, 0.04); }
.integration-card.int-filevine:hover svg { color: #0077c5; }

.integration-card.int-procore:hover { border-color: rgba(255, 102, 0, 0.4); }
.integration-card.int-procore:hover .integration-icon-wrap { border-color: #ff6600; background: rgba(255, 102, 0, 0.04); }
.integration-card.int-procore:hover svg { color: #ff6600; }

.integration-card.int-samsara:hover { border-color: rgba(16, 185, 129, 0.4); }
.integration-card.int-samsara:hover .integration-icon-wrap { border-color: var(--accent-emerald); background: rgba(16, 185, 129, 0.04); }
.integration-card.int-samsara:hover svg { color: var(--accent-emerald); }

.integration-card.int-fieldedge:hover { border-color: rgba(0, 178, 227, 0.4); }
.integration-card.int-fieldedge:hover .integration-icon-wrap { border-color: #00b2e3; background: rgba(0, 178, 227, 0.04); }
.integration-card.int-fieldedge:hover svg { color: #00b2e3; }

.integration-card.int-stripe:hover { border-color: rgba(99, 91, 255, 0.4); }
.integration-card.int-stripe:hover .integration-icon-wrap { border-color: #635bff; background: rgba(99, 91, 255, 0.04); }
.integration-card.int-stripe:hover svg { color: #635bff; }

.integration-card.int-zendesk:hover { border-color: rgba(3, 54, 61, 0.4); }
.integration-card.int-zendesk:hover .integration-icon-wrap { border-color: #03363d; background: rgba(3, 54, 61, 0.04); }
.integration-card.int-zendesk:hover svg { color: #03363d; }

.integration-card.int-twilio:hover { border-color: rgba(242, 47, 70, 0.4); }
.integration-card.int-twilio:hover .integration-icon-wrap { border-color: #f22f46; background: rgba(242, 47, 70, 0.04); }
.integration-card.int-twilio:hover svg { color: #f22f46; }

.integration-card.int-msdynamics:hover { border-color: rgba(0, 120, 212, 0.4); }
.integration-card.int-msdynamics:hover .integration-icon-wrap { border-color: #0078d4; background: rgba(0, 120, 212, 0.04); }
.integration-card.int-msdynamics:hover svg { color: #0078d4; }

.integration-card.int-cliogrow:hover { border-color: rgba(44, 110, 196, 0.4); }
.integration-card.int-cliogrow:hover .integration-icon-wrap { border-color: #2c6ec4; background: rgba(44, 110, 196, 0.04); }
.integration-card.int-cliogrow:hover svg { color: #2c6ec4; }

.integration-card.integration-card--more:hover { border-color: rgba(0, 0, 0, 0.25); }
.integration-card.integration-card--more:hover .integration-icon-wrap { border-color: var(--text-secondary); background: rgba(0, 0, 0, 0.02); }
.integration-card.integration-card--more:hover svg { color: var(--text-primary); }

/* -------------------------------------
   Industry Solutions (The 3 Pillars)
-------------------------------------- */
.solutions-section {
    padding: var(--spacing-xl) 0;
    background: transparent;
    border-top: 1px solid var(--border-subtle);
}

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

.solution-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card:hover {
    border-color: rgba(27, 54, 93, 0.12);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.solution-header {
    margin-bottom: 2rem;
}

.solution-tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.solution-features {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solution-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-features li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 10px;
    border: solid var(--accent-blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* -------------------------------------
   Architecture Flow Diagram
-------------------------------------- */
.architecture-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
}

.flow-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.015);
    overflow-x: auto;
}

.flow-step {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    width: 200px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.flow-step.glow {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(27, 54, 93, 0.08);
}

.flow-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.flow-step p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.flow-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.02) 100%);
    position: relative;
    min-width: 40px;
}

.flow-connector::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(27, 54, 93, 0.3);
    animation: flow-particle 2s linear infinite;
}

.flow-connector:nth-child(even)::after {
    animation-delay: 1s;
}

/* -------------------------------------
   Embedded Lead Form Section
-------------------------------------- */
.form-section {
    padding: var(--spacing-xl) 0;
    background: rgba(245, 247, 252, 0.4);
    border-top: 1px solid var(--border-subtle);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 3.5rem 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-col-2 {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
}

/* Form success overlay */
.form-card {
    position: relative;
}

.form-success-state {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    z-index: 10;
    padding: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.form-success-state.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    height: auto;
}

.success-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-state h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-success-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.5;
}

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--text-primary);
}

/* -------------------------------------
   Footer
-------------------------------------- */
/* --- Upgraded Legit Footer Styles --- */
.main-footer {
    text-align: left;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-subtle);
    background-color: rgba(250, 251, 254, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo-footer {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.footer-compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-compliance-badges .badge {
    background: rgba(27, 54, 93, 0.05);
    border: 1px solid rgba(27, 54, 93, 0.12);
    color: var(--accent-blue);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--accent-blue);
    padding-left: 2px;
}

.footer-compare {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-compare h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}
.footer-compare-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.footer-compare-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}
.footer-compare-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.footer-fineprint {
    max-width: 800px;
    line-height: 1.6;
}

/* --- CTA Text Display Toggles --- */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: var(--spacing-xl) 0;
    background-color: transparent;
    border-top: 1px solid var(--border-subtle);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.pricing-card {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.15);
}

.pricing-card--featured {
    background: #ffffff;
    border-color: var(--text-primary);
    border-width: 1px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--text-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.pricing-top {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-strong);
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.pricing-minutes {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-tier-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.pricing-tier-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    margin-top: 0.25rem;
}

.pricing-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.pf-icon {
    color: var(--accent-emerald);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1px;
    min-width: 14px;
}

.pricing-meta {
    border-top: 1px solid var(--border-strong);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.btn-pricing-cta {
    margin-top: 1rem;
    width: 100%;
    border-radius: 8px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
}

/* Homepage pricing section trial subhead — small and muted, distinct from the primary
   .section-header p scaling copy right above it (not a shouty banner). --text-secondary
   (not --text-tertiary, which is reserved for labels >=14px) keeps AA contrast at this size. */
.pricing-trial-subhead {
    font-size: 0.85rem !important;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* Homepage "Start Free Trial" modal microcopy under the submit button. */
.home-trial-microcopy {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 0.85rem;
    margin-bottom: 0;
}

/* --- Accordion Solutions Section --- */
.solutions-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 800px;
    margin: 3.5rem auto 0;
}

.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    border-color: rgba(27, 54, 93, 0.12);
}

.accordion-item.active {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px rgba(27, 54, 93, 0.04);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
}

.industry-title {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
}

.accordion-item.active .industry-title {
    color: var(--accent-blue);
}

.accordion-chevron {
    width: 18px;
    height: 18px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-chevron::before,
.accordion-chevron::after {
    content: '';
    position: absolute;
    background-color: var(--text-secondary);
    transition: var(--transition-fast);
}

.accordion-chevron::before {
    top: 8px; left: 3px; width: 12px; height: 2px;
}

.accordion-chevron::after {
    top: 3px; left: 8px; width: 2px; height: 12px;
}

.accordion-item.active .accordion-chevron {
    transform: rotate(135deg);
}

.accordion-item.active .accordion-chevron::before,
.accordion-item.active .accordion-chevron::after {
    background-color: var(--accent-blue);
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.accordion-inner {
    padding: 0 2rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.accordion-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    margin-top: 1rem;
}

/* --- Form Fields Styles --- */
.opt-in-group {
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent-blue);
    flex-shrink: 0;
    cursor: pointer;
}

.hero-badge {
    background: rgba(27, 54, 93, 0.05);
    border: 1px solid rgba(27, 54, 93, 0.15);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    animation: blink 2s infinite;
}

/* -------------------------------------
   Animations & Indicators
-------------------------------------- */
@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes float-widget {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes wave-bar {
    from { height: 20%; }
    to { height: 100%; }
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(27, 54, 93, 0.3); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(27, 54, 93, 0); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(27, 54, 93, 0); }
}

@keyframes pulse-glow-purple {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes flow-particle {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* --- Styled SVG Icons --- */
.check-icon-svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 3px;
}

.pf-icon-svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 3px;
    margin-right: 0.5rem;
}

/* --- Mobile Hamburger Navigation Toggle --- */
.hamburger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 0.5rem;
}

.hamburger-line {
    width: 100%;
    height: 1.5px;
    background-color: var(--text-primary);
    border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.hamburger-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(4.25px) rotate(45deg);
}

.hamburger-toggle.active .hamburger-line:nth-child(2) {
    transform: translateY(-4.25px) rotate(-45deg);
}

/* --- Mobile Navigation Overlay Drawer --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(250, 251, 254, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
    max-width: 280px;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active .mobile-nav-links {
    transform: translateY(0);
}

.close-mobile-nav {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    z-index: 1001;
}

.close-mobile-nav:hover {
    color: var(--text-primary);
}

.mobile-nav-link {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-blue);
}

.mobile-nav-cta-btn {
    margin-top: 1rem;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .live-agents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .agent-card {
        padding: 1.75rem;
        gap: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .floating-widget {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    /* Undo the pill re-styling that used to apply at this width — bar stays full-width */
    .main-header {
        top: 0;
        width: 100%;
        padding: 0 16px;
        border-radius: 0;
    }
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0;
    }
    .main-nav {
        display: flex !important; /* Always show links */
        align-items: center;
        gap: 0.5rem !important;
    }
    .main-nav a {
        font-size: 0.68rem !important;
    }
    .logo {
        font-size: 0.85rem !important;
        gap: 0.3rem !important;
    }
    .btn-nav-cta {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.65rem !important;
        border-radius: 9999px !important;
    }
    /* Toggle desktop/mobile text on navbar CTA */
    .btn-text-desktop {
        display: none !important;
    }
    .btn-text-mobile {
        display: inline !important;
    }
    .hero {
        padding-top: calc(var(--spacing-xl) + 2rem);
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto 2.5rem;
    }
    .flow-visual {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .flow-connector {
        width: 2px;
        height: 30px;
        min-width: auto;
    }
    .flow-connector::after {
        animation: flow-particle-vertical 2s linear infinite;
        top: 0;
        left: -3px;
    }
    .lead-form-grid {
        grid-template-columns: 1fr;
    }
    .form-col-2 {
        grid-column: span 1;
    }
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
    .modal-content {
        padding: 2rem 1.5rem;
    }

    /* Pricing grid responsive: four plan cards → 2×2 on tablet / mid-width
       (collapses to a single column on phones via the ≤640px rule below). */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card--featured {
        order: -1;
    }
    /* Accordion mobile padding */
    .accordion-trigger {
        padding: 1.25rem 1.5rem !important;
    }
    .accordion-inner {
        padding: 0 1.5rem 1.5rem !important;
    }
    .industry-title {
        font-size: 0.95rem !important;
    }
    /* Upgraded Mobile Footer layout */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .footer-brand-col {
        align-items: center;
        text-align: center;
    }
    .footer-links-col {
        align-items: center;
        text-align: center;
    }
    .footer-compare {
        align-items: center;
        text-align: center;
    }
    .footer-compare-links {
        justify-content: center;
    }
}

@keyframes flow-particle-vertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 640px) {
    .main-nav a {
        display: none !important;
    }
    .btn-nav-cta {
        padding: 0.4rem 0.9rem !important;
        font-size: 0.72rem !important;
    }
    .hamburger-toggle {
        display: flex;
    }
    .agent-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    /* Plan cards stack to a single column on phones. */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.integration-card--more {
    background: #f8f9fc;
    border-style: dashed;
    border-color: rgba(0,0,0,0.12);
}
.integration-card--more h3 {
    color: var(--text-secondary);
}

/* Hide Replit badge */
[data-replit-badge],
iframe[src*="replit.com/badge"],
#replit-badge-root,
.__replit-badge,
.__replit-ui-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* -------------------------------------
   ADA Accessibility Extensions
   (Skip to Content & Keyboard Focus)
-------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--text-primary);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 700;
    transition: top 0.2s ease;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--focus-ring);
    outline-offset: -3px;
}

/* Premium Keyboard Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.accordion-trigger:focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 3px !important;
}

/* Suppress default focus for mouse users while preserving standard focus-visible */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
.accordion-trigger:focus:not(:focus-visible) {
    outline: none !important;
}

/* -------------------------------------
   Legal Pages Styling
-------------------------------------- */
.legal-page-body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.legal-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.legal-nav .btn-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.legal-nav .btn-back:hover {
    color: var(--accent-blue);
}

.legal-main-container {
    flex: 1;
    padding: var(--spacing-lg) 0;
}

.legal-layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 5.5rem;
}

.sidebar-sticky-wrapper h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.legal-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-menu-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.legal-menu-link:hover {
    background: rgba(0, 102, 204, 0.04);
    color: var(--accent-blue);
}

.legal-menu-link.active {
    background: rgba(0, 102, 204, 0.08);
    color: var(--accent-blue);
    font-weight: 600;
}

.legal-content-pane {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.legal-breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.legal-breadcrumbs a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-breadcrumbs a:hover {
    color: var(--accent-blue);
}

.legal-document-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-last-updated {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.legal-document-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.legal-document-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-document-body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.legal-document-body ul, 
.legal-document-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.legal-document-body li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.legal-document-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal-document-body th, 
.legal-document-body td {
    border: 1px solid var(--border-strong);
    padding: 0.75rem 1rem;
    text-align: left;
}

.legal-document-body th {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-weight: 600;
}

.legal-document-body tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.01);
}

.legal-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-strong);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.legal-footer .footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-style: italic;
}

/* Responsive legal styling */
@media (max-width: 768px) {
    .legal-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-sidebar {
        position: static;
    }
    
    .legal-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    .legal-menu-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .legal-content-pane {
        padding: 2rem 1.5rem;
    }
    
    .legal-document-title {
        font-size: 1.75rem;
    }
}

/* -------------------------------------
   Redesigned Hero Section (Card-Framed Layout)
-------------------------------------- */
.hero-section-wrapper {
    background: transparent;
    padding: 7rem 1.5rem 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-card-viewport {
    width: 100%;
    max-width: var(--container-width);
    background: #f0f1f3;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    position: relative;
}

/* Integrated Header Navigation */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #1d1d1f;
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.hero-nav a {
    color: #515154;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.hero-nav a:hover {
    color: #000000;
}

.hero-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-login {
    background: transparent;
    border: none;
    color: #515154;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-login:hover {
    color: #000000;
}

.btn-hero-cta {
    background: #ffffff;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-hero-cta:hover {
    background: #f5f5f7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Two-Column Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
    align-items: center;
    width: 100%;
}

/* Left Column Styling */
.hero-left-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.005);
}

.hero-tag-icon {
    font-size: 0.85rem;
}

.hero-giant-title {
    font-size: var(--fs-hero);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    font-family: var(--font-sans);
}

.hero-giant-title sup {
    font-size: 3.5rem;
    font-weight: 300;
    top: -1.4rem;
    margin-left: 0.15rem;
    color: #1d1d1f;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 480px;
    font-weight: 400;
}

.hero-review-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    width: 100%;
    max-width: 420px;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1d1d1f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-avatar svg {
    width: 15px;
    height: 15px;
}

.review-text {
    font-size: 0.85rem;
    color: #6e6e73;
}

.review-text strong {
    color: #1d1d1f;
    font-weight: 600;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-pill-dark {
    background: #1d1d1f;
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transition: all 0.2s ease;
}

.btn-pill-dark:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hero-pricing-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.hero-pricing-link:hover {
    color: #0066cc;
}

/* Right Column & Soundwave Visual */
.hero-right-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

/* ===== Light Live-Call Summary Card (replaces the dark terminal) ===== */
.call-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    text-align: left;
}

.call-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.call-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent-rose);
}

.call-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-rose);
    animation: call-pulse 2s ease-in-out infinite;
}

@keyframes call-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.call-meta {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    text-align: right;
}

.call-caller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.85rem;
}

.call-caller-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.call-caller-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.call-caller-phone {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.call-crm-chip {
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent-blue);
    background: var(--accent-blue-soft);
    border: 1px solid rgba(0, 102, 204, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.call-transcript {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 138px;
    transition: opacity 0.3s ease;
}

.call-line {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.call-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-avatar svg { width: 15px; height: 15px; }

.call-avatar.caller {
    background: var(--bg-base);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}

.call-avatar.agent {
    background: var(--accent-blue);
    color: #ffffff;
}

.call-bubble {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--text-body);
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.7rem;
}

.call-bubble.agent {
    background: var(--accent-blue-soft);
    border-color: rgba(0, 102, 204, 0.14);
    color: #0c3a66;
}

.call-outcome {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.9rem;
}

.call-outcome-result {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.call-check {
    width: 16px;
    height: 16px;
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.call-outcome-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
}

.call-stat strong {
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hero-visual-card {
    width: 100%;
    max-width: 360px;
    height: 480px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: visible;
}

/* Active Call Terminal styling (Direction 1) */
.terminal-card {
    background: #0b0f19; /* Ultra-premium dark slate */
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    font-family: var(--font-mono);
    color: #cbd5e1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    text-align: left;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
}

.terminal-dots {
    display: flex;
    gap: 0.35rem;
}

.terminal-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dots .dot.red { background: #ff5f56; }
.terminal-dots .dot.yellow { background: #ffbd2e; }
.terminal-dots .dot.green { background: #27c93f; }

.terminal-title {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.terminal-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-weight: 700;
}

.pulse-red {
    width: 5px;
    height: 5px;
    background: #ef4444;
    border-radius: 50%;
    animation: comp-red-pulse 1.8s infinite;
}

@keyframes comp-red-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.terminal-caller-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.caller-phone {
    font-size: 0.72rem;
}

.caller-phone .label {
    color: #64748b;
    margin-right: 0.25rem;
    font-weight: bold;
}

.caller-phone .value {
    color: #f8fafc;
    font-weight: 700;
}

.match-badge {
    font-size: 0.62rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.terminal-transcript {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.transcript-line {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    opacity: 1;
}

.transcript-line .avatar {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-line .bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    max-width: 82%;
}

.transcript-line.agent .bubble {
    border-color: rgba(56, 189, 248, 0.12);
    background: rgba(56, 189, 248, 0.02);
}

.transcript-line p {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #e2e8f0;
    margin: 0;
    font-family: var(--font-sans);
}

.transcript-line.agent p {
    color: #f8fafc;
}

.terminal-logs {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.log-entry {
    font-size: 0.65rem;
    color: #475569;
    opacity: 1;
}

.log-entry.success {
    color: var(--accent-emerald);
    font-weight: 700;
}



/* Speech Dialogue Bubbles */
.overlay-bubble {
    position: absolute;
    background: #ffffff;
    border-radius: 9999px;
    padding: 0.65rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 8;
    transition: all 0.3s ease;
    max-width: 280px;
}

.overlay-bubble:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.bubble-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}

.bubble-check.orange {
    background: #ff7e47;
}

.bubble-check.blue {
    background: #0066cc;
}

.bubble-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.bubble-agent {
    top: 25%;
    left: -22%;
}

.bubble-caller {
    top: 37%;
    left: -28%;
}

/* Glassmorphic Metrics */
.overlay-glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 9;
    transition: all 0.3s ease;
}

.overlay-glass-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.latency-badge {
    top: 10%;
    right: -22%;
    width: 140px;
}

.card-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.card-subtext {
    font-size: 0.7rem;
    color: #515154;
    margin-top: 0.2rem;
}

.crm-badge {
    bottom: 10%;
    right: -25%;
    width: 220px;
    padding: 1.25rem;
}

.crm-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.crm-logo-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.crm-status-dot {
    width: 6px;
    height: 6px;
    background: #34c759;
    border-radius: 50%;
    box-shadow: 0 0 8px #34c759;
}

.crm-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.15rem;
    letter-spacing: -0.015em;
}

.crm-name {
    font-size: 0.72rem;
    color: #515154;
    margin-bottom: 0.4rem;
}

.crm-rating {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Company Logos Strip Row */
.hero-logostrip {
    width: 100%;
    max-width: 1100px;
    margin-top: 4.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

.logostrip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logostrip-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

.logos-row {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: -0.03em;
    transition: var(--transition-fast);
    cursor: default;
}

.logo-item:hover {
    color: #1d1d1f;
}

/* -------------------------------------
   Media Queries & Responsiveness
-------------------------------------- */
@media (max-width: 1024px) {
    .hero-card-viewport {
        padding: 2.5rem;
        gap: 2.5rem;
    }
    
    .hero-giant-title {
        font-size: clamp(2.2rem, 4.5vw, 4rem);
    }
    
    .hero-giant-title sup {
        font-size: 2.5rem;
        top: -1rem;
    }
    
    .latency-badge {
        right: -8%;
    }
    
    .crm-badge {
        right: -8%;
    }
}

@media (max-width: 768px) {
    .hero-section-wrapper {
        padding: 1rem;
    }
    
    .hero-card-viewport {
        padding: 5.5rem 1.5rem 3rem;
        border-radius: 20px;
        gap: 2rem;
    }
    
    .hero-header {
        display: none;
    }

    /* Modal responsive scrolling overrides */
    .modal-overlay {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 1.5rem 1rem !important;
    }
    
    .modal-content {
        margin: auto !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .hero-nav {
        display: none; /* Hide internal header nav on mobile (use drawer menu instead) */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-left-column {
        align-items: center;
    }
    
    .hero-giant-title {
        font-size: clamp(1.8rem, 8vw, 3.2rem);
        margin-bottom: 1.25rem;
    }
    
    .hero-giant-title sup {
        font-size: 2rem;
        top: -0.8rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-pill-dark {
        width: 100%;
    }
    
    .hero-visual-card {
        height: 400px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .overlay-bubble {
        padding: 0.5rem 1rem;
        max-width: 220px;
        white-space: normal;
    }
    
    .bubble-agent {
        left: -5%;
        top: 18%;
    }
    
    .bubble-caller {
        left: -10%;
        top: 30%;
    }
    
    .latency-badge {
        right: -5%;
        top: 5%;
        width: 110px;
        padding: 0.75rem;
    }
    
    .card-value {
        font-size: 1.3rem;
    }
    
    .crm-badge {
        right: -5%;
        bottom: 5%;
        width: 175px;
        padding: 0.75rem;
    }
    
    .crm-title {
        font-size: 0.8rem;
    }
    
    .logostrip-container {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    
    .logos-row {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* -------------------------------------
   Compliance Spec Visualizer (Pillar 4)
-------------------------------------- */
.compliance-visual {
    padding: 1rem 0.75rem;
    margin-top: 1.5rem;
}
.compliance-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0.5rem 0;
}
.compliance-node {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.comp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.comp-blue-dot {
    background: var(--accent-blue);
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
    animation: comp-breath-blue 4s ease-in-out infinite;
}
.comp-indigo-dot {
    background: var(--accent-blue);
    box-shadow: 0 0 4px rgba(99, 102, 241, 0.3);
    animation: comp-breath-indigo 4s ease-in-out infinite;
}
.comp-green-dot {
    background: var(--accent-emerald);
    box-shadow: 0 0 4px rgba(52, 199, 89, 0.3);
    animation: comp-breath-green 4s ease-in-out infinite;
}
@keyframes comp-breath-blue {
    0%, 100% { opacity: 0.65; box-shadow: 0 0 3px rgba(0, 102, 204, 0.15); }
    50% { opacity: 1; box-shadow: 0 0 6px rgba(0, 102, 204, 0.45); }
}
@keyframes comp-breath-indigo {
    0%, 100% { opacity: 0.65; box-shadow: 0 0 3px rgba(99, 102, 241, 0.15); }
    50% { opacity: 1; box-shadow: 0 0 6px rgba(99, 102, 241, 0.45); }
}
@keyframes comp-breath-green {
    0%, 100% { opacity: 0.65; box-shadow: 0 0 3px rgba(52, 199, 89, 0.15); }
    50% { opacity: 1; box-shadow: 0 0 6px rgba(52, 199, 89, 0.45); }
}
.comp-node-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.compliance-arrow {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 48px;
}
.compliance-arrow svg {
    width: 100%;
    height: auto;
}
.compliance-flow-line {
    animation: flow-dash 1.8s linear infinite;
}
.compliance-flow-line-success {
    animation: flow-dash-success 1.8s linear infinite;
}
@keyframes flow-dash {
    to { stroke-dashoffset: -18; }
}
@keyframes flow-dash-success {
    to { stroke-dashoffset: -18; }
}

/* Compliance SOP Shield Node */
.compliance-shield-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.compliance-shield {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid var(--border-active);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    z-index: 2;
    position: relative;
    animation: shield-bounce 3s ease-in-out infinite alternate;
}
.compliance-shield svg {
    width: 15px;
    height: 15px;
}
.compliance-shield-pulse {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.08);
    animation: shield-ripple 2s ease-out infinite;
    z-index: 1;
}
@keyframes shield-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}
@keyframes shield-ripple {
    0% { transform: translateX(-50%) scale(0.9); opacity: 1; }
    100% { transform: translateX(-50%) scale(1.6); opacity: 0; }
}

.compliance-log-bar {
    margin-top: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.compliance-log-bar .log-indicator {
    width: 5px;
    height: 5px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
}

/* --- Multi-step Modal Custom Styles --- */
.modal-step {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.modal-step.active {
    opacity: 1;
    transform: translateY(0);
}

#modal-calendly-embed-container iframe {
    border-radius: 12px;
}

/* --- Top Navigation Learn More Button --- */
#nav-learn-more-btn {
    display: inline-flex;
    margin-right: -0.25rem;
}

@media (max-width: 768px) {
    #nav-learn-more-btn {
        display: none !important;
    }
}

/* ===== Reduced motion: neutralize the many infinite animations ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    html.js .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Integration sub-group labels (Live today / On the roadmap) */
.integrations-group-label {
    grid-column: 1 / -1;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-secondary, #667);
    margin: .5rem 0;
    flex: 0 0 auto;
    align-self: center;
    padding: 0 0.25rem;
}

