:root {
  --bg: #fbfbfd; --card: #ffffff; --text: #1d1d1f; --sub: #6e6e73; --line: rgba(0,0,0,.08);
  --blue: #4a7dff; --violet: #7b6cff; --mint: #2fb67f; --amber: #f29a38;
  --shadow: 0 20px 60px rgba(40,40,80,.12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f12; --card: #1a1a1f; --text: #f5f5f7; --sub: #a1a1a8; --line: rgba(255,255,255,.1);
    --shadow: 0 20px 60px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 위 막대 */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(20px);
      background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 18px; height: 56px; }
nav .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
nav .brand img { width: 26px; height: 26px; }
nav .links { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 14px; }
nav .links a { color: var(--sub); }
nav select { font: inherit; font-size: 13px; background: transparent; color: var(--sub); border: 1px solid var(--line);
             border-radius: 8px; padding: 3px 6px; }

/* 첫 화면 */
.hero { text-align: center; padding: 72px 0 28px; }
.hero img.icon { width: 96px; height: 96px; filter: drop-shadow(0 12px 24px rgba(74,125,255,.35)); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 14px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--sub); max-width: 680px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600;
       font-size: 16px; color: #fff; background: linear-gradient(90deg, var(--blue), var(--violet));
       box-shadow: 0 10px 24px rgba(90,100,255,.35); }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.small { color: var(--sub); font-size: 13.5px; margin-top: 14px; }
/* 구매 버튼 아래 — 구독이 아니라는 것을 분명히 */
.deal-pill { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 8px 16px; border-radius: 999px;
             font-weight: 700; font-size: 15px; color: var(--violet);
             background: color-mix(in srgb, var(--violet) 12%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent); }
.deal-pill .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
                   background: var(--violet); color: #fff; font-size: 12px; }
.final .deal-pill { margin-top: 20px; }

.shot { margin: 40px auto 0; max-width: 1000px; }
.shot img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; }

/* 기능 */
section { padding: 72px 0; }
section h2 { font-size: clamp(26px, 4vw, 40px); text-align: center; letter-spacing: -0.02em; margin: 0 0 12px; }
section p.sec { text-align: center; color: var(--sub); max-width: 640px; margin: 0 auto 40px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card .emoji { font-size: 28px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--sub); font-size: 15px; }

/* 가격 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan.pro { border: 2px solid var(--violet); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 44px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.plan .once { color: var(--sub); font-size: 14px; margin-bottom: 18px; }
.plan .once.deal { color: var(--violet); font-weight: 700; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 6px 0 6px 28px; position: relative; font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--mint); font-weight: 800; }
.plan li.strong { font-weight: 700; font-size: 17px; }
.plan .btn { width: 100%; justify-content: center; }

/* 자주 묻는 질문 */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 auto 10px; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; }
details p { color: var(--sub); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--sub); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* 약관 페이지 */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: 34px; letter-spacing: -0.02em; margin-bottom: 4px; }
.doc .date { color: var(--sub); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); font-size: 15.5px; }

/* 맨 위 띠 — 한 번 결제 · 평생 무료 업데이트 */
.deal-bar { display: block; background: linear-gradient(90deg, var(--blue), var(--violet)); color: #fff; font-size: 14.5px;
            text-align: center; padding: 9px 0; font-weight: 600; letter-spacing: .01em; }
.deal-bar:hover { text-decoration: none; filter: brightness(1.06); }
.deal-bar strong { font-weight: 800; }
.deal-bar .tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
                  background: rgba(255,255,255,.25); font-size: 11px; margin-right: 4px; vertical-align: 1px; }

/* 다른 언어 추천 막대 */
#suggest { background: var(--card); color: var(--text); font-size: 14px; border-bottom: 1px solid var(--line); }
#suggest .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; }
#suggest a { color: var(--blue); font-weight: 600; }
#suggest button { background: none; border: 0; color: var(--sub); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }
#suggest[hidden] { display: none; }

/* 언어 고르기 */
nav label.lang { display: inline-flex; align-items: center; gap: 4px; }
nav label.lang .globe { font-size: 14px; }
nav select { max-width: 170px; cursor: pointer; }

h1, h2, h3 { text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
p { text-wrap: pretty; }
html[lang="ko"] body, html[lang="ja"] body { word-break: keep-all; overflow-wrap: anywhere; }
.center { text-align: center; }
.small.center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* 왜 CC Cleaner */
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card.big { padding: 28px; }
.card.big h3 { font-size: 21px; }
.card.big p { font-size: 16px; }

/* 세 단계 */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 16px;
         grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 22px 70px; position: relative; }
.steps .num { position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
              font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.steps h3 { margin: 4px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--sub); font-size: 15px; }

/* 정확하게 */
.precise { background: color-mix(in srgb, var(--violet) 6%, var(--bg)); }
.labels { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -16px 0 32px; }
.tag { border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.tag.safe { background: color-mix(in srgb, var(--mint) 16%, transparent); color: var(--mint); }
.tag.check { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.tag.danger { background: color-mix(in srgb, #e5484d 15%, transparent); color: #e5484d; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px 28px; }
.point { padding: 6px 0 6px 18px; border-left: 3px solid var(--violet); }
.point h3 { margin: 0 0 6px; font-size: 17px; }
.point p { margin: 0; color: var(--sub); font-size: 15px; }

/* 비교표 */
.cmp { max-width: 820px; margin: 0 auto; overflow-x: auto; }
.cmp table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line);
             border-radius: 18px; overflow: hidden; font-size: 15.5px; }
.cmp table { table-layout: fixed; }
.cmp thead th:first-child { width: 30%; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top;
                   hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 600; color: var(--sub); width: 30%; }
.cmp thead th { font-size: 14px; color: var(--sub); }
.cmp .us { background: color-mix(in srgb, var(--violet) 9%, transparent); font-weight: 700; color: var(--text); }
.cmp thead .us { color: var(--violet); font-size: 16px; }

/* 개인정보 · 마지막 */
.wrap.narrow { max-width: 760px; text-align: center; }
.privacy .emoji { font-size: 40px; }
.privacy p.sec { margin-bottom: 0; }
.final { text-align: center; background: color-mix(in srgb, var(--blue) 6%, var(--bg)); }
.final .icon { width: 72px; height: 72px; }
.final p.sec { margin-bottom: 26px; }

/* 언어: 보이는 언어만 */
[data-l] { display: none; }
html[lang="ko"] [data-l="ko"], html[lang="en"] [data-l="en"] { display: revert; }

@media (max-width: 820px) {
  nav .links a.hide-sm { display: none; }
}
@media (max-width: 640px) {
  .deal-bar { font-size: 13px; padding: 7px 12px; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
  .cmp th, .cmp td { padding: 12px 8px; font-size: 13.5px; }
  .cmp thead th:first-child { width: 28%; }
  nav select { max-width: 130px; }
}
