/* ============================================================
   WFI Home Page Styles (BEM, RTL-friendly via logical properties)
   Linked globally from App.razor. All classes prefixed `home-`.
   ============================================================ */

/* ───────── Generic helpers ───────── */
.home-section {
	padding-block: clamp(3rem, 6vw, 6rem);
}

.home-section--muted {
	background: #f8f8f8;
}

.home-section--white {
	background: var(--wfi-background, #fff);
}

.home-section--accent {
	background: hsla(234, 78%, 49%, 0.05);
	border-block: 1px solid hsla(234, 78%, 49%, 0.18);
}

.home-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--wfi-primary, hsl(234, 78%, 49%));
	margin-block-end: 0.75rem;
}

.home-title {
	font-family: var(--wfi-font-display, 'Inter', sans-serif);
	font-size: 1.875rem; /* 30px — source mobile */
	font-weight: 700;
	line-height: 1.2; /* 36/30 mobile */
	color: var(--wfi-foreground, #161616);
	margin-block-end: 1rem;
}

@media (min-width: 768px) {
	.home-title {
		font-size: 3rem; /* 48px — source md: */
		line-height: 1; /* 48/48 desktop */
	}
}

html[lang="ar"] .home-title,
[dir="rtl"] .home-title {
	font-family: var(--wfi-font-arabic);
}

.home-body {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: hsl(0, 0%, 35%);
	max-width: 65ch;
}

.home-grid {
	display: grid;
	gap: 1.5rem;
}

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

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

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

@media (max-width: 992px) {
	.home-grid--3, .home-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.home-grid--2, .home-grid--3, .home-grid--4 {
		grid-template-columns: 1fr;
	}
}

.home-card {
	background: #fff;
	border: 1px solid hsl(0, 0%, 90%);
	border-radius: var(--wfi-radius-lg, 0.625rem);
	padding: 1.5rem 1.5rem 1.75rem;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -12px hsla(0, 0%, 0%, 0.12);
	border-color: hsla(234, 78%, 49%, 0.3);
}

.home-card--top-bar {
	border-block-start: 2px solid hsla(234, 78%, 49%, 0.45);
}

.home-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--wfi-radius, 0.5rem);
	background: hsla(234, 78%, 49%, 0.08);
	color: var(--wfi-primary, hsl(234, 78%, 49%));
	margin-block-end: 1rem;
}

.home-card__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-block-end: 0.5rem;
	color: var(--wfi-foreground, #161616);
}

.home-card__body {
	font-size: 0.95rem;
	line-height: 1.6;
	color: hsl(0, 0%, 38%);
	margin: 0;
}

.home-section__intro {
	text-align: center;
	margin-block-end: 2.5rem;
}

.home-section__intro .home-body {
	margin-inline: auto;
}

[dir="rtl"] .home-section__intro {
	text-align: center;
}

/* ───────── Trust Strip ───────── */
.home-trust {
	display: block;
}

/* Centered header */
.home-trust__header {
	text-align: center;
	max-width: 64rem;
	margin-inline: auto;
	margin-block-end: 3rem;
}

.home-trust__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-block-end: 1rem;
}

.home-trust__eyebrow-rule {
	display: block;
	width: 2.5rem;
	height: 1px;
	background-color: hsl(0, 0%, 88%);
}

.home-trust__eyebrow-text {
	font-family: var(--wfi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 0.75rem;
	text-transform: uppercase;
	color: hsl(0, 0%, 40%);
}

.home-trust__title {
	font-family: var(--wfi-font-display, 'Inter', sans-serif);
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--wfi-foreground, #161616);
	margin-block-end: 1rem;
}

html[lang="ar"] .home-trust__title,
[dir="rtl"] .home-trust__title {
	font-family: var(--wfi-font-arabic);
}

.home-trust__body {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: hsl(0, 0%, 40%);
	max-width: 42rem;
	margin: 0 auto;
}

/* Lower row layout: video / divider / stats+CTA — 3-col on lg, single col below */
.home-trust__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
	max-width: 72rem;
	margin-inline: auto;
}

@media (min-width: 992px) {
	.home-trust__layout {
		grid-template-columns: 1fr auto 1fr;
		gap: 3.5rem;
	}
}

.home-trust__video {
	width: 100%;
	max-width: 28rem;
	margin-inline: auto;
	aspect-ratio: 4 / 3;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 16px 40px -16px hsla(0, 0%, 0%, 0.2);
	border: 1px solid hsla(0, 0%, 0%, 0.08);
}

@media (min-width: 992px) {
	.home-trust__video {
		max-width: none;
	}
}

.home-trust__video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-trust__divider {
	display: none;
}

@media (min-width: 992px) {
	.home-trust__divider {
		display: block;
		align-self: stretch;
		width: 1px;
		background-color: hsla(0, 0%, 0%, 0.08);
		margin-block: 1rem;
	}
}

.home-trust__content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 28rem;
	margin-inline: auto;
}

@media (min-width: 992px) {
	.home-trust__content {
		max-width: none;
		margin-inline: 0;
	}
}

.home-trust__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.home-trust__stat {
	background: hsla(0, 0%, 100%, 0.95);
	backdrop-filter: blur(4px);
	border: 1px solid hsla(0, 0%, 0%, 0.1);
	border-radius: 0.75rem;
	box-shadow: 0 4px 6px -1px hsla(0, 0%, 0%, 0.08), 0 2px 4px -2px hsla(0, 0%, 0%, 0.06);
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
}

.home-trust__stat-icon {
	color: var(--wfi-primary);
	opacity: 0.7;
	margin-block-end: 0.5rem;
	line-height: 0;
}

.home-trust__stat-value {
	font-family: var(--wfi-font-display, 'Inter', sans-serif);
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--wfi-primary);
	line-height: 1;
}

@media (min-width: 768px) {
	.home-trust__stat-value {
		font-size: 2.25rem;
	}
}

.home-trust__stat-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: hsl(0, 0%, 35%);
	text-transform: uppercase;
	line-height: 1.4;
	margin-block-start: 0.5rem;
}

@media (min-width: 768px) {
	.home-trust__stat-label {
		font-size: 0.875rem;
	}
}

.home-trust__cta {
	display: flex;
}

/* ───────── Audience Paths ───────── */
/* Shared section header pattern: eyebrow with flanking rules + centered title.
   Used by Audience Paths, Trust Strip, and other home sections. */
.home-section__header {
	text-align: center;
	max-width: 64rem;
	margin-inline: auto;
	margin-block-end: 2.5rem;
}

.home-section__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-block-end: 1rem;
}

.home-section__eyebrow-rule {
	display: block;
	width: 2.5rem;
	height: 1px;
	background-color: hsl(0, 0%, 88%);
}

.home-section__eyebrow-text {
	font-family: var(--wfi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 0.75rem;
	text-transform: uppercase;
	color: hsl(0, 0%, 40%);
}

.home-section__title {
	font-family: var(--wfi-font-display, 'Inter', sans-serif);
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--wfi-foreground, #161616);
	margin: 0;
}

html[lang="ar"] .home-section__title,
[dir="rtl"] .home-section__title {
	font-family: var(--wfi-font-arabic);
}

/* Audience-paths cards */
.home-audience__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: 72rem;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.home-audience__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.home-audience__card {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	border-radius: 0.75rem;
	background: #fff;
	border: 1px solid hsla(0, 0%, 0%, 0.1);
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-audience__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -18px hsla(0, 0%, 0%, 0.18);
}

@media (min-width: 640px) {
	.home-audience__card {
		grid-template-columns: 3fr 2fr;
	}
}

.home-audience__media {
	background-size: cover;
	background-position: center;
	min-height: 13rem;
}

@media (min-width: 640px) {
	.home-audience__media {
		min-height: auto;
	}
}

.home-audience__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.home-audience__body {
		padding: 1.75rem;
	}
}

/* Icon: plain (no badge), primary at 70% opacity */
.home-audience__icon {
	color: var(--wfi-primary);
	opacity: 0.7;
	margin-block-end: 0.75rem;
	line-height: 0;
	width: 1.5rem;
	height: 1.5rem;
}

.home-audience__title {
	font-family: var(--wfi-font-display, 'Inter', sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wfi-foreground);
	margin: 0 0 0.75rem 0;
}

@media (min-width: 768px) {
	.home-audience__title {
		font-size: 1.5rem;
		line-height: 1.333;
	}
}

.home-audience__text {
	font-size: 0.95rem;
	line-height: 1.65;
	color: hsl(0, 0%, 40%);
	margin: 0 0 1.25rem;
	flex: 1;
}

.home-audience__cta {
	display: flex;
}

.home-audience__cta .mud-button-root {
	white-space: nowrap;
	background-color: var(--wfi-primary, hsl(234, 78%, 49%)) !important;
	color: #fff !important;
	/* Match React source density: 38px tall / 8px vertical padding (vs Mud default 32px/6px) */
	min-height: 36px;
	padding: 8px 16px !important;
	border: 1px solid var(--wfi-primary-border, hsl(234, 78%, 41%)) !important;
	box-shadow: none !important;
	transition: all 0.15s ease;
}

.home-audience__cta .mud-button-root:hover {
	background-color: hsl(234, 78%, 42%) !important;
	transform: translateY(-1px);
}

.home-audience__cta .mud-button-label {
	white-space: nowrap;
	color: #fff !important;
	font-weight: 600;
}

.home-audience__cta .mud-icon-root {
	color: #fff !important;
}

/* ───────── Problem Grid ───────── */
.home-problem__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--wfi-radius, 0.5rem);
	background: hsla(234, 78%, 49%, 0.1);
	color: var(--wfi-primary);
	font-weight: 700;
	font-size: 0.95rem;
	margin-block-end: 0.875rem;
}

.home-problem__closing {
	margin-block-start: 2rem;
	padding: 1.25rem 1.5rem;
	background: hsla(234, 78%, 49%, 0.05);
	border: 1px solid hsla(234, 78%, 49%, 0.18);
	border-radius: var(--wfi-radius, 0.5rem);
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.home-problem__closing-icon {
	color: var(--wfi-primary);
	flex-shrink: 0;
}

.home-problem__closing-text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: hsl(0, 0%, 28%);
}

/* ───────── Methodology ───────── */
/* ───────── Methodology section (rewritten) ───────── */
.home-method__header {
	margin-block-end: 3rem;
}

@media (min-width: 768px) {
	.home-method__header {
		margin-block-end: 3.5rem;
	}
}

.home-method__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-block-end: 1rem;
}

.home-method__eyebrow-rule {
	display: block;
	width: 2.5rem;
	height: 1px;
	background-color: hsl(0, 0%, 88%);
}

.home-method__eyebrow-text {
	font-family: var(--wfi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 0.75rem;
	text-transform: uppercase;
	color: hsl(0, 0%, 40%);
}

.home-method__header-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 640px) {
	.home-method__header-row {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

.home-method__header-text {
	max-width: 42rem;
}

.home-method__title {
	font-family: var(--wfi-font-display, 'Inter', sans-serif);
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--wfi-foreground, #161616);
	margin: 0 0 1rem;
}

html[lang="ar"] .home-method__title,
[dir="rtl"] .home-method__title {
	font-family: var(--wfi-font-arabic);
}

.home-method__body {
	font-size: 1rem;
	color: hsl(0, 0%, 40%);
	line-height: 1.7;
	margin: 0;
}

@media (min-width: 768px) {
	.home-method__body {
		font-size: 1.125rem;
	}
}

.home-method__header-cta {
	flex-shrink: 0;
}

/* Card grid + horizontal connector line on lg */
.home-method__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.home-method__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.home-method__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.home-method__connector {
	display: none;
	position: absolute;
	top: calc(1.5rem + 8px);
	inset-inline-start: calc(12.5% + 8px);
	inset-inline-end: calc(12.5% + 8px);
	height: 1px;
	background-color: hsla(234, 78%, 49%, 0.2);
	pointer-events: none;
}

@media (min-width: 992px) {
	.home-method__connector {
		display: block;
	}
}

.home-method__card {
	position: relative;
	z-index: 1;
	background: #fff;
	border: 1px solid hsla(0, 0%, 0%, 0.08);
	border-block-start: 2px solid hsla(234, 78%, 49%, 0.4);
	border-radius: 0.75rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-method__card:hover {
	box-shadow: 0 12px 28px -16px hsla(0, 0%, 0%, 0.18);
	transform: translateY(-2px);
	border-color: hsla(234, 78%, 49%, 0.6);
}

.home-method__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-block-end: 1.25rem;
}

.home-method__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	background: hsla(234, 78%, 49%, 0.1);
	color: var(--wfi-primary);
	box-shadow: 0 0 0 1px hsla(234, 78%, 49%, 0.15);
}

.home-method__step-num {
	font-family: var(--wfi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 1.875rem;
	font-weight: 700;
	color: hsla(234, 78%, 49%, 0.25);
	line-height: 1;
}

.home-method__card-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--wfi-foreground, #161616);
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.home-method__card-body {
	font-size: 0.875rem;
	color: hsl(0, 0%, 40%);
	line-height: 1.65;
	margin: 0;
	flex: 1;
}

/* Legacy step number rule (kept for any remaining references) */
.home-method__step-num--legacy {
	font-family: var(--wfi-font-display);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wfi-primary);
	margin-block-end: 0.5rem;
}

.home-method__cta-row {
	text-align: center;
	margin-block-start: 2.5rem;
}

/* ───────── Business Solutions ───────── */
.home-bizsol__num {
	position: absolute;
	inset-block-start: 0.875rem;
	inset-inline-end: 1rem;
	font-family: var(--wfi-font-display);
	font-size: 0.8rem;
	font-weight: 700;
	color: hsla(234, 78%, 49%, 0.5);
}

.home-bizsol__card {
	position: relative;
}

.home-bizsol__link {
	margin-block-start: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--wfi-primary);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

.home-bizsol__link:hover {
	text-decoration: underline;
}

.home-bizsol__footer {
	margin-block-start: 2.5rem;
	padding-block-start: 2rem;
	border-block-start: 1px solid hsl(0, 0%, 88%);
	text-align: center;
}

.home-bizsol__footer-copy {
	color: hsl(0, 0%, 40%);
	margin-block-end: 1rem;
}

/* ───────── Chairman Message ───────── */
.home-chairman {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 992px) {
	.home-chairman {
		grid-template-columns: 1fr 1fr;
		gap: 3.5rem;
	}
}

/* Image wrapper (aspect 4/3 + name/role overlay) */
.home-chairman__media-wrap {
	position: relative;
	margin: 0;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid hsl(0, 0%, 88%);
	box-shadow: 0 1px 2px 0 hsla(0, 0%, 0%, 0.05);
	aspect-ratio: 4 / 3;
	/* In React's order-last lg:order-first, the image renders FIRST in LTR
	   (visually left), LAST in RTL by default. The 1fr 1fr grid + dir='rtl'
	   handles that correctly without needing explicit order. */
}

.home-chairman__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.home-chairman__media-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, hsla(0, 0%, 0%, 0.45) 0%, transparent 55%);
	pointer-events: none;
}

.home-chairman__caption {
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	inset-inline-end: 0;
	padding: 1rem 1.25rem;
	margin: 0;
	z-index: 1;
}

.home-chairman__caption-name {
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.3;
	margin: 0;
}

.home-chairman__caption-role {
	color: hsla(0, 0%, 100%, 0.7);
	font-size: 0.75rem;
	line-height: 1.4;
	margin: 0.125rem 0 0;
}

/* Text column */
.home-chairman__eyebrow {
	display: inline-block;
	font-family: var(--wfi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 0.75rem;
	text-transform: uppercase;
	color: hsl(0, 0%, 40%);
	margin-block-end: 0.75rem;
}

.home-chairman__title {
	font-family: var(--wfi-font-display, 'Inter', sans-serif);
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--wfi-foreground, #161616);
	margin-block-end: 1.25rem;
}

html[lang="ar"] .home-chairman__title,
[dir="rtl"] .home-chairman__title {
	font-family: var(--wfi-font-arabic);
}

.home-chairman__body {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: hsl(0, 0%, 40%);
	margin-block-end: 1.5rem;
}

/* Blockquote — primary-tinted accent with quote icon */
.home-chairman__quote {
	position: relative;
	padding: 0.75rem 1.25rem;
	margin: 0 0 2rem;
	border-inline-start: 4px solid hsla(234, 78%, 49%, 0.6);
	background: hsla(234, 78%, 49%, 0.05);
	border-radius: 0 0.5rem 0.5rem 0;
}

[dir="rtl"] .home-chairman__quote {
	border-radius: 0.5rem 0 0 0.5rem;
}

.home-chairman__quote-icon {
	position: absolute;
	top: -0.25rem;
	inset-inline-start: -0.125rem;
	color: hsla(234, 78%, 49%, 0.5);
}

.home-chairman__quote-text {
	font-style: italic;
	font-size: 1rem;
	line-height: 1.65;
	color: hsl(0, 0%, 35%);
	margin: 0;
}

/* ───────── About Snippet ───────── */
.home-about-snippet {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.home-about-snippet__text {
	max-width: 42rem;
}

.home-about-snippet__text .home-eyebrow {
	margin-block-end: 0.5rem;
}

.home-about-snippet__text .home-title {
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
	margin-block-end: 0.5rem;
}

.home-about-snippet__text p {
	margin: 0;
	color: hsl(0, 0%, 38%);
}

/* ───────── Final CTA ───────── */
.home-finalcta {
	text-align: center;
}

.home-finalcta__title {
	font-family: var(--wfi-font-display);
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	font-weight: 700;
	color: #fff;
	margin-block-end: 1rem;
}

.home-finalcta__body {
	color: hsla(0, 0%, 100%, 0.8);
	max-width: 52rem;
	margin-inline: auto;
	margin-block-end: 2rem;
}

.home-finalcta__stats {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-block-end: 2rem;
}

.home-finalcta__stat {
	padding-inline: 1.5rem;
	text-align: center;
}

.home-finalcta__stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
}

.home-finalcta__stat-label {
	font-size: 0.8rem;
	color: hsla(0, 0%, 100%, 0.65);
	text-transform: uppercase;
}

.home-finalcta__stat-divider {
	width: 1px;
	height: 2rem;
	background: hsla(0, 0%, 100%, 0.2);
}

.home-finalcta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

/* ───────── AI Banner ───────── */
.home-ai {
	border-radius: var(--wfi-radius-lg, 0.625rem);
	border: 1px solid hsl(0, 0%, 88%);
	background: #fff;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
}

@media (max-width: 768px) {
	.home-ai {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

.home-ai__text .home-eyebrow {
	margin-block-end: 0.5rem;
}

.home-ai__title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-block-end: 0.5rem;
	color: var(--wfi-foreground);
}

.home-ai__prompt {
	font-size: 0.95rem;
	color: hsl(0, 0%, 40%);
	margin: 0;
	max-width: 52rem;
}

.home-ai__providers {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: flex-start;
}

@media (max-width: 768px) {
	.home-ai__providers {
		justify-content: center;
	}
}

/* Provider buttons — interactive (open AI tool with prompt) */
.home-ai__provider {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
	text-decoration: none;
	transition: transform 0.15s ease;
}

.home-ai__provider:hover {
	transform: translateY(-1px);
}

.home-ai__provider:focus-visible {
	outline: 2px solid var(--wfi-primary);
	outline-offset: 4px;
	border-radius: var(--wfi-radius, 0.5rem);
}

.home-ai__provider-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--wfi-radius, 0.5rem);
	background: hsl(0, 0%, 96%);
	border: 1px solid hsl(0, 0%, 88%);
	color: hsl(0, 0%, 30%);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-ai__provider:hover .home-ai__provider-icon {
	background: color-mix(in srgb, var(--wfi-primary) 5%, transparent);
	border-color: color-mix(in srgb, var(--wfi-primary) 40%, transparent);
	color: var(--wfi-primary);
}

.home-ai__provider-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: hsl(0, 0%, 45%);
	transition: color 0.2s ease;
}

.home-ai__provider:hover .home-ai__provider-label {
	color: var(--wfi-foreground);
}

/* Inline flash notification used by wfi-ai-banner.js for clipboard fallback feedback */
.wfi-ai-flash {
	position: fixed;
	inset-inline-end: 1.25rem;
	bottom: 1.25rem;
	z-index: 1500;
	padding: 0.625rem 1rem;
	border-radius: 0.5rem;
	background: hsla(0, 0%, 10%, 0.92);
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.4;
	box-shadow: 0 12px 32px -12px hsla(0, 0%, 0%, 0.35);
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.wfi-ai-flash--visible {
	opacity: 1;
	transform: translateY(0);
}

/* ───────── Logo Marquee fade mask (in case ClientLogoTicker doesn't apply it) ───────── */

/* ───────── Hero entrance helpers (used by wfiAnime.heroEntrance) ───────── */
.wfi-hero-section__badge,
.wfi-hero-section__title,
.wfi-hero-section__subtitle,
.wfi-hero-section__actions { /* JS animates in; CSS provides initial state via [data-animate] only */
}
