/*
 * Block: cy/redesign-vp-capabilities
 * Source: Figma o7TW9TI14xVpo4cvpexryD node 393:2456.
 *
 * Sand band. A 2-col grid where the first cell is a dark-navy tile
 * holding the "Platform Capabilities" heading, and the remaining cells
 * are capability cards (title, short body, Learn More link).
 */

.vpc {
	background: var(--color-light-warm, #f3f2ee);
	padding: 96px 40px;
	box-sizing: border-box;
}

.vpc__inner {
	max-width: 1296px;
	margin: 0 auto;
}

.vpc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.vpc__heading-tile {
	background: #093055;
	border-radius: 12px;
	padding: 40px 48px;
	display: flex;
	align-items: center;
	min-height: 180px;
}

.vpc__heading {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 48px;
	line-height: 1.15;
	letter-spacing: -0.96px;
	color: #f3f2ee;
	margin: 0;
}

.vpc__card {
	position: relative;
	background: #fcfcfb;
	border: 1px solid #eae9e3;
	border-radius: 16px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
	cursor: pointer;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

/* Hover/focus-within ported from the static reference at
 * :8000/css/platform-elevated.css → .vpc__card:hover,
 * .vpc__card:focus-within. The blue border + lift + shadow signal
 * affordance; focus-within fires when the inner Learn More link is
 * keyboard-focused so keyboard users get the same treatment. */
.vpc__card:hover,
.vpc__card:focus-within {
	border-color: rgba(33, 145, 255, 0.55);
	box-shadow: 0 18px 44px rgba(20, 47, 82, 0.08);
	transform: translateY(-2px);
}

.vpc__card-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.vpc__card-title {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 24px;
	line-height: 26px;
	letter-spacing: -0.24px;
	color: var(--brand-dark-navy, #093055);
	margin: 0;
}

.vpc__card-body {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.43;
	letter-spacing: -0.32px;
	color: #5e5b4e;
	margin: 0;
}

.vpc__card-link {
	margin-top: auto;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 17px;
	line-height: 1;
	color: #0094ff;
	text-decoration: none;
}

/* Lock the Learn More color across every state. The link is a child
 * of the card and the entire card lifts/glows on hover; we don't want
 * the link to also change color (it pulls focus from the card-level
 * hover treatment). Same selector list as the static reference. */
.vpc__card-link:link,
.vpc__card-link:visited,
.vpc__card-link:hover,
.vpc__card-link:focus,
.vpc__card-link:active {
	color: #0094ff;
	text-decoration: none;
}

/* Make the entire card act as the click target for the Learn More
 * link. The pseudo-element fills the card and sits above its content
 * (z-index: 1) — the link itself reads its href, the card-content
 * stays selectable for accessibility tools by raising it above the
 * pseudo. */
.vpc__card-link::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	border-radius: inherit;
}

.vpc__card-content,
.vpc__card-link {
	position: relative;
	z-index: 2;
}


/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.vpc { padding: 72px 24px; }
	.vpc__heading { font-size: 38px; letter-spacing: -0.76px; }
	.vpc__heading-tile { padding: 32px; min-height: 160px; }
}

@media (max-width: 700px) {
	.vpc { padding: 56px 16px; }
	.vpc__grid { grid-template-columns: 1fr; gap: 16px; }
	.vpc__heading-tile { min-height: 0; padding: 32px 24px; border-radius: 14px; }
	.vpc__heading { font-size: 28px; letter-spacing: -0.56px; }
	.vpc__card { padding: 24px; border-radius: 14px; gap: 16px; }
	.vpc__card-title { font-size: 20px; line-height: 1.2; }
}
