/* 제로피싱 소개 사이트 — 빌드 도구 없음, 외부 리소스 없음 (tools/build_site.py 가 HTML 생성) */

@font-face {
  font-family: "Pretendard";
  src: url("fonts/PretendardVariable.woff2") format("woff2-variations"), url("fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 2026-11-30 개편(D30): 앱 아이콘·시작 화면과 같은 밤하늘 남색 + 푸른 빛. 항상 어두운 디자인 */
  --brand: #5cc8ff;        /* 버튼·링크 (남색 바탕 대비 8.9:1) */
  --brand-strong: #8ed9ff;
  --accent: #5cc8ff;
  --mint: #12406f;         /* 아이콘 칩 바탕 (예전 이름 유지) */
  --mint-soft: #0c2747;
  --ink: #e8f1fb;
  --ink-2: #c3d4ea;        /* 본문 보조 (대비 11:1) */
  --muted: #9fb6d3;        /* 캡션 (대비 7:1) */
  --line: #1e4a7a;
  --bg: #071a33;
  --surface: #0c2747;
  --on-brand: #04162b;
  --danger: #ff5a5f;
  --danger-soft: #3d1424;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 40px -10px rgba(92, 200, 255, .18);
  --radius: 22px;
  --radius-lg: 32px;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: radial-gradient(120% 60% at 50% -10%, #133f6e 0%, var(--bg) 55%, #040c19 100%) fixed, var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- 머리글 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--mint-soft); color: var(--ink); }
.nav .lang { border: 1px solid var(--line); margin-left: 6px; }
.nav .nav-link { display: none; }
@media (min-width: 860px) { .nav .nav-link { display: inline-block; } }

/* ---------- 공통 ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--brand); text-transform: uppercase; margin-bottom: 14px; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.22; margin: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 820; }
h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 750; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin: 22px 0 0; max-width: 36em; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { color: var(--on-brand); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; min-height: 58px;
  border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; opacity: .78; line-height: 1.2; }
.store b { display: block; font-size: 17px; line-height: 1.25; }
.store[aria-disabled="true"] { cursor: default; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 72vw; height: 72vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
/* 앱 시작 화면과 같은 푸른 연기 배경 */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url("img/hero-bg.jpg") center 30% / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero { isolation: isolate; }
.hero .wrap { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-visual { position: relative; display: flex; justify-content: center; }

/* 휴대폰 목업 (실제 앱 화면 캡처) */
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 720 / 1565;
  border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #1f2b29, #0b1312);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #071a33; }
.phone.sm { width: min(280px, 72vw); }
.float-card {
  position: absolute; display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); max-width: 270px; font-size: 14px; line-height: 1.5;
}
.float-card b { display: block; font-size: 15px; }
.float-card span { color: var(--muted); }
.float-card .dot { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.float-card .dot.ok { background: var(--mint); color: var(--brand); }
.float-card svg { width: 20px; height: 20px; }
.hero .float-card.a { left: max(-8px, calc(50% - 300px)); top: 60%; }
.hero .float-card.b { bottom: 6%; }
.hero .float-card.b { right: max(-8px, calc(50% - 300px)); bottom: 14%; }
@media (max-width: 520px) {
  .hero .float-card { position: static; margin-top: 14px; max-width: none; }
  .hero-visual { flex-direction: column; align-items: center; }
}

/* ---------- 순간 카드 ---------- */
.moments { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--brand); margin-bottom: 22px; }
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); margin: 12px 0 0; }
.card .tag { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* ---------- 3단계 ---------- */
.steps { display: grid; gap: clamp(56px, 8vw, 104px); }
.step { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .step { grid-template-columns: 1fr 1fr; }
  .step.flip .step-visual { order: -1; }
}
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 20px; }
.step p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }
.step ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.step li { display: flex; gap: 12px; color: var(--ink-2); }
.step li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("check.svg") center / 14px no-repeat; }
.step-visual { display: flex; justify-content: center; }

/* ---------- 가족 ---------- */
.family { background: linear-gradient(180deg, var(--mint-soft), transparent); }
.family-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .family-grid { grid-template-columns: 1fr 1fr; } }
.chat { display: grid; gap: 14px; max-width: 460px; margin: 0 auto; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start; }
.bubble .who { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--mint); color: var(--brand); }
.bubble.alert .who { background: var(--danger-soft); color: var(--danger); }
.bubble b { display: block; }
.bubble span { color: var(--muted); font-size: 15px; }
.bubble.indent { margin-left: 36px; }
.facts { display: grid; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.facts li { display: flex; gap: 12px; color: var(--ink-2); }
.facts li::before { content: "•"; color: var(--brand); font-weight: 900; }

/* ---------- 약속 ---------- */
.promise { background: linear-gradient(160deg, #0f3460, #0a2140); color: #e8f1fb; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); position: relative; overflow: hidden; }
.promise::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 200, 255, .25), transparent); }
.promise h2 { color: #fff; }
.promise .lead { color: #c3d4ea; }
.promise .eyebrow { color: #5cc8ff; }
.promise-grid { display: grid; gap: 28px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); position: relative; z-index: 1; }
.promise-grid h3 { color: #fff; font-size: 20px; }
.promise-grid p { color: #b6c8df; margin: 10px 0 0; font-size: 16px; }
.promise a { color: #5cc8ff; }

/* ---------- 요금 ---------- */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 28px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.price { margin: 22px 0 6px; font-size: 40px; font-weight: 820; letter-spacing: -.03em; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); font-size: 16px; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.plan li.soon { color: var(--muted); }
.plan li.soon::before { content: "·"; }

/* ---------- 자주 묻는 질문 ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* ---------- CTA·바닥글 ---------- */
.cta { text-align: center; }
.cta .store-row { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--brand); }
.site-footer p { margin: 6px 0; }
.hotline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hotline span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* ---------- 문서 (약관·방침·지원) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin: 8px 0 28px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 26px); margin: 52px 0 14px; padding-top: 8px; scroll-margin-top: 90px; }
.doc h3 { font-size: 19px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--ink-2); overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc blockquote { margin: 0 0 28px; padding: 16px 20px; border-radius: 16px; background: #33260d; color: #f8d996; border: 1px solid #6b5320; font-weight: 600; }
.doc blockquote p { margin: 0; color: inherit; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--mint-soft); padding: 1px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--mint-soft); font-weight: 700; color: var(--ink); }
.doc tr:last-child td { border-bottom: 0; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 0 0 12px; }
.doc .toc ol { margin: 6px 0 0; columns: 2 220px; }
.doc .toc a { text-decoration: none; }

/* ---------- 등장 애니메이션 (움직임 줄이기 설정 존중) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; }
  .js .reveal.d2 { transition-delay: .16s; }
  .js .reveal.d3 { transition-delay: .24s; }
  .hero .float-card.a { animation: bob 6s ease-in-out infinite; }
  .hero .float-card.b { animation: bob 7s ease-in-out -2s infinite; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}
@media print { .site-header, .site-footer { display: none; } body { background: #fff; } }
.note.center { text-align: center; }
/* 아주 좁은 화면(글자 200% 확대 포함)에서 그리드가 넘치지 않게 */
.step, .steps, .family-grid, .hero .wrap { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .family-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.step > *, .family-grid > *, .hero .wrap > * { min-width: 0; }
.bubble > div { min-width: 0; }
.chat, .step-visual > * { max-width: 100%; }
@media (max-width: 360px) { .bubble.indent { margin-left: 16px; } .bubble { padding: 14px; gap: 10px; } .bubble .who { width: 34px; height: 34px; } }
.plan { min-width: 0; padding-left: clamp(18px, 5vw, 28px); padding-right: clamp(18px, 5vw, 28px); }
.plan li, .card p, .faq summary { overflow-wrap: anywhere; min-width: 0; }
.bubble { min-width: 0; } .bubble b, .bubble span, .float-card b, .float-card span { overflow-wrap: anywhere; }
.doc .toc li { margin: 0 0 8px; break-inside: avoid; }
.site-header .wrap { flex-wrap: wrap; gap: 6px 16px; padding-top: 6px; padding-bottom: 6px; } .brand { min-width: 0; }
