/* 날씨똑똑 소개·정책 페이지 공용 스타일 (앱 Theme.kt 색상과 맞춤) */
:root {
  --main: #4a90e2;
  --sub: #7cc8e8;
  --sun: #f5c85b;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #e9eff6;
  --text: #283747;
  --muted: #5a6b7d;
  --line: #dbe4ee;
  --accent-bg: #dcebfb;
  --accent-text: #0d3a6b;
  --shadow: 0 1px 2px rgba(40, 55, 71, .06), 0 8px 24px rgba(40, 55, 71, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --main: #7db3f0;
    --sub: #7cc8e8;
    --bg: #121821;
    --surface: #1b2330;
    --surface-2: #232d3c;
    --text: #e3e9f0;
    --muted: #9fb0c2;
    --line: #2c3848;
    --accent-bg: #24476f;
    --accent-text: #dcebfb;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --main: #7db3f0;
  --sub: #7cc8e8;
  --bg: #121821;
  --surface: #1b2330;
  --surface-2: #232d3c;
  --text: #e3e9f0;
  --muted: #9fb0c2;
  --line: #2c3848;
  --accent-bg: #24476f;
  --accent-text: #dcebfb;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--main); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* 헤더 */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav { display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* 히어로 */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-text); background: var(--accent-bg); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--main); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* 잠금화면 목업 */
.phone {
  width: 280px; max-width: 100%; aspect-ratio: 9 / 19.5; margin: 0 auto;
  border-radius: 40px; padding: 10px; background: #1d2530; box-shadow: 0 20px 50px rgba(20, 40, 70, .25);
}
.screen {
  height: 100%; border-radius: 32px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #4a90e2 0%, #7cc8e8 62%, #b9d9ef 100%);
  color: #fff; text-align: center; padding: 34px 18px 18px; display: flex; flex-direction: column;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.screen .time { font-size: 54px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.screen .date { font-size: 13px; opacity: .95; margin-top: 6px; }
.screen .place { font-size: 13px; margin-top: 2px; }
.screen .sun { width: 58px; height: 58px; margin: 26px auto 6px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 10px rgba(245, 200, 91, .25); }
.screen .temp { font-size: 58px; font-weight: 300; line-height: 1.1; }
.screen .cond { font-size: 14px; }
.screen .minmax { font-size: 13px; margin-top: 4px; opacity: .95; }
.screen .chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: auto; }
.screen .chip { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); text-shadow: none; }
.screen .chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5bd37a; margin-right: 5px; vertical-align: 1px; }
.screen .msg { font-size: 12px; margin-top: 10px; }
.screen .swipe { font-size: 11px; opacity: .85; margin-top: 12px; }

/* 섹션 */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.35; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-text); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* 표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* 정책 문서 */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.3; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; padding-top: 8px; scroll-margin-top: 16px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 4px; }
.summary { background: var(--accent-bg); color: var(--accent-text); border-radius: 16px; padding: 20px 22px; margin: 0 0 28px; }
.summary strong { display: block; margin-bottom: 6px; }
.summary ul { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 8px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--main); text-decoration: underline; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; font-size: 14px; }
  .toc ol { columns: 1; }
  section { padding: 44px 0; }
}
