/* 웹폰트: Pretendard(SIL OFL 1.1)에서 사이트에 쓰인 글자만 뽑은 수정본 — web/tools/subset-font.py */
@font-face { font-family: "EzOMS Sans"; src: url("/fonts/ezoms-sans.woff2") format("woff2"); font-weight: 45 920; font-style: normal; font-display: swap; }

/* 소개 페이지 공통 — 흰 바탕, 짙은 남색 글자, 가는 선. 장식보다 내용. */
:root {
  color-scheme: light;
  --font: "EzOMS Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ink: #1c2230;
  --ink-2: #353c4b;
  --ink-3: #4a5263;
  --ink-4: #8a91a0;
  --paper: #ffffff;
  --mist: #f3f2ef;
  --proof: #eef0f2;
  --rule: #d9dce1;
  --hair: #e6e8eb;
  --blue: #1f4fa3;
  --blue-ink: #1f4fa3;
  --green: #2f7a4a;
  --amber: #a5661b;
  --red: #b4322f;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 머리말 ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px;
  height: 64px; padding: 0 max(var(--gutter), (100% - var(--wide)) / 2);
  background: #fff; border-bottom: 1px solid var(--hair);
}
.logo { display: flex; align-items: center; gap: 9px; margin-right: auto; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo img { width: 26px; height: 26px; }
.logo-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 12px; color: var(--ink-3); font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: 12px; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.nav-cta:hover { background: #000; }
.burger { display: none; position: relative; width: 40px; height: 40px; margin-left: 8px; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s, top .2s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
body.menu-open .burger span:first-child { top: 19px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 19px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 64px 0 0; z-index: 25; display: none; flex-direction: column; padding: 8px var(--gutter) 40px; background: #fff; }
.sheet a { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 18px; font-weight: 600; }
body.menu-open .sheet { display: flex; }

/* ---------- 글자 ---------- */
.eyebrow { display: block; margin-bottom: 14px; color: var(--ink-4); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.eyebrow i { display: none; }
.display { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.18; font-weight: 750; letter-spacing: -.035em; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; font-weight: 750; letter-spacing: -.03em; }
.h3 { font-size: 20px; font-weight: 700; }
.lede { margin-top: 18px; max-width: 34em; color: var(--ink-3); font-size: 17px; line-height: 1.75; }
.grad { color: inherit; }
.center { text-align: center; }
.muted { color: var(--ink-4); }

/* ---------- 버튼 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; }
.pill .knob { display: none; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; border-color: #000; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: var(--mist); }
.pill-white { background: #fff; color: var(--ink); border-color: #fff; }
.link-arrow, .more { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.note-s { margin-top: 12px; color: var(--ink-4); font-size: 13px; }

/* 예전 카드 틀(다운로드 페이지 등) — 장식 없이 선 하나 */
.bezel { padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.bezel > .core { height: 100%; }
.bezel.is-dark { border-color: #2c3342; background: #222938; color: #e9ebef; }

/* ---------- 섹션 ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section.mist { background: var(--mist); border-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- 첫 화면 ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .lede { margin-top: 18px; }
/* 홈: 사진 위에 글 */
.hero.home { position: relative; display: flex; align-items: center; min-height: clamp(520px, 62vh, 640px); padding: 0; background: #e9e4dc url("/img/hero.jpg") center right / cover no-repeat; }
.hero.home .wrap { position: relative; padding: 64px 0; }
.hero-text { max-width: 30em; }
.hero.home .lede { color: #3d4454; }
.hero.home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(236 232 225 / 92%) 0%, rgb(236 232 225 / 70%) 38%, rgb(236 232 225 / 0%) 62%); }
.hero-photo { display: none; }
@media (max-width: 860px) {
  .hero.home { display: block; min-height: 0; background-image: none; background-color: #ece8e1; }
  .hero.home::before { display: none; }
  .hero.home .wrap { padding: 48px 0 28px; }
  .hero-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
}

/* ---------- 본문 2단: 견본 + 설명 목록 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.split.rev > :first-child { order: 2; }
.proof { padding: clamp(20px, 3vw, 36px); border-radius: 4px; background: var(--proof); }
.photo { width: 100%; height: auto; border-radius: 4px; background: var(--mist); }
.photo-cap { margin-top: 10px; color: var(--ink-4); font-size: 13px; }
/* 사진·견본 칸은 옆 글 칸과 높이를 맞춘다 (넓은 화면) */
.split:has(> .media) { align-items: stretch; }
figure.media { margin: 0; }
.media { display: flex; flex-direction: column; }
.media .photo { flex: 1; height: 0; min-height: 340px; object-fit: cover; }
.media .proof { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.points { margin-top: 32px; border-top: 1.5px solid var(--ink); }
.points > div { padding: 22px 0 24px; border-bottom: 1px solid var(--hair); }
.points h3 { font-size: 18px; font-weight: 700; }
.points p { margin-top: 8px; max-width: 30em; color: var(--ink-3); font-size: 15.5px; line-height: 1.75; }
.points b.n { display: inline-block; min-width: 28px; color: var(--ink-4); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 주문 목록 견본 (실제 화면을 단순하게 옮긴 표) */
.sheet-sample { background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgb(28 34 48 / 8%); overflow: hidden; font-size: 13px; }
.sheet-sample .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 11px 14px; border-bottom: 1px solid var(--hair); color: var(--ink-4); font-size: 12.5px; }
.sheet-sample .bar b { margin-right: auto; color: var(--ink); font-size: 13.5px; }
.sheet-sample .bar .on { color: var(--ink); font-weight: 600; }
.win-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.win-table th { padding: 8px 12px; text-align: left; font-weight: 600; color: var(--ink-4); font-size: 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.win-table td { padding: 10px 12px; border-bottom: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; overflow-wrap: anywhere; }
.win-table tr:last-child td { border-bottom: 0; }
.win-table td b { display: block; font-weight: 600; color: var(--ink); }
.win-table td small { display: block; color: var(--ink-4); font-size: 11.5px; }
.win-table td.box { width: 1%; white-space: nowrap; color: var(--ink-4); }
.win-table tr.grp td { background: #f6f8fb; }
.win-table tr.grp td.box { color: var(--blue); font-weight: 700; box-shadow: inset 2px 0 var(--blue); }
.win-table tr.grp:first-child td { border-bottom-color: #f6f8fb; }
.win-table tr.grp:first-child td[rowspan] { border-bottom-color: var(--hair); }
.tag { display: inline-block; padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; font-size: 11.5px; font-weight: 600; line-height: 18px; color: var(--ink-3); }
.tag.blue { color: var(--blue); } .tag.green { color: var(--green); } .tag.amber { color: var(--amber); } .tag.red { color: var(--red); }

/* ---------- 숫자 ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.figure { padding: 22px 20px 4px 0; }
.figure strong { display: block; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: 8px; color: var(--ink-3); font-size: 14px; line-height: 1.55; }

/* ---------- 요금 요약 ---------- */
.price-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.price-table th { font-size: 17px; font-weight: 700; white-space: nowrap; }
.price-table td { color: var(--ink-3); font-size: 15px; }
.price-table td.won { padding-right: 0; color: var(--ink); font-weight: 700; white-space: nowrap; text-align: right; }

/* ---------- 몰 목록 ---------- */
.malls { display: grid; gap: 32px; }
.mall-group h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-4); }
.mall-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mall { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500; }
a.mall:hover { border-color: var(--ink); }
.mall .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--mist); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.mall.api .dot { background: var(--ink); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 99px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--rule); }
.legend i.api { background: var(--ink); box-shadow: none; }
/* 연동 쇼핑몰 표 */
.mall-table-wrap { border-top: 1.5px solid var(--ink); }
.mall-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.mall-table thead th { padding: 12px 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-4); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.mall-table td, .mall-table tbody th { padding: 11px 12px; border-bottom: 1px solid var(--hair); text-align: left; color: var(--ink-2); vertical-align: middle; }
.mall-table tbody th { font-weight: 600; color: var(--ink); }
.mall-table tbody th a:hover { border-bottom: 1.5px solid var(--ink); }
.mall-table thead th:first-child, .mall-table tbody th { padding-left: 0; }
.mall-table tr.grp th { padding: 26px 0 8px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 700; color: var(--ink-4); }
.mall-table tbody:first-of-type tr.grp th { padding-top: 14px; }
.mall-table td.off { color: var(--rule); }
.mall-table .how { display: inline-block; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.mall-table .how.api { border-color: var(--ink); background: var(--ink); color: #fff; }
.mall-table .tag { margin-left: 6px; font-size: 11px; line-height: 16px; vertical-align: 1px; }
.section.mist .mall-table tr.grp th { background: var(--mist); }
.mall-note { margin: 16px 0 0; color: var(--ink-4); font-size: 13px; line-height: 1.7; }
.mp .mall-table-wrap { margin-top: 28px; }
.malls-more { margin: 28px 0 0; font-size: 15px; }
.malls-more a { font-weight: 600; border-bottom: 1.5px solid var(--ink); }

/* ---------- 어두운 띠 (예전 페이지 호환) ---------- */
.dark { background: var(--ink); color: #eef0f3; }
.dark .lede, .dark p { color: #c4c9d3; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checks svg { flex: none; width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 질문 ---------- */
.faq { max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--ink-4); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 22px; max-width: 46em; line-height: 1.8; color: var(--ink-3); }

/* ---------- 마지막 안내 / 꼬리말 ---------- */
.final { background: var(--mist); }
.final .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.final .btns { margin-top: 0; }
.foot { padding: 36px 0 48px; border-top: 1px solid var(--hair); color: var(--ink-4); font-size: 13px; }
.foot a:hover { color: var(--ink); }
.foot-biz { display: grid; gap: 10px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--ink-3); }
.foot-biz p { line-height: 1.75; }

/* ---------- 다운로드 페이지 ---------- */
.dl-card .core { padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; }
.dl-head { display: flex; align-items: center; gap: 18px; }
.app-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; }
.app-icon img { width: 64%; height: 64%; }
.dl-head .app-icon { width: 64px; height: 64px; }
.app-icon.is-ext { position: relative; }
.app-icon.is-ext::after { content: ""; position: absolute; top: 8%; right: 8%; width: 20%; height: 20%; border-radius: 50%; background: #5b8def; }
.dl-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.dl-meta div { padding: 14px 16px 0 0; }
.dl-meta small { display: block; color: var(--ink-4); font-size: 12.5px; }
.dl-meta b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 .core { padding: 24px; }
.steps3 .num { display: block; color: var(--ink-4); font-size: 14px; font-weight: 700; }
.steps3 h3 { margin: 10px 0 0; font-size: 18px; font-weight: 700; }
.steps3 p { margin: 8px 0 0; color: var(--ink-3); font-size: 15px; line-height: 1.7; }
.sha { font: 12px ui-monospace, Consolas, monospace; letter-spacing: 0; color: var(--ink-3); overflow-wrap: anywhere; }

/* 등장 효과는 쓰지 않는다 (예전 마크업 호환용 클래스만 남김) */
.reveal { opacity: 1; transform: none; }

/* ---------- 쇼핑몰 연동 안내 페이지 (/malls, /malls/:code) ---------- */
.mp { padding: 56px 0 88px; }
.mp .wrap { width: min(880px, 100% - var(--gutter) * 2); }
.mp-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-4); margin-bottom: 20px; }
.mp-crumb a:hover { color: var(--ink); }
.mp h1 { margin: 10px 0 0; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.2; letter-spacing: -.035em; }
.mp-lede { margin: 16px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink-3); }
.mp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.mp-h2 { margin: 52px 0 16px; padding-top: 18px; border-top: 1.5px solid var(--ink); font-size: 22px; letter-spacing: -.025em; }
.mp-h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-4); }
.mp .malls { margin-top: 24px; }
.mp-caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 24px; }
.mp-caps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 500; }
.mp-caps li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--mist); font-size: 12px; }
.mp-caps li.on b { background: var(--ink); color: #fff; }
.mp-caps li.off { color: var(--ink-4); }
.mp-caps small { width: 100%; margin-left: 32px; color: var(--ink-4); font-size: 12.5px; font-weight: 400; }
.mp-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.mp-steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.7; }
.mp-steps li::before { content: counter(s) "."; flex: none; min-width: 20px; color: var(--ink-4); font-weight: 700; }
.mp-note { padding: 16px 18px; border-left: 3px solid var(--ink); background: var(--mist); line-height: 1.8; color: var(--ink-2); }
.mp .faq { max-width: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.rev > :first-child { order: 0; }
  .media .photo { flex: none; height: auto; min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 767px) {
  .nav { height: 56px; }
  .sheet { inset: 56px 0 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .steps3, .dl-meta { grid-template-columns: 1fr; }
  .btns .pill { flex: 1 1 auto; }
  .hide-m { display: none; }
  .price-table .hide-m { display: none; }
  .mall-table { font-size: 13.5px; }
  .mall-table td, .mall-table tbody th, .mall-table thead th { padding-left: 8px; padding-right: 8px; }
  .mall-table thead th:first-child, .mall-table tbody th { padding-left: 0; }
}
