/* ============================================================
   Features category hubs (page-hub.php) - loaded only on that
   template (inc/hubs.php). Mobile-first. All marks are .qyx-hub-*.
   ============================================================ */

.qyx-hub { --hub-muted: var(--qyx-text-muted, #6b7080); --hub-ink: var(--qyx-heading, #111); --hub-border: var(--qyx-border, #e5e7eb); --hub-soft: #f5f6fa; }
.qyx-hub__wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.qyx-hub__narrow { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: 1rem; }
.qyx-hub-section { padding-block: clamp(3rem, 6vw, 5rem); }

.qyx-hub-h2 { font-size: clamp(1.75rem, 1rem + 2.6vw, 2.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--hub-ink); }
.qyx-hub-h2--center { text-align: center; max-width: 44rem; margin-inline: auto; }
.qyx-hub-head { text-align: center; max-width: 44rem; margin-inline: auto; }
.qyx-hub-lead { margin-top: 0.9rem; font-size: 1.075rem; line-height: 1.6; color: var(--hub-muted); }

/* ---------- hero ---------- */
.qyx-hub-hero { padding-top: 6rem; padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.qyx-hub-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.qyx-hub-hero__copy { max-width: 36rem; }
.qyx-hub-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.8rem; color: var(--hub-muted); }
.qyx-hub-crumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.5; }
.qyx-hub-crumbs a { color: inherit; text-decoration: none; }
.qyx-hub-crumbs a:hover { color: var(--hub-ink); text-decoration: underline; }
.qyx-hub-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hub-muted); }
.qyx-hub-hero__title { margin-top: 0.9rem; font-size: clamp(2.2rem, 1rem + 4.4vw, 3.6rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; color: var(--hub-ink); }
.qyx-hub-hero__sub { margin-top: 1.25rem; font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.2rem); line-height: 1.55; color: var(--hub-muted); }
.qyx-hub-hero__ctas { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
.qyx-hub-hero__ctas > .qyx-cta .qyx-cta__body { width: 100%; justify-content: center; }
.qyx-hub-hero__ctas > .qyx-cta-quiet { text-align: center; padding: 0.25rem 0; }
.qyx-hub-note { margin-top: 1rem; font-size: 0.85rem; color: var(--hub-muted); }
.qyx-hub-note--light { color: rgba(255, 255, 255, 0.65); }
.qyx-hub-hero__notice {
	margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem;
	border-radius: 12px; background: color-mix(in srgb, var(--qyx-grad-1, #3b82f6) 9%, #fff);
	font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--hub-ink);
}
.qyx-hub-hero__notice svg, .qyx-hub-hero__notice i { flex-shrink: 0; }

/* hero collage: the first stack screenshots of the category, fanned */
.qyx-hub-hero__media { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; padding: 0.5rem 0 1rem; }
.qyx-hub-hero__shot {
	margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--hub-border); background: var(--hub-soft);
	box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.45);
}
.qyx-hub-hero__shot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.qyx-hub-hero__shot--0 { grid-column: 1 / span 5; grid-row: 1; z-index: 2; }
.qyx-hub-hero__shot--1 { grid-column: 2 / span 5; grid-row: 1; z-index: 1; transform: translateY(-14%) rotate(3deg) scale(0.92); opacity: 0.9; }
.qyx-hub-hero__shot--2 { display: none; }
.qyx-hub-hero__media--1 .qyx-hub-hero__shot--0 { grid-column: 1 / -1; }

/* ---------- tool cards ---------- */
.qyx-hub-grid { margin: 2.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.25rem; }
.qyx-hub-card {
	display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 6rem;
	border-radius: var(--qyx-card-radius, 24px); background: #fff; border: 1px solid var(--hub-border);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qyx-hub-card:hover { border-color: color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 35%, var(--hub-border)); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.35); }
.qyx-hub-card:target { border-color: var(--hub-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 25%, transparent); }
.qyx-hub-card__fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hub-soft); border-bottom: 1px solid var(--hub-border); }
.qyx-hub-card__fig picture, .qyx-hub-card__fig img { display: block; width: 100%; height: 100%; }
.qyx-hub-card__fig img { object-fit: cover; object-position: top center; }
.qyx-hub-card__ph {
	display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--hub-ink);
	background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 14%, #fff), var(--hub-soft));
}
.qyx-hub-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem 1.4rem 1.5rem; }
.qyx-hub-card__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hub-muted); }
.qyx-hub-card__title { margin-top: 0.45rem; font-size: 1.2rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--hub-ink); }
.qyx-hub-card__title a { color: inherit; text-decoration: none; }
.qyx-hub-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qyx-hub-card__desc { margin-top: 0.5rem; font-size: 0.97rem; line-height: 1.55; color: var(--hub-muted); }
.qyx-hub-card__more { margin-top: auto; padding-top: 1.1rem; }
.qyx-hub-card__more a { font-weight: 600; color: var(--hub-ink); text-decoration: underline; text-underline-offset: 3px; }
.qyx-hub-card__more a:hover { text-decoration-thickness: 2px; }

/* ---------- jobs ---------- */
.qyx-hub-jobs { background: var(--hub-soft); }
.qyx-hub-pills { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.qyx-hub-pills a {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
	border-radius: 18px; background: #fff; border: 1px solid var(--hub-border);
	font-weight: 700; color: var(--hub-ink); text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qyx-hub-pills a:hover { border-color: color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 40%, var(--hub-border)); transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.35); }

/* ---------- uses ---------- */
.qyx-hub-uses__grid { margin: 2rem auto 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; max-width: 56rem; }
.qyx-hub-uses__grid li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--hub-soft); }
.qyx-hub-uses__grid li > svg, .qyx-hub-uses__grid li > i { flex-shrink: 0; margin-top: 0.15rem; color: var(--hub-ink); }
.qyx-hub-uses__grid p { font-size: 1rem; line-height: 1.55; color: var(--qyx-text, #2b2b2b); }
.qyx-hub-uses__grid strong { color: var(--hub-ink); }

/* ---------- callout (models / product rule / human in the loop) ---------- */
.qyx-hub-callout {
	padding: 2rem 1.5rem; border-radius: var(--qyx-card-radius, 24px); text-align: center;
	background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 9%, #fff), #fff 70%);
	border: 1px solid var(--hub-border);
}
.qyx-hub-callout__title { font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--hub-ink); }
.qyx-hub-callout__lead { margin-top: 0.9rem; font-size: 1.05rem; font-weight: 700; color: var(--hub-ink); }
.qyx-hub-callout p:last-child { margin-top: 0.75rem; font-size: 1.02rem; line-height: 1.6; color: var(--qyx-text, #2b2b2b); }

/* ---------- one login instead of ---------- */
.qyx-hub-instead__list { margin: 1.75rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.qyx-hub-instead__list li {
	padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--hub-border); background: #fff;
	font-size: 0.92rem; font-weight: 600; color: var(--hub-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--hub-muted) 60%, transparent);
}
.qyx-hub-instead__text { margin-top: 1.25rem; text-align: center; font-size: 1.075rem; line-height: 1.6; color: var(--qyx-text, #2b2b2b); }

/* ---------- FAQ ---------- */
.qyx-hub-faq__item { border-bottom: 1px solid var(--hub-border); }
.qyx-hub-faq__item:first-of-type { margin-top: 1.25rem; border-top: 1px solid var(--hub-border); }
.qyx-hub-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--hub-ink); }
.qyx-hub-faq__item summary::-webkit-details-marker { display: none; }
.qyx-hub-faq__item summary::after { content: "+"; flex-shrink: 0; font-size: 1.35rem; font-weight: 400; color: var(--hub-muted); transition: transform 0.2s ease; }
.qyx-hub-faq__item[open] summary::after { transform: rotate(45deg); }
.qyx-hub-faq__item summary:focus-visible { outline: 2px solid var(--hub-ink); outline-offset: 2px; }
.qyx-hub-faq__item p { padding-bottom: 1.1rem; font-size: 0.98rem; line-height: 1.6; color: var(--qyx-text, #2b2b2b); }

/* ---------- final CTA ---------- */
.qyx-hub-final__card { position: relative; overflow: hidden; padding: 2.5rem 1.25rem; border-radius: 32px; text-align: center; background: var(--qyx-bg-dark, #080507); }
.qyx-hub-final__card::before {
	content: ""; position: absolute; inset: -40% 20% auto; height: 60%; filter: blur(80px); opacity: 0.45; pointer-events: none;
	background: var(--qyx-accent-gradient, linear-gradient(90deg, #3b82f6, #7c3aed, #ec4899, #f59e0b, #22c55e));
}
.qyx-hub-final__card > * { position: relative; }
.qyx-hub-final__title { max-width: 40rem; margin-inline: auto; font-size: clamp(1.7rem, 1rem + 2.8vw, 2.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.qyx-hub-final__cta { margin-top: 1.75rem; display: flex; justify-content: center; }
.qyx-hub-final__services { margin-top: 1.25rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.qyx-hub-final__services a { margin-left: 0.25rem; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- more hubs ---------- */
.qyx-hub-more { padding-top: 0; }
.qyx-hub-more__grid { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.qyx-hub-more__grid a {
	display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.15rem; border-radius: 18px; background: #fff; border: 1px solid var(--hub-border);
	font-weight: 700; color: var(--hub-ink); text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qyx-hub-more__grid a:hover { border-color: color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 40%, var(--hub-border)); transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.35); }
.qyx-hub-more__icon { display: inline-flex; flex-shrink: 0; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 12px; background: var(--hub-soft); }
.qyx-hub-more__arrow { margin-left: auto; color: var(--hub-muted); }

/* ---------- tablet ---------- */
@media (min-width: 640px) {
	.qyx-hub__wrap, .qyx-hub__narrow { padding-inline: 1.5rem; }
	.qyx-hub-hero__ctas { flex-direction: row; align-items: center; gap: 1rem; }
	.qyx-hub-hero__ctas > .qyx-cta .qyx-cta__body { width: auto; }
	.qyx-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qyx-hub-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qyx-hub-uses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qyx-hub-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qyx-hub-callout { padding: 2.75rem 2.5rem; }
	.qyx-hub-final__card { padding: 3.5rem 2.5rem; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
	.qyx-hub__wrap, .qyx-hub__narrow { padding-inline: 2rem; }
	.qyx-hub-hero { padding-top: 8rem; }
	.qyx-hub-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
	.qyx-hub-hero__media--3 { grid-template-columns: repeat(8, 1fr); }
	.qyx-hub-hero__media--3 .qyx-hub-hero__shot--0 { grid-column: 2 / span 6; }
	.qyx-hub-hero__media--3 .qyx-hub-hero__shot--1 { grid-column: 3 / span 6; transform: translate(8%, -16%) rotate(4deg) scale(0.88); }
	.qyx-hub-hero__media--3 .qyx-hub-hero__shot--2 { display: block; grid-column: 1 / span 6; grid-row: 1; z-index: 0; transform: translate(-6%, 18%) rotate(-4deg) scale(0.86); opacity: 0.85; }
	.qyx-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.qyx-hub-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.qyx-hub-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.qyx-hub-final__card { padding: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.qyx-hub-card, .qyx-hub-pills a, .qyx-hub-more__grid a, .qyx-hub-faq__item summary::after { transition: none; }
	.qyx-hub-card:hover, .qyx-hub-pills a:hover, .qyx-hub-more__grid a:hover { transform: none; }
}