/* ============================================================================
   EUX Blocks — eux/tyro-why-card
   Icon-card benefit: 38×38 icon container + heading + paragraph.
   ============================================================================ */

/* ---- Card ---------------------------------------------------------------- */
.eux-block--tyro-why-card.eux-tyro-why__card {
	background: var(--eux-cream-50);
	border: 1px solid var(--eux-ink-100);
	border-radius: 14px;
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	/* Standout: keep the .eux-reveal entrance (opacity + transform) and add glow transitions */
	transition:
		opacity   var(--eux-dur-reveal) var(--eux-ease-expo),
		transform var(--eux-dur-reveal) var(--eux-ease-expo),
		box-shadow 0.35s ease,
		border-color 0.35s ease;
	box-shadow:
		0 1px 3px rgba(16, 12, 28, 0.05),
		0 8px 22px rgba(114, 14, 236, 0.10);
}

.eux-tyro-why--light .eux-block--tyro-why-card.eux-tyro-why__card {
	background: var(--eux-cream-50);
}

.eux-tyro-why--cream .eux-block--tyro-why-card.eux-tyro-why__card {
	background: var(--eux-white);
}

.eux-tyro-why--dark .eux-block--tyro-why-card.eux-tyro-why__card {
	background: #14131a;
	border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================================
   ICON CONTAINER
   38×38 rounded square, background tinted to match icon colour.
   ============================================================================ */

.eux-block--tyro-why-card .eux-tyro-why__ic {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.eux-block--tyro-why-card .eux-tyro-why__ic svg {
	width: 20px;
	height: 20px;
}

/* Colour variants — background tint + stroke color */
.eux-block--tyro-why-card .eux-tyro-why__ic--purple {
	background: rgba(114, 14, 236, 0.09);
	color: var(--eux-woo-purple);
}
.eux-block--tyro-why-card .eux-tyro-why__ic--green {
	background: rgba(26, 122, 82, 0.10);
	color: #1a7a52;
}
.eux-block--tyro-why-card .eux-tyro-why__ic--ink {
	background: rgba(10, 10, 10, 0.08);
	color: var(--eux-ink-900);
}
.eux-block--tyro-why-card .eux-tyro-why__ic--blue {
	background: rgba(0, 102, 204, 0.10);
	color: #0066cc;
}
.eux-block--tyro-why-card .eux-tyro-why__ic--orange {
	background: rgba(192, 94, 20, 0.10);
	color: #c05e14;
}

/* Dark theme — slightly brighter tint so icons register */
.eux-tyro-why--dark .eux-block--tyro-why-card .eux-tyro-why__ic--purple {
	background: rgba(114, 14, 236, 0.20);
}
.eux-tyro-why--dark .eux-block--tyro-why-card .eux-tyro-why__ic--green {
	background: rgba(26, 122, 82, 0.22);
}
.eux-tyro-why--dark .eux-block--tyro-why-card .eux-tyro-why__ic--ink {
	background: rgba(255, 255, 255, 0.08);
	color: var(--eux-cream);
}
.eux-tyro-why--dark .eux-block--tyro-why-card .eux-tyro-why__ic--blue {
	background: rgba(0, 102, 204, 0.22);
}
.eux-tyro-why--dark .eux-block--tyro-why-card .eux-tyro-why__ic--orange {
	background: rgba(192, 94, 20, 0.22);
}

/* ============================================================================
   BODY — heading + paragraph
   ============================================================================ */

.eux-block--tyro-why-card .eux-tyro-why__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Heading */
.eux-block--tyro-why-card .eux-tyro-why__h {
	font-family: var(--eux-font-display) !important;
	font-weight: 500 !important;
	font-size: 17px !important;
	line-height: 1.25 !important;
	letter-spacing: -0.012em !important;
	color: var(--eux-ink-900) !important;
	margin: 0 !important;
}

.eux-tyro-why--dark .eux-block--tyro-why-card .eux-tyro-why__h {
	color: var(--eux-cream) !important;
}

/* Paragraph */
.eux-block--tyro-why-card .eux-tyro-why__p {
	font-family: var(--eux-font-body) !important;
	font-size: 13.5px !important;
	line-height: 1.55 !important;
	color: var(--eux-ink-700) !important;
	margin: 0 !important;
}

.eux-tyro-why--dark .eux-block--tyro-why-card .eux-tyro-why__p {
	color: rgba(244, 240, 236, 0.65) !important;
}

/* ============================================================================
   STANDOUT — glowing gradient border + hover glow  (v0.37.2)
   A resting purple ring + soft glow makes each card pop off the section; hover
   intensifies it. Transform is intentionally NOT touched on hover so it never
   fights the .eux-reveal entrance transform.
   ============================================================================ */

/* Gradient ring painted on the border edge via a masked pseudo-element */
.eux-block--tyro-why-card.eux-tyro-why__card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: linear-gradient(135deg,
		rgba(114, 14, 236, 0.55) 0%,
		rgba(197, 140, 251, 0.30) 40%,
		rgba(114, 14, 236, 0) 72%);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	pointer-events: none;
	opacity: 0.7;
	transition: opacity 0.35s ease;
}

.eux-block--tyro-why-card.eux-tyro-why__card:hover {
	border-color: rgba(114, 14, 236, 0.30);
	box-shadow:
		0 2px 6px rgba(16, 12, 28, 0.06),
		0 16px 38px rgba(114, 14, 236, 0.20);
}
.eux-block--tyro-why-card.eux-tyro-why__card:hover::after {
	opacity: 1;
}

/* Dark theme — brighter glow against #14131a */
.eux-tyro-why--dark .eux-block--tyro-why-card.eux-tyro-why__card {
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.40),
		0 10px 28px rgba(114, 14, 236, 0.16);
}
.eux-tyro-why--dark .eux-block--tyro-why-card.eux-tyro-why__card::after {
	background: linear-gradient(135deg,
		rgba(159, 99, 247, 0.75) 0%,
		rgba(197, 140, 251, 0.35) 42%,
		rgba(114, 14, 236, 0) 75%);
	opacity: 0.8;
}
.eux-tyro-why--dark .eux-block--tyro-why-card.eux-tyro-why__card:hover {
	border-color: rgba(159, 99, 247, 0.45);
	box-shadow:
		0 2px 6px rgba(0, 0, 0, 0.45),
		0 18px 44px rgba(114, 14, 236, 0.30);
}

/* Reduced motion — the global .eux-reveal reset handles entrance; calm hover too */
@media (prefers-reduced-motion: reduce) {
	.eux-block--tyro-why-card.eux-tyro-why__card,
	.eux-block--tyro-why-card.eux-tyro-why__card::after {
		transition: none;
	}
}