/* ============================================================
   tool.css — 학습 도구 소개 (챗 · 시트 · 이미지도구)
   레이아웃(.note-main)은 note.css 를 함께 쓴다.

   1. 레이아웃
   2. 머리말
   3. 공통 섹션
   4. 안내 카드
   5. 단계 목록
   6. 반응형
   ============================================================ */

/* ------------------------------------------------------------
   1. 레이아웃
   ------------------------------------------------------------ */
.tool-body {
    display: flex;
    flex-direction: column;
    gap: 56px;
    min-width: 0;
}

.tool-divider {
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--c-border);
}

/* ------------------------------------------------------------
   2. 머리말
   ------------------------------------------------------------ */
.tool-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-hero__title {
    font-size: 32px;
    line-height: 48px;
    font-weight: 700;
    color: var(--c-text);
    text-wrap: pretty;
}

.tool-hero__lead {
    font-size: 17px;
    line-height: 25.5px;
    color: var(--c-text-sub);
    text-wrap: pretty;
}

.tool-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.tool-hero__btn {
    height: 48px;
    padding: 0 28px;
    border-radius: var(--r-md);
    font-size: 17px;
    line-height: 25.5px;
    font-weight: 700;
}

.tool-hero__note {
    font-size: 13px;
    line-height: 19.5px;
    color: var(--c-text-faint);
}

/* ------------------------------------------------------------
   3. 공통 섹션
   ------------------------------------------------------------ */
.tool-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 28px;
}

/* 배경 박스를 두르는 섹션 */
.tool-section--box {
    padding: 28px;
    border-radius: var(--r-md);
    background: var(--c-bg-alt);
}

.tool-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--c-brand-subtle);
    font-size: 13px;
    line-height: 19.5px;
    font-weight: 700;
    color: var(--c-brand);
}

.tool-section__title {
    font-size: 24px;
    line-height: 36px;
    font-weight: 700;
    color: var(--c-text);
    text-wrap: pretty;
}

/* ------------------------------------------------------------
   4. 안내 카드
   ------------------------------------------------------------ */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 16px;
}

/* 항목이 많은 목록은 3열로 늘어놓는다 */
.tool-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-bg);
}

.tool-card--compact {
    padding: 20px;
}

.tool-card__title {
    font-size: 17px;
    line-height: 25.5px;
    font-weight: 700;
    color: var(--c-text);
}

.tool-card__text {
    font-size: 15px;
    line-height: 22.5px;
    color: var(--c-text-sub);
    text-wrap: pretty;
}

/* ------------------------------------------------------------
   5. 단계 목록
   ------------------------------------------------------------ */
.tool-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
    list-style: none;
}

.tool-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: start;
    gap: 16px;
}

.tool-step__no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-brand);
    border-radius: var(--r-full);
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 700;
    color: var(--c-brand);
}

.tool-step__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
}

.tool-step__title {
    font-size: 17px;
    line-height: 25.5px;
    font-weight: 700;
    color: var(--c-text);
}

.tool-step__text {
    font-size: 15px;
    line-height: 22.5px;
    color: var(--c-text-sub);
    text-wrap: pretty;
}

/* ------------------------------------------------------------
   6. 반응형
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .tool-body {
        gap: 40px;
    }

    .tool-hero__title {
        font-size: 24px;
        line-height: 36px;
    }

    .tool-section {
        padding: 0;
    }

    .tool-section--box {
        padding: 24px 20px;
    }

    .tool-section__title {
        font-size: 20px;
        line-height: 30px;
    }

    .tool-cards,
    .tool-cards--3 {
        grid-template-columns: 1fr;
    }
}
