/* =========================================================
   MYFUNADS — SHARED FOOTER
   Editorial dark footer: closing CTA, brand + grouped
   navigation, a full-width wordmark and a bottom bar.
   Markup: components/footer.html · Behaviour: js/footer.js
   Normal document flow — no fixed or reveal effects.
========================================================= */

.mf-footer {
    --ft-orange: #f47b20;
    --ft-coral: #ff6b4f;
    --ft-text: rgba(255, 255, 255, .88);
    --ft-muted: rgba(255, 255, 255, .62);
    --ft-faint: rgba(255, 255, 255, .45);
    --ft-line: rgba(255, 255, 255, .1);
    --ft-ease: cubic-bezier(.16, 1, .3, 1);

    position: relative;
    overflow: hidden;
    margin-top: clamp(56px, 7vw, 104px);
    border-radius: 40px 40px 0 0;
    color: var(--ft-text);
    background:
        radial-gradient(circle at 88% 0%, rgba(244, 123, 32, .22), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(255, 107, 79, .12), transparent 38%),
        #0c0a0a;
    font-family: inherit;
    line-height: 1.5;
}

/* fine dot texture, fading out toward the bottom */
.mf-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.mf-footer-inner {
    position: relative;
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) 0 28px;
}

.mf-footer a {
    color: inherit;
    text-decoration: none;
}

.mf-footer a:focus-visible,
.mf-footer button:focus-visible,
.mf-footer input:focus-visible {
    outline: 2px solid var(--ft-orange);
    outline-offset: 3px;
}

.mf-footer-label,
.mf-footer-kicker {
    display: block;
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ft-faint);
}

.mf-footer-kicker {
    color: var(--ft-orange);
}


/* =====================================================
   1. CLOSING CTA
===================================================== */

.mf-footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto;
    gap: 32px 56px;
    align-items: end;
    padding-bottom: clamp(44px, 6vw, 72px);
    border-bottom: 1px solid var(--ft-line);
}

.mf-footer-cta h2 {
    margin: 0;
    font-size: clamp(38px, 5.6vw, 84px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 700;
    color: #fff;
}

/* gradient word; padding + clone keep the last glyph unclipped */
.mf-footer-cta h2 span {
    padding: .12em .1em .08em 0;
    margin-right: -.1em;
    background: linear-gradient(100deg, var(--ft-orange), var(--ft-coral));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.mf-footer-cta p {
    max-width: 520px;
    margin: 22px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ft-muted);
}

.mf-footer-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.mf-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 58px;
    padding: 0 12px 0 24px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .35s var(--ft-ease), background .3s ease, border-color .3s ease, color .3s ease, scale .15s ease;
}

.mf-footer-btn b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 15px;
    transition: transform .35s var(--ft-ease), background .3s ease;
}

.mf-footer-btn:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: #fff;
    color: #111;
}

.mf-footer-btn:hover b {
    transform: rotate(45deg);
    background: rgba(17, 17, 17, .08);
}

.mf-footer-btn--primary {
    border-color: var(--ft-orange);
    background: var(--ft-orange);
}

.mf-footer-btn--primary b {
    background: rgba(255, 255, 255, .22);
}

.mf-footer-btn:active {
    scale: .97;
}


/* =====================================================
   2. BRAND + NAVIGATION
===================================================== */

.mf-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    gap: 48px 72px;
    padding: clamp(44px, 6vw, 72px) 0;
}

.mf-footer-logo {
    display: inline-block;
    padding: 4px 0;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: 1;
}

.mf-footer-logo span {
    color: var(--ft-orange);
}

.mf-footer-brand > p {
    max-width: 320px;
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ft-muted);
}

/* newsletter */
.mf-footer-form {
    max-width: 380px;
    margin-top: 34px;
}

.mf-footer-form .mf-footer-label {
    margin-bottom: 12px;
}

.mf-footer-form-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    transition: border-color .3s ease, background .3s ease;
}

.mf-footer-form-row:focus-within {
    border-color: rgba(244, 123, 32, .7);
    background: rgba(255, 255, 255, .08);
}

.mf-footer-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 15px;
}

.mf-footer-form input::placeholder {
    color: var(--ft-faint);
}

.mf-footer-form button {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ft-orange);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: transform .3s var(--ft-ease), background .3s ease;
}

.mf-footer-form button:hover {
    transform: translateX(3px);
}

/* no endpoint connected yet → clearly unavailable */
.mf-footer-form.is-unavailable .mf-footer-form-row {
    border-style: dashed;
    background: transparent;
}

.mf-footer-form.is-unavailable input,
.mf-footer-form.is-unavailable button {
    cursor: not-allowed;
}

.mf-footer-form.is-unavailable button {
    background: rgba(255, 255, 255, .12);
    color: var(--ft-faint);
}

.mf-footer-form.is-unavailable button:hover {
    transform: none;
}

.mf-footer-form-note {
    min-height: 1.5em;
    margin: 10px 0 0 4px;
    font-size: 13px;
    color: var(--ft-muted);
}

.mf-footer-form-note.is-error {
    color: #ffb08a;
}

/* navigation groups */
.mf-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.mf-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.mf-footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    font-size: 15px;
    color: var(--ft-text);
    overflow-wrap: anywhere;
    transition: color .25s ease, transform .3s var(--ft-ease);
}

.mf-footer-col a:hover {
    color: var(--ft-orange);
    transform: translateX(3px);
}

.mf-footer-col--contact li {
    display: flex;
    flex-direction: column;
}

.mf-footer-col--contact li + li {
    margin-top: 8px;
}

.mf-footer-col--contact span {
    font-size: 12px;
    color: var(--ft-faint);
}

.mf-footer-arrow-link b {
    color: var(--ft-orange);
}


/* =====================================================
   3. WORDMARK
===================================================== */

.mf-footer-wordmark {
    margin: 0 0 22px;
    pointer-events: none;
    user-select: none;
}

.mf-footer-wordmark svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* fill only: a stroke would trace the font's internal
   overlapping contours inside letters like M, Y and N */
.mf-footer-wordmark text {
    font-family: Inter, Arial, sans-serif;
    font-size: 150px;
    font-weight: 900;
    fill: rgba(255, 255, 255, .09);
}

.mf-footer-wordmark tspan {
    fill: url(#mfFooterWordmarkGrad);
    fill-opacity: .9;
}


/* =====================================================
   4. BOTTOM BAR
===================================================== */

.mf-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding-top: 22px;
    border-top: 1px solid var(--ft-line);
    font-size: 13px;
    color: var(--ft-muted);
}

.mf-footer-bottom p {
    margin: 0;
}

.mf-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: var(--ft-faint);
}

.mf-footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--ft-muted);
    text-decoration: none;
    transition: color .25s ease;
}

.mf-footer-legal a:hover {
    color: var(--ft-orange);
}

/* the legal page currently open (set by js/Component.js) */
.mf-footer-legal a.is-current {
    color: #fff;
}

.mf-footer-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 8px 0 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.mf-footer-top span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    transition: transform .35s var(--ft-ease);
}

.mf-footer-top:hover {
    background: #fff;
    border-color: #fff;
    color: #111;
}

.mf-footer-top:hover span {
    transform: translateY(-2px);
    background: rgba(17, 17, 17, .08);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 960px) {

    .mf-footer-cta,
    .mf-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mf-footer-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .mf-footer-btn {
        flex: 1 1 240px;
    }
}

@media (max-width: 640px) {

    .mf-footer {
        border-radius: 28px 28px 0 0;
    }

    .mf-footer-inner {
        width: calc(100% - 32px);
    }

    .mf-footer-cta-actions {
        flex-direction: column;
    }

    .mf-footer-btn {
        flex-basis: auto;
    }

    .mf-footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .mf-footer-col--contact {
        grid-column: 1 / -1;
    }

    .mf-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mf-footer *,
    .mf-footer *::before,
    .mf-footer *::after {
        transition-duration: .01ms !important;
    }

    .mf-footer-btn:hover,
    .mf-footer-col a:hover {
        transform: none;
    }
}
