/* Feature grid: white cards with a green icon, title and description. */
.lc-features {
    display: grid;
    grid-template-columns: repeat(var(--lc-features-columns, 2), minmax(0, 1fr));
    gap: 1rem;
}

.lc-feature {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
    padding: 1.5rem;
    background: var(--leguma-surface, #ffffff);
    border: 1px solid var(--leguma-border, #e4e4e4);
    border-radius: 1rem;
    transition: border-color var(--leguma-transition, 160ms ease), box-shadow var(--leguma-transition, 160ms ease);
}

a.lc-feature-link:hover {
    border-color: var(--leguma-secondary, #9dbe00);
    box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 6%);
}

.lc-feature-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    color: var(--leguma-secondary-dark, #778f00);
    background: var(--leguma-surface-hover, #f6f6f6);
    border-radius: 50%;
}

.lc-feature-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.lc-feature-title {
    margin: 0.55rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.35;
}

.lc-feature-body {
    color: var(--leguma-muted, #676767);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.lc-feature-body p {
    margin: 0 0 0.6rem;
}

.lc-feature-body p:last-child {
    margin-bottom: 0;
}

/* Linked card: no underline, title turns green on hover. */
a.lc-feature-link {
    color: inherit;
    text-decoration: none;
}

a.lc-feature-link:hover .lc-feature-title {
    color: var(--leguma-secondary-dark, #778f00);
}

/* Compact: a short highlights strip (icon, title and one line). */
.lc-features-compact .lc-feature {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.15rem;
}

.lc-features-compact .lc-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.lc-features-compact .lc-feature-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.lc-features-compact .lc-feature-title {
    margin: 0 0 0.15rem;
    font-size: 0.9375rem;
    transition: color var(--leguma-transition, 160ms ease);
}

.lc-features-compact .lc-feature-body {
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Centred: icon above the text. */
.lc-features-center .lc-feature,
.lc-features-compact.lc-features-center .lc-feature {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    gap: 0.75rem;
    text-align: center;
}

.lc-features-compact.lc-features-center .lc-feature {
    padding: 1.25rem 1.15rem;
}

@media (max-width: 64rem) {
    .lc-features {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .lc-feature {
        padding: 1.25rem;
    }
}

/* Compact strip: two per row on tablets, one on phones. */
@media (max-width: 64rem) {
    .lc-features-compact {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    }
}

/* Band: one bordered panel, columns split by 1px dividers (the panel's border colour
   showing through the grid gap). Icon and title on one line, the description under both. */
.lc-features-band {
    gap: 1px;
    overflow: hidden;
    background: var(--leguma-border, #e4e4e4);
    border: 1px solid var(--leguma-border, #e4e4e4);
    border-radius: 1.25rem;
}

.lc-features-band .lc-feature {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 0.5rem 0.7rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border: 0;
    border-radius: 0;
    text-align: center;
}

.lc-features-band .lc-feature-text {
    display: contents;
}

.lc-features-band .lc-feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
}

.lc-features-band .lc-feature-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.lc-features-band .lc-feature-title {
    margin: 0;
    font-size: 1.0625rem;
    text-align: left;
}

.lc-features-band .lc-feature-body {
    flex-basis: 100%;
    text-wrap: balance;
    font-size: 0.8125rem;
    line-height: 1.45;
}

@media (max-width: 64rem) {
    .lc-features.lc-features-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
    }

    .lc-features-band .lc-feature {
        padding: 1rem 0.75rem;
    }

    .lc-features-band .lc-feature-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    /* A long title wraps beside its icon instead of dropping under it. */
    .lc-features-band .lc-feature-title {
        max-width: calc(100% - 3rem);
        font-size: 0.9375rem;
    }

    .lc-features-band .lc-feature-body {
        font-size: 0.75rem;
    }
}
