/* Generated by ParaType (http://www.paratype.com)*/
/* Font PT Root UI: Copyright ? ParaType, 2018. All rights reserved.*/
/*@font-face {
    font-family: 'PTRootUIWebLight';
    src: url('/fonts/pt-root-ui_light.woff2') format('woff2'),
    url('/fonts/pt-root-ui_light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'PTRootUIWebRegular';
    src: url('/fonts/pt-root-ui_regular.woff2') format('woff2'),
    url('/fonts/pt-root-ui_regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}*/
@font-face {
    font-family: 'PT Root UI';
    src: url('/fonts/pt-root-ui_medium.woff2') format('woff2'),
    url('/fonts/pt-root-ui_medium.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('/fonts/pt-root-ui_bold.woff2') format('woff2'),
    url('/fonts/pt-root-ui_bold.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

:root {
    --md-ref-typeface-brand: 'PT Root UI';
    --md-ref-typeface-plain: 'PT Root UI';

    --md-sys-color-primary: #14D081;
    --md-sys-color-secondary: tomato;
    --md-filled-button-label-text-color: #000;
}

.promo {
    --md-sys-typescale-body-medium-size: 17px;
    --md-sys-typescale-body-medium-line-height: 17px;
    --md-sys-typescale-body-medium-weight: 500;
    --md-sys-typescale-body-large-size: 34px;
    --md-sys-typescale-body-large-line-height: 34px;

    --md-filled-button-container-height: 30px;
    --md-filled-button-container-shape: 6px;

    .card header {
        --md-filled-button-container-height: 20px;
        --md-filled-button-container-shape: 4px;
        --md-filled-button-label-text-size: 10px;

        md-filled-button {
            padding: 0 14px;
        }
    }
}

main {
    --md-sys-typescale-body-small-size: 16px;
    --md-sys-typescale-body-small-line-height: 24px;
    --md-sys-typescale-body-medium-size: 18px;
    --md-sys-typescale-body-medium-weight: 400;
    --md-sys-typescale-body-medium-line-height: 18px;
    --md-filled-button-container-height: 73px;
    --md-filled-button-container-shape: 16px;
    --md-filled-button-label-text-size: 24px;
    --md-checkbox-container-size: 24px;
    --md-checkbox-icon-size: 24px;

    @media (max-width: 1024px) {
        --md-filled-button-container-height: 60px;
        --md-filled-button-label-text-size: 17px;
        --md-sys-typescale-body-small-size: 11px;
        --md-sys-typescale-body-small-line-height: 18px;
        --md-checkbox-container-size: 17px;
        --md-checkbox-icon-size: 17px;
    }

    md-outlined-text-field {
        --md-outlined-field-top-space: 36px;
        --md-outlined-field-bottom-space: 35px;
        --md-outlined-field-container-shape-start-start: 16px;
        --md-outlined-field-container-shape-start-end: 16px;
        --md-outlined-field-container-shape-end-start: 16px;
        --md-outlined-field-container-shape-end-end: 16px;
        --md-outlined-field-content-size: 24px;
        --md-outlined-field-label-text-size: 24px;
        --md-outlined-field-label-text-line-height: 28px;
        --md-icon-size: 28px;
        --md-outlined-field-outline-color: rgba(233, 233, 233, 1);

        @media (max-width: 1024px) {
            --md-outlined-field-container-shape-start-start: 11px;
            --md-outlined-field-container-shape-start-end: 11px;
            --md-outlined-field-container-shape-end-start: 11px;
            --md-outlined-field-container-shape-end-end: 11px;
            --md-outlined-field-top-space: 21px;
            --md-outlined-field-bottom-space: 21px;
            --md-outlined-field-label-text-size: 17px;
        }
    }
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    display: flex;

    background: url("/images/promo/promo-background.png");
    background-size: cover;

    @media (max-width: 1024px) {
        flex-direction: column;
    }
}

body > section {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 56px 0;

    &:not(.promo) {
        background: #fff;
        @media (max-width: 1024px) {
            margin: 21px;
            border-radius: 27px;
        }
    }
}

.promo {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    &::-webkit-scrollbar {
        display: none;
    }

    @media (max-width: 1024px) {
        flex-direction: row;
        padding: 16px 0 0;
        left: 50%;
        translate: -50% 0;
        position: relative;
        width: 384px;
    }

    .card {
        width: min(428px, 100%);
        border-radius: 14px;
        flex: 0 0 auto;
        opacity: 1;
        transition: opacity 300ms ease, scale 300ms ease; /*, margin 300ms ease;*/
        position: relative;
        contain: paint;
        background: #fff no-repeat right 0 bottom 0;
        padding: 12px;
        box-sizing: border-box;
        scroll-snap-align: center;
        scroll-snap-stop: always;

        header {
            display: flex;
            justify-content: space-between;

            > div {
                height: 16px;

                span {
                    font-size: 9px;
                    font-weight: 500;
                    display: inline-block;
                    vertical-align: middle;
                }

                img {
                    vertical-align: middle;
                    font-size: 8px;
                }
            }
        }

        section {
            p, > div {
                margin-block-start: 16px;
                margin-block-end: 16px;
                max-width: 318px;
            }

            a {
                display: inline-block;
            }

            > div {
                * {
                    margin-block: 0;

                    & + * {
                        margin-block-start: 8px;
                    }
                }
            }

            h1 {
                font-size: 2em;
            }

            h3 {
                font-size: 1.37em;
            }
        }

        footer {
            @media (max-width: 1024px) {
                display: flex;
                align-items: center;
                justify-content: space-between;
                p {
                    margin-block-start: 0;
                    margin-block-end: 0;
                }
            }
        }

        &.card-1 {
            background-image: linear-gradient(rgba(95, 138, 233, 0.38) 103px, #5F8AE9), url(/images/promo/chart-bar.png);
            background-blend-mode: soft-light;
            background-color: #D7E2FA;
        }

        &.card-2 {
            background-image: url(/images/promo/chat.png);
        }

        &.card-3 {
            background-image: url(/images/promo/clock.png), linear-gradient(rgba(21, 87, 60, 0) 46px, #15573C);
            background-blend-mode: multiply;
            background-color: #14D081;
            color: #fff;
            --md-sys-color-primary: #fff;
            --md-filled-button-hover-label-text-color: #14D081;
            --md-filled-button-focus-label-text-color: #14D081;
        }

        &.card-4 {
            background-image: url(/images/promo/logo-part.svg);
            background-blend-mode: exclusion;
            background-size: 500px;
            background-color: #003c30;
            color: #fff;
            --md-sys-color-primary: #fff;
            --md-filled-button-hover-label-text-color: #14D081;
            --md-filled-button-focus-label-text-color: #14D081;

            header {
                .proaction {
                    filter: invert(1);
                }
            }

            section {
                font-weight: 400;
            }

            h1 {
                color: #d0ec63;
                font-weight: 400;
            }

            h3 {
                font-weight: 400;
            }

            p {
                font-weight: 400;
                font-variant: small-caps;
            }

            footer {
                --md-filled-button-container-color: #d0ec63;
                --md-filled-button-label-text-color: #003c30;
            }
        }
    }

    @media (min-width: 1025px) {
        &:has(.card:hover) {
            .card {
                &:not(:hover) {
                    opacity: .6;
                }

                &:hover {
                    opacity: 1;
                    scale: 1.1;
                    /*margin: 1em 0;*/
                }
            }
        }
    }

}

main {
    max-width: min(440px, 80%);
    align-items: stretch;

    h1 {
        font-size: 45px;
        text-align: center;
        line-height: 47.25px;
        margin-top: 76px;
        margin-bottom: 76px;
    }
}

main > header, section > footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;

    > div {
        display: flex;
        justify-content: space-between;
        margin-left: 1em;

        a {
            color: rgba(174, 174, 178, 1);
            line-height: 24px;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

.proaction {
    background: url(/images/logo/proaction.svg) no-repeat center;
    background-size: contain;
    display: inline-block;
    width: 62px;
    height: 12px;
}
