/* Single case study detail page. */

.case-detail-hero {
	background: #f6f8fd;
	border-bottom: 1px solid var(--slate-100);
	padding: 54px 24px 64px;
}
.case-detail-inner {
	max-width: 1080px;
	margin: 0 auto;
}
.case-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	color: var(--slate-400);
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 18px;
}
.case-breadcrumb a:hover { color: var(--blue-600); }
.case-term-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.case-term-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--indigo-50);
	color: var(--indigo-600);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.case-detail-hero h1 {
	max-width: 930px;
	color: var(--slate-900);
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
	margin-bottom: 20px;
	overflow-wrap: anywhere;
}
.case-detail-subtitle {
	max-width: 980px;
	color: var(--slate-500);
	font-size: 17px;
	line-height: 1.75;
	margin-bottom: 24px;
}
.case-meta-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	color: var(--slate-500);
	font-size: 12px;
	font-weight: 600;
}
.case-meta-row span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.case-meta-row svg {
	width: 14px;
	height: 14px;
	color: var(--blue-500);
}

.case-detail-main {
	max-width: 1080px;
	margin: 0 auto;
	padding: 56px 24px 84px;
}
.case-feature-media {
	position: relative;
	margin-bottom: 70px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--slate-100);
	box-shadow: 0 18px 60px rgba(15,23,42,.08);
}
.case-feature-media img {
	width: 100%;
	aspect-ratio: 16 / 6.6;
	object-fit: cover;
}
.case-feature-fallback {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 6.6;
	overflow: hidden;
}
.case-feature-media figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
}
.case-feature-media figcaption span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: rgba(255,255,255,.92);
	border: 1px solid rgba(255,255,255,.72);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	color: var(--slate-700);
	font-size: 12px;
	font-weight: 700;
	backdrop-filter: blur(10px);
}
.case-feature-media figcaption svg {
	width: 14px;
	height: 14px;
	color: var(--blue-600);
}

.case-story {
	display: flex;
	flex-direction: column;
	gap: 58px;
}
.case-story-section {
	scroll-margin-top: 96px;
}
.case-section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.case-section-icon {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
}
.case-section-icon svg {
	width: 17px;
	height: 17px;
}
.case-section-icon-red {
	background: #fee2e2;
	color: var(--red-500);
}
.case-section-icon-blue {
	background: var(--indigo-100);
	color: var(--indigo-600);
}
.case-section-icon-amber {
	background: #fef3c7;
	color: #d97706;
}
.case-section-icon-green {
	background: var(--green-100);
	color: var(--green-600);
}
.case-section-heading h2 {
	color: var(--slate-900);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
}
.case-section-copy {
	color: var(--slate-500);
	font-size: 15.5px;
	line-height: 1.82;
	margin-bottom: 24px;
	overflow-wrap: anywhere;
}
.case-section-copy strong,
.case-bullet-list strong,
.case-point-card strong,
.case-result-card strong,
.case-step-list strong {
	color: var(--slate-800);
	font-weight: 800;
}
.case-section-empty {
	color: var(--slate-400);
	font-size: 14px;
	font-style: italic;
}

.case-bullet-list {
	display: grid;
	gap: 12px;
}
.case-bullet-list li {
	position: relative;
	padding-left: 28px;
	color: var(--slate-600);
	font-size: 14.5px;
	line-height: 1.65;
}
.case-bullet-list li::before {
	content: '';
	position: absolute;
	top: 9px;
	left: 2px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--red-500);
	box-shadow: 0 0 0 4px #fee2e2;
}

.case-point-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.case-point-card {
	min-height: 112px;
	padding: 22px;
	background: #fbfcff;
	border: 1px solid var(--slate-200);
	border-radius: 8px;
	color: var(--slate-500);
	font-size: 14px;
	line-height: 1.62;
}
.case-point-card:hover {
	border-color: var(--blue-200);
	box-shadow: var(--shadow-sm);
}

.case-step-list {
	display: grid;
	gap: 14px;
	counter-reset: case-steps;
}
.case-step-list li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	background: var(--white);
	border: 1px solid var(--slate-200);
	border-radius: 8px;
	color: var(--slate-500);
	font-size: 14px;
	line-height: 1.62;
}
.case-step-list li > span {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.case-result-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.case-result-card {
	min-height: 126px;
	padding: 24px 18px;
	text-align: center;
	background: #fbfcff;
	border: 1px solid var(--slate-200);
	border-radius: 8px;
	color: var(--slate-500);
	font-size: 13px;
	line-height: 1.55;
}
.case-result-card strong {
	display: block;
	margin-bottom: 8px;
	color: var(--blue-600);
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1;
}

.case-extra-content {
	padding-top: 18px;
	border-top: 1px solid var(--slate-200);
}
.case-extra-content .prose {
	color: var(--slate-600);
}
.case-extra-content .prose p {
	font-size: 15.5px;
	line-height: 1.82;
	margin-bottom: 18px;
}

.case-detail-cta {
	background: #eef3ff;
	border-top: 1px solid var(--slate-200);
	border-bottom: 1px solid var(--slate-200);
	padding: 72px 24px;
	text-align: center;
}
.case-detail-cta-inner {
	max-width: 720px;
	margin: 0 auto;
}
.case-detail-cta h2 {
	color: var(--slate-900);
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	margin-bottom: 10px;
}
.case-detail-cta p {
	color: var(--slate-500);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 26px;
}
.case-detail-cta-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}
.case-feature-fallback .img-bg {
	position: absolute;
	inset: 0;
}
.case-feature-fallback .img-pattern {
	position: absolute;
	inset: 0;
	opacity: .07;
	background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,1) 1px, transparent 1px), radial-gradient(circle at 80% 20%, rgba(255,255,255,1) 1px, transparent 1px);
	background-size: 48px 48px;
}
.case-feature-fallback .img-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.case-feature-fallback .img-icon svg {
	width: 74px;
	height: 74px;
	opacity: .28;
}
.case-feature-fallback .img-blue { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%); }
.case-feature-fallback .img-purple { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #9333ea 100%); }
.case-feature-fallback .img-teal { background: linear-gradient(135deg, #0f4c75 0%, #0d9488 50%, #22c55e 100%); }
.case-feature-fallback .img-orange { background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #f59e0b 100%); }
.case-feature-fallback .img-pink { background: linear-gradient(135deg, #831843 0%, #db2777 50%, #ec4899 100%); }
.case-feature-fallback .img-green { background: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #4ade80 100%); }
.case-feature-fallback .img-indigo { background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #6366f1 100%); }
.case-feature-fallback .img-slate { background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #64748b 100%); }
.case-feature-fallback .img-crimson { background: linear-gradient(135deg, #450a0a 0%, #b91c1c 50%, #f97316 100%); }
.case-feature-fallback .img-azure { background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 50%, #38bdf8 100%); }

@media (max-width: 900px) {
	.case-point-card-grid,
	.case-result-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.case-feature-media img,
	.case-feature-fallback {
		aspect-ratio: 16 / 9;
	}
}
@media (max-width: 620px) {
	.case-detail-hero {
		padding: 32px 18px 42px;
	}
	.case-detail-main {
		padding: 34px 18px 56px;
		width: 100%;
		overflow: hidden;
	}
	.case-breadcrumb {
		align-items: flex-start;
		font-size: 11px;
		line-height: 1.5;
		margin-bottom: 16px;
	}
	.case-term-row {
		margin-bottom: 18px;
	}
	.case-detail-hero h1 {
		font-size: 30px;
		line-height: 1.16;
		margin-bottom: 16px;
	}
	.case-detail-subtitle {
		font-size: 15.5px;
		line-height: 1.65;
		margin-bottom: 20px;
	}
	.case-meta-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
	.case-feature-media {
		border-radius: 6px;
		margin-bottom: 48px;
	}
	.case-feature-media img,
	.case-feature-fallback {
		aspect-ratio: 4 / 3;
	}
	.case-feature-media figcaption {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}
	.case-feature-media figcaption span {
		max-width: 100%;
		padding: 7px 10px;
		white-space: normal;
	}
	.case-story {
		gap: 46px;
	}
	.case-section-heading {
		align-items: flex-start;
		gap: 10px;
		margin-bottom: 16px;
	}
	.case-section-heading h2 {
		font-size: 20px;
	}
	.case-section-copy {
		font-size: 15px;
		line-height: 1.7;
	}
	.case-point-card-grid,
	.case-result-grid {
		grid-template-columns: 1fr;
	}
	.case-point-card,
	.case-result-card {
		min-height: 0;
		padding: 18px;
		text-align: left;
	}
	.case-step-list li {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 12px;
		padding: 16px;
	}
	.case-detail-cta {
		padding: 54px 18px;
	}
	.case-detail-cta h2 {
		font-size: 26px;
	}
	.case-detail-cta-actions {
		align-items: stretch;
		flex-direction: column;
	}
	.case-detail-cta-actions .btn-primary,
	.case-detail-cta-actions .btn-outline {
		justify-content: center;
		width: 100%;
	}
}
