/*
 * Key Features – Block Styles
 * Namespace: telehouse/key-features
 *
 * Design tokens are expected to be defined upstream (theme :root).
 * Fallback values mirror the template token definitions so the
 * block renders correctly even when used in isolation.
 */

.key-features {
    --th-blue:       #3051E6;
    --th-text:       #000022;
    --th-grey-light: #ECEDF5;
    --th-font:       'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --th-h3:         20px;
    --th-body:       15px;

    background: #ffffff;
    padding: 40px 0 80px;
}

.key-features__wrapper {
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: visible;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.key-features__label {
    width: 400px;
    min-height: 200px;
    flex-shrink: 0;
    border-radius: 90px;
    background: var(--th-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    margin-left: 0;
    z-index: 2;
    position: relative;
}

.key-features__heading {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 34px;
    margin: 0;
}

.key-features__pill {
    flex: 1;
    border-radius: 999px;
    background: var(--th-grey-light);
    padding: 48px 48px 48px 196px;
    margin-left: -160px;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 200px;
    width: 300px;
}

.key-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.key-features__item {
    color: #05001C;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    position: relative;
    padding-left: 16px;
}

.key-features__item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3051E6;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
    .key-features {
        padding: 0 20px;
        padding-bottom: 48px;
    }

    .key-features__wrapper {
        flex-direction: column;
        align-items: center;
    }

    .key-features__label {
        width: 340px;
        height: 133px;
        margin-left: 0;
        border-radius: 142px;
        min-height: auto;
        padding: 24px 32px;
        text-align: center;
        position: relative;
        z-index: 2;
        margin-bottom: -36px;
    }

    .key-features__pill {
        width: 330px;
        height: 133px;
        border-radius: 32px;
        padding: 64px 24px 32px;
        margin-left: 0;
        margin-top: 0;
        min-height: auto;
    }

    .key-features__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .key-features__heading {
        font-size: 24px !important;
    }
}
