/* ── Root ──────────────────────────────────────────── */

.rfi-root {
	font-family: 'Poppins', sans-serif;
	color: #0E0F10;
	box-sizing: border-box;
}

.rfi-root *,
.rfi-root *::before,
.rfi-root *::after {
	box-sizing: border-box;
}

.rfi-heading {
	display: none;
	font-size: 32px;
	font-weight: 400;
	line-height: 40px;
	letter-spacing: -0.32px;
	color: #000;
	margin: 0 0 24px;
}

/* ── Top area (carousel + 3 cards) ────────────────── */

.rfi-top {
	display: grid;
	grid-template-columns: 333px 1fr 1fr 1fr;
	gap: 30px;
	align-items: stretch;
}

.rfi-no-carousel .rfi-top {
	grid-template-columns: 1fr 1fr 1fr;
}

/* ── Bottom area (CTA cards) ──────────────────────── */

.rfi-bottom {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 30px;
	margin-top: 15px;
}

.rfi-root:not(.rfi-no-carousel) .rfi-bottom {
	margin-left: calc(333px + 30px);
}

/* ── Hero carousel ────────────────────────────────── */

.rfi-hero {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	grid-row: 1 / 3;
}

.rfi-carousel-track {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rfi-carousel-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.rfi-carousel-slide.rfi-slide-active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
}

.rfi-hero-img {
	display: block;
	max-width: 70%;
	max-height: 80%;
	height: auto;
	object-fit: contain;
}

.rfi-carousel-dots {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.rfi-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.2);
	transition: background-color 0.3s ease, transform 0.3s ease;
	appearance: none;
	-webkit-appearance: none;
}

.rfi-dot:hover {
	background-color: rgba(0, 0, 0, 0.4);
}

.rfi-dot.rfi-dot-active {
	background-color: rgba(0, 0, 0, 0.6);
	transform: scale(1.25);
}

/* ── Cards (shared) ───────────────────────────────── */

.rfi-card {
	background-color: #ffffff;
	border-radius: 12px;
	overflow: visible;
	padding: 15px;
	display: flex;
	flex-direction: column;
}

.rfi-root .rfi-card-header,
.rfi-root .rfi-card-header:hover,
.rfi-root .rfi-card-header:focus,
.rfi-root .rfi-card-header:active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	outline: none;
	box-shadow: none !important;
	cursor: default;
	padding: 0;
	margin: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	text-decoration: none;
	text-transform: none;
	letter-spacing: inherit;
	border-radius: 0;
	line-height: inherit;
}

.rfi-chevron {
	display: none;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.rfi-card-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	color: #0E0F10;
}

.rfi-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: space-between;
}

.rfi-card-desc {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #2F2F2F;
	margin: 16px 0 0;
}

/* ── Card 1: Stats ────────────────────────────────── */

.rfi-stats-wrap {
	background-color: #fff;
	border-radius: 12px;
	padding: 12px 16px 0;
	margin-top: auto;
}

.rfi-stat-row {
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid #E9EAEC;
}

.rfi-stat-row:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
}

.rfi-stat-label {
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: #2F2F2F;
	margin-bottom: 8px;
}

.rfi-stat-visual {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.rfi-bar-wrap {
	flex: 1 1 0;
	position: relative;
	height: 20px;
	border-radius: 4px;
	overflow: hidden;
}

.rfi-bar-track {
	position: absolute;
	inset: 0;
	background-color: #E9EAEC;
	background-image: repeating-linear-gradient(
		90deg,
		transparent,
		transparent 8px,
		rgba(255, 255, 255, 0.5) 8px,
		rgba(255, 255, 255, 0.5) 10px
	);
	border-radius: 4px;
}

.rfi-bar-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: #51BC51;
	border-radius: 4px;
	transition: width 0.6s ease;
}

.rfi-stat-value {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #000;
	white-space: nowrap;
}

.rfi-disclaimer {
	font-size: 12px;
	font-weight: 400;
	font-style: italic;
	line-height: 18px;
	color: #2F2F2F;
	margin: 4px 0 0;
}

/* ── Card 2: Features ─────────────────────────────── */

.rfi-checks {
	background-color: #fff;
	border-radius: 12px;
	padding: 16px 12px;
	margin-top: auto;
}

.rfi-check-row {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 16px;
	border-bottom: 1px solid #E9EAEC;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #2F2F2F;
}

.rfi-check-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.rfi-check-icon {
	flex-shrink: 0;
	color: #51BC51;
}

.rfi-counter {
	background-color: #fff;
	border-radius: 12px;
	padding: 12px;
}

.rfi-counter-bar {
	position: relative;
	height: 2px;
	border-radius: 128px;
	overflow: hidden;
	margin-bottom: 14px;
}

.rfi-counter-track {
	position: absolute;
	inset: 0;
	background-color: rgba(16, 112, 215, 0.1);
	border-radius: 128px;
}

.rfi-counter-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: #1070D7;
	border-radius: 128px;
}

.rfi-counter-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.rfi-counter-label {
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	color: #000;
}

.rfi-counter-value {
	font-size: 40px;
	font-weight: 400;
	line-height: 46px;
	letter-spacing: -0.8px;
	color: #1070D7;
}

/* ── Card 3: Metrics ──────────────────────────────── */

.rfi-metrics-wrap {
	margin-top: auto;
	padding: 12px 16px 30px;
	border-radius: 12px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.rfi-metrics-header {
	display: flex;
	justify-content: space-between;
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
	color: #121212;
	margin-bottom: 6px;
}

.rfi-metric-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #E9EAEC;
}

.rfi-metric-label {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #2F2F2F;
	flex: 1 1 0;
}

.rfi-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #FEC90D;
	color: #2F2F2F;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 16px;
	padding: 6px;
	border-radius: 8px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── CTA Cards ────────────────────────────────────── */

.rfi-root a.rfi-cta,
.rfi-root a.rfi-cta:visited {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	border-radius: 12px;
	text-decoration: none;
	margin-top: 0;
	transition: margin-top 0.25s ease, box-shadow 0.25s ease;
}

.rfi-root a.rfi-cta:hover,
.rfi-root a.rfi-cta:focus {
	margin-top: -5px;
	text-decoration: none;
}

.rfi-cta-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rfi-cta-title {
	font-size: 24px;
	font-weight: 400;
	line-height: 30px;
}

.rfi-arrow {
	flex-shrink: 0;
}

.rfi-cta-desc {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	margin: 0;
}

/* ── Mobile (accordion) ──────────────────────────── */

@media (max-width: 991px) {

	.rfi-heading {
		display: block;
	}

	.rfi-top {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.rfi-bottom {
		display: flex;
		flex-direction: column;
		gap: 16px;
		margin-top: 24px;
		margin-left: 0;
	}

	.rfi-root:not(.rfi-no-carousel) .rfi-bottom {
		margin-left: 0;
	}

	.rfi-hero {
		min-height: 400px;
		border-radius: 16px;
		grid-row: auto;
	}

	.rfi-card {
		border-radius: 16px;
		padding: 16px;
		flex: none;
		overflow: visible;
	}

	.rfi-root .rfi-card-header,
	.rfi-root .rfi-card-header:hover,
	.rfi-root .rfi-card-header:focus,
	.rfi-root .rfi-card-header:active {
		cursor: pointer;
	}

	.rfi-chevron {
		display: block;
	}

	.rfi-root .rfi-card-body {
		display: none !important;
	}

	.rfi-root .rfi-accordion-item.rfi-open > .rfi-card-body {
		display: flex !important;
		flex-direction: column;
	}

	.rfi-accordion-item.rfi-open .rfi-chevron {
		transform: rotate(180deg);
	}

	.rfi-card-title {
		font-size: 20px;
		line-height: 24px;
	}

	.rfi-root a.rfi-cta,
	.rfi-root a.rfi-cta:visited {
		border-radius: 16px;
		padding: 16px;
	}

	.rfi-cta-title {
		font-size: 26px;
		line-height: 40px;
	}
}
