/* app-landing — 앱 랜딩·정책 공용 틀
 * 앱마다 다른 것은 sites/<호스트>/app.css 의 변수(--accent 등)뿐이다.
 * 외부 글꼴·스크립트 없음(CSP default-src 'none' 아래에서 그대로 동작).
 */
:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --border: #e4e7ee;
  --text: #14171f;
  --text-soft: #4a5263;
  --text-faint: #7b8394;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --hero-bg: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  --hero-text: var(--text);
  --hero-soft: var(--text-soft);
  --icon-glow: color-mix(in srgb, var(--accent) 35%, transparent);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e14;
    --surface: #141720;
    --surface-2: #1b1f2a;
    --border: #262b38;
    --text: #eef0f5;
    --text-soft: #b3bacb;
    --text-faint: #7f889c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* 헤더 */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--text-soft); font-size: .92rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
@media (max-width: 560px) { .nav .opt { display: none; } }

/* 히어로 */
.hero { background: var(--hero-bg); color: var(--hero-text); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); line-height: 1.18; margin: 18px 0 14px; letter-spacing: -.02em; font-weight: 850; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.08rem; color: var(--hero-soft); margin: 0 0 26px; max-width: 34em; }
.hero .fine { font-size: .85rem; color: var(--hero-soft); opacity: .85; margin: 16px 0 0; }
.hero-art { display: flex; justify-content: center; }
.app-icon {
  width: min(260px, 70vw); aspect-ratio: 1; border-radius: 22.5%;
  box-shadow: 0 24px 60px var(--icon-glow), 0 2px 6px rgba(0, 0, 0, .2);
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 44px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .app-icon { width: 148px; }
  .cta { justify-content: center; }
}

/* 스토어 버튼 */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 20px 11px 16px;
  border-radius: 14px; background: #0b0d12; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store small { font-size: .72rem; opacity: .8; }
.store b { font-size: 1.05rem; font-weight: 700; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #0b0d12; border-color: transparent; } }

/* 섹션 */
.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .kicker { font-size: .85rem; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 8px 0 10px; letter-spacing: -.01em; line-height: 1.3; }
.section-head p { color: var(--text-soft); margin: 0 auto; max-width: 36em; }
@media (max-width: 560px) { .section { padding: 52px 0; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.feature .ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.06rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.feature ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-soft); font-size: .93rem; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-block; padding: 8px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); font-size: .93rem; font-weight: 600;
}

/* 다운로드 띠 */
.download { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 32px; }
.download h2 { margin: 0 0 6px; font-size: 1.5rem; }
.download p { margin: 0 0 20px; color: var(--text-soft); }
.qr { margin: 0; text-align: center; }
.qr img { width: 132px; height: 132px; border-radius: 12px; background: #fff; padding: 6px; border: 1px solid var(--border); }
.qr figcaption { font-size: .8rem; color: var(--text-faint); margin-top: 6px; }
@media (max-width: 700px) { .download { grid-template-columns: 1fr; text-align: center; } .download .cta { justify-content: center; } .qr { display: none; } }

.contact { text-align: center; }
.contact p { margin: 0; color: var(--text-soft); }

/* 푸터 */
.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 36px; font-size: .88rem; color: var(--text-faint); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot .links a { color: var(--text-soft); font-weight: 600; }
.foot p { margin: 0; }
.foot a { color: inherit; }

/* 정책 문서 */
.doc-head { padding: 44px 0 8px; }
.doc-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.3; }
.doc-head .sub { color: var(--text-faint); font-size: .9rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.tabs a {
  padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
}
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.doc { margin: 24px 0 64px; padding: 28px; }
.doc h2 { font-size: 1.15rem; margin: 32px 0 10px; padding-top: 4px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-soft); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.doc .info { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc th { width: 30%; background: var(--surface-2); color: var(--text); font-weight: 700; }
.doc td { color: var(--text-soft); }
.doc .notice {
  margin: 12px 0; padding: 12px 16px; border-radius: 12px; font-size: .93rem;
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent); color: var(--text);
}
.doc .faint { color: var(--text-faint); font-size: .85rem; }
@media (max-width: 560px) {
  .doc { padding: 20px 16px; }
  .doc th, .doc td { display: block; width: 100%; }
  .doc th { border-bottom: 0; padding-bottom: 4px; }
  .doc td { padding-top: 4px; }
}
