/* 색은 앱 Theme(DESIGN.md)과 같은 값을 여기에만 둔다. */
:root {
  --bg: #0B0D10;
  --surface: #14181E;
  --text: #F5F7FA;
  --text-2: #8C98A8;
  --text-3: #8C98A8;
  --line: #16191D;
  --accent: #FF1744;
  --accent-glow: rgba(255, 23, 68, 0.35);
  --float: rgba(30, 32, 36, 0.62);
  --float-border: rgba(255, 255, 255, 0.08);
  --todo-bg: rgba(255, 196, 0, 0.14);
  --todo-text: #FFD666;
  --pad: 24px;
  --max: 1080px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --num: "Barlow Condensed", "Pretendard Variable", Pretendard, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

/* 상단 바. 좌우 여백은 안의 .wrap 이 맡아서 안전 영역이 두 번 더해지지 않는다. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.top .brand { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.top .brand img { height: 22px; width: auto; }
.top nav { display: flex; gap: 8px; font-size: 16px; font-weight: 600; }
.top nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 12px 8px;
  color: var(--text-2);
  text-decoration: none;
}
.top nav a:hover { color: var(--text); }

/* 첫 화면 */
.hero { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--text-2); margin: 0 0 32px; max-width: 30em; }
.hero .shot { justify-self: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* 다운로드 버튼 */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 28px;
  background: var(--accent); color: var(--text);
  font-size: 17px; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn svg { width: 22px; height: 22px; }
.btn[aria-disabled="true"] { background: var(--float); border: 1px solid var(--float-border); box-shadow: none; color: var(--text-2); cursor: default; }
.cta small { color: var(--text-3); font-size: 16px; font-weight: 600; }

/* 휴대폰 화면 */
.phone {
  width: 280px; border-radius: 40px; overflow: hidden;
  border: 1px solid var(--float-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 23, 68, 0.12);
}

/* 기능 */
section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
section .sub { color: var(--text-2); margin: 0 0 36px; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature { padding: 22px 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }
.feature .num {
  color: var(--accent);
  font-family: var(--num);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--float);
  border: 1px solid var(--float-border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 2px;
}

.shots { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; }
.shots figcaption { text-align: center; color: var(--text-2); font-size: 16px; font-weight: 600; margin-top: 14px; }
.shots .phone { width: 240px; }
.note { text-align: center; color: var(--text-3); font-size: 16px; margin-top: 20px; }

.download { text-align: center; border-top: 1px solid var(--line); }
.download .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; }
.download .cta { justify-content: center; flex-direction: column; }

/* 아래쪽 */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 max(48px, env(safe-area-inset-bottom));
  color: var(--text-2);
  font-size: 16px;
}
footer .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; font-weight: 600; }
footer .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--text);
}
footer .links a.strong { font-weight: 800; }
footer p { margin: 2px 0; }

/* 약관 문서 */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px max(var(--pad), env(safe-area-inset-right)) max(72px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
}
.doc h1 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.doc .meta { color: var(--text-2); font-size: 16px; margin: 0 0 28px; }
.doc h2 { font-size: 19px; margin: 40px 0 10px; font-weight: 800; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; font-weight: 700; }
.doc p, .doc li { color: #D5DBE3; font-size: 16px; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc .tablewrap { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 520px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); color: var(--text); font-weight: 700; }
.doc td { color: #D5DBE3; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; margin: 0 0 24px; }
.doc .toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
}
.doc .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.doc .tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 22px;
  background: var(--float);
  border: 1px solid var(--float-border);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.doc .tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--text); }

/*
  약관 자리표시.
  공개(body.draft-mask): .raw 는 hidden 이라 화면에 안 나오고 '(추후 기재)'만 보인다.
  원문은 .todo .raw 안에 그대로 있다. 확정 문안이 오면 raw 를 고치고,
  편집 중 노란 칸으로 다시 보려면 body 에서 class="draft-mask" 만 뺀다.
*/
.todo { background: var(--todo-bg); color: var(--todo-text); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.todo .pub { display: none; }
body.draft-mask .todo .pub { display: inline; }
body:not(.draft-mask) .todo .raw { display: inline; }
.draft-mask .todo { background: none; color: inherit; border-radius: 0; padding: 0; font-weight: inherit; }
.draft { background: var(--todo-bg); color: var(--todo-text); border-radius: 12px; padding: 12px 16px; font-size: 16px; font-weight: 600; margin: 0 0 24px; }

@media (max-width: 820px) {
  .top nav .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .hero .shot { order: 2; }
  .features { grid-template-columns: 1fr; }
  .shots .phone { width: 220px; }
}
