/* kinguard 소개 사이트 – 토큰은 planning/common/design-system.md §2·§5 값 그대로.
   글꼴은 외부 요청 없이(CSP 'self') 시스템 글꼴 스택. Pretendard/DM Sans를 자체 호스팅하려면 assets/에 woff2를 넣고 @font-face 추가. */

:root {
  --bg: #FCFBF9;
  --surface: #FFFFFF;
  --sunken: #F6F3F0;
  --border: #F0EAE5;
  --border-strong: #DDD3CC;
  --text: #3D3535;
  --muted: #766A66;
  --primary: #1F4FB8;
  --primary-pressed: #183E91;
  --primary-soft: #EEF3FF;
  --on-primary: #FFFFFF;
  --orange: #FF9233;
  --orange-soft: #FFF1E7;
  --urgent: #B42318;   --urgent-soft: #FEF3F2;
  --caution: #B54708;  --caution-soft: #FFF6E5;
  --ok: #027A48;       --ok-soft: #ECFDF3;
  --info: #1F4FB8;     --info-soft: #EEF3FF;
  --neutral: #766A66;  --neutral-soft: #F6F3F0;
  --shadow: 0 1px 2px rgba(61, 53, 53, .06);
  --r-card: 16px; --r-btn: 14px; --r-input: 12px; --r-pill: 999px;
  --font: "Pretendard", "DM Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1715;
    --surface: #24201E;
    --sunken: #2E2926;
    --border: #3A3431;
    --border-strong: #5A514C;
    --text: #F2F0EE;
    --muted: #B8AEA9;
    --primary: #7EA2F2;
    --primary-pressed: #A9C1F6;
    --primary-soft: #1D2742;
    --on-primary: #10204A;
    --orange-soft: #3A2A1E;
    --urgent: #F97066;   --urgent-soft: #3A1714;
    --caution: #FDB022;  --caution-soft: #3A2A0E;
    --ok: #47CD89;       --ok-soft: #0F2E1F;
    --info: #7EA2F2;     --info-soft: #1D2742;
    --neutral: #B8AEA9;  --neutral-soft: #2E2926;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-pressed); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 4px var(--bg); border-radius: 4px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.main { padding-top: 32px; padding-bottom: 56px; max-width: 820px; }
.main:focus { outline: none; }
.main-wide:focus { outline: none; }
.main-wide > .wrap { padding-bottom: 56px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: var(--r-btn); font-weight: 700; }
.skip:focus { top: 8px; color: var(--on-primary); }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-lg { font-size: 1.75rem; justify-content: center; }
.brand-lg .logo-mark { width: 40px; height: 40px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-weight: 600; font-size: .9375rem; padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: var(--r-pill); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.site-nav a:hover { background: var(--sunken); }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: var(--r-btn); font: 700 1.0625rem/1.3 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9375rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--sunken); color: var(--text); }
.btn[disabled] { background: var(--sunken); color: var(--muted); border-color: var(--border); cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }

.play-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #5f6368; border-radius: 10px; padding: 8px 16px 8px 12px; text-decoration: none; min-height: 52px; }
.play-badge:hover { color: #fff; background: #1f1f1f; }
.play-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.play-badge small { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.play-badge strong { font-size: 1.0625rem; }

/* hero */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--border); padding: 40px 0 48px; margin-bottom: 16px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } .hero { padding: 64px 0 72px; } }
.eyebrow { color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 40em; }
.hero .lead { color: var(--text); }
.hero-note { color: var(--muted); font-size: .9375rem; }
.hero-art { display: flex; justify-content: center; }
.phone { width: min(300px, 100%); aspect-ratio: 9 / 16; border-radius: 36px; background: var(--sunken); border: 10px solid var(--text); padding: 20px 14px; display: flex; align-items: center; position: relative; }
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 60px; height: 6px; border-radius: 3px; background: var(--border-strong); transform: translateX(-50%); }
.phone-alert { width: 100%; background: var(--surface); border-radius: var(--r-card); border-left: 6px solid var(--urgent); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 24px rgba(61,53,53,.12); }
.phone-alert strong { font-size: 1.0625rem; line-height: 1.35; }
.phone-time { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.phone-btn { margin-top: 4px; background: var(--primary); color: var(--on-primary); border-radius: 12px; padding: 10px; text-align: center; font-weight: 700; }

/* blocks & cards */
.block { margin: 48px 0; }
.main .block { margin: 40px 0; }
.page-head { margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); }
.card-soft { background: var(--primary-soft); border-color: transparent; }
.card h3 { margin-top: 0; }
.cards-3, .cards-2, .levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-2, .levels { grid-template-columns: repeat(2, 1fr); } }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 12px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { flex: none; color: var(--primary); background: var(--primary-soft); border-radius: 12px; padding: 10px; width: 44px; height: 44px; }
.feature p, .level p:last-child { margin-bottom: 0; color: var(--muted); }
.level { border-left: 4px solid var(--neutral); }
.level-urgent { border-left-color: var(--urgent); }
.level-caution { border-left-color: var(--caution); }
.level-noresp { border-left-color: var(--caution); }
.level-device { border-left-color: var(--info); }
.level-ex { font-weight: 700; margin: 12px 0 4px; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: .875rem; }
.badge .icon { width: 16px; height: 16px; }
.badge-urgent { background: var(--urgent-soft); color: var(--urgent); }
.badge-caution, .badge-noresp { background: var(--caution-soft); color: var(--caution); }
.badge-device, .badge-info { background: var(--info-soft); color: var(--info); }
.price-big { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; margin: 4px 0 8px; font-feature-settings: "tnum"; }
.price-unit { font-size: 1rem; font-weight: 600; color: var(--muted); }
.app-grid { display: grid; gap: 16px; margin: 16px 0; }
@media (min-width: 720px) { .app-grid { grid-template-columns: 1fr 1fr; } }
.app-grid .card { display: flex; flex-direction: column; align-items: flex-start; }
.app-grid .card p { flex: 1; }

/* notices */
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-card); padding: 16px 20px; margin: 24px 0; }
.notice p:last-child { margin-bottom: 0; }
.notice-icon { flex: none; margin-top: 2px; }
.notice-urgent { background: var(--urgent-soft); color: var(--text); border: 1px solid var(--urgent); }
.notice-urgent .notice-icon, .notice-urgent strong { color: var(--urgent); }
.notice-caution { background: var(--caution-soft); border: 1px solid var(--caution); display: block; }
.notice-caution strong { color: var(--caution); }
.notice-info { background: var(--info-soft); border: 1px solid var(--info); display: block; }
.notice-compact { font-size: .9375rem; margin-top: 0; }
.note { color: var(--muted); font-size: .9375rem; }

/* lists, toc, tables */
.steps { padding-left: 1.4em; }
.steps li, .bullets li { margin-bottom: .6em; }
.bullets { padding-left: 1.2em; }
.checks { list-style: none; padding: 0; margin: 16px 0 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.checks .icon { flex: none; color: var(--ok); margin-top: 3px; }
.toc, .region-tabs { margin: 0 0 8px; }
.toc ul, .region-tabs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a, .region-tabs a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); text-decoration: none; font-size: .9375rem; font-weight: 600; background: var(--surface); }
.region-tabs a { min-height: 44px; padding: 10px 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); margin: 16px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; }
caption { text-align: left; padding: 12px 16px 0; color: var(--muted); font-size: .875rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--sunken); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.dl dt { font-weight: 700; margin-top: 16px; }
.dl dd { margin: 4px 0 0; color: var(--muted); }

.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style-position: outside; min-height: 52px; }
.faq summary::marker { color: var(--primary); }
.faq-a { padding: 0 20px 4px; color: var(--text); }
.region { scroll-margin-top: 120px; border-top: 1px solid var(--border); padding-top: 24px; }
[id] { scroll-margin-top: 120px; }

/* form */
.form { display: grid; gap: 18px; padding: 24px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .875rem; margin: 0 0 6px; }
.req { color: var(--muted); font-weight: 600; font-size: .875rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-input);
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.consent h3 { font-size: 1rem; }
.consent table { min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0 48px; margin-top: 24px; }
.foot-links { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-block; padding: 6px 0; font-weight: 600; }
.foot-meta { color: var(--muted); font-size: .875rem; margin-bottom: 6px; }
.foot-meta .lang-switch { padding: 0; min-height: 0; display: inline; }

/* root & 404 */
.center-page { text-align: center; padding-top: 72px; }
.center-page section { margin: 32px auto; max-width: 32em; }
.lang-choice { list-style: none; padding: 0; display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .site-footer, .toc, .region-tabs { display: none; } body { background: #fff; color: #000; } }
