/* Landing CPT - Features section. Card look follows the homepage stack cards (.qyx-bizcard), without the sticky deck. */

.qyx-lfeat__list {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.qyx-lfeat {
	/* Extra offset on top of the theme's html scroll-padding-top, measured from the
	   real sticky header by landing-features.js. Without JS the theme padding alone applies. */
	scroll-margin-top: var(--qyx-lfeat-margin, 0px);
	display: grid;
	gap: 1.25rem;
	align-items: center;
	padding: 1.25rem;
	border-radius: 28px;
	border: 1px solid color-mix(in srgb, var(--card-pastel, #fff) 45%, #cbd5e1);
	background: color-mix(in srgb, var(--card-pastel, #fff) 80%, #fff);
	box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.1);
}

.qyx-lfeat__fig {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	display: grid;
	place-items: center;
	border-radius: 16px;
	border: 5px solid rgba(255, 255, 255, 0.75);
	background-color: #f1f5f9;
	overflow: hidden;
	box-shadow: 0 33px 44px hsl(0 0% 0% / 0.05);
}

.qyx-lfeat__media {
	/* Pinned to the 16:9 frame: a portrait clip must not grow the element past it
	   (it would never count as "in view" for autoplay). */
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.qyx-lfeat__title {
	margin: 0;
	font-family: var(--qyx-font-heading, inherit);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #0f172a;
}

.qyx-lfeat__text {
	margin: 0.7rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: #64748b;
}

.qyx-lfeat__bullets {
	display: grid;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.qyx-lfeat__bullets li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #334155;
}

.qyx-lfeat__check {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.1rem;
	color: #16a34a;
}

.qyx-lfeat__cta {
	margin-top: 1.4rem;
}

@media (min-width: 768px) {
	.qyx-lfeat {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 3rem;
		padding: 2rem;
	}

	.qyx-lfeat--flip .qyx-lfeat__fig {
		order: 2;
	}

	.qyx-lfeat--text {
		grid-template-columns: minmax(0, 1fr);
	}

	.qyx-lfeat__fig {
		border-width: 8px;
		border-radius: 20px;
	}

	.qyx-lfeat__title {
		font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
	}
}

/* ============================================================
   Features as a grid of cards (same look as the Features hubs,
   .qyx-hub-card): media on top, label, title, text, secondary link.
   1 column on mobile, 2 on tablet, 3 on desktop.
   ============================================================ */
.qyx-lfeat-grid {
	margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.25rem;
}
.qyx-lfeat-card {
	scroll-margin-top: var(--qyx-lfeat-margin, 0px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--qyx-card-radius, 24px);
	border: 1px solid var(--qyx-border, #e5e7eb);
	background: #fff;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.qyx-lfeat-card:hover {
	border-color: color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 35%, var(--qyx-border, #e5e7eb));
	transform: translateY(-3px);
	box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.35);
}
.qyx-lfeat-card:target {
	border-color: var(--qyx-heading, #111);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--qyx-grad-2, #7c3aed) 25%, transparent);
}
.qyx-lfeat-card__fig {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f6fa;
	border-bottom: 1px solid var(--qyx-border, #e5e7eb);
}
.qyx-lfeat-card__fig .qyx-lfeat__media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.qyx-lfeat-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.35rem 1.4rem 1.5rem;
}
.qyx-lfeat-card__label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--qyx-text-muted, #6b7080);
}
.qyx-lfeat-card__title {
	margin: 0.45rem 0 0;
	font-family: var(--qyx-font-heading, inherit);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--qyx-heading, #111);
}
.qyx-lfeat-card__title a { color: inherit; text-decoration: none; }
.qyx-lfeat-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qyx-lfeat-card__text {
	margin: 0.5rem 0 0;
	font-size: 0.97rem;
	line-height: 1.55;
	color: var(--qyx-text-muted, #6b7080);
}
.qyx-lfeat-card__bullets {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.4rem;
	font-size: 0.92rem;
	color: var(--qyx-text, #2b2b2b);
}
.qyx-lfeat-card__bullets li { display: flex; gap: 0.5rem; align-items: flex-start; }
.qyx-lfeat-card__check { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.15rem; }
.qyx-lfeat-card__more {
	margin: auto 0 0;
	padding-top: 1.1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
}
.qyx-lfeat-card__cta {
	font-weight: 600;
	color: var(--qyx-heading, #111);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.qyx-lfeat-card__cta:hover { text-decoration-thickness: 2px; }
.qyx-lfeat-card__guide {
	font-size: 0.92rem;
	color: var(--qyx-text-muted, #6b7080);
	text-decoration: none;
}
.qyx-lfeat-card__guide:hover { color: var(--qyx-heading, #111); text-decoration: underline; }
.qyx-lfeat-siblings__all { margin: 1.5rem 0 0; text-align: center; }
.qyx-lfeat-siblings__all a { font-weight: 600; color: var(--qyx-heading, #111); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
	.qyx-lfeat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.qyx-lfeat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.qyx-lfeat-card { transition: none; }
	.qyx-lfeat-card:hover { transform: none; }
}