﻿/* Finmarket homepage */

body.finmarket {
    background: #111111;
}

    body.finmarket ::selection {
        background: var(--color-brand);
        color: #ffffff;
    }

    body.finmarket main :focus-visible {
        outline: 2px solid var(--color-brand);
        outline-offset: 4px;
        border-radius: 2px;
    }

.fm-home,
.fm-exchange,
.fm-cta,
.fm-faq {
    --fm-ease: cubic-bezier(.16, 1, .3, 1);
    --fm-spring: cubic-bezier(.34, 1.56, .64, 1);
    --fm-gutter: clamp(20px, 4.5vw, 72px);
    font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
}

    .fm-home *,
    .fm-exchange *,
    .fm-cta *,
    .fm-faq * {
        box-sizing: border-box;
    }

.fm-container {
    max-width: 1560px;
    margin: 0 auto;
}

.fm-heading {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 50px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.04em;
    color: inherit;
}

/* Scroll reveal: hidden only once the head script has flagged that finmarket.js will run */

[data-fm-rise] {
    transition: transform var(--fm-rise-dur, .9s) var(--fm-ease), opacity var(--fm-rise-dur, .9s) var(--fm-ease);
    transition-delay: var(--fm-delay, 0ms);
}

html.fm-anim [data-fm-rise]:not(.is-visible) {
    opacity: 0;
    transform: translateY(var(--fm-rise-y, 24px));
}

/* Hero (shared HeroSlider partial, homepage look) */

.fm-home.hp-bg-canvas > .if-hero.dw-hero {
    min-height: 560px;
    background: #000000;
}

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy {
        /* The reference pads the hero asymmetrically (top > bottom), which drops the copy slightly below centre. */
        top: calc(50% + (clamp(128px, 17vh, 210px) - clamp(72px, 12vh, 150px)) / 2);
        width: min(100%, calc(1560px + 2 * var(--fm-gutter)));
        padding: 0 var(--fm-gutter);
    }

    html.fm-anim .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__content {
        animation: fm-rise-in 1s var(--fm-ease) both;
    }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: min(100%, 640px);
        text-align: left;
    }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__eyebrow {
        margin: 0;
        font-size: clamp(11px, 1.1vw, 13px);
        font-weight: 500;
        letter-spacing: .24em;
        line-height: normal;
        color: rgba(255, 255, 255, .72);
    }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__eyebrow-dot {
        display: none;
    }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__title {
        max-width: none;
        margin: clamp(18px, 2.6vh, 30px) 0 0;
        font-size: clamp(46px, 7vw, 112px);
        font-weight: 600;
        line-height: .88;
        letter-spacing: -.05em;
        color: #ffffff;
    }

    /* Slide description: the first paragraph is the subheadline, the rest is the description. */
    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body {
        max-width: none;
        margin: clamp(20px, 3vh, 34px) 0 0;
    }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body p {
            max-width: 42ch;
            font-size: clamp(15px, 1.35vw, 18px);
            line-height: 1.6;
            color: rgba(255, 255, 255, .8);
            text-wrap: pretty;
        }

            .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body p + p {
                margin-top: clamp(12px, 1.8vh, 18px);
            }

            .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body p:first-child:not(:only-child) {
                max-width: none;
                font-size: clamp(19px, 2vw, 28px);
                font-weight: 500;
                line-height: 1.24;
                letter-spacing: -.032em;
                color: #ffffff;
            }

    /* Partner banks / products figures, styled like the Finarch homepage hero stats. */
    .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
        gap: clamp(18px, 2.4vw, 34px);
        max-width: min(100%, 640px);
        margin: clamp(28px, 4.5vh, 52px) 0 0;
        padding-top: clamp(20px, 3vh, 28px);
        border-top: 1px solid rgba(255, 255, 255, .14);
        color: #ffffff;
    }

    html.fm-anim .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats {
        animation: fm-rise-in 1s var(--fm-ease) .3s both;
    }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats dt {
            font-size: clamp(11px, 9.65px + .15vw, 12.5px);
            font-weight: 500;
            letter-spacing: .16em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, .5);
        }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats dd {
            margin: 8px 0 0;
            font-size: clamp(24px, 15px + 1vw, 34px);
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -.03em;
            /* Keeps the row from reflowing while the counter animates. */
            font-variant-numeric: tabular-nums;
        }

/* Mobile: like the Finarch homepage hero, the eyebrow and title sit at the top,
   the rest of the copy and the stats at the bottom, with the photo in between. */
@media (max-width: 767px) {
    /* The shared bottom shade (site.css), plus a deeper one at the top behind the title. */
    .fm-home.hp-bg-canvas > .if-hero.dw-hero::before {
        background:
            linear-gradient(180deg, rgba(12, 6, 9, .62) 0%, rgba(12, 6, 9, .34) 24%, rgba(12, 6, 9, 0) 40%),
            linear-gradient(180deg,
                transparent 0%,
                transparent 42%,
                color-mix(in srgb, var(--dw-hero-shadow-color) 60%, transparent) 60%,
                color-mix(in srgb, var(--dw-hero-shadow-color) 92%, transparent) 80%,
                color-mix(in srgb, var(--dw-hero-shadow-color) 96%, transparent) 100%);
    }

    /* Spans the hero from below the header (same top spacing as Finarch) to the bottom. */
    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy {
        top: calc(var(--fa-nav-h, 86px) + clamp(44px, 8svh, 88px));
        bottom: clamp(28px, 5svh, 48px);
        display: flex;
        flex-direction: column;
    }

        /* Slider wrapper, track and slide stretch down to the stats... */
        .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__track-wrapper,
        .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__track {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            min-height: 0;
        }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__track {
            display: grid;
        }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__slide {
            align-items: stretch;
        }

        /* ...and the title grows to fill the leftover height, so everything after it sits at the bottom. */
        .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__title {
            flex-grow: 1;
        }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__eyebrow {
        font-size: 10px;
        letter-spacing: .18em;
    }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__title {
        margin-top: 12px;
        font-size: 34px;
        line-height: .94;
    }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body {
        margin-top: 12px;
    }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body p {
            font-size: 13.5px;
            line-height: 1.55;
        }

            .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body p + p {
                margin-top: 8px;
            }

            .fm-home.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body p:first-child:not(:only-child) {
                font-size: 17px;
            }

    .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats {
        gap: 10px;
        margin-top: 16px;
        padding-top: 12px;
    }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats dt {
            font-size: 9.5px;
            letter-spacing: .12em;
        }

        .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats dd {
            margin-top: 2px;
            font-size: 20px;
        }
}

@keyframes fm-rise-in {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
}

/* Products */

.fm-products {
    padding: clamp(64px, 10vh, 130px) var(--fm-gutter) clamp(72px, 11vh, 150px);
    background: #FFFFFF;
    color: #111111;
}

.fm-products__head {
    --fm-rise-y: 22px;
    display: inline-block;
    text-align: left;
}

.fm-products__intro {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.1vh, 14px);
    /* Wrap the intro to the heading's width instead of widening the block. */
    width: 0;
    min-width: 100%;
    margin: clamp(18px, 2.4vh, 26px) 0 0;
}

    .fm-products__intro p {
        margin: 0;
        font-size: clamp(15px, 1.5vw, 18px);
        line-height: 1.5;
        color: #111111;
        text-wrap: pretty;
    }

        .fm-products__intro p:last-child:not(:first-child) {
            font-weight: 500;
        }

.fm-carousel {
    position: relative;
    margin-top: clamp(28px, 4vh, 52px);
}

.fm-carousel__btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    /* The reference's Inter subset has no ◀/▶, so they render in the system font; match that glyph. */
    font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    color: rgba(17, 17, 17, .55);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .3s, transform .35s var(--fm-spring);
}

    .fm-carousel__btn:hover {
        color: #111111;
        transform: translateY(-50%) scale(1.18);
    }

.fm-carousel__btn--prev {
    left: max(-48px, calc(4px - var(--fm-gutter)));
}

.fm-carousel__btn--next {
    right: max(-48px, calc(4px - var(--fm-gutter)));
}

.fm-carousel__track {
    --fm-per: 3;
    --fm-basis-gap: clamp(18px, 2.4vw, 32px);
    /* 100% resolves against the track wherever this is used (flex-basis and the edge margins). */
    --fm-card-w: calc((100% - (var(--fm-per) - 1) * var(--fm-basis-gap)) / var(--fm-per));
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding: 0;
    padding: clamp(10px, 1.4vh, 18px) 0 clamp(30px, 4vh, 56px);
    scrollbar-width: none;
    /* Sideways touch swipes are handled by finmarket.js (one card per swipe); vertical ones still scroll the page. */
    touch-action: pan-y;
}

    .fm-carousel__track::-webkit-scrollbar {
        display: none;
    }

/* Cards */

.fm-card {
    --fm-rise-y: 28px;
    position: relative;
    display: flex;
    flex: 0 0 var(--fm-card-w);
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #FFFFFF;
    color: #111111;
    box-shadow: 0 10px 26px rgba(17, 17, 17, .08);
    scroll-snap-align: center;
    transition: transform .6s var(--fm-ease), opacity .9s var(--fm-ease), box-shadow .5s ease;
    transition-delay: var(--fm-delay, 0ms);
}

    /* Side margins let the first and last card reach the centre of the track.
       A looping track (more than two cards) has copies on both sides instead. */
    .fm-carousel__track:not(.is-looping) .fm-card:first-child {
        margin-left: calc((100% - var(--fm-card-w)) / 2);
    }

    .fm-carousel__track:not(.is-looping) .fm-card:last-child {
        margin-right: calc((100% - var(--fm-card-w)) / 2);
    }

    .fm-card.is-ready {
        z-index: 1;
        transform: translateY(22px) scale(.95);
        box-shadow: 0 1px 4px rgba(17, 17, 17, .03), 0 10px 28px -14px rgba(17, 17, 17, .1);
        transition: transform .6s var(--fm-ease), opacity .4s ease, box-shadow .5s ease;
    }

        .fm-card.is-ready:hover,
        .fm-card.is-ready:focus-within {
            transform: translateY(14px) scale(.95);
            box-shadow: 0 2px 6px rgba(17, 17, 17, .04), 0 14px 38px -16px rgba(17, 17, 17, .16);
        }

        .fm-card.is-ready.is-active {
            z-index: 2;
            transform: translateY(0) scale(1);
            box-shadow: 0 2px 6px rgba(17, 17, 17, .04), 0 18px 50px -18px rgba(17, 17, 17, .22);
        }

            .fm-card.is-ready.is-active:hover,
            .fm-card.is-ready.is-active:focus-within {
                transform: translateY(-8px) scale(1);
            }

.fm-card__img {
    position: relative;
    width: 100%;
    height: clamp(196px, 18vw, 258px);
    overflow: hidden;
    background: #EDEEEF;
    transition: height .6s var(--fm-ease);
}

    .fm-card__img img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

.fm-card.is-active .fm-card__img {
    height: clamp(230px, 22vw, 320px);
}

/* Every card shows its copy; focus is conveyed by scale, lift and image height. */
.fm-card__body {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.6vh, 18px);
    padding: clamp(18px, 2.2vh, 26px) clamp(20px, 2.2vw, 30px) clamp(20px, 2.6vh, 30px);
    opacity: .82;
    transition: opacity .45s ease;
}

.fm-card.is-active .fm-card__body {
    opacity: 1;
}

.fm-card__head {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 1.6vw, 22px);
}

.fm-card__num {
    flex: none;
    margin: 0;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: .92;
    letter-spacing: -.045em;
    color: #111111;
}

.fm-card__title {
    margin: 0;
    font-size: clamp(17px, 1.6vw, 23px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: #111111;
    text-wrap: balance;
}

.fm-card__subtitle {
    margin: 0;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    line-height: 1.36;
    letter-spacing: -.016em;
    color: rgba(17, 17, 17, .74);
    text-wrap: balance;
}

.fm-card__text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
    color: rgba(17, 17, 17, .6);
    text-wrap: pretty;
}

    .fm-card__text p + p {
        margin-top: 8px;
    }

.fm-card__link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin-top: 2px;
    border-bottom: 1px solid rgba(87, 28, 42, .45);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--color-brand);
    text-decoration: none;
    transition: color .3s, border-color .3s;
}

    .fm-card__link:hover,
    .fm-card:hover .fm-card__link {
        border-bottom-color: var(--color-brand);
        color: var(--color-brand);
    }

    /* The link stretches over the whole card (image included), so a click anywhere acts like "Krahaso". */
    .fm-card__link::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
    }

/* Links an editor puts in the card text stay clickable on their own, above the card link. */
.fm-card__text a {
    position: relative;
    z-index: 2;
}

/* Exchange rate calculator */

.fm-exchange {
    /* Lifts the open currency list above the CTA section that follows. */
    position: relative;
    z-index: 2;
    padding: clamp(64px, 10vh, 130px) var(--fm-gutter);
    background: #111111;
    color: #ffffff;
}

    .fm-exchange .fm-heading {
        text-align: left;
        text-wrap: balance;
    }

.fm-exchange__card {
    --fm-rise-y: 26px;
    max-width: 100%;
    margin: clamp(28px, 4vh, 48px) 0 0;
    padding: clamp(24px, 3.4vw, 48px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    background: #17171A;
}

.fm-fx__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(14px, 2vw, 24px);
    align-items: end;
}

.fm-fx__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.fm-fx__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    line-height: normal;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .52);
}

.fm-fx__controls {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.fm-fx__input,
.fm-fx__select {
    min-width: 0;
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    font-family: inherit;
    font-weight: 600;
    color: #ffffff;
}

.fm-fx__input {
    flex: 1 1 auto;
    padding: 16px 18px;
    font-size: clamp(17px, 1.7vw, 22px);
    letter-spacing: -.02em;
}

    .fm-fx__input:focus {
        border-color: var(--color-brand);
        background: rgba(255, 255, 255, .09);
    }

.fm-fx__select {
    flex: none;
    width: clamp(94px, 9vw, 112px);
    padding: 16px 10px;
    font-size: 14px;
    cursor: pointer;
}

    .fm-fx__select option {
        background: #17171A;
        color: #ffffff;
    }

/* Currency picker (built by finmarket.js over the native select) */

.fm-fx__picker {
    position: relative;
    display: flex;
    flex: none;
}

.fm-fx__select--native {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.fm-fx__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 14px 16px 16px;
    text-align: left;
    transition: border-color .25s ease, background .25s ease;
}

    .fm-fx__trigger::after {
        content: "";
        flex: none;
        width: 7px;
        height: 7px;
        margin-top: -4px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        opacity: .7;
        transform: rotate(45deg);
        transition: transform .3s var(--fm-ease), margin .3s var(--fm-ease);
    }

    .fm-fx__trigger:hover,
    .fm-fx__picker.is-open .fm-fx__trigger {
        border-color: rgba(196, 140, 166, .55);
        background: rgba(255, 255, 255, .09);
    }

    .fm-fx__picker.is-open .fm-fx__trigger::after {
        margin-top: 4px;
        transform: rotate(-135deg);
    }

.fm-fx__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(300px, calc(100vw - 40px));
    max-height: min(320px, 50vh);
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: #1c1c1f;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
    animation: fm-fx-drop .22s var(--fm-ease);
}

    .fm-fx__list:focus {
        outline: none;
    }

    .fm-fx__list[hidden] {
        display: none;
    }

.fm-fx__option {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    cursor: pointer;
}

    .fm-fx__option.is-active {
        background: rgba(255, 255, 255, .07);
        color: #ffffff;
    }

    .fm-fx__option[aria-selected="true"] {
        background: rgba(84, 36, 61, .55);
        color: #ffffff;
    }

.fm-fx__option-code {
    flex: none;
    width: 3.2em;
    font-weight: 600;
    letter-spacing: .02em;
}

.fm-fx__option-name {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, .55);
}

    .fm-fx__option.is-active .fm-fx__option-name,
    .fm-fx__option[aria-selected="true"] .fm-fx__option-name {
        color: rgba(255, 255, 255, .78);
    }

@keyframes fm-fx-drop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.fm-fx__swap {
    flex: none;
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-family: inherit;
    font-size: 17px;
    color: #ffffff;
    cursor: pointer;
    transition: transform .4s var(--fm-spring), background .3s;
}

    .fm-fx__swap:hover {
        background: rgba(84, 36, 61, .6);
    }

.fm-fx__output {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    min-height: 56px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(196, 140, 166, .34);
    border-radius: 14px;
    background: rgba(84, 36, 61, .28);
    font-size: clamp(15px, 1.5vw, 21px);
    font-weight: 600;
    letter-spacing: -.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ffffff;
}

.fm-fx__rate {
    margin: clamp(20px, 3vh, 28px) 0 0;
    padding-top: clamp(16px, 2.4vh, 22px);
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    color: rgba(255, 255, 255, .72);
}

.fm-fx__note {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    text-align: right;
    color: rgba(255, 255, 255, .5);
}

/* CTA */

.fm-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 10vh, 130px) var(--fm-gutter);
    background: #2C111C;
    color: #ffffff;
}

.fm-cta__bg,
.fm-cta__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.fm-cta__bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fm-cta__shade {
    background: linear-gradient(90deg, rgba(28, 10, 17, .9) 0%, rgba(28, 10, 17, .74) 38%, rgba(28, 10, 17, .3) 72%, rgba(28, 10, 17, .12) 100%);
}

.fm-cta__inner {
    position: relative;
    z-index: 1;
}

.fm-cta__copy {
    max-width: min(100%, 60ch);
    margin: 0;
    text-align: left;
}

.fm-cta__title {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 52px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.042em;
    color: #ffffff;
    text-wrap: balance;
}

.fm-cta__text {
    margin: clamp(18px, 2.8vh, 28px) 0 0;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.66;
    color: rgba(255, 255, 255, .8);
    text-wrap: pretty;
}

.fm-cta__actions {
    display: flex;
    justify-content: flex-start;
    margin: clamp(26px, 4vh, 40px) 0 0;
}

.fm-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 32px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 450;
    color: #ffffff;
    text-decoration: none;
    transition: transform .4s var(--fm-spring), border-color .3s, background .3s;
}

    .fm-cta__btn:hover {
        transform: translateY(-3px);
        border-color: #ffffff;
        background: rgba(255, 255, 255, .08);
        color: #ffffff;
    }

/* FAQ (shared Faq partial, homepage light-card variant) */

.fm-faq {
    padding: clamp(48px, 7vh, 96px) var(--fm-gutter) clamp(72px, 11vh, 150px);
    background: #111111;
}

    .fm-faq .hp-cta {
        max-width: none;
        margin: 0;
        padding: 0;
        background: none;
    }

    .fm-faq .hp-faq {
        max-width: 1560px;
        margin: 0 auto;
        padding: clamp(28px, 4vw, 56px);
        border: 1px solid rgba(17, 17, 17, .1);
        border-radius: 28px;
        background: #F2F1F1;
    }

        .fm-faq .hp-faq h3 {
            margin: 0;
            font-size: clamp(22px, 2.4vw, 34px);
            font-weight: 600;
            line-height: 1.1;
            letter-spacing: -.034em;
            color: #111111;
        }

    .fm-faq .hp-faq__list {
        display: flex;
        flex-direction: column;
        margin-top: clamp(28px, 4vh, 48px);
    }

        .fm-faq .hp-faq__list details {
            border-top: 1px solid rgba(17, 17, 17, .12);
        }

            .fm-faq .hp-faq__list details:last-child {
                border-bottom: 1px solid rgba(17, 17, 17, .12);
            }

    .fm-faq .hp-faq__question {
        align-items: flex-start;
        gap: 20px;
        padding: clamp(13px, 1.8vh, 17px) 0;
        font-size: clamp(14px, 1.3vw, 16px);
        font-weight: 450;
        line-height: 1.4;
        letter-spacing: -.008em;
        text-align: left;
        color: #111111;
    }

    /* "+" that turns into "−" when open, as in the reference */
    .fm-faq .hp-faq__icon--plus {
        width: auto;
        height: auto;
        flex: none;
        font-size: 19px;
        font-weight: 300;
        line-height: 1.2;
        color: rgba(17, 17, 17, .55);
        transition: none;
    }

        .fm-faq .hp-faq__icon--plus::before {
            content: "+";
            position: static;
            width: auto;
            height: auto;
            background: none;
            transform: none;
        }

        .fm-faq .hp-faq__icon--plus::after {
            content: none;
        }

    .fm-faq details[open] .hp-faq__icon--plus {
        transform: rotate(180deg);
    }

        .fm-faq details[open] .hp-faq__icon--plus::before {
            content: "−";
        }

    .fm-faq .hp-faq__answer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 0 clamp(20px, 2.8vh, 28px);
    }

        .fm-faq .hp-faq__answer p {
            max-width: 78ch;
            margin: 0;
            font-size: 15px;
            line-height: 1.74;
            color: rgba(17, 17, 17, .66);
            text-wrap: pretty;
        }

            /* The partial wraps rich text in a <p>, which leaves empty paragraphs behind. */
            .fm-faq .hp-faq__answer p:empty {
                display: none;
            }

        .fm-faq .hp-faq__answer ul {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .fm-faq .hp-faq__answer li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: 15px;
            line-height: 1.66;
            color: rgba(17, 17, 17, .66);
            text-wrap: pretty;
        }

            .fm-faq .hp-faq__answer li::before {
                content: "";
                flex: none;
                width: 5px;
                height: 5px;
                margin-top: 9px;
                border-radius: 50%;
                background: var(--color-brand);
            }

    .fm-faq .hp-faq h3,
    .fm-faq .hp-faq__list details {
        transition: transform .9s var(--fm-ease), opacity .9s var(--fm-ease);
    }

    .fm-faq .hp-faq__list details {
        transition-duration: .8s;
    }

html.fm-anim .fm-faq .hp-faq h3:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
}

html.fm-anim .fm-faq .hp-faq__list details:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive */

@media (max-width: 1079.98px) {
    .fm-carousel__track {
        --fm-per: 2;
    }
}

@media (max-width: 859.98px) {
    .fm-fx__row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .fm-fx__swap {
        justify-self: start;
        transform: rotate(90deg);
    }
}

@media (max-width: 699.98px) {
    .fm-carousel__track {
        --fm-per: 1;
    }
}

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

    [data-fm-rise],
    .fm-card,
    .fm-card__img,
    .fm-card__body,
    .fm-carousel__btn,
    .fm-fx__swap,
    .fm-fx__list,
    .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__stats,
    .fm-fx__trigger::after,
    .fm-cta__btn,
    .fm-faq .hp-faq h3,
    .fm-faq .hp-faq__list details,
    .fm-home.hp-bg-canvas > .if-hero.dw-hero .if-hero__content {
        animation: none !important;
        transition: none !important;
    }
}
