﻿@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Variable.ttf') format('truetype-variations'), url('/fonts/Inter-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi Variable';
    src: url('/fonts/Satoshi-Variable.ttf') format('truetype-variations'), url('/fonts/Satoshi-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Satoshi Variable', 'Poppins', sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fs-body: clamp(14.5px,1.15vw,16px);
    --lh-body: 1.65;
    --site-max-width: 1400px;
    --site-padding: 50px;
    --site-padding-mobile: 40px;
    --color-brand: #54243D;
    --color-brand-mid: #ad603a;
    --color-cream: #fefcf5;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-white: #fbfbfb;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-brand);
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: var(--fw-bold);
    font-size: clamp(40px, 8vw, 72px);
}

h2 {
    font-weight: var(--fw-bold);
    font-size: clamp(30px, 5vw, 48px);
}

h3 {
    font-weight: var(--fw-medium);
    font-size: clamp(24px, 3vw, 32px);
}

h4 {
    font-weight: var(--fw-medium);
    font-size: clamp(18px, 2vw, 24px);
}

p {
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-body);
    color: var(--fm-accent);
    margin-bottom: 1rem;
}

strong, b {
    font-weight: var(--fw-bold);
}

.text-medium {
    font-weight: var(--fw-medium);
}

.text-accent {
    color: var(--color-brand);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .scroll-reveal.visible {
        opacity: 1;
        transform: none;
    }

.hp-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.hp-btn--outline-light {
    border: 1.5px solid var(--color-cream);
    color: var(--color-cream);
}

    .hp-btn--outline-light:hover {
        background: var(--color-cream);
        color: var(--color-brand);
    }

.hp-btn--outline-dark {
    border: 1.5px solid var(--color-brand);
    color: var(--color-brand);
    background: transparent;
}

    .hp-btn--outline-dark:hover {
        background: var(--color-brand);
        color: var(--color-cream);
    }

.hp-btn--solid-light {
    background: #fff;
    border: 1.5px solid #fff;
    color: var(--color-brand);
    font-weight: 500;
}

    .hp-btn--solid-light:hover {
        background: var(--color-brand);
        border-color: var(--color-brand);
        color: #ffffff;
    }

.hp-btn--solid-dark {
    border: 1px solid var(--color-brand);
    color: #fff;
    background: var(--color-brand);
}

    .hp-btn--solid-dark:hover {
        background: #fff;
        color: var(--color-brand);
    }

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body:not(.home):not(.financialServices) .header-logo .colored-logo {
    display: block;
}

body:not(.finmarket):not(.investmentFunds):not(.diaspora):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card) .header-logo-finmarket .colored-logo {
    display: block;
}

body:not(.home):not(.financialServices) .header-logo .white-logo {
    display: none;
}

body:not(.finmarket):not(.investmentFunds):not(.diaspora):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card) .header-logo-finmarket .white-logo {
    display: none;
}

body:not(.home):not(.finmarket):not(.financialServices):not(.investmentFunds):not(.diaspora):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card) .hamburger-bar {
    background: var(--color-brand);
}

body:not(.home):not(.contact):not(.newsletter):not(.finmarket):not(.financialServices):not(.investmentFunds):not(.diaspora):not(.deposits):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card):not(.digitalWallet) .site-header {
    background: #ffffff;
}

body:not(.home):not(.finmarket):not(.financialServices):not(.investmentFunds):not(.diaspora):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card) .site-header .nav-link {
    color: var(--color-brand);
}

body:not(.home):not(.finmarket):not(.financialServices):not(.investmentFunds):not(.diaspora):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card) .site-header .lang-switch {
    border: 1.5px solid var(--color-brand);
}

    body:not(.home):not(.finmarket):not(.financialServices):not(.investmentFunds):not(.diaspora):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card) .site-header .lang-switch a {
        color: var(--color-brand);
    }

        body:not(.home):not(.finmarket):not(.financialServices):not(.investmentFunds):not(.diaspora):not(.loan):not(.savingAccounts):not(.paymentTransfers):not(.card) .site-header .lang-switch a.active, .lang-switch a:hover {
            background: var(--color-brand);
            color: var(--color-cream);
        }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 50px var(--site-padding);
    gap: 24px;
}

.header-logo a, .header-logo-finmarket a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 58px;
    width: auto;
    display: block;
}

.header-logo-finmarket img {
    height: 34px;
    width: auto;
    display: block;
}

.header-logo .colored-logo, .header-logo-finmarket .colored-logo {
    display: none;
}

.header-logo .white-logo, .header-logo-finmarket .white-logo {
    display: block;
}

.navbar-collapse {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
}

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 18px;
    color: var(--color-cream);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    white-space: nowrap;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

    .nav-link:hover {
        opacity: 0.75;
    }

.arrow-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform 0.2s;
}

.nav-item:hover > .nav-link .arrow-icon {
    transform: rotate(180deg);
}

.arrow-icon-child {
    width: 13px;
    height: 13px;
    fill: currentColor;
    transform: rotate(-90deg);
    margin-left: auto;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(109, 54, 30, 0.12);
    min-width: 200px;
    padding: 8px 0;
    list-style: none;
    z-index: 200;
    opacity: 90%;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: var(--color-brand);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

    .dropdown-item:hover {
        color: var(--color-brand-mid);
    }

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .inner-menu {
        top: 0;
        left: 100%;
        transform: none;
        display: none;
    }

    .dropdown-submenu:hover > .inner-menu {
        display: block;
    }

.header-action {
    display: flex;
    align-items: center;
}

.lang-switch {
    display: flex;
    border: 1.5px solid rgba(254, 252, 245, 0.55);
    border-radius: 100px;
    overflow: hidden;
}

    .lang-switch a {
        font-size: 16px;
        font-weight: 600;
        color: rgba(254, 252, 245, 0.65);
        text-decoration: none;
        padding: 6px 20px;
        transition: background 0.2s, color 0.2s;
    }

        .lang-switch a.active,
        .lang-switch a:hover {
            background: var(--color-cream);
            color: var(--color-brand);
        }

.mobile-lang-switch {
    display: none;
}

.header-action .lang-dropdown {
    display: none;
}

.lang-dropdown {
    display: none;
    position: relative;
}

.lang-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--color-brand);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-brand);
    cursor: pointer;
}

    .lang-dropdown__toggle .arrow-icon {
        width: 13px;
        height: 13px;
        fill: currentColor;
        transition: transform 0.2s;
    }

.lang-dropdown.open .lang-dropdown__toggle .arrow-icon {
    transform: rotate(180deg);
}

.lang-dropdown__menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1.5px solid var(--color-brand);
    border-radius: 16px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 90px;
    box-shadow: 0 8px 30px rgba(109, 54, 30, 0.12);
    z-index: 10;
}

.lang-dropdown.open .lang-dropdown__menu {
    display: block;
}

.lang-dropdown__menu a {
    display: block;
    padding: 8px 20px;
    color: var(--color-brand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

    .lang-dropdown__menu a.active,
    .lang-dropdown__menu a:hover {
        color: var(--color-brand-mid);
    }

.hamburger-wrapper {
    display: none;
}

.hamburger-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.25s;
}

body.mobile-menu-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.mobile-menu-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.mobile-menu-open .hamburger-bar {
    background: var(--color-brand);
}

.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

.footer-section {
    background: var(--color-brand-mid);
    padding: 60px 0 0;
}

.footer-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer-logo-finmarket {
    height: 25px;
    width: auto;
}

.social-icons {
    display: flex;
    gap: 10px;
}

    .social-icons a {
        text-decoration: none;
    }

.social-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

    .social-icon:hover {
        background: rgba(254, 252, 245, 0.25);
    }

    .social-icon i {
        color: var(--color-brand-mid);
    }

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    gap: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

    .footer-links li {
        list-style: none;
    }

    .footer-links a {
        color: var(--color-cream);
        text-decoration: none;
        white-space: nowrap;
        transition: opacity 0.2s;
    }

        .footer-links a:hover {
            opacity: 0.65;
        }

.footer-tagline-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-tagline {
    color: var(--color-cream);
    text-align: right;
    line-height: 1.55;
    max-width: 220px;
    margin: 0;
}

    .footer-tagline p,
    .footer-tagline a,
    .footer-address p,
    .footer-address a {
        color: #fff;
        margin: 0;
        text-decoration: none;
    }

    .footer-tagline a {
        transition: opacity 0.2s;
    }

        .footer-tagline a:hover {
            opacity: 0.65;
        }

.footer-bottom-bar {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 30px var(--site-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-address {
    color: #fefcf5;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-lang {
    display: flex;
    border: 1.5px solid rgba(254, 252, 245, 0.35);
    border-radius: 100px;
    overflow: hidden;
}

    .footer-lang a {
        font-size: 12px;
        font-weight: 600;
        color: rgba(254, 252, 245, 0.55);
        text-decoration: none;
        padding: 4px 14px;
        transition: background 0.2s, color 0.2s;
    }

        .footer-lang a.active,
        .footer-lang a:hover {
            background: var(--color-cream);
            color: var(--color-brand-mid);
        }

.footer-bottom {
    background: var(--color-cream);
    text-align: center;
    padding: 12px 24px;
}

    .footer-bottom p {
        margin: 0;
    }

    .footer-bottom a {
        color: inherit;
        text-decoration: none;
    }

        .footer-bottom a:hover {
            color: var(--color-brand-mid);
        }



body .modal {
    --fm-accent: var(--color-brand);
    --fm-accent-soft: rgba(84, 36, 61, .55);
    --fm-line: rgba(84, 36, 61, .28);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
    background: rgba(17, 17, 17, .62) !important;
    backdrop-filter: blur(3px) !important;
}

    body .modal[style*="flex"] {
        display: flex !important;
    }

    body .modal .modal-content {
        margin: auto;
        padding: 36px 40px 40px;
        width: 100%;
        max-width: 450px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
        animation: slideUp 0.3s ease;
        background: #fff !important;
        border-radius: 24px !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .28) !important;
    }

        body .modal .modal-content svg {
            stroke: var(--fm-accent) !important;
            fill: var(--fm-accent) !important;
        }

        body .modal .modal-content .close {
            position: absolute;
            top: 14px;
            right: 18px;
            font-size: 20px;
            cursor: pointer;
            background: none;
            border: none;
            line-height: 1;
            color: var(--fm-accent) !important;
        }

        body .modal .modal-content h3 {
            text-align: center;
            margin: 0;
            color: var(--fm-accent) !important;
            font-weight: 600 !important;
            letter-spacing: -0.03em !important;
        }

        body .modal .modal-content p {
            text-align: center;
            margin: 0;
            color: var(--fm-accent) !important;
        }

        body .modal .modal-content input[type="text"],
        body .modal .modal-content input[type="email"],
        body .modal .modal-content input[type="tel"] {
            width: 100%;
            background: transparent;
            border: none;
            padding: 15px 0;
            outline: none;
            color: var(--fm-accent) !important;
            border-bottom: 1px solid var(--fm-line) !important;
        }

        body .modal .modal-content input::placeholder {
            color: var(--fm-accent-soft) !important;
        }

        body .modal .modal-content input:focus {
            border-bottom-color: var(--fm-accent) !important;
        }

        body .modal .modal-content .terms-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 15px 0;
            color: var(--fm-accent-soft) !important;
        }

            body .modal .modal-content .terms-row a {
                color: var(--fm-accent) !important;
                text-decoration: underline !important;
                text-underline-offset: 3px !important;
            }

        body .modal .modal-content button {
            width: 100%;
            padding: 14px 28px;
            margin-top: 15px;
        }

        body .modal .modal-content .hp-btn--solid-dark {
            background: var(--fm-accent) !important;
            border-color: var(--fm-accent) !important;
            color: #fff !important;
            border-radius: 999px !important;
        }

            body .modal .modal-content .hp-btn--solid-dark:hover {
                background: #fff !important;
                color: var(--fm-accent) !important;
            }

body.modal-gate {
    overflow-y: auto;
    pointer-events: none;
}

    body.modal-gate #registerModal {
        pointer-events: all;
    }

        body.modal-gate #registerModal .modal-content {
            pointer-events: all;
        }

    body.modal-gate .modal-content .close {
        display: none;
    }

/* Results counter above the finmarket product lists. Lives here rather than in each page's stylesheet
   because deposits, loans, accounts, transfers and cards all share the markup. */
.dep-results-count {
    margin: 0 0 1rem;
    padding: 0 4px;
    color: var(--color-brand);
    font-weight: 600;
}

    .dep-results-count:empty {
        display: none;
    }

/* Custom dropdown */
.hp-custom-select {
    position: relative;
}

.hp-custom-select__trigger {
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    box-sizing: border-box;
}

    .hp-custom-select__trigger svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: var(--color-brand);
        transition: transform 0.3s ease;
    }

.hp-custom-select--open .hp-custom-select__trigger svg {
    transform: rotate(180deg);
}

.hp-custom-select__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--color-brand);
    border-radius: 20px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(109, 54, 30, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hp-custom-select--open .hp-custom-select__panel {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hp-custom-select__option {
    padding: 0.9rem 2.2rem;
    color: var(--color-brand-mid);
    cursor: pointer;
    transition: background 0.15s;
}

    .hp-custom-select__option:hover {
        background: rgba(109, 54, 30, 0.06);
    }

.hp-custom-select__option--selected {
    background: rgba(109, 54, 30, 0.1);
    font-weight: 600;
}

.terms-row input[type="checkbox"] {
    appearance: none;
    accent-color: var(--fm-accent, var(--color-brand));
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    border: 2px solid var(--fm-accent, var(--color-brand));
    border-color: var(--fm-accent, var(--color-brand)) !important;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

    .terms-row input[type="checkbox"]:checked {
        background-color: var(--fm-accent, var(--color-brand));
        border-color: var(--fm-accent, var(--color-brand));
    }

        .terms-row input[type="checkbox"]:checked::after {
            content: '✔';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -52%);
            color: #fff;
            font-size: 1rem;
            line-height: 1;
        }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner__text {
    flex: 1 1 400px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

    .cookie-banner__text a {
        text-decoration: underline;
        color: var(--color-brand);
    }

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ---------- cookie banner, new design palette ---------- */

.cookie-banner--dark {
    background: var(--color-brand);
    border-top: 1px solid rgba(255, 255, 255, .14);
    box-shadow: none;
    color: #ffffff;
}

    .cookie-banner--dark .cookie-banner__content {
        max-width: var(--fa-shell, 1560px);
        padding: 18px var(--fa-gutter, clamp(20px, 4.5vw, 72px));
        gap: 20px;
    }

    .cookie-banner--dark .cookie-banner__text {
        font-family: var(--font-primary);
        color: #ffffff;
    }

        .cookie-banner--dark .cookie-banner__text a {
            color: #ffffff;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.cookie-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 13px 28px;
    font-family: var(--font-primary);
    font-size: 14.5px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s ease, color .3s ease, border-color .3s ease;
}

.cookie-banner__btn--primary {
    background: #ffffff;
    color: var(--color-brand);
    font-weight: 600;
}

    .cookie-banner__btn--primary:hover {
        transform: translateY(-3px);
    }

.cookie-banner__btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .26);
    color: #ffffff;
    font-weight: 500;
}

    .cookie-banner__btn--ghost:hover {
        border-color: #ffffff;
        background: rgba(255, 255, 255, .08);
    }

@media (max-width: 640px) {
    .cookie-banner--dark .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1 1 0;
        padding: 13px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner--dark,
    .cookie-banner__btn {
        transition: none;
    }
}

/* Finmarket Hero */

body.digitalWallet .site-header .header-container {
    position: relative;
    z-index: 2;
    padding-top: 24px;
    padding-bottom: 24px;
}

body.digitalWallet .header-logo-finmarket .colored-logo {
    display: none !important;
}

body.digitalWallet .header-logo-finmarket .white-logo {
    display: block !important;
}

body.digitalWallet .site-header .nav-link,
body.digitalWallet .site-header .lang-switch a {
    color: #fff;
}

body.digitalWallet .site-header .arrow-icon {
    stroke: #fff;
}

body.digitalWallet .site-header .lang-switch {
    border-color: rgba(255,255,255,.55);
}

    body.digitalWallet .site-header .lang-switch a.active,
    body.digitalWallet .site-header .lang-switch a:hover {
        background: var(--color-brand);
        color: #fff;
    }

body.digitalWallet .site-header .hamburger-bar {
    background: #fff;
}

.hp-bg-canvas > .if-hero {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    margin: 0;
    padding: 0;
    background: #1d0c14;
}

    .hp-bg-canvas > .if-hero .if-hero__track-wrapper {
        height: 100%;
        border-radius: 0;
    }

    .hp-bg-canvas > .if-hero .if-hero__track {
        height: 100%;
    }

    .hp-bg-canvas > .if-hero .if-hero__slide {
        isolation: isolate;
        overflow: hidden;
        pointer-events: none;
    }

    .hp-bg-canvas > .if-hero .if-hero__title {
        max-width: 24ch;
        margin: 0;
        color: #fff;
        font-size: clamp(32px, 4.3vw, 62px);
        font-weight: 600;
        line-height: 1.02;
        letter-spacing: -.044em;
        text-wrap: balance;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body {
        max-width: 58ch;
        margin-top: clamp(20px, 3vh, 32px);
        color: rgba(255, 255, 255, .82);
        font-size: clamp(15px, 1.5vw, 19px);
        line-height: 1.68;
        font-weight: 400;
    }

        .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body p {
            margin: 0;
            color: inherit;
            font: inherit;
            line-height: inherit;
        }

/* The shadow color in use right now, set per hero item (HeroSlider partial +
   main.js). Registered as a <color> so it fades along with the slide
   crossfade; an item without a color resolves to transparent, i.e. no shadow. */
@property --dw-hero-shadow-color {
    syntax: "<color>";
    inherits: true;
    initial-value: transparent;
}

/* Shadow intensity (layer opacity) and spread (where the desktop gradient fades
   out), also set per hero item. The initial values are the defaults used when an
   item leaves them empty; registered so they fade with the slides like the color. */
@property --dw-hero-shadow-opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: .78;
}

@property --dw-hero-shadow-spread {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 74%;
}

.dw-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #1d0c14;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: --dw-hero-shadow-color .9s ease, --dw-hero-shadow-opacity .9s ease, --dw-hero-shadow-spread .9s ease;
}

    .dw-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: var(--dw-hero-shadow-opacity);
        background: linear-gradient(90deg, var(--dw-hero-shadow-color) 0%, transparent var(--dw-hero-shadow-spread));
    }

    .dw-hero .if-hero__content {
        position: relative;
        z-index: 2;
    }

.dw-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: opacity .9s ease;
}

    /* With several background images only the active one is visible, so they crossfade. */
    .dw-hero__background:not(.dw-hero__background--active) {
        opacity: 0;
    }

.dw-hero .if-hero__slide--active {
    pointer-events: auto;
}

.dw-hero .if-hero__slide::after {
    content: none;
}

.dw-hero__eyebrow {
    position: absolute;
    z-index: 3;
    top: 30%;
    left: max(clamp(24px, 4.5vw, 72px), calc((100vw - 1704px) / 2 + 72px));
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.78);
    font-size: clamp(11px,1.1vw,13px);
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    pointer-events: none;
}

.dw-hero__eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    flex: none;
}

.dw-hero .if-hero__title,
.dw-hero .if-hero__body {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .72s cubic-bezier(.16,1,.3,1), transform .72s cubic-bezier(.16,1,.3,1);
}

.dw-hero .dw-hero__slide--active .if-hero__title,
.dw-hero .dw-hero__slide--active .if-hero__body {
    opacity: 1;
    transform: translateY(0);
}

.dw-hero .dw-hero__slide--active .if-hero__body {
    transition-delay: .12s;
}

.dw-hero__progress {
    position: absolute;
    inset: 0;
    display: block;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
}

.dw-hero .if-hero__dot--active .dw-hero__progress {
    animation: dw-hero-progress 5s linear forwards;
}

.hp-bg-canvas > .if-hero.dw-hero .if-hero__dot {
    position: relative;
    width: clamp(42px, 4.4vw, 64px);
    height: 2px;
    flex: 0 0 64px;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    background: rgba(255,255,255,.22);
    transform: none;
    border: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.hp-bg-canvas > .if-hero.dw-hero .dw-hero__eyebrow {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    margin: 0 0 clamp(14px,2vh,22px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .72s cubic-bezier(.16,1,.3,1), transform .72s cubic-bezier(.16,1,.3,1);
}
.hp-bg-canvas > .if-hero.dw-hero .dw-hero__slide--active .dw-hero__eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.hp-bg-canvas > .if-hero.dw-hero .dw-hero__slide--active .if-hero__title {
    transition-delay: .1s;
}

.hp-bg-canvas > .if-hero.dw-hero .dw-hero__slide--active .if-hero__body {
    transition-delay: .2s;
}

/* Keep all slide copy in an overlaid grid row sized to the tallest slide. */
.hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: min(100%, 1704px);
    padding: 0 clamp(24px, 4.5vw, 72px);
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__track-wrapper {
        position: relative;
        z-index: auto;
        height: auto;
        overflow: visible;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__track {
        position: relative;
        display: grid;
        width: 100%;
        height: auto;
        transform: none !important;
        transition: none !important;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__slide {
        position: relative;
        inset: auto;
        grid-area: 1 / 1;
        display: flex;
        align-items: flex-start;
        width: 100%;
        height: auto;
        min-height: 0;
        background: transparent;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__content {
        width: 100%;
        max-width: min(100%, 50ch);
        margin: 0;
        padding: 0;
        font-family: inherit;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .dw-hero__eyebrow,
    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__title,
    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body {
        font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__dots {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: clamp(16px, 2vw, 24px);
        margin-top: clamp(24px, 3vh, 36px);
        z-index: 4;
    }


/* Finmarket FAQ */

.hp-cta {
    padding: clamp(56px, 9vh, 110px) clamp(20px, 4.5vw, 72px) clamp(64px, 10vh, 130px);
    background: #111;
}

.hp-faq {
    max-width: 1100px;
    margin: 0 auto;
}

    .hp-faq .hp-faq__eyebrow {
        margin: 0;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .5);
    }

    .hp-faq h3 {
        margin: clamp(12px, 2vh, 20px) 0 0;
        font-size: clamp(24px, 2.8vw, 40px);
        font-weight: 600;
        line-height: 1.08;
        letter-spacing: -0.038em;
        opacity: 1;
        transform: none;
        color: white;
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

.hp-faq__list {
    margin-top: clamp(26px, 3.6vh, 44px);
}

    .hp-faq__list details {
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

        .hp-faq__list details:last-child {
            border-bottom: 1px solid rgba(255,255,255,.16);
        }

.hp-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 23px 0;
    color: #fff;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

    .hp-faq__question::-webkit-details-marker {
        display: none;
    }

.hp-faq__icon--chevron {
    display: none;
}

.hp-faq__icon--plus {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

    /* Centred with inset + margin rather than a translate: transforms skip pixel snapping, so the 1px bars
       landed on half pixels in some rows and rendered thinner. The 15px (odd) box keeps both bars centred on whole pixels,
       and no border-radius: on a 1px bar it dims one end only, which makes the cross look off-centre. */
    .hp-faq__icon--plus::before,
    .hp-faq__icon--plus::after {
        position: absolute;
        inset: 0;
        margin: auto;
        width: 9px;
        height: 1px;
        background: currentColor;
        content: "";
    }

    .hp-faq__icon--plus::after {
        width: 1px;
        height: 9px;
    }

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

.hp-faq__answer {
    padding: 0 36px 24px 0;
}

    .hp-faq__answer p {
        color: rgba(255,255,255,.72);
        line-height: 1.7;
        margin: 0;
    }

@keyframes dw-hero-progress {
    to {
        transform: scaleX(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes hp-scroll-fade {
    0%, 100% {
        opacity: 0.15;
    }

    50% {
        opacity: 1;
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1480px) {
    .header-container {
        padding: 16px var(--site-padding-mobile);
        gap: 0;
    }

    .nav-link {
        font-size: 16px;
    }

    .lang-switch a {
        padding: 6px 14px;
    }

    .finmarket-body .navbar-collapse {
        display: none;
    }

    .finmarket-body .header-action {
        display: none;
    }


    .finmarket-body .mobile-lang-switch .lang-switch {
        display: none;
    }

    .finmarket-body .mobile-lang-switch .lang-dropdown {
        display: block;
    }

    .finmarket-body .mobile-lang-switch {
        display: flex;
        padding: 24px;
        margin-top: auto;
    }

    .finmarket-body .hamburger-wrapper {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        z-index: 1002;
        position: relative;
    }

    .finmarket-body #mobileNav.navbar-collapse {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--color-cream);
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        overflow-y: auto;
        transform: none;
        left: 0;
        justify-content: space-between;
    }

        .finmarket-body #mobileNav.navbar-collapse.open {
            display: flex;
        }

        .finmarket-body #mobileNav.navbar-collapse::before {
            content: '';
            display: block;
            height: 64px;
            flex-shrink: 0;
        }

    .finmarket-body .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0 32px;
        width: 100%;
        list-style: none;
        margin: 0;
    }

    .finmarket-body .navbar-collapse .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(109, 54, 30, 0.08);
    }

    .finmarket-body .navbar-collapse .nav-link {
        color: var(--color-brand);
        font-size: 16px;
        font-weight: 600;
        padding: 14px 24px;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    .finmarket-body .navbar-collapse .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(109, 54, 30, 0.04);
        padding: 0;
        transform: none;
        min-width: unset;
        width: 100%;
    }

    .finmarket-body .navbar-collapse .nav-item.open > .dropdown-menu {
        display: block;
    }

    .finmarket-body .navbar-collapse .dropdown-item {
        font-size: 14px;
        padding: 11px 36px;
        color: var(--color-brand-mid);
        border-bottom: 1px solid rgba(109, 54, 30, 0.06);
        white-space: break-spaces;
        background: var(--color-cream);
    }

    .finmarket-body.mobile-menu-open .header-logo .colored-logo, .finmarket-body.mobile-menu-open .header-logo-finmarket .colored-logo {
        display: block !important;
        z-index: 9999;
    }

    .finmarket-body.mobile-menu-open .header-logo .white-logo, .finmarket-body.mobile-menu-open .header-logo-finmarket .white-logo {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .navbar-collapse {
        display: none;
    }

    .header-container {
        padding: 16px var(--site-padding-mobile);
        gap: 0;
    }

    .header-logo, .header-logo-finmarket {
        flex: 0 0 auto;
    }

        .header-logo img, .header-logo-finmarket img {
            height: 36px;
        }

    .header-action {
        display: none;
    }

    .mobile-lang-switch .lang-switch {
        display: none;
    }

    .mobile-lang-switch .lang-dropdown {
        display: block;
    }

    .mobile-lang-switch {
        display: flex;
        padding: 24px;
        margin-top: auto;
    }

    .hamburger-wrapper {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        z-index: 1002;
        position: relative;
    }

    #mobileNav.navbar-collapse {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--color-cream);
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        overflow-y: auto;
        transform: none;
        left: 0;
        justify-content: space-between;
    }

        #mobileNav.navbar-collapse.open {
            display: flex;
        }

        #mobileNav.navbar-collapse::before {
            content: '';
            display: block;
            height: 64px;
            flex-shrink: 0;
        }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0 32px;
        width: 100%;
        list-style: none;
        margin: 0;
    }

    .navbar-collapse .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(109, 54, 30, 0.08);
    }

    .navbar-collapse .nav-link {
        color: var(--color-brand);
        font-size: 16px;
        font-weight: 600;
        padding: 14px 24px;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    .navbar-collapse .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(109, 54, 30, 0.04);
        padding: 0;
        transform: none;
        min-width: unset;
        width: 100%;
    }

    .navbar-collapse .nav-item.open > .dropdown-menu {
        display: block;
    }

    .navbar-collapse .dropdown-item {
        font-size: 14px;
        padding: 11px 36px;
        color: var(--color-brand-mid);
        border-bottom: 1px solid rgba(109, 54, 30, 0.06);
        white-space: break-spaces;
        background: var(--color-cream);
    }

    body.mobile-menu-open .header-logo .colored-logo, body.mobile-menu-open .header-logo-finmarket .colored-logo {
        display: block !important;
        z-index: 9999;
    }

    body.mobile-menu-open .header-logo .white-logo, body.mobile-menu-open .header-logo-finmarket .white-logo {
        display: none !important;
    }

    .hp-bg-canvas {
        background-attachment: scroll;
    }

    .hp-hero {
        min-height: 85svh;
        min-height: 85dvh;
    }

    .hp-hero,
    .hp-midcta {
        background-attachment: scroll;
    }

    .hp-midcta {
        padding-top: 60px;
    }

    .hp-services__grid {
        grid-template-columns: 1fr;
    }

    .hp-partners__track {
        gap: 40px;
    }

    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: flex;
        gap: 24px;
        padding: 0 var(--site-padding-mobile) 40px;
    }

    .footer-col-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer-col-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: end;
        justify-content: space-between;
    }

        .footer-col-right .right-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

            .footer-col-right .right-icons .footer-lang {
                place-self: flex-end;
            }

    .footer-col-left .footer-address {
        align-items: flex-start;
    }

        .footer-col-left .footer-address p {
            line-height: 1.1;
        }

    .footer-address .fa-map-marker {
        flex-shrink: 0;
    }

    .footer-mobile .footer-links {
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
    }

    .if-hero__image-panel {
        max-width: 100%;
        clip-path: none;
        height: 300px;
    }

    .hp-btn {
        padding: 6px 30px;
    }

    .footer-links a, .footer-tagline p, .footer-tagline a, .footer-address p, .footer-address a, .footer-bottom p {
        font-size: 14px;
    }

    .hp-faq__question {
        display: block;
        padding: 0.2rem 0;
        font-weight: 600;
    }

    .hp-faq__icon {
        display: none;
    }

    .dw-hero__eyebrow {
        top: 27%;
        left: 24px;
    }

    .dw-hero .if-hero__content {
        padding-inline: 24px;
    }

    .hp-bg-canvas > .if-hero.dw-hero .if-hero__dots {
        top: 72%;
        left: 24px;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy {
        top: 50%;
    }
}

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

    .hp-faq__question {
        padding: 20px 0;
        display: flex;
    }

    body.digitalWallet .site-header .header-container {
        padding: 18px 20px;
    }

    .dw-hero__eyebrow {
        font-size: 10px;
        letter-spacing: .14em;
    }

    .hp-bg-canvas > .if-hero.dw-hero .if-hero__dot {
        width: 48px;
        flex-basis: 48px;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy {
        top: 49%;
        padding-inline: 24px;
    }

        .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__dots {
            margin-top: 24px;
        }
}

/* Mobile hero (Finmarket pages): the copy is set smaller and pinned to the
   bottom, with the shade only behind it, so the photo stays visible. Same
   approach as the Finarch heroes (hero.css --copy-bottom). */
@media (max-width: 767px) {
    .hp-bg-canvas > .if-hero.dw-hero {
        --dw-hero-shadow-color: #1d0c14;
    }

    .hp-bg-canvas > .if-hero.dw-hero::before {
        /* Full strength at the default intensity (.78), scaled down proportionally below it. */
        opacity: min(1, calc(var(--dw-hero-shadow-opacity) / .78));
        background:
            /* just enough behind the header to keep the logo and menu legible */
            linear-gradient(180deg, rgba(12, 6, 9, .5) 0%, rgba(12, 6, 9, 0) 18%),
            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%);
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy {
        top: auto;
        bottom: clamp(28px, 5svh, 48px);
        transform: translateX(-50%);
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .dw-hero__eyebrow {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: .16em;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__title {
        font-size: 26px;
        line-height: 1.05;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__body {
        margin-top: 12px;
        font-size: 13.5px;
        line-height: 1.55;
    }

    .hp-bg-canvas > .if-hero.dw-hero .dw-hero__copy .if-hero__dots {
        margin-top: 18px;
    }
}



@media (max-width: 400px) {
    .header-logo img, .header-logo-finmarket img {
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dw-card {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dw-hero .if-hero__title,
    .dw-hero .if-hero__body {
        transition: none;
    }

    .dw-hero .if-hero__dot--active .dw-hero__progress {
        animation: none;
        transform: scaleX(1);
    }

    .dw-hero,
    .dw-hero__background {
        transition: none;
    }
}
