/* KKOOK web (kkookkorea.com — home · guides · about · privacy). Same brand as the app (..\..\app\app.css):
 * red #CD2E3A only for the logo, primary buttons and the current menu item · white page · ink text · Pretendard ·
 * 지원금모야 토스 규격 (card radius 20 · button 56/48 radius 14 · 20px gutter). Mobile first (390px); from 760px the page
 * sits in a centred 900px column. No ads (not approved yet), no animation beyond colour changes. */
:root {
  color-scheme: light;
  --grey50: #f9fafb; --grey100: #f2f4f6; --grey200: #e5e8eb; --grey300: #d1d6db; --grey400: #b0b8c1;
  --grey500: #8b95a1; --grey600: #6b7684; --grey700: #4e5968; --grey800: #333d4b;
  --red: #cd2e3a; --red-dark: #a8232e; --red-weak: #fdecee;
  --green-ink: #15803d;
  --text: #1a1a1a; --text2: var(--grey700); --caption: var(--grey600); --line: var(--grey200);
  --r-card: 20px; --r-btn: 14px; --r-chip: 999px;
  --gutter: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #fff; color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
:lang(ko) { word-break: keep-all; }
:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif; line-break: strict; }
h1, h2, h3, p { margin: 0; }
a { color: var(--text); }
svg.arw { width: 18px; height: 18px; flex: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px var(--red); font-weight: 600; }
.skip:focus { left: 8px; }
.muted { color: var(--text2); }
.hint { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--caption); text-align: center; }
.ui-ico { display: inline-block; flex: none; width: 24px; height: 24px; vertical-align: middle; object-fit: contain; }
.ui-ico.inline { width: 20px; height: 20px; vertical-align: -4px; }

/* ---------- frame ---------- */
.wrap { width: 100%; max-width: 940px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { display: block; height: 22px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav > a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px;
  color: var(--text2); font-size: 15px; font-weight: 600; text-decoration: none;
}
.top-nav > a:not(.btn):hover { color: var(--text); background: var(--grey100); }
.top-nav > a[aria-current="page"] { color: var(--red-dark); }
.top-nav .btn { margin-left: 6px; }
@media (max-width: 400px) { .top-nav a[href="/about/"] { display: none; } }

main { flex: 1; padding-top: 24px; padding-bottom: 24px; }

.foot { margin-top: 32px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--caption); font-size: 13px; line-height: 1.55; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 6px 0 2px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.foot nav a:hover { color: var(--text); }
.foot .copy { color: var(--grey500); }

/* ---------- buttons · cards · chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--r-btn);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--grey100); color: var(--grey800); transition: background-color .15s;
}
.btn.block { display: flex; width: 100%; min-height: 56px; margin-top: 20px; font-size: 17px; }
.btn.small { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.ghost:hover { background: var(--grey200); }
.btn + .btn.block { margin-top: 10px; }
.card { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.card > p { margin-top: 8px; color: var(--text2); font-size: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: var(--r-chip);
  background: var(--grey100); color: var(--grey700); font-size: 13px; font-weight: 600; line-height: 1.4;
}
.chip .ui-ico { width: 18px; height: 18px; }
.count { padding: 1px 9px; border-radius: var(--r-chip); background: var(--grey100); color: var(--grey700); font-size: 13px; font-weight: 600; line-height: 1.5; }

/* ---------- home ---------- */
.hero { padding: 8px 0 8px; }
.hero-mark { display: block; width: 64px; height: 64px; margin-bottom: 18px; }
.hero h1 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.lead { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--text2); }
.hero-btn { margin-top: 24px; }
.sec { margin-top: 44px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-h h2 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.sec-lead { margin-top: 4px; font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; }
.more:hover { text-decoration: underline; }

.g-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.g-card a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; text-decoration: none; color: var(--text);
  transition: border-color .15s, background-color .15s;
}
.g-card a:hover { border-color: var(--grey300); background: var(--grey50); }
.g-card h3 { font-size: 17px; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.g-card p { font-size: 15px; line-height: 1.5; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-meta { margin-top: auto; font-size: 13px; color: var(--caption); }

.stages { display: grid; gap: 12px; margin-top: 14px; }
.stage { padding: 18px 20px 8px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.stage-h { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.stage-h > span:first-of-type { flex: 1; display: flex; flex-direction: column; }
.stage-h small { font-size: 14px; font-weight: 500; color: var(--caption); }
.stage-h .ui-ico { width: 36px; height: 36px; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--grey100); }
.rows a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 0; text-decoration: none; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.45; }
.rows a:hover .row-t { text-decoration: underline; text-underline-offset: 2px; }
.rows a svg { color: var(--grey400); }
.row-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.row-s { font-size: 14px; font-weight: 400; color: var(--text2); }
.rows .empty { padding: 10px 0 14px; }
.rows .empty .row-t { font-size: 15px; color: var(--text2); line-height: 1.5; }
.ext { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--text); font-weight: 600; }

.install h2 .ui-ico { width: 30px; height: 30px; }
.install .two { display: grid; gap: 4px 24px; margin-top: 8px; }
.install h3 { margin-top: 14px; font-size: 16px; font-weight: 700; }
.install ol { margin: 6px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--grey800); }
.install li + li { margin-top: 4px; }

/* ---------- list / simple pages ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 12px; font-size: 14px; color: var(--caption); }
.crumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text2); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.stages-all { margin-top: 24px; }
.stages-all .stage-h { font-size: 20px; }
.cta { margin-top: 28px; }
.cta h2 .ui-ico { width: 30px; height: 30px; }
.nf .btn.block:first-of-type { margin-top: 28px; }

/* ---------- guide article ---------- */
.prose h1 { font-size: 28px; line-height: 1.32; font-weight: 800; letter-spacing: -.025em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.g-head .lead { font-size: 18px; }
.byline { margin-top: 12px; font-size: 14px; color: var(--caption); }
.g-body { margin-top: 8px; }
.prose h2 { margin-top: 36px; font-size: 21px; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; }
.prose h3 { margin-top: 24px; font-size: 18px; font-weight: 700; }
.prose p { margin-top: 14px; color: var(--grey800); }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; color: var(--grey800); }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--grey500); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--grey400); }
.prose a:hover { text-decoration-color: currentColor; }
/* numbered steps = 지원금모야 「신청 순서」: grey numbered circles */
.g-body ol { list-style: none; counter-reset: step; padding-left: 0; }
.g-body ol > li { counter-increment: step; position: relative; padding-left: 44px; min-height: 30px; }
.g-body ol > li + li { margin-top: 14px; }
.g-body ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grey100); color: var(--grey800); font-size: 14px; font-weight: 700; line-height: 1;
}
/* > box = short answer / note */
.prose blockquote { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--grey50); border: 1px solid var(--line); }
.prose blockquote p:first-child { margin-top: 0; }
.prose blockquote p, .prose blockquote li { font-size: 16px; }
.prose table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--grey50); font-weight: 700; }

.official { margin-top: 36px; }
.go {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: 10px; padding: 12px 16px;
  border-radius: var(--r-btn); background: var(--grey100); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none !important;
}
.go:hover { background: var(--grey200); }
.ext-row {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 16px; min-height: 64px;
  border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none !important; color: var(--text);
}
.ext-row:hover { background: var(--grey50); }
.ext-row > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ext-row strong { font-size: 16px; }
.ext-row small { font-size: 14px; color: var(--text2); }
.ext-row svg { color: var(--grey500); }
.ext-row .ui-ico { width: 32px; height: 32px; }
.note { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--caption) !important; }
.related { margin-top: 44px; }
.related h2 { font-size: 21px; font-weight: 700; }

/* ---------- privacy / about ---------- */
.doc h1 { margin-bottom: 4px; }
.doc .updated { margin-top: 6px; color: var(--caption); font-size: 14px; }
.doc section + section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc section { scroll-margin-top: 80px; }
.lang-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.lang-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-chip); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text2); }
.lang-links a:hover { color: var(--text); border-color: var(--grey300); }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .hero h1, .page-head h1 { font-size: 36px; }
  .prose h1 { font-size: 32px; }
  .hero-btn, .nf .btn.block, .cta .btn.block { max-width: 380px; }
  .hint { text-align: left; }
}
@media (min-width: 720px) {
  .g-grid { grid-template-columns: 1fr 1fr; }
  .install .two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  main { padding-top: 36px; }
  .stages:not(.stages-all) { grid-template-columns: 1fr 1fr; }
  .g-body, .g-head .lead { font-size: 18px; }
  .prose p, .prose li { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
