/*
 * portal-landing.css
 * Hero, trust bar, CTA, info card, LO card, and login modal styles
 * for standalone company and loan-officer landing pages.
 * Classes are prefixed "lp-" to avoid conflicts with portal-shell.css.
 */

/* ── Variables (overridden per-company via body style) ─────────────────────── */
:root {
    --primary:      var(--brand-primary);
    --primary-dark: var(--brand-primary-hover);
    --text-dark:    #0f172a;
    --text-body:    #334155;
    --text-light:   #64748b;
    --border:       #e2e8f0;
    --bg-light:     #f1f5f9;
    --shadow-sm:    0 1px 2px rgba(0,0,0,.05);
    --shadow-md:    0 4px 6px -1px rgba(0,0,0,.10);
    --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.10);
    --shadow-xl:    0 20px 25px -5px rgba(0,0,0,.10);
}

/* ── Base reset (landing pages only) ──────────────────────────────────────── */
.lp-page {
    font-family: var(--brand-font, "Helvetica Neue", Helvetica, Arial, sans-serif);
    background: #f8fafc;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.lp-hero {
    background: radial-gradient(circle at 88% 12%, var(--brand-secondary-soft) 0, transparent 42%), linear-gradient(160deg, #f8fafc 0%, var(--brand-primary-soft) 100%);
    padding: 4rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.lp-hero__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ── Hero left ───────────────────────────────────────────────────────────── */
.lp-hero__content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.lp-highlight {
    color: var(--brand-primary-text);
}

.lp-hero__sub {
    font-size: 1.15rem;
    color: var(--text-body);
    margin: 0 0 2rem;
    line-height: 1.75;
    max-width: 520px;
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.lp-trust {
    display: flex;
    gap: 0;
    margin: 0 0 2.25rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.lp-trust__item {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
}

.lp-trust__item + .lp-trust__item {
    border-left: 1px solid var(--border);
}

.lp-trust__number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-primary-text);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.lp-trust__label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── CTA row ─────────────────────────────────────────────────────────────── */
.lp-cta-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.lp-btn--primary {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    flex: 1;
    box-shadow: var(--shadow-md);
}

.lp-btn--primary:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: var(--brand-on-primary);
    text-decoration: none;
}

.lp-btn--secondary {
    background: #ffffff;
    color: var(--brand-primary-text);
    border: 2px solid var(--brand-primary);
    flex: 1;
}

.lp-btn--secondary:hover {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    text-decoration: none;
}

.lp-cta-note {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lp-cta-note::before {
    content: '✓';
    color: var(--brand-secondary-text);
    font-weight: 700;
}

/* ── Info card (company contact / LO card) ───────────────────────────────── */
.lp-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    position: relative;
}

.lp-card__badge {
    position: absolute;
    top: -12px;
    right: 1.75rem;
    background: var(--brand-secondary);
    color: var(--brand-on-secondary);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-md);
}

.lp-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.2rem;
}

.lp-card__subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 1.25rem;
    font-weight: 500;
}

/* Contact list */
.lp-card__divider {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.lp-card__nmls {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ── Login error / terms ─────────────────────────────────────────────────── */
.lp-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
}

.lp-terms-notice {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.lp-terms-notice a {
    color: var(--brand-primary-text);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.lp-terms-notice a:hover {
    text-decoration: underline;
}

.lp-terms-accept__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.35rem;
}

.lp-terms-accept__text {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0 0 1rem;
}

.lp-terms-accept__check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-body);
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.lp-terms-accept__check input {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    accent-color: var(--brand-primary);
}

.lp-terms-accept__check a {
    color: var(--brand-primary-text);
    font-weight: 600;
    text-decoration: underline;
}

.lp-terms-accept__check input:focus-visible,
.lp-terms-accept__check a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.lp-btn.lp-btn--disabled,
.lp-btn.lp-btn--disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-md);
}

.lp-terms-doc {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* ── Login modal ─────────────────────────────────────────────────────────── */
.lp-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: lp-fadeIn 0.2s ease-out;
}

.lp-modal.lp-modal--open {
    display: flex;
}

@keyframes lp-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lp-slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.lp-modal__content {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 92%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: lp-slideUp 0.25s ease-out;
}

.lp-modal__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: var(--bg-light);
    border: none;
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lp-modal__close:hover {
    background: var(--border);
    color: var(--text-dark);
}

.lp-modal__header {
    margin-bottom: 1.75rem;
}

.lp-modal__header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.4rem;
}

.lp-modal__header p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.lp-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-modal__actions .lp-btn {
    flex: none;
    width: 100%;
    padding: 1rem;
    font-size: 1.0625rem;
}

.lp-modal__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.lp-modal__divider::before,
.lp-modal__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.lp-modal__link {
    text-align: center;
    margin-top: 1rem;
}

.lp-modal__link a {
    color: var(--brand-primary-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
}

.lp-modal__link a:hover {
    text-decoration: underline;
}

/* ── Error banner ────────────────────────────────────────────────────────── */
.lp-invite {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 2rem 0;
    padding: 1rem 1.25rem;
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary);
    border-radius: 12px;
    color: #1f2937;
    font-size: 1rem;
}

.lp-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 2rem 0;
    padding: 1rem 1.25rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    color: #78350f;
    font-size: 1rem;
}

.lp-notice__icon {
    font-size: 1.25rem;
}

.lp-invite__icon {
    color: var(--brand-primary);
    font-size: 1.25rem;
}

.lp-error {
    margin: 1.5rem 2rem;
    padding: 1rem 1.25rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #b91c1c;
    font-size: 0.9375rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lp-hero__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .lp-hero__content h1 {
        font-size: 2.5rem;
    }

    .lp-card {
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .lp-hero {
        padding: 2.5rem 1rem 2rem;
    }

    .lp-hero__content h1 {
        font-size: 2rem;
    }

    .lp-hero__sub {
        font-size: 1rem;
    }

    .lp-cta-row {
        flex-direction: column;
    }

    .lp-trust {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .lp-trust__item + .lp-trust__item {
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 1rem;
    }
}

/* ── Products page ─────────────────────────────────────────────────────────── */

.lp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Product cards share the welcome tiles' surface, border and hover. */
.lp-product-card {
    background: #ffffff;
    border: 1px solid #e6e6ee;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.lp-product-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb), 0.14);
    transform: translateY(-2px);
}

.lp-product-card__icon {
    margin-bottom: 0.9rem;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--brand-primary-text);
}

.lp-product-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #122033;
    margin-bottom: 0.5rem;
}

.lp-product-card__desc {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.25rem;
}

.lp-product-card__highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.lp-product-card__highlights li {
    font-size: 0.8rem;
    color: #4a5568;
    padding: 0.2rem 0 0.2rem 1.2rem;
    position: relative;
}

.lp-product-card__highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-secondary-text);
    font-weight: 700;
}

.lp-product-card__cta {
    display: inline-block;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    text-decoration: none;
    border-radius: 6px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.15s;
}

.lp-product-card__cta:hover {
    background: var(--brand-primary-hover);
    color: var(--brand-on-primary);
    text-decoration: none;
}

/* ── About page ────────────────────────────────────────────────────────────── */

/* About text renders as trusted HTML from the lender's company record */
.lp-about-html {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.7;
}

.lp-about-html h1, .lp-about-html h2, .lp-about-html h3 {
    color: #122033;
    margin-top: 1.25rem;
}

.lp-about-html a {
    color: var(--brand-primary-text);
    text-decoration: underline;
}

.lp-about-html ul, .lp-about-html ol {
    padding-left: 1.4rem;
}

.lp-about-placeholder {
    font-size: 0.9375rem;
    color: #6b7280;
    font-style: italic;
}

/* ── Company welcome page (marketing layout) ─────────────────────────────── */
.lp-welcome {
    position: relative;
    overflow: hidden;
    padding: 64px 32px 56px;
    background: linear-gradient(100deg, var(--brand-primary-softer) 0%, #ffffff 68%);
}

.lp-welcome::before {
    content: "";
    position: absolute;
    inset: 0 38% 0 0;
    background: var(--lp-hero-image, none) center / cover no-repeat;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%, #000 70%, transparent 100%);
    pointer-events: none;
}

.lp-welcome::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 34%;
    width: 440px;
    height: 400px;
    background-color: var(--brand-primary);
    opacity: 0.05;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 4 4 42h9v44h28V60h18v26h28V42h9L73 23V8h-9v8z' fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M55 44h14v12H55zM24 44h14v12H24z' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 4 4 42h9v44h28V60h18v26h28V42h9L73 23V8h-9v8z' fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M55 44h14v12H55zM24 44h14v12H24z' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}

.lp-welcome__container {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 64px;
    align-items: start;
}

.lp-welcome__title {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1f2230;
}

.lp-welcome__lead,
.lp-welcome__accent {
    display: block;
}

.lp-welcome__accent {
    color: var(--brand-primary-text);
}

/* Company page: loan officer finder. Cards share the tiles' surface and hover. */
.lp-lo-finder {
    margin: 0 0 32px;
}

.lp-lo-finder__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
}

.lp-lo-finder__filter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #3b3f4a;
}

.lp-lo-finder__filter select {
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid #d5d5e0;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2230;
}

.lp-lo-finder__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-lo-finder__card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px 18px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e6e6ee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.lp-lo-finder__card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb), 0.14);
    transform: translateY(-2px);
    text-decoration: none;
}

.lp-lo-finder__card:focus-visible {
    outline: 3px solid var(--brand-focus);
    outline-offset: 2px;
}

.lp-lo-finder__avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-weight: 800;
    color: var(--brand-on-primary);
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--brand-secondary);
}

.lp-lo-finder__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.lp-lo-finder__name {
    font-weight: 700;
    color: #1f2230;
}

.lp-lo-finder__meta {
    font-size: 0.875rem;
    color: #4a4f5c;
}

.lp-lo-finder__go {
    color: var(--brand-primary-text);
}

.lp-lo-finder__empty {
    margin: 14px 0 0;
    color: #4a4f5c;
}

/* Products, Calculator and About reuse the welcome layout with a smaller headline. */
.lp-welcome--subpage {
    padding-top: 48px;
}

.lp-welcome--subpage .lp-welcome__title {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.lp-welcome--subpage .lp-about-html {
    margin-bottom: 28px;
}

.lp-welcome__sub {
    max-width: 34rem;
    margin: 0 0 28px;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.55;
    color: #4a4f5c;
}

.lp-welcome__cta {
    display: inline-flex;
    flex: 0 0 auto;
    margin-bottom: 44px;
    padding: 0.9rem 1.8rem;
}

.lp-eyebrow {
    margin: 0 0 22px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-primary-text);
}

.lp-eyebrow::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--brand-secondary);
}

.lp-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.lp-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 24px 14px 20px;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e6e6ee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.lp-tile:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb), 0.14);
    transform: translateY(-2px);
    text-decoration: none;
}

.lp-tile:focus-visible {
    outline: 3px solid var(--brand-focus);
    outline-offset: 2px;
}

.lp-tile__icon {
    margin-bottom: 12px;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--brand-primary-text);
}

.lp-tile__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2230;
}

.lp-tile__sub {
    margin-top: 2px;
    font-size: 0.9rem;
    color: #4a4f5c;
}

.lp-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 36px;
    padding-top: 24px;
    border-top: 1px solid #e1e1ea;
    color: #3b3f4a;
}

.lp-info-row__item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-info-row__item + .lp-info-row__item {
    padding-left: 36px;
    border-left: 1px solid #e1e1ea;
}

.lp-info-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    color: var(--brand-primary-text);
}

.lp-info-row a,
.lp-login-card__links a {
    font-weight: 600;
    color: var(--brand-primary-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-login-card {
    position: sticky;
    top: 96px;
    padding: 40px 36px 32px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eceaf2;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(var(--brand-primary-rgb), 0.12);
}

.lp-login-card__shield {
    font-size: 3.4rem;
    line-height: 1;
    color: var(--brand-primary-text);
}

.lp-login-card__title {
    margin: 14px 0 4px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2230;
}

.lp-login-card__sub {
    margin: 0 0 28px;
    color: #4a4f5c;
}

.lp-login-card__button {
    display: flex;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    font-size: 1.1rem;
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
}

.lp-login-card__links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 0.95rem;
}

.lp-login-card__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 18px;
    color: #5b6070;
}

.lp-login-card__divider::before,
.lp-login-card__divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e1e1ea;
}

.lp-help-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.lp-help-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: #1f2230;
    text-decoration: none;
}

.lp-help-list a:hover {
    color: var(--brand-primary-text);
}

.lp-help-list__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    color: var(--brand-primary-text);
}

.lp-login-card__nmls {
    margin: 22px 0 0;
    font-size: 0.8125rem;
    color: #5b6070;
}

/* Loan officer landing: the login card becomes the loan officer's profile card. */
.lp-lo-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--brand-on-primary);
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px var(--brand-secondary);
}

.lp-lo-card__badge {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-secondary-text);
    background: var(--brand-secondary-soft);
}

.lp-lo-card .lp-login-card__title {
    margin-top: 8px;
}

.lp-lo-card .lp-login-card__sub {
    margin-bottom: 22px;
}

.lp-help-list li > span {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: #1f2230;
}

.lp-company-about {
    max-width: 1360px;
    margin: 0 auto;
    padding: 8px 32px 48px;
}

@media (max-width: 1024px) {
    .lp-welcome__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lp-login-card {
        position: static;
    }

    .lp-welcome::before {
        inset: 0;
    }
}

@media (max-width: 640px) {
    .lp-welcome {
        padding: 36px 16px 40px;
    }

    .lp-welcome__cta {
        display: flex;
        width: 100%;
        margin-bottom: 32px;
    }

    .lp-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .lp-info-row__item + .lp-info-row__item {
        padding-left: 0;
        border-left: 0;
    }

    .lp-login-card {
        padding: 32px 20px 24px;
    }
}

@media (max-width: 400px) {
    .lp-tiles {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-tile,
    .lp-tile:hover {
        transition: none;
        transform: none;
    }
}
