:root {
    color-scheme: light;
    --page: #eef3f9;
    --panel: #ffffff;
    --soft: #f7fafd;
    --soft-blue: #eaf4ff;
    --line: #d9e2ec;
    --line-strong: #b8c7d8;
    --text: #243247;
    --heading: #082b5f;
    --muted: #63738a;
    --primary: #0b4aa2;
    --primary-dark: #082b5f;
    --accent: #f26b21;
    --accent-dark: #c94f12;
    --ok: #2f7d57;
    --ok-bg: #eaf8f0;
    --warn: #9a5b12;
    --warn-bg: #fff7e6;
    --danger: #b8322a;
    --danger-bg: #fff0f0;
    --info: #2b6cb0;
    --shadow: 0 16px 38px rgba(8, 43, 95, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #f6f9fd 0%, var(--page) 42%, #f8fafc 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body,
button,
input,
select {
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--heading);
}

h1 {
    font-size: 32px;
    line-height: 1.08;
    font-weight: 800;
}

h2 {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 760;
}

h3 {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 740;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 15px;
    background: var(--accent);
    color: #fff;
    font-weight: 760;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(11, 74, 162, 0.22);
    outline-offset: 2px;
}

button.secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--heading);
}

button.secondary:hover {
    background: var(--soft-blue);
    border-color: #c7ddf5;
    color: var(--primary);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

input,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    background: #fff;
    color: var(--text);
}

input[readonly] {
    background: #f8fafc;
    color: var(--muted);
}

code {
    overflow-wrap: anywhere;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

[hidden] {
    display: none !important;
}

.borrower-app {
    min-height: 100vh;
}

.landing-screen,
.apply-entry-screen {
    background: #f0f4f8;
}

.special-banner {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    padding: 10px 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 760;
}

.landing-hero {
    background: #17182b;
    color: #fff;
    padding: 74px 24px 82px;
    text-align: center;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid rgba(85, 174, 233, 0.38);
    border-radius: 999px;
    background: rgba(85, 174, 233, 0.11);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 820;
    text-transform: uppercase;
}

.landing-hero h1 {
    max-width: 790px;
    margin: 14px auto 16px;
    color: #fff;
    font-size: clamp(34px, 6vw, 54px);
}

.landing-hero p:not(.landing-kicker) {
    max-width: 690px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.btn-hero {
    min-height: 52px;
    padding: 12px 30px;
    font-size: 17px;
    box-shadow: 0 14px 30px rgba(242, 107, 33, 0.24);
}

.landing-trust {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 790px;
    margin: 28px auto 0;
}

.landing-trust span {
    border: 1px solid rgba(85, 174, 233, 0.24);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

.featured-offer-band {
    padding: 32px 24px;
    background: #fff;
    border-bottom: 1px solid #dbe7f5;
}

.featured-offer {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    width: min(1120px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(85, 174, 233, 0.24);
    border-radius: 8px;
    background: linear-gradient(135deg, #17203a, #17182b);
    color: #fff;
    box-shadow: 0 18px 42px rgba(23, 24, 43, 0.18);
}

.featured-offer-main,
.featured-offer-side {
    padding: 24px;
}

.featured-offer-side {
    display: grid;
    align-content: center;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    background: linear-gradient(135deg, rgba(85, 174, 233, 0.18), rgba(236, 107, 46, 0.2));
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 860;
}

.featured-offer h2 {
    margin-top: 12px;
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
}

.featured-offer p {
    max-width: 720px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
}

.featured-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.featured-facts span,
.featured-stat {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.featured-facts span {
    border-radius: 999px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

button.on-dark {
    color: var(--heading);
}

.featured-stat {
    border-radius: 8px;
    padding: 12px;
}

.featured-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 820;
    text-transform: uppercase;
}

.featured-stat strong {
    display: block;
    margin-top: 3px;
    color: #fff;
}

.landing-section {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 44px 24px;
}

.landing-section h2,
.landing-cta-band h2 {
    text-align: center;
}

.section-lead {
    max-width: 660px;
    margin: 8px auto 24px;
    color: var(--muted);
    text-align: center;
}

.loan-types-row,
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.loan-type-tile {
    min-height: 176px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    color: var(--text);
    text-align: left;
    box-shadow: 0 5px 16px rgba(15, 45, 82, 0.06);
}

.loan-type-tile:hover {
    transform: translateY(-3px);
    border-color: #9ccbef;
    background: #fff;
    color: var(--text);
}

.loan-type-tile strong {
    color: var(--heading);
    font-size: 17px;
}

.loan-type-tile span:not(.loan-icon):not(.loan-tile-badge) {
    color: var(--muted);
    font-size: 14px;
}

.loan-type-tile em {
    margin-top: 4px;
    color: var(--primary);
    font-size: 13px;
    font-style: normal;
    font-weight: 820;
}

.loan-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f4fd;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.loan-personal .loan-icon,
.loan-med .loan-icon {
    background: #fff0e8;
    color: var(--accent);
}

.loan-tile-badge {
    justify-self: start;
    border: 1px solid #ffd0b8;
    border-radius: 999px;
    padding: 3px 8px;
    background: #fff0e8;
    color: var(--accent);
    font-size: 11px;
    font-weight: 860;
}

.how-it-works {
    width: 100%;
    max-width: none;
    background: #f8fafc;
}

.how-it-works .steps-row {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.step-tile {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.step-tile::before {
    content: attr(data-step);
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #e8f4fd;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.step-tile strong {
    display: block;
    color: var(--heading);
}

.step-tile span {
    color: var(--muted);
    font-size: 14px;
}

.landing-cta-band {
    padding: 34px 24px;
    border-top: 1px solid #c7d2fe;
    border-bottom: 1px solid #c7d2fe;
    background: #eef2ff;
    text-align: center;
}

.landing-cta-band p {
    margin: 8px 0 16px;
    color: var(--muted);
}

.apply-entry-wrap {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 28px 24px;
}

.link-button {
    min-height: 0;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 760;
}

.link-button:hover {
    background: transparent;
    color: var(--accent);
}

.apply-entry-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 45, 82, 0.11);
}

.apply-entry-main,
.apply-entry-side {
    padding: 28px;
}

.apply-entry-main {
    display: grid;
    gap: 14px;
}

.apply-entry-side {
    display: grid;
    align-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #17182b, #253455);
    color: #fff;
}

.apply-entry-side h2 {
    color: #fff;
}

.apply-entry-side p,
.portal-checklist {
    color: rgba(255, 255, 255, 0.84);
}

.portal-checklist {
    display: grid;
    gap: 9px;
    padding-left: 18px;
    font-size: 14px;
}

.apply-entry-card {
    display: grid;
    gap: 12px;
}

.choice-btn {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-align: left;
}

.choice-btn:hover {
    border-color: #9ccbef;
    background: #f8fbff;
    color: var(--text);
}

.choice-btn.recommended {
    border-color: #b8dcf5;
    background: linear-gradient(135deg, #ffffff, #f2f8fd);
}

.choice-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f4fd;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.choice-btn.recommended .choice-icon {
    background: var(--accent);
    color: #fff;
}

.choice-btn strong,
.choice-btn small {
    display: block;
}

.choice-btn strong {
    color: var(--heading);
    font-size: 16px;
}

.choice-btn small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

.apply-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apply-trust-row span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dbe7f5;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
}

.brand-lockup,
.header-actions,
.button-row,
.trust-strip {
    display: flex;
    align-items: center;
}

.brand-lockup {
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 68px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.brand-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-copy strong {
    color: #101827;
    font-size: 16px;
    line-height: 1.1;
}

.brand-copy span,
.muted,
.meta {
    color: var(--muted);
}

.brand-copy span {
    font-size: 12px;
}

.header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.header-link,
.button-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border-radius: 8px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 760;
}

.header-link {
    padding: 8px 10px;
}

.header-link:hover {
    background: var(--soft-blue);
    color: var(--primary);
}

.button-link {
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid var(--line);
    background: #fff;
    text-decoration: none;
}

.button-link:hover {
    background: var(--soft-blue);
    border-color: #c7ddf5;
    color: var(--primary);
}

.landing-actions {
    justify-content: center;
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 22px;
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 18px;
    padding: 28px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 43, 95, 0.96), rgba(23, 24, 43, 0.97)),
        var(--primary-dark);
    color: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.portal-hero h1,
.portal-hero .eyebrow {
    color: #fff;
}

.portal-hero-content {
    display: grid;
    align-content: center;
    gap: 12px;
}

.hero-copy {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
}

.trust-strip {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.trust-strip span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 720;
}

.hero-status {
    display: grid;
    gap: 12px;
    align-content: start;
}

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

.summary-grid div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-grid span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
}

.summary-grid strong,
.summary-grid code {
    color: #fff;
    font-weight: 760;
}

.portal-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: minmax(260px, 318px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.progress-panel,
.panel,
.card,
.form-section,
.state,
.item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.progress-panel {
    position: sticky;
    top: 92px;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.progress-heading {
    display: grid;
    gap: 6px;
}

.progress-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
}

.steps {
    display: grid;
    gap: 8px;
}

.step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    border-color: var(--line);
    background: #fff;
    color: var(--text);
    text-align: left;
    padding: 8px;
}

.step:hover {
    background: var(--soft);
    border-color: #c8d7e8;
    color: var(--heading);
}

.step.active {
    border-color: #b8d6f6;
    background: var(--soft-blue);
    color: var(--heading);
}

.step.done {
    border-color: #c8ead8;
}

.step-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e8f4fd;
    color: var(--primary);
    font-size: 13px;
    font-weight: 820;
}

.step.done .step-index {
    background: var(--ok-bg);
    color: var(--ok);
}

.step strong {
    display: block;
    color: inherit;
    font-size: 14px;
    line-height: 1.15;
}

.step small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
}

.signout-button {
    width: 100%;
}

.journey,
.stack,
.grid {
    display: grid;
    gap: 14px;
}

.panel {
    padding: 22px;
    box-shadow: 0 1px 3px rgba(8, 43, 95, 0.05);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header > div {
    display: grid;
    gap: 5px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 820;
    text-transform: uppercase;
}

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

.card,
.form-section {
    padding: 16px;
}

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

.form-section.compact {
    max-width: 460px;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

label {
    color: #334155;
    font-size: 13px;
    font-weight: 720;
}

.button-row {
    flex-wrap: wrap;
    gap: 8px;
}

.page-action-bar,
.terms-box,
.final-identity-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.page-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.page-action-bar span {
    color: var(--muted);
    font-size: 14px;
}

.terms-box {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 16px;
    background: #f8fafc;
}

.terms-box strong {
    color: var(--heading);
}

.terms-box p {
    color: var(--muted);
    font-size: 14px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.check-row span {
    color: var(--text);
    font-size: 14px;
}

.final-identity-panel {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff, #f3f8fd);
    border-color: #cfe1f2;
}

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

.identity-frame {
    min-height: 132px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    border: 2px dashed var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-align: center;
}

button.identity-frame:hover {
    border-color: var(--primary);
    background: #f8fbff;
    color: var(--text);
}

.identity-frame.done {
    border-style: solid;
    border-color: #b9e8cb;
    background: var(--ok-bg);
}

.identity-frame strong {
    color: var(--heading);
}

.identity-frame span {
    color: var(--muted);
    font-size: 13px;
}

.state {
    padding: 14px;
    color: var(--muted);
}

.state strong {
    color: var(--heading);
}

.portal-hero .state {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.portal-hero .state strong {
    color: #fff;
}

.state.error {
    border-color: #f7c4bf;
    background: var(--danger-bg);
    color: var(--danger);
}

.state.ok {
    border-color: #b9e8cb;
    background: var(--ok-bg);
    color: var(--ok);
}

.state.warn {
    border-color: #f3d59a;
    background: var(--warn-bg);
    color: var(--warn);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ebf5ff;
    color: var(--info);
    font-size: 12px;
    font-weight: 760;
}

.badge.ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.badge.warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.badge.error {
    background: var(--danger-bg);
    color: var(--danger);
}

.developer-badge {
    opacity: 0.84;
}

.dev-tools {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: #fff;
}

.dev-tools summary {
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 760;
}

.dev-tools:not([open]) > :not(summary) {
    display: none;
}

.dev-tools p {
    margin: 8px 0;
}

.developer-only {
    border-style: dashed;
}

.item-list {
    display: grid;
    gap: 10px;
}

.product-grid:not(:empty) {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.item {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #fff;
}

.item.selected {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.metric-strip {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(120px, 0.65fr));
    gap: 10px;
}

.metric-card,
.data-card,
.application-card,
.product-card,
.choice-card,
.document-card,
.review-card,
.offer-summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metric-card {
    display: grid;
    gap: 3px;
    padding: 14px;
}

.metric-card span,
.data-row span,
.document-overview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 780;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--heading);
    font-size: 24px;
    line-height: 1.1;
}

.metric-card.primary {
    background: linear-gradient(135deg, #ffffff, #f3f8fd);
    border-color: #cfe1f2;
}

.metric-card.primary strong {
    font-size: 18px;
}

.metric-card small {
    color: var(--muted);
}

.data-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.data-list {
    display: grid;
    gap: 8px;
}

.data-list.compact {
    gap: 6px;
}

.data-row {
    display: grid;
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 680;
}

.application-card,
.choice-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.55fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.application-card h3,
.choice-card h3,
.product-card h3,
.document-card h3 {
    margin-top: 6px;
}

.application-meta,
.choice-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
}

.product-card {
    display: grid;
    gap: 13px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.product-card.selected,
.choice-card.selected,
.document-card.selected {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.product-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff0e8;
    color: var(--accent);
    font-weight: 900;
}

.product-card p,
.choice-card p,
.review-head p,
.offer-summary p {
    color: var(--muted);
    font-size: 14px;
}

.product-facts,
.offer-facts,
.slot-meta {
    display: grid;
    gap: 8px;
}

.product-facts span,
.offer-facts span,
.slot-meta span {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    color: var(--muted);
    font-size: 13px;
}

.product-facts strong,
.offer-facts strong {
    color: var(--heading);
}

.document-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #f3d59a;
    border-radius: 8px;
    background: var(--warn-bg);
}

.document-overview.complete {
    border-color: #b9e8cb;
    background: var(--ok-bg);
}

.document-overview strong {
    display: block;
    color: var(--heading);
    font-size: 22px;
}

.document-overview p {
    color: var(--muted);
}

.document-group {
    background: transparent;
    border: 0;
}

.document-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.document-card.compact {
    padding: 14px;
}

.document-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.document-card-head > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.document-mode {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.upload-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.upload-slot.complete {
    border-color: #b9e8cb;
    background: var(--ok-bg);
}

.upload-slot.needed {
    border-color: #f3d59a;
    background: #fffaf0;
}

.upload-slot strong,
.upload-slot span,
.upload-slot p {
    display: block;
}

.upload-slot > div:first-child span,
.upload-slot p {
    color: var(--muted);
    font-size: 13px;
}

.review-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.review-card.ok {
    border-color: #b9e8cb;
    background: linear-gradient(135deg, #ffffff, var(--ok-bg));
}

.review-card.warn {
    border-color: #f3d59a;
    background: linear-gradient(135deg, #ffffff, var(--warn-bg));
}

.review-head,
.offer-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.review-head > strong {
    color: var(--heading);
    font-size: 22px;
    white-space: nowrap;
}

.offer-summary {
    padding: 18px;
    background: linear-gradient(135deg, #ffffff, #f3f8fd);
    border-color: #cfe1f2;
}

.offer-summary.signed {
    background: linear-gradient(135deg, #ffffff, var(--ok-bg));
    border-color: #b9e8cb;
}

.offer-summary h3 {
    margin-top: 8px;
    font-size: 28px;
}

.condition-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.kv {
    display: grid;
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: 7px 12px;
    font-size: 13px;
}

.kv .muted {
    font-weight: 680;
}

@media (max-width: 980px) {
    .featured-offer,
    .apply-entry-shell {
        grid-template-columns: 1fr;
    }

    .featured-offer-side {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }

    .portal-hero,
    .portal-shell {
        grid-template-columns: 1fr;
    }

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

    .application-card,
    .choice-card,
    .upload-slot {
        grid-template-columns: 1fr;
    }

    .progress-panel {
        position: static;
    }

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

    .auth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .landing-hero {
        padding: 52px 18px 58px;
    }

    .landing-hero h1 {
        font-size: 34px;
    }

    .landing-hero p:not(.landing-kicker) {
        font-size: 16px;
    }

    .featured-offer-band,
    .landing-section,
    .landing-cta-band,
    .apply-entry-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .featured-offer-main,
    .featured-offer-side,
    .apply-entry-main,
    .apply-entry-side {
        padding: 18px;
    }

    .loan-types-row,
    .steps-row {
        grid-template-columns: 1fr;
    }

    .app-header {
        align-items: flex-start;
        padding: 10px 16px;
    }

    .brand-mark {
        width: 54px;
        height: 42px;
    }

    .brand-copy span {
        display: none;
    }

    .portal-hero,
    .portal-shell {
        width: min(100% - 20px, 1180px);
    }

    .portal-hero {
        padding: 16px;
        margin-top: 14px;
        gap: 14px;
    }

    h1 {
        font-size: 24px;
    }

    .hero-copy {
        font-size: 14px;
    }

    .trust-strip {
        display: none;
    }

    .progress-heading {
        display: none;
    }

    .split,
    .kv,
    .identity-grid {
        grid-template-columns: 1fr;
    }

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

    .metric-strip,
    .data-row,
    .document-overview,
    .review-head,
    .offer-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .step {
        flex: 0 0 174px;
        scroll-snap-align: start;
    }

    .panel {
        padding: 16px;
    }

    .panel-header {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    button {
        transition: none;
    }
}
