/* ==========================================================================
   TextCRM Roles Widget
   "Built for every role" section from demo-html/solution.html, with card
   surface styling mirrored 1:1 from the TextCRM Value Props widget — same
   background, border, radius, blur, hover treatment, and type scale.
   ========================================================================== */

.textcrm-roles {
	position: relative;
	width: 100%;
	padding-top: 96px;                /* py-24 */
	padding-bottom: 96px;
	background-color: #0f172a;        /* same solid bg Value Props uses */
	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 */
	--rl-card-bg: rgba(255, 255, 255, 0.03);
	--rl-card-border: rgba(255, 255, 255, 0.05);
	--rl-card-border-hover: rgba(0, 245, 160, 0.3);
	--rl-card-radius: 16px;
	--rl-card-padding: 32px;
	--rl-card-blur: 10px;
	--rl-transition: 250ms;

	/* Feature pill tokens */
	--rl-feature-bg: rgba(255, 255, 255, 0.05);
	--rl-feature-border: rgba(255, 255, 255, 0.05);
	--rl-feature-radius: 12px;
	--rl-feature-padding: 12px;
	--rl-feature-icon-size: 20px;

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

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

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.textcrm-roles__container {
	width: 100%;
	max-width: 1280px;                /* same max as Value Props */
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Section header — type scale matches Value Props
   -------------------------------------------------------------------------- */
.textcrm-roles__header {
	text-align: center;
	margin-bottom: 64px;              /* mb-16 */
}

/* Eyebrow — copied 1:1 from .textcrm-value-props__eyebrow */
.textcrm-roles__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #00f5a0;
}

.textcrm-roles__eyebrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: currentColor;
}

.textcrm-roles__eyebrow-icon svg,
.textcrm-roles__eyebrow-icon i {
	width: 100%;
	height: 100%;
	font-size: 16px;
	line-height: 1;
}

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

/* Highlighted span inside the title — same green as Value Props */
.textcrm-roles__title-accent {
	color: #00f5a0;
}

.textcrm-roles__subtitle {
	margin: 0 auto;
	max-width: 42rem;                 /* max-w-2xl */
	font-size: 16px;
	line-height: 1.6;
	color: #9ca3af;
}

/* --------------------------------------------------------------------------
   3-col grid (collapses to 1 col under 768px)
   -------------------------------------------------------------------------- */
.textcrm-roles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

/* --------------------------------------------------------------------------
   Card — surface copied from .textcrm-value-props__card
   -------------------------------------------------------------------------- */
.textcrm-roles__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--rl-card-padding, 32px);
	background: var(--rl-card-bg, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--rl-card-border, rgba(255, 255, 255, 0.05));
	border-radius: var(--rl-card-radius, 16px);
	-webkit-backdrop-filter: blur(var(--rl-card-blur, 10px));
	backdrop-filter: blur(var(--rl-card-blur, 10px));
	color: inherit;
	transition:
		border-color var(--rl-transition, 250ms) ease,
		background-color var(--rl-transition, 250ms) ease,
		transform var(--rl-transition, 250ms) ease;
}

/* Hover — only border color changes (no bg shift), same as Value Props */
.textcrm-roles__card:hover,
.textcrm-roles__card:focus-within {
	border-color: var(--rl-card-border-hover, rgba(0, 245, 160, 0.3));
	outline: none;
}

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

/* --------------------------------------------------------------------------
   Card eyebrow (label + small glyph on the right)
   -------------------------------------------------------------------------- */
.textcrm-roles__card-eyebrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0 0 24px 0;
	font-size: 12px;                  /* label-sm */
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rl-accent);
}

.textcrm-roles__card-eyebrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: currentColor;
}

.textcrm-roles__card-eyebrow-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.textcrm-roles__card-eyebrow-icon i {
	font-size: 18px;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Card title + description — sizes copied from Value Props
   -------------------------------------------------------------------------- */
.textcrm-roles__card-title {
	margin: 0 0 12px 0;               /* mb-3 */
	font-size: 20px;                  /* text-xl */
	line-height: 1.3;
	font-weight: 700;
	color: #ffffff;
}

.textcrm-roles__card-desc {
	margin: 0 0 24px 0;               /* mb-6 */
	font-size: 14px;                  /* text-sm */
	line-height: 1.6;
	color: #9ca3af;                   /* text-gray-400 */
}

/* --------------------------------------------------------------------------
   Feature pills (Roles-specific — kept structural)
   -------------------------------------------------------------------------- */
.textcrm-roles__features {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	margin-top: auto;                 /* pin to bottom on equal-height cards */
}

.textcrm-roles__feature {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: var(--rl-feature-padding, 12px);
	background: var(--rl-feature-bg, rgba(255, 255, 255, 0.05));
	border: 1px solid var(--rl-feature-border, rgba(255, 255, 255, 0.05));
	border-radius: var(--rl-feature-radius, 12px);
}

.textcrm-roles__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rl-feature-icon-size, 20px);
	height: var(--rl-feature-icon-size, 20px);
	flex-shrink: 0;
	color: var(--rl-accent);
}

.textcrm-roles__feature-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.textcrm-roles__feature-icon i {
	font-size: var(--rl-feature-icon-size, 20px);
	line-height: 1;
}

.textcrm-roles__feature-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Responsive — md+ ramp matches Value Props
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.textcrm-roles__title {
		font-size: 48px;              /* md:text-5xl */
	}

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

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

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

	.textcrm-roles__title {
		font-size: 30px;
	}

	.textcrm-roles__header {
		margin-bottom: 48px;
	}
}

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