/* =========================
BASE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #f7f8fa;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* =========================
TOOLS PAGE
========================= */

.tools-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 120px;
    text-align: center;
}

.section-label {
    margin: 0 0 15px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #7657d9;
    text-align: center;
}

.tools-page h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #1e1e22;
}

.tools-description {
    max-width: 620px;
    margin: 25px auto 50px;
    font-size: 18px;
    color: #666b75;
}

/* =========================
TOOL CARDS
========================= */

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.tool-card-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f2effc;
}

.tool-card-icon img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.tool-card-content {
    flex: 1;
}

.tool-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.tool-card p {
    margin: 0 0 12px;
    color: #6a6e77;
}

.tool-card-link {
    color: #7657d9;
    font-weight: 700;
    font-size: 15px;
}

/* =========================
MOBILE
========================= */

@media (max-width: 600px) {

    .tools-page {
        padding: 75px 18px 80px;
    }

    .tools-page h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .tools-description {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 40px;
    }


    .tool-card {
        align-items: center;
        flex-direction: row;
        padding: 20px;
    }

    .tool-card-icon {
        width: 62px;
        height: 62px;
        flex-shrink: 0;
    }

    .tool-card-icon img {
        width: 54px;
        height: 54px;
    }
}

/* =========================
   KEYBOARD ACCESSIBILITY
========================= */

.tool-card:focus-visible {
    outline: 3px solid #7657d9;
    outline-offset: 4px;
}