/* ============================================================
   플럭스허브 마케팅 개편 공통 (2026-10-04) — fx- 접두사
   site.css 위에 얹는다. 색·간격은 site.css 의 --fs-* 를 그대로 쓴다.
   ① 섹션 머리말 ② 모션(리빌·카운트·마키·슬라이더) ③ 브라우저 프레임 ④ 칩·배지
   ============================================================ */

/* ── ① 섹션 머리말 ─────────────────────────────────────────── */
.fx-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.fx-head--left { margin-left: 0; text-align: left; }
.fx-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--fs-accent);
}
.fx-title {
	margin: 0;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.04em;
	word-break: keep-all;
	text-wrap: balance;
}
/* .fs-site p { margin: 0 }(site.css 기본 리셋)이 단일 클래스 margin 을 이겨 제목과 보조문이 붙던 문제 — 선택자 깊이를 맞춘다 */
.fs-site .fx-sub,
.fx-sub {
	margin: 16px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--fs-ink-2);
	word-break: keep-all;
}
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fx-head .fx-actions { justify-content: center; }
.fx-section { padding: 96px 0; }
.fx-section--soft { background: var(--fs-bg-soft); }
.fx-section--dark { background: #0b0f0d; color: #fff; }
.fx-section--dark .fx-sub { color: rgba(255, 255, 255, .72); }
.fx-section--dark .fx-eyebrow { color: #6ee7b7; }
@media (max-width: 767px) {
	.fx-section { padding: 64px 0; }
	.fx-head { margin-bottom: 32px; }
	.fx-sub { font-size: 16px; }
	.fx-actions { margin-top: 24px; }
}

/* ── ② 모션 ───────────────────────────────────────────────── */
/* 리빌: JS 가 .fx-js 를 html 에 붙인 뒤에만 숨긴다 — JS 가 꺼져도 내용은 보인다. */
.fx-js [data-fx] {
	/* D10(2026-10-12): 0 이 아니라 .6 에서 시작 — 스크립트가 늦어도 빈 화면이 되지 않는다. 길이는 300ms 이하. */
	opacity: .6;
	transform: translateY(12px);
	transition: opacity .3s cubic-bezier(.2, .7, .2, 1), transform .3s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--fx-d, 0ms);
}
.fx-js [data-fx].is-in { opacity: 1; transform: none; }
.fx-js [data-fx="fade"] { transform: none; }
.fx-js [data-fx="scale"] { transform: scale(.96); }
.fx-js [data-fx="scale"].is-in { transform: none; }

/* 마키(흐르는 띠) */
.fx-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fx-marquee__track { display: flex; gap: 12px; width: max-content; animation: fx-marquee 40s linear infinite; }
.fx-marquee:hover .fx-marquee__track { animation-play-state: paused; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }

/* 슬라이더(스크롤 스냅) */
.fx-slider { position: relative; }
.fx-slider__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 0 16px;
	scrollbar-width: none;
}
.fx-slider__track::-webkit-scrollbar { display: none; }
.fx-slider__track > * { flex: 0 0 min(360px, 86%); scroll-snap-align: start; }
.fx-slider__nav { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.fx-slider__btn {
	width: 44px;
	height: 44px;
	border: 1px solid var(--fs-line-strong);
	border-radius: 50%;
	background: #fff;
	color: var(--fs-ink);
	font-size: 18px;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.fx-slider__btn:hover { background: var(--fs-bg-soft); border-color: var(--fs-ink-4); }
.fx-slider__btn:focus-visible { outline: 2px solid var(--fs-accent); outline-offset: 2px; }

/* 탭 */
.fx-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.fx-tab {
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--fs-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--fs-ink-2);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.fx-tab:hover { border-color: var(--fs-ink-4); color: var(--fs-ink); }
.fx-tab[aria-selected="true"] { background: var(--fs-ink); border-color: var(--fs-ink); color: #fff; }
.fx-tab:focus-visible { outline: 2px solid var(--fs-accent); outline-offset: 2px; }
[data-fx-panel][hidden] { display: none; }

/* ── ③ 브라우저 프레임(완성된 사이트 화면을 담는 틀) ───────────── */
.fx-browser {
	overflow: hidden;
	border: 1px solid var(--fs-line-strong);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
}
.fx-browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f4f6; border-bottom: 1px solid var(--fs-line); }
.fx-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.fx-browser__url { flex: 1; margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--fs-ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-browser__img { display: block; width: 100%; height: auto; }
.fx-browser video { display: block; width: 100%; height: auto; }

/* ── ④ 칩·배지 ────────────────────────────────────────────── */
.fx-chip {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--fs-accent-soft);
	color: var(--fs-accent-ink);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.fx-chip--line { background: #fff; border: 1px solid var(--fs-line-strong); color: var(--fs-ink-2); }

/* 형광펜 긋기 (2026-10-07) — .fs-hl 에 .fs-hl--draw 를 더하면 칠이 왼쪽에서 오른쪽으로 그어진다.
   /templates·/feature/ 제목에만 쓴다. 두 줄로 꺾여도 줄마다 이어서 그어지도록 clone. */
body.fx-v2 .fs-hl.fs-hl--draw { /* v2.css 의 .fs-hl 배경(shorthand)보다 앞서도록 클래스 둘 */
	background-image: linear-gradient(transparent 58%, var(--v2-lime, #c8f05a) 58%, var(--v2-lime, #c8f05a) 92%, transparent 92%);
	background-repeat: no-repeat;
	background-position: 0 0;
	background-size: 0% 100%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	animation: fx-hl-draw .9s cubic-bezier(.3, .7, .2, 1) .35s both;
}
@keyframes fx-hl-draw { to { background-size: 100% 100%; } }

/* 모션 줄이기 */
@media (prefers-reduced-motion: reduce) {
	body.fx-v2 .fs-hl.fs-hl--draw { animation: none; background-size: 100% 100%; }
	.fx-js [data-fx] { opacity: 1; transform: none; transition: none; }
	.fx-marquee__track { animation: none; }
	.fx-slider__track { scroll-behavior: auto; }
}

/* 푸터 상호 옆 운영사 표기 */
.fs-ft__operator { display: block; margin-bottom: 4px; font-weight: 700; color: var(--fs-dark-ink, #fff); }
