/* Noti 홈페이지. 색은 앱 테마 "잉크와 형광펜"(docs/DECISIONS.md 7장 테마 표)과 같은 값을 쓴다.
   글꼴은 앱처럼 시스템 글꼴(SF Pro + iOS 한글 글꼴). 웹 글꼴을 외부에서 받지 않아
   방문자 IP가 글꼴 CDN으로 가지 않는다 (개인정보처리방침 "이 웹사이트" 항목과 맞춤). */

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface: #F4F4F6;
  --line: #E6E7EA;
  --text: #202227;
  --muted: #61656E;
  --primary: #283371;       /* 주 버튼 */
  --ink: #283371;           /* 잉크 글자·아이콘 */
  --tag: #ECEEF7;           /* 종류 태그 면 */
  --marker: #FFD447;        /* 형광 노랑: 지금 필요한 것에만 */
  --on-marker: #202227;
  /* 라이트: 글자 아래쪽에만 긋는 형광펜. 다크: 흰 글자 위 노랑은 읽기 어려워서
     앱 테마처럼 노랑 면 전체에 어두운 글자 (DECISIONS 테마 "위 글자는 어둡게"). */
  --mark-top: 58%;
  --mark-text: inherit;
  --bezel: #0E0F13;
  --shot-light: block;
  --shot-dark: none;
  --radius: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111216;
    --surface: #1F2127;
    --line: #2A2C33;
    --text: #ECEDF0;
    --muted: #9EA2AB;
    --primary: #4656C8;
    --ink: #A9B3F5;
    --tag: #262B4A;
    --on-marker: #1A1B1F;
    --mark-top: 14%;
    --mark-text: #1A1B1F;
    --bezel: #2A2C33;
    --shot-light: none;
    --shot-dark: block;
  }
}

*, *::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;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* 형광펜: 앱에서처럼 "지금 필요한 것"에만 쓴다. 한 화면에 한두 번. */
mark {
  background: linear-gradient(transparent var(--mark-top), var(--marker) var(--mark-top), var(--marker) 92%, transparent 92%);
  color: var(--mark-text);
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 머리 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav .opt { display: none; } }

/* ---------- 공통 타이포 ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; margin: 0 0 14px; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; line-height: 1.16; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin: 22px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 112px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* ---------- 휴대폰 화면 (실제 시뮬레이터 캡처를 테두리에만 넣는다) ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 46px;
  border: 7px solid var(--bezel);
  background: var(--bezel);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 24px 48px -28px rgba(17,18,22,.45);
  aspect-ratio: 1206 / 2622;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }
.phone.lock { aspect-ratio: 432 / 946; }
.only-light { display: var(--shot-light); }
.only-dark { display: var(--shot-dark); }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- 첫 화면 ---------- */
.hero { padding: 88px 0 104px; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-shots { display: flex; justify-content: center; gap: 22px; align-items: flex-start; }
.hero-shots .phone { flex: 1 1 0; min-width: 0; max-width: 270px; }
.hero h1 mark { white-space: nowrap; }
.hero-shots .phone + .phone { margin-top: 72px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
}
.pill[aria-disabled="true"] { cursor: default; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.status { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-shots .phone { max-width: 220px; }
  .hero-shots .phone + .phone { margin-top: 48px; }
}
@media (max-width: 480px) {
  .hero-shots { gap: 12px; }
  .hero-shots .phone { border-width: 5px; border-radius: 34px; }
  .hero-shots .phone img { border-radius: 29px; }
}

/* ---------- 문제 ---------- */
.problem { background: var(--surface); border-top: 0; padding: 80px 0; }
.problem blockquote { margin: 0; font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; max-width: 22em; }
.problem p { margin: 20px 0 0; color: var(--muted); max-width: 36em; }

/* ---------- 순서 ---------- */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--text); }
.steps li { padding: 26px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); font-size: 15px; }
.steps h3 { margin: 8px 0 10px; }
.steps p { margin: 0; color: var(--muted); }
.say { color: var(--text); font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* ---------- 기능 줄 (글 + 화면) ---------- */
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .text { order: 2; }
.feature .shots { display: flex; justify-content: center; gap: 22px; }
.feature .shots .phone { flex: 1 1 0; min-width: 0; max-width: 260px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; }
.facts b { font-weight: 600; }
.facts span { color: var(--muted); }
@media (max-width: 900px) {
  .feature .wrap { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .text { order: 0; }
  .feature .shots .phone { max-width: 220px; }
}
@media (max-width: 480px) {
  .feature .shots { gap: 12px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 나가기 전 세 가지 ---------- */
.moments { margin: 56px 0 0; border-top: 2px solid var(--text); }
.moment { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.moment .quote { font-size: clamp(20px, 2.3vw, 25px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; margin: 0; }
.moment .quote::before { content: "“"; color: var(--muted); }
.moment .quote::after { content: "”"; color: var(--muted); }
.moment .when { margin: 0; color: var(--muted); }
.moment .when strong { color: var(--text); font-weight: 600; }
.time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.moments-note { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; margin-top: 40px; }
.moments-note p { margin: 0 0 10px; color: var(--muted); max-width: 36em; }
.moments-note .phone { max-width: 220px; }
@media (max-width: 820px) {
  .moment { grid-template-columns: 1fr; gap: 8px; }
  .moments-note { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
}

/* ---------- 태그·라벨 (앱과 같은 모양) ---------- */
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--tag); padding: 2px 9px; border-radius: 7px; vertical-align: 2px; }
.label-important { display: inline-block; font-size: 13px; font-weight: 700; background: var(--marker); color: var(--on-marker); padding: 2px 9px; border-radius: 7px; vertical-align: 2px; }

/* ---------- 개인정보 요약 ---------- */
.promises { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.promises li { padding: 22px 0; border-top: 1px solid var(--line); }
.promises h3 { font-size: 18px; margin-bottom: 6px; }
.promises p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .promises { grid-template-columns: 1fr; } }

/* ---------- 자주 묻는 질문 ---------- */
.faq { margin: 40px 0 0; border-top: 2px solid var(--text); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

/* ---------- 끝 ---------- */
.closing { text-align: left; }
.closing h2 { max-width: 16em; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- 문서 페이지 (개인정보처리방침) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc .meta { color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.doc .summary { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; margin: 36px 0 8px; }
.doc .summary h2 { font-size: 18px; margin: 0 0 10px; }
.doc .summary ul { margin: 0; padding-left: 1.1em; }
.doc .summary li + li { margin-top: 6px; }
.doc h2 { font-size: 24px; margin: 52px 0 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.table-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; border-bottom: 2px solid var(--text); white-space: nowrap; }
.doc td:first-child { font-weight: 600; white-space: nowrap; }
.todo { background: var(--marker); color: var(--on-marker); padding: 0 4px; border-radius: 4px; font-weight: 600; }
