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

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

body {
    background: #0a0a0c url('https://res.cloudinary.com/dbtcg826q/image/upload/f_auto,q_auto/v1779468366/common/sp-buckets/img/Firefly_Photorealistic_modern_American_city_skyline_at_golden_hour_viewed_from_an_elevated_p_953820.jpg') center/cover fixed no-repeat;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(8, 8, 10, 0.65);
    pointer-events: none;
}

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

.site-header {
    box-shadow: none;
    background: rgba(8, 8, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing, 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.header-nav-link {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.60);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.header-nav-link:hover,
.header-nav-link:focus-visible {
    color: #ffffff;
    outline: none;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: #C9A84C;
    color: #0a0a0c;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.header-cta:hover,
.header-cta:focus-visible {
    filter: brightness(1.1);
    transform: translateY(-1px);
    outline: none;
}
.header-cta:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
}

.site-title {
    font-family: var(--aim-font-headline);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    line-height: 1.2;
}

.title-em {
    color: #C9A84C;
    font-style: italic;
    font-weight: 600;
}

/* 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: 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 > .trust-bar {
        order: 2;
    }

    #main-content > .feature-section {
        order: 3;
    }

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

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

@media (min-width: 768px) {
    #main-content > .form-section,
    #main-content > .trust-bar,
    #main-content > .feature-section,
    #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);
    }

}

.form-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none !important;
}

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

.form-background::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

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

/* Hero right column: dark panel with gold top accent */
.hero-split-form {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: rgba(8, 8, 12, 0.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 3px solid #C9A84C;
    padding-bottom: 1.5rem;
}

.form-panel-header {
    padding: 1.5rem 1.5rem 0;
}

.form-panel-kicker {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #C9A84C;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.form-panel-subtitle {
    font-family: 'Cormorant', serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.3rem;
    line-height: 1.1;
}

.form-panel-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.hero-split {
    position: relative;
    z-index: 2;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 1rem 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: transparent;
    border-radius: var(--aim-radius-lg);
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-kicker::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
}

.hero-headline {
    margin: 0 0 0.75rem 0;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.0;
    letter-spacing: -0.01em;
    font-weight: 600;
    font-family: var(--aim-font-headline);
}

@media (max-width: 1023.98px) {
    .hero-headline {
        font-size: clamp(2.64rem, 6.96vw, 5.64rem);
    }
}

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

.hero-headline .hero-headline-line1 {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.hero-headline-gold {
    display: block;
    color: #C9A84C;
    -webkit-text-fill-color: #C9A84C;
    font-style: italic;
    font-weight: 500;
}

.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: rgba(255, 255, 255, 0.85);
    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: rgba(255, 255, 255, 0.72);
    /* Full width of .hero-left; .hero-subcopy's 34ch is only for the dollar line */
    max-width: none;
    width: 100%;
}

.hero-stats {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-stat-value {
    display: block;
    font-family: var(--aim-font-headline);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #C9A84C, #f0d47a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.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(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: 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: transparent;
    border-radius: var(--aim-radius-lg);
    box-shadow: none;
    border: none;
    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: 'Outfit', 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(var(--color-primary-rgb), 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(var(--color-secondary-rgb), 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: var(--color-primary);
    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: 'Outfit', 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: 'Outfit', 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: 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: 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: 0 1rem 4.5rem;
        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-form {
        order: 1;
    }

    .hero-left {
        order: 2;
    }

    .hero-split {
        gap: 1.5rem;
        padding: 1.5rem 1rem 2rem;
    }

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

    .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, var(--aim-teal-700) 0%, var(--aim-teal-500) 100%);
    background-color: var(--aim-teal-500);
    color: #ffffff;
    border: none;
    border-radius: var(--aim-radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', system-ui, sans-serif;
    box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 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(var(--color-primary-rgb), 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(var(--color-primary-rgb), 0.42);
}

/* Feature section */
.feature-section {
    padding: 4rem 1.5rem;
    background: transparent;
}

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

.feature-section-title {
    font-family: var(--aim-font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.03em;
    margin: 0 0 3rem;
    line-height: 1.1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 20px;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.feature-card-title {
    font-family: var(--aim-font-headline);
    font-size: 1.5rem;
    font-weight: 600;
    color: #C9A84C;
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
}

.feature-card-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 767.98px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* 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(var(--color-primary-rgb), 0.08),
        0 22px 50px rgba(var(--color-primary-rgb), 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(var(--color-primary-rgb), 0.22);
}

.step-icon--fa.step-icon--1 {
    background: linear-gradient(168deg, var(--aim-teal-700) 0%, var(--aim-teal-500) 100%);
}

.step-icon--fa.step-icon--2 {
    background: linear-gradient(168deg, var(--aim-teal-500) 0%, var(--aim-teal-600) 100%);
}

.step-icon--fa.step-icon--3 {
    background: linear-gradient(145deg, var(--aim-teal-700) 0%, var(--aim-teal-500) 55%, var(--aim-teal-600) 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: 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) {
    .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, var(--aim-teal-700) 0%, var(--aim-teal-500) 45%, var(--aim-teal-600) 100%);
    background-color: var(--aim-teal-500);
    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: 'Outfit', system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: var(--aim-teal-500);
    background: color-mix(in srgb, #ffffff 10%, var(--aim-teal-500) 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: var(--aim-teal-600);
    background: color-mix(in srgb, #ffffff 10%, var(--aim-teal-600) 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 */
.how-steps {
    background: transparent;
    padding: 5rem 1.5rem 6rem;
}

.how-steps-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.how-steps-title {
    font-family: var(--aim-font-headline);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.01em;
    margin: 0 0 2.5rem;
    line-height: 1.1;
}

.hiw-rule {
    height: 1px;
    background: rgba(201, 168, 76, 0.30);
    margin-bottom: 3.5rem;
}

.hiw-list {
    list-style: none;
    margin: 0;
    padding: 3rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 20px;
}

.hiw-item {
    display: flex;
    flex-direction: column;
}

.hiw-num {
    font-family: var(--aim-font-headline);
    font-size: 3.5rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(201, 168, 76, 0.45);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hiw-item-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
    font-family: 'Outfit', system-ui, sans-serif;
}

.hiw-item-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.58);
}

.hiw-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.hiw-cta-wrap .header-cta {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hiw-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 4rem;
        padding: 3.5rem 3rem;
    }
}

/* Popup overrides */
.popup-content {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

/* Trust bar */
.trust-bar {
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.trust-label {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.trust-value {
  font-family: 'Cormorant', serif;
  font-size: 1.0625rem;
  font-weight: 500;
  font-style: italic;
  color: #C9A84C;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .trust-bar-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 1.25rem 3.5rem;
  }
}

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

/* ============================================================
   Footer — glass (luxury dark / gold) — three-panel grid
   Dark frosted base · gold vertical dividers · Cormorant CTAs
   ============================================================ */
.footer-glass {
  --fg-bg:        rgba(8, 8, 12, 0.94);
  --fg-hair:      rgba(255, 255, 255, 0.08);
  --fg-gold-rule: rgba(201, 168, 76, 0.22);
  --fg-ink:       #F5F1E8;
  --fg-ink-soft:  #D4CFC2;
  --fg-muted:     #9A9483;
  --fg-dim:       #7C7868;
  --fg-gold:      #C9A84C;
  --fg-gold-soft: rgba(201, 168, 76, 0.75);

  background: var(--fg-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--fg-ink);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  border-top: 1px solid var(--fg-hair);
  box-sizing: border-box;
}
.footer-glass *,
.footer-glass *::before,
.footer-glass *::after { box-sizing: border-box; }

.footer-glass .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 24px;
}

/* Three-panel grid */
.footer-glass .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--fg-gold-rule);
}

.footer-glass .fg-panel {
  padding: 36px 0;
  border-top: 1px solid var(--fg-hair);
}
.footer-glass .fg-panel:first-child {
  border-top: none;
}

/* Panel 1 — Manage data */
.footer-glass .fg-kicker {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-glass .fg-headline {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg-ink);
  margin: 0 0 8px;
}
.footer-glass .fg-headline-em {
  color: var(--fg-gold);
  font-style: italic;
}

.footer-glass .fg-sub {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 4px;
  max-width: 300px;
}

/* CTAs */
.footer-glass .ca {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0 16px;
  border: none;
  border-top: 1px solid var(--fg-hair);
  background: transparent;
  color: var(--fg-ink);
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s ease;
}
.footer-glass .ca:last-of-type { border-bottom: 1px solid var(--fg-hair); }

.footer-glass .ca .ca-text { display: block; min-width: 0; }
.footer-glass .ca .ca-label {
  display: block;
  font-family: 'Cormorant', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg-ink);
  transition: color .15s ease;
}
.footer-glass .ca .ca-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--fg-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
  transition: color .15s ease;
}
.footer-glass .ca::after {
  content: "→";
  font-size: 20px;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: color .15s ease, transform .2s ease;
}
.footer-glass .ca:hover .ca-label,
.footer-glass .ca:focus-visible .ca-label { color: var(--fg-gold); }
.footer-glass .ca:hover .ca-sub,
.footer-glass .ca:focus-visible .ca-sub { color: var(--fg-gold-soft); }
.footer-glass .ca:hover::after,
.footer-glass .ca:focus-visible::after {
  color: var(--fg-gold);
  transform: translateX(4px);
}
.footer-glass .ca:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35); }

/* Panel 2 & 3 — nav columns */
.footer-glass .links-col {
  display: flex;
  flex-direction: column;
}
.footer-glass .links-col + .links-col {
  margin-top: 24px;
}

.footer-glass .col-title {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin: 0 0 10px;
}

.footer-glass .col-link {
  display: inline-block;
  padding: 5px 0;
  color: var(--fg-ink-soft);
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease;
}
.footer-glass .col-link:hover,
.footer-glass .col-link:focus-visible {
  color: var(--fg-gold);
  outline: none;
}

/* Legal bar */
.footer-glass .legal {
  padding-top: 18px;
  border-top: 1px solid var(--fg-hair);
  font-size: 11.5px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.footer-glass .legal-copy { color: var(--fg-dim); }
.footer-glass .legal-addr { color: var(--fg-muted); display: block; margin-bottom: 2px; }

/* Desktop: three equal columns with gold vertical separators */
@media (min-width: 768px) {
  .footer-glass .footer-inner {
    padding: 0 56px 28px;
  }

  .footer-glass .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-glass .fg-panel {
    border-top: none;
    border-left: 1px solid var(--fg-gold-rule);
    padding: 44px 36px 40px;
  }
  .footer-glass .fg-panel:first-child {
    border-left: none;
    padding-left: 0;
  }
  .footer-glass .fg-panel:last-child {
    padding-right: 0;
  }

  .footer-glass .fg-headline { font-size: 30px; }
  .footer-glass .ca .ca-label { font-size: 24px; }
  .footer-glass .ca::after { font-size: 22px; }
  .footer-glass .ca:last-of-type { border-bottom: none; }

  .footer-glass .links-col + .links-col { margin-top: 28px; }

  .footer-glass .col-title {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--fg-gold);
    font-weight: 700;
    margin-bottom: 14px;
  }
  .footer-glass .col-link {
    padding: 6px 0;
    font-size: 14px;
  }

  .footer-glass .legal {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }
  .footer-glass .legal-addr {
    display: inline;
    margin-bottom: 0;
    margin-right: 6px;
  }
}
