/* 부재콜알림 웹페이지 공통 스타일. 외부 글꼴·파일을 쓰지 않습니다. */
:root {
  --bg: #070a1a; --panel: #0d1128; --line: rgba(255, 255, 255, .1);
  --text: #f4f6ff; --text2: #b4bcdf; --text3: #7e88ad;
  --pink: #ff5d8f; --cyan: #5fe3ff; --link: #8fd0ff;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--text); line-height: 1.5; word-break: keep-all;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.logo img { width: 28px; height: 28px; display: block; }

/* ---------- 소개 페이지: 스크롤 스토리 ---------- */
.story { position: relative; height: 1560vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(4, 6, 18, .6) 100%),
    linear-gradient(to bottom, rgba(5, 7, 20, .7), rgba(5, 7, 20, 0) 32%, rgba(5, 7, 20, 0) 70%, rgba(5, 7, 20, .6));
}
.bar { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); z-index: 5; }
.stage header { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.soon { font-size: 13px; color: var(--text2); border: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 14, 36, .5); padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.cap { position: absolute; left: 20px; right: 20px; z-index: 3; opacity: 0; will-change: opacity, transform; text-shadow: 0 2px 24px rgba(4, 6, 18, .9); }
.cap h1 { font-size: clamp(31px, 5.2vw, 62px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 800; }
.cap h2 { font-size: clamp(25px, 4.2vw, 46px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 800; }
.cap p { font-size: clamp(15px, 1.7vw, 19px); color: var(--text2); margin-top: 12px; max-width: 30em; }
.cap em { font-style: normal; background: linear-gradient(100deg, var(--pink), #9d8cff 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--cyan); letter-spacing: .02em; margin-bottom: 14px; }
.step { display: inline-block; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cyan); letter-spacing: .08em; margin-bottom: 12px; }
.hero { top: 84px; }
.cap.low { left: 14px; right: 14px; bottom: max(20px, 4.5vh); padding: 20px 20px 22px; text-shadow: none; background: rgba(8, 11, 30, .68); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.cap.low h2 { font-size: clamp(23px, 3.3vw, 40px); }
.hint { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; text-align: center; font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; color: var(--text); opacity: 0; text-shadow: 0 2px 16px rgba(4, 6, 18, .9); pointer-events: none; }
.hint span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.cta .btn { display: inline-flex; align-items: center; height: 50px; padding: 0 22px; border-radius: 14px; background: #f4f6ff; color: #0b1026; font-weight: 700; font-size: 16px; }

@media (min-width: 900px) {
  .stage header { padding: 22px 40px; }
  .cap { left: 6vw; right: auto; max-width: 560px; }
  .hero { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
  .cap.low { left: 5vw; right: auto; max-width: 540px; bottom: 8vh; padding: 28px 30px 30px; }
}

/* 스크립트를 쓸 수 없을 때: 그림 없이 문구만 차례로 보여 줍니다 */
html:not(.js) .story { height: auto; }
html:not(.js) .stage { position: static; height: auto; padding: 84px 0 40px; }
html:not(.js) .stage canvas, html:not(.js) .shade, html:not(.js) .bar, html:not(.js) .hint { display: none; }
html:not(.js) .cap, html:not(.js) .cap.low { position: static; opacity: 1; display: block; max-width: 720px; margin: 0 20px 20px; }

/* ---------- 푸터 ---------- */
.foot { border-top: 1px solid rgba(255, 255, 255, .08); background: #060816; color: #9aa3c7; font-size: 13.5px; line-height: 1.9; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 36px 20px 56px; }
.foot nav { display: flex; gap: 20px; font-size: 14px; margin-bottom: 18px; }
.foot a { color: #b4bcdf; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot a strong { color: #f4f6ff; font-weight: 700; }
.foot p span { white-space: nowrap; }
.foot .copy { color: #5d668c; }

/* ---------- 문서 본문 (방침·약관·안내) ---------- */
.doc { font-size: 16px; line-height: 1.75; color: var(--text2); }
.doc h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.3; letter-spacing: -0.02em; color: var(--text); }
.doc .meta { margin-top: 8px; font-size: 14px; color: var(--text3); }
.doc .lead { margin-top: 20px; font-size: 17px; color: var(--text); }
.doc h2 { margin-top: 40px; font-size: 20px; line-height: 1.4; color: var(--text); letter-spacing: -0.01em; }
.doc h3 { margin-top: 22px; font-size: 16px; color: var(--text); }
.doc p, .doc ul, .doc ol, .doc .table { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 700; }
.doc .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.doc tr:first-child th, .doc tr:first-child td { border-top: 0; }
.doc th { color: var(--text); font-weight: 700; white-space: nowrap; background: rgba(127, 140, 200, .08); }
.doc .note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(95, 227, 255, .08); border: 1px solid rgba(95, 227, 255, .22); color: var(--text); font-size: 15px; }
.doc .steps { list-style: none; padding: 0; counter-reset: step; }
.doc .steps li { position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 14px; counter-increment: step; }
.doc .steps li + li { margin-top: 10px; }
.doc .steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #06101f; background: var(--cyan); }

/* ---------- 문서 페이지 틀 ---------- */
.page-head { max-width: 800px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-head .back { font-size: 14px; color: var(--text2); text-decoration: none; }
.page-main { max-width: 800px; margin: 0 auto; padding: 28px 20px 88px; }
.lost { min-height: 62vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.lost .code { font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cyan); letter-spacing: .1em; }
.lost .btn { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; margin-top: 26px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: light) {
  body.page { --bg: #ffffff; --panel: #ffffff; --line: #e3e6f0; --text: #141a33; --text2: #4a5273; --text3: #7a829f; --link: #1d5fd6; --cyan: #1aa5c7; }
  body.page .doc .steps li::before { color: #fff; }
}

/* ---------- 레이어 팝업 (개인정보 처리방침·이용약관) ---------- */
.sheet { width: min(760px, calc(100vw - 32px)); max-width: none; height: min(86vh, 900px); max-height: none; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); color: var(--text); overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(3, 5, 14, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.sheet-head strong { font-size: 16px; }
.sheet-close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(127, 140, 200, .14); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.sheet-close:hover { background: rgba(127, 140, 200, .26); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 22px 40px; -webkit-overflow-scrolling: touch; }
.sheet-body:focus { outline: none; }
.sheet .doc h1 { display: none; }
.sheet .doc .meta { margin-top: 0; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (max-width: 600px) {
  .sheet { width: 100vw; height: 92vh; height: 92svh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .sheet-body { padding: 20px 18px 36px; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
}
html.sheet-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .hint span, .sheet[open] { animation: none; } }
