/*
 * The per-module feature pages (/product/{slug}) — pieces the design export does
 * not have: the "in short" box, the product screenshot, the figure panels that
 * show each module's real vocabulary (statuses, flows, rows), and the FAQ list
 * spacing. Built from the design's own tokens: navy #151d2b, blue #0e51cb,
 * soft #f3f6fb / #eaf1fc, line #dfe6f0, muted #5c6068.
 *
 * Loaded only by the "feature" page kind (app/components/v2/v2-assets.ts).
 */

/* "In short" — the module's bullets, above the screenshot. */
.page-feature .vf-short {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 26px;
	border-radius: 20px;
	background: #eaf1fc;
}
.page-feature .vf-short-t {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #16459d;
}
.page-feature .vf-short .al {
	font-size: 17px;
	line-height: 26px;
}

/* The module's product screenshot. */
.page-feature .vf-shot {
	margin: 0;
}
.page-feature .vf-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	border: 1px solid #dfe6f0;
	box-shadow: 0 24px 48px -32px rgba(21, 29, 43, 0.35);
}

/* Figure panel: a section's statuses, flow or spec rows. */
.page-feature .vf {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 8px 0 0;
	padding: 24px 26px;
	border: 1px solid #dfe6f0;
	border-radius: 20px;
	background: #ffffff;
}
.page-feature .vf-t {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #687284;
}
.page-feature .vf-lead {
	margin: 0;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #151d2b;
	overflow-wrap: anywhere;
}
.page-feature .vf-g {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.page-feature .vf-gl {
	font-size: 15px;
	font-weight: 600;
	color: #151d2b;
}
.page-feature .vf-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.page-feature .vf-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 14px;
	line-height: 18px;
	font-weight: 500;
	background: #f3f6fb;
	color: #2f3238;
}
/* Lane and marker labels (groups without items). */
.page-feature .vf-labels .vf-chip {
	background: #151d2b;
	color: #ffffff;
}
.page-feature .vf-v {
	font-weight: 400;
	color: #5c6068;
}
/* A flow: an arrow before every step but the first. */
.page-feature .vf-flow .vf-chip + .vf-chip::before {
	content: "→";
	margin: 0 6px 0 -2px;
	color: #9aa3b2;
	font-weight: 400;
}
.page-feature .vf-flow {
	gap: 8px 6px;
}

/* Tones carry the product's own state colours. */
.page-feature [data-tone="brand"] {
	background: #e2ecfd;
	color: #16459d;
}
.page-feature [data-tone="ok"] {
	background: #e3f5ea;
	color: #1d6b3e;
}
.page-feature [data-tone="monitor"] {
	background: #fdf3d7;
	color: #7a5b00;
}
.page-feature [data-tone="recommend"] {
	background: #fde9da;
	color: #9a4310;
}
.page-feature [data-tone="critical"] {
	background: #fde4e2;
	color: #a3261c;
}

/* Spec rows: label, value and an optional bar. */
.page-feature .vf-rows {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.page-feature .vf-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 16px;
	padding: 11px 0;
	border-top: 1px solid #edf1f6;
	font-size: 15px;
	line-height: 1.5;
}
.page-feature .vf-row:first-child {
	border-top: 0;
}
.page-feature .vf-row dt {
	color: #5c6068;
}
.page-feature .vf-row dd {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-weight: 600;
	color: #151d2b;
}
.page-feature .vf-bar {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: #edf1f6;
	overflow: hidden;
}
.page-feature .vf-bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: currentColor;
}
.page-feature .vf-bar[data-tone] {
	background: #edf1f6;
}

.page-feature .vf-note {
	margin: 0;
	font-size: 14px;
	line-height: 21px;
	color: #5c6068;
}

/* FAQ inside the article column. */
.page-feature .vf-faq {
	display: flex;
	flex-direction: column;
}

/* "Read next" links at the end of the article. */
.page-feature .vf-next a {
	color: #0e51cb;
}

@media (max-width: 767px) {
	.page-feature .vf,
	.page-feature .vf-short {
		padding: 20px;
	}
	.page-feature .vf-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}
}

/*
 * The module index on /product (#modules). Its cards reuse the blog's card
 * markup, whose rules live in the blog templates' own <style> block rather than
 * in the shared bundle — repeated here, scoped to the index.
 */
.vf-hub .grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
}
.vf-hub .card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #1b1d22;
	text-decoration: none;
}
.vf-hub .card:hover .ct {
	color: #0e51cb;
}
.vf-hub .cv {
	position: relative;
	height: 240px;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 8px;
}
.vf-hub .cv img {
	transition: transform 0.4s;
}
.vf-hub .card:hover .cv img {
	transform: translateY(-6px);
}
.vf-hub .tg {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	font-weight: 600;
	color: #1b1d22;
}
.vf-hub .ct {
	font-family: "Inter Tight", "Inter", system-ui, sans-serif;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.02em;
	transition: color 0.2s;
}
.vf-hub .ce {
	font-size: 15px;
	line-height: 23px;
	color: #5c6068;
}
@media (max-width: 1023px) {
	.vf-hub .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.vf-hub {
		padding: 48px 20px 56px !important;
	}
	.vf-hub h2 {
		font-size: 34px !important;
	}
	.vf-hub .grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.vf-hub .cv {
		height: 200px;
	}
}
