/* =========================================================
   GESS THEME (Light/Dark) + Interactive tables
   ========================================================= */

:root {
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --primary: #2f7cf6;
    --shadow: 0 16px 50px rgba(0,0,0,.18);
}

/* Theme tokens */
html[data-theme="dark"] {
    --bg: #0b0f19;
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.68);
    --surface: rgba(255,255,255,.06);
    --surface-2: rgba(255,255,255,.10);
    --border: rgba(255,255,255,.12);
    --grid: rgba(255,255,255,.04);
    --card: rgba(255,255,255,.05);
    --input: rgba(255,255,255,.06);
    --chip: rgba(255,255,255,.07);
    --heading: rgba(255,255,255,.96);
    --link: #7cb4ff;
}

html[data-theme="light"] {
    --bg: #f6f7fb;
    --text: rgba(15,18,28,.92);
    --muted: rgba(15,18,28,.62);
    --surface: rgba(255,255,255,.70);
    --surface-2: rgba(255,255,255,.92);
    --border: rgba(15,18,28,.12);
    --grid: rgba(15,18,28,.06);
    --card: rgba(255,255,255,.88);
    --input: rgba(255,255,255,.95);
    --shadow: 0 16px 50px rgba(0,0,0,.10);
    --chip: rgba(15,18,28,.06);
    --heading: rgba(15,18,28,.98);
    --link: #2563eb;
}

/* Base */
html,
body {
    height: 100%;
}

    body.app-body {
        background: radial-gradient(1200px 600px at 20% -10%, rgba(47,124,246,.20), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(0,0,0,.05), transparent 55%), var(--bg);
        color: var(--text);
    }

html {
    scroll-behavior: smooth;
}

#home,
#overview,
#features,
#workflow,
#cta {
    scroll-margin-top: 110px;
}

/* Global text fix for dark/light mode */
body,
span,
p,
small,
strong,
em,
label,
legend,
dt,
dd,
li,
td,
th,
div {
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
}

p,
span,
label,
dt,
dd,
li,
td,
th,
small,
.form-label,
.form-text {
    color: var(--text);
}

.text-muted {
    color: var(--muted) !important;
}

a {
    color: var(--link);
}

    a:hover {
        color: var(--link);
        opacity: .92;
    }

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,.8), transparent 70%);
    opacity: .55;
}

.native-select {
    padding: 8px;
    width: 200px;
}

    /* This works in most desktop browsers to set the idle state background */
    .native-select option {
        background-color: azure;
        color: #333;
    }

        /* Corrected syntax, though usually ignored by browsers for native selects */
        .native-select option:hover {
            color: dodgerblue;
            background-color: #f0ffff; /* Light color to attempt a change */
        }

/* =========================================================
   LANDING PAGE POLISHED CAROUSEL + COUNTERS
   ========================================================= */
.nav-language-select {
    min-width: 82px;
    border-radius: 999px !important;
}

.landing-carousel-polished {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
}

.landing-section {
    margin-top: 30px;
}

.landing-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.20) 40%, rgba(0,0,0,.72) 100%);
    z-index: 1;
}

.landing-carousel-panel {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    padding: 20px;
    border-radius: 22px;
    background: rgba(8, 12, 22, .45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

    .landing-carousel-panel h3 {
        margin: 6px 0 8px;
        font-size: clamp(1.2rem, 2vw, 1.8rem);
        font-weight: 800;
        color: #fff !important;
    }

    .landing-carousel-panel p {
        margin: 0;
        line-height: 1.6;
        color: rgba(255,255,255,.88) !important;
    }

.landing-carousel-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}

.landing-carousel-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.landing-carousel-indicators {
    z-index: 3;
}

    .landing-carousel-indicators [data-bs-target] {
        width: 9px;
        height: 9px;
        border-radius: 999px;
        border: none;
    }

.landing-stat-title {
    margin-top: 6px;
    font-size: .98rem;
    font-weight: 700;
    color: var(--text);
}

.counter {
    display: inline-block;
    min-width: 1ch;
}

@media (max-width: 991.98px) {
    .landing-carousel-panel {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 14px;
        border-radius: 18px;
    }

        .landing-carousel-panel p {
            font-size: .95rem;
        }

    .landing-carousel-tags {
        margin-top: 10px;
    }
}

.nav-glass .navlink {
    transition: all .2s ease;
}

/* =========================
   CHECKBOX FIX (IMPORTANT)
   ========================= */

.app-scope .form-check-input {
    background-color: var(--input);
    border: 1px solid var(--border);
    cursor: pointer;
    width: 18px;
    height: 18px;
}

    /* CHECKED STATE */
    .app-scope .form-check-input:checked {
        background-color: var(--primary) !important;
        border-color: var(--primary) !important;
    }

        /* CHECK ICON (force visible) */
        .app-scope .form-check-input:checked::before {
            color: white;
        }

    /* Focus */
    .app-scope .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(47,124,246,.25);
    }

/* Ensure checkmark is visible in dark mode */
html[data-theme="dark"] .form-check-input:checked {
    filter: brightness(1.2);
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-module-card {
    display: block;
    color: inherit;
}

.dashboard-module-shell {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-module-card:hover .dashboard-module-shell {
    transform: translateY(-3px);
    border-color: rgba(47,124,246,.28) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,.14);
}

.dashboard-module-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    border: 1px solid var(--border);
    background: var(--chip);
}

    .dashboard-module-icon.blue {
        background: rgba(47,124,246,.12);
    }

    .dashboard-module-icon.green {
        background: rgba(34,197,94,.12);
    }

    .dashboard-module-icon.yellow {
        background: rgba(234,179,8,.14);
    }

    .dashboard-module-icon.gray {
        background: rgba(148,163,184,.12);
    }

.dashboard-module-title {
    color: var(--text);
    font-weight: 800;
}

.dashboard-module-text {
    color: var(--muted);
    line-height: 1.7;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
}

/* Content scope */
.app-content {
    padding: 12px;
    border-radius: var(--radius-xl);
}

/* =========================================================
   APP SHELL WIDTH
   Reduces left/right whitespace
   ========================================================= */
.app-shell {
    width: min(96%, 1680px);
    margin-inline: auto;
}

/* Convoy create selection state */
.convoy-row-selected {
    background: rgba(47,124,246,.14) !important;
}

.convoy-mobile-card-selected {
    border: 1px solid rgba(47,124,246,.45) !important;
    box-shadow: 0 0 0 1px rgba(47,124,246,.18), var(--shadow) !important;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* existing content */
.app-content {
    padding: 12px 8px;
    border-radius: var(--radius-xl);
}

@media (max-width: 768px) {
    .app-shell {
        width: min(98%, 100%);
    }

    .app-content {
        padding: 10px 4px;
    }
}

/* =========================================================
   NAV
   ========================================================= */
.nav-glass {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-center {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--heading);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(47,124,246,.18);
}

.brand-text {
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--heading);
}

.navlink {
    text-decoration: none;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 999px;
}

    .navlink:hover {
        color: var(--heading);
        background: var(--surface);
    }

.navlink-block {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
}

    .navlink-block:hover {
        background: var(--surface);
        color: var(--heading);
    }

/* Offcanvas */
.offcanvas-theme {
    background: var(--card);
    color: var(--text);
    border-left: 1px solid var(--border);
}

    .offcanvas-theme .offcanvas-title {
        color: var(--heading);
    }

html[data-theme="dark"] .offcanvas-theme .btn-close {
    filter: invert(1);
}

/* User avatar */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
}

.user-brand {
    gap: 8px;
}

/* =========================================================
   Bootstrap compatibility (scoped)
   ========================================================= */
.app-scope,
.app-scope * {
    color: inherit;
}

.app-scope {
    color: var(--text);
}

    .app-scope .text-muted,
    .app-scope .form-text {
        color: var(--muted) !important;
    }

    .app-scope .border {
        border-color: var(--border) !important;
    }

html[data-theme="dark"] .app-scope .bg-white {
    background: rgba(255,255,255,.06) !important;
}

html[data-theme="light"] .app-scope .bg-white {
    background: rgba(255,255,255,.92) !important;
}

.btn-pill {
    border-radius: 999px !important;
    padding-left: 14px;
    padding-right: 14px;
}

.app-scope .btn-primary {
    background: var(--primary);
    border-color: transparent;
    color: #fff !important;
}

    .app-scope .btn-primary:hover {
        filter: brightness(1.06);
        color: #fff !important;
    }

.btn-ghost {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

    .btn-ghost:hover {
        background: var(--surface-2);
        color: var(--heading);
    }

.app-scope .btn-outline-primary,
.app-scope .btn-outline-secondary,
.app-scope .btn-outline-danger {
    color: var(--text);
}

.app-scope .card {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow);
    color: var(--text);
}

.app-scope .card-body,
.app-scope .card-title,
.app-scope .card-text {
    color: var(--text);
}

.app-scope .form-control,
.app-scope .form-select,
.app-scope textarea,
.app-scope input,
.app-scope select {
    background: var(--input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: var(--radius-md) !important;
}

    .app-scope .form-control::placeholder,
    .search-pill input::placeholder {
        color: rgba(127,127,127,.70);
    }

    .app-scope .form-control:focus,
    .app-scope .form-select:focus {
        color: var(--text) !important;
        background: var(--input) !important;
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 .2rem rgba(47,124,246,.15) !important;
    }

.app-scope label,
.app-scope .form-label {
    color: var(--heading);
}

/* Dark dropdown menus */
html[data-theme="dark"] .dropdown-menu {
    background: #0f1526;
    border: 1px solid rgba(255,255,255,.10);
}

html[data-theme="dark"] .dropdown-item {
    color: rgba(255,255,255,.90);
}

    html[data-theme="dark"] .dropdown-item:hover {
        background: rgba(255,255,255,.06);
    }

/* Light dropdown menus */
html[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(15,18,28,.10);
}

html[data-theme="light"] .dropdown-item {
    color: rgba(15,18,28,.90);
}

    html[data-theme="light"] .dropdown-item:hover {
        background: rgba(15,18,28,.05);
    }

/* =========================================================
   INTERACTIVE TABLES
   ========================================================= */

/* Toolbar above table */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

    .table-toolbar .toolbar-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .table-toolbar .toolbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

/* Search pill */
.search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--input);
}

    .search-pill,
    .search-pill span {
        color: var(--text);
    }

        .search-pill input {
            border: none;
            outline: none;
            background: transparent;
            color: var(--text);
            min-width: 240px;
        }

@media (max-width: 576px) {
    .search-pill input {
        min-width: 160px;
    }
}

/* Table wrap provides sticky head + scroll */
.table-interactive-wrap {
    max-height: 70vh;
    overflow: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card);
}

/* Table itself */
.app-scope .table.table-interactive {
    margin: 0;
    width: 100%;
    color: var(--text) !important;
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: rgba(127,127,127,.06);
    --bs-table-hover-bg: rgba(127,127,127,.10);
}

.app-scope .table,
.app-scope .table td,
.app-scope .table th,
.app-scope .table span,
.app-scope .table small,
.app-scope .table p {
    color: var(--text) !important;
}

/* Sticky header */
.table-interactive thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface-2);
    backdrop-filter: blur(10px);
    color: var(--muted) !important;
    font-weight: 700;
    border-bottom: 1px solid var(--border) !important;
    padding: 12px 12px;
    white-space: nowrap;
}

/* Shadow on scroll (JS toggles) */
.table-interactive-wrap thead.thead-shadow th {
    box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

/* Cells */
.table-interactive td {
    padding: 12px 12px;
    vertical-align: middle;
    border-top: 1px solid rgba(127,127,127,.14) !important;
}

/* Zebra + hover */
.table-interactive tbody tr:nth-child(even) {
    background: rgba(127,127,127,.04);
}

.table-interactive tbody tr:hover {
    background: rgba(47,124,246,.10);
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    border: 1px solid var(--border);
    background: var(--chip);
    color: var(--text) !important;
}

    .chip.blue {
        border-color: rgba(47,124,246,.45);
        background: rgba(47,124,246,.12);
        color: #ffffff;
    }

    .chip.green {
        border-color: rgba(34,197,94,.45);
        background: rgba(34,197,94,.12);
        color: #ffffff;
    }

    .chip.yellow {
        border-color: rgba(234,179,8,.45);
        background: rgba(234,179,8,.14);
        color: #ffffff;
    }

    .chip.gray {
        border-color: rgba(148,163,184,.40);
        background: rgba(148,163,184,.12);
        color: #ffffff;
    }

    .chip.red {
        border-color: rgba(239,68,68,.45);
        background: rgba(239,68,68,.12);
        color: #ffffff;
    }

/* Make btn-sm tighter */
.app-scope .btn.btn-sm {
    border-radius: 10px;
}

/* Definition list details pages */
.app-scope dl,
.app-scope dt,
.app-scope dd {
    color: var(--text);
}

.app-scope dt {
    color: var(--heading);
    font-weight: 700;
}

/* Alerts */
.app-scope .alert {
    color: var(--text);
}

.app-scope .alert-success {
    background-color: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.25);
}

.app-scope .alert-danger {
    background-color: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.25);
}

/* =========================================================
   PRINT DOCUMENTS
   ========================================================= */

.print-page {
    background: #fff;
    color: #111827;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 16px;
}

.print-company-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid #111827;
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.print-footer {
    border-top: 1px solid #d1d5db;
    margin-top: 32px;
    padding-top: 16px;
    font-size: 13px;
    color: #374151;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

    .print-table th,
    .print-table td {
        border: 1px solid #d1d5db;
        padding: 8px 10px;
        vertical-align: top;
    }

    .print-table th {
        background: #f3f4f6;
        font-weight: 700;
    }

.print-summary {
    margin-top: 20px;
    margin-left: auto;
    width: 360px;
}

.print-summary-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
}

.print-actions {
    max-width: 1100px;
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media print {
    body {
        background: #ffffff !important;
    }

    .app-header,
    .nav-glass,
    .sidebar,
    .print-actions,
    .btn,
    .bg-grid {
        display: none !important;
    }

    .app-content {
        padding: 0 !important;
    }

    .print-page {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    @page {
        size: A4;
        margin: 12mm;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
    }

    .invoice-print-footer {
        margin-top: 42px;
        text-align: center;
        color: #9ca3af;
        font-size: 11px;
    }

    .page-number:after {
        content: counter(page);
    }


}

body {
    font-family: Arial, sans-serif;
    color: #1f2937;
    background: #ffffff;
    font-size: 13px;
}

.print-page {
    width: 100%;
    background: #ffffff;
}

.invoice-document {
    min-height: 267mm;
    display: flex;
    flex-direction: column;
}

.invoice-main {
    flex: 1 0 auto;
}

.invoice-header {
    padding-top: 28px;
    padding-bottom: 26px;
    border-bottom: 5px solid #2f6fae;
}

.invoice-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: #2f6fae;
}

    .invoice-brand strong {
        color: #d1d5db;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.invoice-company-lines {
    margin-top: 10px;
    color: #374151;
    line-height: 1.35;
}

.invoice-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-top: 28px;
    margin-bottom: 32px;
}

.invoice-party {
    width: 50%;
}

.invoice-details {
    width: 40%;
    text-align: right;
}

.invoice-section-label {
    text-transform: uppercase;
    color: #2f6fae;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: .4px;
}

.invoice-detail-line {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    line-height: 1.4;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

    .print-table thead {
        display: table-header-group;
    }

    .print-table tfoot {
        display: table-footer-group;
    }

    .print-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-table th {
        background: #eef2f7;
        color: #374151;
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 800;
        padding: 11px 10px;
        border-bottom: 2px solid #d1d5db;
    }

    .print-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: top;
    }

.text-end {
    text-align: right;
}

.print-summary {
    margin-top: 28px;
    margin-left: auto;
    width: 360px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.print-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #4b5563;
}

    .print-summary-row.total {
        margin-top: 8px;
        background: #2f6fae;
        color: #ffffff;
        padding: 12px 14px;
        font-size: 17px;
        font-weight: 800;
        border-radius: 4px;
    }

.invoice-payment-box {
    margin-top: 34px;
    background: #f1f6fc;
    border-left: 5px solid #2f6fae;
    padding: 16px 20px;
    color: #374151;
    break-inside: avoid;
    page-break-inside: avoid;
}

.invoice-footer-block {
    margin-top: auto;
    padding-top: 32px;
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
}

.invoice-signatures {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.signature-block {
    flex: 1;
    text-align: center;
    break-inside: avoid;
    page-break-inside: avoid;
}

.signature-title {
    font-size: 12px;
    font-weight: 700;
    color: #2f6fae;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.signature-person {
    font-weight: 700;
    color: #111827;
    min-height: 20px;
}

.signature-meta {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    min-height: 16px;
}

.signature-placeholder {
    height: 40px;
}

.signature-line {
    margin-top: 42px;
    border-bottom: 1px solid #111827;
}

.signature-caption {
    margin-top: 8px;
    font-size: 11px;
    color: #6b7280;
}

.stamp-box {
    width: 120px;
    height: 90px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    margin: 0 auto;
}

.invoice-footer-note {
    margin-top: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.invoice-print-footer {
    margin-top: 32px;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    break-inside: avoid;
    page-break-inside: avoid;
}

h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1f2937;
}

/* Landing separation */
.landing-page {
    background: radial-gradient(circle at top left, rgba(47, 124, 246, .12), transparent 35%), radial-gradient(circle at top right, rgba(255, 193, 7, .08), transparent 30%), var(--body-bg);
}

.landing-section {
    padding: 48px 0;
}

    .landing-section + .landing-section {
        border-top: 1px solid var(--border);
    }

.landing-section-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.landing-section-soft .landing-section-panel {
    background: var(--surface-2);
}

.landing-stat-card,
.landing-feature-card,
.landing-step-card {
    height: 100%;
    min-height: 170px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .landing-stat-card:hover,
    .landing-feature-card:hover,
    .landing-step-card:hover {
        transform: translateY(-3px);
        border-color: rgba(47, 124, 246, .45);
        box-shadow: 0 18px 40px rgba(0,0,0,.14);
    }

.landing-feature-card,
.landing-step-card {
    display: flex;
    flex-direction: column;
}

    .landing-feature-card p,
    .landing-step-card p {
        margin-bottom: 0;
        color: var(--muted);
    }

.landing-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: rgba(47, 124, 246, .12);
}

.landing-step-number {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 14px;
    background: rgba(47, 124, 246, .14);
    color: var(--primary);
}

.landing-cta {
    background: linear-gradient(135deg, rgba(47,124,246,.20), rgba(255,193,7,.10));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

@media (max-width: 767.98px) {
    .landing-section {
        padding: 28px 0;
    }

    .landing-section-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .landing-stat-card,
    .landing-feature-card,
    .landing-step-card {
        min-height: auto;
    }
}

.brand-logo {
    width: 32px; /* Forces the width to be small */
    height: 32px; /* Forces the height to match, ensuring a perfect square */
    border-radius: 50%; /* Makes the square into a perfect circle */
    object-fit: cover; /* Prevents the image from stretching/squishing */
    vertical-align: middle; /* Aligns it vertically with your text */
    margin-right: 8px; /* Pushes the text away slightly */
}