/* ============================================================
   ScientivoLab — application design system
   Layered on top of Bootstrap 5.3 (vendored in /static/vendor).
   Layout: fixed dark sidebar (desktop) + light content area.
   Brand accent: teal.
   ============================================================ */

:root {
    --eln-primary: #0d9488;
    --eln-primary-dark: #0f766e;
    --eln-primary-soft: #ccfbf1;
    --eln-sidebar-bg: #0e141e;
    --eln-sidebar-bg-soft: rgba(255, 255, 255, 0.06);
    --eln-sidebar-text: #cbd5e1;
    --eln-sidebar-icon: #8fa1b5;
    --eln-sidebar-text-active: #f8fafc;
    --eln-sidebar-muted: #76879c;
    --eln-sidebar-accent: #2dd4bf;
    --eln-sidebar-width: 256px;
    --eln-content-bg: #f4f6fa;
    --eln-topbar-height: 60px;
    --eln-card-border: #e6e9f0;
    --eln-accent: var(--eln-primary);
}

[data-bs-theme="dark"] {
    --eln-content-bg: #101418;
    --eln-card-border: #262d36;
    --eln-primary-soft: #134e4a;
}

/* ---------- Base ---------- */

body.app-body {
    background-color: var(--eln-content-bg);
    min-height: 100vh;
    font-size: 0.925rem;
}

a:not(.btn) { color: var(--eln-primary-dark); }
/* :not(.btn) matters — an unscoped dark link rule would out-specify
   Bootstrap's .btn color token and paint teal text on teal buttons. */
[data-bs-theme="dark"] a:not(.btn) { color: #2dd4bf; }

/* ---------- Sidebar ---------- */

.app-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--eln-sidebar-width);
    /* Flat, high-contrast rail (Benchling/Linear-style): near-black navy,
       crisp text, one confident accent. No murky gradients. */
    background: linear-gradient(180deg, #121926 0%, #0e141e 100%);
    color: var(--eln-sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: margin-left 0.2s ease-in-out;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.app-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--eln-sidebar-text-active);
    text-decoration: none;
    min-width: 0;
}

.app-sidebar .sidebar-brand:hover { color: #fff; }

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 55%, #5eead4 100%);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35), 0 4px 14px rgba(13, 148, 136, 0.45);
}

.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-name small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--eln-sidebar-muted); letter-spacing: 0.14em; text-transform: uppercase; }

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem 0.7rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: var(--eln-topbar-height);
}

.theme-toggle {
    border: 0;
    background: transparent;
    color: var(--eln-sidebar-muted);
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.theme-toggle:hover { background: var(--eln-sidebar-bg-soft); color: var(--eln-sidebar-text-active); }

/* Theme toggle on public (light-background) pages: a round, soft icon
   button that matches the card radii and teal accent of the design. */
.theme-toggle-light {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle-light:hover {
    color: var(--eln-primary-dark);
    background: var(--eln-primary-soft);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--eln-primary) 12%, transparent);
}

[data-bs-theme="dark"] .theme-toggle-light:hover { color: #5eead4; }

/* Pinned to the auth card's corner (not lost in the page corner) */
.auth-card { position: relative; }
.auth-card .theme-toggle-light {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
}

.sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 0.75rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

/* The global `a:not(.btn)` brand rule (0,1,1) out-specifies `.sidebar-link`
   (0,1,0) and painted every sidebar link dim teal on the dark rail — the
   low-contrast look. Re-anchor link colors inside the sidebar. */
.app-sidebar a { color: var(--eln-sidebar-text); }
.app-sidebar a:hover,
.app-sidebar a:focus { color: #fff; }

.sidebar-section {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--eln-sidebar-muted);
    padding: 1.1rem 0.75rem 0.4rem;
}

.sidebar-section > span { color: inherit; }

/* Inline "+" next to a sidebar section label (e.g. Projects -> New project):
   a small teal-ringed square that fills with the brand color on hover. */
.sidebar-section-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--eln-sidebar-text);
    font-size: 0.72rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease,
                box-shadow 0.15s ease, border-color 0.15s ease;
}

.sidebar-section-add:hover,
.sidebar-section-add:focus {
    background: var(--eln-primary);
    border-color: var(--eln-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.28);
}

.sidebar-section-add:active { transform: scale(0.92); }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--eln-sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.12s ease, color 0.12s ease;
}

/* Neutral icons by default — the accent belongs to the active state,
   not to every row. */
.sidebar-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; color: var(--eln-sidebar-icon); flex-shrink: 0; transition: color 0.12s ease; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-link:hover i { color: #e2e8f0; }
.sidebar-link .sidebar-link-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.sidebar-link.active {
    background: linear-gradient(135deg, #0f9488 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.4);
}

.sidebar-link.active i { color: #fff; }

/* Compact metric summary (report workspace): three groups of numbers
   separated by hairlines on desktop, stacked on mobile. */
@media (min-width: 768px) {
    .workspace-summary .workspace-divider { border-left: 1px solid var(--eln-card-border); }
}
.workspace-summary a.text-reset:hover { color: var(--eln-primary) !important; }

.sidebar-link .sidebar-badge {
    margin-left: auto;
    font-size: 0.66rem;
    padding: 0.2em 0.5em;
}

.sidebar-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
}

.sidebar-user { gap: 0.35rem; }

.sidebar-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--eln-sidebar-text);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sidebar-icon-btn:hover { background: var(--eln-sidebar-bg-soft); color: #fff; }

.sidebar-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.58rem;
    padding: 0.2em 0.4em;
}

.sidebar-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.2);
    color: #2dd4bf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.sidebar-dropdown {
    /* Elevated dark surface matching the rail — Bootstrap's default white
       menu is unreadable under the sidebar's light link colors and looks
       detached from the dark sidebar. Driven by Bootstrap's dropdown
       variables so items, headers and dividers all follow. */
    --bs-dropdown-bg: #1b2534;
    --bs-dropdown-border-color: rgba(148, 163, 184, 0.18);
    --bs-dropdown-color: var(--eln-sidebar-text);
    --bs-dropdown-link-color: var(--eln-sidebar-text);
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-dropdown-header-color: var(--eln-sidebar-muted);
    box-shadow: 0 12px 32px rgba(2, 8, 20, 0.55);
}

.sidebar-dropdown .dropdown-item-text { color: var(--eln-sidebar-text); }
.sidebar-dropdown .dropdown-divider { border-color: rgba(148, 163, 184, 0.18); }

/* The org switcher sizes to its longest entry instead of the chip width
   (a fixed 100% width wrapped long organization names). */
.org-switcher-menu { width: max-content; min-width: 210px; max-width: min(340px, 92vw); }
/* Dropdowns anchored inside the dark sidebar: keep them readable and
   positioned by Bootstrap's Popper (dropup, opening to the right of the
   sidebar). */
.sidebar-footer .dropdown-menu {
    margin: 0;
    max-width: min(340px, 92vw);
}

.mobile-nav-toggle {
    position: fixed;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    z-index: 1030;
    border: 1px solid var(--eln-card-border);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.12);
}

@media (max-width: 991.98px) {
    .mobile-nav-toggle { display: inline-flex; }
}

.sidebar-footer .org-chip {
    color: var(--eln-sidebar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.35rem 0.5rem;
    border-radius: 9px;
    font-size: 0.8rem;
}

.sidebar-footer .org-chip:hover { color: #fff; }
.sidebar-footer .org-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* Sidebar as offcanvas on small screens */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        margin-left: calc(var(--eln-sidebar-width) * -1);
    }
    .app-sidebar.show { margin-left: 0; box-shadow: 0 0 40px rgba(0,0,0,0.4); }
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1035;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- Main column ---------- */

.app-main {
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-main.with-sidebar { margin-left: var(--eln-sidebar-width); }

@media (max-width: 991.98px) {
    .app-main.with-sidebar { margin-left: 0; }
}

/* ---------- Content area ---------- */

.app-content {
    flex: 1 1 auto;
    padding: 1.5rem 1.5rem 3rem;
    width: 100%;
}

@media (min-width: 1200px) {
    .app-content { padding: 1.75rem 2.25rem 3rem; }
}

/* ---------- Page header ---------- */

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.page-header .page-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.page-header .page-title i { color: var(--eln-primary); font-size: 1.25rem; }
.page-header .page-subtitle { color: var(--bs-secondary-color); margin: 0.2rem 0 0; font-size: 0.9rem; }

.breadcrumb { font-size: 0.82rem; margin-bottom: 0.4rem; }

/* ---------- Cards ---------- */

.app-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--eln-card-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    margin-bottom: 1.25rem;
}

.app-card > .card-header,
.app-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--eln-card-border);
    padding: 0.9rem 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-card > .card-header .card-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.app-card > .card-header .card-header-title i { color: var(--eln-primary); }
.app-card .card-body { padding: 1.15rem; }

/* ---------- Stat cards ---------- */

.stat-card .stat-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
}

.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.stat-card .stat-hint { font-size: 0.8rem; color: var(--bs-secondary-color); }
.stat-card .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--eln-primary-soft);
    color: var(--eln-primary-dark);
    flex-shrink: 0;
}

[data-bs-theme="dark"] .stat-card .stat-icon { color: #5eead4; }
.stat-card .stat-icon.danger { background: #fee2e2; color: #b91c1c; }
[data-bs-theme="dark"] .stat-card .stat-icon.danger { background: #7f1d1d; color: #fecaca; }
.stat-card .stat-icon.warning { background: #fef3c7; color: #b45309; }
[data-bs-theme="dark"] .stat-card .stat-icon.warning { background: #78350f; color: #fcd34d; }
.stat-card .stat-icon.info { background: #dbeafe; color: #1d4ed8; }
[data-bs-theme="dark"] .stat-card .stat-icon.info { background: #1e3a8a; color: #93c5fd; }

/* ---------- Tables ---------- */

.app-table { margin-bottom: 0; }

.app-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--eln-card-border);
    padding: 0.65rem 1rem;
    white-space: nowrap;
}

.app-table tbody td {
    padding: 0.7rem 1rem;
    vertical-align: middle;
    border-color: var(--eln-card-border);
}

.app-table tbody tr:hover td { background: color-mix(in srgb, var(--eln-primary) 4%, transparent); }

.table-responsive { border-radius: 10px; }

.table-wrapper { border: 1px solid var(--eln-card-border); border-radius: 10px; overflow: hidden; background: var(--bs-body-bg); }
.table-wrapper .table-responsive { border: 0; }

/* ---------- Soft badges ---------- */

.badge.soft { font-weight: 600; padding: 0.36em 0.65em; border-radius: 7px; }
.badge.soft.bg-success-subtle { color: #15803d; }
.badge.soft.bg-danger-subtle { color: #b91c1c; }
.badge.soft.bg-warning-subtle { color: #b45309; }
.badge.soft.bg-info-subtle { color: #0369a1; }
.badge.soft.bg-primary-subtle { color: #1d4ed8; }
.badge.soft.bg-secondary-subtle { color: #475569; }
[data-bs-theme="dark"] .badge.soft.bg-success-subtle { color: #4ade80; }
[data-bs-theme="dark"] .badge.soft.bg-danger-subtle { color: #f87171; }
[data-bs-theme="dark"] .badge.soft.bg-warning-subtle { color: #fbbf24; }
[data-bs-theme="dark"] .badge.soft.bg-info-subtle { color: #38bdf8; }
[data-bs-theme="dark"] .badge.soft.bg-primary-subtle { color: #60a5fa; }
[data-bs-theme="dark"] .badge.soft.bg-secondary-subtle { color: #94a3b8; }

/* ---------- Buttons ---------- */

.btn { font-weight: 600; border-radius: 9px; }

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-color: #ffffff;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-bg: var(--eln-primary);
    --bs-btn-border-color: var(--eln-primary);
    --bs-btn-hover-bg: var(--eln-primary-dark);
    --bs-btn-hover-border-color: var(--eln-primary-dark);
    --bs-btn-active-bg: var(--eln-primary-dark);
    --bs-btn-active-border-color: var(--eln-primary-dark);
    --bs-btn-disabled-bg: var(--eln-primary);
    --bs-btn-disabled-border-color: var(--eln-primary);
}

/* Dark theme: deeper teal keeps white button text at AA contrast against
   the dark background (and the white label clearly legible). */
[data-bs-theme="dark"] .btn-primary {
    --bs-btn-bg: var(--eln-primary-dark);
    --bs-btn-border-color: var(--eln-primary-dark);
    --bs-btn-hover-bg: #115e59;
    --bs-btn-hover-border-color: #115e59;
    --bs-btn-active-bg: #115e59;
    --bs-btn-active-border-color: #115e59;
}

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

[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #2dd4bf; }

.btn-link { color: var(--eln-primary-dark); text-decoration: none; }
.btn-link:hover { color: var(--eln-primary); }
[data-bs-theme="dark"] .btn-link { color: #2dd4bf; }

/* ---------- Forms ---------- */

.form-label { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }

.form-control:focus, .form-select:focus {
    border-color: var(--eln-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

.form-check-input:checked { background-color: var(--eln-primary); border-color: var(--eln-primary); }

.form-hint { font-size: 0.8rem; color: var(--bs-secondary-color); }

/* Crispy forms alignment */
.asteriskField { color: #dc3545; }

/* ---------- Pagination ---------- */

.pagination { margin-bottom: 0; }
.page-link { color: var(--eln-primary-dark); font-weight: 500; }
[data-bs-theme="dark"] .page-link { color: #2dd4bf; }
.page-item.active .page-link {
    background: var(--eln-primary);
    border-color: var(--eln-primary);
    color: #fff;
}

/* ---------- Empty state ---------- */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color);
}

.empty-state .empty-icon {
    font-size: 2.4rem;
    color: var(--bs-tertiary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state .empty-title { font-weight: 600; color: var(--bs-body-color); margin-bottom: 0.25rem; }

/* ---------- Alerts ---------- */

.alert { border-radius: 11px; }

/* ---------- Dropdown polish ---------- */

.dropdown-menu { border-radius: 12px; border-color: var(--eln-card-border); box-shadow: 0 8px 30px rgba(16, 24, 40, 0.12); }
.dropdown-item:active { background: var(--eln-primary); }

/* ---------- Modal ---------- */

.modal-content { border-radius: 14px; border: 1px solid var(--eln-card-border); }
.modal-header { border-bottom: 1px solid var(--eln-card-border); }
.modal-footer { border-top: 1px solid var(--eln-card-border); }

/* ---------- Auth pages ---------- */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(45rem 30rem at 115% -10%, rgba(13, 148, 136, 0.12), transparent 60%),
        radial-gradient(40rem 28rem at -15% 110%, rgba(13, 148, 136, 0.1), transparent 60%),
        var(--eln-content-bg);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--bs-body-bg);
    border: 1px solid var(--eln-card-border);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 12px 40px rgba(16, 24, 40, 0.08);
}

.auth-card .auth-logo { margin-bottom: 1.25rem; }
.auth-card h1 { font-size: 1.35rem; font-weight: 700; }
.auth-card .auth-sub { color: var(--bs-secondary-color); font-size: 0.9rem; }
.auth-footer-links { font-size: 0.875rem; }

/* ---------- Detail pages ---------- */

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.5rem; }
.detail-item .detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
    margin-bottom: 0.15rem;
}

.detail-item .detail-value { font-size: 0.95rem; overflow-wrap: anywhere; }

/* ---------- Landing page ---------- */

.landing-body { background: var(--bs-body-bg); }

.landing-nav {
    /* Fixed to the viewport (Bootstrap's .fixed-top provides positioning;
       this rule only styles it). Sticky would stop working once the nav's
       parent (the hero header) scrolls out of view. */
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bs-body-bg) 85%, transparent);
    border-bottom: 1px solid var(--eln-card-border);
}

/* Anchor jumps (#features, #faq) must clear the fixed navbar */
html { scroll-padding-top: 4.5rem; }

.landing-hero {
    padding: 5.5rem 0 4.5rem;
    background:
        radial-gradient(50rem 32rem at 85% -20%, rgba(13, 148, 136, 0.14), transparent 60%),
        radial-gradient(40rem 30rem at 0% 120%, rgba(14, 165, 233, 0.08), transparent 55%);
}

.landing-hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.landing-hero .lead { color: var(--bs-secondary-color); max-width: 40rem; }

.landing-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--eln-primary-soft);
    color: var(--eln-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

[data-bs-theme="dark"] .landing-hero .hero-eyebrow { color: #5eead4; }

.hero-window {
    border: 1px solid var(--eln-card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
    background: var(--bs-body-bg);
}

.hero-window .window-bar {
    background: var(--bs-tertiary-bg);
    padding: 0.6rem 0.9rem;
    display: flex;
    gap: 0.4rem;
}

.hero-window .window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; display: inline-block; }
.hero-window .window-bar span:nth-child(1) { background: #f87171; }
.hero-window .window-bar span:nth-child(2) { background: #fbbf24; }
.hero-window .window-bar span:nth-child(3) { background: #34d399; }

.landing-section { padding: 4.25rem 0; }
.landing-section.alt { background: var(--bs-tertiary-bg); }

.landing-section .section-eyebrow {
    color: var(--eln-primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

[data-bs-theme="dark"] .landing-section .section-eyebrow { color: #2dd4bf; }

.landing-section h2 { font-weight: 800; letter-spacing: -0.01em; }

.feature-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--eln-card-border);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08); }

.feature-card .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--eln-primary-soft);
    color: var(--eln-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .feature-card .feature-icon { color: #5eead4; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem; }
.check-list li i { color: var(--eln-primary); margin-top: 0.15rem; }

.landing-cta {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
    color: #fff;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
}

.landing-cta h2 { color: #fff; font-weight: 800; }

.landing-footer {
    border-top: 1px solid var(--eln-card-border);
    padding: 3rem 0 2rem;
    font-size: 0.9rem;
}

.landing-footer h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bs-secondary-color);
}

.landing-footer a { color: var(--bs-secondary-color); text-decoration: none; display: block; margin-bottom: 0.45rem; }
.landing-footer a:hover { color: var(--eln-primary-dark); }

.faq-item { border: 1px solid var(--eln-card-border); border-radius: 12px; background: var(--bs-body-bg); }
.faq-item .accordion-button { font-weight: 600; background: transparent; }
.faq-item .accordion-button:not(.collapsed) { color: var(--eln-primary-dark); background: transparent; box-shadow: none; }
.faq-item .accordion-button:focus { box-shadow: none; }

/* ---------- Pricing cards (landing) ---------- */

.pricing-card { position: relative; }

.pricing-featured {
    border: 2px solid var(--eln-primary);
    box-shadow: 0 14px 40px rgba(13, 148, 136, 0.16);
}

/* ---------- Link groups (report/SOP editors) ---------- */

.link-group {
    border: 1px solid var(--eln-card-border);
    border-radius: 11px;
    background: var(--bs-tertiary-bg);
    padding: 0.85rem;
    height: 100%;
}

.link-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* ---------- Misc utilities ---------- */

.icon-link { text-decoration: none; }
.text-brand { color: var(--eln-primary) !important; }
.fs-7 { font-size: 0.82rem; }
.w-min-0 { min-width: 0; }

.avatar-initials {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--eln-primary-soft);
    color: var(--eln-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .avatar-initials { color: #5eead4; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--eln-card-border);
}

.timeline > li { position: relative; padding-left: 1.9rem; padding-bottom: 1.15rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bs-body-bg);
    border: 3px solid var(--eln-primary);
}
