/* =====================================================================
   "What We Automate": six cards that say, in plain words, what the program
   does, each with a small example of where the data goes.
   ===================================================================== */

.what-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.what-card {
    padding: 28px 26px;
    border: 1px solid #e6e9f2;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.what-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 36px rgba(0, 0, 0, 0.08);
}

.what-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #eef1ff;
    color: var(--primary-color);
}

.what-icon svg {
    width: 27px;
    height: 27px;
}

.what-card h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--text-color);
}

.what-card p {
    margin: 0;
    color: var(--text-light);
}

/* the example: where the data comes from and where it goes */
.what-card .what-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.what-flow span {
    padding: 2px 9px;
    border-radius: 6px;
    background: #eef1ff;
    color: var(--primary-color);
}

.what-flow i {
    font-style: normal;
    color: var(--text-light);
}

.what-cta {
    margin: 30px 0 0;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

.what-cta a {
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .what-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .what-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    .what-card {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 14px;
        padding: 18px;
    }

    .what-icon {
        grid-row: span 3;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .what-icon svg {
        width: 23px;
        height: 23px;
    }

    .what-card h3 {
        font-size: 1.05rem;
    }

    .what-card p {
        font-size: 0.94rem;
    }
}
