﻿/* hearthfunding.com — Avenue Link */

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

    --aim-bubble-pink: #D98A3D;
    --aim-bubble-coral: #D98A3D;
    --aim-bubble-sun: #F5C98A;

    --aim-radius-lg: 18px;
    --aim-radius-md: 14px;
    --aim-shadow-soft: 0 14px 46px rgba(15, 23, 42, 0.14);
    --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(var(--color-promo-rgb), 0.18);

    /* Steps icons: amber accent + terracotta brand */
    --aim-step-purple-top: var(--color-promo-light);
    --aim-step-purple-mid: var(--color-promo);
    --aim-step-purple-deep: var(--color-promo-dark);
    --aim-step-purple-light: #E3A25E;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    /* Avoid overflow-x: hidden here — it clips the left edge when any child is
       slightly wider than the viewport (e.g. ~1200px layouts in ~1204px DevTools). */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-feature-icon,
    .brand-promo-icon,
    .step-icon {
        transition: none;
    }

    .hero-feature-icon:hover {
        transform: none;
        box-shadow: none;
    }

    .brand-promo-icon:hover {
        transform: none;
        filter: none;
    }

    .brand-promo-icon svg {
        animation: none;
    }

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

    .hf-brand-mark {
        animation: none;
        background-position: 50% 50%;
    }
}

.disclaimer,
.disclaimer * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Match hero / brand-promo horizontal inset on large screens (overrides index inline padding). */
.disclaimer {
    padding: 2.25rem clamp(1.25rem, 5vw, 2rem);
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    box-sizing: border-box;
}

.disclaimer-content {
    max-width: var(--max-width, 1200px);
    width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-content p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

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

.site-header {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
    /* Extra horizontal inset so the logo never kisses the viewport edge (see index inline padding: vertical only). */
    padding-inline: clamp(1rem, 2.5vw, 1.5rem);
}

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

.site-title {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-weight: 700;
    color: var(--color-title);
    letter-spacing: 0.01em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.site-title-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.site-title-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 6px;
}

/* Header logo — same shape as thebigpanda.com (logo-icon + #site-title-text; no site-title-logo / site-logo on img) */
.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: 2.7rem;
    width: auto;
    max-width: min(336px, 100%);
    object-fit: contain;
    object-position: left center;
}

/* Brand promo band (matches form button purple) */
.brand-promo {
    background:
        radial-gradient(ellipse 100% 120% at 50% -20%, rgba(255, 255, 255, 0.1) 0%, transparent 55%),
        linear-gradient(135deg, var(--color-promo-light) 0%, var(--color-promo) 55%, var(--color-promo-dark) 100%);
    color: #ffffff;
    padding: 2.25rem 1rem;
    text-align: center;
}

.brand-promo-inner {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
}

.brand-promo-icon {
    flex-shrink: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.75rem, min(14vw, 18vh), 7rem);
    line-height: 1;
    transition:
        transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.26s ease;
}

.brand-promo-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.22));
}

/* Notdog Duo: primary = light; secondary / highlight = softer tint of section purple (#56187A) */
.brand-promo-icon svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    transform-origin: 50% 60%;
    /* ~0.85s shake, then 3s rest before repeat (3.85s total) */
    animation: brand-promo-icon-shake 3.85s linear infinite;
}

@keyframes brand-promo-icon-shake {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    3% {
        transform: translate3d(-4px, 1px, 0) rotate(-5deg);
    }

    7% {
        transform: translate3d(4px, -1px, 0) rotate(5deg);
    }

    10% {
        transform: translate3d(-3px, 0, 0) rotate(-4deg);
    }

    13% {
        transform: translate3d(3px, 1px, 0) rotate(4deg);
    }

    16.5% {
        transform: translate3d(-2px, 0, 0) rotate(-2deg);
    }

    20% {
        transform: translate3d(2px, 0, 0) rotate(2deg);
    }

    22%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

.brand-promo-copy {
    flex: 0 1 auto;
    max-width: 52ch;
    min-width: 0;
    text-align: left;
}

.brand-promo-title {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    margin: 0 0 0.65rem 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #ffffff;
}

.brand-promo-text {
    margin: 0;
    max-width: none;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .brand-promo-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brand-promo-copy {
        text-align: center;
    }
}

/* Form hero background */
.form-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-split {
    position: relative;
    z-index: 2;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 2.25rem 1rem 2.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    justify-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.hero-left {
    color: #333333;
    text-shadow: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.hero-headline {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    margin: 0 0 0.75rem 0;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-headline-kicker {
    display: block;
    font-size: clamp(0.6875rem, 1.35vw, 0.8125rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aim-muted);
    margin: 0 0 0.5rem 0;
}

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

.hero-highlight {
    color: #333333;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.hf-brand-mark {
    display: inline-block;
    background-image: linear-gradient(
        122deg,
        #4a2308 0%,
        #7a3b12 14%,
        #b5651d 32%,
        #f5c98a 48%,
        #d98a3d 58%,
        #b5651d 72%,
        #7a3b12 88%,
        #4a2308 100%
    );
    background-size: 280% 280%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: hero-brand-gradient-shift 4s ease-in-out infinite alternate;
}

/* Lighter gradient on the promo band so "Hearth Funding" stays readable */
.brand-promo .hf-brand-mark {
    background-image: linear-gradient(
        122deg,
        #fff7ec 0%,
        #ffe8c2 14%,
        #ffffff 28%,
        #ffd9a0 46%,
        #ffe9c4 58%,
        #fff3df 72%,
        #fdf0e0 88%,
        #ffffff 100%
    );
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.55));
}

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

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

.hero-subcopy {
    margin: 0 0 1.25rem 0;
    max-width: 54ch;
    color: #333333;
    font-size: 1.02rem;
    line-height: 1.55;
}

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

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

.hero-feature-icon {
    width: 2.46rem;
    height: 2.46rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-promo);
    box-shadow: none;
    color: #ffffff;
    font-size: 1.2rem;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease;
}

.hero-feature-icon:hover {
    transform: scale(1.14);
    box-shadow: 0 10px 24px rgba(var(--color-promo-rgb), 0.42);
}

.hero-feature-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.hero-feature-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333333;
}

@media (max-width: 1279.98px) {
    .hero-headline {
        font-size: 36px;
    }

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

    .hero-subcopy {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-feature {
        justify-content: center;
    }
}

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

.hero-trust-line {
    margin: 0;
    color: #333333;
    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(var(--color-promo-rgb), 0.9), rgba(var(--color-primary-rgb), 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: #333333;
    font-size: 0.95rem;
}

.form-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: linear-gradient(160deg, #FFF6EA 0%, #FBE0B4 55%, #EFB479 100%);
    z-index: 1;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .form-background {
        min-height: 360px;
    }
}

/* Hearth glow: soft warm halos, evoking firelight rather than a flat photo wash */
.form-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(560px 480px at 8% 12%, rgba(255, 255, 255, 0.65) 0%, transparent 70%),
        radial-gradient(620px 520px at 92% 28%, rgba(255, 159, 64, 0.32) 0%, transparent 70%),
        radial-gradient(420px 420px at 65% 95%, rgba(107, 63, 42, 0.2) 0%, transparent 70%);
}

.form-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.12);
}

/* Embers: small glowing motes drifting upward, a literal "hearth" cue */
.ember {
    position: absolute;
    z-index: 3;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.5;
    pointer-events: none;
    animation: ember-rise 4.5s ease-in-out infinite;
}

.ember-1 {
    left: 16%;
    top: 70%;
    width: 10px;
    height: 10px;
    background: #FF9F40;
    box-shadow: 0 0 10px 2px rgba(255, 159, 64, 0.55);
    animation-delay: 0s;
}

.ember-2 {
    left: 82%;
    top: 22%;
    width: 7px;
    height: 7px;
    background: #FFC178;
    box-shadow: 0 0 8px 2px rgba(255, 193, 120, 0.5);
    animation-delay: 1.1s;
}

.ember-3 {
    left: 58%;
    top: 85%;
    width: 6px;
    height: 6px;
    background: #FF8A3D;
    box-shadow: 0 0 8px 2px rgba(255, 138, 61, 0.5);
    animation-delay: 2.2s;
}

.ember-4 {
    left: 35%;
    top: 15%;
    width: 5px;
    height: 5px;
    background: #FFD9A0;
    box-shadow: 0 0 6px 2px rgba(255, 217, 160, 0.5);
    animation-delay: 3.1s;
}

@keyframes ember-rise {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-22px) scale(1.2);
        opacity: 0.75;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ember {
        animation: none;
        opacity: 0.4;
    }
}

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

/* Dummy multi-step form card (TESTING only; see dummy form example site) */
.hero-split .form-container#loan-form-container {
    width: min(100%, 600px);
    max-width: min(100%, 600px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: #ffffff;
    border-radius: var(--aim-radius-lg);
    box-shadow: var(--aim-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-sizing: border-box;
    overflow: hidden;
}

/* ─── Dummy Form Container ───────────────────────────────────── */
#dummy-form-container {
    padding: 1.75rem 1.75rem 2rem;
}

.form-step {
    display: none;
}

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

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

.form-step-title {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-title);
    text-align: center;
    margin: 0 0 1.25rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ─── Loan Amount Grid ───────────────────────────────────────── */
.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.amount-btn {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    background: var(--color-surface, #FBF3E7);
    border: 1.5px solid var(--color-border, #F0DAB8);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    line-height: 1.2;
}

.amount-btn:hover {
    background: #F5E4C8;
    border-color: var(--color-primary);
    color: var(--color-secondary);
}

.amount-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* ─── SSL Badge ──────────────────────────────────────────────── */
.ssl-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 0.35rem;
}

.ssl-text-bold {
    font-weight: 700;
    color: var(--color-title);
}

.ssl-icon {
    color: #16a34a;
}

.ssl-description {
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.advertising-disclosure {
    text-align: center;
    font-size: 0.72rem;
    margin: 0;
}

.advertising-disclosure a {
    color: var(--color-secondary);
    text-decoration: none;
}

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

/* ─── Success Message ────────────────────────────────────────── */
.success-content {
    text-align: center;
    padding: 1rem 0;
}

.success-content .form-step-title {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.success-content p {
    font-size: 0.9375rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.selected-amount-display {
    font-size: 0.875rem;
    color: #334155;
    margin-top: 0.75rem;
}

@media (max-width: 600px) {
    #dummy-form-container {
        padding: 1.4rem 1.25rem 1.75rem;
    }

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

    .amount-grid {
        gap: 0.4rem;
    }

    .amount-btn {
        font-size: 0.8rem;
        padding: 0.55rem 0.5rem;
    }
}

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

    .hero-split {
        padding: 2.5rem 1rem 3.25rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        max-width: 58ch;
        gap: 0.9rem;
    }
}

@media (min-width: 1280px) {
    /* Side-by-side: wider row gives the form column more room */
    .hero-split {
        max-width: min(1400px, 100%);
        grid-template-columns: 1fr 1.12fr;
        gap: 2.25rem;
        align-items: center;
        justify-items: stretch;
    }

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

    .hero-subcopy {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-features {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-feature {
        justify-content: flex-start;
    }

    .form-container {
        min-width: 0;
        /* Let the shell align to content width; outer hero-split padding handles inset */
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1279.98px) {
    .form-section {
        padding: 0;
    }

    /* Tablet + mobile: restore horizontal inset (0 was flush to edges) and add breathing room */
    .hero-split {
        padding: 3.25rem clamp(1.25rem, 5vw, 2rem) 3.75rem;
        gap: 2.5rem;
    }

    .hero-headline {
        margin-bottom: 1rem;
    }

    .hero-subcopy {
        margin-bottom: 1.5rem;
    }

    .hero-features {
        gap: 1rem;
        margin-bottom: 1.75rem;
    }

    .form-container {
        padding: 1.5rem clamp(1.25rem, 5vw, 2rem);
    }

    /* Purple promo band: match hero / form horizontal inset */
    .brand-promo {
        padding: 3.25rem clamp(1.25rem, 5vw, 2rem) 3.75rem;
    }

    .disclaimer {
        padding: 3.25rem clamp(1.25rem, 5vw, 2rem) 3.75rem;
    }


}

@media (max-width: 767.98px) {
    /* Form above the fold: trim the hero copy so the form sits higher on the page */
    .hero-split {
        padding-top: 1.5rem;
        padding-bottom: 1.75rem;
        gap: 1rem;
    }

    .brand-promo {
        padding-top: 3.75rem;
        padding-bottom: 4rem;
    }

    .disclaimer {
        padding-top: 3.75rem;
        padding-bottom: 4rem;
    }

    .hero-headline-kicker {
        margin-bottom: 0.35rem;
    }

    .hero-headline {
        font-size: 1.6rem;
        margin-bottom: 0;
        line-height: 1.15;
    }

    .hero-subcopy,
    .hero-features {
        display: none;
    }
}

/* Steps (How it works) */
.steps-section {
    position: relative;
    background: linear-gradient(180deg, #FFFBF3 0%, #FCEEDA 100%);
    overflow: hidden;
}

.steps-section::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(217, 138, 61, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.steps-section::after {
    content: none;
}

.steps-layout {
    position: relative;
    z-index: 1;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
}

.steps-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.steps-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 0.6rem;
}

.steps-main-title {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    color: var(--color-title);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.steps-subtitle {
    color: #7A6656;
    font-size: 1.02rem;
    margin: 0;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.steps-flow {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

.steps-connector {
    display: none;
    position: absolute;
    left: 12%;
    right: 12%;
    top: 2.775rem;
    height: 2px;
    background-image: repeating-linear-gradient(to right, rgba(194, 112, 61, 0.5) 0, rgba(194, 112, 61, 0.5) 7px, transparent 7px, transparent 15px);
    z-index: 0;
}

.steps-connector::before,
.steps-connector::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--color-promo);
    box-shadow: 0 0 10px 2px rgba(var(--color-promo-rgb), 0.55);
}

.steps-connector::before {
    left: 33.33%;
}

.steps-connector::after {
    left: 66.66%;
}

@media (min-width: 768px) {
    .steps-connector {
        display: block;
    }
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.75rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: start;
    }
}

.step {
    text-align: center;
    margin: 0;
    position: relative;
}

.step-head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -2.5rem;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    border: 4px solid #FFFBF3;
    box-shadow: 0 14px 28px rgba(107, 63, 42, 0.28);
    transition:
        transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.24s ease;
}

.step-icon:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 20px 38px rgba(107, 63, 42, 0.34);
}

.step-icon--1 {
    background: linear-gradient(180deg, var(--aim-step-purple-light) 0%, var(--aim-step-purple-mid) 45%, var(--aim-step-purple-deep) 100%);
}

.step-icon--2 {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 45%, var(--color-secondary) 100%);
}

.step-icon--3 {
    background: linear-gradient(145deg, var(--aim-step-purple-top) 0%, var(--aim-step-purple-mid) 35%, var(--color-accent) 72%, var(--color-secondary) 100%);
}

.step-icon svg {
    width: 1em;
    height: 1em;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

.step-number {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-secondary);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
    line-height: 1;
}

/* Hero: larger icon tiles; glyph size (.step-icon font-size) unchanged */
#hero-steps .step-icon {
    width: 5.25rem;
    height: 5.25rem;
}

@media (min-width: 768px) {
    #hero-steps .steps-connector {
        top: 3.2rem;
    }
}

.step-card {
    background: #ffffff;
    border-radius: 1.5rem 1.5rem 1rem 1rem;
    padding: 3.25rem 1.75rem 1.6rem;
    box-shadow:
        0 2px 4px rgba(107, 63, 42, 0.04),
        0 18px 40px rgba(107, 63, 42, 0.1);
    border: 1px solid rgba(194, 112, 61, 0.14);
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 1279.98px) {
    .step-card {
        max-width: none;
    }
}

.step-title {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-secondary);
}

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

.steps-cta {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.steps-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 2rem;
    border-radius: var(--aim-radius-md);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    border: 2px solid transparent;
    background-image:
        linear-gradient(135deg, var(--color-promo-light) 0%, var(--color-promo) 55%, var(--color-promo-dark) 100%),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 55%, var(--color-secondary) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 36px rgba(var(--color-promo-rgb), 0.3);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.steps-cta-arrow {
    width: 1.1em;
    height: 1.1em;
    transition: transform 160ms ease;
}

.steps-cta-btn:hover {
    filter: brightness(1.04) saturate(1.05);
    box-shadow: 0 18px 44px rgba(var(--color-promo-rgb), 0.4);
    transform: translateY(-1px);
}

.steps-cta-btn:hover .steps-cta-arrow {
    transform: translateX(3px);
}

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

.steps-cta-btn:focus-visible {
    outline: none;
    box-shadow: var(--aim-focus), 0 18px 44px rgba(var(--color-promo-rgb), 0.3);
}

.steps-cta-note {
    margin: 0;
    font-size: 0.8125rem;
    color: #8A7862;
    text-align: center;
}

#loan-form-container {
    scroll-margin-top: 5rem;
    width: 100%;
    box-sizing: border-box;
}

/* ---------------------------
   Hero steps section shell
   --------------------------- */
#hero-steps {
    max-width: none;
    margin: 0 auto;
    padding: 5rem 1rem 3.5rem;
}

@media (max-width: 1279.98px) {
    #hero-steps {
        padding: 5rem 1.75rem 3.5rem;
    }
}

#hero-steps .steps-layout {
    width: 100%;
}

/* Shared form controls (e.g. unsubscribe-form.html popup) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-title);
    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(--color-primary);
    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(--color-primary);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 6px;
    box-sizing: border-box;
    background-image:
        linear-gradient(135deg, var(--color-promo-light) 0%, var(--color-promo) 55%, var(--color-promo-dark) 100%),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 55%, var(--color-secondary) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    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(var(--color-promo-rgb), 0.22);
}

.btn-submit:hover {
    filter: brightness(1.03) saturate(1.05);
    box-shadow: 0 18px 44px rgba(var(--color-promo-rgb), 0.38);
    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-promo-rgb), 0.3);
}

/* ============================================================
   Footer: footer-stacked
   ============================================================ */
.footer-stacked {
  --brand-color:       var(--color-primary, #C2703D);
  --brand-color-hover: var(--color-secondary, #6B3F2A);
  --brand-color-ring:  rgba(194, 112, 61, .35);

  --fc2-bg:        #FAFAF7;
  --fc2-ink:       #1A1A1A;
  --fc2-ink-soft:  #333333;
  --fc2-muted:     #666666;
  --fc2-dim:       #888888;
  --fc2-rule:      #ECECE6;

  background: var(--fc2-bg);
  color: var(--fc2-ink);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  border-top: 1px solid var(--fc2-rule);
  box-sizing: border-box;
}
.footer-stacked *, .footer-stacked *::before, .footer-stacked *::after { box-sizing: border-box; }

.footer-stacked .footer-inner { padding: 28px 22px 22px; }

.footer-stacked .band { padding-bottom: 36px; }
.footer-stacked .kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fc2-dim);
  font-weight: 600;
  margin-bottom: 8px;
}
.footer-stacked .band-heading {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--fc2-ink);
}
.footer-stacked .band-sub {
  font-size: 13.5px;
  color: var(--fc2-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.footer-stacked .band-actions { display: flex; flex-direction: column; gap: 8px; }

.footer-stacked .ca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--brand-color);
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
  text-align: left;
}
.footer-stacked .ca .ca-text { display: block; min-width: 0; }
.footer-stacked .ca .ca-label { display: block; }
.footer-stacked .ca .ca-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}
.footer-stacked .ca::after {
  content: "→";
  font-size: 16px;
  opacity: 0.85;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.footer-stacked .ca:hover, .footer-stacked .ca:focus-visible {
  background: var(--brand-color-hover);
  outline: none;
}
.footer-stacked .ca:hover::after, .footer-stacked .ca:focus-visible::after { transform: translateX(2px); }
.footer-stacked .ca:focus-visible { box-shadow: 0 0 0 3px var(--brand-color-ring); }
.footer-stacked .ca:active { transform: translateY(1px); }

.footer-stacked .links { display: flex; flex-direction: column; }
.footer-stacked .links-brand { display: none; }
.footer-stacked .links-col { display: flex; flex-direction: column; }

.footer-stacked .col-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc2-dim);
  font-weight: 500;
  margin: 25px 0 0px;
}
.footer-stacked .links-col:first-of-type .col-title { margin-top: 0; }

.footer-stacked .col-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--fc2-rule);
  color: var(--fc2-ink-soft);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease;
  cursor: pointer;
}
.footer-stacked .col-link::after {
  content: "›";
  font-size: 14px;
  color: #BBBBBB;
  transition: color .15s ease, transform .15s ease;
}
.footer-stacked .col-link:hover, .footer-stacked .col-link:focus-visible {
  color: var(--brand-color);
  outline: none;
}
.footer-stacked .col-link:hover::after, .footer-stacked .col-link:focus-visible::after {
  color: var(--brand-color);
  transform: translateX(2px);
}

.footer-stacked .legal {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--fc2-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fc2-dim);
  text-align: center;
}
.footer-stacked .legal-copy { line-height: 1.5; }
.footer-stacked .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-stacked .legal-links a {
  color: var(--fc2-dim);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-stacked .legal-links a:hover, .footer-stacked .legal-links a:focus-visible {
  color: var(--brand-color);
  outline: none;
}

@media (min-width: 768px) {
  .footer-stacked .footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 56px; }

  .footer-stacked .band {
    display: grid;
    grid-template-columns: 1fr minmax(420px, 520px);
    gap: 48px;
    align-items: center;
    padding: 44px 0 40px;
    border-bottom: 1px solid var(--fc2-rule);
  }
  .footer-stacked .band-heading { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
  .footer-stacked .band-sub { font-size: 14px; max-width: 480px; margin-bottom: 0; }
  .footer-stacked .band-actions { gap: 10px; }
  .footer-stacked .ca { padding: 16px 20px; font-size: 15px; }
  .footer-stacked .ca .ca-sub { font-size: 12px; }
  .footer-stacked .ca::after { font-size: 18px; }

  .footer-stacked .links {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
    padding: 44px 0 36px;
  }
  .footer-stacked .links-brand { display: block; }
  .footer-stacked .brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--fc2-ink);
    margin-bottom: 10px;
  }
  .footer-stacked .brand-address {
    font-size: 13px;
    color: var(--fc2-muted);
    line-height: 1.55;
    max-width: 260px;
    margin: 0;
  }

  .footer-stacked .col-title { font-size: 11px; letter-spacing: 0.16em; font-weight: 600; margin: 0 0 16px; }
  .footer-stacked .col-link { padding: 6px 0; font-size: 14px; border-bottom: none; }
  .footer-stacked .col-link::after { content: none; }

  .footer-stacked .legal {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 0 28px;
    margin-top: 0;
  }
  .footer-stacked .legal-links { gap: 22px; }
}
