/* ==========================================================================
   파일인덱스 랜딩 — index.php 전용. 모든 클래스는 fi- 접두어 (밝은 바탕, 앱 강조색 파랑 #3b82f6)
   ========================================================================== */

:root {
	--bg: #f5f8fd;
	--bg-2: #e9f0fb;
	--surface: #fff;
	--line: rgba(15, 23, 42, .08);
	--line-2: rgba(15, 23, 42, .15);
	--text: #0f172a;
	--muted: #475569;
	--faint: #8a96a8;
	--acc: #3b82f6;
	--acc-2: #60a5fa;
	--acc-deep: #1d4ed8;
	--acc-dim: rgba(59, 130, 246, .1);
	--blue: #3d84dd;
	--pin: #f59e0b;
	--wrap: 1160px;
	--top: 64px;
	--font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", "Pretendard Variable", monospace;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body.fi {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.7 var(--font); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acc-deep); text-underline-offset: 3px; }
b, strong { font-weight: 700; color: var(--text); }
code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); padding: .1em .4em; border-radius: 6px; color: #1e3a8a; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.fi-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.fi-narrow { max-width: 820px; }
.fi-small { font-size: 14px; color: var(--muted); }
.fi-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--acc); color: #fff; padding: 8px 14px; border-radius: 8px; }
.fi-skip:focus { top: 8px; }

/* ---------- 버튼 · 배지 ---------- */
.fi-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
	background: linear-gradient(180deg, #4f8ff7, #2563eb); color: #fff;
	font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
	box-shadow: 0 10px 26px -12px rgba(59, 130, 246, .8), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .2s, box-shadow .2s;
}
.fi-btn svg { width: 20px; height: 20px; }
.fi-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(59, 130, 246, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.fi-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.fi-btn--ghost:hover { background: var(--bg-2); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.fi-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.fi-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--acc-dim); color: var(--acc-deep); white-space: nowrap; }
.fi-badge--off { background: var(--bg-2); color: var(--muted); }

/* ---------- 상단 ---------- */
.fi-top {
	position: sticky; top: 0; z-index: 50; height: var(--top);
	background: rgba(245, 248, 253, .8); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid transparent; transition: border-color .3s;
}
.fi-top.is-stuck { border-bottom-color: var(--line); }
.fi-top__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.fi-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; text-decoration: none; margin: 0; }
.fi-brand__icon { width: 20px; height: 20px; }
.fi-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.fi-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.fi-nav a:hover { color: var(--text); background: var(--bg-2); }

/* ---------- HERO ---------- */
.fi-hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; }
.fi-hero::before {
	content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
	background:
		radial-gradient(44% 46% at 74% 42%, rgba(96, 165, 250, .16), transparent 70%),
		radial-gradient(30% 30% at 12% 80%, rgba(245, 158, 11, .07), transparent 70%);
}
.fi-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.fi-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fi-tags li { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.7); }
.fi-hero__title { font-size: clamp(34px, 4.3vw, 52px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 24px; }
.fi-hero__title--long { font-size: clamp(30px, 3.8vw, 46px); }
.fi-hero__title em { font-style: normal; color: var(--acc); }
.fi-line { display: block; }
.fi-hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.fi-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.fi-hero__meta { font-size: 14px; color: var(--faint); margin: 0; }

.fi-hero__visual { position: relative; padding: 24px 0 40px; }
.fi-shot {
	width: 100%; max-width: 533px; height: auto; margin-inline: auto; border-radius: 8px;
	box-shadow: 0 0 0 1px var(--line-2), 0 40px 70px -36px rgba(30, 58, 138, .45);
}
.fi-chip {
	position: absolute; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
	background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(15,23,42,.35); font-size: 14px; color: var(--muted); white-space: nowrap;
}
.fi-chip img { width: 20px; height: 20px; flex: none; }

/* 첫 화면 등장 (JS 가 있을 때만) */
.fi-js .fi-line, .fi-js .fi-tags, .fi-js .fi-hero__lead, .fi-js .fi-cta, .fi-js .fi-hero__meta, .fi-js .fi-hero__visual {
	animation: fi-rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.fi-js .fi-tags { animation-delay: .05s; }
.fi-js .fi-line:nth-child(1) { animation-delay: .12s; }
.fi-js .fi-line:nth-child(2) { animation-delay: .22s; }
.fi-js .fi-hero__lead { animation-delay: .34s; }
.fi-js .fi-cta { animation-delay: .44s; }
.fi-js .fi-hero__meta { animation-delay: .52s; }
.fi-js .fi-hero__visual { animation-duration: 1.2s; animation-delay: .2s; }
@keyframes fi-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fi-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }

/* ---------- 섹션 공통 ---------- */
.fi-sec { padding: 112px 0; border-top: 1px solid var(--line); }
.fi-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.fi-ad { margin-top: 24px; line-height: 0; }
.fi-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.fi-caption { text-align: center; font-size: 13px; color: var(--faint); margin: 28px auto 0; max-width: 780px; text-wrap: balance; }

.fi-js .fi-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.fi-js .fi-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 가벼움 ---------- */
.fi-light { background: #fff; }
.fi-grid { display: grid; gap: 16px; }
.fi-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fi-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fi-stat { padding: 32px 28px; border-radius: 20px; background: linear-gradient(170deg, #eff6ff, #fff 70%); border: 1px solid rgba(59, 130, 246, .18); }
.fi-stat b { display: block; font: 800 clamp(34px, 4vw, 48px)/1.1 var(--font); letter-spacing: -.04em; color: var(--acc-deep); margin-bottom: 14px; }
.fi-stat p { margin: 0; color: var(--muted); font-size: 15px; }
.fi-note { max-width: 900px; margin: 24px auto 0; padding: 16px 20px; border-radius: 14px; background: var(--bg-2); color: var(--muted); font-size: 15px; text-align: center; text-wrap: balance; }

/* ---------- 카드 ---------- */
.fi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .3s, box-shadow .3s; }
.fi-card:hover { border-color: var(--line-2); box-shadow: 0 20px 40px -30px rgba(30, 58, 138, .45); }
.fi-card h3 { font-size: 18px; margin: 12px 0 6px; }
.fi-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 아코디언 ---------- */
.fi-acc { display: grid; gap: 10px; }
.fi-acc details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s; }
.fi-acc details[open] { border-color: var(--line-2); }
.fi-acc summary { list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 22px 52px; position: relative; font-weight: 700; font-size: 16px; }
.fi-acc summary::-webkit-details-marker { display: none; }
.fi-acc summary::after { content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.fi-acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fi-acc details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- DOWNLOAD ---------- */
.fi-down { background: radial-gradient(60% 60% at 50% 0%, rgba(96, 165, 250, .1), transparent 70%), var(--bg); }
.fi-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.fi-dl__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.fi-dl__card h3 { font-size: 22px; }
.fi-dl__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.fi-dl__card ul li { padding-inline-start: 20px; position: relative; }
.fi-dl__card ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.fi-dl__card--main { border-color: rgba(59, 130, 246, .4); background: linear-gradient(180deg, #eff6ff, var(--surface) 60%); box-shadow: 0 24px 50px -36px rgba(59, 130, 246, .6); }
.fi-dl__card--main h3 { display: flex; align-items: center; gap: 10px; }
.fi-dl__card .fi-btn { align-self: stretch; white-space: normal; text-align: center; padding-block: 10px; }
.fi-req { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: var(--muted); font-size: 14px; }
.fi-req b { margin-inline-end: 4px; }
.fi-hist { max-width: 820px; margin: 36px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--surface); }
.fi-hist summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.fi-hist__item { padding: 12px 0; border-top: 1px solid var(--line); }
.fi-hist__item p { margin: 0 0 6px; }
.fi-hist__item time { color: var(--faint); font-size: 14px; margin-inline-start: 6px; }
.fi-hist__item ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
.fi-hist > .fi-small { border-top: 1px solid var(--line); padding: 14px 0 18px; margin: 0; }

/* ---------- 바닥 ---------- */
.fi-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; background: #fff; }
.fi-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.fi-foot__in p { margin: 0 0 4px; }
.fi-foot .fi-brand a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.fi-foot .fi-brand a:hover { color: var(--acc-deep); }
.fi-foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fi-foot__links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.fi-foot__links a:hover { color: var(--text); }

/* ---------- 언어 선택 ---------- */
.fi-lang { position: relative; margin-inline-start: 4px; }
.fi-lang summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
	border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; white-space: nowrap; background: rgba(255,255,255,.6);
}
.fi-lang summary::-webkit-details-marker { display: none; }
.fi-lang summary:hover, .fi-lang[open] summary { color: var(--text); background: #fff; }
.fi-lang summary svg { width: 17px; height: 17px; }
.fi-lang ul {
	position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px;
	display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 2px;
	background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(15,23,42,.35);
}
.fi-lang a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.fi-lang a:hover { background: var(--bg-2); color: var(--text); }
.fi-lang a[aria-current="page"] { color: var(--acc-deep); font-weight: 700; }

/* ---------- 언어별 서체 · 방향 ---------- */
:root:lang(ja) { --font: "Pretendard JP Variable", "Pretendard Variable", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif; }
:root:lang(zh-Hans) { --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Pretendard Variable", system-ui, sans-serif; }
:root:lang(ar) { --font: "Pretendard Variable", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
:root:lang(th) { --font: "Pretendard Variable", "Leelawadee UI", "Noto Sans Thai", Tahoma, system-ui, sans-serif; }
:root:lang(ja) body.fi, :root:lang(zh-Hans) body.fi, :root:lang(th) body.fi { word-break: normal; line-break: strict; }
:root:lang(ar) .fi-hero__title, :root:lang(ar) .fi-head h2, :root:lang(th) .fi-hero__title { letter-spacing: 0; line-height: 1.4; }
:root:lang(ar) body.fi { letter-spacing: 0; }

/* ---------- kilho.net 첫 화면 링크: 다운로드 아래 (LANDING-PAGE.md 10-1) ---------- */
.fi-more img { width: 16px; height: 16px; flex: none; }
.fi-more { margin: 32px 0 0; text-align: center; }
.fi-more a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .2s, transform .2s; }
.fi-more a:hover { transform: translateY(-2px); }
.fi-more a::after { content: "→"; color: var(--muted); }
[dir="rtl"] .fi-more a::after { content: "←"; }

/* ---------- 첫 화면 칩: 숨어 있으면 메모리 최소 · 다시 부르면 0.5초 ---------- */
.fi-shot { max-width: 560px; }
.fi-chip { color: var(--text); font-weight: 600; }
.fi-chip img { width: 16px; height: 16px; }
.fi-chip svg { width: 18px; height: 18px; color: #f59e0b; flex: none; }
.fi-chip--mem { inset-inline-end: -10px; top: 0; }
.fi-chip--fast { inset-inline-start: -14px; bottom: 6px; }
/* 작은 메모리 막대: 거의 비어 있음 */
.fi-chip__bar { width: 34px; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; flex: none; }
.fi-chip__bar i { display: block; width: 12%; height: 100%; background: var(--acc); border-radius: 4px; }
.fi-js .fi-chip--mem { animation: fi-pop .7s .9s cubic-bezier(.2,.9,.3,1.3) both; }
.fi-js .fi-chip--fast { animation: fi-pop .7s 1.1s cubic-bezier(.2,.9,.3,1.3) both; }

/* ---------- 만든 이유: 메모리 흐름 그림 + 4단계 ---------- */
.fi-quiet__why { font-size: clamp(16px, 1.7vw, 19px); color: var(--text) !important; max-width: 680px !important; }
.fi-flow { max-width: 1000px; margin: 0 auto; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(30, 58, 138, .45); }
.fi-flow__fig { position: relative; margin: 0 0 24px; padding: 22px 0 22px; }
.fi-flow__y, .fi-flow__x { position: absolute; margin: 0; font-size: 13px; color: var(--faint); }
.fi-flow__y { top: 0; inset-inline-start: 0; }
.fi-flow__x { bottom: 0; inset-inline-end: 0; }
.fi-flow__svg { width: 100%; height: 200px; border-bottom: 1px solid var(--line-2); overflow: visible; }
[dir="rtl"] .fi-flow__svg { transform: scaleX(-1); }
.fi-flow__band { fill: transparent; transition: fill .4s; }
.fi-flow[data-phase="1"] .fi-flow__band[data-p="1"], .fi-flow[data-phase="2"] .fi-flow__band[data-p="2"],
.fi-flow[data-phase="3"] .fi-flow__band[data-p="3"], .fi-flow[data-phase="4"] .fi-flow__band[data-p="4"] { fill: rgba(59, 130, 246, .08); }
.fi-flow__area { fill: rgba(59, 130, 246, .14); }
.fi-flow__line { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linejoin: round; }
.fi-flow__div { stroke: var(--line-2); stroke-dasharray: 3 4; }
.fi-flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fi-flow__step { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; height: 100%; text-align: start; cursor: pointer; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-size: 14px; line-height: 1.55; transition: border-color .2s, background .2s, box-shadow .2s; }
.fi-flow__step b { display: block; font-size: 15.5px; margin: 2px 0 4px; }
.fi-flow__no { font: 700 12px/1 var(--mono); color: var(--faint); }
.fi-flow__step[aria-pressed="true"] { border-color: rgba(59, 130, 246, .5); background: #fff; box-shadow: 0 0 0 4px var(--acc-dim); color: var(--text); }
.fi-flow__step[aria-pressed="true"] .fi-flow__no { color: var(--acc); }
kbd { font-family: var(--mono); font-size: .82em; padding: .1em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--text); white-space: nowrap; }
.fi-head > p { color: var(--muted); margin: 14px auto 0; max-width: 640px; }

/* ---------- 써 보기: 왼쪽 프로그램 창(실제 크기) + 오른쪽 검색 예 ---------- */
.fi-try { background: linear-gradient(180deg, #fff, var(--bg)); }
.fi-try__grid { display: grid; grid-template-columns: 642px minmax(0, 1fr); gap: 40px; align-items: start; }
.fi-try__box { position: sticky; top: calc(var(--top) + 20px); min-width: 0; }
.fi-try__side .fi-small { margin: 16px 0 0; }
.fi-ex { display: grid; gap: 12px; }
.fi-ex__card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.fi-ex__card h3 { font-size: 16px; margin-bottom: 4px; }
.fi-ex__card h3 code { font-size: .85em; }
.fi-ex__card p { font-size: 14px; color: var(--muted); margin: 0; }
.fi-ex__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.fi-ex__q {
	font: 600 13px/1 var(--mono); padding: 7px 10px; border-radius: 8px; cursor: pointer;
	border: 1px solid rgba(59, 130, 246, .35); background: #f3f7fe; color: #1e40af; transition: background .15s, border-color .15s;
}
.fi-ex__q:hover { background: #e3edfd; border-color: var(--acc); }
.fi-ex__q.is-on { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ---------- 프로그램 창 — 앱 main.css · base.css 값 (라이트 팔레트 G1, 다크 G2) ---------- */
.fi-win {
	--w-bg: #fff; --w-surface: #f5f5f7; --w-border: #e0e0e0; --w-text: #1a1a1a; --w-muted: #888; --w-btn: #fff;
	--w-accent: #3b82f6; --w-sel: #dbe8fc; --w-nav: #ddeefc; --w-nav-b: #a8cce6; --w-capline: #3d84dd;
	position: relative; width: 642px; flex: none; border: 1px solid #3d3d3d; background: var(--w-bg); color: var(--w-text);
	box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .08);
	font: 12px/1.4 "Segoe UI", "Malgun Gothic", var(--font); letter-spacing: 0; word-break: normal; text-align: start;
	-webkit-user-select: none; user-select: none;
}
.fi-win[data-theme="dark"] {
	--w-bg: #1e1e1e; --w-surface: #252526; --w-border: #3a3a3a; --w-text: #e0e0e0; --w-muted: #999; --w-btn: #333;
	--w-sel: #264f78; --w-nav: #1f3a5a; --w-nav-b: #35608f; --w-capline: #3a3a3a;
}
.fi-win b { color: inherit; }
.fi-win button, .fi-win input, .fi-win select { font: inherit; color: inherit; box-sizing: border-box; letter-spacing: 0; }

/* 제목 줄 (klib-caption): 높이 32, 늘 #202020, 단추 폭 46, 아래 1px 선 */
.fi-cap { display: flex; align-items: center; height: 33px; background: #202020; color: #fff; border-bottom: 1px solid var(--w-capline); }
.fi-cap img { width: 16px; height: 16px; margin-inline-start: 10px; }
.fi-cap__t { flex: 1; min-width: 0; padding-inline-start: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.fi-cap img + .fi-cap__t { padding-inline-start: 8px; }
.fi-cap__b { position: relative; width: 46px; height: 32px; flex: none; display: grid; place-items: center; border: 0; padding: 0; background: none; color: #fff; }
.fi-cap__gear { cursor: pointer; }
.fi-cap__gear svg { width: 16px; height: 16px; }
.fi-cap__gear:hover { background: #3c3c3c; }
.fi-cap__gear:active { background: #505050; }
.fi-cap__min::before { content: ""; width: 10px; border-top: 1px solid #fff; }
.fi-cap__max::before { content: ""; width: 9px; height: 9px; border: 1px solid #fff; }
.fi-cap__x::before, .fi-cap__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; border-top: 1px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.fi-cap__x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* 내용 640x580 */
.fi-app { position: relative; height: 580px; display: flex; flex-direction: column; overflow: hidden; background: var(--w-bg); }
.fi-a-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.fi-a-logo { font-size: 37px; font-weight: 600; letter-spacing: -1.8px; margin-bottom: 12px; line-height: 1.4; }
.fi-a-logo b { font-weight: 600; color: var(--w-accent); }
.fi-a-desc { font-size: 14px; color: var(--w-muted); margin-bottom: 40px; }
.fi-a-foot { display: flex; align-items: center; gap: 8px; margin-top: 36px; color: var(--w-muted); }
.fi-a-foot svg { width: 14px; height: 14px; stroke-width: 1.8; }
.fi-a-search {
	display: flex; align-items: center; width: 75%; max-width: 560px; height: 60px; padding: 0 20px; gap: 12px;
	background: var(--w-btn); border: 1px solid var(--w-border); border-radius: 18px; transition: box-shadow .2s, border-color .2s;
}
.fi-a-search:hover { box-shadow: 0 6px 24px rgba(24, 40, 64, .07); }
.fi-a-search:focus-within { border-color: var(--w-accent); box-shadow: 0 8px 32px rgba(48, 95, 170, .1); }
.fi-a-sicon { width: 21px; height: 21px; flex: none; color: var(--w-muted); }
.fi-a-q { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--w-text); -webkit-user-select: text; user-select: text; }
.fi-a-q::placeholder { color: var(--w-muted); }
.fi-a-q:focus-visible { outline: none; }
.fi-a-go { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: var(--w-accent); color: #fff; }
.fi-a-go svg { width: 19px; height: 19px; }
.fi-a-results, .fi-a-status { display: none; }

/* 검색 중: 검색창이 위로, 목록이 아래로 */
.fi-app.is-searching .fi-a-top { flex: none; padding: 8px 10px; border-bottom: 1px solid var(--w-border); }
.fi-app.is-searching :is(.fi-a-logo, .fi-a-desc, .fi-a-foot, .fi-a-go) { display: none; }
.fi-app.is-searching .fi-a-search { width: 100%; max-width: none; height: 34px; padding: 0 10px; gap: 8px; border-radius: 8px; box-shadow: none; }
.fi-app.is-searching .fi-a-search:focus-within { border-color: var(--w-accent); }
.fi-app.is-searching .fi-a-sicon { width: 16px; height: 16px; }
.fi-app.is-searching .fi-a-q { font-size: 13px; }
.fi-app.is-searching .fi-a-results { display: flex; flex: 1; min-height: 0; }
.fi-app.is-searching .fi-a-status { display: flex; }

/* 결과 표: 행 26, 열 이름 200 · 경로(남는 폭, 최소 80) · 크기 80 · 날짜 130 */
.fi-a-table { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.fi-a-head { flex: none; border-bottom: 1px solid var(--w-border); }
.fi-a-body { flex: 1; overflow: auto; outline: none; }
.fi-a-row { display: flex; width: max-content; min-width: 100%; }
.fi-a-cell { flex: none; box-sizing: border-box; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 26px; height: 26px; }
.fi-a-row > .fi-a-cell:nth-child(1) { width: 200px; }
.fi-a-row > .fi-a-cell:nth-child(2) { width: var(--path-w, 230px); }
.fi-a-row > .fi-a-cell:nth-child(3) { width: 80px; }
.fi-a-row > .fi-a-cell:nth-child(4) { width: 130px; }
.fi-a-head .fi-a-cell { position: relative; overflow: visible; cursor: pointer; }
.fi-a-head .fi-a-cell:hover { background: var(--w-surface); }
.fi-a-head .is-div { border-inline-end: 1px solid var(--w-border); }
.fi-a-ind { position: absolute; top: 2px; left: 50%; width: 4px; height: 4px; border: solid var(--w-muted); border-width: 0 1px 1px 0; display: none; }
.fi-a-ind.is-up { display: block; transform: translateX(-50%) rotate(-135deg); }
.fi-a-ind.is-down { display: block; transform: translateX(-50%) rotate(45deg); }
.fi-a-cell.is-num { text-align: end; }
.fi-a-body .fi-a-row:hover { background: var(--w-surface); }
.fi-a-body .fi-a-row.is-sel { background: var(--w-sel); }
.fi-a-body .fi-a-cell:nth-child(n+2) { direction: ltr; }
[dir="rtl"] .fi-a-body .fi-a-cell.is-num { text-align: left; }
.fi-a-cell.is-name { display: flex; align-items: center; gap: 6px; }
.fi-a-cell.is-name span { overflow: hidden; text-overflow: ellipsis; }
.fi-a-cell.is-name b { font-weight: 700; }
.fi-ico { width: 16px; height: 16px; flex: none; }
.fi-a-rename { position: absolute; height: 22px; margin: 0; padding: 0 3px; border: 1px solid var(--w-accent); border-radius: 0; background: var(--w-bg); color: var(--w-text); line-height: 20px; outline: none; -webkit-user-select: text; user-select: text; }

/* 미리보기 영역: 경계 5 + 너비 240 */
.fi-a-split { flex: none; width: 5px; border-inline-start: 1px solid var(--w-border); }
.fi-a-pane { flex: none; width: 240px; padding: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--w-bg); }
.fi-a-results.no-pane :is(.fi-a-split, .fi-a-pane) { display: none; }
.fi-a-pane > svg { width: 100%; height: auto; max-height: 100%; }
.fi-a-msg { max-width: 280px; color: var(--w-muted); text-align: center; line-height: 1.5; white-space: pre-line; }
.fi-a-text { align-self: stretch; flex: 1; min-width: 0; margin: -8px; padding: 6px 8px; overflow: auto; white-space: pre; font: 12px/1.4 Consolas, "Malgun Gothic", var(--mono); direction: ltr; text-align: left; }
.fi-a-doc { align-self: stretch; flex: 1; min-width: 0; margin: -8px; padding: 8px 10px; overflow: hidden; line-height: 1.5; }
.fi-a-doc p { margin: 0 0 6px; }
.fi-a-doc .is-h { font-size: 16px; font-weight: 700; margin: 2px 0 8px; }
.fi-a-doc i { display: block; height: 7px; margin: 0 0 9px; border-radius: 2px; background: var(--w-surface); }

/* 드라이브 목록: 높이 170, 열 260 · 90 · 120 · 130 */
.fi-a-drives { flex: none; display: none; flex-direction: column; height: 170px; }
.fi-app.is-searching .fi-a-drives:not([hidden]) { display: flex; }
.fi-a-hsplit { flex: none; height: 5px; border-top: 1px solid var(--w-border); }
.fi-a-drives .fi-a-head .fi-a-cell { cursor: default; }
.fi-a-drives .fi-a-head .fi-a-cell:hover { background: none; }
.fi-a-drv > .fi-a-cell:nth-child(1) { width: 260px; }
.fi-a-drv > .fi-a-cell:nth-child(2) { width: 90px; }
.fi-a-drv > .fi-a-cell:nth-child(3) { width: 120px; }
.fi-a-drv > .fi-a-cell:nth-child(4) { width: 130px; }
.fi-a-drv.is-data { cursor: pointer; }
.fi-a-drv.is-data:hover { background: var(--w-surface); }
.fi-a-drv.is-off { opacity: .5; }
.fi-a-drv input { pointer-events: none; }
.fi-a-cell.is-pct { display: flex; align-items: center; }
.fi-a-bar { position: relative; flex: 1; height: 14px; background: var(--w-surface); border: 1px solid var(--w-border); }
.fi-a-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--w-accent); opacity: .6; }
.fi-a-bar span { position: relative; display: block; text-align: center; line-height: 14px; font-size: 11px; }

/* 체크박스 (base.css) */
.fi-win input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; width: 16px; height: 16px; flex: none; margin: 0; padding: 0;
	border: 1px solid var(--w-muted); border-radius: 4px; background: var(--w-btn); display: grid; place-items: center; transition: background .12s, border-color .12s;
}
.fi-win input[type="checkbox"]:checked { background: var(--w-accent); border-color: var(--w-accent); }
.fi-win input[type="checkbox"]:checked::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

/* 상태 줄 */
.fi-a-status { flex: none; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-top: 1px solid var(--w-border); }
#fi-status { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 18px; }
.fi-a-tog { flex: none; width: 22px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--w-muted); cursor: pointer; }
.fi-a-tog:hover { background: var(--w-surface); color: var(--w-text); }
.fi-a-tog.is-on { color: var(--w-accent); }
.fi-a-tog svg { width: 14px; height: 14px; }

/* 오른쪽 클릭 메뉴 — OS 팝업 메뉴(Windows 11 라이트) */
.fi-menu {
	position: absolute; z-index: 20; list-style: none; margin: 0; padding: 4px; min-width: 170px;
	background: #f9f9f9; border: 1px solid #d5d5d5; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
	font: 12px/1.4 "Segoe UI", "Malgun Gothic", var(--font); color: #1a1a1a;
}
.fi-menu[hidden] { display: none; }
.fi-menu li[role="menuitem"] { padding: 6px 28px 6px 28px; border-radius: 4px; cursor: default; white-space: nowrap; }
.fi-menu li[role="menuitem"]:hover { background: #e9e9e9; }
.fi-menu__sep { height: 1px; margin: 4px 0; background: #e0e0e0; }

/* ---------- PC 안에서만 띠 ---------- */
.fi-local {
	display: flex; gap: 20px; align-items: center; max-width: 900px; margin: 0 auto 28px; padding: 24px 28px; border-radius: 20px;
	background: linear-gradient(135deg, #eff6ff, #fff 70%); border: 1px solid rgba(59, 130, 246, .3);
}
.fi-local__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 12px 24px -12px rgba(59, 130, 246, .9); }
.fi-local__icon svg { width: 30px; height: 30px; stroke-width: 1.8; }
.fi-local h3 { font-size: 20px; margin-bottom: 4px; }
.fi-local p { margin: 0; color: var(--muted); }
.fi-card h3 { margin-top: 0; }

/* ---------- 프로그램 미리보기: 탭 + 창 ---------- */
.fi-appsec { background: linear-gradient(180deg, #fff, var(--bg)); }
.fi-appv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.fi-appv__side { position: sticky; top: calc(var(--top) + 24px); }
.fi-appv__tabs { display: grid; gap: 10px; }
.fi-appv__tabs [role="tab"] { text-align: start; cursor: pointer; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; transition: border-color .2s, box-shadow .2s; }
.fi-appv__tabs [role="tab"] > b { display: block; font-size: 16px; margin-bottom: 2px; }
.fi-appv__tabs [role="tab"] span { font-size: 14px; line-height: 1.55; display: block; }
.fi-appv__tabs [role="tab"][aria-selected="true"] { border-color: rgba(59, 130, 246, .45); box-shadow: 0 0 0 4px var(--acc-dim); color: var(--text); }
.fi-appv__view {
	min-height: 600px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 24px; border-radius: 24px; overflow: hidden;
	background: radial-gradient(80% 70% at 50% 30%, rgba(96, 165, 250, .14), transparent 70%), linear-gradient(160deg, #e9f0fb, #f6f9fe);
	border: 1px solid var(--line);
}
.fi-appv__pane { width: 100%; min-width: 0; display: grid; justify-items: center; }
.fi-appv__pane[hidden] { display: none; }

/* 환경설정 620x460 (prefs.css) */
.fi-win--prefs { width: 622px; }
.fi-p { height: 460px; display: flex; }
.fi-p-side { width: 120px; flex: none; display: flex; flex-direction: column; border-inline-end: 1px solid var(--w-border); }
.fi-p-cats { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-block: 8px; padding-inline: 8px 7px; }
.fi-p-cat { height: 32px; flex: none; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; }
.fi-p-cat:hover, .fi-p-cat.is-on { background: var(--w-nav); border-color: var(--w-nav-b); }
.fi-p-acts { display: flex; flex-direction: column; padding-block: 8px 12px; padding-inline: 8px 7px; }
.fi-p-btn { padding: 7px 14px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-btn); cursor: pointer; }
.fi-p-btn:hover { border-color: var(--w-muted); }
.fi-p-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fi-p-head { height: 56px; flex: none; padding: 18px 24px 0; border-bottom: 1px solid var(--w-border); }
.fi-p-title { font-size: 19px; font-weight: 700; line-height: 25px; }
.fi-p-panes { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; }
.fi-p-pane { display: flex; flex-direction: column; gap: 12px; }
.fi-p-pane[hidden] { display: none; }
.fi-p-row { height: 28px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fi-p select, .fi-p-num { width: 140px; height: 32px; padding: 6px 10px; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-btn); color: var(--w-text); outline: none; }
.fi-p select:hover, .fi-p-num:hover { border-color: var(--w-muted); }
.fi-p select:focus, .fi-p-num:focus { border-color: var(--w-accent); }
.fi-p-num { text-align: end; -webkit-user-select: text; user-select: text; }
.fi-p-hotkey { text-align: center; cursor: pointer; }
.fi-p-hotkey.is-cap { color: var(--w-muted); }
.fi-p-about { flex: 1; min-height: 0; }
.fi-p-id { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 700; }
.fi-p-id img { width: 48px; height: 48px; }
.fi-p-id b { color: var(--w-accent); }
.fi-p-val { color: var(--w-muted); }
.fi-p-link { color: var(--w-accent); text-decoration: none; }
.fi-p-link:hover { text-decoration: underline; }
.fi-p-oss { flex: 1; min-height: 120px; padding: 10px; border: 1px solid var(--w-border); border-radius: 4px; display: grid; align-content: start; gap: 8px; overflow: hidden; }
.fi-p-oss i { height: 6px; border-radius: 3px; background: var(--w-border); }
.fi-p-oss i:nth-child(3n) { width: 60%; } .fi-p-oss i:nth-child(4n) { width: 82%; }



/* 이럴 때 이렇게: 키 표 · 명령줄 */
.fi-keys { margin: 0 22px 20px; border-collapse: collapse; font-size: 14.5px; color: var(--muted); }
.fi-keys th { text-align: start; font-weight: 400; padding: 6px 18px 6px 0; white-space: nowrap; vertical-align: top; }
.fi-keys td { padding: 6px 0; }
.fi-keys tr + tr > * { border-top: 1px solid var(--line); }
.fi-code { margin: 0 22px 20px; padding: 14px 16px; border-radius: 12px; background: #0f172a; color: #e2e8f0; font: 13.5px/1.6 var(--mono); overflow-x: auto; text-align: left; }

/* ---------- 반응형 ---------- */
@media (max-width: 1140px) {
	.fi-try__grid { grid-template-columns: 1fr; gap: 28px; }
	.fi-try__box { position: static; display: grid; justify-items: center; }
	.fi-ex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
	.fi-appv { grid-template-columns: 1fr; gap: 20px; }
	.fi-appv__side { position: static; }
	.fi-appv__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	:root { --top: 56px; }
	.fi-wrap { padding: 0 16px; }
	.fi-nav { display: none; }
	.fi-top__in { justify-content: space-between; gap: 10px; }
	.fi-lang, .fi-nav + .fi-lang { margin-inline-start: auto; }
	.fi-lang summary span { display: none; }
	.fi-lang summary { padding: 0 10px; }
	.fi-hero { padding: 40px 0 56px; }
	.fi-hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.fi-chip { padding: 8px 11px; font-size: 13px; }
	.fi-chip--fast { inset-inline-start: 0; }
	.fi-chip--mem { inset-inline-end: 0; }
	.fi-flow { padding: 18px 16px; }
	.fi-flow__svg { height: 140px; }
	.fi-flow__steps { grid-template-columns: 1fr 1fr; }
	.fi-sec { padding: 72px 0; }
	.fi-head { margin-bottom: 36px; }
	.fi-try__box { position: sticky; top: calc(var(--top) + 8px); z-index: 5; }
	.fi-ex { grid-template-columns: 1fr; }
	.fi-grid--3 { grid-template-columns: 1fr; }
	.fi-local { flex-direction: column; align-items: flex-start; padding: 20px; }
	.fi-appv__tabs { gap: 6px; }
	.fi-appv__tabs [role="tab"] { padding: 10px; text-align: center; border-radius: 10px; }
	.fi-appv__tabs [role="tab"] b { font-size: 14px; margin: 0; }
	.fi-appv__tabs [role="tab"] span { display: none; }
	.fi-appv__view { padding: 28px 12px; min-height: 0; }
	.fi-dl { grid-template-columns: 1fr; }
	.fi-foot__in { flex-direction: column; align-items: flex-start; }
	.fi-keys, .fi-code { margin-inline: 16px; }
}
@media (max-width: 520px) {
	.fi-hero__title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.fi-js .fi-reveal { opacity: 1; transform: none; }
}

/* 바닥 왼쪽 © KILHO.NET — kilho.net 첫 화면 링크, 글자색은 둘레와 같게 */
.fi-foot .fi-small a { color: inherit; text-decoration: none; }
.fi-foot .fi-small a:hover { color: var(--text); text-decoration: underline; }

/* 바닥 X(트위터) — 글자 대신 로고 */
.fi-foot__links .fi-x { display: inline-flex; align-items: center; height: 100%; }
.fi-foot__links .fi-x svg { width: 15px; height: 15px; }
