/* 모든 문서 뷰어 / All Document Viewer — landing page. No external resources, no scripts. */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --ink: #0f172a; --muted: #5b6678; --line: #e2e8f0;
  --brand: #2547d0; --brand-ink: #ffffff; --soft: #e8edff;
  --pdf: #e5484d; --docx: #2b6ce0; --xlsx: #1e8f4e; --pptx: #e8590c; --hwp: #0e91a6;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 14px 32px rgb(15 23 42 / .10);
  --font: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0f17; --surface: #141a24; --ink: #e6eaf2; --muted: #9aa6ba; --line: #243044; --brand: #6c8bff; --brand-ink: #0b0f17; --soft: #1a2440; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 32px rgb(0 0 0 / .5); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { word-break: keep-all; overflow-wrap: break-word; margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand svg, .brand img { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .lang { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.lang) { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 28px 0 56px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 8px; } }
h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 52px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; }
.lead { margin: 0 0 26px; font-size: 18px; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.soon { background: var(--soft); color: var(--brand); cursor: default; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* phone mock */
.phone { justify-self: center; width: min(300px, 82vw); padding: 10px; border-radius: 38px; background: #0f172a; box-shadow: var(--shadow); }
.screen { border-radius: 30px; overflow: hidden; background: #f2f4f8; color: #0f172a; padding: 16px 14px 18px; min-height: 520px; font-size: 13px; line-height: 1.4; }
.s-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; letter-spacing: -.02em; margin-bottom: 12px; }
.s-head svg, .s-head img { width: 26px; height: 26px; }
.sheet { position: relative; padding: 16px 14px 14px; color: #fff; background: #2547d0; border-radius: 16px 4px 16px 16px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); margin-bottom: 14px; }
.sheet::after { content: ''; position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: rgb(255 255 255 / .28); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.sheet b { display: block; font-size: 19px; letter-spacing: -.02em; margin: 6px 0 10px; }
.dots { display: flex; flex-wrap: wrap; gap: 3px; }
.dots i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 5px; border-radius: 999px; background: #fff; color: #1e293b; font-size: 9.5px; font-weight: 700; }
.dots i::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.s-title { font-weight: 700; margin: 0 2px 8px; font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; box-shadow: 0 1px 2px rgb(15 23 42 / .08); }
.row .b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 12px; background: var(--c); flex: none; }
.row small { display: block; color: #64748b; font-size: 11px; }
.row span { min-width: 0; }
.row strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sections */
section { padding: 52px 0; }
h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.03em; line-height: 1.25; }
.sub { margin: 0 0 30px; color: var(--muted); max-width: 40em; }
.formats { display: flex; flex-wrap: wrap; gap: 12px; }
.fmt { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; }
.fmt .b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; font-weight: 800; background: var(--c); }
.fmt small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); line-height: 1.3; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { padding: 22px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.steps li { counter-increment: s; padding: 20px 22px 20px 70px; position: relative; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; padding: 30px; border-radius: 22px; background: var(--soft); }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; padding: 22px; } }
.privacy ul { margin: 0; padding-left: 20px; }
.privacy li { margin-bottom: 6px; }
details { background: var(--surface); border-radius: 14px; padding: 4px 18px; margin-bottom: 8px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
details p { margin: 0 0 14px; color: var(--muted); }
footer { padding: 36px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* 파일 형식 라벨(확장자) */
.fmt .b { font-size: 11px; letter-spacing: -.02em; }
.row .b { font-size: 9px; letter-spacing: -.02em; }
