/* ==========================================================================
   Sections
   What Bulbul does: the section mosaic, the three steps, the control cards.
   ========================================================================== */

.sections {
    padding-block: 104px;
}

.section-title {
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.2;
    font-weight: 900;
    max-width: 760px;
    text-wrap: balance;
}

.feature-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 28px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.feature-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.feature-card h3 {
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 900;
}

.feature-card h3 .swatch {
    display: none;
}

.feature-card p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
}

.more-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 48px;
    border-top: 1px solid var(--line);
}

.more-grid li {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.more-grid h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.more-grid .swatch {
    width: 8px;
    height: 8px;
}

.more-grid p {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.how {
    padding-block: 104px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 420px);
    gap: 96px;
    align-items: center;
}

.how h2 {
    margin-top: 16px;
    font-size: clamp(30px, 3.9vw, 56px);
    line-height: 1.15;
    font-weight: 900;
    text-wrap: balance;
}

.steps {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    max-width: 560px;
}

.steps li {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.step-num {
    flex: none;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.steps h3 {
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 900;
}

.steps p {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
}

.how-device {
    justify-self: center;
    width: 300px;
}

.control {
    padding-block: 104px;
}

.control-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.control-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 32px;
    align-items: center;
    overflow: hidden;
}

.control-card h3 {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 900;
}

.control-card p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
}

.control-device {
    background: #000;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    padding: 7px;
    margin-bottom: -160px;
}

.control-device img {
    width: 100%;
    border-radius: 22px;
}

/* tablet ---------------------------------------------------------------- */

@media (max-width: 1180px) and (min-width: 901px) {
    .feature-grid,
    .more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how {
        gap: 48px;
    }
}

/* mobile ---------------------------------------------------------------- */

@media (max-width: 900px) {
    .sections,
    .control {
        padding-block: 56px;
    }

    .how {
        padding-block: 56px;
    }

    .feature-grid {
        margin-top: 28px;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .feature-card {
        border-radius: 16px;
        padding: 20px;
        min-height: 0;
        gap: 0;
    }

    .feature-card-head {
        display: none;
    }

    .feature-card h3 {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .feature-card h3 .swatch {
        display: block;
        width: 9px;
        height: 9px;
    }

    .feature-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .more-grid {
        margin-top: 8px;
        grid-template-columns: minmax(0, 1fr);
    }

    .more-grid li {
        padding: 16px 0;
    }

    .more-grid h3 {
        font-size: 17px;
        gap: 8px;
    }

    .more-grid .swatch {
        width: 7px;
        height: 7px;
    }

    .more-grid p {
        margin-top: 4px;
        font-size: 13px;
    }

    .how {
        display: block;
    }

    .how h2 {
        margin-top: 14px;
        line-height: 1.2;
    }

    .steps {
        margin-top: 24px;
    }

    .steps li {
        gap: 16px;
        padding: 18px 0;
    }

    .step-num {
        margin-top: 5px;
        font-size: 12px;
    }

    .steps p {
        margin-top: 4px;
        font-size: 14px;
        line-height: 1.6;
    }

    .how-device {
        margin: 32px auto 0;
        width: 240px;
    }

    .how-device.device {
        border-radius: 34px;
        padding: 8px;
    }

    .how-device.device img {
        border-radius: 28px;
    }

    .control-grid {
        margin-top: 24px;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .control-card {
        border-radius: 20px;
        padding: 24px;
        grid-template-columns: minmax(0, 1fr) 120px;
        gap: 16px;
    }

    .control-card p {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.6;
    }

    .control-device {
        border-radius: 18px;
        padding: 4px;
        margin-bottom: -120px;
    }

    .control-device img {
        border-radius: 14px;
    }
}
