/* trustylend.com — Avenue Link */

:root {
    --aim-teal-500: var(--color-primary);
    --aim-teal-700: var(--color-secondary);
    --aim-teal-600: var(--color-accent);
    --aim-ink: #0f172a;
    --aim-slate: #334155;
    --aim-muted: #64748b;
    --aim-border: #e2e8f0;

    --aim-bubble-pink: #fb7185;
    --aim-bubble-coral: #fb7185;
    --aim-bubble-sun: #fbbf24;

    --aim-amount-orange: #f6891e;
    --aim-amount-orange-light: #ffb04a;
    --aim-amount-orange-deep: #e07812;

    --aim-radius-lg: 18px;
    --aim-radius-md: 14px;
   
    --aim-shadow-card: 0 14px 42px rgba(90, 45, 12, 0.12);
    --aim-shadow-lift: 0 12px 28px rgba(15, 23, 42, 0.18);
    --aim-focus: 0 0 0 4px rgba(var(--color-primary-rgb), 0.22), 0 0 0 7px rgba(251, 113, 133, 0.18);

    /* Headlines — Trusty Lend */
    --aim-font-headline: 'Passion One', sans-serif;
    --aim-font-headline-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--aim-font-headline);
    font-weight: var(--aim-font-headline-weight);
    letter-spacing: 0.03em;
}

.trustylend-brand-title::before {
    content: none;
    display: none;
}

.trustylend-site-header {
    box-shadow: none;
    background: #ffffff;
    border-bottom: 1px solid oklch(92.8% 0.006 264.531);
    position: relative;
    z-index: 10;
}

.trustylend-header-inner {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing, 1rem);
}

.trustylend-brand-title {
    font-family: var(--aim-font-headline);
    font-weight: var(--aim-font-headline-weight);
    color: #0f172a;
    letter-spacing: 0.03em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 0;
    font-size: 0;
}

/* Header logo — same shape as thebigpanda.com (logo-icon + #site-title-text; no img.site-logo) */
.site-title .logo-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
}

.site-title .logo-icon img {
    display: block;
    height: 3.48rem;
    width: auto;
    max-width: min(100%, 460px);
    object-fit: contain;
    object-position: left center;
}


@media (max-width: 767.98px) {
    #main-content {
        display: flex;
        flex-direction: column;
    }

    #main-content > .trustylend-loan-hero {
        order: 1;
    }

    #main-content > #trustylend-offer-band {
        order: 2;
    }

    #main-content > #trustylend-journey {
        order: 3;
    }

    #main-content > .trustylend-slot-extra {
        order: 4;
    }
}

@media (min-width: 768px) {
    #main-content > .trustylend-loan-hero,
    #main-content > #trustylend-offer-band,
    #main-content > #trustylend-journey,
    #main-content > .trustylend-slot-extra {
        order: unset;
    }
}


@media (prefers-reduced-motion: reduce) {
    .trustylend-step-icon--fa {
        transition: none;
    }

    .trustylend-step-icon--fa:hover {
        transform: none;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    }

}

.trustylend-loan-hero {
    position: relative;
    width: 100%;
    margin: 0;
    /* Horizontal inset for trustylend-loan-hero-layout on all viewports (inline padding was overridden here before) */
    /* Top padding on small screens too — base had 0 top which removed the gap under the header vs 768px+ */
    padding: max(2rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 2rem
        max(1rem, env(safe-area-inset-left, 0px));
    overflow: hidden;
}

.trustylend-loan-hero-scrim {
    position: absolute;
    inset: 0;
    transform: none;
    width: auto;
    height: auto;
    min-height: 420px;
    background: #ffffff;
    z-index: 1;
    overflow: hidden;
}

/* Hero section background — full-bleed photo behind .trustylend-loan-hero-layout */
.trustylend-loan-hero-scrim::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://res.cloudinary.com/dbtcg826q/image/upload/f_auto,q_auto/v1776303868/common/sp-buckets/img/trusty-hero.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    pointer-events: none;
}

.trustylend-loan-hero-scrim::after {
    content: none;
}

/* Hero right column: form stack vertically centered in column */
.trustylend-loan-hero-form {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.trustylend-loan-hero-layout {
    position: relative;
    z-index: 2;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 2.25rem 1rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--aim-radius-lg);
    box-sizing: border-box;
}

.trustylend-loan-hero-copy {
    color: #111827;
    text-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* minmax(0,…) so the copy column can shrink beside the form in the 50/50 grid */
    min-width: 0;
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
}

.trustylend-loan-hero-icon {
    width: 130px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 0.9rem;
    align-self: center;
}

.trustylend-loan-hero-title {
    margin: 0 0 0.75rem 0;
    font-size: clamp(2.2rem, 5.2vw, 53px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: var(--aim-font-headline-weight);
    font-family: var(--aim-font-headline);
}

@media (max-width: 1023.98px) {
    .trustylend-loan-hero-title,
    .trustylend-offer-band-heading {
        /* ~20% larger than desktop clamp on tablet / mobile */
        font-size: clamp(2.64rem, 6.24vw, 53px);
    }
}

.trustylend-loan-hero-title-row,
.trustylend-loan-hero-title-row2,
.trustylend-loan-hero-title-row3 {
    display: block;
}

.trustylend-loan-hero-title .trustylend-loan-hero-title-row {
    color: #4d7369;
}

.trustylend-loan-hero-highlight {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(251, 113, 133, 0.92), rgba(251, 191, 36, 0.92));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trustylend-loan-hero-lead {
    margin: 0 0 1.25rem 0;
    max-width: 34ch;
    color: #0f172a;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.2;
    font-weight: 400;
}

.trustylend-loan-hero-lead-secondary {
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-size: clamp(0.95rem, 1.2vw, 1.125rem);
    line-height: 1.45;
    color: #334155;
    /* Full width of .trustylend-loan-hero-copy; .trustylend-loan-hero-lead’s 34ch is only for the dollar line */
    max-width: 48ch;
    width: auto;
}

.trustylend-loan-hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    max-width: 42ch;
}

.trustylend-loan-hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trustylend-loan-hero-feature-icon {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aim-bubble-pink);
    box-shadow: 0 12px 28px rgba(251, 113, 133, 0.35), 0 10px 24px rgba(15, 23, 42, 0.18);
    color: #ffffff;
}

.trustylend-loan-hero-feature-text {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.trustylend-loan-hero-trust {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.trustylend-loan-hero-trust-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.trustylend-loan-hero-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.85rem;
}

.trustylend-loan-hero-avatars {
    display: inline-flex;
    align-items: center;
}

.trustylend-loan-hero-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.9), rgba(var(--color-primary-rgb), 0.85));
    margin-left: -10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.trustylend-loan-hero-avatar:first-child {
    margin-left: 0;
}

.trustylend-loan-hero-stars {
    color: rgba(251, 191, 36, 0.96);
    letter-spacing: 0.12em;
    text-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.trustylend-loan-hero-rating-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.trustylend-loan-iframe-slot {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 1rem;
    min-height: 0;
    max-width: none;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

/* Greenbranch iframe embed (same param set as doublepay.net; site-specific host/name) */
.trustylend-loan-hero-layout .trustylend-loan-iframe-slot#loan-form-container {
    width: min(100%, 600px);
    max-width: min(100%, 600px);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: #ffffff;
    border-radius: var(--aim-radius-lg);
    box-shadow: var(--aim-shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-sizing: border-box;
    overflow: hidden;
}

#loan-form-container #form-frame {
    display: block;
    width: 100%;
    min-height: 500px;
    border: none;
    overflow: hidden;
}

/* TESTING: dummy form — drop outer iframe “card” shell so #dummy-form-container is the only card */
.trustylend-loan-hero-layout .trustylend-loan-iframe-slot#loan-form-container:has(#dummy-form-container) {
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
}

#dummy-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem;
    background: #ffffff;
    border-radius: var(--aim-radius-lg);
    box-shadow: var(--aim-shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-sizing: border-box;
    backdrop-filter: blur(6px);
}

.trustylend-form-step {
    display: none;
}

.trustylend-form-step.active {
    display: block;
}

.trustylend-form-step.hidden {
    display: none;
}

#step-1 {
    text-align: center;
}

.trustylend-form-step-title {
    font-family: var(--aim-font-headline);
    font-size: 1.5rem;
    font-weight: var(--aim-font-headline-weight);
    color: var(--aim-ink);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

.trustylend-amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.trustylend-amount-btn {
    position: relative;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border: 2px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--aim-radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--aim-ink);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.trustylend-amount-btn::after {
    content: "\27A4";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: rgba(var(--color-primary-rgb), 0.85);
    transition: transform 180ms ease, color 180ms ease;
    pointer-events: none;
}

.trustylend-amount-btn:hover {
    border-color: var(--aim-teal-500);
    transform: translateY(-3px);
    box-shadow: var(--aim-shadow-lift);
}

.trustylend-amount-btn:hover::after {
    transform: translateY(-50%) translateX(2px);
}

.trustylend-amount-btn.active {
    background: linear-gradient(135deg, var(--aim-teal-700) 0%, var(--aim-teal-500) 100%);
    border-color: var(--aim-teal-600);
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(var(--color-secondary-rgb), 0.28);
}

.trustylend-amount-btn.active::after {
    color: rgba(255, 255, 255, 0.98);
}

.trustylend-amount-btn:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), var(--aim-shadow-lift);
}

.trustylend-ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.875rem;
    margin: 0 auto 0.5rem auto;
    font-weight: 600;
}

.trustylend-ssl-text-bold {
    font-weight: 700;
}

.trustylend-ssl-text-normal {
    font-weight: 400;
}

.trustylend-ssl-icon {
    flex-shrink: 0;
}

.trustylend-ssl-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.5rem 0 1rem 0;
    text-align: center;
}

.trustylend-advertising-disclosure {
    text-align: center;
    margin-top: 1rem;
}

.trustylend-advertising-disclosure a {
    color: var(--aim-teal-700);
    text-decoration: none;
    font-size: 0.875rem;
}

.trustylend-advertising-disclosure a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f172a;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--aim-teal-500);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.form-group input:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus);
    border-color: var(--aim-teal-500);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--aim-teal-700) 0%, var(--aim-teal-500) 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    box-shadow: 0 16px 36px rgba(var(--color-secondary-rgb), 0.22);
}

.btn-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 18px 44px rgba(var(--color-primary-rgb), 0.28);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), 0 18px 44px rgba(var(--color-primary-rgb), 0.24);
}

.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-content h2 {
    font-family: var(--aim-font-headline);
    font-weight: var(--aim-font-headline-weight);
    letter-spacing: 0.03em;
    color: var(--aim-teal-700);
    margin-bottom: 1rem;
}

.success-content p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.trustylend-selected-amount-display {
    margin-top: 1.5rem;
    font-size: 1.125rem;
}

.trustylend-selected-amount-display strong {
    color: var(--aim-teal-700);
    font-size: 1.25rem;
}

@media (max-width: 640px) {
    .trustylend-amount-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .trustylend-amount-btn {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .trustylend-form-step-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .trustylend-loan-hero {
        padding: 2.5rem max(1.25rem, env(safe-area-inset-right, 0px)) 2.5rem max(1.25rem, env(safe-area-inset-left, 0px));
        overflow: visible;
    }

    .trustylend-loan-hero-layout {
        /* 50/50 from tablet up until single-column breakpoint below */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem;
        max-width: var(--max-width, 1200px);
        padding: 2.25rem 1rem 3rem;
        justify-items: stretch;
        /* Vertically center copy with the form; row height follows the taller column (usually the iframe) */
        align-items: center;
    }

    .trustylend-loan-hero-copy {
        padding: 1.75rem 1.5rem;
    }

    .trustylend-loan-hero-form {
        justify-self: stretch;
        align-self: stretch;
    }

    .trustylend-loan-hero-layout .trustylend-loan-iframe-slot#loan-form-container {
        padding: 0;
        margin-left: auto;
        margin-right: 0;
        width: min(100%, 600px);
        max-width: min(100%, 600px);
        padding-bottom: 0;
    }

    .trustylend-loan-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 58ch;
        gap: 0.9rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .trustylend-loan-hero-layout {
        gap: 1.5rem;
        padding: 2.25rem 1rem 2rem;
    }

    .trustylend-loan-hero-scrim::before {
        inset: 0;
        transform: none;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        background-position: center center;
        background-size: cover;
    }

    .trustylend-loan-hero-copy {
        text-align: center;
        align-items: center;
    }

    .trustylend-loan-hero-icon {
        align-self: center;
    }

    /* Same horizontal span as headline (centered column would shrink each item differently) */
    .trustylend-loan-hero-title,
    .trustylend-loan-hero-lead-secondary {
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .trustylend-loan-hero-lead {
        font-size: 1.1rem;
        line-height: 1.35;
    }
}

.trustylend-post-steps-cta {
    display: inline-block;
    padding: 1.125rem 2.75rem;
    min-width: min(100%, 280px);
    background: linear-gradient(135deg, #58a95f 0%, #3d7a45 100%);
    background-color: #3d7a45;
    color: #ffffff;
    border: none;
    border-radius: var(--aim-radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    box-shadow: 0 12px 28px rgba(61, 122, 69, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.trustylend-post-steps-cta:hover {
    filter: brightness(1.05) saturate(1.05);
    box-shadow: 0 16px 36px rgba(61, 122, 69, 0.42);
    transform: translateY(-1px);
}

.trustylend-post-steps-cta:active {
    transform: translateY(1px);
}

.trustylend-post-steps-cta:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), 0 16px 36px rgba(61, 122, 69, 0.42);
}

/* Steps */
.trustylend-hero-steps-panel {
    background: #ffffff;
    padding: 3rem 1rem;
}

.trustylend-hero-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem 1.125rem;
    text-align: left;
    padding: 1.35rem 1.4rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background:
        radial-gradient(ellipse 130% 95% at 14% 8%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.22) 34%, rgba(255, 255, 255, 0) 54%),
        linear-gradient(168deg, #f0fdf4 0%, #dcfce7 40%, #bbf7d0 100%);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 -12px 28px rgba(61, 122, 69, 0.08),
        0 22px 50px rgba(61, 122, 69, 0.14),
        0 10px 22px rgba(15, 23, 42, 0.06);
}

/* Specular “balloon” highlight above the gradient */
.step::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 46%;
    height: 42%;
    left: 5%;
    top: 2%;
    border-radius: 50%;
    transform: rotate(-14deg);
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.18) 42%,
        rgba(255, 255, 255, 0) 68%
    );
}

.step > * {
    position: relative;
    z-index: 1;
}

/* Line-art / raster icons (see site-config iconUrl) */
.trustylend-step-icon--img {
    position: relative;
    flex-shrink: 0;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.trustylend-step-icon-img {
    display: block;
    width: 72px;
    height: 72px;
    max-width: 20vw;
    object-fit: contain;
}

.step-body {
    flex: 1;
    min-width: 0;
}

/* Font Awesome Pro notdog tiles (same icon family as doublepay.net; green theme) */
.trustylend-step-icon--fa {
    position: relative;
    width: 4.25rem;
    height: 4.25rem;
    flex-shrink: 0;
    border-radius: 1.15rem;
    color: #ffffff;
    font-size: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    transition:
        transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.24s ease;
}

.trustylend-step-icon--fa:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 20px 40px rgba(61, 122, 69, 0.22);
}

.trustylend-step-icon--fa.trustylend-step-icon--1 {
    background: linear-gradient(168deg, #7bc47f 0%, #58a95f 45%, #3d7a45 100%);
}

.trustylend-step-icon--fa.trustylend-step-icon--2 {
    background: linear-gradient(168deg, #2dd4bf 0%, #14b8a6 40%, #0f766e 100%);
}

.trustylend-step-icon--fa.trustylend-step-icon--3 {
    background: linear-gradient(
        145deg,
        #58a95f 0%,
        #3d7a45 38%,
        #0d9488 72%,
        #0f766e 100%
    );
}

/* Notdog layer colors (see doublepay.net .trustylend-brand-promo-icon i) */
.trustylend-step-icon--fa i {
    --fa-primary-color: rgba(255, 255, 255, 0.98);
    --fa-secondary-color: #d1fae5;
    --fa-secondary-opacity: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

.step-title {
    font-family: var(--aim-font-headline);
    font-size: 1.0625rem;
    font-weight: var(--aim-font-headline-weight);
    margin: 0 0 0.4rem;
    color: var(--color-secondary);
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.step-description {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

@media (min-width: 768px) {
    .trustylend-hero-steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ---------------------------
   Hero steps: section#trustylend-hero-steps + left visual + div.trustylend-hero-steps-panel (right column)
   --------------------------- */
#trustylend-hero-steps.trustylend-hero-steps-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    align-content: start;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 3rem 1rem 1.5rem;
    box-sizing: border-box;
    /* Prevent a taller steps column from leaving a tinted strip under the photo column */
    background: #ffffff;
}

.trustylend-hero-steps-visual {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    /* White so letterboxing with object-fit: contain matches typical artboard (not gray bars) */
    background: #ffffff;
    display: block;
}

/* Mobile: show full image (no short strip + cover crop that cuts off faces) */
.trustylend-hero-steps-visual-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 560px);
    object-fit: contain;
    object-position: center top;
}

#trustylend-hero-steps .trustylend-hero-steps-panel {
    min-width: 0;
    margin: 0;
    padding: 0 0 2rem;
    box-sizing: border-box;
}

/* trustylend-hero-steps-container = column: stacked step cards + CTA under step 3 */
#trustylend-hero-steps .trustylend-hero-steps-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

#trustylend-hero-steps .trustylend-hero-steps-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

#trustylend-hero-steps .trustylend-hero-steps-container .trustylend-post-steps-cta {
    align-self: center;
    margin-top: 0;
}

@media (min-width: 768px) {
    #trustylend-hero-steps.trustylend-hero-steps-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        align-items: start;
        align-content: start;
    }

    .trustylend-hero-steps-visual {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        width: auto;
        max-width: none;
        max-height: none;
        align-self: start;
        height: fit-content;
    }

    #trustylend-hero-steps .trustylend-hero-steps-panel {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        min-height: 0;
    }

    .trustylend-hero-steps-visual-img {
        width: 100%;
        min-height: 0;
        max-height: none;
        height: auto;
        object-fit: cover;
        object-position: center top;
    }
}

/* Hero step cards + CTA: layout via #trustylend-hero-steps .trustylend-hero-steps-cards + .trustylend-hero-steps-container flex above */

#trustylend-hero-steps .trustylend-step-icon--fa {
    width: 5.1rem;
    height: 5.1rem;
    border-radius: 1.38rem;
    font-size: 1.65rem;
}

/* One-third / two-thirds split (above trustylend-journey) */
.trustylend-offer-band {
    position: relative;
    overflow: visible;
    --trustylend-offer-band-bg: #4c6f65;
    background: #4c6f65;
    padding: 4rem clamp(1.25rem, 5vw, 2.75rem) 1.75rem;
}

/* Diagonal cream wedge at top: apex at top-left, runs full width, 5% (of width) tall at the right */
.trustylend-offer-band::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    padding-bottom: 5%;
    box-sizing: content-box;
    background: #becac8;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 0;
    pointer-events: none;
}

/* Reversed bottom wedge: 5% (of width) tall at the right, anchored to bottom edge */
.trustylend-offer-band::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 0;
    padding-bottom: 5%;
    box-sizing: content-box;
    background: #e6d6c5;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 0;
    pointer-events: none;
}

.trustylend-offer-band-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

.trustylend-offer-band-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2.5rem;
    align-items: start;
}

.trustylend-offer-band-visual {
    min-width: 0;
    padding: 0.6rem 0 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Two-frame mascot: 1s per image, 2s total loop */
.trustylend-offer-band-mascot {
    position: relative;
    width: 100%;
    max-width: min(100%, 430px);
    margin-inline: auto;
    overflow: visible;
    /* Headroom for floating bills above the figure */
    min-height: clamp(300px, 64vw, 500px);
}

/* Shimmer sweep over the mascot (medium, looping) */
.trustylend-offer-band-mascot-frame {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 128%;
    max-width: 420px;
    height: auto;
    max-height: min(100%, 620px);
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    user-select: none;
}

.trustylend-offer-band-mascot-frame--1 {
    animation: trustylend-offer-band-mascot-a 2s linear infinite;
}

.trustylend-offer-band-mascot-frame--2 {
    animation: trustylend-offer-band-mascot-b 2s linear infinite;
}

@keyframes trustylend-offer-band-mascot-a {
    0%,
    49.999% {
        opacity: 1;
    }
    50%,
    99.999% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes trustylend-offer-band-mascot-b {
    0%,
    49.999% {
        opacity: 0;
    }
    50%,
    99.999% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trustylend-offer-band-mascot-frame--1,
    .trustylend-offer-band-mascot-frame--2 {
        animation: none;
    }

    .trustylend-offer-band-mascot-frame--1 {
        opacity: 1;
    }

    .trustylend-offer-band-mascot-frame--2 {
        opacity: 0;
    }
}

.trustylend-offer-band-copy {
    min-width: 0;
    text-align: center;
}

.trustylend-offer-band-heading {
    margin: 0 0 0.75rem;
    font-family: var(--aim-font-headline);
    font-size: clamp(2.2rem, 5.2vw, 53px);
    font-weight: var(--aim-font-headline-weight);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #f1f1f1;
}

.trustylend-offer-band-lead {
    margin: 0;
    font-size: clamp(1.2rem, 1.74vw, 1.275rem);
    line-height: 1.6;
    color: #f1f1f1;
}

.trustylend-offer-band-cta {
    margin-top: 1.35rem;
    display: inline-block;
    padding: 0.8rem 1.75rem;
    font-family: var(--aim-font-headline);
    font-size: 1.53rem;
    font-weight: 600;
    line-height: 1.2;
    color: #4c6f65;
    background: #f1f1f1;
    border: 10px solid #ddbb6a;
    border-radius: var(--aim-radius-md);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.trustylend-offer-band-cta:hover {
    background: #ffffff;
    border-color: #ddbb6a;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.trustylend-offer-band-cta:active {
    transform: translateY(0);
}

.trustylend-offer-band-cta:focus-visible {
    outline: none;
    box-shadow:
        var(--aim-focus),
        0 4px 16px rgba(15, 23, 42, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .trustylend-offer-band-cta {
        transition: none;
    }

    .trustylend-offer-band-cta:hover {
        transform: none;
    }
}

@media (min-width: 768px) {
    .trustylend-offer-band {
        padding: 3rem clamp(1.75rem, 4.5vw, 3rem) 3.25rem;
    }

    .trustylend-offer-band-copy {
        text-align: left;
    }

    .trustylend-offer-band-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem 3rem;
        align-items: center;
    }

    /* Image column left, copy column right (mobile stack unchanged: copy first in DOM) */
    .trustylend-offer-band-visual {
        order: 1;
        align-self: stretch;
        padding: 0.35rem 0 0;
        justify-content: center;
        align-items: center;
    }

    .trustylend-offer-band-copy {
        order: 2;
    }

    .trustylend-offer-band-mascot {
        max-width: 100%;
        width: 100%;
        min-height: clamp(320px, 48vw, 600px);
    }

    .trustylend-offer-band-mascot-frame {
        width: 100%;
        max-width: 100%;
        max-height: min(88vh, 680px);
    }
}

/* How it works — three steps (image + cards) */
.trustylend-journey {
    background: #e6d6c5;
    color: #2b2a2a;
    padding: 3rem 1rem 3.5rem;
}

.trustylend-journey-inner {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

.trustylend-journey-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.trustylend-journey-title {
    margin: 0 0 0.75rem;
    font-family: var(--aim-font-headline);
    font-size: 53px;
    font-weight: var(--aim-font-headline-weight);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #2b2a2a;
}

.trustylend-journey-lead {
    margin: 0;
    font-size: clamp(1.2rem, 1.8vw, 1.35rem);
    line-height: 1.55;
    color: #2b2a2a;
}

.trustylend-journey-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.trustylend-journey-visual {
    border-radius: 1rem;
    overflow: hidden;
    background: #f1f5f9;
    min-width: 0;
}

.trustylend-journey-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.trustylend-journey-list-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.trustylend-journey-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.trustylend-journey-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    margin: 0;
    padding: 1.35rem 1.5rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 10px solid #ddba6a;
    box-sizing: border-box;
}

.trustylend-journey-step-check {
    flex-shrink: 0;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: clamp(2.65rem, 5.75vw, 3.65rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    color: #4c6f65;
    min-width: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-8deg);
    text-shadow: 0 2px 0 rgba(76, 111, 101, 0.18);
}

.trustylend-journey-step-body {
    flex: 1;
    min-width: 0;
}

.trustylend-journey-step-title {
    margin: 0 0 0.4rem;
    font-family: var(--aim-font-headline);
    font-size: 2rem;
    font-weight: var(--aim-font-headline-weight);
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #2b2a2a;
}

.trustylend-journey-step-text {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.55;
    color: #2b2a2a;
}

.trustylend-journey-cta {
    align-self: flex-start;
    margin: 0;
    padding: 0.8rem 1.75rem;
    font-family: var(--aim-font-headline);
    font-size: 1.53rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: #4c6f65;
    border: 0;
    border-radius: var(--aim-radius-md);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.trustylend-journey-cta:hover {
    background: #3d5d54;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.trustylend-journey-cta:active {
    transform: translateY(0);
}

.trustylend-journey-cta:focus-visible {
    outline: none;
    box-shadow:
        var(--aim-focus),
        0 4px 16px rgba(15, 23, 42, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .trustylend-journey-cta {
        transition: none;
    }

    .trustylend-journey-cta:hover {
        transform: none;
    }
}

/* Single-column steps layout: full-width button */
@media (max-width: 899.98px) {
    .trustylend-journey-steps {
        gap: 2.25rem;
    }

    .trustylend-journey-list-shell {
        gap: 1.75rem;
    }

    .trustylend-journey-cta {
        align-self: stretch;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (min-width: 900px) {
    .trustylend-journey {
        padding: 3.5rem 1rem 4rem;
    }

    .trustylend-journey-inner {
        /* Wider than single-column copy so three cards fit comfortably in one row */
        max-width: min(100%, 72rem);
    }

    .trustylend-journey-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: stretch;
    }

    .trustylend-journey-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: stretch;
    }

    .trustylend-journey-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100%;
        padding: 1.25rem 1rem;
    }

    .trustylend-journey-step-check {
        min-width: auto;
    }

    .trustylend-journey-step-title {
        font-size: clamp(1.35rem, 1.65vw, 1.75rem);
    }

    .trustylend-journey-step-text {
        font-size: 1.0625rem;
    }

    .trustylend-journey-list-shell {
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .trustylend-journey-cta {
        align-self: center;
    }
}

/* Disclaimer */
.trustylend-disclaimer .trustylend-disclaimer-inner {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

/* ============================================================
   Footer: footer-floating-card
   ============================================================ */
.footer-floating-card {
  --brand-color:       var(--color-primary, #4c6f65);
  --brand-color-hover: var(--color-accent, #45665d);
}
.footer-floating-card {
  background: #10131A;
  color: #E8EAF0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 24px;
  box-sizing: border-box;
}
.footer-floating-card *, .footer-floating-card *::before, .footer-floating-card *::after { box-sizing: border-box; }

.footer-floating-card .accent-card {
  margin: 0 16px;
  border-radius: 16px;
  padding: 22px 18px 20px;
  transform: translateY(-22px);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.footer-floating-card .accent-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.7;
}
.footer-floating-card .accent-headline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.footer-floating-card .accent-sub {
  font-size: 13px;
  margin: 0 0 16px;
  opacity: 0.82;
  line-height: 1.5;
}

.footer-floating-card .ca-row { display: grid; gap: 10px; }
.footer-floating-card .ca {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 38px 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.footer-floating-card .ca::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .15s ease;
}
.footer-floating-card .ca:hover, .footer-floating-card .ca:focus-visible { transform: translateY(-1px); outline: none; }
.footer-floating-card .ca:hover::after, .footer-floating-card .ca:focus-visible::after { right: 12px; }
.footer-floating-card .ca:active { transform: translateY(0); }
.footer-floating-card .ca .ca-sub { font-size: 12px; font-weight: 500; opacity: 0.9; letter-spacing: 0; }

.footer-floating-card .ca.primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.footer-floating-card .ca.primary:hover, .footer-floating-card .ca.primary:focus-visible { background: #f0fdfb; }

.footer-floating-card .ca.secondary {
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.footer-floating-card .ca.secondary:hover, .footer-floating-card .ca.secondary:focus-visible { background: rgba(255,255,255,.18); }

.footer-floating-card .links {
  padding: 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }

@media (min-width: 600px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

.footer-floating-card .col-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  color: #6B7280;
}
.footer-floating-card .col-link {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  text-decoration: none;
  color: #B7C0D4;
  transition: color .15s ease;
  cursor: pointer;
}
.footer-floating-card .col-link:hover, .footer-floating-card .col-link:focus-visible { color: #ffffff; outline: none; }

.footer-floating-card .meta {
  padding: 0 22px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #6B7589;
  text-align: center;
}
.footer-floating-card .meta-divider { height: 1px; margin: 0 0 16px; background: #1E232E; }
.footer-floating-card .meta-name { display: block; font-size: 13px; font-weight: 500; color: #C8CCD8; margin-bottom: 2px; }
.footer-floating-card .meta-copy { margin-top: 8px; display: block; }

@media (min-width: 768px) {
  .footer-floating-card { padding: 56px 0 28px; }
  .footer-floating-card .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 56px;
    align-items: start;
  }
  .footer-floating-card .accent-card {
    margin: 0;
    transform: none;
    border-radius: 18px;
    padding: 28px 28px 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
  }
  .footer-floating-card .accent-kicker { font-size: 11px; margin-bottom: 12px; }
  .footer-floating-card .accent-headline { font-size: 28px; margin-bottom: 8px; }
  .footer-floating-card .accent-sub { font-size: 14px; margin-bottom: 20px; }
  .footer-floating-card .ca { padding: 16px 42px 16px 18px; }
  .footer-floating-card .ca::after { right: 18px; width: 8px; height: 8px; }
  .footer-floating-card .ca:hover::after, .footer-floating-card .ca:focus-visible::after { right: 14px; }

  .footer-floating-card .links {
    padding: 0;
    gap: 0 40px;
    grid-template-columns: 1fr 1fr;
  }
  .footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }
  .footer-floating-card .col-title { font-size: 11px; margin-bottom: 14px; }
  .footer-floating-card .col-link { font-size: 14px; padding: 6px 0; }

  .footer-floating-card .meta {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 22px 40px 0;
    font-size: 13px;
    border-top: 1px solid #1E232E;
  }
  .footer-floating-card .meta-divider { display: none; }
  .footer-floating-card .meta-name { font-size: 14px; font-weight: 600; color: #E8EAF0; margin: 0; }
  .footer-floating-card .meta-address { font-size: 12px; opacity: 0.85; }
  .footer-floating-card .meta-copy { margin: 8px 0 0; font-size: 12px; display: block; }
}

@media (min-width: 1100px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

.trustylend-font-passion-regular {
    font-family: 'Passion One', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.trustylend-font-passion-bold {
    font-family: 'Passion One', sans-serif;
    font-weight: 700;
    font-style: normal;
}

.trustylend-font-passion-black {
    font-family: 'Passion One', sans-serif;
    font-weight: 900;
    font-style: normal;
}
