/* ═══════════════════════════════════════════════════════════════════════
   crashgames.guide — /tools/ catalog hub bespoke styles
   Loaded conditionally on the tools-catalog page from _layout.php.

   Visual identity: math-toolkit / engineering-document feel.
   - Cinematic hero with formula-symbol ticker background
   - 2 prominent feature cards for the calculator + verifier
   - 3 math-primer cards with monospace formula display
   - 4-pillar privacy grid (2×2)
   - 3-step workflow with numbered steps
   - 3-column roadmap with shipped / in-progress / requested lanes
   ═══════════════════════════════════════════════════════════════════════ */
.page--tools-catalog .main { padding-top: 0; }
.page--tools-catalog main > .hero-tools:first-child,
.page--tools-catalog main > section:first-child { margin-top: 0; }


.page--tools-catalog main > .hero-tools:first-child { margin-top: 0; }

/* ── 1. CINEMATIC HERO with FORMULA RIBBON ─────────────────────── */
.hero-tools {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
    background:
        radial-gradient(70% 80% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
        radial-gradient(50% 60% at 85% 100%, rgba(79, 70, 229, 0.06), transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero-tools__formula-ribbon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 60px);
    padding: 0 var(--sp-4);
    pointer-events: none;
    user-select: none;
    font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(2.25rem, 5.5vw, 4.75rem);
    font-weight: 700;
    color: rgba(16, 185, 129, 0.06);
    letter-spacing: -0.02em;
    overflow: hidden;
    white-space: nowrap;
    z-index: 0;
}
.hero-tools__formula-ribbon span {
    flex-shrink: 0;
    transform: rotate(-7deg);
}
.hero-tools__formula-ribbon-accent { color: rgba(79, 70, 229, 0.07); }

.hero-tools__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}
.hero-tools__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--success);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-2);
}
.hero-tools__title {
    margin: 0;
    font-size: clamp(1.875rem, 4.5vw + 0.5rem, 3.5rem);
    font-weight: var(--fw-black);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text);
    max-width: 920px;
}
.hero-tools__lead {
    margin: 0;
    max-width: 720px;
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}
.hero-tools__topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
    padding: var(--sp-4) clamp(16px, 3vw, 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    margin-top: var(--sp-2);
}
.hero-tools__topline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 72px;
}
.hero-tools__topline-value {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--fw-black);
    line-height: 1;
    color: var(--success);
    letter-spacing: -0.02em;
}
.hero-tools__topline-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}
.hero-tools__topline-sep {
    width: 1px;
    height: 32px;
    background: var(--border);
}
@media (max-width: 540px) {
    .hero-tools__topline-sep { display: none; }
    .hero-tools__topline { gap: var(--sp-3); }
    .hero-tools__topline-stat {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
    }
    .hero-tools__topline-value { font-size: 1.5rem; }
    .hero-tools__formula-ribbon { font-size: 2rem; }
}
.hero-tools__filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    width: 100%;
}
.hero-tools__filters-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
    max-width: 720px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.filter-chip:hover {
    border-color: var(--success);
    background: var(--success-50);
    color: var(--success);
    transform: translateY(-1px);
}
.filter-chip__label { white-space: nowrap; }
.filter-chip__count {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 2px 7px;
    border-radius: var(--r-sm);
    line-height: 1.4;
}
.filter-chip:hover .filter-chip__count {
    background: rgba(255, 255, 255, 0.85);
    color: var(--success);
}
.hero-tools__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
    padding: 6px 14px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    margin-top: var(--sp-2);
}
.hero-tools__meta-sep { opacity: 0.5; }

/* ── COMMON: block-eyebrow + section-head ──────────────────────── */
.block-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--success);
    background: var(--success-50);
    border: 1px solid color-mix(in srgb, var(--success) 22%, transparent);
    padding: 4px 10px;
    border-radius: var(--r-full);
    margin-bottom: var(--sp-3);
}
.block-eyebrow--accent {
    color: var(--accent-dark);
    background: var(--accent-50);
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.section-head--centered {
    text-align: center;
    margin-bottom: var(--section-head-mb);
}
.section-head--centered .section-head__title {
    margin: 0 0 var(--sp-2);
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.875rem);
}
.section-head--centered .section-head__subtitle {
    margin: 0 auto;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
    max-width: 720px;
}

/* ── 3. TOOL FEATURE CARDS (2 prominent) ────────────────────────── */
.tool-cards-section { background: var(--bg); }
.tool-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}
@media (min-width: 768px) {
    .tool-feature-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}
.tool-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding: clamp(24px, 3vw, 36px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    overflow: hidden;
}
.tool-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--success), var(--accent));
}
.tool-feature-card:nth-child(2)::before {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.tool-feature-card:hover {
    border-color: var(--success);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.tool-feature-card__head {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
}
.tool-feature-card__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--r-lg);
    background: var(--success-50);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: var(--fw-black);
    line-height: 1;
}
.tool-feature-card:nth-child(2) .tool-feature-card__icon {
    background: var(--primary-50);
    color: var(--primary);
}
.tool-feature-card__title-wrap { flex: 1; min-width: 0; }
.tool-feature-card__name {
    margin: 0 0 4px;
    font-size: clamp(1.25rem, 1.6vw + 0.5rem, 1.625rem);
    font-weight: var(--fw-black);
    color: var(--text);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
}
.tool-feature-card__subtitle {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tool-feature-card__description {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: var(--lh-relaxed);
}
.tool-feature-card__features {
    list-style: none;
    margin: 0;
    padding: var(--sp-3);
    background: var(--bg-alt);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.tool-feature-card__features li {
    position: relative;
    padding-left: 22px;
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: var(--lh-snug);
}
.tool-feature-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: var(--fw-bold);
}
.tool-feature-card:nth-child(2) .tool-feature-card__features li::before { color: var(--primary); }
.tool-feature-card__cta {
    align-self: flex-start;
    margin-top: auto;
}

/* ── 4. MATH PRIMER (3 formula cards) ──────────────────────────── */
.math-primer-section { background: var(--bg-alt); }
.math-primer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}
@media (min-width: 768px) {
    .math-primer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}
.primer-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.primer-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.primer-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--accent-50);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: var(--fw-black);
}
.primer-card__title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: var(--lh-snug);
}
.primer-card__formula {
    display: block;
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--accent-dark);
}
.primer-card__body {
    flex: 1;
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}
.primer-card__link {
    margin-top: auto;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--accent-dark);
    transition: transform var(--t-fast);
}
.primer-card:hover .primer-card__link { transform: translateX(3px); }

/* ── 5. PRIVACY 4-PILLAR GRID (2×2) ────────────────────────────── */
.privacy-section { background: var(--bg); }
.privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}
@media (min-width: 640px) {
    .privacy-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}
.privacy-pillar {
    position: relative;
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--t-fast), transform var(--t-fast);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.privacy-pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-growth);
    opacity: 0;
    transition: opacity var(--t-fast);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.privacy-pillar:hover {
    border-color: var(--success);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.privacy-pillar:hover::before { opacity: 1; }
.privacy-pillar__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--success-50);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.privacy-pillar:nth-child(2) .privacy-pillar__icon { background: var(--primary-50); color: var(--primary); }
.privacy-pillar:nth-child(3) .privacy-pillar__icon { background: var(--alert-50);   color: var(--alert); }
.privacy-pillar:nth-child(4) .privacy-pillar__icon { background: var(--accent-50);  color: var(--accent-dark); }
.privacy-pillar__title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: var(--lh-snug);
}
.privacy-pillar__body {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

/* ── 6. WORKFLOW STEPS (3-step ordered list) ───────────────────── */
.workflow-section { background: var(--bg-alt); }
.workflow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    counter-reset: workflow;
    position: relative;
}
.workflow-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(180deg, var(--success), var(--accent), var(--primary));
    opacity: 0.25;
    z-index: 0;
}
.workflow-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--sp-4);
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5);
    box-shadow: var(--shadow-xs);
}
.workflow-step__num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--r-full);
    background: var(--grad-growth);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: var(--fs-md);
    font-weight: var(--fw-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.workflow-step__body {
    padding: var(--sp-2) 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.workflow-step__title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: var(--lh-snug);
}
.workflow-step__text {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}
.workflow-step__link {
    align-self: flex-start;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--success);
    transition: transform var(--t-fast);
}
.workflow-step__link:hover { transform: translateX(3px); }

/* ── 7. TOOL ROADMAP (3-lane) ──────────────────────────────────── */
.roadmap-section { background: var(--bg); }
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}
@media (min-width: 768px) {
    .roadmap-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}
.roadmap-lane {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.roadmap-lane--shipped     { border-top: 4px solid var(--success); }
.roadmap-lane--in-progress { border-top: 4px solid var(--accent-dark); }
.roadmap-lane--requested   { border-top: 4px solid var(--alert); }
.roadmap-lane__head {
    text-align: center;
    border-bottom: 1px dashed var(--border);
    padding-bottom: var(--sp-2);
}
.roadmap-lane__pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFFFFF;
}
.roadmap-lane--shipped     .roadmap-lane__pill { background: var(--success); }
.roadmap-lane--in-progress .roadmap-lane__pill { background: var(--accent-dark); }
.roadmap-lane--requested   .roadmap-lane__pill { background: var(--alert); }
.roadmap-lane__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.roadmap-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--sp-3);
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
}
.roadmap-item__title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text);
}
.roadmap-item__note {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ── 8. BODY ────────────────────────────────────────────────────── */
.catalog-body-section { background: var(--bg-alt); }
.hub-body h2 {
    margin-top: var(--sp-10);
    margin-bottom: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-subtle);
}
.hub-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hub-body p { margin-bottom: var(--sp-4); line-height: var(--lh-relaxed); }
.hub-body .answer-box {
    background: var(--success-50);
    border-left: 3px solid var(--success);
    border-radius: var(--r-md);
    padding: var(--sp-4) var(--sp-5);
    margin: var(--sp-5) 0;
}
.hub-body .answer-box__label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--success);
    margin-bottom: 6px;
}
.hub-body .answer-box__text { margin: 0; font-size: var(--fs-md); line-height: var(--lh-relaxed); }
.hub-body .review-pullquote {
    margin: var(--sp-8) 0;
    padding: var(--sp-5) var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: var(--r-lg);
}
.hub-body .review-pullquote blockquote {
    margin: 0 0 var(--sp-3);
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    line-height: var(--lh-snug);
    color: var(--text);
    font-style: italic;
}
.hub-body .review-pullquote figcaption {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.hub-body .body-aside {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    margin: var(--sp-6) 0;
    padding: var(--sp-4) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
}
.hub-body .body-aside--exclude { border-left-color: var(--alert); }
.hub-body .body-aside--stats   { border-left-color: var(--accent); }
.hub-body .body-aside--ethics  { border-left-color: var(--success); }
.hub-body .body-aside__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}
.hub-body .body-aside--exclude .body-aside__icon { background: var(--alert-50);   color: var(--alert); }
.hub-body .body-aside--stats   .body-aside__icon { background: var(--accent-50);  color: var(--accent-dark); }
.hub-body .body-aside--ethics  .body-aside__icon { background: var(--success-50); color: var(--success); }
.hub-body .body-aside__body { flex: 1; min-width: 0; }
.hub-body .body-aside__title {
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
}
.hub-body .body-aside p {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
}
@media (max-width: 540px) {
    .hub-body .body-aside { flex-direction: column; gap: var(--sp-3); }
}

/* ── 9. METHODOLOGY 2×2 ────────────────────────────────────────── */
.methodology-section { background: var(--bg); }
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}
@media (min-width: 640px) {
    .methodology-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}
.meth-card {
    position: relative;
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--t-fast), transform var(--t-fast);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.meth-card:hover {
    border-color: var(--success);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.meth-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--success-50);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.meth-card:nth-child(2) .meth-card__icon { background: var(--accent-50); color: var(--accent-dark); }
.meth-card:nth-child(3) .meth-card__icon { background: var(--primary-50); color: var(--primary); }
.meth-card:nth-child(4) .meth-card__icon { background: var(--alert-50); color: var(--alert); }
.meth-card__title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: var(--lh-snug);
}
.meth-card__body {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

/* ── 10. GLOSSARY ─────────────────────────────────────────────── */
.glossary-section { background: var(--bg-alt); }
.glossary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}
@media (min-width: 640px) {
    .glossary-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}
@media (min-width: 1024px) {
    .glossary-grid { grid-template-columns: repeat(3, 1fr); }
    .glossary-grid .glossary-tile:nth-child(4) { grid-column: 1 / 3; }
    .glossary-grid .glossary-tile:nth-child(5) { grid-column: 3 / 4; }
}
.glossary-tile {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.glossary-tile:hover {
    border-color: var(--success);
    background: var(--success-50);
}
.glossary-tile__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--success-50);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--fs-md);
    font-weight: var(--fw-black);
}
.glossary-tile__body { flex: 1; min-width: 0; }
.glossary-tile__term {
    margin: 0 0 4px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text);
}
.glossary-tile__def {
    margin: 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

/* ── 12. TOOLS FAQ ───────────────────────────────────────────── */
.tools-faq-section { background: var(--bg); }
.tools-faq-section .faq-head {
    text-align: center;
    margin-bottom: var(--sp-6);
}
.tools-faq-section .faq-head__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--success);
    background: var(--success-50);
    padding: 4px 10px;
    border-radius: var(--r-full);
    margin-bottom: var(--sp-2);
}
.tools-faq-section .faq-head__title { margin: 0 0 var(--sp-2); }
.tools-faq-section .faq-head__lead {
    margin: 0 auto;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    max-width: 640px;
}
.tools-faq-section .faq-list--home {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-3);
    box-shadow: var(--shadow-sm);
}
.tools-faq-section .faq-item {
    border-radius: var(--r-md);
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--t-fast);
}
.tools-faq-section .faq-item[open] { border-color: var(--success); }
.tools-faq-section .faq-item__q {
    cursor: pointer;
    list-style: none;
    padding: var(--sp-3) var(--sp-4);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-md);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}
.tools-faq-section .faq-item__q::-webkit-details-marker { display: none; }
.tools-faq-section .faq-item__q::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: var(--fs-lg);
    color: var(--success);
}
.tools-faq-section .faq-item[open] .faq-item__q::after { content: '−'; }
.tools-faq-section .faq-item__a {
    padding: 0 var(--sp-4) var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--text);
    line-height: var(--lh-relaxed);
}
.tools-faq-section .faq-item__a p { margin: 0 0 var(--sp-3); }
.tools-faq-section .faq-item__a p:last-child { margin: 0; }

/* ── 13. CROSS-HUB LINKS (5 SVG cards) ───────────────────────── */
.cross-hubs-section { background: var(--bg); }
.cross-hubs {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}
@media (min-width: 640px) {
    .cross-hubs { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}
@media (min-width: 1024px) {
    .cross-hubs { grid-template-columns: repeat(5, 1fr); }
}
.cross-hub {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.cross-hub::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-primary);
    opacity: 0.6;
    transition: opacity var(--t-fast), height var(--t-fast);
}
.cross-hub:hover {
    border-color: var(--success);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.cross-hub:hover::before { opacity: 1; height: 4px; }
.cross-hub__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--r-lg);
    background: var(--primary-50);
    color: var(--primary);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.cross-hub__icon svg { width: 32px; height: 32px; }
.cross-hub:hover .cross-hub__icon { transform: scale(1.05) rotate(-3deg); }

.cross-hub--home    .cross-hub__icon { background: var(--primary-50); color: var(--primary-dark); }
.cross-hub--home::before              { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.cross-hub--games   .cross-hub__icon { background: var(--accent-50);  color: var(--accent-dark); }
.cross-hub--games::before             { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.cross-hub--studios .cross-hub__icon { background: var(--accent-50);  color: var(--accent-dark); }
.cross-hub--studios::before           { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.cross-hub--versus  .cross-hub__icon { background: #FEF3C7;           color: #B45309; }
.cross-hub--versus::before            { background: linear-gradient(135deg, #F59E0B, #FB923C); }
.cross-hub--blog    .cross-hub__icon { background: var(--alert-50);   color: var(--alert); }
.cross-hub--blog::before              { background: var(--grad-crash); }

.cross-hub__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: var(--lh-snug);
}
.cross-hub__lead {
    flex: 1;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
    margin: 0;
}
.cross-hub__arrow {
    align-self: flex-end;
    font-family: var(--font-mono);
    font-size: var(--fs-xl);
    color: var(--success);
    line-height: 1;
    transition: transform var(--t-fast);
}
.cross-hub:hover .cross-hub__arrow { transform: translateX(4px); }

/* ── AUTHOR BYLINE ─────────────────────────────────────────────── */
.author-byline {
    display: flex;
    justify-content: center;
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-subtle);
}
.author-byline__inner {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    flex-wrap: wrap;
    justify-content: center;
}
.author-byline__label { font-weight: var(--fw-medium); }
.author-byline__name {
    color: var(--success);
    font-weight: var(--fw-semibold);
}
.author-byline__sep { opacity: 0.4; }
.author-byline__date { font-family: var(--font-mono); font-size: var(--fs-xs); }
