/* moneypiper.com — Avenue Link */

:root {
    --aim-teal-500: #14b8a6;
    --aim-teal-700: #0f766e;
    --aim-teal-600: #0d9488;
    --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(20, 184, 166, 0.22), 0 0 0 7px rgba(251, 113, 133, 0.18);

    /* Match .hero-headline */
    --aim-font-headline: 'Caprasimo', Georgia, serif;
}

.site-title::before {
    content: none;
    display: none;
}

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

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

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

.site-title .site-logo {
    display: block;
    height: 4.35rem;
    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 > .form-section {
        order: 1;
    }

    #main-content > #split-third {
        order: 2;
    }

    #main-content > #how-steps {
        order: 3;
    }

    #main-content > .additional-content {
        order: 4;
    }
}

@media (min-width: 768px) {
    #main-content > .form-section,
    #main-content > #split-third,
    #main-content > #how-steps,
    #main-content > .additional-content {
        order: unset;
    }
}


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

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

    .hero-headline .hero-headline-line1 {
        animation: none;
        background-position: 50% 50%;
    }
}

.form-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.form-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #ffffff;
    z-index: 1;
    overflow: hidden;
}

/* Hero section decorative art — behind .hero-split (PNG, transparent) */
.form-background::before {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(92vw, 820px);
    height: min(56vw, 580px);
    max-height: 95%;
    background-image: url("https://res.cloudinary.com/dbtcg826q/image/upload/f_auto,q_auto/v1776185524/common/sp-buckets/img/mpiper-cash.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    pointer-events: none;
}

.form-background::after {
    content: none;
}

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

.hero-split {
    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;
}

.hero-left {
    color: #111827;
    text-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* minmax(0,…) so the copy column can shrink beside the form in the 50/50 grid */
    min-width: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--aim-radius-lg);
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
}

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

@media (max-width: 1023.98px) {
    .hero-headline {
        /* ~20% larger than desktop clamp on tablet / mobile */
        font-size: clamp(2.64rem, 6.24vw, 5.4rem);
    }
}

.hero-headline-line1,
.hero-headline-line2,
.hero-headline-line3 {
    display: block;
}

/* “Need cash?” — Double Pay–style shifting gradient, anchored on brand blue */
.hero-headline .hero-headline-line1 {
    background-image: linear-gradient(
        122deg,
        #2a4d7a 0%,
        #325f9e 12%,
        #3f6cab 28%,
        #6b94c8 42%,
        #9ebbe0 50%,
        #3f6cab 58%,
        #355a8f 72%,
        #2d5080 88%,
        #243d5c 100%
    );
    background-size: 280% 280%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: mp-hero-headline-gradient-shift 4s ease-in-out infinite alternate;
}

@keyframes mp-hero-headline-gradient-shift {
    0% {
        background-position: 0% 35%;
    }

    100% {
        background-position: 100% 65%;
    }
}

.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;
}

.hero-subcopy {
    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;
}

.hero-subcopy-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 .hero-left; .hero-subcopy’s 34ch is only for the dollar line */
    max-width: none;
    width: 100%;
}

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

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

.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;
}

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

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

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

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

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

.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(20, 184, 166, 0.85));
    margin-left: -10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

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

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

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

.form-container {
    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) */
.hero-split .form-container#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 */
.hero-split .form-container#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);
}

.form-step {
    display: none;
}

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

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

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

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

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

.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: 'Inter', system-ui, sans-serif;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

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

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

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

.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(15, 118, 110, 0.28);
}

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

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

.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;
}

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

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

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

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

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

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

.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: 'Inter', 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(20, 184, 166, 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: 'Inter', system-ui, sans-serif;
    box-shadow: 0 16px 36px rgba(15, 118, 110, 0.22);
}

.btn-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 18px 44px rgba(20, 184, 166, 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(20, 184, 166, 0.24);
}

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

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

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

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

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

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

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

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

@media (min-width: 768px) {
    .form-section {
        padding: 2.5rem 0 0;
        overflow: visible;
    }

    .hero-split {
        /* 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;
        margin: 0 auto;
        justify-items: stretch;
        /* Vertically center copy with the form; row height follows the taller column (usually the iframe) */
        align-items: center;
    }

    .hero-left {
        padding: 1.75rem 1.5rem;
    }

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

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

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

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

    .form-background::before {
        right: auto;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        /* Wider on mobile; still contain so full art stays visible */
        width: min(100%, calc(100vw - 1.5rem));
        max-width: 100%;
        height: min(52vw, 18rem);
        max-height: min(42vh, 20rem);
        background-position: center top;
        background-size: contain;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

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

    .hero-subcopy {
        font-size: 1.1rem;
        line-height: 1.35;
    }
}

.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: 'Inter', 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;
}

.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);
}

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

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

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

.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) */
.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;
}

.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) */
.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;
}

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

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

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

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

/* Notdog layer colors (see doublepay.net .brand-promo-icon i) */
.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: 500;
    margin: 0 0 0.4rem;
    color: #0f766e;
    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) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ---------------------------
   Hero steps: section#hero-steps + left visual + div.steps-section (right column)
   --------------------------- */
#hero-steps.hero-steps-split {
    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;
}

.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) */
.hero-steps-visual-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 560px);
    object-fit: contain;
    object-position: center top;
}

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

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

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

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

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

    .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;
    }

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

    .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 #hero-steps .hero-steps-cards + .steps-container flex above */

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

/* One-third / two-thirds split (above how-steps) */
.split-third {
    position: relative;
    overflow: visible;
    background: linear-gradient(155deg, #4a78b9 0%, #3f6cab 45%, #355e92 100%);
    background-color: #3f6cab;
    padding: 2.75rem clamp(1.25rem, 5vw, 2.75rem) 3rem;
}

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

.split-third-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem 2.5rem;
    align-items: start;
}

.split-third-narrow {
    min-width: 0;
    padding: 0.5rem 0.75rem 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Two-frame mascot: 1s per image, 2s total loop */
.split-third-mascot {
    position: relative;
    width: 100%;
    max-width: min(100%, 280px);
    margin-inline: auto;
    overflow: visible;
    /* Headroom for floating bills above the figure */
    min-height: clamp(260px, 48vw, 400px);
}

.split-third-mascot-frame {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 340px;
    height: auto;
    max-height: min(115%, 440px);
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    user-select: none;
}

.split-third-mascot-frame--1 {
    animation: split-third-mascot-a 2s linear infinite;
}

.split-third-mascot-frame--2 {
    animation: split-third-mascot-b 2s linear infinite;
}

@keyframes split-third-mascot-a {
    0%,
    49.999% {
        opacity: 1;
    }
    50%,
    99.999% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes split-third-mascot-b {
    0%,
    49.999% {
        opacity: 0;
    }
    50%,
    99.999% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

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

    .split-third-mascot-frame--1 {
        opacity: 1;
    }

    .split-third-mascot-frame--2 {
        opacity: 0;
    }
}

.split-third-main {
    min-width: 0;
    text-align: center;
}

.split-third-title {
    margin: 0 0 0.75rem;
    font-family: var(--aim-font-headline);
    font-size: clamp(1.62rem, 3.36vw, 2.22rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.split-third-lead {
    margin: 0;
    font-size: clamp(1.2rem, 1.74vw, 1.275rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.split-third-cta {
    margin-top: 1.35rem;
    display: inline-block;
    padding: 0.8rem 1.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: #527bb3;
    background: color-mix(in srgb, #ffffff 10%, #3f6cab 90%);
    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;
}

.split-third-cta:hover {
    background: #496e9d;
    background: color-mix(in srgb, #ffffff 10%, #355e92 90%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.split-third-cta:active {
    transform: translateY(0);
}

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

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

    .split-third-cta:hover {
        transform: none;
    }
}

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

    .split-third-main {
        text-align: left;
    }

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

/* How it works — three steps (image + cards) */
.how-steps {
    background: #ffffff;
    padding: 3rem 1rem 3.5rem;
}

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

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

.how-steps-title {
    margin: 0 0 0.75rem;
    font-family: var(--aim-font-headline);
    font-size: clamp(1.8rem, 3.84vw, 2.4rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #1e3a5f;
}

.how-steps-lead {
    margin: 0;
    font-size: clamp(1.2rem, 1.8vw, 1.35rem);
    line-height: 1.55;
    color: #64748b;
}

.how-steps-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.how-steps-visual {
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    min-width: 0;
}

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

.how-steps-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

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

.how-steps-card {
    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;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-sizing: border-box;
}

.how-steps-num {
    flex-shrink: 0;
    font-family: var(--aim-font-headline);
    font-size: clamp(2.4rem, 4.8vw, 3.3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #3d7a45;
    min-width: 2.5rem;
}

.how-steps-card-body {
    flex: 1;
    min-width: 0;
}

.how-steps-card-title {
    margin: 0 0 0.4rem;
    font-family: var(--aim-font-headline);
    font-size: 1.275rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #1e3a5f;
}

.how-steps-card-text {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.55;
    color: #64748b;
}

.how-steps-apply {
    align-self: flex-start;
    margin: 0;
    padding: 0.8rem 1.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: #228a31;
    border: 2px solid #ffffff;
    border-radius: var(--aim-radius-md);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.how-steps-apply:hover {
    background: #1a6b24;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.how-steps-apply:active {
    transform: translateY(0);
}

.how-steps-apply:focus-visible {
    outline: none;
    box-shadow:
        var(--aim-focus),
        0 4px 16px rgba(15, 23, 42, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .how-steps-apply {
        transition: none;
    }

    .how-steps-apply:hover {
        transform: none;
    }
}

/* Single-column steps layout: full-width button */
@media (max-width: 899.98px) {
    .how-steps-apply {
        align-self: stretch;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

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

    .how-steps-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.5rem 3rem;
        align-items: stretch;
    }

    .how-steps-visual {
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .how-steps-img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        align-self: center;
    }

    .how-steps-list-wrap {
        height: 100%;
        justify-content: center;
    }
}

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

.site-footer .footer-content {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    text-align: center;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.1rem;
    margin-bottom: 1.25rem;
}

.site-footer .footer-info p {
    margin: 0.35rem 0;
}

.site-footer .copyright {
    margin: 0.75rem 0 0;
}

.site-footer .footer-links a {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer .footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

#footer-company,
#footer-site-name {
    font-style: normal;
}
