/* Facet 사이트 — 앱과 같은 결: 따뜻한 종이 위의 잉크, 명조 제목, 딥그린 액센트 (§9-9·§9-10) */

:root {
  --paper: #f7f3ec;
  --surface: #fffdfb;
  --ink: #2c2924;
  --ink-2: #6b665d;
  --ink-3: #a29b8f;
  --line: rgba(44, 41, 36, .12);
  --accent: #178c70;
  --accent-ink: #12705a;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", "Nanum Myeongjo", Georgia, serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  --prose: 680px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1a17;
    --surface: #282622;
    --ink: #ece7dd;
    --ink-2: #b3ac9f;
    --ink-3: #7d776c;
    --line: rgba(236, 231, 221, .14);
    --accent: #3fb896;
    --accent-ink: #5fcdae;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin: 0; }
p { margin: 0; }
svg.mark { display: block; flex: none; }

/* ─── 내비 */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; font-size: 14px; color: var(--ink-2); }
.nav nav a:last-child { color: var(--ink-3); }

/* ─── 랜딩 */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero .lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 30em; }
.hero .cta { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; color: var(--ink-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(23,140,112,.15); }
.cta .hint { font-size: 14px; color: var(--ink-3); }

/* 히어로 그림 — 격자가 그려지는 한 번의 애니메이션 (반복 없음, §9-9) */
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; width: 100%; min-width: 0; }
.hero-art .mark { width: 100%; height: 100%; max-width: 100%; color: var(--ink); }
.hero-art .mark polygon, .hero-art .mark polyline, .hero-art .mark line {
  stroke-dasharray: 4000; stroke-dashoffset: 4000;
  animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) forwards;
}
.hero-art .mark polyline { animation-delay: .5s; }
.hero-art .mark line { animation-delay: .9s; animation-duration: 1.6s; }
.hero-art .mark circle { opacity: 0; animation: pop .5s ease-out forwards; }
.hero-art .mark circle:nth-child(n) { animation-delay: calc(1.1s + var(--i, 0) * 45ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .mark * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}
.hero-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64%; padding: 18px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 50px -24px rgba(44, 41, 36, .35);
  font-family: var(--serif); font-size: 16px; line-height: 1.6;
  opacity: 0; animation: fade .8s ease-out 1.9s forwards;
}
.hero-card small { display: block; font-family: var(--sans); font-size: 11px; color: var(--ink-3); margin-bottom: 6px; letter-spacing: .04em; }
@keyframes fade { to { opacity: 1; } }

.section { max-width: var(--max); margin: 0 auto; padding: 56px 24px; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3vw, 32px); }
.section .sub { margin-top: 10px; color: var(--ink-2); max-width: 36em; }

.steps { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  padding: 26px 24px 28px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.step .n { font-family: var(--serif); font-size: 13px; color: var(--accent-ink); letter-spacing: .08em; }
.step h3 { font-size: 20px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step .art { height: 110px; margin-top: auto; color: var(--ink); }
.step .art svg { width: 100%; height: 100%; display: block; }

.questions { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.q {
  padding: 26px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 19px; line-height: 1.55; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.q .tag { font-family: var(--sans); font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.q .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--accent)); display: inline-block; }

.fit { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.fit li { list-style: none; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; }
.fit { padding: 0; }

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.privacy .cards { display: grid; gap: 12px; }
.card { padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.card b { display: block; font-weight: 500; margin-bottom: 4px; }
.card span { color: var(--ink-2); font-size: 15px; }
.more { display: inline-block; margin-top: 18px; color: var(--accent-ink); font-size: 15px; border-bottom: 1px solid currentColor; }

.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.plan li::before { content: "—"; color: var(--ink-3); margin-right: 10px; }
.plan .note { font-size: 14px; color: var(--ink-3); margin-top: 18px; }

/* ─── 약관·방침 */
.legal {
  max-width: var(--max); margin: 0 auto; padding: 24px 24px 72px;
  display: grid; grid-template-columns: minmax(0, var(--prose)) 220px; gap: 56px; justify-content: center;
}
.prose { font-size: 16.5px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.prose h1 + p { color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; padding-top: 8px; scroll-margin-top: 24px; }
.prose h3 { font-size: 17px; font-family: var(--sans); font-weight: 500; margin: 26px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 500; color: var(--ink); background: linear-gradient(transparent 62%, rgba(23,140,112,.16) 62%); }
.prose a { color: var(--accent-ink); border-bottom: 1px solid rgba(23,140,112,.35); }
.prose code { font-size: .9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--ink-2); }
.toc { position: sticky; top: 24px; font-size: 13.5px; color: var(--ink-2); align-self: start; padding-top: 70px; }
.toc-title { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; }
.toc li { margin: 7px 0; }
.toc a:hover { color: var(--accent-ink); }

/* ─── 푸터 */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 40px 24px 56px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; line-height: 1.8;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 16px; color: var(--ink-2); margin-bottom: 12px; }
.foot-links a { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 28px; }
  .hero-art { max-width: 320px; }
  .steps, .questions, .fit { grid-template-columns: minmax(0, 1fr); }
  .privacy, .plan { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .nav { padding: 16px 20px; }
  .nav nav { gap: 8px 14px; font-size: 13px; }
  .hero-card { font-size: 14px; padding: 14px 16px; width: 70%; }
  .hero h1 { font-size: 34px; }
}
