@font-face {
  font-family: 'FustatVariable';
  src: url('assets/fustat.ttf') format('truetype');
  font-weight: 200 800;
}

body, html {
    margin: 0;
    scrollbar-width: none;
    scroll-padding-top: calc(75px + 68px);

    @media (prefers-reduced-motion: no-preference) {
        scroll-behavior: smooth;
    }
}

body {
    background: white;
    font-family: 'FustatVariable', 'Arial', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    background-color: black;

    background:
        url('assets/mesh.svg') center -20px / max(100vw, 2220px) calc(max(100lvh, 1154.92px) + 20px),
        radial-gradient(1840.464px 1803.781px at calc(50% - 1922.832px) -19.0246px, #9860ff 19.15%, rgba(152, 96, 255, 0) 100%),
        radial-gradient(1867.68px 1830.451px at calc(50% + 2175.12px) 516.1534px, #56ada7 22.66%, rgba(86, 173, 167, 0) 100%);
    
    @media screen and (width <= 1440px) {
        background:
            url('assets/mesh.svg') center -20px / 2220px calc(max(100lvh, 1154.92px) + 20px),
            radial-gradient(127.81vw max(125lvh, calc(101.45vw * (1778/1440))) at -83.53vw calc(-1.07vw * (1778/1440)), #9860ff 19.15%, rgba(152, 96, 255, 0) 100%),
            radial-gradient(129.7vw max(125lvh, calc(102.95vw * (1778/1440))) at 201.05vw calc(29.03vw * (1778/1440)), #56ada7 22.66%, rgba(86, 173, 167, 0) 100%);
    }

    background-repeat: no-repeat;

    @media print {
        background: none;
    }
}

h2 {
    margin: 0;
    font-size: 48px;
    line-height: 60px;
    font-weight: 600;
    text-align: center;
}

h3 {
    margin: 0;
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
}

hgroup p {
    margin: 0;
}

hgroup div {
    @media screen and (width <= 768px) {
        p {
            display: contents;
        }
    }
}

:dir(rtl) .icon.directional {
    transform-origin: center;
    transform: scaleX(-1);
}

main > section {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-self: stretch;
    align-items: center;
    row-gap: 56px;
    
    & > hgroup:first-child {
        width: min(100%, 768px);
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;

        p {
            width: min(100%, 536px);
            text-wrap: pretty;
        }
    }
}

main > section > hgroup > h2, main > section > h2:first-child {
    @media print {
        margin-block-start: 32px;
    }
}

nav {
    position: sticky;
    inset: 0 0 auto;
    z-index: 1; 

    display: flex;
    min-height: 75px;
    width: 100%;
    justify-content: center;

    box-sizing: border-box;
    background: rgb(255 255 255 / 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0px 16px 16px -8px rgba(12, 12, 13, 0.075), 0px 4px 4px -4px rgba(12, 12, 13, 0.025);

    #nav-grid {
        display: grid;
        width: min(100%, 1440px);
        grid-template-columns: 1fr auto 1fr;
        font-size: 14px;
        padding: 14.5px 34px;
        box-sizing: border-box;

        @media (width <= 768px) {
            padding-inline: 22px;
        }
    }

    ul {
        position: relative;
        list-style-type: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 22px;
        margin: 0 auto;
        padding: 0;

        &::before {
            position: absolute;
            content: "";
            height: calc(100% + 29px);
            width: 200%;
            background: radial-gradient(circle farthest-side at center, rgb(255 255 255 / 0.67) 50%, rgb(255 255 255 / 0) 100%);
            inset: -14.5px -50%;
            z-index: -1;
        }
    }

    li a {
        text-decoration: none;
        color: #000 !important;
        padding: 8px;
        border-radius: 4px;
        transition: background 125ms ease-in-out;

        &:hover, &:focus {
            background: rgb(0 0 0 / 5%);
        }

        &:active {
            background: rgb(0 0 0 / 10%);
        }
    }

    .nav-lockup {
        display: flex;
        align-items: center;
        grid-column: 1;

        a {
            display: flex;
            gap: 10.182px;
            padding: 6.5px;
            margin: -6.5px;
            border-radius: 4px;
        }
        /* @media screen and (width <= 768px) {
            .wordmark {
                display: none;
            }
        } */
    }

    .nav-demo {
        display: flex;
        justify-content: end;
        grid-column: 3;
    }

    @media screen and (width <= 768px) {
        #nav-grid {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }

        ul {
            display: none;
        }
    }

    @media print {
        & {
            display: none;
        }
    }
}

.demo-button {
    position: relative;
    display: inline-block;
    background: black;
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    padding: 13px 23.5px;
    border-radius: 4px;
    white-space: nowrap;
    width: max-content;
    overflow: hidden;

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        transition: background 125ms ease-in-out;
    }

    &:hover::before, &:focus::before {
        background: rgb(255 255 255 / 15%);
    }

    &:active::before {
        background: rgb(0 0 0 / 10%);
        transition: none;
    }
}

.faq-button {
    display: inline-block;
    background: transparent;
    color: black !important;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    padding: 13px 23.5px;
    border: 2px solid #000;
    box-sizing: border-box;
    border-radius: 4px;
    white-space: nowrap;
    width: max-content;
    transition: background 125ms ease-in-out;

    &:hover, &:focus {
        background: rgb(0 0 0 / 5%);
    }

    &:active {
        background: rgb(0 0 0 / 10%);
        transition: none;
    }
}

a:focus-visible {
    outline: 2px solid #9860ff;
}

main {
    margin: 0 auto;
    width: min(100%, 1440px);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 96px; */
    gap: 128px;
    padding: 0 calc(32px + clamp(0px, (32px * ((100vw - 768px) / (1024px - 768px))), 32px)); /** At 425, we subtract 32. At 1024, we subtract 0. **/
    box-sizing: border-box;
    margin-block-start: 96px;

    @media print {
        margin-block-start: 32px;
        gap: 32px;
    }
}

hgroup#hero {
    width: min(100%, 546px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;

    h1 {
        font-size: 57px;
        line-height: 64px;
        font-weight: 700;
        margin: 0;
    }

    p {
        margin: 0;
        font-size: 16px;
        text-wrap: pretty;
    }

    @media print {
        a {
            display: none;
        }
    }
}

figure#dashboard {
    margin: 0;
    width: min(1025px, 100%);
    display: flex;
    flex-direction: column;
    align-items: normal;
    align-self: auto;
    row-gap: 13px;
    margin-block-start: -32px;

    break-inside: avoid;

    @media print {
        margin-block-start: 0px;
    }

    #stats {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        column-gap: 13px;

        .stats-card {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 20px;
            border: 1px solid rgb(0 0 0 / 0.05);
            border-radius: 7.83px;
            background: rgb(255 255 255 / 0.5);
            backdrop-filter: blur(6px);

            /**
             * Chrome is exhibiting very bizarre, broken behavior with backdrop-filter.
             * Whenever the page is resized and one of the elements with a backdrop blur
             * disappears, then reappears, all while the element is scrolled out of the
             * viewport, the content, border, and border-radius don't render once the
             * element is scrolled back into view--until the page is resized again while
             * the element IS in view. The lack of border and border-radius, in
             * particular, makes me think this is a compositing issue, where the
             * background is being sampled and the blur computed, but then, because the
             * element is out of view, nothing else is being drawn, and this incomplete
             * render pass is then being cached until the page reflows.
             * 
             * There's nothing I can really do here, apart from remove the backdrop
             * filter, which I don't want to do because it compromises the design vision.
             * Fortunately, this seems to be Chromium exclusive, and on the rare
             * occasion a user actually does trigger this, it will likely be on mobile,
             * where viewport resizing is very limited, generally only happening on
             * device rotation.
             */

            font-size: 11.33px;
            line-height: 16.19px;
            color: #4a5565;

            .label {
                display: flex;
                flex-direction: row;
                gap: 5px;
                line-height: 18px;

                svg {
                    color: #9860ff;
                }
            }

            .value {
                margin: 0;
                color: #0a0a0a;
                font-size: 29.15px;
                line-height: 32.39px;
            }

            .trend {
                display: flex;
                flex-direction: row;
                gap: 3.24px;
                margin-block-end: -2.5px;
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 4px;

                &.increasing {
                    color: #21cc8a;
                }

                svg {
                    margin-block-start: -1px;
                }
            }

            @media screen and (width <= 768px) {
                &.mids {
                    display: none;
                }
            }

            @media screen and (width <= 425px) {
                &.volume {
                    display: none;
                }
            }
        }
    }

    #intel {
        display: grid;
        padding: 26.72px;
        border: 1px solid rgb(0 0 0 / 0.05);
        border-radius: 7.83px;
        background: rgb(255 255 255 / 0.5);
        background-clip: border-box;
        backdrop-filter: blur(6px);
        gap: 19px;

        #header {
            display: grid;
            grid-template-rows: auto auto;
            grid-template-columns: 1fr auto;
            column-gap: 9.72px;

            hgroup {
                display: grid;
                grid-row: 1 / 3;
                grid-template-rows: subgrid;
                grid-template-columns: subgrid;
            }

            .title {
                margin: 0;
                font-size: 16.19px;
                line-height: 22.67px;
                font-weight: normal;
                color: #0a0a0a;
                text-align: start;

                grid-row: 1;
                grid-column: 1;
            }

            .description {
                margin: 0;
                font-size: 11.33px;
                line-height: 16.19px;
                color: #4a5565;
                text-wrap: pretty;

                grid-row: 2;
                grid-column: 1;
            }

            .badge {
                grid-row: 1 / 3;
                grid-column: 2;
                align-self: center;

                padding: 9.72px;
                background: #f0fdf4;
                border: 0.81px solid #b9f8cf;
                border-radius: 8.1px;
                
                font-size:  11.33px;
                line-height: 16.19px;
                text-box-trim: trim-both;
                text-box-edge: cap alphabetic;
                color: #21cc8a;

                &::before {
                    content: "";
                    display: inline-block;
                    width: 6.48px;
                    height: 6.48px;
                    margin-inline-end: 6.48px;
                    border-radius: 9999px;
                    background: currentColor;
                }
            }
        }

        #transaction {
            display: grid;
            box-sizing: border-box;
            padding: 14.57px;
            grid-template-columns: auto 1fr;
            grid-auto-columns: auto;
            grid-template-rows: auto auto;
            column-gap: 11.33px;

            background: #faf5ff;
            border: 1px solid #e9d4ff;
            border-radius: 11.33px;

            .details {
                display: grid;
                grid-template-columns: subgrid;
                grid-template-rows: subgrid;
                grid-row: 1 / 3;
                grid-column: span 2;

                .icon {
                    width: 38.86px;
                    height: 38.86px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: #f3e8ff;
                    color: #9860ff;
                    border-radius: 8.1px;
                    grid-row: 1 / 3;
                }
            }

            .destination {
                display: grid;
                grid-template-columns: subgrid;
                grid-template-rows: subgrid;
                grid-row: 1 / 3;
                grid-column: span 2;

                .value {
                    color: #9860ff;
                }

                .icon {
                    grid-row: 1 / 3;
                    grid-column: 2;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: #9860ff;
                }

                @media screen and (width <= 425px) {
                    & .label, & .value {
                        display: none;
                    }
                }
            }

            .label {
                color: #4a5565;
                font-size: 11.33px;
                line-height: 16.2px;
                align-self: end;
                grid-row: 1;
            }

            .value {
                font-size: 12.95px;
                font-weight: 500;
                line-height: 19.4px;
                color: #0a0a0a;
                align-self: start;
                overflow: hidden;
                grid-row: 2;
            }

            .label, .value {
                white-space: nowrap;
                text-overflow: ellipsis;
                text-box-trim: trim-both;
            }
        }

        #grid {
            display: grid;
            grid-template-rows: auto auto;
            grid-auto-flow: column;
            grid-auto-columns: 1fr;
            gap: 12.96px;

            .mid-row {
                display: grid;
                grid-column: 1 / 3;
                grid-row: span 1;
                grid-template-columns: 1fr;
                grid-template-rows: 1fr;
                grid-auto-columns: 1fr;
                grid-auto-flow: column;
                gap: 12.96px;
            }

            @media screen and (width <= 768px) {
                .mid-row > :nth-child(2) {
                    display: none;
                }
            }

            /* .mid-row:first-child .mid-card {
                grid-row: 1;
            } */

            .mid-card {
                display: flex;
                flex-direction: column;
                font-size: 9.72px;
                font-weight: normal;
                padding: 17.81px;
                box-sizing: border-box;
                row-gap: 9.91px;

                background: #f8faf9;
                border: 1px solid #e5e7eb;
                border-radius: 11.33px;

                &.selected {
                    padding: calc(18.17px);
                    position: relative;
                    inset-inline: calc(-4.435px + ((17.81px - 18.17px) / 2));
                    width: calc(100% + 8.87px);
                    background: #fff;
                    border: 1px solid #9860ff;
                    box-shadow: 0px 16px 16px -8px rgba(12, 12, 13, 0.1), 0px 4px 4px -4px rgba(12, 12, 13, 0.05);
                }

                .header {
                    display: flex;
                    flex-direction: column;
                    gap: 2px;

                    .title {
                        display: flex;
                        flex-direction: row;
                        gap: 10.61px;
                        font-size: 14.57px;
                        line-height: 22.7px;
                        font-weight: 500;
                        color: #0a0a0a;

                        .badge {
                            display: flex;
                            align-self: center;
                            background: #f3e8ff;
                            color: #9860ff;
                            font-weight: normal;
                            font-size: 9.72px;
                            line-height: 16.52px;
                            border-radius: 3px;
                            padding-inline: 6.925px;
                            text-box-edge: cap alphabetic;
                            text-box-trim: trim-both;
                            position: relative;
                            top: -1px;
                        }
                    }

                    .provider {
                        font-size: 11.33px;
                        line-height: 16.2px;
                        color: #4a5565;
                    }
                }

                .stats {
                    display: grid;
                    grid-template-rows: auto auto;
                    grid-auto-flow: column;
                    grid-auto-columns: 1fr;
                    column-gap: 4px;

                    & > div {
                        display: grid;
                        grid-row: 1 / 3;
                        grid-column: span 1;
                        grid-template-columns: 1fr;
                        grid-template-rows: subgrid;
                        row-gap: 4px;

                        .label {
                            line-height: 12.95px;
                            color: #6a7282;
                        }

                        .value {
                            margin: 0;
                            font-size: 16.19px;
                            line-height: 22.7px;
                            font-weight: 500;
                            color: #0a0a0a;

                            .stats div:first-child & {
                                color: var(--card-color);
                            }
                        }
                    }

                    @media screen and (width <= 425px) {
                        & > div:nth-child(2) {
                            display: none;
                        }
                    }
                }

                .health {
                    display: flex;
                    flex-direction: column;
                    row-gap: 9.71px;

                    .health-bar {
                        position: relative;
                        height: 6.61px;
                        background: #e5e7eb;
                        border-radius: 9999px;

                        .health-bar-value {
                            position: absolute;
                            inset: 0 auto 0 0;
                            border-radius: 9999px;
                            background: var(--card-color);
                        }
                    }

                    .subtitle {
                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;

                        .trend {
                            color: var(--card-color);
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            gap: 4px;

                            svg {
                                margin-block-start: -1px;
                            }
                        }
                        
                        .routing {
                            color: #9860ff;
                        }
                    }
                }
            }
        }

        @media screen and (width <= 500px) {
            #header .badge {
                display: none;
            }

            #transaction .details .icon {
                display: none !important;
            }
        }
    }
}

section#why {
    break-before: page;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    .headline {
        p {
            margin: 0;
            font-size: 16px;
            line-height: 24px;
            font-weight: normal;
            width: min(100%, 582px);
        }
    }

    .reasons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
        align-items: stretch;
        gap: 19px;

        .reason {
            flex-basis: calc((1440px - 128px - (2 * 19px)) / 3);
            display: flex;
            flex-direction: column;
            padding: 30px;
            /* gap: 88px; */
            gap: 45px;
            border: 1px solid #e1e1e1;
            border-radius: 10px;
            box-sizing: border-box;

            .icon {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 45px;
                height: 45px;
                border-radius: 7px;
                background: #f3e8ff;
                color: #9860ff;
                align-self: start;
                flex-shrink: 0;
            }

            hgroup {
                display: flex;
                flex-direction: column;
                /* gap: 5px; */
                gap: 10px;
            }

            p {
                margin: 0;
                color: #585858;
            }
        }

        @media screen and (width <= 1024px) {
             & {
                grid-template-columns: 1fr;
                grid-template-rows: auto auto auto;
            }
        }
    }
}

section#features {
    display: flex;
    flex-direction: column;
    break-before: page;

    .bento {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;

        .card {
            display: flex;
            flex-direction: row;
            background: #f8faf9;
            padding: 30px;
            border-radius: 10px;
            gap: 40px;
            max-width: min(100%, 721px);
            box-sizing: border-box;
            align-self: center;

            break-inside: avoid;

            hgroup {
                display: flex;
                flex-direction: column;
                gap: 10px;
                align-self: end;

                p {
                    color: #585858;
                    font-size: 16px;
                }
            }

            figure {
                margin: 0;
                align-self: center;
                max-width: 100%;
                display: flex;
                align-items: stretch;
                justify-content: stretch;

                img {
                    height: max(100%, 250px);
                    width: inherit;
                    object-fit: contain;
                    object-position: center;
                }
            }

            &.vertical {
                img {
                    max-height: 432px;
                }
            }
        }

        @media (width > 1440px) {
            & {
                display: grid;
                grid-template-rows: 1fr 1fr;
                grid-template-columns: 535px 1fr;
                grid-auto-flow: row;
                grid-auto-rows: auto;
            }

            .card {
                align-self: stretch;
            }

            .card.vertical {
                grid-row: 1 / 3;
                flex-direction: column;

                figure {
                    order: -1;
                    flex-grow: 1;
                }
            }
        }

        @media (width <= 1440px) {
            .card {
                flex-direction: column;

                figure {
                    order: -1;
                    flex-grow: 1;

                    img {
                        max-width: 100%;
                    }
                }
            }
        }
    }
}

section#how {
    align-self: stretch;
    display: flex;
    flex-direction: column;

    break-before: page;
    break-inside: avoid;

    --icon-size: 45px;
    --gutter-size: 67px;

    .step-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr var(--icon-size) 1fr var(--gutter-size) 1fr var(--icon-size) 1fr var(--gutter-size) 1fr var(--icon-size) 1fr;
        grid-template-rows: var(--icon-size) auto auto;
        column-gap: 10px;
        row-gap: 20px;
        padding-block: 30px;
    }

    .icon {
        width: var(--icon-size);
        height: var(--icon-size);
        border-radius: 5px;
        background: #eafbf9;
    }

    .arrow {
        position: relative;
        width: calc(100% - 66px);
        height: 2px;
        background: #e1e1e1;
        border-radius: 1px;
        align-self: center;
        justify-self: center;

        grid-row: 1;

        &:nth-child(1 of .arrow) { grid-column: 3 / 6; }
        &:nth-child(2 of .arrow) { grid-column: 7 / 10; }

        &::before, &::after {
            content: "";
            position: absolute;
            height: 2px;
            width: 10px;
            background: #e1e1e1;
            border-radius: 1px;
            transform-origin: calc(100% - 1px) center;
            inset-inline-end: 0;
        }

        /* I put my thang down, flip it and reverse it */
        :dir(rtl) &::before, :dir(rtl) &::after {
            transform-origin: 1px center;
        }

        &::before {
            transform: rotate(-45deg);
        }

        &::after {
            transform: rotate(45deg);
        }
    }

    .card {
        display: grid;
        grid-template-rows: subgrid;
        grid-template-columns: subgrid;
        grid-row: 1 / 4;

        &:nth-child(1 of .card) { grid-column: 1 / 4; }
        &:nth-child(2 of .card) { grid-column: 5 / 8; }
        &:nth-child(3 of .card) { grid-column: 9 / 12; }

        & > * {
            margin: 0;
            text-align: center;
        }

        .icon {
            grid-row: 1;
            grid-column: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #56ada7;
        }

        .title {
            grid-row: 2;
            grid-column: 1 / 4;
            display: inline-block;
            font-size: 32px;
            font-weight: 600;
            line-height: 40px;
            text-box-trim: trim-both;
            text-box-edge: cap alphabetic;
        }

        .description {
            grid-row: 3;
            grid-column: 1 / 4;
            text-wrap: balance;
            font-size: 16px;
            line-height: 24px;
            font-weight: 400;
            color: #585858;
        }
    }
}

section#how .step-grid {
    @media screen and (width <= 768px) {
        --gutter-size: 32px;

        grid-template-columns: var(--icon-size) 1fr;
        grid-template-rows: var(--icon-size) auto var(--gutter-size) var(--icon-size) auto var(--gutter-size) var(--icon-size) auto;
        row-gap: 10px;
        column-gap: 20px;

        padding-inline: calc(clamp(0px, (32px * ((100vw - 425px) / (768px - 425px))), 32px));
        box-sizing: border-box;

        .arrow {
            width: 2px;
            height: calc(100% - 33px);
            grid-column: 1 !important;

            &:nth-child(1 of .arrow) { grid-row: 2 / 4; }
            &:nth-child(2 of .arrow) { grid-row: 5 / 7; }

            &::before, &::after {
                width: 2px;
                height: 10px;
                border-radius: 1px;
                transform-origin: center calc(100% - 1px);
                inset-block-end: 0;
            }
        }

        .card {
            grid-column: 1 / 3 !important;

            &:nth-child(1 of .card) { grid-row: 1 / 3; }
            &:nth-child(2 of .card) { grid-row: 4 / 6; }
            &:nth-child(3 of .card) { grid-row: 7 / 9; }

            & > * {
                text-align: start;
            }

            .icon {
                grid-row: 1;
                grid-column: 1;
            }

            .title {
                grid-row: 1;
                grid-column: 2;
                line-height: var(--icon-size);
                align-self: center;
            }

            .description {
                grid-row: 2;
                grid-column: 2;
                text-wrap: auto;
            }
        }
    }
}

section#products {
    position: relative;
    padding-block-end: 60px;

    break-before: page;

    &::before {
        content: "";
        display: block;
        width: 100vw;
        position: absolute;
        inset-block: -60px 0px;
        inset-inline: calc((min(100%, 1440px) - 100vw) / 2);
        z-index: -1;

        background:
            url('assets/mesh.svg') center top / max(100vw, 2986px) 100%,
            radial-gradient(1712.016px 75.87% at calc(50% - 1981.44px) 75.87%, #9860ff 0%, rgba(152, 96, 255, 0) 100%),
            radial-gradient(1359.072px 66.1% at calc(50% + 1582.992px) 66.1%, #56ada7 0%, rgba(86, 173, 167, 0) 100%);
        
        @media screen and (width <= 1440px) {
            background:
                url('assets/mesh.svg') center top / 2986px 100%,
                radial-gradient(118.89% 75.87% at -87.6% 75.87%, #9860ff 0%, rgba(152, 96, 255, 0) 100%),
                radial-gradient(94.38% 66.1% at 159.93% 66.1%, #56ada7 0%, rgba(86, 173, 167, 0) 100%);
        }

        @media print {
            background: none;
        }
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr 721px;
        grid-auto-flow: row;
        grid-auto-rows: auto;
        gap: 80px;

        .product {
            display: grid;
            grid-row: span 1;
            grid-column: 1 / 3;
            grid-template-rows: 1fr;
            grid-template-columns: subgrid;
            row-gap: 36px;
            scroll-margin-block-start: -16px;
            break-inside: avoid;

            hgroup {
                display: flex;
                flex-direction: column;
                gap: 8px;
                align-self: center;

                h3 {
                    font-size: 48px;
                    line-height: 60px;
                }

                p {
                    color: #585858;
                    margin-bottom: 8px;
                }

                a {
                    font-weight: 600;
                    text-decoration: none;
                    color: #000 !important;
                }
            }

            figure {
                margin: 0;
                width: min(calc(100vw - 64px), 721px);
                box-sizing: border-box;
                border: 1px solid rgb(0 0 0 / 0.05);
                border-radius: 15px;
                background: rgb(255 255 255 / 0.5);
                backdrop-filter: blur(6px);
                align-self: center;
                justify-self: flex-end;

                img {
                    max-width: calc(100vw - 64px);
                }
            }

            @media (width <= 1440px) {
                & {
                    display: flex;
                    flex-direction: column;

                    hgroup {
                        width: min(calc(100vw - 64px), 721px);
                    }

                    figure {
                        order: -1;
                    }
                }
            }
        }

        @media (width <= 1440px) {
            grid-template-columns: 1fr;            
        }
    }
}

section#solutions {
    break-before: page;

    .solution-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 17px;

        .solution {
            display: flex;
            flex-direction: column;
            gap: 45px;
            padding: 30px;
            border: 1px solid #e1e1e1;
            border-radius: 10px;

            break-inside: avoid;

            .icon-layout {
                display: flex;
                flex-direction: row;
                align-items: space-between;

                .icon {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    height: 45px;
                    width: 45px;
                    border-radius: 7px;
                    background: #f3e8ff;
                    color: #9860ff;
                }
            }

            .details {
                display: flex;
                flex-direction: column;
                gap: 10px;

                strong {
                    font-size: 18px;
                    line-height: 24px;
                    font-weight: 600;
                }

                p {
                    margin: 0;
                    color: #585858;
                }
            }
        }

        @media (width <= 1024px) {
            grid-template-columns: 1fr;
            grid-auto-flow: row;
            grid-auto-rows: 1fr;
        }
    }
}

section#trust {
    break-before: page;

    .trust-grid {
        display: grid;
        grid-template-rows: 1fr;
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
        justify-content: center;
        gap: 67px;
        padding-block: 30px;

        .trust-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            max-width: 270px;
            padding-inline: 24px;
            box-sizing: border-box;
            text-align: center;

            .icon {
                width: 45px;
                height: 45px;
                border-radius: 7px;
                background: #eafbf9;
                color: #56ada7;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            strong {
                font-size: 27px;
                line-height: 35px;
                font-weight: 550;
                text-align: center;
            }
        }

        @media (width <= 1440px) {
            grid-template-columns: repeat(2, 1fr);
            grid-auto-flow: row;
            grid-auto-rows: 1fr;
        }

        @media (width <= 768px) {
            grid-template-columns: 1fr;
        }

        @media print {
            grid-template-columns: repeat(2, 1fr);
            grid-auto-flow: row;
            grid-auto-rows: 1fr;
            margin-block-end: 96px;
        }
    }
}

section#contact {
    position: relative;
    padding-block: 72px;
    gap: 42px;

    @media print {
        /** Contains no useful information for printing **/
        display: none;
    }

    &::before {
        content: "";
        position: absolute;
        display: block;
        width: 100vw;
        position: absolute;
        inset-block: 0px;
        inset-inline: calc((min(100%, 1440px) - 100vw) / 2);
        z-index: -1;

        background:
            url('assets/mesh.svg') center center / max(2333.6px, 100%) max(1154.92px, 100%),
            radial-gradient(939.312px 242.55% at calc(50% - 1169.712px) -46.84%, #9860ff 0%, rgba(152, 96, 255, 0) 100%),
            radial-gradient(738.864px 179.61% at calc(50% + 807.84px) 151.18%, #56ada7 0%, rgba(86, 173, 167, 0) 100%);
        
        @media screen and (width <= 1440px) {
            background:
                url('assets/mesh.svg') center center / 2333.6px max(1154.92px, 100%),
                radial-gradient(65.23% 242.55% at -31.23% -46.84%, #9860ff 0%, rgba(152, 96, 255, 0) 100%),
                radial-gradient(51.31% 179.61% at 106.1% 151.18%, #56ada7 0%, rgba(86, 173, 167, 0) 100%);
        }
    }

    hgroup {
        margin-block-start: 30px;

        div {
            width: min(100%, 543px);
        }

        p {
            width: auto;
        }
    }

    .two-cta {
        display: flex;
        flex-direction: row;
        gap: 24px;
        margin-block-end: 23px;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-block-end: 0 !important;
        }

        @media (width <= 768px) {
            flex-direction: column;
            align-items: center;
        }
    }
}

section.faq {
    align-self: center;
    width: min(100%, 1024px);

    @media print {
        h2 {
            margin-block-start: 0;
        }
    }

    .faq-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    details {
        display: flex;
        flex-direction: column;
        gap: 11px;
        width: 100%;
        interpolate-size: allow-keywords;

        &:not(:last-child) {
            border-bottom: 1px solid rgb(0 0 0 / 20%);
            
            @media print {
                border-bottom: none;
            }
        }

        &::details-content {
            transition-behavior: allow-discrete;

            @supports (transition-behavior: allow-discrete) and (interpolate-size: allow-keywords) {
                transition: all 0.25s ease-in-out allow-discrete;
            }

            height: 0;
            opacity: 0;
            overflow: hidden;
        }

        &[open]::details-content {
            height: auto;
            opacity: 1;
        }

        @starting-style {
            &[open]::details-content {
                height: 0;
                opacity: 0;
            }
        }

        p {
            font-size: 16px;
            line-height: 24px;
            margin-block-start: 0;
            margin-block-end: 18px;
            width: calc(100% - 24px - 8px);
        }

        @media print {
            & {
                break-inside: avoid;
            }

            &::details-content {
                content-visibility: visible;
                height: auto;
                opacity: 1;
            }

            summary::after {
                visibility: hidden;
            }
        }
    }

    summary {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-size: 24px;
        line-height: 40px;
        font-weight: 550;
        cursor: pointer;

        &:focus-visible {
            outline: 2px solid #9860ff;
            border-radius: 4px;
        }

        &::after {
            display: block;
            content: '' / 'Click to expand';
            align-self: center;
            justify-self: center;
            width: 24px;
            height: 24px;
            background: url('/assets/expand.svg');
            flex-shrink: 0;
        }

        details[open] > &::after {
            content: '' / 'Click to collapse';
            background: url('/assets/collapse.svg');
        }
    }
}

footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    box-sizing: border-box;
    padding-block-end: 28px;
    margin-block-start: -28px;

    .summary {
        display: flex;
        flex-direction: row;
        padding-block: 10px;
        gap: calc(36px + (194px * ((min(1440px, 100vw) - 1024px) / (1440px - 1024px))));

        .brandmark-cell {
            width: min(100%, 560px);
            display: flex;
            flex-direction: column;
            gap: 34px;

            img {
                width: 151.39px;
            }

            p {
                margin: 0;
                color: #585858;
                font-size: 16px;
                line-height: 24px;
                text-wrap: balance;
            }
        }

        .sitemap-cell {
            strong {
                font-size: 16px;
                line-height: 38px;
                font-weight: 600;
            }

            ul {
                list-style-type: none;
                margin: 0;
                margin-block-end: calc((38px - 16px) / -2);
                padding: 0;

                li {
                    font-size: 16px;
                    line-height: 38px;

                    a {
                        text-decoration: none;
                        color: black;
                    }

                    &:first-child a {
                        color: black;
                        font-weight: 600;
                    }

                    &:not(:first-child) a {
                        color: #585858 !important;
                    }
                }
            }

            @media (width <= 1024px) {
                display: none;
            }
        }

        @media print {
            display: none;
        }
    }

    .copyright {
        border-block-start: 1px solid rgb(0 0 0 / 25%);
        padding-block-start: 28px;
        display: flex;
        flex-direction: row;
        align-items: space-between;
    }
}