/* 김두시 애널리틱스 — 랜딩 (/)
   레퍼런스: Linear(타이포 위계·hairline·제품 화면 우선), Vercel(격자·여백·잉크 CTA),
   토스(해요체·화면당 판단 하나). 그라데이션 히어로·장식 배지 없음. */

@font-face {
  font-family: "Pretendard Doosi";
  src: url("/assets/fonts/Pretendard-Doosi-Medium.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard Doosi";
  src: url("/assets/fonts/Pretendard-Doosi-Bold.woff2") format("woff2");
  font-weight: 700 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #191f28;
  --body: #4e5968;
  --muted: #8b95a1;
  --dim: #b0b8c1;
  --line: #e8ebee;
  --line-2: #f2f4f6;
  --canvas: #ffffff;
  --soft: #fafafa;
  --accent: #3182f6;
  --accent-soft: #e8f3ff;
  --radius: 12px;
  --font: "Pretendard Doosi", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  letter-spacing: -0.012em; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 0 0 8px 0; z-index: 40;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 7px; background: var(--ink); color: #fff; flex: none;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 20px; margin-left: 8px; }
.nav-links a { font-size: 14px; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.btn-ink { background: var(--accent); color: #fff; }
.btn-ink:hover { background: #1b64da; }
.btn-ghost { color: var(--body); }
.btn-ghost:hover { color: var(--ink); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: #cfd6dd; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }

/* ---------------------------------------------------------------- 히어로 */
.hero { padding: 96px 24px 64px; }
.hero-in { max-width: 1200px; margin: 0 auto; }
.hero-title {
  margin-top: 18px;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.045em;
}
.hero-title .dim { color: var(--muted); }
.hero-sub {
  margin-top: 22px; max-width: 560px;
  font-size: 17px; line-height: 1.7; color: var(--body);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.hero-note b { color: var(--body); }

/* ---------------------------------------------------------------- 제품 프레임 */
.product { padding: 0 24px 40px; }
.product-in { max-width: 980px; margin: 0 auto; }
.product-frame {
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(25, 31, 40, .04), 0 18px 60px -28px rgba(25, 31, 40, .16);
  overflow: hidden;
}
.frame-bar {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--soft);
}
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2e6ea; display: block; }
.frame-url {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 10px;
}
.frame-tag {
  margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--body);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.frame-body { padding: 22px 22px 18px; }

.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.preview-kicker { font-size: 13px; color: var(--muted); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.preview-title { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.04em; }
.preview-side { text-align: right; font-size: 13px; color: var(--muted); max-width: 260px; line-height: 1.5; }
.preview-side b { color: var(--body); }

.preview-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; margin-top: 20px; border-top: 1px solid var(--line);
}
.preview-kpi { padding: 14px 0 2px; padding-right: 16px; }
.preview-kpi + .preview-kpi { border-left: 1px solid var(--line); padding-left: 18px; }
.preview-kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.preview-kpi b {
  display: block; margin-top: 3px; font-size: 22px; font-weight: 700;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.preview-kpi small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 2px; }

.preview-chart-wrap { margin-top: 18px; }
#preview-chart { display: block; width: 100%; height: auto; }
.preview-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--body); }
.preview-legend .sw { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); display: inline-block; margin-right: 5px; }
.preview-legend .muted { color: var(--muted); }

.preview-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.preview-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line-2);
}
.preview-list li:last-child { border-bottom: 0; }
.pl-rank { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.pl-title { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta { font-size: 12px; color: var(--muted); }
.pl-views { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.product-caption { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- 밴드 */
.band { padding: 88px 24px; border-top: 1px solid var(--line); }
.band-soft { background: var(--soft); }
.band-rule { border-top: 1px solid var(--line); }
.band-in { max-width: 1080px; margin: 0 auto; }
.band-head { max-width: 640px; }
.band-head h2 {
  margin-top: 14px; font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; line-height: 1.24; letter-spacing: -0.04em;
}
.band-sub { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--body); }
.band-sub b { color: var(--ink); }

/* 벤치마크 */
.bench-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; margin-top: 36px; border-top: 1px solid var(--line);
}
.bench-card { padding: 20px 20px 20px 0; }
.bench-card + .bench-card { border-left: 1px solid var(--line); padding-left: 22px; }
.bench-label { font-size: 13px; color: var(--muted); }
.bench-value {
  margin-top: 6px; font-size: 32px; font-weight: 700; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.bench-value.is-loading { color: var(--dim); }
.bench-value.is-hidden { font-size: 20px; color: var(--muted); letter-spacing: -0.03em; }
.bench-meta { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.bench-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 26px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.bench-note p { font-size: 14px; color: var(--body); line-height: 1.6; }
.bench-note .dot { width: 7px; height: 7px; border-radius: 50%; background: #f79009; margin-top: 7px; flex: none; }

/* 진단 단계 */
.steps { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid #e2e6ea; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid #e2e6ea; }
.step-n {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #dfe4e9;
  display: grid; place-items: center; background: #fff;
}
.step-body h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.step-body p { margin-top: 6px; font-size: 14.5px; color: var(--body); line-height: 1.65; max-width: 640px; }
.step-meta { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.step-meta a { color: var(--accent); }
.step-meta code { font-family: var(--mono); font-size: 12px; color: var(--body); }

.mobile-note {
  margin-top: 28px; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.mobile-note-head { display: flex; align-items: center; gap: 10px; }
.mn-badge {
  font-size: 11.5px; font-weight: 700; color: var(--body);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.mobile-note h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.mobile-note p { margin-top: 8px; font-size: 14px; color: var(--body); }
.mobile-links { display: grid; gap: 8px; margin-top: 14px; }
.mn-link {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--body); padding-top: 8px; border-top: 1px solid var(--line-2);
}
.mn-link b { color: var(--ink); font-weight: 700; }
.mn-link em {
  font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: var(--line-2); border-radius: 999px; padding: 1px 8px; margin-left: auto;
}

/* 요금 */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 36px; }
.price-main {
  border: 1px solid var(--ink); border-radius: 16px; padding: 26px 26px 24px; background: #fff;
}
.price-main-head h3 { font-size: 15px; font-weight: 700; color: var(--body); }
.price-amount { margin-top: 8px; font-size: 40px; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.price-amount span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }
.price-amount.sm { font-size: 22px; margin-top: 2px; }
.price-desc { margin-top: 8px; font-size: 14px; color: var(--body); line-height: 1.6; }
.price-list { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.price-list li { position: relative; padding-left: 16px; font-size: 14px; color: var(--body); }
.price-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .18; }
.price-actions { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price-foot { font-size: 12.5px; color: var(--muted); }
.price-foot b { color: var(--ink); }
.price-side { display: grid; gap: 16px; align-content: start; }
.price-row { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff; }
.price-row h3 { font-size: 15px; font-weight: 700; color: var(--body); }
.price-note { font-size: 12.5px; color: var(--muted); padding-left: 2px; }

/* 신뢰 */
.trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
.trust h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; }
.trust-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-list div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.trust-list dt { font-size: 13px; color: var(--muted); }
.trust-list dd { margin: 0; font-size: 14px; color: var(--body); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 26px 24px 40px; }
.foot-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.foot-brand .brand-mark { background: var(--line-2); color: var(--ink); }
.foot-meta { font-size: 12.5px; color: var(--muted); }
.foot-links { margin-left: auto; display: flex; gap: 18px; font-size: 13px; color: var(--body); }

/* ---------------------------------------------------------------- 반응형 */
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 22px; }
  .bench-grid { grid-template-columns: 1fr; }
  .bench-card { padding: 16px 0; }
  .bench-card + .bench-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav-in { height: 56px; padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
  .brand-name { font-size: 14px; }
  .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
  .btn-lg { height: 46px; padding: 0 18px; font-size: 15px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-ghost { padding: 0 8px; font-size: 13px; }

  .hero { padding: 56px 16px 40px; }
  .hero-sub { font-size: 15.5px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .product { padding: 0 16px 32px; }
  .frame-body { padding: 16px 14px 12px; }
  .preview-title { font-size: 21px; }
  .preview-side { text-align: left; max-width: none; }
  .preview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-kpi { padding-right: 8px; }
  .preview-kpi + .preview-kpi { padding-left: 10px; }
  .preview-kpi b { font-size: 17px; }
  .preview-kpi span { font-size: 11px; }
  .preview-list li { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .pl-title { font-size: 13px; }
  .product-caption { text-align: left; }

  .band { padding: 56px 16px; }
  .band-sub { font-size: 14.5px; }
  .bench-value { font-size: 26px; }
  .steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }

  .price-main { padding: 22px 20px; }
  .price-amount { font-size: 34px; }
  .trust-list div { grid-template-columns: 1fr; gap: 2px; }
  .foot-in { gap: 10px; }
  .foot-links { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 법적 고지 — 전화번호·호수는 싣지 않는다(2026-11-18 기준). 공식 연락처는 kimdoosi@kimdoosi.com */
.foot-legal {
  max-width: 1080px; margin: 18px auto 0; padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: grid; gap: 4px;
  font-size: 12px; color: var(--muted); line-height: 1.65;
}
.foot-legal a { color: var(--body); text-decoration: underline; text-underline-offset: 2px; }
