#solutions {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

#solutions .hero-background {
    border-top: 1px solid var(--secondary-border-color);
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 18%,
        rgba(0, 0, 0, 0.6) 42%,
        rgba(0, 0, 0, 0.8) 55%,
        rgba(0, 0, 0, 0.9) 75%,
        rgba(0, 0, 0, 0.8) 90%,
        rgba(0, 0, 0, 1) 100%
    ), var(--hero-background);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Mobile-first layout */

#solutions .grid.grid-13-23 {
    grid-template-columns: 1fr;
    row-gap: 24px;
    min-width: 0;
}

#solutions .left,
#solutions .right {
    min-width: 0;
    max-width: 100%;
}

#solutions .left {
    width: 100%;
    overflow: hidden;
}

#solutions .right {
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
    border: 1px solid var(--secondary-border-color);
    background: var(--secondary-background-color);
}

#solutions ul.categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    min-width: 0;
    margin: 16px 0 24px;
    padding: 4px 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#solutions ul.categories::-webkit-scrollbar {
    display: none;
}

#solutions ul.categories li {
    position: relative;
    display: block;
    flex: 0 0 auto;
    margin: 0;
    list-style: none;
}

#solutions ul.categories input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#solutions ul.categories li label {
    display: block;
    width: max-content;
    padding: 10px 16px;
    border: 1px solid var(--secondary-border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--heading-text-color);
    white-space: nowrap;
    cursor: pointer;
}

#solutions ul.categories li:has(input[type="radio"]:checked) label {
    border-color: var(--link-color);
    background: var(--secondary-background-color);
    color: var(--heading-text-color);
    font-weight: 700;
}

#solutions .right .category {
    display: none;
}

#solutions .right .category.is-active {
    display: block;
}

#solutions .grid:has(#category-1:checked) .category-1,
#solutions .grid:has(#category-2:checked) .category-2,
#solutions .grid:has(#category-3:checked) .category-3,
#solutions .grid:has(#category-4:checked) .category-4,
#solutions .grid:has(#category-5:checked) .category-5,
#solutions .grid:has(#category-6:checked) .category-6,
#solutions .grid:has(#category-7:checked) .category-7,
#solutions .grid:has(#category-8:checked) .category-8,
#solutions .grid:has(#category-9:checked) .category-9,
#solutions .grid:has(#category-10:checked) .category-10,
#solutions .grid:has(#category-11:checked) .category-11,
#solutions .grid:has(#category-12:checked) .category-12 {
    display: block;
}

#solutions .category img {
    display: block;
    width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

#solutions .category ul {
    padding-left: 20px;
}

#solutions .category .button {
    display: inline-block;
    margin-top: 30px;
}

#solutions .right {
    position: relative;
}
#solutions .right::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(81, 0, 255, 0.42) 0%,
        rgba(81, 0, 255, 0.18) 42%,
        transparent 65%
    );
    pointer-events: none;
}
#solutions .right > * {
    position: relative;
    z-index: 1;
}

@media screen and (min-width: 900px) {
    #solutions .grid.grid-13-23 {
        grid-template-columns: 1fr 2fr;
        column-gap: 32px;
        row-gap: 32px;
        align-items: start;
    }

    #solutions .left {
        align-self: start;
        height: fit-content;
        overflow: visible;
    }

    #solutions .right {
        align-self: start;
        padding: 40px;
    }

    #solutions ul.categories {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    #solutions ul.categories li {
        flex: 0 0 auto;
        margin: 0;
    }

    #solutions ul.categories li label {
        position: relative;
        display: block;
        width: auto;
        padding: 15px 40px 15px 25px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        white-space: normal;
        line-height: 1.5;
        margin: 0;
    }

    #solutions ul.categories li label::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 8px;
        width: 4px;
        height: calc(100% - 16px);
        border-radius: 999px;
        background: transparent;
    }

    #solutions ul.categories li label::after {
        content: "›";
        position: absolute;
        right: 16px;
        top: 50%;
        color: var(--heading-text-color);
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        transform: translateY(-50%);
    }

    #solutions ul.categories li:has(input[type="radio"]:checked) label {
        padding: 15px 40px 15px 25px;
        border-radius: 8px;
        background: var(--secondary-background-color);
        color: var(--heading-text-color);
        font-weight: 700;
    }

    #solutions ul.categories li:has(input[type="radio"]:checked) label::before {
        background: var(--link-color);
    }

    #solutions ul.categories li:has(input[type="radio"]:checked) label::after {
        color: var(--link-color);
    }

    #solutions .category img {
        margin: 24px 0;
    }
}
