.tools-page {
    --tools-ink: #132019;
    --tools-muted: #43564b;
    --tools-line: #dbe8d7;
    --tools-soft: #f7fbf5;
    --tools-mist: #eef7ea;
    --tools-accent: #2f7825;
    --tools-primary: var(--primary-color, #7ed957);
    --tools-secondary: var(--secondary-color, #4a9c2d);
    min-height: 100vh;
    padding: 10.5rem 0 5.5rem;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--tools-soft) 42%, #ffffff 100%);
    color: var(--tools-muted);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.tools-page > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tools-header {
    max-width: 1040px;
    margin: 0 0 2.5rem;
}

.tools-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.42rem 0.76rem;
    border: 1px solid rgba(74, 156, 45, 0.2);
    border-radius: 999px;
    background: rgba(126, 217, 87, 0.11);
    color: var(--tools-accent);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tools-header h1 {
    margin: 0 0 1rem;
    color: var(--tools-ink);
    font-size: clamp(2.45rem, 4vw, 3.45rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.tools-header p {
    max-width: 840px;
    margin: 0;
    color: var(--tools-muted);
    font-size: 1.05rem;
    line-height: 1.82;
}

.tools-discovery {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.9rem;
    border: 1px solid var(--tools-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(19, 32, 25, 0.06);
    min-width: 0;
    max-width: 100%;
}

.tools-search {
    display: flex;
    flex: 0 1 340px;
    align-items: center;
    gap: 0.75rem;
    min-width: 260px;
    height: 48px;
    padding: 0 0.9rem;
    border: 1px solid var(--tools-line);
    border-radius: 12px;
    background: var(--tools-soft);
    color: #728078;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.tools-search:focus-within {
    border-color: rgba(126, 217, 87, 0.8);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.12);
}

.tools-search svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.tools-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tools-ink);
    font: 500 0.92rem/1.4 'Poppins', sans-serif;
}

.tools-search input::placeholder {
    color: #7c8981;
}

.tools-search kbd {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--tools-line);
    border-radius: 7px;
    background: #ffffff;
    color: #6e7b73;
    font: 700 0.72rem/1 'Poppins', sans-serif;
    box-shadow: 0 2px 6px rgba(19, 32, 25, 0.05);
}

.tools-toolbar {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    max-width: 100%;
}

.tools-toolbar::-webkit-scrollbar {
    display: none;
}

.tools-chip {
    min-height: 42px;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tools-muted);
    font: 700 0.84rem/1 'Poppins', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.24s ease, background 0.24s ease;
}

.tools-chip:hover {
    background: var(--tools-soft);
    color: var(--tools-accent);
}

.tools-chip.active {
    background: rgba(126, 217, 87, 0.16);
    color: var(--tools-accent);
}

.tools-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 2.5rem 0 1rem;
}

.tools-section-heading h2 {
    margin: 0;
    color: var(--tools-ink);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
}

.tools-section-heading p {
    margin: 0.2rem 0 0;
    color: #718078;
    font-size: 0.82rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tool-card {
    position: relative;
    min-height: 252px;
    padding: 1.4rem;
    overflow: hidden;
    border: 1px solid var(--tools-line);
    border-radius: 18px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(19, 32, 25, 0.05);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.tool-card:hover,
.tool-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(126, 217, 87, 0.72);
    outline: none;
    box-shadow: 0 20px 46px rgba(19, 32, 25, 0.1);
}

.tool-card[hidden] {
    display: none;
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tool-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(126, 217, 87, 0.15);
    color: var(--tools-accent);
}

.tool-icon svg {
    width: 26px;
    height: 26px;
}

.tool-arrow {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 156, 45, 0.2);
    border-radius: 50%;
    color: var(--tools-accent);
    transition: transform 0.24s ease, background 0.24s ease;
}

.tool-arrow svg {
    width: 18px;
    height: 18px;
}

.tool-card:hover .tool-arrow,
.tool-card:focus-visible .tool-arrow {
    background: rgba(126, 217, 87, 0.14);
    transform: translateX(3px);
}

.tool-card h2 {
    margin: 0 0 0.55rem;
    color: var(--tools-ink);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
}

.tool-card p {
    min-height: 72px;
    margin: 0;
    color: var(--tools-muted);
    font-size: 0.84rem;
    line-height: 1.72;
}

.tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.tool-meta span {
    padding: 0.36rem 0.68rem;
    border: 1px solid rgba(74, 156, 45, 0.14);
    border-radius: 999px;
    background: var(--tools-soft);
    color: var(--tools-accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.tools-empty {
    margin: 0;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--tools-line);
    border-radius: 18px;
    background: #ffffff;
    color: var(--tools-muted);
    text-align: center;
}

.planned-tools {
    margin-top: 3.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--tools-line);
}

.tools-section-heading.compact {
    margin-top: 1.75rem;
}

.planned-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.planned-card {
    min-height: 150px;
    padding: 1.25rem;
    border: 1px solid var(--tools-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
}

.planned-card .tool-card-top {
    margin-bottom: 0.85rem;
}

.planned-card .tool-icon {
    width: 42px;
    height: 42px;
    background: #edf2ec;
    color: #68766d;
}

.planned-card .tool-icon svg {
    width: 21px;
    height: 21px;
}

.tool-status {
    padding: 0.34rem 0.65rem;
    border-radius: 999px;
    background: #edf2ec;
    color: #657169;
    font-size: 0.68rem;
    font-weight: 700;
}

.planned-card h2 {
    margin: 0 0 0.35rem;
    color: #4b5a50;
    font-size: 1rem;
    font-weight: 700;
}

.planned-card p {
    margin: 0;
    color: #718078;
    font-size: 0.8rem;
    line-height: 1.6;
}

.tools-info-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
    margin-top: 4rem;
    padding: 3.5rem 0 0;
    border-top: 1px solid var(--tools-line);
}

.tools-info-copy > span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--tools-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tools-info-copy h2,
.tools-index-faq h2 {
    margin: 0 0 1rem;
    color: var(--tools-ink);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.3;
}

.tools-info-copy p,
.tools-index-faq p {
    margin: 0;
    color: var(--tools-muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

.tools-index-faq details {
    padding: 1rem 0;
    border-top: 1px solid var(--tools-line);
}

.tools-index-faq details:first-of-type {
    border-top: 0;
}

.tools-index-faq summary {
    color: var(--tools-ink);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.tools-index-faq details p {
    padding-top: 0.65rem;
}

@media (max-width: 900px) {
    .tools-page {
        padding-top: 9rem;
    }

    .tools-discovery {
        align-items: stretch;
        flex-direction: column;
        gap: 0.7rem;
    }

    .tools-search {
        flex-basis: auto;
        width: 100%;
    }

    .tools-toolbar {
        width: 100%;
    }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-card p {
        min-height: 52px;
    }

    .tools-info-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 680px) {
    .tools-page {
        padding: 8.25rem 0 4rem;
    }

    .tools-page > .container {
        padding: 0 1.25rem;
    }

    .tools-header {
        margin-bottom: 1.8rem;
    }

    .tools-header h1 {
        max-width: 100%;
        font-size: 2rem;
        line-height: 1.16;
    }

    .tools-header p {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .tools-search {
        min-width: 0;
        max-width: 100%;
    }

    .tools-search kbd {
        display: none;
    }

    .tools-chip {
        padding: 0 0.85rem;
    }

    .tools-grid,
    .planned-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 0;
        padding: 1.3rem;
    }

    .tool-card p {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tool-card,
    .tool-arrow {
        transition: none;
    }
}
