/* CID Scan — Landing Site (대시보드 디자인 시스템 기반) */

:root {
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  --ink:     #172b44;
  --muted:   #68798d;
  --line:    #e5eaf0;
  --teal:    #0c756c;
  --accent:  #147d73;
  --coral:   #ee725c;
  --bg:      #f5f7fa;
  --white:   #fff;
  --radius:  14px;
  --shadow:  0 4px 18px rgba(23,43,68,.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font: inherit; }
button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ── Header ── */
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
}
.logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.header-nav a { color: var(--muted); }
.header-nav a:hover { color: var(--teal); text-decoration: none; }

/* ── Hero ── */
.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 52px 40px 44px;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1; min-width: 0; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--teal); }
.hero-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

/* ── Steps (사용 순서) ── */
.use-steps {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-bottom: 24px;
  font-size: 12px;
  color: #52677c;
  flex-wrap: wrap;
}
.use-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.use-steps li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e4eee9;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}

/* ── CTA 버튼 ── */
.cta-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 9px;
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.btn-install:hover { background: #274564; text-decoration: none; }

.btn-open {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 9px;
  border: 1px solid var(--teal);
  cursor: pointer;
  transition: background .15s;
}
.btn-open:hover { background: #0a6360; }

.installed-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
}
.installed-badge::before { content: "✓"; }

.install-hint {
  font-size: 11px;
  color: var(--muted);
}

/* ── 수동 열기 안내 ── */
.manual-open {
  margin-top: 4px;
  width: 100%;
  max-width: 460px;
}
.manual-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.manual-toggle:hover { color: var(--teal); }
.manual-steps {
  margin-top: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 12px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.manual-steps > p { margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.manual-method {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.manual-method:first-of-type { border-top: none; padding-top: 0; }
.manual-method strong { display: block; margin-bottom: 5px; font-size: 12px; }
.manual-method p { margin: 2px 0; line-height: 1.7; color: var(--muted); font-size: 12px; }
.sub-step { font-size: 11px; color: var(--muted); margin-top: 4px; }
.code-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0 4px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
}
.code-copy code {
  font-family: Consolas, ui-monospace, monospace;
  font-size: 12px;
  color: var(--teal);
  flex: 1;
}
.code-copy button {
  background: #eef6f3;
  border: 1px solid #d0e8df;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.code-copy button:hover { background: #d9f0e8; }

/* ── 히어로 사이드 이미지/배지 ── */
.hero-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.stat-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 220px;
}
.stat-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.stat-chip .sc-label { font-size: 10px; color: var(--muted); display: block; margin-bottom: 4px; }
.stat-chip .sc-value { font-size: 22px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); }
.stat-chip.accent { background: #ecf4f0; border-color: #dcebe2; }
.stat-chip.accent .sc-value { color: var(--teal); }

/* ── 섹션 공통 ── */
.section-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── 기능 카드 ── */
.features {
  padding: 56px 40px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features-inner { max-width: 1360px; margin: 0 auto; }
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.features h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.8px;
  color: var(--ink);
  margin-bottom: 28px;
}
.how h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.8px;
  color: var(--ink);
  margin-bottom: 28px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.feature-card h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; line-height: 1.5; }
.feature-card p  { font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ── 작동 방식 ── */
.how {
  padding: 56px 40px;
  background: var(--bg);
}
.how-inner { max-width: 760px; margin: 0 auto; }
.how h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.8px;
  color: var(--ink);
  margin-bottom: 28px;
}
/* 기존 .how h2 제거 (위에서 통합) */
.steps-list { display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e4eee9;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.step-body p  { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ── 개인정보 배너 ── */
.privacy-banner {
  padding: 40px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.privacy-banner-inner {
  max-width: 1360px;
  margin: 0 auto;
  border-left: 3px solid #d3e2d9;
  padding: 4px 20px;
}
.privacy-banner-inner h3 { font-size: 13px; font-weight: 700; color: #4b6259; margin-bottom: 6px; }
.privacy-banner-inner p  { font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ── Footer ── */
.site-footer {
  padding: 20px 40px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.site-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: .8px;
  color: #8895a5;
}
.site-footer a { color: var(--teal); font-size: 10px; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .hero { padding: 40px 24px 36px; }
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-side { align-items: flex-start; }
  .stat-chips { flex-direction: row; width: auto; }
  .features { padding: 44px 24px; }
  .how { padding: 44px 24px; }
  .privacy-banner { padding: 32px 24px; }
  .site-footer { padding: 18px 24px; }
}
@media (max-width: 600px) {
  .site-header { height: 64px; padding: 0 18px; }
  .logo { font-size: 16px; }
  .hero h1 { font-size: 28px; }
  .stat-chips { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; gap: 6px; text-align: center; }
  .header-nav { gap: 14px; font-size: 11px; }
}

/* ── CTA 두 카드 레이아웃 ── */
.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
  max-width: 540px;
}
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
}
.cta-card--primary {
  border-color: var(--teal);
  border-top: 3px solid var(--teal);
}
.cta-card--secondary {
  background: var(--bg);
}
.cta-card-badge {
  position: absolute;
  top: -1px; right: 14px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: .5px;
}
.cta-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 6px;
}
.cta-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.btn-manual {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  margin-top: auto;
}
.btn-manual:hover {
  background: #f3f7f6;
  border-color: #b8d2c9;
  color: var(--teal);
  text-decoration: none;
}

@media (max-width: 600px) {
  .cta-cards { grid-template-columns: 1fr; max-width: 100%; }
}
