/* ==========================================================================
   예약종료 랜딩 — index.php 전용. 모든 클래스는 kt- 접두어 (어두운 바탕, 앱 강조색 #3b82f6)
   앱 창 재현은 앱 2.0.1 res/ui/style.css 값(아래 고유 부분), 숫자 글꼴은 앱과 같은 Oswald 서브셋(clock.ttf, OFL.txt)
   ========================================================================== */

:root {
	--bg: #141414;
	--bg-2: #1e1e1e;
	--surface: #1a1a1b;
	--line: rgba(240, 246, 252, .08);
	--line-2: rgba(240, 246, 252, .16);
	--text: #e6edf3;
	--muted: #9da7b3;
	--faint: #6e7681;
	--acc: #3b82f6;
	--acc-2: #60a5fa;
	--acc-deep: #7cb2ff;
	--acc-dim: rgba(59, 130, 246, .14);
	--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: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body.kt {
	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: #7cb2ff; }
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; }

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

/* ---------- 버튼 · 배지 ---------- */
.kt-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, #5b9bf8, #2563eb); color: #fff; font-family: inherit; cursor: pointer;
	font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
	box-shadow: 0 10px 26px -12px rgba(59, 130, 246, .7), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .2s, box-shadow .2s;
}
.kt-btn svg { width: 20px; height: 20px; }
.kt-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(59, 130, 246, .85), inset 0 1px 0 rgba(255,255,255,.25); }
.kt-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.kt-btn--ghost:hover { background: var(--bg-2); box-shadow: none; }
.kt-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.kt-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; }
.kt-badge--off { background: var(--bg-2); color: var(--muted); }

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

/* ---------- HERO ---------- */
.kt-hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; }
.kt-hero::before {
	content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
	background:
		radial-gradient(44% 46% at 74% 42%, rgba(59, 130, 246, .13), transparent 70%),
		radial-gradient(36% 36% at 10% 80%, rgba(59, 130, 246, .06), transparent 70%);
}
.kt-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 48px; align-items: center; }
.kt-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kt-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,.03); }
.kt-hero__title { font-size: clamp(34px, 4.3vw, 52px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 24px; }
.kt-hero__title--long { font-size: clamp(30px, 3.8vw, 46px); }
.kt-hero__title em { font-style: normal; color: var(--acc-deep); }
.kt-line { display: block; }
.kt-hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.kt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.kt-hero__meta { font-size: 14px; color: var(--faint); margin: 0; }

.kt-hero__visual { position: relative; padding: 24px 0 40px; }
.kt-chip {
	position: absolute; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); font-size: 14px; color: var(--muted); white-space: nowrap;
}
.kt-chip img { width: 20px; height: 20px; flex: none; }

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

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

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

/* ---------- 격자 ---------- */
.kt-grid { display: grid; gap: 16px; }
.kt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }

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

/* ---------- 아코디언 ---------- */
.kt-acc { display: grid; gap: 10px; }
.kt-acc details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s; }
.kt-acc details[open] { border-color: var(--line-2); }
.kt-acc summary { list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 22px 52px; position: relative; font-weight: 700; font-size: 16px; }
.kt-acc summary::-webkit-details-marker { display: none; }
.kt-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; }
.kt-acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.kt-acc details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- DOWNLOAD ---------- */
.kt-down { background: radial-gradient(60% 60% at 50% 0%, rgba(59, 130, 246, .09), transparent 70%), var(--bg); }
.kt-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.kt-dl__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.kt-dl__card h3 { font-size: 22px; }
.kt-dl__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.kt-dl__card ul li { padding-inline-start: 20px; position: relative; }
.kt-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); }
.kt-dl__card--main { border-color: rgba(59, 130, 246, .45); background: linear-gradient(180deg, #141d2c, var(--surface) 60%); box-shadow: 0 24px 50px -36px rgba(59, 130, 246, .5); }
.kt-dl__card--main h3 { display: flex; align-items: center; gap: 10px; }
.kt-dl__card .kt-btn { align-self: stretch; white-space: normal; text-align: center; padding-block: 10px; }
.kt-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; }
.kt-req b { margin-inline-end: 4px; }
.kt-hist { max-width: 820px; margin: 36px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--surface); }
.kt-hist summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.kt-hist__item { padding: 12px 0; border-top: 1px solid var(--line); }
.kt-hist__item p { margin: 0 0 6px; }
.kt-hist__item time { color: var(--faint); font-size: 14px; margin-inline-start: 6px; }
.kt-hist__item ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
.kt-hist > .kt-small { border-top: 1px solid var(--line); padding: 14px 0 18px; margin: 0; }

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

/* ---------- 언어 선택 ---------- */
.kt-lang { position: relative; margin-inline-start: 4px; }
.kt-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,.03);
}
.kt-lang summary::-webkit-details-marker { display: none; }
.kt-lang summary:hover, .kt-lang[open] summary { color: var(--text); background: var(--bg-2); }
.kt-lang summary svg { width: 17px; height: 17px; }
.kt-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: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}
.kt-lang a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.kt-lang a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.kt-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.kt, :root:lang(zh-Hans) body.kt, :root:lang(th) body.kt { word-break: normal; line-break: strict; }
:root:lang(ar) .kt-hero__title, :root:lang(ar) .kt-head h2, :root:lang(th) .kt-hero__title { letter-spacing: 0; line-height: 1.4; }
:root:lang(ar) body.kt { letter-spacing: 0; }

/* ---------- kilho.net 첫 화면 링크: 다운로드 아래 (LANDING-PAGE.md 10-1) ---------- */
.kt-more img { width: 16px; height: 16px; flex: none; }
.kt-more { margin: 32px 0 0; text-align: center; }
.kt-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; }
.kt-more a:hover { transform: translateY(-2px); }
.kt-more a::after { content: "→"; color: var(--muted); }
[dir="rtl"] .kt-more a::after { content: "←"; }

/* ---------- 첫 화면 칩 ---------- */
.kt-chip { color: var(--text); font-weight: 600; }
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: var(--bg-2); color: var(--text); white-space: nowrap; }
.kt-head > p { color: var(--muted); margin: 14px auto 0; max-width: 680px; }

/* ---------- 기능 카드 ---------- */
.kt-card h3 { margin-top: 14px; }
.kt-card__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acc-dim); color: var(--acc-deep); }
.kt-card__ic .kt-ic { width: 20px; height: 20px; }

/* ---------- 프로그램 미리보기: 탭 + 창 ---------- */
.kt-appsec { background: linear-gradient(180deg, #101010, var(--bg)); }
.kt-appv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.kt-appv__side { position: sticky; top: calc(var(--top) + 24px); }
.kt-appv__tabs { display: grid; gap: 10px; }
.kt-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; }
.kt-appv__tabs [role="tab"] > b { display: block; font-size: 16px; margin-bottom: 2px; }
.kt-appv__tabs [role="tab"] span { font-size: 14px; line-height: 1.55; display: block; }
.kt-appv__tabs [role="tab"][aria-selected="true"] { border-color: rgba(59, 130, 246, .55); box-shadow: 0 0 0 4px var(--acc-dim); color: var(--text); }
.kt-appv__view {
	min-height: 620px; 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(59, 130, 246, .1), transparent 70%), linear-gradient(160deg, #1b1b1c, #121212);
	border: 1px solid var(--line);
}
.kt-appv__pane { width: 100%; min-width: 0; display: grid; justify-items: center; }
.kt-appv__pane[hidden] { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1020px) {
	.kt-appv { grid-template-columns: 1fr; gap: 20px; }
	.kt-appv__side { position: static; }
	.kt-appv__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	:root { --top: 56px; }
	.kt-wrap { padding: 0 16px; }
	.kt-nav { display: none; }
	.kt-top__in { justify-content: space-between; gap: 10px; }
	.kt-lang, .kt-nav + .kt-lang { margin-inline-start: auto; }
	.kt-lang summary span { display: none; }
	.kt-lang summary { padding: 0 10px; }
	.kt-top__in { position: relative; }
	.kt-lang { position: static; }
	.kt-lang ul { inset-inline-end: 16px; width: min(300px, calc(100vw - 32px)); }   /* 메뉴 목록은 머리줄 오른쪽 끝에 맞춘다 (단추에 맞추면 긴 언어 이름일 때 왼쪽이 잘림) */
	.kt-hero { padding: 40px 0 56px; }
	.kt-hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.kt-chip { padding: 8px 11px; font-size: 13px; }
	.kt-sec { padding: 72px 0; }
	.kt-head { margin-bottom: 36px; }
	.kt-grid--3, .kt-grid--2 { grid-template-columns: 1fr; }
		.kt-appv__tabs { gap: 6px; }
	.kt-appv__tabs [role="tab"] { padding: 10px; text-align: center; border-radius: 10px; }
	.kt-appv__tabs [role="tab"] b { font-size: 14px; margin: 0; }
	.kt-appv__tabs [role="tab"] span { display: none; }
	.kt-appv__view { padding: 28px 12px; min-height: 0; }
	.kt-dl { grid-template-columns: 1fr; }
	.kt-foot__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
	.kt-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; }
	.kt-js .kt-reveal { opacity: 1; transform: none; }
}

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

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





/* ==========================================================================
   예약종료 고유 — 앱 창(res/ui/style.css 다크 값), 첫 화면 시연, 꺼지기 직전 화면, 전원 칸
   ========================================================================== */
@font-face { font-family: "KT Oswald"; src: url(clock.ttf) format("truetype"); font-weight: 500; font-display: block; }   /* 앱 res/ui/clock.ttf — 숫자 · 콜론만 든 Oswald 서브셋 (SIL OFL 1.1, OFL.txt) */

.kt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kt-fit { width: 100%; max-width: 100%; display: flex; justify-content: center; }   /* 안쪽 고정 크기 그림은 JS zoom 으로 맞춘다 */
.kt-fit > * { flex: none; }
.kt-card__ic svg { width: 22px; height: 22px; }
.kt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
code { background: var(--bg-2); color: var(--acc-deep); }

/* ---------- 앱 창: 제목 줄 31 + 내용 500x244 (window_win.c CSS_W · CSS_H), 캡션은 늘 다크 ---------- */
.kt-win {
	--w-bg: #1e1e1e; --w-surface: #252526; --w-border: #3a3a3a; --w-text: #e0e0e0; --w-muted: #999; --w-btn: #333; --w-accent: #3b82f6; --w-card2: #202021;
	position: relative; width: 502px; border: 1px solid #454545; border-radius: 8px; overflow: hidden; background: var(--w-bg); color: var(--w-text);
	font: 13px/1.2 "Segoe UI", var(--font); letter-spacing: 0; text-align: left; user-select: none;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4);
}
.kt-cap { position: relative; height: 31px; display: flex; align-items: center; gap: 8px; padding-left: 9px; background: #202020; color: #fff; font-size: 12px; }
.kt-cap img { width: 16px; height: 16px; }
.kt-cap i { position: absolute; top: 0; width: 46px; height: 31px; }
.kt-cap__min { right: 92px; } .kt-cap__max { right: 46px; opacity: .35; } .kt-cap__x { right: 0; }
.kt-cap__min::before { content: ""; position: absolute; left: 18px; top: 15px; width: 10px; border-top: 1px solid #fff; }
.kt-cap__max::before { content: ""; position: absolute; left: 18px; top: 10px; width: 10px; height: 10px; box-sizing: border-box; border: 1px solid #fff; border-radius: 1px; }
.kt-cap__x::before, .kt-cap__x::after { content: ""; position: absolute; left: 17px; top: 15px; width: 13px; border-top: 1px solid #fff; transform: rotate(45deg); }
.kt-cap__x::after { transform: rotate(-45deg); }
/* #app: 타이틀바 아래 1px 강조선(다크는 #4a4a4a), 위 여백 = 시계와 조작부 사이 = 아래 여백 */
.kt-app { height: 244px; border-top: 1px solid #4a4a4a; padding: 0 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px; }

/* 시계 — 카드 64x92, 그룹 안 6 · 그룹 사이 10, 콜론 점 7 (간격 22) */
.kt-clock { display: flex; align-items: center; justify-content: center; gap: 10px; }
.kt-grp { display: flex; gap: 6px; }
.kt-c { position: relative; width: 64px; height: 92px; border-radius: 7px; background: var(--w-surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .28); overflow: hidden; }
.kt-h { position: absolute; left: 0; right: 0; height: 46px; overflow: hidden; }
.kt-h b { display: block; height: 92px; line-height: 92px; font: 500 72px/92px "KT Oswald", "Oswald", "Bahnschrift", sans-serif; text-align: center; color: var(--w-text); transition: color .2s; }
.kt-h.top, .kt-h.ft { top: 0; background: var(--w-surface); }
.kt-h.bot, .kt-h.fb { top: 46px; background: var(--w-card2); border-top: 1px solid var(--w-border); }
.kt-h.bot b, .kt-h.fb b { margin-top: -46px; }
.kt-h.ft { transform-origin: bottom; }
.kt-h.fb { transform-origin: top; transform: scaleY(0); }
@keyframes kt-fold1   { from { transform: scaleY(1); filter: brightness(1); }   to { transform: scaleY(0); filter: brightness(.55); } }
@keyframes kt-unfold1 { from { transform: scaleY(0); filter: brightness(.55); } to { transform: scaleY(1); filter: brightness(1); } }
@keyframes kt-fold2   { from { transform: scaleY(1); filter: brightness(1); }   to { transform: scaleY(0); filter: brightness(.55); } }
@keyframes kt-unfold2 { from { transform: scaleY(0); filter: brightness(.55); } to { transform: scaleY(1); filter: brightness(1); } }
.kt-h.ft.flip1 { animation: kt-fold1 .3s ease-in forwards; }
.kt-h.fb.flip1 { animation: kt-unfold1 .3s ease-out .3s forwards; }
.kt-h.ft.flip2 { animation: kt-fold2 .3s ease-in forwards; }
.kt-h.fb.flip2 { animation: kt-unfold2 .3s ease-out .3s forwards; }
.kt-clock.dim .kt-h b { color: var(--w-muted); }   /* 0 에 닿으면 숫자를 죽인다 */
.kt-sep { display: flex; flex-direction: column; justify-content: center; gap: 22px; height: 92px; }
.kt-sep i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--w-accent); }
.kt-clock.off .kt-sep i { background: var(--w-border); }

/* 조작부 — [−5][−1][+1][+5] | [5][10][30] | [⏻|☾][실행하기], 폭 456 (시계와 같게) */
.kt-panel { display: flex; align-items: center; justify-content: space-between; width: 456px; }
.kt-row { display: flex; gap: 6px; }
.kt-vr { display: block; width: 1px; height: 20px; background: var(--w-border); }
.kt-win :is(.kt-adj, .kt-pre, .kt-ico, .kt-start) {
	display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0; border-radius: 6px; border: 1px solid var(--w-border);
	background: var(--w-btn); color: var(--w-text); font: 13px/1 "Segoe UI", var(--font); cursor: default; white-space: nowrap;
}
.kt-win button:is(.kt-adj, .kt-pre, .kt-ico, .kt-start) { cursor: pointer; }
.kt-win button:is(.kt-adj, .kt-pre, .kt-ico, .kt-start):hover { border-color: var(--w-accent); }
.kt-win button:focus-visible { outline: 2px solid #7cb2ff; outline-offset: 1px; border-radius: 6px; }
.kt-adj { width: 36px; }
.kt-pre { width: 34px; }
.kt-seg { position: relative; display: flex; }
.kt-ico { width: 28px; color: var(--w-muted) !important; background: var(--w-btn) no-repeat center / 15px 15px !important; }
.kt-ico--power { border-radius: 6px 0 0 6px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'/%3E%3Cline x1='12' y1='2' x2='12' y2='12'/%3E%3C/svg%3E") !important; }
.kt-ico--moon { border-radius: 0 6px 6px 0 !important; border-left: none !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E") !important; }
.kt-ico.on { background-color: var(--w-accent) !important; border-color: var(--w-accent) !important; }
.kt-ico--power.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'/%3E%3Cline x1='12' y1='2' x2='12' y2='12'/%3E%3C/svg%3E") !important; }
.kt-ico--moon.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E") !important; }
.kt-start { width: 80px; background: var(--w-surface) !important; font-weight: 600 !important; }
.kt-win button.kt-start:hover { background: var(--w-btn) !important; }
.kt-start:disabled { color: var(--w-muted); border-color: var(--w-border) !important; cursor: default; }
/* 0 이 된 뒤 글자(Shutting down… 등)는 80px 보다 길 수 있다 — 다른 칸이 다 숨은 때라 오른쪽 끝에 붙여 왼쪽으로 늘린다 (앱은 80 고정) */
.kt-panel > .kt-row:last-child { position: relative; }
.kt-start:disabled { position: absolute; right: 0; width: auto; min-width: 80px; padding: 0 12px; }
/* 세는 중에는 시간 칸 · 전원 칸을 감춘다 — 자리는 지키므로 실행 버튼은 움직이지 않는다 */
.kt-win.is-run :is(.kt-adj, .kt-pre, .kt-vr, .kt-seg) { visibility: hidden; }
/* 툴팁(.ui-tooltip) — 미리보기에선 늘 보이게, 첫 화면에선 가리킨 뒤 0.6초 */
.kt-tip, .kt-win button[data-tip]::after {
	position: absolute; z-index: 3; top: 36px; padding: 3px 7px; border: 1px solid var(--w-border); background: var(--w-btn); color: var(--w-text); font-size: 12px; line-height: 1.35; white-space: nowrap; pointer-events: none;
}
.kt-tip { left: 18px; }
.kt-win button[data-tip] { position: relative; }
.kt-win button[data-tip]::after { content: attr(data-tip); left: 10px; opacity: 0; visibility: hidden; transition: opacity .1s, visibility 0s .1s; }
.kt-win button[data-tip]:hover::after { opacity: 1; visibility: visible; transition-delay: .6s; }

/* ---------- 첫 화면 시연 ---------- */
.kt-hero__visual { margin: 0; padding: 12px 0 20px; }
.kt-demo__box { position: relative; }
.kt-demo__end {
	position: absolute; inset: 0; z-index: 4; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	background: rgba(0, 0, 0, .94); color: #cfcfcf; font-size: 16px; text-align: center; padding: 20px; animation: kt-fade 1.2s ease both;
}
.kt-demo__end[hidden] { display: none; }
.kt-demo__end p { margin: 0; }
@keyframes kt-fade { from { opacity: 0; } }
.kt-hero__visual figcaption { margin-top: 22px; text-align: center; }
.kt-how { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.kt-note { margin: 0; font-size: 13px; color: var(--faint); }
.kt-demo__ff { margin-inline-start: 6px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 13px/1.4 var(--font); cursor: pointer; vertical-align: 1px; }
.kt-demo__ff:disabled { opacity: .35; cursor: default; }

/* ---------- 꺼지기 직전 화면 ---------- */
.kt-last { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 32px 56px; align-items: center; }
.kt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: st; }
.kt-steps li { position: relative; padding-inline-start: 44px; color: var(--muted); font-size: 15.5px; min-height: 30px; }
.kt-steps li b { display: block; color: var(--text); }
.kt-steps li:not(.kt-steps__note)::before { counter-increment: st; content: counter(st); position: absolute; inset-inline-start: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--acc-dim); color: var(--acc-deep); font-weight: 800; font-size: 14px; }
.kt-steps__note { font-size: 14px !important; color: var(--faint) !important; }
.kt-steps__note::before { content: ""; position: absolute; inset-inline-start: 12px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.kt-last__fig { margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.kt-last__fig .kt-caption { margin-top: 14px; }
/* 브라우저 — last.php 는 회색(#ccc) 바탕 가운데에 저장된 화면을 띄운다 */
.kt-br { width: 460px; border-radius: 10px; overflow: hidden; border: 1px solid #3a3a3a; background: #2b2b2b; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9); font: 12px/1 "Segoe UI", var(--font); }
.kt-br__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; }
.kt-br__bar i { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.kt-br__url { flex: 1; margin-inline-start: 8px; height: 22px; display: flex; align-items: center; padding: 0 10px; border-radius: 11px; background: #1c1c1c; color: #bbb; }
.kt-br__page { background: #ccc; padding: 18px 20px; }
.kt-shot { position: relative; height: 236px; border-radius: 2px; overflow: hidden; background: linear-gradient(150deg, #1f4e8c, #0e2442 60%, #0b1a30); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.kt-shot__win { position: absolute; left: 70px; top: 40px; width: 280px; padding: 0 16px 16px; border-radius: 6px; background: #f3f3f3; color: #222; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.kt-shot__t { display: flex; justify-content: flex-end; gap: 10px; height: 24px; align-items: center; margin: 0 -8px 8px 0; }
.kt-shot__t i { width: 8px; height: 8px; border-radius: 50%; background: #c9c9c9; }
.kt-shot__done { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 13px; }
.kt-shot__done b { color: #1a7f37; }
.kt-shot__bar { height: 8px; margin: 0 0 14px; border-radius: 4px; background: #ddd; overflow: hidden; }
.kt-shot__bar i { display: block; height: 100%; width: 100%; background: #22a04b; }
.kt-shot__sk { display: grid; gap: 7px; margin: 0; }
.kt-shot__sk i { display: block; height: 7px; border-radius: 4px; background: #d6d6d6; }   /* 글자 대신 회색 막대 */
.kt-shot__task { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(20, 20, 20, .85); }
.kt-shot__task i { width: 14px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.kt-shot__task span { position: absolute; right: 10px; color: #ddd; font-size: 11px; }

/* ---------- 끄거나 재우거나 ---------- */
.kt-powersec { background: linear-gradient(180deg, #101010, var(--bg)); }
.kt-pw { display: flex; flex-direction: column; }
.kt-pw > p:not(.kt-pw__seg):not(.kt-pw__ing) { flex: 1; }
.kt-pw__seg { display: inline-flex; margin: 0 0 6px; align-self: flex-start; }
.kt-pw__seg span { display: grid; place-items: center; width: 40px; height: 36px; border: 1px solid #3a3a3a; background: #333; color: #999; }
.kt-pw__seg span:first-child { border-radius: 8px 0 0 8px; }
.kt-pw__seg span:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.kt-pw__seg span.on { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.kt-pw__seg svg { width: 18px; height: 18px; }
.kt-pw__ing { margin: 18px 0 0 !important; }
.kt-pw__ing span { display: inline-block; padding: 6px 12px; border-radius: 6px; border: 1px solid #3a3a3a; background: #252526; color: #999; font: 600 13px/1.2 "Segoe UI", var(--font); }

/* ---------- 프로그램 화면 ---------- */
.kt-appv__view { min-height: 440px; }
.kt-appv__pane { grid-template-columns: minmax(0, 1fr); }

/* ---------- 반응형 ---------- */
@media (max-width: 1020px) {
	.kt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kt-hero__grid, .kt-last { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
	.kt-grid--3, .kt-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.kt-grid--4 { grid-template-columns: 1fr; }
}
.kt-hero__title .kt-line { text-wrap: balance; }   /* 긴 언어에서 마지막 낱말 하나만 떨어지지 않게 */
:root:lang(ja) .kt-hero__title { word-break: auto-phrase; }
