/* Home — audiences section */

.home-audiences {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(226 232 240);
}

.home-audiences__title {
    margin: 0 0 1.75rem;
    font-size: clamp(1.375rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgb(15 23 42);
    text-wrap: balance;
}

.home-audiences__grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

.home-audiences__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-audiences__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.875rem;
}

.home-audiences__features-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(241 245 249);
}

.home-audiences__card-copy {
    flex: 1;
    min-width: 0;
}

.home-audiences__card-title {
    margin: 0;
    font-size: clamp(1rem, 2.8vw, 1.125rem);
    font-weight: 800;
    line-height: 1.4;
    color: rgb(15 23 42);
}

.home-audiences__card-desc {
    margin: 0.5rem 0 0;
    font-size: clamp(0.875rem, 2.4vw, 0.9375rem);
    line-height: 1.85;
    color: rgb(71 85 105);
    text-align: justify;
    text-align-last: right;
}

.home-audiences__illus {
    position: relative;
    flex-shrink: 0;
    width: clamp(4.75rem, 18vw, 7.5rem);
    height: clamp(4rem, 15vw, 6.5rem);
}

.home-audiences__illus-blob {
    position: absolute;
    inset: 4% 2% 2% 6%;
    border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
    background: rgb(254 240 138);
    transform: rotate(-8deg);
    opacity: 0.95;
}

.home-audiences__card:nth-child(2) .home-audiences__illus-blob {
    border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
    background: rgb(191 219 254);
    transform: rotate(6deg);
}

.home-audiences__card:nth-child(3) .home-audiences__illus-blob {
    border-radius: 52% 48% 60% 40% / 42% 58% 42% 58%;
    background: rgb(167 243 208);
    transform: rotate(-4deg);
}

.home-audiences__illus-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    color: rgb(30 64 175);
    filter: drop-shadow(0 6px 10px rgb(30 64 175 / 0.18));
}

.home-audiences__illus-primary {
    color: rgb(30 64 175);
}

.home-audiences__illus-accent {
    color: rgb(37 99 235);
}

.home-audiences__features-label {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(148 163 184);
}

.home-audiences__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.home-audiences__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-height: 2.75rem;
    font-size: clamp(0.8125rem, 2.2vw, 0.875rem);
    font-weight: 500;
    line-height: 1.5;
    color: rgb(51 65 85);
}

.home-audiences__feature > span:last-child {
    flex: 1;
    min-width: 0;
    padding-top: 0.35rem;
    text-align: justify;
    text-align-last: right;
}

.home-audiences__feature-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: linear-gradient(145deg, rgb(37 99 235), rgb(30 64 175));
    color: rgb(255 255 255);
    box-shadow: 0 4px 10px rgb(37 99 235 / 0.28);
}

.home-audiences__card:nth-child(2) .home-audiences__feature-icon {
    background: linear-gradient(145deg, rgb(59 130 246), rgb(37 99 235));
}

.home-audiences__card:nth-child(3) .home-audiences__feature-icon {
    background: linear-gradient(145deg, rgb(16 185 129), rgb(5 150 105));
    box-shadow: 0 4px 10px rgb(16 185 129 / 0.28);
}

.home-audiences__feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile — stacked header */
@media (max-width: 479px) {
    .home-audiences__card-top {
        flex-direction: column;
        gap: 1rem;
    }

    .home-audiences__illus {
        width: 5.5rem;
        height: 4.75rem;
    }
}

/* Tablet — single column, comfortable spacing */
@media (min-width: 640px) {
    .home-audiences {
        margin-top: 2.5rem;
        padding-top: 2.25rem;
    }

    .home-audiences__grid {
        gap: 2.25rem;
    }

    .home-audiences__card {
        padding: 1.25rem 1.35rem;
        border: 1px solid rgb(241 245 249);
        border-radius: 1rem;
        background: rgb(255 255 255);
        box-shadow: 0 4px 16px rgb(15 23 42 / 0.04);
    }

    .home-audiences__features-block {
        margin-top: 1.5rem;
    }
}

/* Large tablet — two columns */
@media (min-width: 768px) and (max-width: 1099px) {
    .home-audiences__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .home-audiences__card:last-child {
        grid-column: 1 / -1;
    }
}

/* Desktop — three columns, aligned feature rows */
@media (min-width: 1100px) {
    .home-audiences {
        margin-top: 3.5rem;
        padding-top: 3rem;
    }

    .home-audiences__title {
        margin-bottom: 2.25rem;
    }

    .home-audiences__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }

    .home-audiences__card {
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-audiences__features-block {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

@supports (grid-template-rows: subgrid) {
    @media (min-width: 1100px) {
        .home-audiences__grid {
            grid-template-rows: 1fr auto auto auto auto;
        }

        .home-audiences__card {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 5;
            gap: 0;
        }

        .home-audiences__card-top {
            margin-bottom: 1.25rem;
        }

        .home-audiences__features-block {
            display: contents;
        }

        .home-audiences__features-label {
            margin-bottom: 0.875rem;
            padding-top: 1.25rem;
            border-top: 1px solid rgb(241 245 249);
        }

        .home-audiences__features {
            display: contents;
        }

        .home-audiences__feature {
            min-height: 2.875rem;
            align-items: center;
        }

        .home-audiences__feature > span:last-child {
            padding-top: 0;
        }
    }
}

/* Fallback when subgrid is unavailable */
@supports not (grid-template-rows: subgrid) {
    @media (min-width: 1100px) {
        .home-audiences__card {
            height: 100%;
        }

        .home-audiences__card-top {
            flex: 1 1 auto;
        }

        .home-audiences__features-block {
            margin-top: auto;
            padding-top: 1.25rem;
            border-top: 1px solid rgb(241 245 249);
        }
    }
}

@media (min-width: 1280px) {
    .home-audiences__grid {
        gap: 2.5rem;
    }
}
