:root {
    --hc-primary: #2446a8;
    --hc-primary-dark: #19357f;
    --hc-accent: #00a58c;
    --hc-bg: #f4f7fb;
    --hc-surface: #ffffff;
    --hc-text: #172033;
    --hc-muted: #667085;
    --hc-border: #dfe5ee;
    --hc-radius: 0.875rem;
    --hc-shadow: 0 1rem 2.5rem rgba(25, 53, 127, 0.09);
    --hc-sidebar-width: 17rem;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--hc-bg);
    color: var(--hc-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button,
input {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

:focus-visible {
    outline: 3px solid rgba(36, 70, 168, 0.3);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--hc-text);
    color: #fff;
    border-radius: 0.5rem;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--hc-text);
    font-weight: 600;
}

.brand-mark {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.65rem;
    background: var(--hc-primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.btn-primary {
    --bs-btn-bg: var(--hc-primary);
    --bs-btn-border-color: var(--hc-primary);
    --bs-btn-hover-bg: var(--hc-primary-dark);
    --bs-btn-hover-border-color: var(--hc-primary-dark);
    --bs-btn-active-bg: var(--hc-primary-dark);
    --bs-btn-active-border-color: var(--hc-primary-dark);
}

.public-header,
.topbar {
    background: rgba(255, 255, 255, 0.96);
}

.hero-section {
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 165, 140, 0.12), transparent 30rem),
        radial-gradient(circle at 15% 10%, rgba(36, 70, 168, 0.11), transparent 28rem);
}

.py-lg-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.eyebrow {
    color: var(--hc-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.surface-card {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
}

.flow-list {
    display: grid;
    gap: 1rem;
    padding-left: 1.35rem;
}

.flow-list li::marker {
    color: var(--hc-accent);
    font-weight: 800;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    color: var(--hc-muted);
}

.status-pill span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--hc-accent);
    box-shadow: 0 0 0 0.3rem rgba(0, 165, 140, 0.12);
}

.auth-section {
    min-height: calc(100vh - 9rem);
}

.auth-card {
    max-width: 30rem;
}

.form-control {
    min-height: 2.8rem;
    border-color: var(--hc-border);
}

.app-shell {
    display: flex;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--hc-sidebar-width);
    padding: 1.25rem;
    background: var(--hc-surface);
    border-right: 1px solid var(--hc-border);
}

.sidebar .nav-link {
    color: var(--hc-muted);
    border-radius: 0.6rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--hc-primary);
    background: rgba(36, 70, 168, 0.09);
}

.app-content {
    width: calc(100% - var(--hc-sidebar-width));
    min-height: 100vh;
    margin-left: var(--hc-sidebar-width);
}

.topbar {
    display: flex;
    align-items: center;
    min-height: 4.5rem;
    padding: 0.75rem 1.5rem;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(23, 32, 51, 0.5);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .app-content {
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
