/* 알록달록 테마
   5가지 색(핑크·노랑·민트·하늘·보라)을 요소마다 돌아가며 입혀요.
   이 파일 링크만 지우면 단색 핑크 테마로 돌아가요.

   각 요소는 아래 네 가지 변수로 자기 색을 받아요.
   --k: 진한 색 / --ks: 연한 배경색 / --kt: 연한 배경 위 글자색 / --ko: 진한 색 위 글자색 */

:root {
  --c1: #e64584; --c1-soft: #ffe1ee; --c1-text: #a3195a; --c1-on: #ffffff;
  --c2: #f6a609; --c2-soft: #fff1c9; --c2-text: #8a5600; --c2-on: #3d2600;
  --c3: #12a88f; --c3-soft: #d3f4ec; --c3-text: #0b6e5d; --c3-on: #ffffff;
  --c4: #3b82f6; --c4-soft: #dce9ff; --c4-text: #1d4fb8; --c4-on: #ffffff;
  --c5: #8b5cf6; --c5-soft: #ece4ff; --c5-text: #5b32c4; --c5-on: #ffffff;

  --bg: #fffaf7;
  --soft: #fbeef3;
  --soft-2: #f3d9e4;
  --line: #f0e2e8;
  --accent: #e64584;
  --accent-hover: #d0336f;
  --accent-text: #a3195a;
  --text: #2f2034;
  --text-2: #7c6a80;
  --thumb-bg: #faf6f8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c1: #ff7eb0; --c1-soft: #4a2234; --c1-text: #ffb3d0; --c1-on: #2a0a17;
    --c2: #ffc94d; --c2-soft: #463613; --c2-text: #ffd97a; --c2-on: #2a1d00;
    --c3: #4fd8bd; --c3-soft: #173f37; --c3-text: #8de9d6; --c3-on: #04261f;
    --c4: #7fb0ff; --c4-soft: #1c2f52; --c4-text: #b0ceff; --c4-on: #0a1a33;
    --c5: #b49cff; --c5-soft: #33275a; --c5-text: #d2c4ff; --c5-on: #1a0f3d;
    --bg: #17141b; --card: #221d27; --soft: #2f2735; --soft-2: #463a4e; --line: #3a3141;
    --accent: #ff7eb0; --accent-hover: #ff98c1; --accent-text: #ffb3d0; --on-accent: #2a0a17;
    --text: #f6eef8; --text-2: #b9a9bf;
  }
}
:root[data-theme="dark"] {
  --c1: #ff7eb0; --c1-soft: #4a2234; --c1-text: #ffb3d0; --c1-on: #2a0a17;
  --c2: #ffc94d; --c2-soft: #463613; --c2-text: #ffd97a; --c2-on: #2a1d00;
  --c3: #4fd8bd; --c3-soft: #173f37; --c3-text: #8de9d6; --c3-on: #04261f;
  --c4: #7fb0ff; --c4-soft: #1c2f52; --c4-text: #b0ceff; --c4-on: #0a1a33;
  --c5: #b49cff; --c5-soft: #33275a; --c5-text: #d2c4ff; --c5-on: #1a0f3d;
  --bg: #17141b; --card: #221d27; --soft: #2f2735; --soft-2: #463a4e; --line: #3a3141;
  --accent: #ff7eb0; --accent-hover: #ff98c1; --accent-text: #ffb3d0; --on-accent: #2a0a17;
  --text: #f6eef8; --text-2: #b9a9bf;
}

/* ---------- 요소별 색 배정 ---------- */
.feature:nth-child(1), .step:nth-child(1), .g-steps li:nth-child(1), .guide-card:nth-child(1),
.faq details:nth-child(5n+1), .file-card:nth-child(5n+1), .page, .page[data-g="0"],
.sm-cols > div:nth-child(1), .hero-art .s1, .trust li:nth-child(1), .method:nth-child(1) {
  --k: var(--c1); --ks: var(--c1-soft); --kt: var(--c1-text); --ko: var(--c1-on);
}
.feature:nth-child(2), .step:nth-child(2), .g-steps li:nth-child(2),
.faq details:nth-child(5n+2), .file-card:nth-child(5n+2), .page[data-g="1"],
.sm-cols > div:nth-child(2), .hero-art .s2, .method:nth-child(2) {
  --k: var(--c2); --ks: var(--c2-soft); --kt: var(--c2-text); --ko: var(--c2-on);
}
.feature:nth-child(3), .step:nth-child(3), .g-steps li:nth-child(3),
.faq details:nth-child(5n+3), .file-card:nth-child(5n+3), .page[data-g="2"],
.sm-cols > div:nth-child(3), .trust li:nth-child(2), .method:nth-child(3) {
  --k: var(--c3); --ks: var(--c3-soft); --kt: var(--c3-text); --ko: var(--c3-on);
}
.feature:nth-child(4), .guide-card:nth-child(2),
.faq details:nth-child(5n+4), .file-card:nth-child(5n+4), .page[data-g="3"], .hero-art .s3 {
  --k: var(--c4); --ks: var(--c4-soft); --kt: var(--c4-text); --ko: var(--c4-on);
}
.faq details:nth-child(5n+5), .file-card:nth-child(5n+5), .page[data-g="4"], .hero-art .merged {
  --k: var(--c5); --ks: var(--c5-soft); --kt: var(--c5-text); --ko: var(--c5-on);
}

/* ---------- 배경과 상단 ---------- */
.blobs .b1 { background: var(--c1-soft); opacity: .8; }
.blobs .b2 { background: var(--c4-soft); opacity: .8; }
.blobs .b3 { background: var(--c2-soft); opacity: .9; }
.brand-mark i:first-child { background: var(--c4); }
.brand-mark i:last-child { background: var(--c1); mix-blend-mode: normal; }
.site-foot { position: relative; border-top: 0; }
.site-foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5)); }

/* ---------- 히어로 ---------- */
.pill { color: var(--c5-text); border-color: var(--c5-soft); }
.hl { background: linear-gradient(90deg, var(--c1), var(--c5) 55%, var(--c4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl::after { background: var(--c2-soft); }
.trust .dot { background: var(--k); }
.hero-art .sheet b { background: var(--k); color: var(--ko); }
.hero-art .sheet i { background: var(--ks); }
.hero-art .merged { border-color: var(--c5); }
.hero-art .merged b { background: linear-gradient(90deg, var(--c1), var(--c5), var(--c4)); color: var(--c1-on); }
.hero-art .merged i:nth-of-type(1) { background: var(--c1-soft); }
.hero-art .merged i:nth-of-type(2) { background: var(--c2-soft); }
.hero-art .merged i:nth-of-type(3) { background: var(--c3-soft); }
.hero-art .merged i:nth-of-type(4) { background: var(--c4-soft); }
.spark.k1 { background: var(--c1); }
.spark.k2 { background: var(--c2); }
.spark.k3 { background: var(--c4); }

/* ---------- 버튼 ---------- */
.btn.primary, .drop-icon { background: linear-gradient(135deg, var(--c1), var(--c5)); color: var(--c1-on); }
.btn.primary:hover { background: linear-gradient(135deg, var(--c1), var(--c5)); filter: brightness(1.08); }
.btn.primary { box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--c5) 60%, transparent); }
.drop:hover, .drop.over { border-color: var(--c5); background: var(--c5-soft); }

/* ---------- 도구 ---------- */
.tab.active[data-mode="merge"] { background: var(--c1); color: var(--c1-on); }
.tab.active[data-mode="split"] { background: var(--c4); color: var(--c4-on); }
.step .num { background: var(--ks); color: var(--kt); }
.step.current { border-color: var(--k); }
.step.current .num, .step.done .num { background: var(--k); color: var(--ko); }
.method.active { border-color: var(--k); }
.method.active b { color: var(--kt); }
.file-card .order { background: var(--k); color: var(--ko); }
.file-card.chosen { border-color: var(--k); }
.page.in { border-color: var(--k); }
.page .tag { background: var(--k); color: var(--ko); }
.page-grid.picking .page.in .check { background: var(--k); border-color: var(--k); color: var(--ko); }
.page .rot:hover { background: var(--k); color: var(--ko); }
.summary { color: var(--c5-text); }

/* ---------- 특징 ---------- */
.feature .f-icon { background: var(--ks); }
.feature .f-icon svg { stroke: var(--k); }
.feature:hover { border-color: var(--k); }

/* ---------- 가이드 ---------- */
#guide .eyebrow { color: var(--c3-text); }
#faq .eyebrow { color: var(--c5-text); }
.g-badge { background: var(--k); color: var(--ko); }
.g-steps li::before { background: var(--ks); color: var(--kt); }
.g-steps li:not(:last-child)::after { background: var(--ks); }
.tips { background: var(--c2-soft); }
.tips h3 { color: var(--c2-text); }

/* ---------- FAQ ---------- */
.faq summary::after { background: var(--ks); color: var(--kt); }
.faq details[open] { border-color: var(--k); }
.faq details[open] summary::after { background: var(--k); color: var(--ko); }

/* ---------- 사이트맵 ---------- */
.sm-cols h3 { display: flex; align-items: center; gap: 8px; }
.sm-cols h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }

/* ---------- 개인정보처리방침 ---------- */
.doc .summary-box { background: var(--c3-soft); }
.doc .summary-box h2 { color: var(--c3-text); }
.doc th { background: var(--c4-soft); color: var(--c4-text); }
.doc .eyebrow { color: var(--c5-text); }
