:root { --pad: clamp(24px, 7vw, 112px); --bg: #f2f1ee; --ink: #101014; --sub: #5d5d63; --hint: #8e8e93; --line: #d9d8d3; --tick: #b9b8b2; --cell: #eae9e4; --accent: #4a7c64; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #111113; --ink: #f2f1ee; --sub: #a3a3a9; --hint: #6f6f76; --line: #2a2a2f; --tick: #45454c; --cell: #1b1b1f; --accent: #7fb398; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #111113; --ink: #f2f1ee; --sub: #a3a3a9; --hint: #6f6f76; --line: #2a2a2f; --tick: #45454c; --cell: #1b1b1f; --accent: #7fb398; color-scheme: dark; }
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: Geist, "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.top { position: sticky; top: 0; z-index: 10; height: 48px; display: flex; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .brand { display: flex; align-items: center; gap: 10px; padding: 0 24px 0 var(--pad); text-decoration: none; border-right: 1px solid var(--line); }
.top .brand img { width: 22px; height: 22px; border-radius: 5px; }
.top nav { display: flex; align-items: center; }
.top nav a { padding: 0 16px; height: 100%; display: flex; align-items: center; text-decoration: none; color: var(--sub); }
.top nav a:hover, .top nav a.on { color: var(--ink); }
.top .spacer { flex: 1; }
.top .theme { width: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-left: 1px solid var(--line); background: none; color: var(--sub); cursor: pointer; }
.top .theme:hover { color: var(--ink); }
.top .theme svg { width: 16px; height: 16px; }

.page { min-height: calc(100svh - 48px); display: flex; flex-direction: column; }
.page > main { flex: 1; display: flex; flex-direction: column; }
.page > main > .hero { flex: 1; }

.hero { display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: clamp(32px, 4vw, 64px); align-items: center; padding: 64px var(--pad) 72px; }
.btn.ko { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.stores { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; }
.btn.store { height: 56px; padding: 0 16px; gap: 12px; border-color: var(--line); border-radius: 12px; justify-content: flex-start; }
.btn.store:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.store svg { width: 22px; height: 22px; flex: none; }
.btn.store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.btn.store small { font-size: 11px; font-weight: 500; color: var(--hint); letter-spacing: 0; }
label.btn { cursor: pointer; }
.drop { position: relative; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 18px; cursor: pointer; text-align: center; padding: 40px 24px; transition: border-color .25s cubic-bezier(.16,1,.3,1), background .25s cubic-bezier(.16,1,.3,1), transform .15s cubic-bezier(.16,1,.3,1); }
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop-icon svg { width: 44px; height: 44px; color: var(--accent); }
.drop-title { margin-top: 6px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.drop-sub { color: var(--hint); }
.drop .btn { margin-top: 14px; }
.dropping { position: absolute; inset: 0; border-radius: 18px; display: none; align-items: center; justify-content: center; background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 600; }
.drop.over .dropping { display: flex; }
dialog#choose { margin: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 28px; width: min(480px, calc(100% - 32px)); }
dialog#choose::backdrop { background: rgba(0,0,0,.45); }
#choose .file { color: var(--hint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#choose h2 { margin-top: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
#choose .choices { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#choose .choice { border-radius: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
#choose .choice:first-child { background: var(--ink); color: var(--bg); }
#choose .choice b { font-size: 16px; } #choose .choice span { font-size: 13px; opacity: .7; }
#choose .apps { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 8px; }
#choose .close { margin-top: 18px; background: none; border: 0; color: var(--hint); cursor: pointer; padding: 0; font: inherit; font-size: 14px; }
h1 { font-family: Geist, "Pretendard Variable", Pretendard, system-ui, sans-serif; font-size: clamp(36px, 4.2vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; word-break: keep-all; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 24px; max-width: 34em; font-size: 18px; line-height: 1.65; color: var(--sub); word-break: keep-all; }
.buttons { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border-radius: 10px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 1px solid var(--ink); text-decoration: none; background: transparent; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn { transition: background .25s cubic-bezier(.16,1,.3,1), color .25s cubic-bezier(.16,1,.3,1), border-color .25s cubic-bezier(.16,1,.3,1), transform .15s cubic-bezier(.16,1,.3,1); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active, .drop:active, #choose .choice:active { transform: scale(.98); }
.btn.off { border-color: var(--line); color: var(--hint); pointer-events: none; }
.caption { margin-top: 18px; color: var(--hint); }
.note { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--sub); word-break: keep-all; }
.note b { color: var(--ink); font-weight: 600; }

.app { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.app img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px rgba(0,0,0,.12); display: block; }
.app .name { font-size: 16px; font-weight: 600; }
.app .kind { margin-top: 3px; color: var(--hint); }


.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding: 0 var(--pad); }
.facts div { padding: 24px 28px 28px 0; border-right: 1px solid var(--line); }
.facts div + div { padding-left: 28px; }
.facts div:last-child { border-right: 0; }
.facts .mono { color: var(--hint); }
.facts p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--sub); word-break: keep-all; }

footer { border-top: 1px solid var(--line); }
footer > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 22px var(--pad) 28px; color: var(--hint); }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 24px; }

/* 글 페이지(처리방침·지원) */
.doc { max-width: calc(760px + 2 * var(--pad)); padding: 56px var(--pad) 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; }
.doc .date { margin-top: 12px; color: var(--hint); }
.doc h2 { margin: 40px 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.75; color: var(--ink); word-break: keep-all; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.doc th { width: 26%; font-weight: 600; background: var(--cell); }
.doc a { color: var(--accent); }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 44px var(--pad) 52px; gap: 32px; }
    #choose .choices { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; padding: 0; } .facts div, .facts div + div { padding: 18px var(--pad); border-right: 0; border-bottom: 1px solid var(--line); } .facts div:last-child { border-bottom: 0; }
    .doc { padding: 40px var(--pad) 64px; }
  footer > div { padding: 20px var(--pad); }
}
