/* ============================================================
   Block: Tools Grid — mobile-first (base · 768 · 992)
   ============================================================ */
.tg__inner { padding-block: 3.5rem; }

.tg__head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.tg__heading { font-size: 3.6rem; font-weight: 800; margin: 0; }
.tg__viewall {
    align-self: flex-start;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 2px solid var(--foreground);
    padding-bottom: 2px;
}
.tg__viewall:hover { color: var(--accent); border-color: var(--accent); }

/* hairline grid: 1px gaps filled by the border colour */
.tg__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.tg__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    padding: 1.2rem;
    background: var(--card);
    transition: background 0.2s, color 0.2s;
}
.tg__card:hover { background: var(--primary); color: var(--primary-foreground); }

.tg__card-top { display: flex; align-items: center; justify-content: flex-end; }
.tg__badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 2px 6px;
    border-radius: 2px;
}
.tg__badge--pro {
    color: var(--accent);
    background: color-mix(in oklab, var(--accent) 15%, transparent);
}
.tg__badge--free {
    color: #047857;
    background: #d1fae5;
}
.tg__card:hover .tg__badge--pro,
.tg__card:hover .tg__badge--free {
    color: var(--primary-foreground);
    background: rgba(255, 255, 255, 0.15);
}

.tg__card-body { margin-top: 2rem; }
.tg__title { font-size: 1.6rem; font-weight: 700; margin: 0; }
.tg__card:hover .tg__title { color: #fff; }
.tg__desc { font-size: 1.3rem; color: var(--muted-foreground); margin: 0.25rem 0 0; }
.tg__card:hover .tg__desc { color: rgba(255, 255, 255, 0.8); }

.tg__cta {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.tg__card:hover .tg__cta { color: var(--primary-foreground); }

/* ---------- ≥ 768px ---------- */
@media (min-width: 768px) {
    .tg__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .tg__heading { font-size: 3.6rem; }
    .tg__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- ≥ 992px ---------- */
@media (min-width: 992px) {
    .tg__grid { grid-template-columns: repeat(8, 1fr); }
}
