/* Healthcare Billing — Lovable-style theme (isolated from main site) */

:root {
    --hb-bg: #fafafa;
    --hb-surface: #ffffff;
    --hb-foreground: #09090b;
    --hb-muted: #71717a;
    --hb-muted-bg: #f4f4f5;
    --hb-border: #e4e4e7;
    --hb-primary: #2563eb;
    --hb-primary-hover: #1d4ed8;
    --hb-primary-soft: #eff6ff;
    --hb-success: #16a34a;
    --hb-radius: 12px;
    --hb-radius-lg: 16px;
    --hb-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --hb-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --hb-shadow-lg: 0 12px 32px rgba(37, 99, 235, 0.12);
    --hb-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hb-max: 1120px;
    --hb-font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.hb-page {
    font-family: var(--hb-font);
    background: var(--hb-bg);
    color: var(--hb-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Messages */
.hb-message-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hb-message-container .message {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--hb-shadow-md);
    transition: opacity 0.3s;
}

.hb-message-container .message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.hb-message-container .message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hb-message-container .message.info {
    background: var(--hb-primary-soft);
    color: var(--hb-primary);
    border: 1px solid #bfdbfe;
}

/* Header */
.hb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hb-border);
}

.hb-header-inner {
    max-width: var(--hb-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hb-foreground);
    font-weight: 600;
    font-size: 0.95rem;
}

.hb-logo img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.hb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hb-nav a {
    color: var(--hb-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.hb-nav a:hover {
    color: var(--hb-foreground);
    background: var(--hb-muted-bg);
}

.hb-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#auth-buttons, #user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-menu { display: none; }

.hb-btn-login {
    background: transparent;
    color: var(--hb-foreground);
    border: 1px solid var(--hb-border);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.hb-btn-login:hover { background: var(--hb-muted-bg); }

.hb-user-email {
    font-size: 0.8125rem;
    color: var(--hb-muted);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hb-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s var(--hb-ease), transform 0.2s var(--hb-ease), box-shadow 0.2s var(--hb-ease);
}

.hb-btn-primary:hover {
    background: var(--hb-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.hb-btn-primary:active {
    transform: translateY(0);
}

.hb-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hb-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    transition: background 0.2s var(--hb-ease), transform 0.2s var(--hb-ease), box-shadow 0.2s var(--hb-ease);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.hb-header-cta:hover {
    background: var(--hb-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* Layout */
.hb-container {
    max-width: var(--hb-max);
    margin: 0 auto;
    padding: 0 24px;
}

.hb-section {
    padding: 80px 0;
}

.hb-section-alt {
    background: var(--hb-surface);
    border-top: 1px solid var(--hb-border);
    border-bottom: 1px solid var(--hb-border);
}

.hb-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.hb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hb-primary-soft);
    color: var(--hb-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hb-section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hb-section-header p {
    color: var(--hb-muted);
    font-size: 1.05rem;
}

/* Hero */
.hb-hero {
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.hb-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hb-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.hb-blob-1 {
    width: 420px;
    height: 420px;
    background: #bfdbfe;
    top: -120px;
    right: -80px;
    animation: hbFloat 14s ease-in-out infinite;
}

.hb-blob-2 {
    width: 320px;
    height: 320px;
    background: #ddd6fe;
    bottom: -80px;
    left: -60px;
    animation: hbFloat 18s ease-in-out infinite reverse;
}

@keyframes hbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -16px); }
}

.hb-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hb-hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--hb-border);
}

.hb-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hb-stat strong {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hb-primary);
    line-height: 1.2;
}

.hb-stat span {
    font-size: 0.8125rem;
    color: var(--hb-muted);
    font-weight: 500;
}

.hb-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hb-hero-lead {
    font-size: 1.125rem;
    color: var(--hb-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hb-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.hb-section-cta {
    text-align: center;
    margin-top: 32px;
}

.hb-section-compact {
    padding: 48px 0;
}

/* How it works */
.hb-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hb-how-step {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.25s var(--hb-ease), box-shadow 0.25s var(--hb-ease), border-color 0.25s var(--hb-ease);
}

.hb-how-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--hb-shadow-md);
    border-color: #bfdbfe;
}

.hb-how-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--hb-primary-soft) 0%, #dbeafe 100%);
    color: var(--hb-primary);
    border-radius: 12px;
    font-size: 1.125rem;
    margin-bottom: 12px;
    transition: transform 0.25s var(--hb-ease);
}

.hb-how-step:hover .hb-how-icon {
    transform: scale(1.08);
}

.hb-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--hb-primary-soft);
    color: var(--hb-primary);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    margin-bottom: 12px;
}

.hb-how-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.hb-how-step p {
    font-size: 0.875rem;
    color: var(--hb-muted);
    line-height: 1.5;
}

/* Service chips — clickable, hover lift */
.hb-service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hb-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hb-foreground);
    text-decoration: none;
    transition: transform 0.2s var(--hb-ease), box-shadow 0.2s var(--hb-ease), border-color 0.2s var(--hb-ease), background 0.2s var(--hb-ease);
}

.hb-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--hb-shadow-md);
    border-color: #93c5fd;
    background: var(--hb-primary-soft);
    color: var(--hb-primary);
}

.hb-chip i {
    color: var(--hb-primary);
    font-size: 0.8125rem;
    transition: transform 0.2s var(--hb-ease);
}

.hb-chip:hover i {
    transform: scale(1.15);
}

/* Legacy span selector */
.hb-service-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hb-foreground);
}

.hb-service-chips span i {
    color: var(--hb-primary);
    font-size: 0.8125rem;
}

/* Compact logo strip */
.hb-logos-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 32px;
    opacity: 0.75;
}

.hb-logos-strip img {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%);
}

.hb-mock-total span:last-child {
    font-weight: 700;
    color: var(--hb-primary);
}

.hb-testimonials-compact {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin: 0 auto;
}

.hb-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hb-surface);
    color: var(--hb-foreground);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--hb-border);
    transition: background 0.15s;
}

.hb-btn-secondary:hover {
    background: var(--hb-muted-bg);
    border-color: #d4d4d8;
}

/* Revenue mock visual */
.hb-hero-visual {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-md);
    overflow: hidden;
    transition: transform 0.35s var(--hb-ease), box-shadow 0.35s var(--hb-ease);
    animation: hbMockFloat 6s ease-in-out infinite;
}

.hb-hero-visual:hover {
    transform: translateY(-6px);
    box-shadow: var(--hb-shadow-lg);
    animation: none;
}

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

.hb-mock {
    padding: 24px;
}

/* Live plan demo animation */
.hb-mock-live {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.hb-mock-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hb-success);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 8px;
}

.hb-live-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hb-success);
    animation: hbLivePulse 1.4s ease-in-out infinite;
}

@keyframes hbLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hb-mock-live-hint {
    font-size: 0.8125rem;
    color: var(--hb-muted);
    margin-bottom: 14px;
    min-height: 1.25em;
    transition: color 0.3s var(--hb-ease);
}

.hb-mock-live-hint.is-active {
    color: var(--hb-primary);
    font-weight: 500;
}

.hb-mock-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 168px;
}

.hb-demo-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--hb-muted-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8125rem;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.45s var(--hb-ease), transform 0.45s var(--hb-ease), background 0.3s, border-color 0.3s;
}

.hb-demo-row.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.hb-demo-row.is-on {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.hb-demo-row.is-leaving {
    opacity: 0;
    transform: translateX(-8px);
    transition-duration: 0.35s;
}

.hb-demo-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--hb-foreground);
    min-width: 0;
}

.hb-demo-name i {
    color: var(--hb-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.hb-demo-name span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-demo-toggle {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #e2e8f0;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s var(--hb-ease);
}

.hb-demo-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s var(--hb-ease);
}

.hb-demo-row.is-on .hb-demo-toggle {
    background: var(--hb-primary);
}

.hb-demo-row.is-on .hb-demo-toggle::after {
    transform: translateX(16px);
}

.hb-demo-price {
    font-weight: 700;
    color: var(--hb-muted);
    min-width: 52px;
    text-align: right;
    transition: color 0.3s;
}

.hb-demo-row.is-on .hb-demo-price {
    color: var(--hb-success);
}

.hb-demo-vol {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: var(--hb-muted);
    padding-left: 22px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s var(--hb-ease), opacity 0.35s var(--hb-ease), margin 0.35s;
    margin-top: 0;
}

.hb-demo-row.is-on .hb-demo-vol {
    max-height: 24px;
    opacity: 1;
    margin-top: 4px;
}

.hb-mock-total-wrap {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--hb-border);
}

.hb-mock-total-wrap .hb-mock-label {
    margin: 0 0 8px;
}

.hb-mock-total-row {
    margin-bottom: 0;
}

.hb-mock-total-amt {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--hb-primary);
    transition: transform 0.25s var(--hb-ease);
}

.hb-mock-total-amt.is-ticking {
    transform: scale(1.08);
}

.hb-mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hb-border);
}

.hb-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hb-border);
}

.hb-mock-dot:first-child { background: #fca5a5; }
.hb-mock-dot:nth-child(2) { background: #fcd34d; }
.hb-mock-dot:nth-child(3) { background: #86efac; }

.hb-mock-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--hb-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hb-mock-live .hb-mock-header {
    flex-wrap: wrap;
    gap: 8px;
}

.hb-mock-live .hb-mock-live-badge {
    margin-left: 0;
}

.hb-mock-live .hb-demo-row:hover {
    transform: translateX(0);
    background: inherit;
}

.hb-mock-live .hb-mock-total-row:hover {
    background: var(--hb-primary-soft);
}

.hb-mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--hb-muted-bg);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    transition: background 0.2s var(--hb-ease), transform 0.2s var(--hb-ease);
}

.hb-mock-row:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.hb-mock-row.hb-mock-total:hover {
    background: var(--hb-primary-soft);
}

.hb-mock-row.positive span:last-child {
    font-weight: 600;
    color: var(--hb-success);
}

.hb-mock-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 16px 0 8px;
}

/* Inline CTA — matches page cards, not banner ads */
.hb-section-tight {
    padding: 32px 0;
}

.hb-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--hb-shadow);
    transition: transform 0.25s var(--hb-ease), box-shadow 0.25s var(--hb-ease), border-color 0.25s var(--hb-ease);
}

.hb-inline-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--hb-shadow-md);
    border-color: #bfdbfe;
}

.hb-inline-cta-text h2 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--hb-foreground);
    margin-top: 8px;
}

.hb-inline-cta .hb-badge {
    margin-bottom: 0;
}

.hb-inline-cta .hb-btn-primary {
    flex-shrink: 0;
}

/* Legacy — keep if referenced elsewhere */
.hb-cta-band {
    padding: 32px 0;
    background: var(--hb-bg);
}

.hb-cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--hb-shadow);
}

.hb-cta-band h2 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--hb-foreground);
}

.hb-cta-band p {
    color: var(--hb-muted);
    font-size: 0.9375rem;
    max-width: 480px;
}

/* Service cards */
.hb-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hb-service-card {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 28px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hb-service-card:hover {
    box-shadow: var(--hb-shadow-md);
    border-color: #d4d4d8;
}

.hb-service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hb-primary-soft);
    color: var(--hb-primary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.hb-service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hb-service-card > p {
    font-size: 0.9375rem;
    color: var(--hb-muted);
    margin-bottom: 16px;
    line-height: 1.55;
}

.hb-service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hb-service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--hb-foreground);
}

.hb-service-features li i {
    color: var(--hb-success);
    font-size: 0.6875rem;
}

/* Benefits */
.hb-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hb-benefit {
    text-align: center;
    padding: 32px 24px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
}

.hb-benefit i {
    font-size: 1.5rem;
    color: var(--hb-primary);
    margin-bottom: 16px;
}

.hb-benefit h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hb-benefit p {
    font-size: 0.9375rem;
    color: var(--hb-muted);
}

/* Integrations — compact side-by-side layout */
.hb-integrations-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.hb-integrations-col {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    padding: 24px;
}

.hb-pms-category {
    margin-bottom: 0;
}

.hb-pms-category h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hb-foreground);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hb-border);
}

.hb-pms-category h3 i {
    color: var(--hb-primary);
    font-size: 0.875rem;
}

.hb-logo-wall {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.hb-logo-tile {
    background: var(--hb-muted-bg);
    border: 1px solid var(--hb-border);
    border-radius: 8px;
    padding: 12px 8px;
    min-height: 0;
    aspect-ratio: 5 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}

.hb-logo-tile:hover {
    border-color: #d4d4d8;
    background: var(--hb-surface);
}

.hb-logo-tile img {
    display: block;
    max-height: 44px;
    max-width: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hb-pms-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.hb-pms-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
}

.hb-pms-feature i {
    color: var(--hb-primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.hb-pms-feature h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.hb-pms-feature p {
    font-size: 0.875rem;
    color: var(--hb-muted);
}

/* Testimonials */
.hb-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hb-testimonial {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: transform 0.25s var(--hb-ease), box-shadow 0.25s var(--hb-ease), border-color 0.25s var(--hb-ease);
}

.hb-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--hb-shadow-md);
    border-color: #d4d4d8;
}

.hb-testimonial p {
    font-size: 0.9375rem;
    color: var(--hb-muted);
    line-height: 1.6;
}

.hb-rating {
    display: flex;
    gap: 2px;
    margin-top: 12px;
}

.hb-rating i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.hb-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--hb-border);
}

.hb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--hb-muted-bg);
    flex-shrink: 0;
    transition: box-shadow 0.2s var(--hb-ease);
}

.hb-testimonial:hover .hb-avatar {
    box-shadow: 0 0 0 3px var(--hb-primary-soft);
}

.hb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-author-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.hb-author-info p {
    font-size: 0.75rem;
    color: var(--hb-muted);
    margin-top: 1px;
}

/* Footer CTA — legacy alias */
.hb-cta {
    text-align: center;
    padding: 28px 32px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow);
    color: var(--hb-foreground);
}

.hb-cta h2 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hb-cta p {
    color: var(--hb-muted);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hb-footer {
    padding: 32px 0;
    border-top: 1px solid var(--hb-border);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--hb-muted);
}

.hb-footer a {
    color: var(--hb-primary);
    text-decoration: none;
}

/* Back to top */
.hb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    color: var(--hb-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hb-shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 50;
}

.hb-back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.hb-back-to-top:hover { background: var(--hb-muted-bg); }

/* Scroll reveal */
.hb-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--hb-ease), transform 0.6s var(--hb-ease);
}

.hb-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hb-reveal-delay { transition-delay: 0.1s; }
.hb-reveal-delay-2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .hb-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hb-blob-1,
    .hb-blob-2,
    .hb-hero-visual {
        animation: none !important;
    }

    .hb-live-pulse {
        animation: none;
    }

    .hb-mock-total-amt.is-ticking {
        transform: none;
    }

    .hb-how-step:hover,
    .hb-chip:hover,
    .hb-testimonial:hover,
    .hb-inline-cta:hover,
    .hb-btn-primary:hover,
    .hb-header-cta:hover,
    .hb-hero-visual:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 960px) {
    .hb-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hb-hero-visual { order: -1; }
    .hb-nav { display: none; }
    .hb-services-grid,
    .hb-benefits-grid,
    .hb-testimonials-grid,
    .hb-how-grid { grid-template-columns: repeat(2, 1fr); }
    .hb-testimonials-compact { grid-template-columns: 1fr; }
    .hb-integrations-layout { grid-template-columns: 1fr; }
    .hb-logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hb-pms-features { grid-template-columns: 1fr; }
    .hb-cta-band-inner,
    .hb-inline-cta { flex-direction: column; text-align: center; }
    .hb-inline-cta .hb-btn-primary { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
    .hb-section { padding: 56px 0; }
    .hb-services-grid,
    .hb-benefits-grid,
    .hb-testimonials-grid,
    .hb-how-grid { grid-template-columns: 1fr; }
    .hb-logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-integrations-col { padding: 16px; }
}
