:root {
    --bg: #f3f5f7;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #627184;
    --line: #d9e0e7;
    --accent: #1168b3;
    --accent-dark: #0d4e86;
    --danger: #b42318;
    --success: #16794c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portal-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #eef3f6;
}

.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    padding: 22px 16px;
    background: #0d314d;
    color: #fff;
}

.portal-brand {
    display: grid;
    gap: 3px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    text-decoration: none;
}

.portal-brand span {
    color: #b9d3e5;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-brand strong {
    font-size: 22px;
    line-height: 1.1;
}

.portal-nav {
    display: grid;
    align-content: start;
    gap: 7px;
}

.portal-nav button {
    width: 100%;
    height: 42px;
    justify-content: flex-start;
    border: 1px solid transparent;
    background: transparent;
    color: #d8eaf5;
    text-align: left;
    font-weight: 800;
}

.portal-nav button:hover,
.portal-nav button.active {
    background: #fff;
    border-color: #fff;
    color: #0d314d;
}

.portal-upgrade {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
}

.portal-upgrade span {
    color: #bde8cf;
    font-size: 12px;
    font-weight: 850;
}

.portal-main {
    min-width: 0;
}

a {
    color: inherit;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(17, 104, 179, .10), rgba(22, 121, 76, .07)),
        var(--bg);
}

.login-card {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(24, 39, 55, .12);
}

.login-card.wide {
    width: min(620px, 100%);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    margin-bottom: 18px;
}

h1,
h2,
p {
    margin: 0;
}

.login-card h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--muted);
    margin-bottom: 22px;
}

.small-note {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 13px;
}

.login-form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

input,
select,
button {
    height: 38px;
    border: 1px solid #bac5d0;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

input,
select {
    padding: 0 10px;
}

button {
    padding: 0 14px;
    cursor: pointer;
}

.login-form button,
.filters button {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
}

button:hover {
    border-color: var(--accent-dark);
}

button.ghost {
    background: #fff;
    color: var(--accent-dark);
    border-color: #bac5d0;
    font-weight: 800;
}

.alert,
.success {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.alert {
    background: #fff1ef;
    color: var(--danger);
}

.success {
    background: #ecfdf4;
    color: var(--success);
}

.app-header {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.app-header div {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.app-header span {
    color: var(--muted);
}

.dashboard {
    max-width: 1540px;
    margin: 0 auto;
    padding: 24px;
}

.hero,
.filters,
.kpis,
.panel {
    margin-bottom: 14px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    padding: 22px;
    border: 1px solid #d3dfe8;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(13, 78, 134, .96), rgba(17, 104, 179, .82)),
        #0d4e86;
    color: #fff;
}

.hero h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 6px;
}

.page-kicker {
    margin-bottom: 6px;
    color: #bde8cf;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.hero p:not(.page-kicker) {
    color: #d8eaf5;
}

.panel-head span {
    color: var(--muted);
}

.period-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, .16);
    padding: 5px;
    border-radius: 8px;
}

.period-tabs button {
    height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 800;
}

.period-tabs button.active {
    background: #fff;
    color: #0d314d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.filters,
.panel,
.kpis article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 16px;
    box-shadow: 0 14px 38px rgba(22, 39, 55, .06);
}

.filters select {
    min-width: 250px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.section-title p {
    color: var(--muted);
}

.metric-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.metric-group {
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(22, 39, 55, .06);
}

.metric-group h3,
.tax-preview h3 {
    margin: 0 0 12px;
    color: #0d314d;
    font-size: 15px;
}

.value-grid,
.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.value-card {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e3eaf0;
    border-radius: 7px;
    background: #f8fafc;
}

.value-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.value-card strong {
    color: #0d314d;
    font-size: clamp(18px, 1.25vw, 24px);
    line-height: 1.1;
}

.value-card small {
    color: var(--muted);
    font-size: 11px;
}

.panel {
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(22, 39, 55, .06);
}

.panel-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.table-tools input {
    width: min(320px, 45vw);
}

.data-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.data-tabs button {
    height: 34px;
    border: 0;
    background: #e8edf2;
    color: #314154;
    font-weight: 800;
}

.data-tabs button.active {
    background: var(--accent);
    color: #fff;
}

.bars {
    min-height: 220px;
    display: grid;
    grid-auto-flow: column;
    align-items: end;
    gap: 8px;
    padding: 18px;
    overflow-x: auto;
}

.bar {
    min-width: 42px;
    display: grid;
    gap: 8px;
    align-items: end;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.bar span {
    display: block;
    border-radius: 5px 5px 0 0;
    background: #1168b3;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f5;
    white-space: nowrap;
    text-align: left;
}

th {
    background: #f9fafb;
    color: #526071;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

th.num {
    text-align: right;
}

th button {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 750;
    text-align: inherit;
    text-transform: inherit;
}

th button:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

td.num,
th.num button {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

td.strong {
    font-weight: 850;
    color: #0d314d;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
}

.pagination span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.compact-pager {
    justify-content: space-between;
    border-top: 1px solid var(--line);
}

.insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .7fr);
    gap: 14px;
    margin-bottom: 14px;
}

.insight-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-list,
.export-grid {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.compare-list div,
.export-grid article {
    padding: 14px;
    border: 1px solid #e3eaf0;
    border-radius: 8px;
    background: #f8fafc;
}

.compare-list span,
.export-grid span,
.export-grid small {
    display: block;
    color: var(--muted);
}

.compare-list strong,
.export-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--accent-dark);
    font-size: 24px;
}

.mini-bars {
    min-height: 180px;
    display: grid;
    grid-auto-flow: column;
    align-items: end;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
}

.upgrade-panel {
    padding-bottom: 16px;
}

.upgrade-panel p {
    padding: 16px;
    color: var(--muted);
}

.upgrade-panel a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-left: 16px;
    padding: 0 14px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.export-panel .panel-head button {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 800;
}

.report-section {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
}

.report-list {
    display: grid;
    gap: 8px;
    padding: 12px;
    max-height: 58vh;
    overflow: auto;
}

.report-list-head {
    display: grid;
    align-items: start;
}

.report-list-head input {
    width: 100%;
}

.list-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto;
    gap: 8px;
}

.list-controls button {
    min-width: 58px;
}

.report-item {
    height: auto;
    display: grid;
    gap: 4px;
    justify-items: start;
    padding: 10px;
    border-radius: 7px;
    background: #f8fafc;
    text-align: left;
}

.report-item.active {
    border-color: var(--accent);
    background: #e8f2fb;
}

.report-item span {
    color: var(--muted);
    font-size: 12px;
}

.report-detail {
    padding: 14px;
}

.detail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.detail-title span {
    color: #0d314d;
    font-size: 24px;
    font-weight: 850;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf3f7;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.status-pill.ok {
    background: #ecfdf4;
    color: var(--success);
}

.status-pill.warn {
    background: #fff8e6;
    color: #9a6700;
}

.tax-preview {
    margin: 0 16px 16px;
    padding: 14px;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: #f8fafc;
}

.panel .section-actions input {
    min-width: 220px;
}

.table-wrap.compact table {
    min-width: 820px;
}

.empty {
    color: var(--muted);
}

@media (max-width: 860px) {
    .portal-body {
        display: block;
    }

    .portal-sidebar {
        position: relative;
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .portal-nav {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .portal-nav button {
        width: auto;
        min-width: max-content;
        height: 34px;
        padding: 0 11px;
        border-radius: 6px;
        font-size: 12px;
    }

    .portal-brand {
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding: 0 4px 8px;
    }

    .portal-brand span {
        font-size: 10px;
    }

    .portal-brand strong {
        font-size: 18px;
    }

    .portal-upgrade {
        display: none;
    }

    .app-header,
    .hero {
        display: grid;
    }

    .app-header {
        height: auto;
        align-items: start;
        gap: 8px;
        padding: 10px 14px;
    }

    .app-header div {
        display: grid;
        gap: 4px;
        margin-bottom: 0;
    }

    .dashboard {
        padding: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p:not(.page-kicker) {
        font-size: 13px;
    }

    .period-tabs {
        margin-top: 14px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .period-tabs button {
        min-width: max-content;
        padding: 0 12px;
    }

    .filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .filters label:first-child,
    .filters button {
        grid-column: 1 / -1;
    }

    .filters select,
    .filters input,
    .filters button {
        width: 100%;
        min-width: 0;
    }

    .section-title {
        align-items: start;
        display: grid;
        gap: 8px;
    }

    .value-card {
        min-height: 72px;
        padding: 10px;
    }

    .metric-layout,
    .report-section,
    .group-grid,
    .insight-grid,
    .insight-grid.two,
    .insight-grid.three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dashboard {
        padding: 10px;
    }

    .portal-sidebar {
        padding: 10px;
    }

    .app-header {
        font-size: 13px;
    }

    .hero {
        padding: 14px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .period-tabs {
        margin-top: 0;
        padding: 4px;
    }

    .period-tabs button {
        height: 30px;
        font-size: 12px;
    }

    .filters {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 10px;
    }

    .panel-head,
    .table-tools {
        display: grid;
        align-items: start;
        gap: 10px;
    }

    .table-tools input,
    .panel .section-actions input,
    .section-actions,
    .section-actions button {
        width: 100%;
        min-width: 0;
    }

    .section-actions {
        justify-content: stretch;
    }

    .metric-group {
        padding: 10px;
    }

    .metric-group h3 {
        margin-bottom: 8px;
    }

    .value-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .list-controls {
        grid-template-columns: 1fr;
    }
}

@media print {
    .portal-sidebar,
    .app-header,
    .hero,
    .filters,
    .section-actions,
    .pagination {
        display: none !important;
    }

    .portal-body,
    .portal-main,
    .dashboard {
        display: block;
        max-width: none;
        padding: 0;
        background: #fff;
    }

    .panel,
    .metric-group {
        box-shadow: none;
        break-inside: avoid;
    }

    body {
        background: #fff;
        font-size: 11px;
    }
}

.landing-body {
    min-height: 100vh;
    background: #f4f7f8;
    color: #17202a;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid #d9e0e7;
    backdrop-filter: blur(12px);
}

.landing-logo {
    color: #0d4e86;
    font-size: 18px;
    font-weight: 850;
    text-decoration: none;
}

.landing-logo span {
    color: #16794c;
}

.landing-nav nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.landing-nav nav a {
    color: #314154;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.landing-nav .nav-login,
.landing-actions a:first-child,
.online-section a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    background: #1168b3;
    color: #fff;
    text-decoration: none;
}

.landing-hero {
    min-height: min(720px, calc(100vh - 68px));
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .75fr);
    align-items: center;
    gap: clamp(26px, 5vw, 72px);
    padding: clamp(38px, 6vw, 74px) clamp(18px, 5vw, 64px) clamp(58px, 8vw, 96px);
    background:
        linear-gradient(120deg, rgba(13, 78, 134, .92), rgba(17, 104, 179, .78)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='760' viewBox='0 0 1200 760'%3E%3Crect width='1200' height='760' fill='%230d314d'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14'%3E%3Cpath d='M80 210h1040M80 340h1040M80 470h1040M210 110v540M420 110v540M630 110v540M840 110v540M1050 110v540'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.18'%3E%3Crect x='148' y='142' width='190' height='92' rx='8'/%3E%3Crect x='388' y='142' width='190' height='92' rx='8'/%3E%3Crect x='628' y='142' width='190' height='92' rx='8'/%3E%3Crect x='868' y='142' width='190' height='92' rx='8'/%3E%3Crect x='148' y='308' width='430' height='230' rx='8'/%3E%3Crect x='628' y='308' width='430' height='230' rx='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    color: #fff;
}

.landing-copy {
    max-width: 780px;
}

.eyebrow {
    margin-bottom: 14px;
    color: #bde8cf;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.landing-copy h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(56px, 8vw, 104px);
    line-height: 1.03;
}

.landing-copy > p:not(.eyebrow) {
    max-width: 720px;
    color: #d9eaf5;
    font-size: clamp(17px, 2vw, 21px);
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.landing-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.hero-console {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    color: #17202a;
    box-shadow: 0 24px 70px rgba(5, 21, 35, .26);
}

.console-top,
.console-row,
.plan-card,
.process-band article,
.preview-grid article,
.online-section {
    background: #fff;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(21, 38, 54, .08);
}

.console-top {
    padding: 16px;
    background: #0d314d;
    border-color: #0d314d;
    color: #fff;
}

.console-row {
    padding: 13px 15px;
}

.console-row.ok {
    border-color: #bde8cf;
    background: #f0fbf5;
}

.console-row span,
.console-top span,
.plan-card span {
    display: block;
    color: #627184;
    font-weight: 750;
}

.console-top span {
    color: #b9d3e5;
}

.console-row strong,
.console-top strong,
.plan-card strong {
    display: block;
    margin: 6px 0;
    color: #0d4e86;
    font-size: clamp(24px, 2.6vw, 34px);
}

.console-top strong {
    color: #fff;
}

.console-row small,
.plan-card small {
    color: #627184;
}

.process-band,
.plans-section,
.dashboard-preview,
.online-section {
    margin: 0 auto;
    width: min(1000px, calc(100% - 36px));
}

.process-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 34px 0;
}

.process-band article {
    padding: 18px;
}

.process-band strong,
.process-band span,
.process-band small {
    display: block;
}

.process-band span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #e8f2f9;
    color: #0d4e86;
    font-weight: 850;
}

.process-band small {
    margin-top: 6px;
    color: #627184;
}

.plans-section {
    padding: 36px 0 48px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.section-head h2,
.online-section h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.online-section p {
    max-width: 650px;
    color: #627184;
    font-size: 16px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-preview {
    padding: 12px 0 48px;
}

.preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.preview-tabs span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #e8f2f9;
    color: #0d4e86;
    font-weight: 850;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.preview-grid article {
    padding: 18px;
}

.preview-grid span,
.preview-grid small {
    display: block;
    color: #627184;
}

.preview-grid strong {
    display: block;
    margin: 8px 0;
    color: #17202a;
    font-size: clamp(20px, 2vw, 28px);
}

.plan-card {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 22px;
}

.plan-card.highlighted {
    border-top: 4px solid #16794c;
}

.plan-price-note {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #eef5fb;
    color: #0d4e86;
    font-weight: 750;
}

.plan-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: #314154;
}

.online-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    padding: clamp(22px, 4vw, 34px);
}

.calculator-section {
    width: min(1000px, calc(100% - 36px));
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(420px, 1fr);
    gap: clamp(18px, 4vw, 46px);
    margin: 0 auto 54px;
    padding: clamp(22px, 5vw, 42px);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(13, 49, 77, .96), rgba(13, 78, 134, .94)),
        #0d314d;
    color: #fff;
    box-shadow: 0 24px 70px rgba(17, 38, 57, .22);
}

.calculator-copy {
    align-self: center;
}

.calculator-copy .eyebrow {
    color: #bde8cf;
}

.calculator-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
}

.calculator-copy p:not(.eyebrow) {
    max-width: 520px;
    color: #d9eaf5;
    font-size: 17px;
}

.price-calculator {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    color: #17202a;
}

.price-calculator label {
    color: #526071;
}

.price-calculator label:nth-child(3),
.calculator-result {
    grid-column: 1 / -1;
}

.price-lines {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.price-lines div {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e1e8ef;
    border-radius: 6px;
    background: #fff;
}

.price-lines span {
    color: #627184;
    font-weight: 750;
}

.price-lines strong {
    color: #17202a;
}

.price-lines em {
    color: #0d4e86;
    font-style: normal;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.price-calculator input,
.price-calculator select {
    width: 100%;
    height: 44px;
    border-color: #cbd7e2;
    font-size: 16px;
}

.calculator-result {
    display: grid;
    gap: 3px;
    padding: 18px;
    border-radius: 8px;
    background: #eefaf3;
    border: 1px solid #bde8cf;
}

.calculator-result span {
    color: #16794c;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.calculator-result strong {
    color: #0d314d;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
}

.calculator-result small {
    color: #526071;
}

.muted-result {
    background: #f7fafc;
    border-color: #d9e0e7;
}

.muted-result strong {
    font-size: 30px;
}

.muted-result span {
    color: #627184;
}

@media (max-width: 900px) {
    .landing-nav {
        height: auto;
        min-height: 68px;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .landing-nav nav {
        width: 100%;
        overflow-x: auto;
    }

    .landing-hero,
    .calculator-section,
    .process-band,
    .plans-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
    }

    .section-head,
    .online-section {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .price-calculator {
        grid-template-columns: 1fr;
    }

    .price-lines div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Landing refresh 2026-08-21 */
.landing-body {
    --landing-bg: #e8eef5;
    --landing-navy: #102b40;
    --landing-blue: #246fb6;
    --landing-green: #00a978;
    --landing-ink: #061f3b;
    --landing-muted: #55708f;
    background: #ffffff;
    color: var(--landing-ink);
}

.landing-body .landing-nav {
    height: 56px;
    padding: 0 clamp(18px, 5vw, 74px);
    background: rgba(255, 255, 255, .96);
}

.landing-body .landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--landing-ink);
}

.landing-body .landing-logo span:last-child {
    display: grid;
    line-height: 1.15;
}

.landing-body .landing-logo b {
    color: var(--landing-muted);
    font-size: 12px;
    font-weight: 700;
}

.logo-badge {
    width: 34px;
    height: 34px;
    display: inline-grid !important;
    place-items: center;
    border-radius: 10px;
    background: var(--landing-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.landing-body .landing-nav nav {
    gap: 20px;
}

.landing-body .landing-nav nav a {
    color: #253e58;
    font-size: 13px;
}

.landing-body .landing-nav .nav-login {
    border-radius: 999px;
    background: var(--landing-navy);
    height: 34px;
}

.landing-body .landing-hero {
    min-height: min(590px, calc(100vh - 56px));
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 320px);
    padding: clamp(48px, 6vw, 78px) max(calc((100vw - 1000px) / 2), 22px);
    background:
        radial-gradient(circle at 84% 18%, rgba(0, 169, 120, .30), transparent 26%),
        linear-gradient(135deg, rgba(16, 43, 64, .98), rgba(30, 75, 120, .95) 55%, rgba(23, 91, 155, .94)),
        #102b40;
}

.landing-body .landing-copy h1 {
    max-width: 720px;
    font-size: clamp(42px, 5.8vw, 72px);
    letter-spacing: 0;
}

.landing-body .landing-copy > p:not(.eyebrow) {
    max-width: 650px;
    color: #dbe9f5;
    font-size: clamp(16px, 1.8vw, 19px);
}

.landing-body .eyebrow {
    color: #7df0c4;
    letter-spacing: .08em;
}

.landing-body .landing-actions a {
    min-height: 46px;
    border-radius: 999px;
}

.landing-body .landing-actions a:first-child {
    background: #fff;
    color: var(--landing-navy);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-proof span,
.setup-pill {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #eaf6ff;
    font-size: 12px;
    font-weight: 850;
}

.landing-body .hero-console {
    width: min(320px, 100%);
    justify-self: end;
    gap: 8px;
    padding: 10px;
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 54px rgba(3, 20, 34, .28);
}

.landing-body .console-top {
    padding: 13px;
    background:
        linear-gradient(135deg, #102b40, #1b4f82);
    border-color: transparent;
}

.landing-body .console-top strong {
    font-size: 22px;
}

.landing-body .console-row {
    padding: 10px 12px;
}

.landing-body .console-row strong {
    font-size: 22px;
}

.landing-body .console-row small {
    font-size: 11px;
}

.console-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce8f3;
}

.console-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--landing-green), #2d7fcc);
}

.trust-strip,
.process-section,
.portal-preview-section,
.migration-section {
    width: min(1000px, calc(100% - 36px));
    margin: 0 auto;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 34px 0 42px;
}

.trust-strip article {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 88px;
    border: 1px solid #ccd9e6;
    border-radius: 8px;
    background: #fbfcfe;
    box-shadow: 0 14px 34px rgba(16, 43, 64, .08);
}

.trust-strip strong {
    color: var(--landing-ink);
    font-size: 27px;
    line-height: 1;
}

.trust-strip span {
    color: var(--landing-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-head.centered {
    display: grid;
    justify-items: center;
    text-align: center;
    margin-bottom: 26px;
}

.section-head.narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-head.centered h2 {
    max-width: 760px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.06;
}

.section-head.centered p:not(.eyebrow) {
    max-width: 760px;
    text-align: center;
}

.process-section {
    padding: 64px 0;
}

.soft-section {
    width: 100%;
    max-width: none;
    padding-left: max(calc((100vw - 1000px) / 2), 18px);
    padding-right: max(calc((100vw - 1000px) / 2), 18px);
    background: #eef3f8;
}

.landing-body .process-band {
    width: min(1000px, 100%);
    padding: 0;
}

.landing-body .process-band article,
.landing-body .plan-card,
.landing-body .preview-grid article {
    border-color: #ccd9e6;
}

.landing-body .process-band article {
    display: grid;
    justify-items: start;
    align-content: center;
    text-align: left;
    min-height: 190px;
    padding: 24px 20px;
    box-shadow: 0 14px 34px rgba(16, 43, 64, .07);
}

.landing-body .process-band span:not(.card-icon) {
    background: #e5f2ff;
    color: var(--landing-blue);
    margin-bottom: 16px;
}

.card-icon {
    width: 50px;
    height: 50px;
    display: grid !important;
    place-items: center;
    margin: 0 0 18px;
    border-radius: 999px;
    background: #dcecff;
    color: var(--landing-navy);
    font-size: 24px;
    font-weight: 900;
}

.landing-body .process-band strong {
    font-size: 17px;
}

.landing-body .process-band small {
    max-width: 230px;
}

.landing-body .plans-section {
    width: min(1000px, calc(100% - 36px));
    padding: 70px 0;
    background: #fff;
}

.landing-body .plans-section .section-head,
.landing-body .portal-preview-section .section-head {
    display: grid;
    justify-content: start;
    justify-items: start;
    text-align: left;
    max-width: 720px;
}

.landing-body .plans-section .section-head p,
.landing-body .portal-preview-section .section-head p {
    max-width: 700px;
}

.landing-body .plans-grid {
    gap: 18px;
}

.landing-body .plan-card {
    position: relative;
    min-height: 452px;
    padding: 26px;
}

.landing-body .plan-card.highlighted {
    border: 2px solid #2f7f55;
    border-top-width: 2px;
    transform: translateY(-10px);
}

.landing-body .price-calculator {
    box-shadow: 0 20px 60px rgba(3, 20, 34, .20);
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 22px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #0f7a52;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.plan-title {
    display: grid;
    gap: 4px;
}

.plan-title span {
    color: var(--landing-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plan-title em {
    color: var(--landing-ink);
    font-size: 20px;
    font-style: normal;
    font-weight: 850;
}

.landing-body .plan-card > strong {
    margin: 8px 0 0;
    color: var(--landing-ink);
    font-size: clamp(40px, 5vw, 56px);
}

.landing-body .plan-price-note {
    background: #eef5fb;
}

.landing-body .calculator-section {
    width: min(1000px, calc(100% - 36px));
    margin-top: 8px;
    background:
        linear-gradient(135deg, rgba(16, 43, 64, .98), rgba(35, 89, 138, .96)),
        #102b40;
}

.landing-body .calculator-result strong {
    color: var(--landing-navy);
}

.landing-body .setup-pill {
    width: max-content;
    margin-top: 18px;
    background: rgba(125, 240, 196, .14);
    color: #dffdf2;
}

.portal-preview-section {
    width: 100%;
    max-width: none;
    padding: 64px max(calc((100vw - 1000px) / 2), 18px);
    background: #f6f8fb;
}

.portal-preview {
    width: min(1000px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #c7d5e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 43, 64, .14);
}

.portal-preview aside {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px 16px;
    background: var(--landing-navy);
    color: #fff;
}

.portal-preview aside strong {
    margin-bottom: 14px;
    font-size: 18px;
}

.portal-preview aside span {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 7px;
    color: #d9eaf5;
    font-weight: 800;
}

.portal-preview aside span:first-of-type {
    background: #fff;
    color: var(--landing-navy);
}

.portal-screen {
    display: grid;
    gap: 18px;
    padding: 24px;
    background: #e4ebf3;
}

.portal-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-filter-row span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #c5d4e2;
    border-radius: 7px;
    background: #fff;
    font-weight: 800;
}

.landing-body .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fake-chart {
    height: 230px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 18px;
    padding: 24px;
    border: 1px solid #cbd9e5;
    border-radius: 8px;
    background: #fff;
}

.fake-chart span {
    display: block;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #102b40, #00a978);
}

.migration-section {
    width: min(1000px, calc(100% - 36px));
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .65fr);
    gap: 28px;
    margin-top: 64px;
    margin-bottom: 56px;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid #c7d5e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16, 43, 64, .08);
}

.migration-section h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.migration-section p:not(.eyebrow) {
    color: var(--landing-muted);
    font-size: 16px;
}

.migration-section ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.migration-section li {
    padding: 14px;
    border: 1px solid #dce6ef;
    border-radius: 8px;
    background: #f7fafc;
    color: #253e58;
    font-weight: 800;
}

.landing-body .online-section {
    width: min(1000px, calc(100% - 36px));
    border-color: #102b40;
    background: var(--landing-navy);
    color: #fff;
}

.landing-body .online-section p {
    color: #d9eaf5;
}

.landing-body .online-section a {
    border-radius: 999px;
    background: #fff;
    color: var(--landing-navy);
}

@media (max-width: 980px) {
    .landing-body .landing-hero,
    .trust-strip,
    .portal-preview,
    .migration-section {
        grid-template-columns: 1fr;
    }

    .landing-body .landing-nav {
        height: auto;
    }

    .landing-body .landing-nav nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .landing-body .plan-card.highlighted {
        transform: none;
    }

    .landing-body .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .landing-body .preview-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .landing-body .landing-copy h1 {
        font-size: 42px;
    }
}
