.feature-group {
    list-style: none;
    padding: unset;
}

.feature-group .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-group .icon svg {
    display: block;
}

ul.feature-group svg {
    display: flex;
}

.feature-group.accordion .small-number {
    color: var(--text-dull);
}

.feature-decoration:has(.icon):has(.small-number, .tag) {
    display: flex;
    justify-content: space-between;
}

.accordion .feature-decoration:has(.icon):has(.small-number) {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.chess-col > *:first-of-type,
.chess-row > *:first-of-type {
    grid-area: feature-1;
}

.chess-col > *:nth-of-type(2),
.chess-row > *:nth-of-type(2) {
    grid-area: feature-2;
}

.chess-col > *:nth-of-type(3),
.chess-row > *:nth-of-type(3) {
    grid-area: feature-3;
}

.chess-col > *:last-of-type,
.chess-row > *:last-of-type {
    grid-area: feature-4;
}

.chess-col {
    gap: 1px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        'feature-1 .'
        '. feature-2'
        'feature-3 .'
        '. feature-4';
}

.chess-row {
    gap: 1px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(100% / 4 - 5%), 1fr));
    grid-template-areas:
        'feature-1 . feature-2 . '
        ' . feature-3 . feature-4';
}

.feature-group.accordion .feature-decoration {
    width: clamp(10%, 4rem, 20rem);
}

.feature-group.accordion .button {
    justify-content: flex-end;
    min-width: 6.5rem;
    margin-left: auto;
}

.feature-content {
    width: 100%;
    height: 100%;
}

.cta-6 .feature-content {
    flex-wrap: wrap;
    margin-right: auto;
    height: auto;
    width: auto;
}

/* .feature-content > :first-child {
    cursor: pointer;
} */

.accordion > li.is-open .button svg {
    transform: rotate(180deg);
}

.accordion > li.is-open {
    border-color: var(--border-dark);
    color: var(--text);
}

.accordion > li.boxed-md:not(.is-open) {
    border: 1px solid transparent;
    border-bottom: 1px solid var(--border-dark);
}

.accordion > li.boxed-md:has(+ .is-open) {
    border-bottom: 1px solid transparent;
}

.staggered-row > :first-child {
    margin-top: 0;
}

.staggered-row > :nth-child(2) {
    margin-top: var(--stagger-size);
}

.staggered-row > :nth-child(3) {
    margin-top: calc(var(--stagger-size) * 2);
}

.staggered-row > :last-child {
    margin-top: calc(var(--stagger-size) * 3);
}

.card {
    position: relative;
    min-height: 0;
}

.feature-pic-hover > picture {
    position: absolute;
    top: 0;
    transform: translateY(20%) scale(0.8) rotate(-10deg);
    right: 2rem;
    width: 20%;
    height: auto;
    aspect-ratio: 1;
    opacity: 0;
    z-index: 5;
    transition:
        opacity 300ms ease 200ms,
        transform 350ms ease 200ms;
    overflow: auto;
}

.feature-pic-hover:hover {
    border: 1px solid var(--border-dark);
}

.feature-pic-hover > :first-child {
    width: 75%;
}

.feature-pic-hover:hover > picture {
    opacity: 1;
    transform: translateY(-1rem) scale(1) rotate(0deg);
}

@media screen and (max-width: 1360px) {
    .staggered-row > :first-child,
    .staggered-row > :nth-child(2),
    .staggered-row > :nth-child(3),
    .staggered-row > :last-child {
        margin-top: unset;
    }

    .feature-decoration .icon.w-3 {
        width: 2rem;
    }

    .feature-group.accordion li.col-6 {
        grid-template-columns: minmax(2rem, 3rem) 1fr 1fr minmax(4rem, 8rem);
    }

    .feature-group.accordion li.col-6 > .col-span-4 {
        grid-column: span 2;
    }
}

@media screen and (max-width: 960px) {
    .feature-group.accordion li > button {
        grid-column: 3/3;
        grid-row: 1/1;
    }
}

@media screen and (max-width: 480px) {
    .feature-pic-hover > picture {
        right: 1rem;
    }

    .feature-pic-hover:hover > picture {
        transform: translateY(1rem) scale(1) rotate(0deg);
    }
}
