/**
 * FM Feature Tabs — SaaS Showcase, Process Stack, Product Theater, Luxury Bento & Icon Rail presets
 */

.fm-ft,
.fm-ft *,
.fm-ft *::before,
.fm-ft *::after {
	box-sizing: border-box;
}

.elementor-widget-flowmax-feature-tabs {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.elementor-widget-flowmax-feature-tabs>.elementor-widget-empty-icon {
	display: none !important;
}

.fm-ft {
	--fm-ft-accent: #1d4ed8;
	--fm-ft-surface: #ffffff;
	--fm-ft-border: rgba(15, 23, 42, 0.08);
	--fm-ft-muted: #64748b;
	--fm-ft-text: #0f172a;
	display: block;
	width: 100%;
	min-width: 0;
}

.fm-ft [hidden] {
	display: none !important;
}

.fm-ft__header {
	width: 100%;
	max-width: 720px;
	margin: 0 0 40px;
}

.fm-ft__heading {
	margin: 0 0 12px;
	color: var(--fm-ft-text);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.fm-ft__lead {
	margin: 0;
	color: var(--fm-ft-muted);
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	line-height: 1.6;
}

.fm-ft__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
}

.fm-ft__nav-wrap {
	position: relative;
	min-width: 0;
}

.fm-ft__indicator {
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 72px;
	border-radius: 999px;
	background: var(--fm-ft-accent);
	transform: translateY(0);
	opacity: 0;
	pointer-events: none;
}

.fm-ft--is-ready .fm-ft__indicator {
	opacity: 1;
}

.fm-ft__nav {
	display: grid;
	gap: 12px;
	padding-left: 14px;
}

.fm-ft__tab {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: start;
	width: 100%;
	padding: 18px 20px;
	border: 1px solid var(--fm-ft-border);
	border-radius: 16px;
	background: var(--fm-ft-surface);
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease;
}

.fm-ft__tab:hover,
.fm-ft__tab:focus-visible {
	border-color: rgba(29, 78, 216, 0.18);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.fm-ft__tab:focus {
	outline: none;
}

.fm-ft__tab:focus-visible {
	outline: 2px solid var(--fm-ft-accent);
	outline-offset: 3px;
}

.fm-ft__tab.is-active {
	border-color: rgba(29, 78, 216, 0.22);
	background: linear-gradient(180deg, rgba(29, 78, 216, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
	box-shadow:
		0 18px 40px rgba(15, 23, 42, 0.1),
		0 0 0 1px rgba(29, 78, 216, 0.08) inset;
	transform: none;
}

.fm-ft__tab-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(29, 78, 216, 0.08);
	color: var(--fm-ft-accent);
	font-size: 1.125rem;
}

.fm-ft__tab.is-active .fm-ft__tab-icon {
	background: rgba(29, 78, 216, 0.14);
}

.fm-ft__tab-icon svg {
	width: 1.125rem;
	height: 1.125rem;
}

.fm-ft__tab-copy {
	display: grid;
	gap: 6px;
	min-width: 0;
	transform: translateZ(0);
}

.fm-ft__tab-title {
	color: var(--fm-ft-text);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.fm-ft__tab-desc {
	color: var(--fm-ft-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.fm-ft__preview {
	position: relative;
	min-width: 0;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	border-radius: 24px;
	background: #e2e8f0;
	box-shadow:
		0 28px 70px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(15, 23, 42, 0.06);
}

.fm-ft__preview-inner {
	position: absolute;
	inset: 0;
}

.fm-ft__panel {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #e2e8f0;
}

.fm-ft__panel-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.04);
	transform-origin: center center;
	will-change: transform, opacity, clip-path;
}

@media (max-width: 1024px) {
	.fm-ft__layout {
		grid-template-columns: 1fr;
	}

	.fm-ft__preview {
		order: -1;
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 767px) {
	.fm-ft__header {
		margin-bottom: 28px;
	}

	.fm-ft__nav {
		gap: 10px;
		padding-left: 10px;
	}

	.fm-ft__tab {
		padding: 14px 16px;
		border-radius: 14px;
	}

	.fm-ft__tab-icon {
		width: 40px;
		height: 40px;
	}

	.fm-ft__preview {
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fm-ft__tab {
		transition: none;
	}
}

/* Preset: Process Stack */
.fm-ft--process-stack {
	--fm-ft-accent: #0f766e;
	--fm-ft-surface: #ffffff;
	--fm-ft-border: rgba(15, 23, 42, 0.1);
}

.fm-ft--process-stack .fm-ft__indicator {
	display: none;
}

.fm-ft--process-stack .fm-ft__layout {
	grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(24px, 3.4vw, 40px);
	align-items: start;
}

.fm-ft--process-stack .fm-ft__nav-wrap {
	position: relative;
	padding: 0;
}

.fm-ft--process-stack .fm-ft__nav-wrap::before {
	content: '';
	position: absolute;
	left: 40px;
	top: 22px;
	bottom: 22px;
	width: 2px;
	border-radius: 999px;
	background: linear-gradient(180deg,
			rgba(15, 118, 110, 0.08) 0%,
			rgba(15, 118, 110, 0.22) 50%,
			rgba(15, 118, 110, 0.08) 100%);
}

.fm-ft--process-stack .fm-ft__nav {
	position: relative;
	z-index: 1;
	gap: 6px;
	padding-left: 0;
}

.fm-ft--process-stack .fm-ft__tab {
	grid-template-columns: 44px 1fr;
	gap: 14px;
	align-items: center;
	min-height: 76px;
	padding: 18px;
	border: 1px solid transparent;
	border-radius: 18px;
	background: transparent;
	box-shadow: none;
	transition:
		background 0.32s ease,
		border-color 0.32s ease,
		box-shadow 0.32s ease;
}

.fm-ft--process-stack .fm-ft__tab:hover,
.fm-ft--process-stack .fm-ft__tab:focus-visible {
	border-color: rgba(15, 118, 110, 0.1);
	background: rgba(255, 255, 255, 0.76);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.fm-ft--process-stack .fm-ft__tab.is-active {
	border-color: rgba(15, 118, 110, 0.14);
	background: var(--fm-ft-surface);
	box-shadow:
		0 18px 44px rgba(15, 23, 42, 0.09),
		0 0 0 1px rgba(15, 118, 110, 0.06) inset;
}

.fm-ft--process-stack .fm-ft__step-num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--fm-ft-border);
	border-radius: 14px;
	background: #ffffff;
	color: rgba(15, 23, 42, 0.34);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
	transition:
		background 0.28s ease,
		border-color 0.28s ease,
		color 0.28s ease,
		box-shadow 0.28s ease;
}

.fm-ft--process-stack .fm-ft__tab.is-active .fm-ft__step-num {
	border-color: transparent;
	background: var(--fm-ft-accent);
	color: #ffffff;
	box-shadow: 0 12px 26px rgba(15, 118, 110, 0.24);
}

.fm-ft--process-stack .fm-ft__tab-copy {
	gap: 0;
}

.fm-ft--process-stack .fm-ft__tab-title {
	font-size: 1.05rem;
	line-height: 1.25;
	transition: color 0.28s ease;
}

.fm-ft--process-stack .fm-ft__tab.is-active .fm-ft__tab-title {
	color: var(--fm-ft-text);
	font-weight: 600;
}

.fm-ft--process-stack .fm-ft__tab-desc {
	display: grid;
	grid-template-rows: 0fr;
	margin: 0;
	overflow: hidden;
	transition:
		grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		margin 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.fm-ft--process-stack .fm-ft__tab-desc-inner {
	display: block;
	min-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(0);
	transition:
		opacity 0.32s ease,
		transform 0.32s ease;
}

.fm-ft--process-stack .fm-ft__tab.is-active .fm-ft__tab-desc {
	grid-template-rows: 1fr;
	margin-top: 10px;
}

.fm-ft--process-stack .fm-ft__tab.is-active .fm-ft__tab-desc-inner {
	opacity: 1;
}

.fm-ft--process-stack .fm-ft__tab-desc-inner {
	color: var(--fm-ft-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.fm-ft--process-stack .fm-ft__preview {
	aspect-ratio: 16 / 10;
	max-height: 460px;
	border-radius: 28px;
	background:
		linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 38%),
		#e2e8f0;
}

@media (max-width: 1024px) {
	.fm-ft--process-stack .fm-ft__layout {
		grid-template-columns: 1fr;
	}

	.fm-ft--process-stack .fm-ft__preview {
		aspect-ratio: 16 / 11;
		max-height: none;
	}
}

@media (max-width: 767px) {
	.fm-ft--process-stack .fm-ft__nav-wrap::before {
		left: 34px;
		top: 20px;
		bottom: 20px;
	}

	.fm-ft--process-stack .fm-ft__tab {
		grid-template-columns: 40px 1fr;
		min-height: 68px;
		padding: 14px;
		border-radius: 16px;
	}

	.fm-ft--process-stack .fm-ft__step-num {
		width: 40px;
		height: 40px;
		border-radius: 12px;
		font-size: 0.875rem;
	}

	.fm-ft--process-stack .fm-ft__preview {
		border-radius: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.fm-ft--process-stack .fm-ft__tab,
	.fm-ft--process-stack .fm-ft__tab-desc,
	.fm-ft--process-stack .fm-ft__tab-desc-inner,
	.fm-ft--process-stack .fm-ft__step-num,
	.fm-ft--process-stack .fm-ft__tab-title {
		transition: none;
	}
}

/* Preset: Product Theater */
.fm-ft--product-theater {
	--fm-ft-accent: #4f46e5;
	--fm-ft-surface: #ffffff;
	--fm-ft-border: rgba(15, 23, 42, 0.1);
	--fm-ft-muted: #64748b;
	--fm-ft-text: #0f172a;
}

.fm-ft--product-theater .fm-ft__header--center {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.fm-ft__theater {
	display: grid;
	gap: clamp(20px, 3vw, 32px);
	min-width: 0;
}

.fm-ft__theater-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 100%;
	padding: 10px 8px 14px;
	overflow: visible;
	scrollbar-width: none;
}

.fm-ft__theater-tabs::-webkit-scrollbar {
	display: none;
}

.fm-ft__theater-tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 9px 18px 9px 10px;
	border: 1px solid var(--fm-ft-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--fm-ft-text);
	font: inherit;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	transition:
		background 0.28s ease,
		border-color 0.28s ease,
		box-shadow 0.28s ease,
		color 0.28s ease,
		transform 0.28s ease;
}

.fm-ft__theater-tab:hover,
.fm-ft__theater-tab:focus-visible {
	border-color: rgba(79, 70, 229, 0.2);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.fm-ft__theater-tab:focus {
	outline: none;
}

.fm-ft__theater-tab:focus-visible {
	outline: 2px solid var(--fm-ft-accent);
	outline-offset: 3px;
}

.fm-ft__theater-tab.is-active {
	border-color: transparent;
	background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
	color: #ffffff;
	box-shadow:
		0 16px 36px rgba(79, 70, 229, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	transform: none;
}

.fm-ft__theater-tab-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: rgba(79, 70, 229, 0.08);
	color: var(--fm-ft-accent);
	font-size: 0.875rem;
	transition: background 0.28s ease, color 0.28s ease;
}

.fm-ft__theater-tab.is-active .fm-ft__theater-tab-icon {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.fm-ft__theater-tab-icon svg {
	width: 0.875rem;
	height: 0.875rem;
}

.fm-ft__theater-tab.is-active .fm-ft__theater-tab-icon svg,
.fm-ft__theater-tab.is-active .fm-ft__theater-tab-icon svg * {
	color: #ffffff;
	fill: currentColor;
	stroke: currentColor;
}

.fm-ft__theater-tab-label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.fm-ft__theater-stage {
	max-width: 920px;
	margin: 0 auto;
	width: 100%;
	min-width: 0;
}

.fm-ft__theater-frame {
	overflow: hidden;
	border: 1px solid var(--fm-ft-border);
	border-radius: 26px;
	background:
		radial-gradient(circle at 16% 0, rgba(79, 70, 229, 0.08), transparent 34%),
		#f8fafc;
	box-shadow:
		0 34px 80px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.fm-ft__theater-chrome {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 16px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.fm-ft__theater-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.fm-ft__theater-dot--close {
	background: #ff5f57;
}

.fm-ft__theater-dot--min {
	background: #febc2e;
}

.fm-ft__theater-dot--max {
	background: #28c840;
}

.fm-ft__theater-url {
	flex: 1;
	height: 28px;
	margin-left: 10px;
	border: 1px solid var(--fm-ft-border);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
}

.fm-ft--product-theater .fm-ft__preview--theater {
	width: calc(100% - 32px);
	margin: 16px;
	aspect-ratio: 16 / 9;
	max-height: 470px;
	border-radius: 20px;
	box-shadow: none;
	background:
		linear-gradient(135deg, rgba(79, 70, 229, 0.08), transparent 42%),
		#e2e8f0;
}

.fm-ft--product-theater .fm-ft__preview--theater::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg,
			rgba(15, 23, 42, 0) 42%,
			rgba(15, 23, 42, 0.18) 72%,
			rgba(15, 23, 42, 0.52) 100%);
	pointer-events: none;
	z-index: 1;
}

.fm-ft--product-theater .fm-ft__panel-image {
	transform: scale(1.02);
}

.fm-ft__theater-caption--overlay {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 2;
	max-width: 420px;
	pointer-events: none;
}

.fm-ft__caption-item {
	display: grid;
	gap: 5px;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.42);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
	text-align: left;
	transition: opacity 0.32s ease;
}

.fm-ft__caption-title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.fm-ft__caption-desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9375rem;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.fm-ft__theater-tabs {
		justify-content: flex-start;
		flex-wrap: nowrap;
		padding: 8px 4px 12px;
		overflow-x: auto;
		overflow-y: visible;
	}

	.fm-ft__theater-tab {
		min-height: 42px;
		padding: 8px 14px 8px 8px;
	}

	.fm-ft__theater-frame {
		border-radius: 18px;
	}

	.fm-ft--product-theater .fm-ft__preview--theater {
		width: calc(100% - 20px);
		margin: 10px;
		aspect-ratio: 16 / 10;
		max-height: none;
		border-radius: 14px;
	}

	.fm-ft__theater-chrome {
		height: 40px;
		padding: 0 12px;
	}

	.fm-ft__theater-url {
		height: 24px;
	}

	.fm-ft__theater-caption--overlay {
		left: 14px;
		right: 14px;
		bottom: 14px;
		max-width: none;
	}

	.fm-ft__caption-item {
		padding: 14px 16px;
		border-radius: 14px;
	}

	.fm-ft__caption-desc {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {

	.fm-ft__theater-tab,
	.fm-ft__caption-item {
		transition: none;
	}

	.fm-ft__theater-tab.is-active {
		transform: none;
	}
}

/* Preset: Luxury Bento Tabs */
.fm-ft--luxury-bento {
	--fm-ft-accent: #7c3aed;
	--fm-ft-surface: rgba(255, 255, 255, 0.82);
	--fm-ft-border: rgba(15, 23, 42, 0.1);
	--fm-ft-muted: #64748b;
	--fm-ft-text: #0f172a;
}

.fm-ft--luxury-bento .fm-ft__header--center {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.fm-ft__bento {
	display: grid;
	gap: clamp(22px, 3vw, 34px);
	min-width: 0;
}

.fm-ft__bento-tabs-wrap {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.fm-ft__bento-tabs {
	position: relative;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	padding: 8px;
	border: 1px solid var(--fm-ft-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow:
		0 16px 40px rgba(15, 23, 42, 0.06),
		0 0 0 1px rgba(255, 255, 255, 0.7) inset;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.fm-ft__bento-tab-glow {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 52%, #a78bfa 100%);
	box-shadow:
		0 14px 34px rgba(124, 58, 237, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	opacity: 0;
	pointer-events: none;
	z-index: 0;
	transition: opacity 0.3s ease;
}

.fm-ft--is-ready .fm-ft__bento-tab-glow {
	opacity: 1;
}

.fm-ft__bento-tab {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 18px 8px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fm-ft-text);
	font: inherit;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.28s ease;
}

.fm-ft__bento-tab:hover,
.fm-ft__bento-tab:focus-visible {
	color: #4c1d95;
}

.fm-ft__bento-tab:focus {
	outline: none;
}

.fm-ft__bento-tab:focus-visible {
	outline: 2px solid var(--fm-ft-accent);
	outline-offset: 3px;
}

.fm-ft__bento-tab.is-active {
	color: #ffffff;
}

.fm-ft__bento-tab-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: rgba(124, 58, 237, 0.1);
	color: var(--fm-ft-accent);
	font-size: 0.875rem;
	transition: background 0.28s ease, color 0.28s ease;
}

.fm-ft__bento-tab.is-active .fm-ft__bento-tab-icon {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.fm-ft__bento-tab-icon svg {
	width: 0.875rem;
	height: 0.875rem;
}

.fm-ft__bento-tab.is-active .fm-ft__bento-tab-icon svg,
.fm-ft__bento-tab.is-active .fm-ft__bento-tab-icon svg * {
	color: #ffffff;
	fill: currentColor;
	stroke: currentColor;
}

.fm-ft__bento-tab-label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.fm-ft__bento-stage {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	width: 100%;
	isolation: isolate;
}

.fm-ft__bento-ambient {
	position: absolute;
	inset: 8% 10% auto;
	height: 52%;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0) 72%);
	filter: blur(40px);
	pointer-events: none;
	z-index: 0;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fm-ft__bento-panels {
	position: relative;
	display: grid;
	z-index: 1;
}

.fm-ft__bento-panel {
	grid-area: 1 / 1;
	width: 100%;
	min-width: 0;
}

.fm-ft__bento-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
	grid-template-rows: minmax(128px, auto) 1fr minmax(92px, auto);
	gap: 16px;
}

.fm-ft__bento-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--fm-ft-border);
	border-radius: 24px;
	background: var(--fm-ft-surface);
	box-shadow:
		0 20px 50px rgba(15, 23, 42, 0.08),
		0 0 0 1px rgba(255, 255, 255, 0.65) inset;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.fm-ft__bento-card--hero {
	grid-row: 1 / span 3;
	min-height: clamp(340px, 42vw, 470px);
	padding: 0;
	background:
		linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(15, 23, 42, 0.04)),
		#e2e8f0;
}

.fm-ft__bento-card--hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
			rgba(15, 23, 42, 0) 45%,
			rgba(15, 23, 42, 0.22) 78%,
			rgba(15, 23, 42, 0.48) 100%);
	pointer-events: none;
	z-index: 1;
}

.fm-ft__bento-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.03);
	transform-origin: center center;
}

.fm-ft__bento-hero-overlay {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.38);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.fm-ft__bento-index {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.fm-ft__bento-hero-tag {
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	min-width: 0;
}

.fm-ft__bento-card--feature {
	display: grid;
	gap: 16px;
	align-content: end;
	min-height: 150px;
	padding: 24px;
	background:
		radial-gradient(circle at 85% 12%, rgba(124, 58, 237, 0.16), transparent 34%),
		var(--fm-ft-surface);
}

.fm-ft__bento-card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(167, 139, 250, 0.08));
	color: var(--fm-ft-accent);
	font-size: 1.125rem;
}

.fm-ft__bento-card-icon svg {
	width: 1.125rem;
	height: 1.125rem;
}

.fm-ft__bento-card-title {
	margin: 0;
	color: var(--fm-ft-text);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.03em;
}

.fm-ft__bento-card--copy {
	display: grid;
	align-content: center;
	min-height: 170px;
	padding: 24px;
}

.fm-ft__bento-card-desc {
	margin: 0;
	color: var(--fm-ft-muted);
	font-size: 0.96875rem;
	line-height: 1.6;
}

.fm-ft__bento-card--accent {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	min-height: 112px;
	padding: 20px 24px;
	background:
		linear-gradient(135deg, rgba(76, 29, 149, 0.95), rgba(124, 58, 237, 0.88) 58%, rgba(167, 139, 250, 0.82)),
		var(--fm-ft-surface);
}

.fm-ft__bento-accent-label {
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fm-ft__bento-accent-value {
	color: #ffffff;
	font-size: clamp(1rem, 1.8vw, 1.25rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
	.fm-ft__bento-grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.fm-ft__bento-card--hero {
		grid-row: auto;
		min-height: 300px;
	}

	.fm-ft__bento-card--accent {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.fm-ft__bento-tabs-wrap {
		justify-content: flex-start;
		overflow: hidden;
	}

	.fm-ft__bento-tabs {
		justify-content: flex-start;
		flex-wrap: nowrap;
		width: 100%;
		overflow-x: auto;
		border-radius: 18px;
		scrollbar-width: none;
	}

	.fm-ft__bento-tabs::-webkit-scrollbar {
		display: none;
	}

	.fm-ft__bento-tab {
		flex: 0 0 auto;
		min-height: 40px;
		padding: 7px 14px 7px 8px;
	}

	.fm-ft__bento-card {
		border-radius: 18px;
	}

	.fm-ft__bento-card--hero {
		min-height: 250px;
	}

	.fm-ft__bento-hero-overlay {
		left: 14px;
		right: 14px;
		bottom: 14px;
		flex-wrap: wrap;
		padding: 10px 12px;
	}

	.fm-ft__bento-card--feature,
	.fm-ft__bento-card--copy {
		padding: 18px;
		min-height: auto;
	}

	.fm-ft__bento-card--accent {
		padding: 16px 18px;
		min-height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {

	.fm-ft__bento-tab,
	.fm-ft__bento-tab-glow,
	.fm-ft__bento-ambient {
		transition: none;
	}
}

/* Preset: Icon Rail Showcase */
.fm-ft--icon-rail-showcase {
	--fm-ft-accent: #b8860b;
	--fm-ft-surface: #ffffff;
	--fm-ft-border: rgba(15, 23, 42, 0.1);
	--fm-ft-muted: #64748b;
	--fm-ft-text: #0f172a;
}

.fm-ft__rail {
	max-width: 980px;
	margin: 0 auto;
	min-width: 0;
}

.fm-ft__rail-layout {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: clamp(18px, 2.8vw, 28px);
	align-items: stretch;
}

.fm-ft__rail-nav-wrap {
	position: relative;
	align-self: center;
}

.fm-ft__rail-marker {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--fm-ft-accent) 0%, color-mix(in srgb, var(--fm-ft-accent) 78%, #ffffff) 100%);
	box-shadow:
		0 16px 36px color-mix(in srgb, var(--fm-ft-accent) 34%, transparent),
		0 0 0 1px rgba(255, 255, 255, 0.24) inset;
	opacity: 0;
	pointer-events: none;
	z-index: 0;
	transition: opacity 0.3s ease;
}

.fm-ft--is-ready .fm-ft__rail-marker {
	opacity: 1;
}

.fm-ft__rail-nav {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--fm-ft-border);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow:
		0 18px 44px rgba(15, 23, 42, 0.07),
		0 0 0 1px rgba(255, 255, 255, 0.72) inset;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	min-width: 0;
}

.fm-ft__rail-tab {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 48px;
	padding: 8px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--fm-ft-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: color 0.28s ease;
}

.fm-ft__rail-tab:hover,
.fm-ft__rail-tab:focus-visible {
	color: #0f172a;
}

.fm-ft__rail-tab:focus {
	outline: none;
}

.fm-ft__rail-tab:focus-visible {
	outline: 2px solid var(--fm-ft-accent);
	outline-offset: 3px;
}

.fm-ft__rail-tab.is-active {
	color: #ffffff;
}

.fm-ft__rail-tab-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: rgba(184, 134, 11, 0.1);
	color: var(--fm-ft-accent);
	font-size: 0.9375rem;
	transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.fm-ft__rail-tab.is-active .fm-ft__rail-tab-icon {
	background: var(--fm-ft-accent);
	color: #ffffff;
	box-shadow:
		0 10px 24px color-mix(in srgb, var(--fm-ft-accent) 34%, transparent),
		0 0 0 1px rgba(255, 255, 255, 0.26) inset;
}

.fm-ft__rail-tab-icon svg {
	width: 0.9375rem;
	height: 0.9375rem;
}

.fm-ft__rail-tab.is-active .fm-ft__rail-tab-icon svg,
.fm-ft__rail-tab.is-active .fm-ft__rail-tab-icon svg * {
	color: #ffffff;
	fill: currentColor;
	stroke: currentColor;
}

.fm-ft__rail-tab-label {
	display: none;
	max-width: none;
	opacity: 1;
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.fm-ft__rail-stage {
	position: relative;
	min-width: 0;
	isolation: isolate;
}

.fm-ft__rail-ambient {
	position: absolute;
	inset: 10% 8% auto;
	height: 48%;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(184, 134, 11, 0.16) 0%, rgba(184, 134, 11, 0) 72%);
	filter: blur(42px);
	pointer-events: none;
	z-index: 0;
}

.fm-ft__rail-panels {
	position: relative;
	display: grid;
	overflow: visible;
	z-index: 1;
}

.fm-ft__rail-panel {
	grid-area: 1 / 1;
	width: 100%;
	min-width: 0;
	border-radius: 28px;
}

.fm-ft__rail-panel-inner {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(18px, 3vw, 28px);
	align-items: center;
	min-height: clamp(300px, 34vw, 390px);
	padding: clamp(22px, 2.8vw, 30px);
	border: 1px solid var(--fm-ft-border);
	border-radius: 28px;
	background:
		radial-gradient(circle at 12% 0, rgba(184, 134, 11, 0.08), transparent 34%),
		rgba(255, 255, 255, 0.9);
	box-shadow:
		0 28px 70px rgba(15, 23, 42, 0.1),
		0 0 0 1px rgba(255, 255, 255, 0.72) inset;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.fm-ft__rail-copy {
	display: grid;
	gap: 0;
	align-content: center;
	min-width: 0;
}

.fm-ft__rail-title,
.fm-ft__rail-desc,
.fm-ft__rail-media {
	will-change: opacity, clip-path;
}

.fm-ft__rail-index {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.05);
	color: var(--fm-ft-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

.fm-ft__rail-index-sep {
	color: rgba(15, 23, 42, 0.28);
}

.fm-ft__rail-title {
	margin: 35px 0 0;
	color: var(--fm-ft-text);
	font-size: clamp(1.5rem, 2.8vw, 2.125rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.fm-ft__rail-desc {
	margin: 0;
	max-width: 38ch;
	color: var(--fm-ft-muted);
	font-size: clamp(0.96875rem, 1.5vw, 1.0625rem);
	line-height: 1.65;
}

.fm-ft__rail-media {
	position: relative;
	min-width: 0;
	min-height: clamp(210px, 24vw, 260px);
	overflow: hidden;
	border-radius: 22px;
	background:
		linear-gradient(135deg, rgba(184, 134, 11, 0.12), transparent 42%),
		#e2e8f0;
	box-shadow:
		0 22px 50px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(15, 23, 42, 0.06);
}

.fm-ft__rail-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.03);
	transform-origin: center center;
	will-change: transform;
}

@media (max-width: 1024px) {
	.fm-ft__rail-layout {
		grid-template-columns: 1fr;
	}

	.fm-ft__rail-nav-wrap {
		align-self: auto;
	}

	.fm-ft__rail-nav {
		grid-auto-flow: column;
		grid-auto-columns: max-content;
		overflow-x: auto;
		overflow-y: visible;
		scrollbar-width: none;
	}

	.fm-ft__rail-nav::-webkit-scrollbar {
		display: none;
	}

	.fm-ft__rail-tab {
		display: inline-flex;
		gap: 10px;
		width: auto;
		padding: 8px 12px;
	}

	.fm-ft__rail-tab-label {
		display: block;
	}

	.fm-ft__rail-tab:not(.is-active) .fm-ft__rail-tab-label {
		display: none;
	}

	.fm-ft__rail-panel-inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}
}

@media (max-width: 767px) {
	.fm-ft__rail-layout {
		gap: 16px;
	}

	.fm-ft__rail-nav {
		padding: 6px;
		border-radius: 18px;
	}

	.fm-ft__rail-panel-inner {
		padding: 18px;
		border-radius: 20px;
	}

	.fm-ft__rail-media {
		min-height: 220px;
		border-radius: 16px;
	}

	.fm-ft__rail-title {
		margin-top: 24px;
		font-size: 1.375rem;
	}

	.fm-ft__rail-desc {
		line-height: 1.55;
	}
}

@media (prefers-reduced-motion: reduce) {

	.fm-ft__rail-tab,
	.fm-ft__rail-tab-label,
	.fm-ft__rail-marker {
		transition: none;
	}
}