/**
 * citelayer Design System — Sections
 * Hero, Stats, FAQ, Chat Mockup, Testimonials, CTA, Step Panels
 * Depends on: variables.css, base.css
 */

/* ============================================================
   HERO
   ============================================================ */

.cl-hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding-top: 72px;
}

.cl-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.cl-hero__orb-1 { width: 600px; height: 600px; top: -10%; right: -10%; }
.cl-hero__orb-2 { width: 500px; height: 500px; bottom: -5%; left: -8%; }
.cl-hero__orb-3 { width: 350px; height: 350px; top: 30%; left: 40%; }

.cl-hero__content {
	position: relative;
	z-index: 1;
	max-width: 860px;
	padding: clamp(3rem, 8vw, 6rem) 0;
}

.cl-hero__eyebrow {
	margin-bottom: var(--space-7);
}

.cl-hero__headline {
	font-size: var(--heading-xl);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	margin-bottom: 1.75rem;
}

@keyframes hero-line-in {
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
	to { opacity: 1; transform: translateY(0); }
}

.cl-hero__headline-line {
	display: block;
	opacity: 0;
	transform: translateY(24px);
	animation: hero-line-in 0.8s var(--ease-out-expo) forwards;
}

.cl-hero__headline-line:nth-child(1) { animation-delay: 0.2s; }
.cl-hero__headline-line:nth-child(2) { animation-delay: 0.4s; }
.cl-hero__headline-line:nth-child(3) { animation-delay: 0.6s; }

.cl-hero__subline {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	line-height: var(--leading-relaxed);
	color: var(--cl-text-secondary);
	max-width: 640px;
	margin-bottom: 2.5rem;
	opacity: 0;
	transform: translateY(16px);
	animation: fade-up 0.8s var(--ease-out-expo) 0.9s forwards;
}

.cl-hero__ctas,
.cl-hero__ctas.wp-block-buttons.is-layout-flex,
.cl-hero__ctas.wp-block-buttons-is-layout-flex {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: var(--space-5) !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0;
	transform: translateY(16px);
	animation: fade-up 0.8s var(--ease-out-expo) 1.1s forwards;
}

.home .cl-hero .cl-hero__ctas.is-layout-flex {
    justify-content: flex-start !important;
}

/* WordPress Button-Blocks im Hero: nicht full-width, nebeneinander */
.cl-hero__ctas .wp-block-button,
.cl-hero__ctas.is-layout-flex .wp-block-button {
	width: auto !important;
	flex: 0 0 auto !important;
	max-width: none !important;
	display: inline-flex !important;
}

.cl-hero__cta-note {
	font-size: var(--text-sm);
	color: var(--cl-text-tertiary);
	margin-top: var(--space-4);
	opacity: 0;
	animation: fade-up 0.8s var(--ease-out-expo) 1.3s forwards;
}

/* Inner Hero (für Subpages — kein Full-Screen, aber mit Depth) */
.cl-hero--inner {
	min-height: 0;
	/* padding: calc(72px + 3rem) 0 3rem; */
	background: var(--cl-bg-alt);
}

.cl-hero--inner .cl-hero__headline {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

/* ============================================================
   STATS
   ============================================================ */

.cl-stats {
	background: var(--cl-bg-alt);
	border-top: 1px solid var(--cl-border);
	border-bottom: 1px solid var(--cl-border);
}

.cl-stats__headline {
	text-align: center;
	font-size: var(--heading-sm);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-snug);
	margin-bottom: var(--space-10);
}

.cl-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.cl-stats__item {
	text-align: center;
	padding: 2rem 1.5rem;
	position: relative;
}

.cl-stats__item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 60%;
	width: 1px;
	background: var(--cl-border);
}

.cl-stats__value {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	letter-spacing: var(--tracking-tighter);
	color: var(--cl-orange);
	line-height: 1;
	margin-bottom: var(--space-4);
}

.cl-stats__desc {
	font-size: var(--text-base);
	color: var(--cl-text-secondary);
	line-height: var(--leading-normal);
	max-width: 280px;
	margin: 0 auto;
}

.cl-stats__source {
	display: block;
	margin-top: var(--space-3);
	font-size: var(--text-xs);
	color: var(--cl-text-tertiary);
	font-style: italic;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.cl-faq__item {
	border-bottom: 1px solid var(--cl-border);
}

.cl-faq__question {
	width: 100%;
	text-align: left;
	padding: 1.5rem 0;
	font-family: var(--font-display);
	font-weight: var(--weight-semibold);
	font-size: var(--text-lg);
	color: var(--cl-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	cursor: pointer;
	transition: color var(--duration-fast) ease;
	background: none;
	border: none;
}

.cl-faq__question:hover { color: var(--cl-prism-1); }

.cl-faq__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.4s var(--ease-out-expo);
}

.cl-faq__icon svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}

.cl-faq__item.is-open .cl-faq__icon {
	transform: rotate(45deg);
}

.cl-faq__answer-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.4s var(--ease-out-expo);
}

.cl-faq__item.is-open .cl-faq__answer-wrap {
	grid-template-rows: 1fr;
}

.cl-faq__answer {
	overflow: hidden;
}

.cl-faq__answer-inner {
	padding-bottom: 1.5rem;
	font-size: var(--text-base);
	color: var(--cl-text-secondary);
	line-height: var(--leading-loose);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.cl-testimonial {
	background: var(--cl-bg);
	border: 1px solid var(--cl-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	position: relative;
}

.cl-testimonial::before {
	content: '\201C';
	position: absolute;
	top: 1rem;
	left: 1.5rem;
	font-size: 4rem;
	color: var(--cl-prism-3);
	line-height: 1;
	font-family: Georgia, serif;
	pointer-events: none;
}

.cl-testimonial__quote {
	font-size: var(--text-lg);
	color: var(--cl-text);
	line-height: var(--leading-relaxed);
	margin-bottom: var(--space-7);
	padding-top: var(--space-8);
}

.cl-testimonial__author {
	display: flex;
	align-items: center;
	gap: var(--space-5);
}

.cl-testimonial__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cl-bg-purple);
	flex-shrink: 0;
	object-fit: cover;
}

.cl-testimonial__name {
	font-weight: var(--weight-semibold);
	color: var(--cl-text);
	font-size: var(--text-base);
}

.cl-testimonial__role {
	font-size: var(--text-sm);
	color: var(--cl-text-tertiary);
}

/* ============================================================
   HIGHLIGHT BOX (Problem Section)
   ============================================================ */

.cl-highlight {
	position: relative;
	padding: 1.5rem 2rem;
	background: var(--cl-bg-purple);
	border-left: 3px solid var(--cl-prism-1);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	margin: var(--space-8) 0;
}

.cl-highlight p {
	color: var(--cl-text);
	font-weight: var(--weight-medium);
	margin-bottom: 0;
}

/* ============================================================
   STEP PANELS (How It Works)
   ============================================================ */

.cl-step-panel {
	max-width: 960px;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.cl-step-panel__num {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
	font-size: clamp(4rem, 8vw, 7rem);
	line-height: 1;
	letter-spacing: var(--tracking-tighter);
	opacity: 0.12;
	margin-bottom: var(--space-3);
}

.cl-step-panel[data-step="1"] .cl-step-panel__num { color: var(--cl-prism-1); }
.cl-step-panel[data-step="2"] .cl-step-panel__num { color: var(--cl-orange); }
.cl-step-panel[data-step="3"] .cl-step-panel__num { color: var(--cl-prism-2); }

.cl-step-panel__name {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	letter-spacing: var(--tracking-snug);
	margin-bottom: var(--space-4);
}

.cl-step-panel__subtitle {
	font-size: var(--text-lg);
	color: var(--cl-prism-1);
	font-weight: var(--weight-medium);
	line-height: 1.5;
}

.cl-step-panel__right {
	background: var(--cl-bg);
	border: 1px solid var(--cl-border);
	border-radius: var(--radius-lg);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	position: relative;
	overflow: hidden;
}

.cl-step-panel__right::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--gradient-brand-horiz);
}

.cl-step-panel__body {
	font-size: var(--text-md);
	color: var(--cl-text-secondary);
	line-height: var(--leading-loose);
}

/* Numbered step list (für non-pinned layouts) */
.cl-steps {
	counter-reset: step-counter;
	list-style: none;
}

.cl-steps__item {
	counter-increment: step-counter;
	display: flex;
	gap: var(--space-7);
	padding: var(--space-8) 0;
	border-bottom: 1px solid var(--cl-border);
}

.cl-steps__item:last-child { border-bottom: none; }

.cl-steps__num {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
	font-size: var(--text-2xl);
	color: var(--cl-prism-1);
	min-width: 2rem;
	line-height: 1.4;
}

.cl-steps__num::before {
	content: counter(step-counter, decimal-leading-zero);
}

.cl-steps__content h3 {
	font-size: var(--text-xl);
	margin-bottom: var(--space-3);
}

.cl-steps__content p {
	font-size: var(--text-base);
	margin-bottom: 0;
}

/* ============================================================
   INDUSTRY PANEL
   ============================================================ */

.cl-industry-panel {
	max-width: 720px;
	width: 100%;
	text-align: center;
}

.cl-industry-panel__icon {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	display: block;
}

.cl-industry-panel__title {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
	font-size: var(--heading-sm);
	letter-spacing: var(--tracking-snug);
	margin-bottom: var(--space-5);
}

.cl-industry-panel__question {
	font-size: var(--text-xl);
	color: var(--cl-prism-1);
	font-weight: var(--weight-semibold);
	font-style: italic;
	margin-bottom: 1.5rem;
	line-height: 1.5;
}

.cl-industry-panel__body {
	font-size: var(--text-lg);
	color: var(--cl-text-secondary);
	line-height: var(--leading-loose);
	max-width: 600px;
	margin: 0 auto;
}

/* ============================================================
   FAQ LIST CONTAINER
   ============================================================ */

.cl-faq__list {
	/* Wrapper-Container für .cl-faq__item Elemente */
	display: block;
	border-top: 1px solid var(--cl-border);
}

/* ============================================================
   LLM CHAT MOCKUP
   Realistisches AI-Chat-Interface mit Monospace-Font,
   Avataren, Typing-Indicator und verbesserten Kontrasten.
   ============================================================ */

.cl-chat {
	background: #1C1B1F;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin: 2.5rem auto;
	max-width: 540px;
	box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.1);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.6;
}

/* --- Window Chrome (macOS-Style Title Bar) --- */

.cl-chat__header {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	background: #131217;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cl-chat__dots-window {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cl-chat__dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: rgba(255,255,255,0.12);
}

.cl-chat__dot:nth-child(1) { background: #FF5F57; }
.cl-chat__dot:nth-child(2) { background: #FFBD2E; }
.cl-chat__dot:nth-child(3) { background: #28C840; }

.cl-chat__title {
	margin-left: auto;
	font-family: var(--font-display);
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	color: #ffe200;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
}

/* --- Chat Body --- */

.cl-chat__body {
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cl-chat__msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 0;
}

/* --- Avatare — User und AI --- */

.cl-chat__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6875rem;
	font-weight: var(--weight-semibold);
	line-height: 1;
}

.cl-chat__avatar--user {
	background: var(--cl-prism-2);
	color: #1C1B1F;
	font-family: var(--font-display);
}

.cl-chat__avatar--ai {
	background: linear-gradient(135deg, var(--cl-prism-1), var(--cl-prism-2));
	color: #fff;
}

.cl-chat__avatar--ai .cl-icon {
	width: 14px;
	height: 14px;
}

/* --- User-Nachricht — rechts ausgerichtet, Purple-Bubble --- */

.cl-chat__msg--user {
	flex-direction: row-reverse;
}

.cl-chat__msg--user .cl-chat__bubble {
	max-width: 80%;
}

.cl-chat__msg--user .cl-chat__bubble p {
	display: inline-block;
	background: linear-gradient(135deg, var(--cl-prism-1), var(--cl-prism-2));
	color: #fff;
	padding: 10px 14px;
	border-radius: 16px 16px 4px 16px;
	font-weight: var(--weight-medium);
	font-family: var(--font-display);
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0;
}

/* --- AI-Antwort — links ausgerichtet, Dark-Surface, Monospace --- */

.cl-chat__msg--ai {
	align-items: flex-start;
}

.cl-chat__content {
	background: rgba(255,255,255,0.04);
	border-radius: 4px 16px 16px 16px;
	padding: 14px 16px;
	max-width: 90%;
	border: 1px solid rgba(255,255,255,0.06);
}

.cl-chat__msg--ai .cl-chat__content p {
	color: #F0EEF6;
	line-height: 1.7;
	margin: 0 0 12px 0;
	font-size: 0.8125rem;
}

/* --- Typing Indicator (drei pulsierende Punkte) --- */

.cl-chat__typing {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 0 0 0;
}

.cl-chat__typing-dots {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 14px;
	background: rgba(255,255,255,0.04);
	border-radius: 4px 12px 12px 12px;
	border: 1px solid rgba(255,255,255,0.06);
}

.cl-chat__typing-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255,255,255,0.35);
	animation: cl-typing-pulse 1.4s ease-in-out infinite;
}

.cl-chat__typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.cl-chat__typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes cl-typing-pulse {
	0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
	30% { opacity: 1; transform: scale(1.2); }
}

/* --- Ergebnis-Zeilen (Competitor A, B, Your Business) --- */

.cl-chat__result {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	color: #E0DDE8;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.cl-chat__result strong { color: #FFFFFF; }

.cl-chat__result--yes .cl-chat__icon {
	color: #28C840;
	font-weight: bold;
	flex-shrink: 0;
	width: 18px;
	display: flex;
	align-items: center;
}

.cl-chat__result--no {
	opacity: 0.55;
}

.cl-chat__result--no .cl-chat__icon {
	color: #FF5F57;
	font-weight: bold;
	flex-shrink: 0;
	width: 18px;
	display: flex;
	align-items: center;
}

/* --- Timestamp unter Messages --- */

.cl-chat__time {
	display: block;
	font-size: 0.6875rem;
	color: rgba(255,255,255,0.35);
	margin-top: 8px;
	font-family: var(--font-display);
	letter-spacing: 0.02em;
}

/* --- Template-Variable Highlights in der User-Query Bubble --- */

.cl-chat__category,
.cl-chat__city {
	font-weight: var(--weight-bold);
	background: rgba(255, 255, 255, 0.18);
	border-radius: 3px;
	padding: 0 0.25em;
}

/* --- Reduced Motion: Typing-Animation deaktivieren --- */

@media (prefers-reduced-motion: reduce) {
	.cl-chat__typing-dots span {
		animation: none;
		opacity: 0.5;
	}
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */

.cl-final-cta {
	background: var(--gradient-warm);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.cl-final-cta__heading {
	font-size: var(--heading-md);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-tight);
	max-width: 680px;
	margin: 0 auto var(--space-7);
}

.cl-final-cta__body {
	font-size: var(--text-lg);
	color: var(--cl-text-secondary);
	max-width: 600px;
	margin: 0 auto 2.5rem;
	line-height: var(--leading-loose);
}

.cl-final-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-5);
	justify-content: center;
	margin-bottom: var(--space-8);
}

.cl-final-cta__note {
	font-size: var(--text-sm);
	color: var(--cl-text-tertiary);
	font-style: italic;
}

/* ============================================================
   FAQ HEADING (Section heading above FAQ list)
   ============================================================ */

.cl-faq__heading {
	font-size: var(--heading-sm);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-snug);
	text-align: center;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================================
   RANK MATH FAQ BLOCK — Accordion Styling
   Übernimmt das cl-faq Design für den nativen Rank Math FAQ Block.
   Schema JSON-LD wird automatisch von Rank Math generiert.
   ============================================================ */

/* Äußerer Container — gleiche Rolle wie .cl-faq__list */
.rank-math-block.cl-faq {
	display: block;
	border-top: 1px solid var(--cl-border);
}

/* Rank Math rendert .rank-math-list als Wrapper */
.rank-math-block.cl-faq .rank-math-list {
	display: block;
}

/* Einzelnes FAQ-Item — entspricht .cl-faq__item */
.rank-math-block.cl-faq .rank-math-list-item {
	border-bottom: 1px solid var(--cl-border);
}

/* Frage (h3) — entspricht .cl-faq__question */
.rank-math-block.cl-faq .rank-math-question {
	width: 100%;
	text-align: left;
	padding: 1.5rem 0;
	font-family: var(--font-display);
	font-weight: var(--weight-semibold);
	font-size: var(--text-lg);
	color: var(--cl-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	cursor: pointer;
	transition: color var(--duration-fast) ease;
	margin: 0;
	background: none;
	border: none;
	-webkit-user-select: none;
	user-select: none;
}

.rank-math-block.cl-faq .rank-math-question:hover {
	color: var(--cl-prism-1);
}

/* Plus/Kreuz-Icon via CSS Pseudo-Element */
.rank-math-block.cl-faq .rank-math-question::after {
	content: '';
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='12' y1='5' x2='12' y2='19' stroke='currentColor' stroke-width='2'/%3E%3Cline x1='5' y1='12' x2='19' y2='12' stroke='currentColor' stroke-width='2'/%3E%3C/svg%3E");
	/* currentColor funktioniert nicht in url() — Fallback auf Textfarbe */
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='12' y1='5' x2='12' y2='19' stroke='%231C1B1F' stroke-width='2'/%3E%3Cline x1='5' y1='12' x2='19' y2='12' stroke='%231C1B1F' stroke-width='2'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	transition: transform 0.4s var(--ease-out-expo);
}

.rank-math-block.cl-faq .rank-math-list-item.is-open .rank-math-question::after {
	transform: rotate(45deg);
}

/* Antwort — versteckt per default, animiert bei open */
.rank-math-block.cl-faq .rank-math-answer {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s var(--ease-out-expo);
}

.rank-math-block.cl-faq .rank-math-list-item.is-open .rank-math-answer {
	/* JS setzt die exakte max-height via scrollHeight */
	max-height: var(--faq-answer-height, 20rem);
}

/* Antwort-Inhalt — Typography */
.rank-math-block.cl-faq .rank-math-answer p {
	padding-bottom: 1.5rem;
	font-size: var(--text-base);
	color: var(--cl-text-secondary);
	line-height: var(--leading-loose);
	margin: 0;
}

/* ============================================================
   PARALLAX ORB (JS-driven, data-speed attribute)
   ============================================================ */

.cl-parallax-orb {
	will-change: transform;
	transition: none;
}

/* ============================================================
   DIVIDER
   ============================================================ */

.cl-divider {
	height: 1px;
	background: var(--gradient-divider);
	max-width: var(--container-max);
	margin: 0 auto;
}

/* ============================================================
   PROBLEM GRID — 2-column layout (prose + chat mockup)
   ============================================================ */

.cl-problem-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-12);
	align-items: start;
}

@media (max-width: 980px) {
	.cl-problem-grid { grid-template-columns: 1fr; }
}

.cl-problem-body {
	max-width: 560px;
}

.cl-problem-body h2 {
	font-size: var(--heading-md);
	margin-bottom: var(--space-7);
	letter-spacing: var(--tracking-snug);
}

.cl-problem-body p {
	font-size: var(--text-base);
	color: var(--cl-text-secondary);
	line-height: var(--leading-loose);
	margin-bottom: var(--space-6);
}

/* Key Insight callout */
.cl-key-insight {
	border-left: 3px solid var(--cl-prism-1);
	padding: var(--space-5) var(--space-7);
	margin: var(--space-8) 0 0;
	background: var(--cl-bg);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.cl-key-insight p {
	font-size: var(--text-base);
	font-style: italic;
	color: var(--cl-text);
	margin: 0;
}

/* ============================================================
   STATS ROW — inline stat cards below problem section
   ============================================================ */

.cl-stats-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-7);
	margin-top: var(--space-10);
	max-width: 600px;
}

@media (max-width: 640px) {
	.cl-stats-row { grid-template-columns: 1fr; }
}

.cl-stat-card {
	background: var(--cl-bg);
	border: 1px solid var(--cl-border);
	border-radius: var(--radius-lg);
	padding: var(--space-7);
	text-align: center;
}

.cl-stat-card__value {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: var(--weight-bold);
	color: var(--cl-orange);
	letter-spacing: var(--tracking-tight);
	line-height: 1;
	margin-bottom: var(--space-3);
}

.cl-stat-card__label {
	font-size: var(--text-sm);
	color: var(--cl-text-secondary);
	line-height: var(--leading-normal);
}

/* ============================================================
   QUERY CARDS — expandable 2-column grid
   ============================================================ */

.cl-queries-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-6);
}

@media (max-width: 768px) {
	.cl-queries-grid { grid-template-columns: 1fr; }
}

.cl-query-card {
	background: var(--cl-bg-alt);
	border: 1px solid var(--cl-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color var(--duration-fast) ease;
}

.cl-query-card:hover {
	border-color: var(--cl-prism-2);
}

.cl-query-card__header {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	width: 100%;
	padding: var(--space-6);
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: var(--cl-text);
}

.cl-query-card__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cl-bg);
	border-radius: var(--radius-md);
	border: 1px solid var(--cl-border);
}

.cl-query-card__question {
	flex: 1;
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-normal);
}

.cl-query-card__toggle {
	flex-shrink: 0;
	transition: transform 0.3s var(--ease-out-expo);
}

.cl-query-card.is-open .cl-query-card__toggle {
	transform: rotate(180deg);
}

.cl-query-card__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--ease-out-expo);
}

.cl-query-card.is-open .cl-query-card__body {
	max-height: var(--query-body-height, 12rem);
}

.cl-query-card__inner {
	padding: 0 var(--space-6) var(--space-6);
}

.cl-query-card__insight {
	font-size: var(--text-sm);
	color: var(--cl-text-secondary);
	line-height: var(--leading-loose);
	padding-left: calc(36px + var(--space-5));
}

/* ============================================================
   DELIVERABLES GRID — 3-column grid for solution cards
   ============================================================ */

.cl-deliverables-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-7);
}

@media (max-width: 980px) {
	.cl-deliverables-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.cl-deliverables-grid { grid-template-columns: 1fr; }
}

.cl-deliverables-grid .cl-deliverable {
	background: var(--cl-bg);
	border: 1px solid var(--cl-border);
	border-radius: var(--radius-lg);
	padding: var(--space-7);
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.cl-deliverables-grid .cl-deliverable__icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cl-bg-alt);
	border-radius: var(--radius-md);
	border: 1px solid var(--cl-border);
}

/* ============================================================
   CASE STUDY COMPONENTS
   ============================================================ */

/* --- Hero --- */

.cl-case-study-hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-10);
	padding: var(--space-10) 0;
}

.cl-case-study-hero__info {
	flex: 1;
	min-width: 0;
}

.cl-case-study-hero__client {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	margin-bottom: var(--space-8);
}

.cl-case-study-hero__logo {
	width: 64px;
	height: 64px;
	border-radius: var(--radius-md);
	object-fit: contain;
	border: 1px solid var(--cl-border);
	flex-shrink: 0;
}

.cl-case-study-hero__logo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cl-bg-purple);
	color: var(--cl-prism-1);
	font-weight: var(--weight-bold);
	font-size: var(--text-xl);
}

.cl-case-study-hero__client-details {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.cl-case-study-hero__client-name {
	font-size: var(--heading-sm);
	font-weight: var(--weight-bold);
	color: var(--cl-text);
	margin: 0;
	letter-spacing: var(--tracking-tight);
}

.cl-case-study-hero__client-name a {
	color: inherit;
	text-decoration: none;
}

.cl-case-study-hero__client-name a:hover {
	color: var(--cl-prism-1);
}

.cl-case-study-hero__platforms {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.cl-case-study-hero__platforms-label {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--cl-text-tertiary);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
}

.cl-case-study-hero__platforms-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.cl-case-study-hero__platform {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-4);
	background: var(--cl-bg-alt);
	border: 1px solid var(--cl-border);
	border-radius: var(--radius-full);
	font-size: var(--text-sm);
	color: var(--cl-text-secondary);
}

.cl-case-study-hero__score {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
}

/* --- Score Ring --- */

.cl-case-study-score__ring {
	display: block;
}

/* --- Tier Badge --- */

.cl-case-study-tier {
	display: inline-block;
	padding: var(--space-2) var(--space-5);
	border-radius: var(--radius-full);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	line-height: 1;
}

.cl-case-study-tier--leader {
	background: #E8F5E9;
	color: #2E7D32;
}

.cl-case-study-tier--established {
	background: #F1F8E9;
	color: #558B2F;
}

.cl-case-study-tier--emerging {
	background: #FFF8E1;
	color: #F57F17;
}

.cl-case-study-tier--limited {
	background: #FFF3E0;
	color: #E65100;
}

.cl-case-study-tier--invisible {
	background: #FFEBEE;
	color: #D32F2F;
}

/* --- Key Findings --- */

.cl-case-study-findings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-7);
	margin-top: var(--space-8);
}

.cl-case-study-findings__card {
	display: flex;
	align-items: flex-start;
	gap: var(--space-5);
	padding: var(--space-7);
	background: var(--cl-bg);
	border: 1px solid var(--cl-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--cl-shadow-sm);
}

.cl-case-study-findings__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #E8F5E9;
	border-radius: var(--radius-sm);
	color: #2E7D32;
}

.cl-case-study-findings__text {
	font-size: var(--text-base);
	color: var(--cl-text);
	line-height: var(--leading-relaxed);
	margin: 0;
}

/* --- Archive Grid (Card) --- */

.cl-case-study-grid {
	margin-top: var(--space-8);
}

.cl-case-study-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s var(--ease-standard), transform 0.2s var(--ease-standard);
}

.cl-case-study-card:hover {
	box-shadow: var(--cl-shadow-md);
	transform: translateY(-2px);
}

.cl-case-study-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cl-case-study-card__logo {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	object-fit: contain;
	border: 1px solid var(--cl-border);
}

.cl-case-study-card__logo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cl-bg-purple);
	color: var(--cl-prism-1);
	font-weight: var(--weight-bold);
	font-size: var(--text-base);
}

.cl-case-study-card__score {
	font-size: var(--heading-sm);
	font-weight: var(--weight-bold);
	line-height: 1;
}

.cl-case-study-card__name {
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	color: var(--cl-text);
	margin: 0;
	line-height: var(--leading-snug);
}

.cl-case-study-card__industry {
	font-size: var(--text-sm);
	color: var(--cl-text-tertiary);
}

/* --- Showcase Section --- */

.cl-showcase {
	text-align: center;
}

.cl-showcase__logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-8);
	padding: var(--space-8) 0;
}

.cl-showcase__logo {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.6;
	transition: filter 0.3s var(--ease-standard), opacity 0.3s var(--ease-standard);
}

.cl-showcase__logo:hover {
	filter: grayscale(0%);
	opacity: 1;
}

.cl-showcase__logo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cl-bg-alt);
	border: 1px solid var(--cl-border);
	color: var(--cl-text-tertiary);
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	filter: none;
	opacity: 0.8;
}

/* --- Case Study Responsive --- */

@media (max-width: 768px) {
	.cl-case-study-hero {
		flex-direction: column-reverse;
		align-items: center;
		text-align: center;
		gap: var(--space-8);
	}

	.cl-case-study-hero__client {
		flex-direction: column;
		text-align: center;
	}

	.cl-case-study-hero__platforms-list {
		justify-content: center;
	}

	.cl-case-study-findings {
		grid-template-columns: 1fr;
	}
}
