/*
 * Tool cards: a grid of cards, each with a colored dot, a title, a description,
 * a checklist and a link. The link's ::after stretches over the whole card.
 */

.tool-cards {
    margin-bottom: var(--section-gap);
}

.tool-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tool-cards__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    box-sizing: border-box;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: border-color 0.2s ease;
}

.tool-cards__card:hover,
.tool-cards__card:focus-within {
    border-color: rgba(107, 94, 240, 0.35);
}

.tool-cards__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tool-cards__dot {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.tool-cards__dot--1 {
    background: var(--grad-dot-1);
}

.tool-cards__dot--2 {
    background: var(--grad-dot-2);
}

.tool-cards__dot--3 {
    background: var(--grad-dot-3);
}

.tool-cards__meta {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink-muted);
}

.tool-cards__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-cards__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tool-cards__body {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.tool-cards__points {
    flex-grow: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-cards__point {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-body);
}

.tool-cards__point::before {
    content: '✓';
    font-weight: 600;
    color: var(--accent);
}

.tool-cards__footer {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
}

.tool-cards__action {
    color: var(--accent-ink);
    text-decoration: none;
}

.tool-cards__action::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
}

.tool-cards__action:focus-visible {
    outline: none;
}

.tool-cards__action:focus-visible::after {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .tool-cards__card {
        padding: 22px;
    }

    .tool-cards__title {
        font-size: 20px;
    }
}

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