/* ============================================================
   Features landing — modern catalogue layout (option C: all inline).
   All selectors prefixed `.fl` or `.fl-*` — zero global collision.
   Scoped via template_include to the features page (FR + Polylang
   translations). Mirrors the design system from home-landing.css.
   ============================================================ */

.fl {
	--fl-max: 1200px;
	--fl-narrow: 880px;
	--fl-text: #0d1321;
	--fl-text-muted: #5b6574;
	--fl-text-soft: #8a93a3;
	--fl-surface: #ffffff;
	--fl-bg-subtle: #f7f8fb;
	--fl-bg-tint: #eef3ff;
	--fl-border: #e6e8ed;
	--fl-border-strong: #d6dae3;
	--fl-brand: #1552e3;
	--fl-brand-hover: #0e3fb2;
	--fl-brand-soft: #eef3ff;
	--fl-dark: #0b1225;
	--fl-dark-2: #141c34;
	--fl-radius-sm: 10px;
	--fl-radius-md: 14px;
	--fl-radius-lg: 20px;
	--fl-radius-xl: 28px;
	--fl-shadow-1: 0 1px 2px rgba(13, 19, 33, 0.04);
	--fl-shadow-2: 0 1px 2px rgba(13, 19, 33, 0.04), 0 12px 32px rgba(13, 19, 33, 0.06);
	--fl-shadow-brand: 0 6px 20px rgba(21, 82, 227, 0.32);
	color: var(--fl-text);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
	scroll-padding-top: 100px; /* offsets sticky nav for #anchor jumps */
}

.fl * { box-sizing: border-box; }

/* ============================================================
   1. HERO
   ============================================================ */
.fl-hero {
	position: relative;
	padding: 96px 16px 48px;
	overflow: hidden;
	background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--fl-border);
}
.fl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 1px 1px, rgba(21, 82, 227, 0.16) 1px, transparent 0);
	background-size: 22px 22px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 70%);
	pointer-events: none;
}
.fl-hero__inner {
	position: relative;
	max-width: var(--fl-narrow);
	margin: 0 auto;
	text-align: center;
}
.fl-eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--fl-brand-soft);
	color: var(--fl-brand);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 24px;
}
.fl-hero__title {
	font-size: clamp(2rem, 4.4vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
	font-weight: 800;
	color: var(--fl-text);
	margin: 0 0 20px;
}
.fl-hero__subtitle {
	font-size: clamp(1rem, 1.4vw, 1.1875rem);
	line-height: 1.6;
	color: var(--fl-text-muted);
	max-width: 720px;
	margin: 0 auto;
}

/* ============================================================
   2. STICKY CATEGORY NAV
   ============================================================ */
.fl-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--fl-border);
}
.fl-nav__inner {
	max-width: var(--fl-max);
	margin: 0 auto;
	padding: 12px 16px;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}
.fl-nav__inner::-webkit-scrollbar { display: none; }
.fl-nav__tab {
	flex-shrink: 0;
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	color: var(--fl-text-muted);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.18s, color 0.18s;
	white-space: nowrap;
}
.fl-nav__tab:hover {
	background: var(--fl-bg-subtle);
	color: var(--fl-text);
}
.fl-nav__tab.is-active {
	background: var(--fl-brand);
	color: #fff;
	box-shadow: var(--fl-shadow-brand);
}

/* ============================================================
   3. CATEGORY SECTION
   ============================================================ */
.fl-cat {
	padding: 80px 16px 24px;
	scroll-margin-top: 96px;
}
.fl-cat__header {
	max-width: var(--fl-max);
	margin: 0 auto 40px;
	text-align: center;
}
.fl-cat__count {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fl-brand);
	margin: 0 0 8px;
}
.fl-cat__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: var(--fl-text);
	margin: 0;
}

/* ============================================================
   4. FEATURE GRID
   ============================================================ */
.fl-grid {
	max-width: var(--fl-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
@media (min-width: 800px) {
	.fl-grid { grid-template-columns: repeat(2, 1fr); }
}

.fl-feature {
	display: flex;
	flex-direction: column;
	background: var(--fl-surface);
	border: 1px solid var(--fl-border);
	border-radius: var(--fl-radius-lg);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
	box-shadow: var(--fl-shadow-1);
}
.fl-feature:hover {
	transform: translateY(-3px);
	box-shadow: var(--fl-shadow-2);
	border-color: var(--fl-border-strong);
}

.fl-feature__media {
	aspect-ratio: 16 / 10;
	background: var(--fl-bg-subtle);
	border-bottom: 1px solid var(--fl-border);
	overflow: hidden;
}
.fl-feature__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.fl-feature__body {
	padding: 28px 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.fl-feature__title {
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: -0.015em;
	font-weight: 700;
	color: var(--fl-text);
	margin: 0;
}
.fl-feature__desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--fl-text-muted);
	margin: 0;
}
.fl-feature__points {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.fl-feature__points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--fl-text);
}
.fl-feature__check {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--fl-brand-soft);
	color: var(--fl-brand);
	margin-top: 1px;
}
.fl-feature__check svg { width: 12px; height: 12px; }

/* ============================================================
   5. FINAL CTA
   ============================================================ */
.fl-final {
	margin: 96px auto 64px;
	padding: 0 16px;
	max-width: var(--fl-max);
}
.fl-final__inner {
	background: radial-gradient(120% 200% at 0% 0%, rgba(21, 82, 227, 0.32) 0%, transparent 60%),
	            radial-gradient(120% 200% at 100% 100%, rgba(21, 82, 227, 0.22) 0%, transparent 55%),
	            var(--fl-dark);
	color: #fff;
	border-radius: var(--fl-radius-xl);
	padding: 64px 48px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(13, 19, 33, 0.18);
}
.fl-final__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 800;
	margin: 0 0 16px;
}
.fl-final__desc {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 auto 32px;
	max-width: 620px;
}
.fl-final__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.fl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: var(--fl-radius-sm);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
	border: 1px solid transparent;
	cursor: pointer;
}
.fl-btn--primary {
	background: var(--fl-brand);
	color: #fff;
	box-shadow: var(--fl-shadow-brand);
}
.fl-btn--primary:hover {
	background: var(--fl-brand-hover);
	transform: translateY(-1px);
}
.fl-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.18);
}
.fl-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.32);
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
	.fl-hero { padding: 72px 16px 40px; }
	.fl-cat { padding: 56px 16px 16px; }
	.fl-feature__body { padding: 24px 22px 28px; }
	.fl-final { margin: 64px auto 48px; }
	.fl-final__inner { padding: 48px 28px; }
}
