/* TabEvery 판매 사이트. 값은 아래 :root 한 곳에서만 정함: 중립색 + 파랑 하나, 글자 크기 여섯, 간격 일곱, 모서리 둘(안쪽은 바깥에서 여백을 뺀 값).
   파랑은 앱이 "여기 놓으면 묶인다"에 쓰는 색. 주 행동 · 지금 탭 · 포커스에만 씀. 시스템 글꼴, 바깥 글꼴 · 그림 없음(그림은 img/ 의 우리 캡처만) */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1f;
  --muted: #5f5f66;
  --line: #dcdce1;
  --soft: #f3f3f5;
  --bar: #e6e6ea;
  --pane: #ffffff;
  --tab: #ffffff;
  --accent: #0064d6;
  --on-accent: #ffffff;
  --ink: #1c1c1f;
  --on-ink: #f5f5f7;
  --on-ink-muted: #b4b4bb;
  --r-s: 8px;
  --r-l: 14px;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: clamp(4.5rem, 9vw, 7rem);
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.375rem;
  --t-xl: clamp(1.75rem, 3.4vw, 2.5rem);
  --t-2xl: clamp(2.5rem, 6.4vw, 4.5rem);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --lift: 0 1px 2px rgb(0 0 0 / 0.12);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 14px 36px -10px rgb(0 0 0 / 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --fg: #f5f5f7;
    --muted: #a5a5ad;
    --line: #37373c;
    --soft: #1e1e21;
    --bar: #2b2b30;
    --pane: #222226;
    --tab: #45454c;
    --accent: #4aa1ff;
    --on-accent: #00172f;
    --ink: #0b0b0c;
    --lift: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -10px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { caret-color: var(--accent); accent-color: var(--accent); scrollbar-color: var(--line) transparent; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: var(--t-m)/1.55 system-ui, -apple-system, "Apple SD Gothic Neo", "Hiragino Sans", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--s5) var(--s3) var(--s6);
}

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s3); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
.lead { font-size: var(--t-l); line-height: 1.45; }
.muted { color: var(--muted); font-size: var(--t-s); }
.status { font-size: var(--t-l); }
.notmac { margin-top: calc(var(--s2) * -1); color: var(--muted); font-size: var(--t-s); }
.home .notmac[hidden], .notmac[hidden] { display: none; }
.price { margin: 0 0 var(--s3); font-size: var(--t-l); font-weight: 600; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s4) 0 var(--s2); }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, transform 0.12s;
}
.button:hover, button:hover:not(:disabled) { background: var(--soft); border-color: var(--muted); color: var(--fg); }
.button:active, button:active:not(:disabled) { transform: translateY(1px); }
.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.primary:hover, button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: transparent; color: var(--on-accent); }
.big { font-size: 1.15rem; padding: 0.8rem 1.6rem; }
button:disabled { opacity: 0.55; cursor: default; }

/* 닫힌 동안: 흐린 버튼 대신 상태 한 줄 */
.state { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; margin: 0; font-weight: 600; }
.state::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border: 2px solid currentColor; border-radius: 50%; }

.key {
  display: block;
  margin: 0 0 var(--s2);
  padding: var(--s2);
  border-radius: var(--r-s);
  background: var(--soft);
  font: var(--t-xs)/1.4 var(--mono);
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}

label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
input[type="email"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: var(--s2);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--pane);
  color: var(--fg);
  font: inherit;
}
form { margin-bottom: var(--s3); }

/* 머리 줄 셋(첫 화면 .bar · 따라오는 .stick · 다른 페이지 .top)은 로고와 받기 단추가 같은 자리에 섬:
   왼쪽 · 오른쪽은 첫 화면 판의 안쪽 선(판 둘레 여백 + 판 안 여백), 넓은 화면에서는 가운데 86rem. 높이도 첫 화면 줄과 같은 선(판 둘레 여백 + 10px 아래에서 시작) */
:root { --hero-pad: 16px; --edge: max(calc(var(--hero-pad) + clamp(1rem, 4vw, 1.5rem)), calc((100% - 86rem) / 2)); }
@media (max-width: 40rem) { :root { --hero-pad: 8px; } }
/* 머리: 이름과 길. 길은 작은 탭 막대이고 지금 있는 곳이 보이는 탭. 안 들어가면 다음 줄로 내려감 */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); width: 100%; padding: calc(var(--hero-pad) + 10px) var(--edge) var(--s2); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; color: var(--fg); font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand img { display: block; width: 30px; height: 20px; }
.top nav { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-l); background: var(--bar); }
.top nav a { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 0.85rem; border-radius: calc(var(--r-l) - 4px); color: var(--muted); font-size: var(--t-s); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 0.12s, color 0.12s; }
.top nav a::after { content: ""; position: absolute; inset: -4px 0; }
.top nav a:hover { background: color-mix(in srgb, var(--tab) 55%, transparent); color: var(--fg); }
.top nav a[aria-current] { background: var(--tab); color: var(--fg); font-weight: 600; box-shadow: var(--lift); }
/* 좁은 화면: 메뉴 글이 긴 언어(프 · 스 · 이 · 러 · 우크라)에서 머리가 화면 밖으로 나가지 않게, 안 들어가면 메뉴가 다음 줄로 내려감 */
@media (max-width: 26rem) { .top nav a { padding: 0 0.6rem; } }
/* 빌드한 공개 페이지(도움말 · 내려받기 · 만든 이유 · 바뀐 것)의 머리: 첫 페이지 첫 화면과 같은 메뉴 넷 + 받기 단추. 메뉴 펼침 판(.mega)보다 위에 뜸 */
.top { position: relative; z-index: 21; --night: #0a0d17; }
.top nav.links { padding: 0; background: none; }
.top nav.links a { border-radius: 999px; color: var(--fg); }
.top nav.links a::after { position: static; }
.top nav.links a:hover { background: none; color: var(--accent); }
.top nav.links a[aria-current] { background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: none; }
@media (prefers-color-scheme: dark) { .top a.pill.dark { background: #fff; color: var(--night); } }
@media (max-width: 46rem) { .top nav.links { order: 3; justify-content: center; width: 100%; } }

footer { padding: var(--s4) var(--s3); background: var(--soft); color: var(--muted); font-size: var(--t-s); text-align: center; }
footer nav, .langs { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; }
footer a, .langs span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.langs [aria-current] { color: var(--fg); font-weight: 600; }
footer p { margin: 0; }
footer p a { padding: 0 0.2rem; }

/* 긴 글: 약관 · 개인정보 · 환불 · 도움말 · 내려받기 · 만든 이유 · 바뀐 것 */
main.doc { max-width: 38rem; line-height: 1.7; }
main.doc p, main.doc li { text-wrap: pretty; }
.top + main.doc { padding-top: var(--s4); }
main.doc h1 { font-size: var(--t-xl); }
main.doc h2 { font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.01em; margin: var(--s5) 0 var(--s1); }
main.doc h3 { font-size: var(--t-m); margin: var(--s4) 0 var(--s1); }
main.doc h2, main.doc h3 { scroll-margin-top: var(--s3); }
main.doc .lead { color: var(--muted); }
main.doc ul, main.doc ol { margin: 0 0 var(--s3); padding-left: 1.25rem; }
main.doc li { margin: 0.25rem 0; }
main.doc li::marker { color: var(--muted); }
main.doc table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 var(--s3); font-variant-numeric: tabular-nums; }
main.doc th, main.doc td { border-bottom: 1px solid var(--line); padding: 0.55rem var(--s3) 0.55rem 0; text-align: left; vertical-align: top; }
main.doc th { color: var(--muted); font-size: var(--t-s); font-weight: 600; }
main.doc .shot { margin: var(--s4) 0; }
main.doc code { font: 0.9em var(--mono); overflow-wrap: anywhere; }
.toc { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin: 0 0 var(--s3); padding: var(--s1) var(--s3); border-radius: var(--r-l); background: var(--soft); font-size: var(--t-s); }
.toc a { display: inline-flex; align-items: center; min-height: 36px; }
kbd { display: inline-block; min-width: 1.8em; padding: 0 0.4em; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--pane); box-shadow: var(--lift); font: inherit; font-size: 0.9em; text-align: center; }
.notice { padding: var(--s2) var(--s3); border-radius: var(--r-s); background: var(--soft); font-weight: 600; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--soft); }

/* 낱말 가운데서 줄이 바뀌지 않게: 한국어는 띄어쓰기에서, 일본어는 구절에서(지원하는 브라우저만) */
html:lang(ko) :is(.home, .doc) { word-break: keep-all; }
html:lang(ja) :is(.home, .doc) { word-break: auto-phrase; }

/* 밝은 판만 있는 캡처는 어두운 화면에서 조금 낮춤(도움말) */
@media (prefers-color-scheme: dark) { .lit img { filter: brightness(0.7) contrast(0.95); } .doc .lit img { background: var(--pane); } }

/* ---------- 첫 페이지: aside.com 실측 비율(기둥 1248 · 가는 세로선 · 같은 크기 카드)에 혜성 바탕. 시안 Figma 06 판매 사이트 ① ---------- */
body:has(main.home) > .top { display: none; }
main.home { max-width: none; padding: 0; }
.home { --rule: color-mix(in srgb, var(--fg) 7%, transparent); --night: #0a0d17; --night-2: #1e2947; }
.home h2 { max-width: 60rem; margin: 0 auto var(--s3); font-size: clamp(2rem, 3.1vw, 2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; text-align: center; text-wrap: balance; }
.home p { text-wrap: pretty; }
.home > section:not(.hero) { max-width: 78rem; margin: 0 auto; padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1rem, 4vw, 1.5rem); border-inline: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.home .kick { margin: 0 0 var(--s2); color: var(--accent); font-size: var(--t-s); font-weight: 500; text-align: center; }
.home .kick a { color: inherit; text-decoration: none; }
.home .lead { max-width: 45rem; margin: 0 auto; font-size: 1.125rem; line-height: 1.6; text-align: center; }
:is(.home, .top) .pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 0 1.1rem; border-radius: 999px; font-size: var(--t-s); font-weight: 500; text-decoration: none; white-space: nowrap; }
.home .pill.big { min-height: 44px; padding: 0 1.5rem; font-size: 1rem; }
:is(.home, .top) .pill.dark { background: var(--night); color: #fff; }
:is(.home, .top) .pill.dark:hover { background: #222838; color: #fff; }
/* 받기 그림: 누르면 바로 받기가 시작되는 단추에만(글자 왼쪽, 글자 색) */
:is(.home, .top) .pill .ico { flex: none; width: 16px; height: 16px; margin-right: 0.5rem; }
:is(.home, .top) .pill.big .ico { width: 18px; height: 18px; }
.home .pill.state { cursor: default; }
.home .pill.state::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-right: 0.6rem; border: 2px solid currentColor; border-radius: 50%; }

/* 첫 화면: 가장자리 16px 안 네 모서리 둥근 판(마무리 구획 .close .sky 와 같은 모양). 판 위 글은 밝은 혜성 꼬리 위라 검정, 바탕 그림은 코드로 렌더한 것(사진 아님) */
.home .hero { padding: var(--hero-pad) var(--hero-pad) 0; }
.home .hero .sky { position: relative; overflow: hidden; border-radius: 24px; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); padding: 0 clamp(1rem, 4vw, 1.5rem); background: #c9d8f3 url(/img/sky-hero.webp) center top / cover no-repeat; color: var(--night); text-align: center; }
.home .bar { position: relative; z-index: 21; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); max-width: 86rem; height: 64px; margin: 0 auto; }
.home .mark { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; color: var(--night); font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
.home .mark:hover { color: var(--night); }
.home .mark img { display: block; width: 30px; height: 20px; }
/* 하늘 위 반투명 흰 면은 하나만: 흰 72% + 검정 8% 선(가격 띠 · 맥 아님 안내). 메뉴는 바탕 없이 글자만 */
.home .links { display: flex; margin: 0; padding: 0 0.4rem; }
.home .links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.8rem; color: var(--night); font-size: var(--t-s); font-weight: 500; text-decoration: none; }
.home .links a:hover { color: var(--accent); }
.home .badge { display: inline-block; margin: clamp(2.5rem, 6vw, 4.25rem) 0 var(--s2); padding: 0.3rem 0.9rem; border: 1px solid rgb(0 0 0 / 0.08); border-radius: 999px; background: rgb(255 255 255 / 0.72); color: var(--night-2); font-size: var(--t-xs); font-weight: 500; }
.home .badge span { font-variant-numeric: tabular-nums; }
.home .hero h1 { margin: 0 auto var(--s4); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--night); }
html:lang(ja) .home .hero h1 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
/* 중국어는 낱말 가운데서 끊지 않고 띄어쓰기 · 문장 부호에서만 줄을 바꿈. 그래도 넘치면 아무 데서나 */
html:lang(zh-Hans) .home .hero h1, html:lang(zh-Hant) .home .hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
.home .hero h1 span { display: block; }
.home .go { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.home .req { margin: 0; color: var(--night-2); font-size: var(--t-xs); font-weight: 500; }
.home .notmac { margin: var(--s1) 0 0; padding: 0.35rem 0.85rem; border: 1px solid rgb(0 0 0 / 0.08); border-radius: 12px; background: rgb(255 255 255 / 0.72); color: var(--night); font-size: var(--t-xs); font-weight: 500; }
.home .close .notmac { display: inline-block; }
/* 제품 창: TabEvery 탭 막대 + 그 아래 문서 창. 판 아래 끝에서 잘림. 녹화(hero.mp4)가 들어오면 영상으로 바뀜 */
.home .window { position: relative; max-width: 1288px; height: 600px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.18), 0 24px 64px -12px rgb(0 0 0 / 0.5), 0 2px 6px rgb(0 0 0 / 0.3); color: #1e1e1e; text-align: left; }
.home .window.small { max-width: 100%; height: auto; margin: var(--s5) 0; border-radius: 12px; }
/* 판 위에 떠 있는 창: 바깥 0.5px 테 + 넓고 옅은 그림자(판과 같은 값) + 안쪽 1px 흰 유리 테(영상 위에 그려야 해서 outline). 녹화 속 바탕화면이 판의 하늘과 이어지므로(demo.js) 짙은 그림자는 쓰지 않음 */
.home .window.film { height: auto; outline: 1px solid rgb(255 255 255 / 0.6); outline-offset: -1px; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.2), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.home .window video { display: block; width: 100%; height: auto; }
/* 영상 아래 막대: 단계 글(재생 시각에 맞춰 밝아짐) · 녹화 설명 · 멈춤 단추. 영상 위는 가리지 않음 */
.home .filmbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid rgb(0 0 0 / 0.08); background: #fff; color: #5c5c5c; font-size: var(--t-s); }
.home .steps { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.home .steps li { display: flex; align-items: center; gap: 7px; counter-increment: step; transition: color 0.2s; }
.home .steps li::before { content: counter(step); display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #ececec; color: #5c5c5c; font-size: 11px; font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.home .steps li[aria-current] { color: #111; font-weight: 500; }
.home .steps li[aria-current]::before { background: #0a84ff; color: #fff; }
.home .filmbar .cap { color: #737373; font-size: var(--t-xs); }
.home .tabs { display: flex; align-items: center; gap: 2px; height: 38px; padding: 5px 6px; background: #dfdfdf; }
.home .tab { display: flex; flex: 1 1 0; align-items: center; gap: 0.5rem; min-width: 0; height: 28px; padding: 0 0.75rem; border-radius: 7px; color: #505050; font-size: 0.8125rem; }
.home .tab img { flex: none; width: 17px; height: 17px; }
.home .tab b { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.home .tab i { margin-left: auto; color: #8a8a8a; font-style: normal; }
.home .tab.on { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); color: #1e1e1e; }
.home .tab.on b { font-weight: 500; }
.home .tool { flex: none; width: 56px; color: #5a5a5a; font-size: 1.25rem; text-align: center; }
.home .doc .title { display: flex; align-items: center; gap: 8px; height: 30px; margin: 0; padding: 0 12px; border-bottom: 1px solid rgb(0 0 0 / 0.08); background: linear-gradient(#f3f3f3, #ececec); color: #4d4d4d; font-size: 0.8125rem; font-weight: 500; }
.home .doc .title i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.home .doc .title i:nth-child(2) { background: #febc2e; }
.home .doc .title i:nth-child(3) { background: #28c840; }
.home .doc .title span { flex: 1; overflow: hidden; margin-right: 52px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.home .doc .page { padding: 26px 40px; color: #2b2b2b; font-size: 0.9375rem; line-height: 1.75; }
.home .doc .page p { margin: 0 0 0.6rem; }
.home .doc .page .h { margin-bottom: 1.1rem; color: #1e1e1e; font-size: 1.375rem; font-weight: 700; }
.home .playpause { min-width: 4.5rem; min-height: 32px; padding: 0 0.8rem; border-color: rgb(0 0 0 / 0.14); background: #fff; color: var(--night); font-size: var(--t-xs); }
.home .playpause:hover { background: #f2f2f2; color: var(--night); }

/* 첫 화면 단추가 화면 밖으로 나가면 위에 붙는 얇은 막대(demo.js 가 .on 을 붙임) */
.home .stick { position: fixed; z-index: 21; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 56px; padding: 0 var(--edge); border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateY(-100%); transition: transform 0.2s; }
.home .stick.on { transform: none; }
.home .stick .mark { color: var(--fg); }
.home .stick .mark:hover { color: var(--fg); }
@media (prefers-color-scheme: dark) { .home .stick .mark img { filter: invert(1); } .home .stick .pill.dark { background: #fff; color: var(--night); } }

/* 따라오는 머리 줄에도 같은 메뉴(좁은 화면에서는 로고 · 단추만) */
.home .stick .links a { color: var(--fg); }
@media (max-width: 46rem) { .home .stick .links { display: none; } }

/* 메뉴 펼침 판(demo.js 가 열고 닫음). 판은 화면 맨 위부터 덮고 머리 줄이 그 위에 떠 있어, 첫 화면에서 열면 머리 줄 둘레가 흰 판이 됨(aside 와 같음).
   첫 화면 머리 줄에서 열면 하늘처럼 늘 밝게(.sky), 따라오는 줄에서 열면 화면 밝기를 따름 */
.mega { --m-bg: var(--bg); --m-fg: var(--fg); --m-muted: var(--muted); --m-soft: var(--soft); position: fixed; z-index: 20; inset: 0; background: color-mix(in srgb, var(--m-bg) 55%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mega.sky { --m-bg: #fff; --m-fg: #0a0d17; --m-muted: #5f5f66; --m-soft: #f3f3f5; color-scheme: light; }
.home .sheet { padding: calc(var(--m-top, 64px) + 1.75rem) clamp(1.5rem, 6vw, 4rem) 3rem; background: var(--m-bg); color: var(--m-fg); box-shadow: 0 12px 32px rgb(0 0 0 / 0.08); }
.home .panel { display: flex; gap: clamp(2rem, 5vw, 4rem); max-width: 68rem; margin: 0 auto; }
.home .panel[hidden], .home .show[hidden] { display: none; }
.home .mlist, .home .mhelp { flex: none; margin: 0; padding: 0; list-style: none; }
.home .mlist a { display: block; padding: 0.2rem 0; color: var(--m-muted); font-size: 1.5rem; font-weight: 500; line-height: 1.35; text-decoration: none; }
.home .mlist a:is([aria-current], :hover, :focus-visible) { color: var(--m-fg); }
.home .show { display: flex; flex: 1; gap: clamp(1.5rem, 3vw, 2.5rem); min-width: 0; }
.home .show > div { flex: 1; max-width: 22rem; }
.home .show .mh { margin: 0 0 0.5rem; font-size: var(--t-m); font-weight: 700; }
.home .show p { margin: 0 0 0.75rem; color: var(--m-muted); font-size: var(--t-s); line-height: 1.6; }
.home .show a, .home .mto a { color: var(--accent); font-size: var(--t-s); font-weight: 500; text-decoration: none; }
.home .show figure { flex: none; width: clamp(14rem, 28vw, 25rem); aspect-ratio: 6 / 5; margin: 0; overflow: hidden; border-radius: var(--r-l); background: var(--m-soft); }
.home .show figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home .show .art { height: 100%; }
.home .mhelp { flex: 1; max-width: 46rem; columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
.home .mhelp a { display: block; padding: 0.3rem 0; color: var(--m-fg); font-size: 1.1875rem; font-weight: 500; text-decoration: none; }
.home .mhelp a:hover { color: var(--accent); }
.home .mto { margin: 0.3rem 0 0; white-space: nowrap; }
/* 펼침 표시: 넓은 화면에서 demo.js 가 메뉴에 aria-expanded 를 붙일 때만 */
.links a[aria-expanded]::after { content: ""; width: 0.36em; height: 0.36em; margin: -0.25em 0 0 0.45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; opacity: 0.6; transform: rotate(45deg); }
.links a[aria-expanded="true"] { border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent); }
.links a[aria-expanded="true"]::after { margin-top: 0.2em; transform: rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) { .mega:not([hidden]) .sheet { animation: drop 0.18s var(--ease); } }
@keyframes drop { from { transform: translateY(-6px); } }

/* 왜 TabEvery 인가: 왼쪽 작은 파란 글, 오른쪽 문단(첫 문장만 진하게) */
.home .why > div { max-width: 44rem; margin: 0 auto; }
.home .why p.kick { margin: 0 0 var(--s4); color: var(--accent); font-size: 1.0625rem; text-align: center; }
.home .why p { margin: 0 0 var(--s4); color: #737373; font-size: 1.25rem; line-height: 1.5; }
.home .why b { color: var(--fg); font-weight: 500; }
@media (prefers-color-scheme: dark) { .home .why p { color: var(--muted); } }

/* 카드: 모두 같은 크기 · 옅은 바탕, 안에 실제 캡처를 크게 잘라 넣음 */
.home .grid { display: grid; gap: var(--s4); max-width: 75rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.home .grid.three { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.home .grid.four { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.home .grid figure { margin: 0; }
.home .art { position: relative; height: 320px; overflow: hidden; }
/* 카드 그림 바탕은 면 색 하나(흰 면은 바탕 · 면 두 단계만). warm · blue · lilac · mint 는 이제 안쪽 그림 자리 조정에만 씀 */
.home .art:is(.warm, .blue, .lilac, .mint) { background: var(--soft); }
.home .art.plain { display: grid; place-items: center; padding: var(--s4); border: 1px solid var(--rule); background: var(--bg); }
.home .chip { position: absolute; z-index: 1; top: 24px; left: 24px; margin: 0; padding: 0.4rem 0.75rem; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 0.1); color: #1a1a1a; font-size: var(--t-s); font-weight: 500; }
.home .shot { position: absolute; top: 76px; left: 24px; width: 112%; height: auto; border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); }
.home .art.blue .shot { width: calc(100% - 24px); top: 84px; } /* 언어에 따라 설정 머리글이 길어 오른쪽을 자르지 않음 */
.home .art.mint .shot { width: 90%; }
/* 카드 녹화(card-<이름>-<언어>.mp4): 그림 자리를 채움. 보일 때만 돎(demo.js), 움직임 줄이기면 포스터 */
/* 녹화 카드: 영상은 가리지 않고, 꼬리표 · 멈춤 단추는 영상 아래 막대에. 그린 카드도 같은 높이(영상 1.2:1 + 막대 52px) */
.home .art[data-film] { height: auto; }
.home .art video.cardfilm { display: block; width: 100%; height: auto; aspect-ratio: 960 / 800; }
.home .cardbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); min-height: 52px; padding: 8px 12px; border-top: 1px solid rgb(0 0 0 / 0.06); background: #fff; }
.home .cardbar .chip { position: static; padding: 0; background: none; box-shadow: none; color: #1a1a1a; line-height: 1.35; }
.home .cardbar .playpause.mini { flex: none; min-width: 0; min-height: 30px; padding: 0 0.7rem; font-size: 12px; }
.home .grid.three .art:not([data-film]):not(.plain) { box-sizing: content-box; height: auto; aspect-ratio: 960 / 800; padding-bottom: 52px; }
.home .pane { height: 150px; margin-top: 10px; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
/* 카드 안 그림: 캡처 대신 그 언어 문구로 그림(언어마다 맞는 화면) */
.home .drag { position: absolute; inset: 72px 0 0 24px; }
.home .win { position: absolute; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); }
.home .win .wbar { display: flex; align-items: center; gap: 5px; height: 22px; margin: 0; padding: 0 8px; background: linear-gradient(#f3f3f3, #ececec); border-bottom: 1px solid rgb(0 0 0 / 0.07); }
.home .win .wbar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.home .win .wbar i:nth-child(2) { background: #febc2e; }
.home .win .wbar i:nth-child(3) { background: #28c840; }
.home .win .wbar b { overflow: hidden; margin-left: 6px; color: #4d4d4d; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.home .win.back { top: 0; left: 0; width: 88%; height: 200px; outline: 3px solid #0a84ff; outline-offset: -1px; background: #fff repeating-linear-gradient(transparent 0 22px, #f0f0f0 22px 30px) 0 34px / 100% 100% no-repeat; }
.home .drop { position: absolute; top: 46%; left: 50%; margin: 0; padding: 0.35rem 0.8rem; border-radius: 999px; background: #0a84ff; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -50%); }
.home .win.front { top: 120px; left: 34%; width: 66%; height: 140px; transform: rotate(-2deg); box-shadow: 0 16px 40px rgb(0 0 0 / 0.25); opacity: 0.96; }
.home .cursor { position: absolute; top: 6px; left: 46%; width: 14px; height: 20px; background: #111; clip-path: polygon(0 0, 0 100%, 28% 76%, 50% 100%, 64% 94%, 44% 70%, 80% 70%); }
.home .minibox { position: absolute; top: 84px; left: 24px; right: -40px; }
.home .mini { display: flex; gap: 3px; margin: 0; padding: 4px; border-radius: 9px 9px 0 0; background: #dfdfdf; box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
.home .mini .t { display: flex; flex: 1 1 0; align-items: center; gap: 6px; min-width: 0; height: 26px; padding: 0 8px; border-radius: 6px; color: #505050; font-size: 12px; }
.home .mini .t.on { background: #fff; color: #1e1e1e; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.home .mini .t img { flex: none; width: 14px; height: 14px; }
.home .mini .t b { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.home .minibox.sized { right: -80px; }
.home .pick { position: absolute; top: 76px; left: 24px; right: 24px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); color: #1e1e1e; }
.home .pick p { margin: 0; }
.home .pick .h { margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.home .pick .row { display: flex; align-items: center; gap: 7px; height: 26px; font-size: 12px; }
.home .pick .row b { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.home .pick s { flex: none; width: 13px; height: 13px; border: 1px solid #b5b5b5; border-radius: 3px; background: #fff; }
.home .pick s.on { border-color: #0a84ff; background: #0a84ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.home .pick .row img { flex: none; width: 14px; height: 14px; }
.home .pick .ok { display: flex; justify-content: flex-end; margin-top: 8px; }
.home .pick .ok span { padding: 3px 12px; border-radius: 6px; background: #0a84ff; color: #fff; font-size: 12px; font-weight: 500; }
.home .art .keys { position: absolute; left: 24px; display: flex; align-items: center; gap: 8px; margin: 0; color: #333; font-size: 1.0625rem; font-weight: 500; }
.home .art .keys:nth-of-type(2) { top: 150px; }
.home .art .keys:nth-of-type(3) { top: 222px; }
.home .art .keys span { margin-left: 8px; }
.home .art .keys em { color: #777; font-style: normal; }
.home .art kbd { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(0 0 0 / 0.1); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 rgb(0 0 0 / 0.12); color: #222; font-size: 1.3rem; }
.home .split { position: absolute; top: 76px; left: 24px; width: 110%; height: 220px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); }
.home .split p { margin: 0; }
.home .split .strip { display: flex; gap: 3px; height: 28px; padding: 4px; background: #dfdfdf; }
.home .split .strip b, .home .split .strip i { flex: 1; border-radius: 5px; }
.home .split .strip b { background: #fff; }
.home .split .halves { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: calc(100% - 28px); background: #d5d5d5; }
.home .split .halves i { background: #fff repeating-linear-gradient(transparent 0 16px, #ececec 16px 23px) 16px 18px / 70% 70% no-repeat; }
.home .grid figcaption { margin: var(--s3) var(--s3) 0; color: #737373; font-size: 1rem; line-height: 1.5; }
.home .grid figcaption b { color: var(--fg); font-weight: 500; }
@media (prefers-color-scheme: dark) { .home .grid figcaption { color: var(--muted); } }
.home .cards.soft { background: var(--soft); }
.home .ask { display: grid; gap: 0.35rem; padding: var(--s3); border-radius: 12px; background: var(--soft); text-align: left; }
.home .ask b { font-size: var(--t-s); }
.home .ask span { color: var(--muted); font-size: var(--t-xs); line-height: 1.45; }
.home .zero { margin: 0; font: 500 6rem/1 ui-rounded, system-ui, sans-serif; text-align: center; }
.home .zero span { display: block; margin-top: var(--s2); color: var(--muted); font-size: var(--t-s); font-weight: 400; }
.home .nologin { position: relative; display: grid; gap: 10px; width: 200px; padding: 18px 16px; border-radius: 10px; background: var(--soft); }
.home .nologin i { height: 28px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); }
.home .nologin s { position: absolute; top: 50%; left: 8px; right: 8px; height: 2px; background: #c9302c; transform: rotate(-18deg); }
.home .key { margin: 0; padding: var(--s3); border-radius: 10px; background: var(--soft); font: 0.9375rem var(--mono); }
.home .key b { color: #1a7f37; }
.home .signed { margin: var(--s5) 0 0; color: var(--muted); font-size: var(--t-s); text-align: center; }
.home .signed + .signed { margin-top: var(--s1); }
.home .morelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s2) var(--s4); max-width: 75rem; margin: var(--s5) auto 0; padding: var(--s4) 0 0; border-top: 1px solid var(--rule); list-style: none; }
.home .morelist li { position: relative; padding-left: 1.4rem; color: #4a4a4a; font-size: 1rem; line-height: 1.5; }
.home .morelist li::before { content: ""; position: absolute; top: 0.55em; left: 0; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
@media (prefers-color-scheme: dark) { .home .morelist li { color: var(--muted); } }

/* 자주 묻는 것: 사려는 사람이 묻는 걱정에 잰 값으로 답함 */
.home .faq > * { max-width: 75rem; margin-inline: auto; } /* 녹화 · 카드 줄과 같은 폭 */
.home .faq h2 { max-width: 75rem; margin-bottom: var(--s2); font-size: 1.875rem; line-height: 1.33; text-align: left; }
.home .faq .lead { color: #737373; text-align: left; }
.home .faq dl { margin-top: var(--s5); margin-bottom: 0; }
.home .faq dl div { display: grid; gap: var(--s1) var(--s5); padding: 1.35rem 0; border-top: 1px solid var(--rule); }
.home .faq dl div:last-child { border-bottom: 1px solid var(--rule); }
.home .faq dt { font-size: 1.0625rem; font-weight: 500; line-height: 1.6; }
.home .faq dd { margin: 0; color: #4a4a4a; font-size: 1.0625rem; line-height: 1.6; }
.home .faq .note { margin-top: var(--s3); color: #737373; font-size: var(--t-s); line-height: 1.6; }
@media (prefers-color-scheme: dark) { .home .faq .lead, .home .faq dd, .home .faq .note { color: var(--muted); } }
@media (min-width: 48rem) { .home .faq dl div { grid-template-columns: 17rem 1fr; } }

/* 끝: 첫 화면과 같은 혜성 판, 두 줄 제목, 같은 버튼 */
.home > section.close { padding-bottom: var(--s6); }
.home .close .sky { padding: clamp(4rem, 7vw, 6rem) var(--s4) clamp(3rem, 5vw, 4rem); border-radius: 24px; background: #c9d8f3 url(/img/sky-close.webp) center / cover no-repeat; color: var(--night); text-align: center; }
.home .close h2 { margin-bottom: var(--s4); color: var(--night); }
.home .close h2 span { display: block; }
.home .close .terms { margin: var(--s2) auto 0; color: var(--night-2); font-size: var(--t-s); font-weight: 500; }
.home .close .buy { margin: var(--s2) 0 0; font-size: var(--t-s); font-weight: 500; }
.home .close .buy a { color: var(--night); }

/* 좁은 화면: 첫 화면 글은 왼쪽 정렬, 창은 오른쪽이 잘리게, 카드는 한 줄씩 */
@media (max-width: 40rem) {
  .home .hero .sky { border-radius: 20px; background-image: url(/img/sky-hero-m.webp); text-align: left; }
  .home .bar { flex-wrap: wrap; height: auto; padding-top: 8px; row-gap: 4px; }
  .home .links { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; }
  .home .links a { padding: 0 0.55rem; white-space: nowrap; }
  .home .go { align-items: flex-start; }
  .home .req { color: rgb(255 255 255 / 0.88); } /* 좁은 판에서는 이 줄이 짙은 하늘 위 */
  .home .window { height: 340px; }
  .home .tab:nth-child(n+3) { display: none; } /* 좁은 폭에서는 탭 둘만: 글이 잘리지 않게 */
  .home .doc .page { font-size: 0.875rem; }
  .home .doc .page .h { font-size: 1.125rem; }
  .home .window.film { width: auto; max-width: 100%; height: auto; } /* 녹화는 자르지 않고 폭에 맞춤 */
  .home .window .page { padding: 18px 24px; }
  .home .art { height: 300px; }
  .home .art.plain { height: auto; min-height: 0; padding: var(--s4) var(--s3); } /* 개인정보 카드: 좁은 폭에서 빈 상자가 되지 않게 */
  html:lang(zh-Hans) .home .hero h1, html:lang(zh-Hant) .home .hero h1 { font-size: 1.6rem; }
  .home .filmbar { padding: 10px 12px; }
  .home .steps { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; }
}
