/*
 * Shared site chrome for the landing page and the web panel:
 * header, footer, logo, language switch, buttons and animations.
 */
:root {
    --navy: #020146;
    --navy-2: #04065B;
    --yellow: #C1F11E;
    --ghost: #F8F8FF;
    --line: #E4E4EE;
    --muted: #4B4A7A;
    --green: #21A65F;
    --green-bg: #D2F2DF;
    --radius: 14px;
    --wrap: 1180px;
    --display: 'Unbounded', 'Montserrat', sans-serif;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --header-h: 83px;
}

.lp-header,
.lp-footer {
    font-family: 'Montserrat', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* :not(.lp-btn) keeps buttons out of it; the extra class also beats Bootstrap's a:hover colour */
.lp-header a:not(.lp-btn),
.lp-footer a:not(.lp-btn) {
    color: inherit;
    text-decoration: none;
}

.lp-header p,
.lp-footer p {
    margin: 0;
}

.lp-header button,
.lp-footer button {
    font: inherit;
    cursor: pointer;
}

body.is-locked {
    overflow: hidden;
}

/* ---------- Buttons ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 6px;
    border: 0;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    transition: transform .3s var(--ease-out), box-shadow .3s;
}

.lp-btn--yellow,
.lp-btn--yellow:hover {
    background: var(--yellow);
    color: var(--navy);
}

.lp-btn--yellow:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(193, 241, 30, .45);
}

.lp-btn--block {
    width: 100%;
    padding: 16px;
}

/* ---------- Animated logo ---------- */
.lp-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.lp-logo img,
img.lp-logo {
    height: 30px;
    width: auto;
    display: block;
}

.lp-logo--navy,
img.lp-logo--navy,
.lp-logo--navy .lg-logo {
    height: 44px;
}

.lg-logo {
    height: 30px;
    width: auto;
    max-width: 100%;
    display: block;
    overflow: visible;
}

.lg-logo--light {
    color: var(--yellow);
}

.lg-logo--dark {
    color: var(--navy);
}

.lg-pin {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: lgPinDrop .8s .1s var(--ease-out) both;
}

.lg-road {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: lgRoad .9s .6s ease-in-out forwards;
}

.lg-dash {
    opacity: 0;
    animation: lpFade .4s 1.4s forwards;
}

.lg-word {
    clip-path: inset(0 100% 0 0);
    animation: lgWord .9s .5s var(--ease-out) forwards;
}

.lp-logo:hover .lg-pin {
    animation: lgPinHop .6s var(--ease-out);
}

@keyframes lgPinDrop {
    0% {
        transform: translateY(-60%) scale(.6);
        opacity: 0;
    }

    60% {
        transform: translateY(6%) scale(1.05, .95);
        opacity: 1;
    }

    100% {
        transform: none;
        opacity: 1;
    }
}

@keyframes lgPinHop {
    40% {
        transform: translateY(-14%);
    }

    70% {
        transform: translateY(3%) scale(1.04, .96);
    }
}

@keyframes lgRoad {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes lgWord {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes lpFade {
    to {
        opacity: 1;
    }
}

/* ---------- Header ---------- */
.lp-header {
    background: var(--navy);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 40px 112px;
    transition: padding .35s var(--ease-out), box-shadow .35s;
}

.lp-header__nav {
    display: flex;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.lp-header__nav a,
.lp-header__login {
    position: relative;
    transition: color .25s;
}

.lp-header__nav a::after,
.lp-header__login::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease-out);
}

.lp-header__nav a:hover,
.lp-header__nav a.is-active,
.lp-header__login:hover {
    color: var(--yellow);
}

.lp-header__nav a:hover::after,
.lp-header__nav a.is-active::after,
.lp-header__login:hover::after {
    transform: scaleX(1);
}

.lp-header__end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.lp-header__cta {
    font-size: 16px;
    padding: 14px 24px;
}

.lp-header__login {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

/* Web panel: fixed header, same height as the old navbar so page offsets still line up */
.lp-header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--header-h);
    padding: 0 48px;
}

.lp-header--fixed .lg-logo {
    height: 26px;
}

.lp-header--fixed .lp-header__cta {
    padding: 12px 20px;
    font-size: 15px;
}

.lp-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(2, 1, 70, .25);
}

/* Round icon buttons (dark mode, profile) */
.lp-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, color .25s, transform .25s var(--ease-out);
}

.lp-icon-btn:hover,
.lp-icon-btn.is-active {
    background: var(--yellow);
    color: var(--navy);
    border-color: var(--yellow);
    transform: translateY(-1px);
}

.lp-icon-btn .icon-moon {
    display: none;
}

[data-theme="dark"] .lp-icon-btn .icon-sun {
    display: none;
}

[data-theme="dark"] .lp-icon-btn .icon-moon {
    display: block;
}

.lp-profile-menu {
    position: relative;
}

.lp-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    z-index: 5;
    background: #fff;
    color: var(--navy);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 5px 0 var(--navy), 0 20px 40px rgba(2, 1, 70, .18);
    animation: lpDrop .25s var(--ease-out);
}

.lp-header .lp-dropdown .dropdown-item {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
}

.lp-header .lp-dropdown .dropdown-item:hover {
    background: var(--ghost);
    color: var(--navy);
}

.lp-dropdown form {
    margin: 0;
}

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

/* ---------- FR | EN language switch ---------- */
.lp-lang {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.lp-lang a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1;
    color: inherit;
    transition: background .25s, color .25s;
}

.lp-lang a:hover {
    color: var(--yellow);
}

.lp-lang a.is-active {
    background: var(--yellow);
    color: var(--navy);
}

/* ---------- Mobile menu ---------- */
.lp-burger {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 60;
}

.lp-burger span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform .3s, opacity .3s;
}

.lp-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lp-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.lp-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lp-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 100px 24px 32px;
    font-size: 22px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2rem);
    transition: all .5s var(--ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lp-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lp-menu>* {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s, transform .4s var(--ease-out);
}

.lp-menu.is-open>* {
    opacity: 1;
    transform: none;
}

.lp-menu.is-open> :nth-child(2) {
    transition-delay: .05s;
}

.lp-menu.is-open> :nth-child(3) {
    transition-delay: .1s;
}

.lp-menu.is-open> :nth-child(4) {
    transition-delay: .15s;
}

.lp-menu.is-open> :nth-child(5) {
    transition-delay: .2s;
}

.lp-menu.is-open> :nth-child(n+6) {
    transition-delay: .25s;
}

.lp-menu>a.is-active {
    color: var(--yellow);
}

.lp-menu .lp-lang {
    align-self: flex-start;
}

.lp-menu .lp-lang a {
    font-size: 16px;
    padding: 8px 16px;
}

.lp-menu .lp-btn {
    margin-top: 12px;
    font-size: 18px;
    padding: 16px;
}

/* ---------- Footer ---------- */
.lp-footer {
    position: relative;
    background: var(--navy);
    color: #fff;
    border-radius: 40px 40px 0 0;
    margin-top: -90px;
    padding: 60px 144px 40px;
}

/* Landing page footer with organic wave curve */
.lp-footer--curved {
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding-top: 40px !important;
    position: relative;
}
.lp-footer__curve {
    position: absolute;
    top: -83px;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.lp-footer__curve svg {
    width: 100%;
    height: clamp(52px, 6vw, 84px);
    display: block;
}

.lp-footer--panel {
    margin-top: 80px;
}

.lp-footer__tag {
    text-align: center;
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

.lp-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 36px;
    margin-top: 60px;
}

.lp-footer .lg-logo {
    height: 40px;
}

.lp-footer__cols h4 {
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #fff;
    letter-spacing: -0.01em;
}

.lp-footer__cols a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    transition: color .25s, transform .25s var(--ease-out);
}

.lp-footer__cols a:hover {
    transform: translateX(4px);
}

.lp-footer__cols a:hover,
.lp-footer__bottom a:hover {
    color: var(--yellow);
}

.lp-footer__cols .lp-i {
    width: 18px;
}

.lp-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.lp-footer__bottom small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 8px;
}

.lp-footer__bottom small .lp-i {
    width: 14px;
}

.lp-footer__bottom span {
    font-size: 15px;
}

.lp-footer__bottom nav {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 17px;
    font-weight: 500;
}

/* ---------- Scroll reveal ---------- */
.lp-reveal,
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.lp-reveal.is-in,
[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.no-js .lp-reveal,
.no-js [data-reveal] {
    opacity: 1;
    transform: none;
}

/* ---------- Web panel page animations ---------- */
.site-panel main {
    animation: lpPageIn .6s var(--ease-out) both;
}

@keyframes lpPageIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.site-panel .card,
.site-panel .btn {
    transition: transform .3s var(--ease-out), box-shadow .3s;
}

.site-panel .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(2, 1, 70, .12);
}

.site-panel .btn-primary:hover,
.site-panel .btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .lp-header {
        padding: 32px 48px;
    }

    .lp-header--fixed {
        padding: 0 32px;
    }

    .lp-footer {
        padding: 60px 64px 40px;
    }
}

@media (max-width: 1024px) {
    .lp-header {
        grid-template-columns: 1fr auto;
        padding: 24px;
    }

    .lp-header--fixed {
        padding: 0 24px;
    }

    .lp-header__nav,
    .lp-header__cta,
    .lp-header__login,
    .lp-header__end>.lp-lang {
        display: none;
    }

    .lp-burger {
        display: block;
    }
}

@media (max-width: 767px) {
    .lp-header {
        padding: 20px 16px;
    }

    .lp-header--fixed {
        height: 68px;
        padding: 0 16px;
    }

    .lp-header .lg-logo {
        height: 22px;
    }

    .lp-header__end {
        gap: 10px;
    }

    .lp-icon-btn {
        width: 36px;
        height: 36px;
    }

    .lp-footer {
        padding: 50px 24px 30px;
        border-radius: 28px 28px 0 0;
        margin-top: -40px;
    }
    .lp-footer--curved {
        border-radius: 0 !important;
        margin-top: 0 !important;
        padding-top: 24px !important;
    }
    .lp-footer--curved .lp-footer__curve {
        top: -51px;
    }

    .lp-footer--panel {
        margin-top: 60px;
    }

    .lp-footer__cols {
        grid-template-columns: 1fr;
        margin-top: 50px;
        gap: 30px;
    }

    .lp-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-footer__bottom nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lp-reveal,
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lg-pin,
    .lg-dash,
    .lg-word,
    .lg-road,
    .site-panel main {
        animation: none;
        opacity: 1;
        clip-path: none;
        stroke-dashoffset: 0;
    }

    .lp-menu>* {
        transition: none;
    }
}

/* Logos further down the page animate when they scroll into view, not on load */
.lp-reveal:not(.is-in) .lg-logo *,
[data-reveal]:not(.is-in) .lg-logo * {
    animation-play-state: paused;
}