/* 레이아웃 컨셉: 흰 배경 + 최대폭 1024px 한 줄 컬럼, 파란 포인트 하나, 둥근 카드 */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-hero: #eef3fd;
  --fg: #171b26;
  --fg-muted: #5c6475;
  --fg-faint: #8b93a5;
  --line: #e8ebf1;
  --accent: #2450ce;
  --accent-strong: #1b3fa8;
  --accent-soft: #e2eafc;
  --bar: #d3d8e3;
  /* 상태색: 성공·주의·실패·정보·황금 — 배지/알약/행 배경에 공통 */
  --ok: #16794a; --ok-soft: #e3f6ea; --bad: #b42318; --bad-soft: #fde8e8; --warn: #b7791f; --warn-soft: #fff3e0;
  --info: #2450ce; --info-soft: #e8f1ff; --gold: #8a5a00; --gold-soft: #fffbea; --gold-line: #f3d98a;
  --font-sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141b; --bg-soft: #181c25; --bg-hero: #141a2a; --fg: #eef0f5; --fg-muted: #aab1c2;
    --fg-faint: #7d8597; --line: #262c39; --accent: #6a8ff0; --accent-strong: #8aa7f5;
    --accent-soft: #1d2740; --bar: #343b4b; color-scheme: dark;
    --ok: #6fd39a; --ok-soft: #12301f; --bad: #f08a80; --bad-soft: #3a1b19; --warn: #e2b05c; --warn-soft: #33270f;
    --info: #8aa7f5; --info-soft: #1d2740; --gold: #e2c06a; --gold-soft: #2e2810; --gold-line: #5a4a1a;
  }
}
:root[data-theme="dark"] {
  --bg: #11141b; --bg-soft: #181c25; --bg-hero: #141a2a; --fg: #eef0f5; --fg-muted: #aab1c2;
  --fg-faint: #7d8597; --line: #262c39; --accent: #6a8ff0; --accent-strong: #8aa7f5;
  --accent-soft: #1d2740; --bar: #343b4b; color-scheme: dark;
    --ok: #6fd39a; --ok-soft: #12301f; --bad: #f08a80; --bad-soft: #3a1b19; --warn: #e2b05c; --warn-soft: #33270f;
    --info: #8aa7f5; --info-soft: #1d2740; --gold: #e2c06a; --gold-soft: #2e2810; --gold-line: #5a4a1a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.6;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

.wrap {
  max-width: 1024px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 64px; }
.section-title { text-align: center; font-size: 22px; font-weight: 800; }
.section-sub { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--fg-muted); }

/* 헤더 */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px);
}
.header .wrap { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.logo-mark {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--fg-muted); }
.nav a:hover { background: var(--bg-soft); }
.nav .btn-dark { background: var(--fg); color: var(--bg); }
.nav .btn-dark:hover { background: var(--fg); opacity: .9; }

/* 히어로 */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--bg-hero), var(--bg)); }
.hero .wrap { padding-block: 72px; text-align: center; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.hero h1 { margin-top: 12px; font-size: clamp(30px, 5vw, 40px); font-weight: 800; line-height: 1.3; }
.hero-desc { max-width: 560px; margin: 16px auto 0; font-size: 14.5px; line-height: 1.75; color: var(--fg-muted); }
.cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: var(--bg); color: var(--fg); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-soft); }
.fine { margin-top: 12px; font-size: 12px; color: var(--fg-faint); }
.link-under { font-size: 13px; font-weight: 600; color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--bar); text-underline-offset: 4px; }
.link-under:hover { color: var(--fg); }
.link-accent { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.link-accent:hover { text-decoration: underline; }

/* 기능 카드 */
.features { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { display: block; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 40, 90, .08); }
.feature-art { aspect-ratio: 16 / 9; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 18px; }
.feature-art svg { width: 100%; height: 100%; }
.feature-body { padding: 16px 18px 18px; }
.feature h3 { font-size: 15px; font-weight: 800; }
.feature p { margin-top: 6px; font-size: 13px; color: var(--fg-muted); }
.center { margin-top: 24px; text-align: center; }

/* 무료 기능 */
.free { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.free-desc { max-width: 640px; margin: 8px auto 0; text-align: center; font-size: 13.5px; color: var(--fg-muted); }
.free-cols { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.free-col { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 20px; }
.free-col .label { font-size: 13px; font-weight: 800; color: var(--accent); }
.free-col ul { margin-top: 12px; display: grid; gap: 8px; font-size: 13.5px; }
.free-col li { display: flex; gap: 8px; }
.free-col li::before { content: "✓"; flex: none; font-weight: 800; color: var(--accent); }
.free-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; }

/* 요금제 */
.plans { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 20px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-name { font-size: 15px; font-weight: 800; }
.plan-for { margin-top: 2px; font-size: 12px; color: var(--fg-muted); }
.plan-old { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--fg-faint); text-decoration: line-through; }
.plan-price { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price small { margin-right: 4px; font-size: 12px; font-weight: 500; color: var(--fg-muted); }
.plan ul { margin-top: 14px; display: grid; gap: 6px; font-size: 13px; color: var(--fg-muted); }
.plan .btn { margin-top: 16px; width: 100%; text-align: center; }

/* 가격 비교 */
.compare { margin-top: 48px; }
.compare h2 { font-size: 18px; text-align: center; font-weight: 800; }
.compare-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 16px 18px; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 14px; }
.row .name { min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--fg-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .name span { font-weight: 500; color: var(--fg-faint); }
.row .track { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.row .fill { height: 100%; border-radius: 999px; background: var(--bar); }
.row .amount { text-align: right; font-size: 13.5px; font-weight: 700; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.row .amount small { font-size: 12px; font-weight: 600; }
.row.mine .name, .row.mine .amount { color: var(--accent); }
.row.mine .fill { background: var(--accent); }
.why { margin-top: 16px; display: grid; gap: 10px; font-size: 13.5px; color: var(--fg-muted); }
.why strong { color: var(--fg); }

/* 푸터 */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer .wrap { padding-block: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; font-weight: 600; color: var(--fg-muted); }
.footer-links a:hover { color: var(--fg); }
.copy { margin-top: 16px; font-size: 12px; color: var(--fg-faint); }

@media (max-width: 480px) {
  .section { padding-block: 48px; }
  .hero .wrap { padding-block: 56px; }
  .nav a:not(.btn-dark) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .feature { transition: none; } }
