/* Tools landing page. Tokens and chrome come from tools-theme.css. */
.intro {
    padding: 32px 0 28px;
}

.intro h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.intro p {
    margin: 0;
    max-width: 56ch;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.feature {
    position: relative;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature:hover {
    border-color: var(--accent);
}

.badge-live {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #171717;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18);
}

.badge-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.feature img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.feature:hover img {
    transform: scale(1.02);
}

.feature {
    overflow: hidden;
}

.feature-body {
    padding: 20px;
}

.feature h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.feature:hover h2 {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.feature p {
    margin: 0 0 12px;
    color: var(--text-muted);
    max-width: 52ch;
}

.feature-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.group {
    margin-bottom: 32px;
}

.group h2 {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tool-list li + li {
    border-top: 1px solid var(--border);
}

.tool-list a {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    color: inherit;
    text-decoration: none;
}

.tool-list a:hover {
    background: var(--surface-2);
}

.tool-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.tool-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tool-name {
    font-weight: 600;
}

.tool-list a:hover .tool-name {
    color: var(--accent);
}

.tool-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.note {
    margin: 40px 0 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

@media (max-width: 760px) {
    .featured {
        grid-template-columns: 1fr;
    }

    .tool-list a {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        padding: 12px 14px;
    }
}
