/* ==========================================================================
   TextCRM Mission & Vision Widget
   Dual accent panels for the About page. Card surface mirrored 1:1 from the
   TextCRM Value Props / Roles cards; per-panel accent resolved via data-accent
   exactly like the Roles widget (brand green by default, customizable per item).
   ========================================================================== */

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

	/* Card tokens — values copied from value-props-widget.css */
	--mv-card-bg: rgba(255, 255, 255, 0.03);
	--mv-card-border: rgba(255, 255, 255, 0.05);
	--mv-card-radius: 20px;
	--mv-card-padding: 40px;
	--mv-card-blur: 10px;
	--mv-transition: 250ms;

	/* Icon tokens */
	--mv-icon-size: 56px;
	--mv-icon-inner: 28px;
	--mv-icon-radius: 14px;
	--mv-icon-bg-pct: 12%;

	/* Brand accents (per-card override via data-accent stays available) */
	--mv-secondary: #00f5a0;
	--mv-primary: #00f5a0;
	--mv-tertiary: #00f5a0;
	--mv-accent: var(--mv-secondary);
}

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

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

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

.textcrm-mv__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-mv__title {
	margin: 0 0 16px;
	font-size: 36px;                   /* text-4xl */
	line-height: 1.1;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

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

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

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.textcrm-mv__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

/* --------------------------------------------------------------------------
   Card — surface copied from .textcrm-value-props__card
   -------------------------------------------------------------------------- */
.textcrm-mv__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	overflow: hidden;
	padding: var(--mv-card-padding, 40px);
	background: var(--mv-card-bg, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--mv-card-border, rgba(255, 255, 255, 0.05));
	border-radius: var(--mv-card-radius, 20px);
	-webkit-backdrop-filter: blur(var(--mv-card-blur, 10px));
	backdrop-filter: blur(var(--mv-card-blur, 10px));
	transition:
		border-color var(--mv-transition, 250ms) ease,
		transform var(--mv-transition, 250ms) ease;
}

.textcrm-mv__card:hover {
	border-color: var(--mv-accent);
	transform: translateY(-4px);
}

/* Per-card accent resolution (still customizable via inline --mv-accent) */
.textcrm-mv__card[data-accent="secondary"] { --mv-accent: var(--mv-secondary); }
.textcrm-mv__card[data-accent="primary"]   { --mv-accent: var(--mv-primary); }
.textcrm-mv__card[data-accent="tertiary"]  { --mv-accent: var(--mv-tertiary); }

/* Accent top bar */
.textcrm-mv__card--bar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--mv-accent), transparent);
	opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Icon block — tinted square in the panel accent
   -------------------------------------------------------------------------- */
.textcrm-mv__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--mv-icon-size, 56px);
	height: var(--mv-icon-size, 56px);
	margin-bottom: 24px;
	border-radius: var(--mv-icon-radius, 14px);
	background-color: rgba(0, 245, 160, 0.12); /* fallback */
	background-color: color-mix(in srgb, var(--mv-accent) var(--mv-icon-bg-pct, 12%), transparent);
	color: var(--mv-accent);
	transition: transform var(--mv-transition, 250ms) ease;
}

.textcrm-mv__card:hover .textcrm-mv__icon {
	transform: scale(1.08);
}

.textcrm-mv__icon svg {
	display: block;
	width: var(--mv-icon-inner, 28px);
	height: var(--mv-icon-inner, 28px);
	color: currentColor;
}

.textcrm-mv__icon i {
	font-size: var(--mv-icon-inner, 28px);
	line-height: 1;
	color: currentColor;
}

/* --------------------------------------------------------------------------
   Card text
   -------------------------------------------------------------------------- */
.textcrm-mv__card-label {
	margin-bottom: 10px;
	font-size: 12px;                   /* label-sm */
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--mv-accent);
}

.textcrm-mv__card-title {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.textcrm-mv__card-desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Responsive — md+ ramp matches Value Props / Roles
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.textcrm-mv__title {
		font-size: 44px;
	}

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

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

/* Phones — tighten padding (matches Value Props) */
@media (max-width: 480px) {
	.textcrm-mv {
		padding-top: 64px;
		padding-bottom: 64px;
		--mv-card-padding: 28px;
	}

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

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

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

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

	.textcrm-mv__card-title {
		font-size: 21px;
	}
}

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

	.textcrm-mv__card:hover {
		transform: none;
	}
}
