/* ==========================================================================
   TextCRM Stats Widget
   "Impact in numbers" band for the About page. Glass-card surface, icon tint,
   type scale and hover treatment mirrored from the TextCRM Value Props cards
   (#0f172a surface, #00f5a0 accent, white-tinted borders, Inter type).
   ========================================================================== */

.textcrm-stats {
	position: relative;
	width: 100%;
	padding-top: 96px;                 /* py-24 */
	padding-bottom: 96px;
	background-color: #0f172a;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #f3f4f6;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;

	--stt-accent: #00f5a0;

	/* Card tokens — copied from value-props-widget.css */
	--stt-card-bg: rgba(255, 255, 255, 0.03);
	--stt-card-border: rgba(255, 255, 255, 0.05);
	--stt-card-border-hover: rgba(0, 245, 160, 0.3);
	--stt-card-radius: 16px;
	--stt-card-padding: 32px;
	--stt-card-blur: 10px;
	--stt-transition: 250ms;

	/* Icon tokens */
	--stt-icon-size: 52px;
	--stt-icon-inner: 26px;
	--stt-icon-radius: 12px;
	--stt-icon-bg-pct: 12%;
}

.textcrm-stats *,
.textcrm-stats *::before,
.textcrm-stats *::after {
	box-sizing: border-box;
}

.textcrm-stats__container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.textcrm-stats__header {
	text-align: center;
	margin-bottom: 56px;
}

.textcrm-stats__eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #00f5a0;
}

.textcrm-stats__title {
	margin: 0 0 16px;
	font-size: 36px;                   /* text-4xl */
	line-height: 1.1;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.textcrm-stats__title-accent {
	color: #00f5a0;
}

.textcrm-stats__subtitle {
	margin: 0 auto;
	max-width: 42rem;
	font-size: 18px;                   /* body-lg — matches hero / pricing / integrations */
	line-height: 1.6;
	letter-spacing: 0.01em;
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.textcrm-stats__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

/* --------------------------------------------------------------------------
   Item — centered icon + value + label + desc
   -------------------------------------------------------------------------- */
.textcrm-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition:
		border-color var(--stt-transition, 250ms) ease,
		transform var(--stt-transition, 250ms) ease;
}

/* Card surface (default) */
.textcrm-stats--cards .textcrm-stats__item {
	padding: var(--stt-card-padding, 32px);
	background: var(--stt-card-bg, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--stt-card-border, rgba(255, 255, 255, 0.05));
	border-radius: var(--stt-card-radius, 16px);
	-webkit-backdrop-filter: blur(var(--stt-card-blur, 10px));
	backdrop-filter: blur(var(--stt-card-blur, 10px));
}

.textcrm-stats--cards .textcrm-stats__item:hover {
	border-color: var(--stt-card-border-hover, rgba(0, 245, 160, 0.3));
	transform: translateY(-4px);
}

/* Plain variant — no surface */
.textcrm-stats--plain .textcrm-stats__item {
	padding: 8px 4px;
}

/* Icon block */
.textcrm-stats__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--stt-icon-size, 52px);
	height: var(--stt-icon-size, 52px);
	margin-bottom: 18px;
	border-radius: var(--stt-icon-radius, 12px);
	background-color: rgba(0, 245, 160, 0.12); /* fallback */
	background-color: color-mix(in srgb, var(--stt-accent) var(--stt-icon-bg-pct, 12%), transparent);
	color: var(--stt-accent);
}

.textcrm-stats__icon svg {
	display: block;
	width: var(--stt-icon-inner, 26px);
	height: var(--stt-icon-inner, 26px);
	color: currentColor;
}

.textcrm-stats__icon i {
	font-size: var(--stt-icon-inner, 26px);
	line-height: 1;
	color: currentColor;
}

/* Text */
.textcrm-stats__value {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--stt-accent);
}

.textcrm-stats__label {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #e5e7eb;
}

.textcrm-stats__desc {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.textcrm-stats__title {
		font-size: 44px;
	}

	.textcrm-stats__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.textcrm-stats__title {
		font-size: 48px;
	}
}

/* Phones — tighten padding + type */
@media (max-width: 480px) {
	.textcrm-stats {
		padding-top: 64px;
		padding-bottom: 64px;
		--stt-card-padding: 24px;
	}

	.textcrm-stats__container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.textcrm-stats__title {
		font-size: 28px;
	}

	.textcrm-stats__header {
		margin-bottom: 40px;
	}

	.textcrm-stats__subtitle {
		font-size: 16px;
	}

	.textcrm-stats__value {
		font-size: 32px;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.textcrm-stats__item {
		transition: none;
	}

	.textcrm-stats--cards .textcrm-stats__item:hover {
		transform: none;
	}
}
