/**
 * Landing pages (CPT qyx_landing) - single + hub.
 *
 * Enqueued only on is_singular('qyx_landing') / is_post_type_archive.
 * BEM under .qyx-landing__*, built on the theme tokens in _tokens.css.
 * Motion is transform/opacity only and respects prefers-reduced-motion.
 */

.qyx-landing {
	--lp-gutter: clamp(1rem, 4vw, 2rem);
	--lp-maxw: 78rem;
	--lp-gap: clamp(2rem, 5vw, 4rem);
	--lp-radius: var(--qyx-card-radius, 24px);
	color: var(--qyx-text, #2b2b2b);
}

.qyx-landing__wrap {
	width: 100%;
	max-width: var(--lp-maxw);
	margin-inline: auto;
	padding-inline: var(--lp-gutter);
}

/* Alternating surfaces: the page used to be one flat wash where no section had
   an edge. White / off-white in turn gives every block a boundary without a
   single new colour - both values are existing tokens. */
.qyx-landing .site-section { padding-block: clamp(2.75rem, 5.5vw, 5rem); background: var(--qyx-bg-light, #fafafa); }
.qyx-landing .qyx-landing__hiw,
.qyx-landing .qyx-landing__video { background: var(--qyx-card-bg-light, #fff); }
.qyx-landing .qyx-landing__body { background: var(--qyx-card-bg-light, #fff); }
/* Same specificity as the rule above, so the first section clears the overlapping
   header (matches the landing hero's pt-24 mobile / pt-44 desktop). */
.qyx-landing .qyx-landing__hero { padding-top: clamp(6rem, 12vw, 11rem); }

/* ---------- shared type ---------- */
.qyx-landing__title {
	margin: 0;
	font-family: var(--qyx-font-heading, inherit);
	font-size: clamp(2.2rem, 1rem + 4.4vw, 3.9rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.028em;
	color: var(--qyx-heading, #111);
	text-wrap: balance;
}
.qyx-landing__h2 {
	margin: 0;
	font-family: var(--qyx-font-heading, inherit);
	font-size: clamp(1.7rem, 1rem + 2.4vw, 2.7rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.022em;
	color: var(--qyx-heading, #111);
	text-wrap: balance;
}
.qyx-landing__sub {
	margin: 1.25rem 0 0;
	font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.2rem);
	line-height: 1.55;
	color: var(--qyx-text-muted, #6b7080);
	max-width: 34rem;
}
.qyx-landing__tagline {
	margin: 0.9rem auto 0;
	font-size: 1.02rem;
	line-height: 1.5;
	color: var(--qyx-text-muted, #6b7080);
	max-width: 42rem;
}
/* Section header, same rhythm as the homepage: eyebrow pill, H2 (two lines max,
   the gradient accent on 1-3 words), tagline. Centred; only the hero is left. */
.qyx-landing__head {
	max-width: 44rem;
	margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
	text-align: center;
}
.qyx-landing__eyebrow {
	margin-bottom: 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--qyx-text-muted, #6b7080);
}
.qyx-landing__head .qyx-landing__h2 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.qyx-landing__head .qyx-landing__tagline { margin-inline: auto; }

/* ---------- breadcrumb ---------- */
.qyx-landing__crumbs { margin-bottom: 1.1rem; }
.qyx-landing__crumbs-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qyx-text-muted, #6b7080);
}
.qyx-landing__crumb-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}
.qyx-landing__crumb-link:hover { color: var(--qyx-heading, #2b2b2b); }
.qyx-landing__crumb--current {
	color: var(--qyx-heading, #2b2b2b);
	max-width: 22rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- hero ---------- */
.qyx-landing__hero-grid {
	display: grid;
	gap: var(--lp-gap);
	align-items: center;
}
@media (min-width: 1024px) {
	.qyx-landing__hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	/* No hero image: one wider column instead of a half-empty row. */
	.qyx-landing__hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
}
.qyx-landing__hero-grid--solo .qyx-landing__sub { max-width: 46rem; }
@media (min-width: 640px) {
	.qyx-landing__hero-grid--solo .qyx-landing__bullets { max-width: 46rem; }
}

.qyx-landing__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1.1rem;
	padding: 0.35rem 0.8rem 0.35rem 0.6rem;
	border: 1px solid var(--qyx-border, #e5e7eb);
	border-radius: 9999px;
	background: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--qyx-text-muted, #6b7080);
}
.qyx-landing__badge-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
	background: var(--qyx-accent-gradient, #d52fca);
}

.qyx-landing__bullets {
	display: grid;
	gap: 0.7rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) {
	.qyx-landing__bullets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.qyx-landing__bullet {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.98rem;
	line-height: 1.4;
	color: var(--qyx-text, #2b2b2b);
}
.qyx-landing__bullet-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 9999px;
	background: var(--qyx-card-pastel-1, #e6fcff);
	font-size: 0.85rem;
}

.qyx-landing__cta-row { margin-top: 2rem; }
.qyx-landing__cta-row--center { display: flex; justify-content: center; }

/* Hero media: two overlapping plates - the secondary shot tucks under the
   primary so the column reads as depth, not as a stock image slot. */
.qyx-landing__hero-media { position: relative; }
.qyx-landing__shot { margin: 0; }
/* Fixed 16:10 plate: whatever anyone uploads, every hero has the same shape.
   Without this a portrait upload made one page twice as tall as the next. */
.qyx-landing__shot-img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--lp-radius);
	border: 1px solid var(--qyx-card-border-light, #e5e7eb);
	background: #fff;
}
.qyx-landing__shot--fallback,
.qyx-landing__media-fallback {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	border-radius: var(--lp-radius);
	border: 1px solid var(--qyx-card-border-light, #e5e7eb);
	background:
		radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--qyx-grad-1, #5aaaf6) 16%, #fff), transparent 60%),
		radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--qyx-grad-2, #d52fca) 14%, #fff), transparent 60%),
		var(--qyx-card-bg-light, #fff);
}
.qyx-landing__media-fallback { aspect-ratio: 4 / 3; }
.qyx-landing__shot-mark {
	font-family: var(--qyx-font-heading, inherit);
	font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: rgba(15, 23, 42, 0.22);
}
.qyx-landing__shot--primary .qyx-landing__shot-img {
	box-shadow: 0 40px 80px -40px rgba(15, 23, 42, 0.4);
}
.qyx-landing__shot--secondary {
	width: 46%;
	margin-top: -14%;
	margin-left: auto;
	transform: rotate(2deg);
}
.qyx-landing__shot--secondary .qyx-landing__shot-img {
	box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.45);
}

/* ---------- how it works ---------- */
.qyx-landing__steps {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 900px) {
	/* stretch, not start: the three cards are one row of equal blocks whatever
	   the copy length, which is the whole point of the locked template. */
	.qyx-landing__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}
.qyx-landing__step {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 19rem;
	padding: clamp(1.25rem, 3vw, 1.9rem);
	border: 1px solid var(--qyx-card-border-light, #e5e7eb);
	border-radius: var(--lp-radius);
	background: var(--qyx-card-bg-light, #fff);
	box-shadow: var(--qyx-card-shadow, 0 8px 30px rgba(0, 0, 0, 0.06));
}
.qyx-landing__step-num {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--qyx-grad-2, #d52fca);
}
.qyx-landing__step--compact { min-height: 0; }
.qyx-landing__step-label {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin: 0.35rem 0 0;
	font-family: var(--qyx-font-heading, inherit);
	font-size: 1.05rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--qyx-heading, #111);
}
/* One tile grid for every step: same columns, same ratio, same gap. An empty
   slot renders as a neutral tile, so a card is never short and never ragged. */
.qyx-landing__step-media {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 1.4rem;
}
.qyx-landing__tile {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	border: 1px solid var(--qyx-card-border-light, #e5e7eb);
	background: var(--qyx-bg-light, #fafafa);
	overflow: hidden;
}
.qyx-landing__tile-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- problem & solution ---------- */
.qyx-landing__features {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 900px) {
	.qyx-landing__features { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}
.qyx-landing__feature {
	display: flex;
	flex-direction: column;
	min-height: 12rem;
	padding: clamp(1.25rem, 3vw, 1.9rem);
	border-radius: var(--lp-radius);
	background: var(--qyx-card-pastel-3, #ece6ff);
}
.qyx-landing__features .qyx-landing__feature:nth-child(2) { background: var(--qyx-card-pastel-1, #e6fcff); }
.qyx-landing__features .qyx-landing__feature:nth-child(3) { background: var(--qyx-card-pastel-2, #fff1e6); }
.qyx-landing__feature-num {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: rgba(15, 23, 42, 0.55);
}
.qyx-landing__feature-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--qyx-text, #2b2b2b);
}

/* ---------- unique content ---------- */
.qyx-landing__prose {
	max-width: 42rem;
	margin-inline: auto;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--qyx-text, #2b2b2b);
}
.qyx-landing__prose > * + * { margin-top: 1.1rem; }
.qyx-landing__prose h2,
.qyx-landing__prose h3 {
	margin-top: 2.2rem;
	font-family: var(--qyx-font-heading, inherit);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--qyx-heading, #111);
}
.qyx-landing__prose h2 { font-size: 1.6rem; }
.qyx-landing__prose h3 { font-size: 1.25rem; }
.qyx-landing__prose ul,
.qyx-landing__prose ol { padding-left: 1.25rem; }
.qyx-landing__prose li + li { margin-top: 0.4rem; }
.qyx-landing__prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.qyx-landing__prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------- video & use cases ---------- */
.qyx-landing__video-grid {
	display: grid;
	gap: var(--lp-gap);
	align-items: center;
}
@media (min-width: 1024px) {
	.qyx-landing__video-grid { grid-template-columns: 1.25fr 1fr; }
}
.qyx-landing__media { position: relative; }
.qyx-landing__media-img,
.qyx-landing__player-media {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--lp-radius);
	border: 1px solid var(--qyx-border, #e5e7eb);
	background: #0b0b0f;
}
.qyx-landing__media-placeholder {
	aspect-ratio: 4 / 3;
	border-radius: var(--lp-radius);
	border: 1px dashed var(--qyx-border, #e5e7eb);
	background: linear-gradient(150deg, #f3f4f8, #e8ecf5);
}
.qyx-landing__player { position: relative; }
.qyx-landing__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	border: 0;
	border-radius: var(--lp-radius);
	background: rgba(8, 5, 7, 0.28);
	color: #fff;
	cursor: pointer;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.qyx-landing__play svg { width: 3.25rem; height: 3.25rem; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4)); }
.qyx-landing__play:hover svg { transform: scale(1.06); }
.qyx-landing__player.is-playing .qyx-landing__play { opacity: 0; pointer-events: none; }

.qyx-landing__process {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: qyx-process;
}
.qyx-landing__process-step {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--qyx-border, #e5e7eb);
}
.qyx-landing__process-step:last-child { border-bottom: 0; padding-bottom: 0; }
.qyx-landing__process-num {
	flex: none;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	background: var(--qyx-primary, #000);
	color: var(--qyx-primary-fg, #fff);
	font-size: 0.85rem;
	font-weight: 700;
}
.qyx-landing__process-title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--qyx-heading, #111);
}
.qyx-landing__process-desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0.35rem 0 0;
	font-size: 0.97rem;
	line-height: 1.55;
	color: var(--qyx-text-muted, #6b7080);
}

/* ---------- closing CTA ---------- */
.qyx-landing__final-card {
	position: relative;
	padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
	border-radius: var(--lp-radius);
	background: var(--qyx-bg-dark, #080507);
	text-align: center;
	overflow: hidden;
}
.qyx-landing__final-card::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 140px;
	background: var(--qyx-accent-gradient, #d52fca);
	opacity: 0.22;
	filter: blur(40px);
	pointer-events: none;
}
.qyx-landing__final-title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-family: var(--qyx-font-heading, inherit);
	font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
}
.qyx-landing__final-sub {
	position: relative;
	z-index: 1;
	margin: 1rem auto 0;
	max-width: 34rem;
	font-size: 1.02rem;
	color: rgba(255, 255, 255, 0.72);
}
.qyx-landing__final .qyx-landing__cta-row { position: relative; z-index: 1; }

/* ---------- hub (/tools/) ---------- */
.qyx-landing .qyx-landing__hub-head { padding-top: clamp(6rem, 12vw, 10rem); padding-bottom: 0; }
.qyx-landing__title--hub { max-width: 22ch; }
.qyx-landing__hub-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.qyx-landing__hub-filter {
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--qyx-border, #e5e7eb);
	border-radius: 9999px;
	background: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--qyx-text, #2b2b2b);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.qyx-landing__hub-filter:hover { border-color: var(--qyx-heading, #111); transform: translateY(-1px); }
.qyx-landing__hub-group + .qyx-landing__hub-group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.qyx-landing__cards {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 700px) { .qyx-landing__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .qyx-landing__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qyx-landing__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--qyx-border, #e5e7eb);
	border-radius: var(--lp-radius);
	background: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.qyx-landing__card-link:hover {
	transform: translateY(-3px);
	border-color: rgba(15, 23, 42, 0.18);
	box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.4);
}
.qyx-landing__card-link:focus-visible { outline: 2px solid var(--qyx-heading, #111); outline-offset: 3px; }
.qyx-landing__card-media { display: block; background: #f3f4f8; }
.qyx-landing__card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.qyx-landing__card-body { display: block; padding: 1.15rem 1.25rem 1.4rem; }
.qyx-landing__card-title {
	display: block;
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--qyx-heading, #111);
}
.qyx-landing__card-desc {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.93rem;
	line-height: 1.5;
	color: var(--qyx-text-muted, #6b7080);
}
.qyx-landing__card-more {
	display: block;
	margin-top: 0.9rem;
	font-size: 1rem;
	color: var(--qyx-heading, #111);
	transition: transform 0.25s ease;
}
.qyx-landing__card-link:hover .qyx-landing__card-more { transform: translateX(4px); }

.qyx-landing__pagination { margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
	.qyx-landing *,
	.qyx-landing *::before,
	.qyx-landing *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.qyx-landing__shot--secondary { transform: none; }
}
