/* ============================================================
   toolkit.css — "Put this to work"
   The block that finally connects Learn to Tools.

   Rendered by includes/track-toolkit.inc.php on lesson pages and
   track pages, for the 39 of 64 tracks that resolve to a real tool
   (74% of all lesson views). Tracks that resolve to nothing render
   nothing, so this stylesheet is sometimes loaded unused — it is
   ~4 KB and shares the page's existing tokens, which is cheaper
   than branching the $pageCSS array per lesson.
   Added 2026-11-18 (pass 007).
   ============================================================ */

.toolkit {
    margin: var(--space-10) 0 var(--space-8);
    padding: var(--space-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 92, 53, 0.09), transparent 58%),
        var(--surface);
    position: relative;
    overflow: hidden;
}

.toolkit::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad-primary);
    opacity: 0.8;
}

/* ── Head ───────────────────────────────────────────────────── */

.toolkit-head { margin-bottom: var(--space-5); }

.toolkit-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: var(--space-2);
}

.toolkit-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
}

/* ── Primary tool ───────────────────────────────────────────── */

.toolkit-primary {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.toolkit-logo {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
    font-size: 1.4rem;
}

.toolkit-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.toolkit-primary-main {
    flex: 1 1 240px;
    min-width: 0;
}

.toolkit-name-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.toolkit-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}

.toolkit-price {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--surface-3);
    color: var(--text-muted);
}

.toolkit-price-free     { background: color-mix(in srgb, var(--accent-green) 18%, var(--surface-3));  color: var(--accent-green);  }
.toolkit-price-freemium { background: color-mix(in srgb, var(--accent-cyan) 18%, var(--surface-3));   color: var(--accent-cyan);   }
.toolkit-price-paid     { background: color-mix(in srgb, var(--accent-yellow) 18%, var(--surface-3)); color: var(--accent-yellow); }

.toolkit-tagline {
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 var(--space-2);
    overflow-wrap: anywhere;
}

.toolkit-cat {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--text-faint);
}

.toolkit-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 170px;
}

.toolkit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-base),
                color var(--transition-fast), border-color var(--transition-fast);
}

.toolkit-btn-go {
    background: var(--grad-primary);
    color: #0b0710;
    box-shadow: var(--shadow-glow-orange);
}

.toolkit-btn-go:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255, 92, 53, 0.45);
    color: #0b0710;
}

.toolkit-btn-ghost {
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text-muted);
}

.toolkit-btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent-orange);
}

/* ── Footer line ────────────────────────────────────────────── */

.toolkit-foot {
    margin: var(--space-4) 0 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.toolkit-foot a {
    color: var(--accent-cyan);
    font-weight: 600;
}

.toolkit-foot a:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Small screens ──────────────────────────────────────────── */

@media (max-width: 700px) {
    .toolkit { padding: var(--space-5) var(--space-4); }

    .toolkit-actions {
        flex-direction: row;
        width: 100%;
        min-width: 0;
    }

    .toolkit-actions .toolkit-btn { flex: 1 1 0; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .toolkit-btn { transition: none; }
    .toolkit-btn-go:hover { transform: none; }
}
