/* Free tools hub (/tools).

   Replaces the inline <style> block the page carried while it listed ~16 hand-curated tools.
   At 89 catalogue-driven tools the old image-led two-column card stopped working: 74 cards shared
   one placeholder OG banner cropped to a sliver, and every card repeated the same trust and
   pricing sentences. Those are now stated once at page level, so a card carries only what differs
   between tools — product, name, description, and what it takes in.

   The product filter is CSS-only (hidden radios + :has()) because the page is static SSR
   (ExcludeFromInteractiveRouting) and must stay crawlable. With :has() unsupported every tool
   simply stays visible, which is the pre-filter behaviour. */

.tools-hub {
    --hub-border: rgba(103, 232, 249, .18);
    --hub-border-strong: rgba(103, 232, 249, .45);
    --hub-muted: #9aa9be;
    --hub-cyan: #67e8f9;
    --hub-violet: #c4b5fd;
    --hub-ink: #f8fafc;
    color: #e2e8f0;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3.5rem 1rem 5rem;
}

/* ---- hero ---- */
.tools-hub__hero { max-width: 900px; margin: 0 auto 2.5rem; text-align: center; }
.tools-hub__eyebrow { display: block; color: var(--hub-cyan); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; margin: 0; }
.tools-hub__hero h1 { margin: .8rem 0 1rem; color: var(--hub-ink); font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; }
.tools-hub__hero h1 span { background: linear-gradient(115deg, #67e8f9 5%, #818cf8 55%, #d8b4fe); background-clip: text; -webkit-background-clip: text; color: transparent; }
.tools-hub__lede { max-width: 660px; margin: 0 auto; color: var(--hub-muted); font-size: 1.1rem; line-height: 1.7; }

/* ---- the trust + pricing facts, stated once for all 89 tools ---- */
.tools-hub__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.5rem; }
.tools-hub__facts span { border: 1px solid var(--hub-border); border-radius: 999px; padding: .4rem .8rem; color: #cbd5e1; background: rgba(15, 23, 42, .78); font-size: .8rem; font-weight: 750; }
.tools-hub__pricing { max-width: 940px; margin: 1.6rem auto 0; padding: 1rem 1.25rem; border: 1px solid rgba(129, 140, 248, .28); border-radius: 14px; background: linear-gradient(135deg, rgba(34, 211, 238, .07), rgba(168, 85, 247, .08)); color: #cbd5e1; line-height: 1.6; font-size: .93rem; text-align: left; }
.tools-hub__pricing strong { color: var(--hub-ink); }

/* ---- answer capsule (AEO) ---- */
.tools-hub__answer { max-width: 940px; margin: 2.5rem auto 3rem; padding: 1.25rem 1.4rem; border: 1px solid var(--hub-border); border-radius: 16px; background: rgba(15, 23, 42, .6); color: #cbd5e1; line-height: 1.72; font-size: .95rem; }
.tools-hub__answer strong { color: var(--hub-ink); }

/* ---- product filter ---- */
.tools-hub__filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .9rem; }
.tools-hub__filter-label { color: var(--hub-muted); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-right: .3rem; }
.tools-hub__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tools-hub__chip { cursor: pointer; user-select: none; border: 1px solid var(--hub-border); border-radius: 999px; padding: .4rem .8rem; color: #cbd5e1; background: rgba(15, 23, 42, .78); font-size: .82rem; font-weight: 750; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.tools-hub__chip b { color: var(--hub-muted); font-weight: 750; margin-left: .3rem; }
.tools-hub__chip:hover { border-color: var(--hub-border-strong); }
.tools-hub__radio:focus-visible + .tools-hub__chip { outline: 2px solid var(--hub-cyan); outline-offset: 2px; }
.tools-hub__radio:checked + .tools-hub__chip { color: #07111d; background: linear-gradient(110deg, #67e8f9, #a5b4fc); border-color: transparent; font-weight: 850; }
.tools-hub__radio:checked + .tools-hub__chip b { color: rgba(7, 17, 29, .68); }

/* ---- jump nav ---- */
.tools-hub__jump { display: flex; flex-wrap: wrap; gap: .4rem .95rem; padding: 0 0 1.6rem; margin: 0 0 2.2rem; border-bottom: 1px solid rgba(148, 163, 184, .14); list-style: none; }
.tools-hub__jump a { color: var(--hub-muted); text-decoration: none; font-size: .86rem; font-weight: 700; }
.tools-hub__jump a:hover { color: var(--hub-cyan); }
.tools-hub__jump b { color: #64748b; font-weight: 700; }

/* ---- sections + grid ---- */
.tools-hub__section { margin: 0 0 3rem; scroll-margin-top: 1.5rem; }
.tools-hub__section-head { margin-bottom: 1rem; }
.tools-hub__section-head h2 { margin: 0 0 .25rem; color: var(--hub-ink); font-size: clamp(1.45rem, 2.6vw, 1.95rem); letter-spacing: -.02em; }
.tools-hub__section-head p { margin: 0; color: var(--hub-muted); font-size: .95rem; }
.tools-hub__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }

.tools-hub__card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.05rem 1.15rem 1.15rem; border: 1px solid var(--hub-border); border-radius: 14px; background: linear-gradient(145deg, rgba(17, 26, 46, .96), rgba(11, 18, 34, .96)); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tools-hub__card:hover { transform: translateY(-2px); border-color: var(--hub-border-strong); box-shadow: 0 12px 30px rgba(2, 8, 23, .38); }
.tools-hub__card-product { color: var(--hub-violet); font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.tools-hub__card h3 { margin: .4rem 0 .45rem; font-size: 1.02rem; line-height: 1.3; letter-spacing: -.01em; }
.tools-hub__card h3 a { color: var(--hub-ink); text-decoration: none; }
/* Stretched link: the whole card is the hit area, but only one real anchor exists per tool. */
.tools-hub__card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.tools-hub__card h3 a:focus-visible::after { outline: 2px solid var(--hub-cyan); outline-offset: 2px; }
/* Clamped so grid rows stay a uniform height across 89 cards. The full text stays in the DOM for
   crawlers and screen readers; only the visual overflow is clipped. */
.tools-hub__card-desc { margin: 0; color: var(--hub-muted); font-size: .87rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.tools-hub__card-takes { margin: auto 0 0; padding-top: .7rem; color: #7dd3fc; font-size: .77rem; line-height: 1.4; }
.tools-hub__card-takes span { color: #64748b; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-right: .35rem; }
.tools-hub__card-guide { position: relative; z-index: 1; margin: .5rem 0 0; font-size: .77rem; line-height: 1.4; }
.tools-hub__card-guide a { color: var(--hub-muted); text-decoration: underline; text-underline-offset: .18em; }
.tools-hub__card-guide a:hover { color: var(--hub-cyan); }

/* ---- CSS-only product filter.
   One pair of rules per product: hide non-matching cards, then hide sections left with none.
   PublicToolsHubTests asserts this list covers every product in the catalogue. ---- */
.tools-hub__catalog:has(#tf-prism:checked) .tools-hub__card:not([data-product="Prism"]),
.tools-hub__catalog:has(#tf-lumen:checked) .tools-hub__card:not([data-product="Lumen"]),
.tools-hub__catalog:has(#tf-lex:checked) .tools-hub__card:not([data-product="Lex"]),
.tools-hub__catalog:has(#tf-arc:checked) .tools-hub__card:not([data-product="Arc"]),
.tools-hub__catalog:has(#tf-quill:checked) .tools-hub__card:not([data-product="Quill"]),
.tools-hub__catalog:has(#tf-business:checked) .tools-hub__card:not([data-product="Business"]),
.tools-hub__catalog:has(#tf-folio:checked) .tools-hub__card:not([data-product="Folio"]) { display: none; }

.tools-hub__catalog:has(#tf-prism:checked) .tools-hub__section:not(:has(.tools-hub__card[data-product="Prism"])),
.tools-hub__catalog:has(#tf-lumen:checked) .tools-hub__section:not(:has(.tools-hub__card[data-product="Lumen"])),
.tools-hub__catalog:has(#tf-lex:checked) .tools-hub__section:not(:has(.tools-hub__card[data-product="Lex"])),
.tools-hub__catalog:has(#tf-arc:checked) .tools-hub__section:not(:has(.tools-hub__card[data-product="Arc"])),
.tools-hub__catalog:has(#tf-quill:checked) .tools-hub__section:not(:has(.tools-hub__card[data-product="Quill"])),
.tools-hub__catalog:has(#tf-business:checked) .tools-hub__section:not(:has(.tools-hub__card[data-product="Business"])),
.tools-hub__catalog:has(#tf-folio:checked) .tools-hub__section:not(:has(.tools-hub__card[data-product="Folio"])) { display: none; }

/* The jump nav counts stop matching what is on screen once a product filter is on. */
.tools-hub__catalog:has(.tools-hub__radio:not(#tf-all):checked) .tools-hub__jump { display: none; }

/* ---- table ---- */
.tools-hub__table-scroll { overflow-x: auto; }
.tools-hub__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .88rem; }
.tools-hub__table caption { text-align: left; color: var(--hub-muted); font-size: .82rem; padding-bottom: .6rem; }
.tools-hub__table th, .tools-hub__table td { padding: .75rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.tools-hub__table thead th { color: var(--hub-cyan); font-size: .71rem; letter-spacing: .07em; text-transform: uppercase; }
.tools-hub__table tbody th { color: var(--hub-ink); font-weight: 800; white-space: nowrap; }
.tools-hub__table td { color: #cbd5e1; }

/* ---- FAQ ---- */
.tools-hub__faq { display: grid; gap: .7rem; }
.tools-hub__faq-item { padding: 1rem 1.1rem; border: 1px solid rgba(148, 163, 184, .16); border-radius: 12px; background: rgba(2, 8, 23, .32); }
.tools-hub .seo-faq-q { margin: 0 0 .4rem; color: var(--hub-ink); font-weight: 800; }
.tools-hub .seo-faq-a { margin: 0; color: var(--hub-muted); line-height: 1.7; font-size: .93rem; }
.tools-hub .seo-faq-a a { color: var(--hub-cyan); font-weight: 700; }

/* ---- bottom CTA ---- */
.tools-hub__bottom { max-width: 820px; margin: 3.5rem auto 0; text-align: center; padding: 2.2rem 1.5rem; border: 1px solid rgba(196, 181, 253, .25); border-radius: 20px; background: rgba(15, 23, 42, .65); }
.tools-hub__bottom h2 { color: var(--hub-ink); margin: 0 0 .6rem; }
.tools-hub__bottom p { color: var(--hub-muted); margin: 0 auto 1.1rem; line-height: 1.65; }
.tools-hub__bottom a { color: var(--hub-cyan); font-weight: 750; }

@media (max-width: 1040px) { .tools-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
    .tools-hub { padding-top: 2rem; }
    .tools-hub__grid { grid-template-columns: 1fr; }
    .tools-hub__jump { gap: .35rem .75rem; }
}
