/* Fiincco institutional theme. Loaded after styles.css. */
:root {
    --brand-blue: #0052ff;
    --brand-blue-700: #003ec7;
    --hero-navy: #0a192f;
    --hero-blue: #092a73;
    --surface: #ffffff;
    --surface-dim: #f1f4f7;
    --surface-soft: #f7f9fc;
    --line: #d9e0ea;
    --text: #1a1c1e;
    --muted: #44474e;
    --muted-2: #69707a;
    --on-dark: #ffffff;
    --on-dark-soft: rgba(255, 255, 255, 0.78);
    --shadow-sm: 0 10px 24px rgba(10, 25, 47, 0.08);
    --shadow-md: 0 18px 42px rgba(10, 25, 47, 0.13);
    --shadow-lg: 0 28px 72px rgba(10, 25, 47, 0.2);
    --radius-card: 32px;
    --radius-panel: 24px;
    --radius-control: 14px;
    --hero-photo: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&q=82&w=1800");
    --finance-photo: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&q=82&w=900");
    --insurance-photo: url("https://images.unsplash.com/photo-1609220136736-443140cffec6?auto=format&fit=crop&q=82&w=900");
    --credit-photo: url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&q=82&w=900");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(90deg, rgba(0, 82, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 82, 255, 0.035) 1px, transparent 1px),
        var(--surface-dim);
    background-size: 40px 40px, 40px 40px, auto;
    color: var(--text);
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title,
.logo,
.logo-text,
.brand-lockup,
.stat-value,
.detail-value,
.status-badge {
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif !important;
    letter-spacing: -0.02em;
}

#app {
    overflow: clip;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, #0a192f 0%, #08245f 58%, #0052ff 100%);
    box-shadow: 0 16px 38px rgba(10, 25, 47, 0.22);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: 1180px;
    min-height: 62px;
    margin-inline: auto;
    padding-inline: clamp(0.9rem, 3vw, 1.6rem);
}

.logo {
    gap: 0.68rem;
    color: #fff;
    text-decoration: none;
}

.logo-icon,
.brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--hero-navy), var(--brand-blue));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(0, 82, 255, 0.22);
}

.logo-icon::after,
.brand-mark::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 8px;
    width: 15px;
    height: 15px;
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    transform: rotate(-8deg);
}

.logo-icon::before,
.brand-mark::before {
    content: "";
    position: absolute;
    right: 9px;
    bottom: 11px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    transform: rotate(-35deg);
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    color: #fff;
}

.nav-links {
    gap: 0.2rem;
}

.nav-link,
.nav-links a,
.nav-menu a {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-link:hover,
.nav-links a:hover,
.nav-link.active,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-menu-toggle,
.mobile-menu-toggle,
.menu-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

.nav-menu-toggle span,
.mobile-menu-toggle span,
.menu-toggle span {
    background: currentColor;
}

.nav-links.open {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(10, 25, 47, 0.96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.nav .cta-button.primary {
    background: #fff;
    color: var(--brand-blue);
    box-shadow: none;
}

.provider-ticker,
.vertical-ticker {
    display: none !important;
}

.cta-button,
button.cta-button,
.submit-button,
.form-submit,
.calculator-cta,
.panel-link {
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: 0;
    min-height: 44px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cta-button:hover,
button.cta-button:hover,
.submit-button:hover,
.form-submit:hover,
.calculator-cta:hover,
.panel-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.cta-button:active,
button.cta-button:active,
.submit-button:active,
.form-submit:active,
.calculator-cta:active,
.panel-link:active {
    transform: scale(0.95);
}

.cta-button.primary,
.submit-button,
.form-submit,
.calculator-cta {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 82, 255, 0.28);
}

.cta-button.secondary,
.cta-button.outline,
.ghost-button,
.panel-link {
    border: 1px solid rgba(0, 82, 255, 0.18);
    background: #fff;
    color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

body .hero.business-home-hero.home-showcase,
body .home-showcase,
body section.hero.loans-hero,
body section.hero.business-page-hero,
body section.hero.investment-hero,
body section.hero.company-hero,
body section.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(520px, 68vh, 680px);
    padding-block: clamp(3rem, 6vw, 5.2rem);
    color: var(--on-dark);
    background:
        linear-gradient(105deg, rgba(10, 25, 47, 0.98) 0%, rgba(10, 25, 47, 0.94) 42%, rgba(0, 82, 255, 0.78) 100%),
        var(--hero-photo) center / cover no-repeat !important;
}

body section.hero::before,
body .home-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.55;
}

body section.hero::after {
    content: "";
    position: absolute;
    right: -4vw;
    bottom: -7rem;
    z-index: -1;
    width: min(540px, 52vw);
    height: min(360px, 32vw);
    background: url("/assets/hero-city.svg") bottom right / contain no-repeat;
    filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.28));
    opacity: 0.72;
}

.hero-content,
.section-container,
.container {
    max-width: 1180px;
}

.hero-grid,
.home-showcase .hero-content,
.lead-form-layout {
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.6rem);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.48rem 0.66rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.brand-lockup strong {
    color: #fff;
    font-size: 1rem;
}

.brand-lockup span {
    color: rgba(255, 255, 255, 0.72);
}

.section-eyebrow,
.panel-kicker,
.eyebrow,
.kicker,
.loan-card-kicker {
    color: var(--brand-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body section.hero .section-eyebrow {
    color: rgba(255, 255, 255, 0.74);
}

body .home-showcase .hero-title,
body section.hero .hero-title,
body section.hero .section-title {
    max-width: 680px;
    color: #fff !important;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

body .home-showcase .hero-subtitle,
body section.hero .hero-subtitle,
body section.hero p {
    max-width: 620px;
    color: var(--on-dark-soft);
    font-size: clamp(0.98rem, 1.25vw, 1.1rem);
    line-height: 1.68;
}

.hero-highlight {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.42);
    text-underline-offset: 0.14em;
}

.hero-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 600px;
}

.hero-benefit-grid span,
.hero-stats .stat-item,
.signal-list span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(12px);
}

.hero-benefit-grid b,
.hero-stats .stat-value {
    color: #fff;
}

body .home-showcase .home-eligibility-card,
body section.hero .trust-panel,
body .eligibility-container .eligibility-controls,
body .eligibility-container .eligibility-results,
body form.lead-form,
body form.qualification-form,
body form.progressive-form,
body form.lead-form-modal,
body form.mini-form {
    border: 1px solid rgba(217, 224, 234, 0.98) !important;
    border-radius: var(--radius-card) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow-lg) !important;
}

body .home-showcase .home-eligibility-card *,
body section.hero .trust-panel * {
    color: inherit;
}

body .home-showcase .home-eligibility-card .cta-button.primary,
body section.hero .trust-panel .cta-button.primary,
body form.lead-form .cta-button.primary,
body form.qualification-form .cta-button.primary,
body form.lead-form-modal .cta-button.primary,
body button.cta-button.primary {
    color: #fff;
}

body .home-showcase .home-eligibility-card::before,
body .eligibility-container .eligibility-controls::before,
body .eligibility-container .eligibility-results::before,
body form.lead-form::before,
body form.qualification-form::before,
body form.progressive-form::before,
body form.lead-form-modal::before,
body form.mini-form::before {
    content: "";
    display: block;
    height: 4px;
    margin: -1px -1px 1rem;
    border-radius: 32px 32px 0 0;
    background: var(--brand-blue);
}

.eligibility-tabs,
.tab-switcher,
.segmented-control,
.loan-types {
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-dim);
    padding: 0.34rem;
}

.eligibility-tabs button,
.tab-switcher button,
.segmented-control button,
.loan-type-btn {
    min-height: 40px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 800;
}

.eligibility-tabs button.active,
.tab-switcher button.active,
.segmented-control button.active,
.loan-type-btn.active {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 82, 255, 0.22);
}

input,
select,
textarea,
.glass-input,
.hero-control select,
.hero-control input,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--text);
    box-shadow: none;
}

input:focus,
select:focus,
textarea:focus,
.glass-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.14);
    outline: 0;
}

input[type="range"] {
    accent-color: var(--brand-blue);
}

form label,
.form-group label,
.hero-control label,
.control-group label,
.input-group label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body .product-page-card,
body .product-showcase-card,
body .loan-type-card,
body .insurance-card,
body .range-card,
body .scenario-card,
body .blog-card,
body .legal-content,
body .faq-item,
body .comparison-panel,
body .amortization-panel,
body .lender-list,
body .market-context-panel,
body .trust-ribbon,
body .advisor-cta,
body .cta-band,
body .tool-preview-card,
body .process-steps > div,
body .advisory-grid article,
body .career-paths article {
    border: 1px solid rgba(217, 224, 234, 0.98) !important;
    border-radius: var(--radius-card) !important;
    background: var(--surface) !important;
    color: var(--text);
    box-shadow: var(--shadow-md) !important;
}

body .product-page-card,
body .product-showcase-card,
body .loan-type-card,
body .insurance-card,
body .range-card {
    position: relative;
    overflow: hidden;
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

body .product-page-card::before,
body .product-showcase-card::before,
body .loan-type-card::before,
body .insurance-card::before,
body .range-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-blue);
}

body .product-showcase-card::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: min(32%, 190px);
    border-radius: 24px;
    background: var(--finance-photo) center / cover no-repeat;
    opacity: 0.9;
    pointer-events: none;
}

body .product-showcase-card:nth-child(2)::after {
    background-image: var(--insurance-photo);
}

body .product-showcase-card:nth-child(3)::after {
    background-image: var(--credit-photo);
}

body .product-showcase-card > * {
    position: relative;
    z-index: 1;
}

body .product-showcase-card {
    padding-right: min(38%, 240px);
}

body .product-page-card strong::after,
body .product-showcase-card strong::after,
body .loan-type-card a::after,
body .loan-type-card button::after {
    content: "›";
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 1.1em;
    line-height: 1;
}

body .product-page-card:hover,
body .product-showcase-card:hover,
body .loan-type-card:hover,
body .insurance-card:hover,
body .range-card:hover {
    border-color: rgba(0, 82, 255, 0.32) !important;
    box-shadow: 0 24px 62px rgba(10, 25, 47, 0.18) !important;
    transform: translateY(-3px) scale(1.01);
}

.product-visual {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: 0.85rem;
    padding: 0.7rem;
    border-radius: 22px;
    background: var(--surface-dim);
}

body .blog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(10, 25, 47, 0.98) 0%, rgba(10, 25, 47, 0.94) 52%, rgba(0, 82, 255, 0.72) 100%),
        var(--finance-photo) center / cover no-repeat !important;
}

body .blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.55;
}

body .blog-hero .section-title,
body .blog-hero .section-subtitle {
    color: #fff;
}

body .blog-hero .section-subtitle {
    color: var(--on-dark-soft);
}

.blog-card {
    overflow: hidden;
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.blog-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(0, 82, 255, 0.32) !important;
    box-shadow: 0 24px 62px rgba(10, 25, 47, 0.18) !important;
}

.blog-card-link {
    color: inherit;
}

.blog-image {
    border-radius: 24px;
    background: var(--surface-dim);
}

.blog-image img,
.article-hero-image img {
    border-radius: 24px;
}

.blog-category,
.category-btn,
.blog-meta {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
}

.category-btn.active,
.category-btn:hover {
    border-color: rgba(0, 82, 255, 0.22);
    background: var(--brand-blue);
    color: #fff;
}

.article-layout,
.blog-article-body {
    color: var(--text);
}

.legal-content {
    padding: clamp(1.2rem, 2.2vw, 2rem);
}

.section {
    position: relative;
    padding-block: clamp(2rem, 3.6vw, 3.4rem);
}

.muted-band,
.process-band,
.trust-ribbon-section,
.eligibility-section,
.loan-tool-section,
.calculator-section {
    background: transparent;
}

.section-title {
    color: var(--text);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.12;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.62;
}

.product-page-grid,
.product-showcase-grid,
.loan-types-grid,
.refined-loan-grid,
.advisory-grid,
.career-paths,
.scenario-grid,
.process-steps {
    gap: clamp(0.8rem, 1.6vw, 1.15rem);
}

.trust-ribbon,
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.trust-ribbon strong,
.stat-value,
.detail-value,
.score-value {
    color: var(--brand-blue);
}

.detail-item,
.comparison-panel,
.amortization-panel,
.lender-list,
.market-context-panel,
.insurance-result-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
}

.footer a {
    color: var(--muted);
}

.footer a:hover {
    color: var(--brand-blue);
}

.footer-content,
.footer-grid {
    gap: 1.2rem;
}

.quick-actions {
    border: 1px solid rgba(217, 224, 234, 0.94);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(10, 25, 47, 0.16);
    backdrop-filter: blur(14px);
}

.quick-actions a,
.quick-actions button {
    color: var(--muted);
    font-weight: 800;
}

.quick-actions a:hover,
.quick-actions button:hover,
.quick-actions a:first-child {
    background: var(--brand-blue);
    color: #fff;
}

.hero-content > *,
.section-header,
.product-page-card,
.loan-type-card,
.eligibility-controls,
.eligibility-results,
.lead-form,
.trust-panel {
    animation: fiincco-slide-up 520ms ease both;
}

@keyframes fiincco-slide-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 980px) {
    .home-showcase .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    }

    .loans-hero .hero-grid,
    .business-page-hero .hero-grid,
    .investment-hero .hero-grid,
    .company-hero .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.5fr);
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
    }

    .product-showcase-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 218px;
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: 84px;
        background: var(--surface-dim);
    }

    .nav {
        border-bottom: 0;
    }

    .nav-container {
        min-height: 60px;
        padding-inline: 0.9rem;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 0.8rem;
        right: 0.8rem;
        display: none;
        padding: 0.65rem;
    }

    .nav-links.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .nav-links.open a {
        padding: 0.85rem;
        background: var(--surface-dim);
    }

    body .hero.business-home-hero.home-showcase,
    body .home-showcase,
    body section.hero.loans-hero,
    body section.hero.business-page-hero,
    body section.hero.investment-hero,
    body section.hero.company-hero,
    body section.hero {
        border-radius: 0 0 28px 28px;
        min-height: auto;
        padding-block: 2rem 2.4rem;
    }

    body section.hero::after {
        width: 92vw;
        height: 190px;
        right: -28vw;
        bottom: -70px;
        opacity: 0.34;
    }

    body .home-showcase .hero-title,
    body section.hero .hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.04;
    }

    body .home-showcase .hero-subtitle,
    body section.hero .hero-subtitle,
    body section.hero p {
        font-size: 0.96rem;
        line-height: 1.58;
    }

    .hero-benefit-grid,
    .hero-stats,
    .trust-ribbon,
    .stats-band {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        gap: 0.55rem;
    }

    .hero-actions .cta-button {
        width: 100%;
        justify-content: center;
    }

    body .home-showcase .home-eligibility-card,
    body section.hero .trust-panel,
    body .eligibility-container .eligibility-controls,
    body .eligibility-container .eligibility-results,
    body form.lead-form,
    body form.qualification-form,
    body form.progressive-form,
    body form.lead-form-modal,
    body form.mini-form,
    body .product-page-card,
    body .product-showcase-card,
    body .loan-type-card,
    body .insurance-card,
    body .range-card,
    body .scenario-card,
    body .trust-ribbon,
    body .advisor-cta,
    body .cta-band {
        border-radius: 24px !important;
        box-shadow: var(--shadow-md) !important;
    }

    body .product-showcase-card {
        padding-right: 1.2rem;
    }

    body .product-showcase-card::after {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: 128px;
        margin-top: 1rem;
        border-radius: 20px;
    }

    .section {
        padding-block: 2.6rem;
    }

    .section-title {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
        line-height: 1.14;
    }

    input,
    select,
    textarea,
    .glass-input {
        min-height: 48px;
        font-size: 16px;
    }

    .quick-actions {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.62rem;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.48rem;
        border-radius: 24px;
    }

    .quick-actions a,
    .quick-actions button {
        min-height: 54px;
        border-radius: 18px;
        font-size: 0.68rem;
    }
}

@media (max-width: 520px) {
    body .home-showcase .home-eligibility-card,
    body section.hero .trust-panel,
    body .eligibility-container .eligibility-controls,
    body .eligibility-container .eligibility-results,
    body form.lead-form,
    body form.qualification-form,
    body form.progressive-form,
    body form.lead-form-modal,
    body form.mini-form {
        padding: 1rem;
    }

    .product-visual {
        width: 66px;
        height: 66px;
    }

    .nav-links.open {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Minimal homepage */
.home-minimal {
    background: var(--surface-dim);
}

.minimal-home-hero {
    min-height: auto !important;
    padding-block: clamp(3.4rem, 7vw, 5.6rem) !important;
}

.minimal-home-hero .hero-content {
    display: block;
    max-width: 860px;
    text-align: left;
}

.minimal-home-hero .hero-title {
    max-width: 760px;
}

.minimal-home-hero .hero-subtitle {
    max-width: 720px;
}

.home-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.home-product-actions .cta-button {
    min-width: 148px;
    justify-content: center;
}

.minimal-aim-section {
    padding-block: clamp(1.8rem, 3vw, 2.8rem);
}

.minimal-aim-section .section-container {
    display: grid;
    gap: 0.45rem;
    max-width: 900px;
}

.minimal-calculators {
    padding-top: 1rem;
}

.home-calculator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 2vw, 1.25rem);
    align-items: start;
}

.home-calculator-card {
    border: 1px solid rgba(217, 224, 234, 0.98);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.calculator-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.calculator-card-head span {
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 800;
}

.calculator-card-head a {
    color: var(--brand-blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.compact-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.compact-tool .eligibility-controls,
.compact-tool .eligibility-results {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.compact-tool .eligibility-controls::before,
.compact-tool .eligibility-results::before {
    display: none !important;
}

.compact-tool .eligibility-controls {
    padding: 1rem 1.15rem;
}

.compact-tool .eligibility-results {
    padding: 1rem 1.15rem 1.15rem;
    border-top: 1px solid var(--line) !important;
    background: var(--surface-soft) !important;
}

.compact-tool .control-group {
    margin-bottom: 0.8rem;
}

.compact-tool .eligibility-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.compact-tool .detail-item {
    padding: 0.72rem;
    border-radius: 16px;
}

.visually-compact-hidden {
    display: none !important;
}

.minimal-footer {
    padding-block: 1rem;
}

.minimal-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1180px;
}

.minimal-footer p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .minimal-home-hero .hero-content {
        max-width: 100%;
    }

    .home-product-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-product-actions .cta-button {
        width: 100%;
    }

    .home-calculator-grid {
        grid-template-columns: 1fr;
    }

    .calculator-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    .minimal-footer .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

.home-minimal .compact-tool .range-input-row {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    gap: 0.55rem !important;
}

.home-minimal .compact-tool .glass-input {
    min-height: 40px;
    padding: 0.55rem 0.65rem;
}

.home-minimal .compact-tool .slider-value {
    display: none !important;
}

.home-minimal .compact-tool .control-group {
    margin-bottom: 0.55rem !important;
}

.home-minimal .compact-tool .control-group label {
    margin-bottom: 0.32rem;
}

.home-minimal .compact-tool .loan-types {
    margin-top: 0.65rem !important;
}

.home-minimal .compact-tool .eligibility-status {
    gap: 0.35rem;
    margin-bottom: 0.65rem !important;
}

.home-minimal .compact-tool .status-badge {
    min-height: 36px;
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
}

.home-minimal .compact-tool .status-message {
    display: none !important;
}

.home-minimal .compact-tool .eligibility-details {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.6rem !important;
}

.home-minimal .compact-tool .detail-item {
    min-height: 0;
    padding: 0.55rem;
}

.home-minimal .compact-tool .detail-label {
    font-size: 0.68rem;
}

.home-minimal .compact-tool .detail-value {
    font-size: 0.95rem;
}

.home-minimal .compact-tool .improvement-tips,
.home-minimal .compact-tool .data-note,
.home-minimal .compact-tool #insuranceProviders {
    display: none !important;
}

/* Audit repair layer: public-view stability */
.hero-content,
.section-container,
.footer-content {
    width: min(100% - 2rem, 1180px);
}

body section.hero .hero-title,
body section.hero .section-title,
body .blog-hero .section-title {
    max-width: min(100%, 760px);
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: balance;
}

body section.hero .hero-subtitle,
body section.hero p,
body .blog-hero .section-subtitle {
    max-width: min(100%, 680px);
    overflow-wrap: break-word;
}

.mobile-nav-panel {
    left: auto;
    right: max(1rem, calc((100vw - 1180px) / 2 + 1rem));
    width: min(20rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 6rem);
    overflow: auto;
}

.mobile-nav-panel-links a {
    min-width: 0;
    white-space: normal;
}

.smart-search-content {
    max-height: min(82dvh, 42rem);
    overflow: auto;
}

.smart-search-field {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.search-icon {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.lender-items,
.trust-badges,
.signal-list {
    max-height: 22rem;
    overflow: auto;
    overscroll-behavior: contain;
}

.blog-image img,
.article-hero-image img,
.product-visual,
.logo-mark {
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-content,
    .section-container,
    .footer-content {
        width: min(100% - 1.25rem, 42rem);
    }

    body section.hero.loans-hero,
    body section.hero.business-page-hero,
    body section.hero.investment-hero,
    body section.hero.company-hero,
    body section.hero {
        min-height: auto;
        padding: 2rem 0 2.4rem;
    }

    body section.hero .hero-title {
        font-size: clamp(1.9rem, 8.4vw, 2.45rem);
        line-height: 1.1;
    }

    body section.hero .hero-subtitle,
    body section.hero p {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .minimal-home-hero .hero-content,
    .blog-hero .section-container {
        width: min(100% - 2rem, 42rem) !important;
        margin-inline: auto;
        padding-inline: 0 !important;
    }

    .minimal-home-hero .hero-title {
        max-width: 14ch !important;
    }

    .minimal-home-hero .hero-subtitle,
    .blog-hero .section-subtitle {
        max-width: 30ch !important;
    }

    .blog-hero {
        min-height: auto;
        padding: 2.2rem 0;
    }

    .blog-hero .section-header {
        margin-bottom: 0;
    }

    .mobile-nav-panel {
        top: 4.7rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-height: calc(100dvh - 6.2rem);
    }

    .mobile-nav-panel-links {
        border-radius: 18px;
        background: linear-gradient(145deg, rgba(10, 25, 47, 0.98), rgba(0, 82, 255, 0.96));
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1200;
        background: rgba(3, 10, 28, 0.38);
        backdrop-filter: blur(3px);
    }

    .nav,
    .mobile-nav-panel,
    .nav-menu-toggle {
        z-index: 1350;
    }

    .smart-search-field {
        grid-template-columns: 1fr;
    }

    .search-icon {
        display: none;
    }

    .lender-items,
    .trust-badges,
    .signal-list {
        max-height: 16rem;
    }
}
