/* 키워드파일럿 광고 사이트 — Design Anchor 토큰 (docs/02-design/features/keywordpilot-landing.design.md) */

:root {
  --bg: #F7F5F0;
  --ink: #101014;
  --accent: #2B4EFF;
  --accent-hover: #1E38C2;
  --muted: #4A4A52;
  --soft: #6B6B74;
  --faint: #9A978E;
  --line: #E2DFD6;
  --surface: #FFFFFF;
  --band: #101014;
  --band-text: #F7F5F0;

  --font-display: 'Black Han Sans', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-body: 'Noto Sans KR', 'Malgun Gothic', -apple-system, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  --gutter: 72px;
  --section: 112px;
  --container: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 활자 ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 104px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.h3 { font-size: 22px; font-weight: 700; }
.lead { font-size: 19px; line-height: 1.7; color: var(--muted); }
.body-muted { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.small { font-size: 13.5px; color: var(--soft); }
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.accent { color: var(--accent); }

/* ---------- 버튼·칩 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  min-height: 44px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-lg { font-size: 17px; padding: 17px 34px; }
.btn-sm { font-size: 15px; padding: 10px 22px; min-height: 40px; }
.btn-block { width: 100%; }

.link-underline {
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}
.chip-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-faint { border: 0; background: transparent; color: var(--faint); padding-left: 0; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-mark-sm { width: 26px; height: 26px; }
.brand-mark-sm svg { width: 14px; height: 14px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 15px; color: var(--muted); }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active { font-weight: 700; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- 섹션 공통 ---------- */
.section { padding-top: var(--section); }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.rule-top { border-top: 2px solid var(--ink); }

/* ---------- 히어로 ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 96px;
  padding-bottom: 88px;
}
.hero .lead { max-width: 52ch; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- 3단계 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 32px;
  border-right: 2px solid var(--ink);
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; border-right: 0; }
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.step-title { font-size: 17px; font-weight: 700; }

/* ---------- 기능 ---------- */
.features { display: flex; flex-direction: column; gap: 48px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 40px;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(odd) { padding-left: 0; border-right: 2px solid var(--ink); }
.feature:nth-child(even) { padding-right: 0; }
.feature:nth-last-child(-n+2) { border-bottom: 0; }
.feature-icon { width: 24px; height: 24px; color: var(--ink); }

/* ---------- 제품 화면 ---------- */
.shot {
  margin-top: 96px;
  border: 2px solid var(--ink);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ink);
}
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-dot:first-child { background: var(--ink); }
.shot-url { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.shot-body { min-height: 520px; display: grid; place-items: center; }
.shot-body img { width: 100%; height: auto; }
.placeholder {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  border: 1px dashed var(--accent);
  padding: 12px 18px;
  text-align: center;
}

/* ---------- 요금 ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-pop { border: 2px solid var(--accent); }
.plan-badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--soft); }
.plan-pop .plan-name { color: var(--accent); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-amount { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.plan-unit { font-size: 14px; color: var(--soft); }
.plan-for { font-size: 14px; color: var(--soft); }
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.plan-list { padding-top: 18px; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 24px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- CTA 밴드 ---------- */
.cta-band {
  margin-top: var(--section);
  background: var(--band);
  color: var(--band-text);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.cta-action { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cta-note { font-size: 13.5px; color: var(--faint); }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 2px solid var(--ink); }
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-tagline { font-size: 14px; color: var(--soft); max-width: 36ch; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-heading { font-weight: 700; color: var(--ink); }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ---------- 섹션 보조 ---------- */
.plans-wrap { margin-top: 48px; }
.section-more { margin-top: 28px; }
.faq-list-home { margin-top: 36px; }

/* ---------- 서브 페이지 히어로 ---------- */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 80px;
  padding-bottom: 64px;
}
.page-hero .lead { max-width: 56ch; }

/* ---------- 기능 상세 (교차 레이아웃) ---------- */
.feature-rows { border-top: 2px solid var(--ink); }
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 2px solid var(--ink); }
.feature-row:nth-child(even) .feature-shot { order: -1; }
.feature-text { display: flex; flex-direction: column; gap: 16px; }
.feature-bullets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink);
}
.feature-bullets li { display: flex; gap: 12px; align-items: flex-start; }
.feature-bullets li::before {
  content: "";
  flex: none;
  width: 14px; height: 2px;
  background: var(--accent);
  margin-top: 12px;
}
.feature-shot {
  border: 2px solid var(--ink);
  background: var(--surface);
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.feature-shot img { width: 100%; height: auto; }

/* ---------- 요금 비교표 ---------- */
.table-hint { display: none; margin-top: 28px; font-size: 13.5px; color: var(--soft); }
.table-scroll { overflow-x: auto; margin-top: 36px; }
@media (max-width: 768px) {
  .table-hint { display: block; }
  .table-scroll { margin-top: 12px; }
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 640px;
}
.compare th, .compare td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--soft);
  border-bottom: 2px solid var(--ink);
}
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.compare thead th:first-child { text-align: left; }
.compare .is-pop { color: var(--accent); font-weight: 700; }
.compare thead .is-pop { color: var(--accent); }

/* ---------- 안내 블록 ---------- */
.notice {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 2px solid var(--ink);
  padding: 26px 30px;
}
.notice svg { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.notice-body { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.notice-body strong { color: var(--ink); }
.notice-body a { border-bottom: 1px solid currentColor; }

/* ---------- 약관 · 개인정보처리방침 ---------- */
.legal {
  max-width: calc(760px + var(--gutter) * 2);
  padding-top: 80px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}
.legal-head { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.legal-head .display-lg { font-size: 52px; }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: 20px; font-weight: 700; color: var(--ink); padding-top: 12px; border-top: 2px solid var(--ink); }
.legal ol, .legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { color: var(--ink); }
.legal-toc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
}
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--accent); }
.review-note {
  border: 1px dashed var(--accent);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--ink);
}
.review {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  background: rgba(43, 78, 255, 0.08);
  padding: 2px 6px;
}
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table thead th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--soft); border-bottom: 2px solid var(--ink); }
.legal-foot { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.legal-foot a { border-bottom: 1px solid currentColor; }

/* ---------- 404 ---------- */
.notfound { padding-top: 96px; padding-bottom: 96px; }

/* ---------- FAQ 페이지 ---------- */
.faq-contact { margin-top: 40px; font-size: 15.5px; color: var(--muted); }
.faq-contact a { border-bottom: 1px solid currentColor; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 40px; --section: 88px; }
  .display-xl { font-size: 80px; }
  .display-lg { font-size: 52px; }
  .h2 { font-size: 38px; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; --section: 64px; }
  .display-xl { font-size: 56px; line-height: 1.1; }
  .display-lg { font-size: 40px; }
  .h2 { font-size: 30px; line-height: 1.25; }
  .lead { font-size: 16px; }

  .header-inner { padding-top: 18px; padding-bottom: 18px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    inset: 80px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 32px;
    border-top: 2px solid var(--ink);
    overflow-y: auto;
  }
  body.nav-open .nav { display: flex; }
  .nav .nav-link {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn { margin-top: 24px; width: 100%; }

  .hero { padding-top: 36px; padding-bottom: 44px; gap: 22px; }
  .hero .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .step { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 22px 0; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .feature:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }

  .shot { margin-top: 56px; }
  .shot-body { min-height: 260px; }

  .section-head-row { flex-direction: column; align-items: flex-start; }
  .plans { grid-template-columns: 1fr; gap: 28px; }

  .page-hero { padding-top: 40px; padding-bottom: 40px; gap: 16px; }
  .legal { padding-top: 40px; padding-bottom: 56px; gap: 28px; }
  .legal-head .display-lg { font-size: 36px; }
  .legal-table { display: block; overflow-x: auto; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature-row:nth-child(even) .feature-shot { order: 0; }
  .feature-shot { min-height: 220px; }
  .notice { padding: 20px; }

  .faq summary { font-size: 16px; padding: 18px 0; }

  .cta-inner { flex-direction: column; align-items: flex-start; padding-top: 56px; padding-bottom: 56px; gap: 22px; }
  .cta-action { align-items: flex-start; width: 100%; }
  .cta-action .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer .container { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 오픈 준비 중 안내창 (APP_OPEN=false 일 때 툴 링크 클릭 시) ---------- */
.soon-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.soon-modal.is-open { display: flex; }
.soon-backdrop { position: absolute; inset: 0; background: rgba(16, 16, 20, 0.55); }
.soon-box {
  position: relative; width: 100%; max-width: 520px; background: var(--bg); color: var(--ink);
  border: 2px solid var(--ink); padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 60px rgba(16, 16, 20, 0.25);
}
.soon-title { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.soon-text { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.soon-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.soon-actions .btn { font-size: 15px; padding: 12px 22px; }
body.soon-open { overflow: hidden; }
@media (max-width: 480px) {
  .soon-box { padding: 28px 22px 24px; }
  .soon-title { font-size: 30px; }
  .soon-actions { flex-direction: column; }
}
