/* Noter 웹사이트. 색은 design/SPEC.md §2(GitHub Primer Light/Dark)와 같다. */
:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --canvas: #f6f8fa;
  --border: #d1d9e0;
  --rule: #eaeef2;
  --text: #1f2328;
  --muted: #59636e;
  --accent: #0969da;
  --accent-fill: #0969da;
  --accent-subtle: #ddf4ff;
  --accent-line: rgba(9, 105, 218, 0.3);
  --rec: #cf222e;
  --rec-subtle: #ffebe9;
  --ok: #1a7f37;
  --warn-fg: #9a6700;
  --warn-bg: #fff8c5;
  --warn-line: rgba(212, 167, 44, 0.4);
  --shadow-float: 0 1px 3px rgba(31, 35, 40, 0.12), 0 8px 24px rgba(66, 74, 83, 0.12);
  --r-sm: 6px;
  --r-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1117;
    --canvas: #161b22;
    --border: #3d444d;
    --rule: #21262d;
    --text: #f0f6fc;
    --muted: #9198a1;
    --accent: #4493f8;
    --accent-fill: #1f6feb;
    --accent-subtle: rgba(56, 139, 253, 0.1);
    --accent-line: rgba(68, 147, 248, 0.4);
    --rec: #f85149;
    --rec-subtle: rgba(248, 81, 73, 0.15);
    --ok: #3fb950;
    --warn-fg: #d29922;
    --warn-bg: rgba(187, 128, 9, 0.15);
    --warn-line: rgba(187, 128, 9, 0.4);
    --shadow-float: 0 8px 24px #010409;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
strong { font-weight: 600; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--accent-fill); color: #fff; padding: 8px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* 머리 */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--canvas); }
@media (max-width: 640px) {
  .site-nav .opt { display: none; }
  .site-header .wrap { gap: 12px; }
}

/* 첫 화면 */
.hero { padding: 72px 0 56px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 700; letter-spacing: -0.04em; }
.hero h1 .line { display: block; text-wrap: balance; }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 14px; border-radius: 10px;
  background: var(--text); color: var(--paper);
  border: 1px solid var(--text);
}
.store-badge svg { flex: none; }
.store-badge .small { display: block; font-size: 12px; line-height: 1.2; opacity: 0.85; }
.store-badge .big { display: block; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.cta-note { color: var(--muted); font-size: 15px; }
.shot {
  margin: 48px 0 0;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-float);
  background: var(--canvas);
}
figure { margin: 0; }
.shot-caption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.muted { color: var(--muted); }

/* 구역 */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section.alt { background: var(--canvas); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .feature-media { order: -1; }
.feature h3 { font-size: 26px; font-weight: 700; }
.feature .num { display: inline-block; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.feature p { margin-top: 14px; color: var(--muted); }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; }
.feature ul > li { position: relative; padding-left: 22px; margin-top: 6px; }
.feature ul > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.feature-media .frame { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-media { order: 0; }
}

/* 시험 대비 예시(HTML로 그린 요약 노트) */
.sample { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); padding: 20px 22px; font-size: 15.5px; }
.sample-title { font-weight: 600; font-size: 17px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sample-meta { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
.sample ol { list-style: none; margin: 0; padding: 0; }
.sample li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sample li:last-child { border-bottom: 0; padding-bottom: 0; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.rec { color: var(--rec); background: var(--rec-subtle); border-color: transparent; margin-right: 6px; }
.term { color: var(--muted); }
.sample-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.point { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 20px; background: var(--paper); }
.point h3 { font-size: 17px; font-weight: 600; }
.point p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* 요금제 */
.free-title { font-weight: 600; margin-bottom: 12px; }
.free-list { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.free-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); font-size: 15px; }
.free-list svg { color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; background: var(--paper); }
.plan.pick { border: 2px solid var(--accent); padding: 23px; }
.plan h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent-line); border-radius: 999px; padding: 0 8px; line-height: 20px; }
.price { margin-top: 14px; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.plan .credits { margin-top: 6px; font-weight: 600; }
.plan .about { margin-top: 4px; color: var(--muted); font-size: 15px; }
.plan ul { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); list-style: none; font-size: 15px; }
.plan li { margin-top: 6px; color: var(--muted); }
.addon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 24px; background: var(--paper); }
.addon strong { font-size: 17px; }
.addon .price-inline { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fineprint { margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.fineprint li { margin-top: 4px; }
.fineprint ul { padding-left: 1.2em; margin: 0; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* 자주 묻는 질문 */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 32px; background: var(--paper); }
.contact h2 { font-size: 24px; font-weight: 700; }
.contact p { color: var(--muted); margin-top: 6px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  background: var(--accent-fill); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: var(--canvas); color: var(--text); border: 1px solid var(--border); }

/* 바닥 */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* 문서(약관·개인정보·지원) */
.doc { padding: 56px 0 88px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 700; }
.doc .meta { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 700; margin-top: 48px; padding-top: 8px; }
.doc h3 { font-size: 18px; font-weight: 600; margin-top: 28px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-top: 6px; }
.doc li > ul, .doc li > ol { margin-top: 4px; }
.doc .lead { margin-top: 20px; font-size: 18px; color: var(--muted); }
.draft {
  margin: 24px 0 0; padding: 14px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--text);
}
.draft strong { color: var(--warn-fg); }
.ph {
  display: inline; padding: 0 5px; border-radius: 4px;
  border: 1px dashed var(--warn-fg); background: var(--warn-bg); color: var(--warn-fg);
  font-weight: 600; font-size: 0.94em;
}
.toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--canvas); font-size: 15.5px; }
.toc h2 { font-size: 15px; margin: 0; padding: 0; color: var(--muted); font-weight: 600; }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 32px; }
.toc li { margin-top: 2px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { background: var(--canvas); font-weight: 600; white-space: nowrap; }
td { min-width: 9em; }
@media (max-width: 640px) {
  table { font-size: 14px; }
  th, td { padding: 8px 9px; }
  th { white-space: normal; }
  td { min-width: 5.5em; }
}
.callout { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-subtle); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin-top: 12px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent);
  border: 1px solid var(--accent-line); font-size: 14px; font-weight: 700; line-height: 24px; text-align: center;
}
.kbd { display: inline-block; padding: 0 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--canvas); font-size: 0.92em; white-space: nowrap; }
