/* SmartERP 홍보 사이트 공통 스타일 (smart-erp.co.kr) */
:root {
  --blue: #2f5bd7;
  --blue-dark: #2247b0;
  --ink: #1b2431;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #eef1f6;
  --card: #ffffff;
  --radius: 14px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- 헤더 ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #3b6fe6, #2247b0);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 9px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 14.5px;
  border: 0; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.ghost:hover { background: #f4f7ff; }
.btn.lg { padding: 14px 28px; font-size: 16px; }

/* ---- 히어로 ---- */
.hero { padding: 76px 0 64px; text-align: center; }
.hero h1 { font-size: 42px; margin-bottom: .35em; }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 1.8em; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.badge {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}

/* ---- 섹션 ---- */
section { padding: 58px 0; }
section.tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* ---- 카드 그리드 ---- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 18px; margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  background: #eef3ff; color: var(--blue); display: grid; place-items: center; font-size: 20px;
}

/* ---- 요금 ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan.featured { border: 2px solid var(--blue); position: relative; }
.plan.featured::after {
  content: "추천"; position: absolute; top: -12px; right: 22px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan .price { font-size: 30px; font-weight: 800; margin: .2em 0; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* ---- 흐름 ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { text-align: center; }
.step .n {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step h4 { margin: 0 0 .3em; font-size: 15.5px; }
.step p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---- CTA 배너 ---- */
.cta-banner { background: linear-gradient(135deg, #2f5bd7, #2247b0); color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; font-size: 28px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.6em; }
.cta-banner .btn { background: #fff; color: var(--blue); }
.cta-banner .btn:hover { background: #eaf0ff; }

/* ---- 폼 ---- */
.form-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-card label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin: 14px 0 5px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; font-size: 14px;
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: 2px solid var(--blue); border-color: var(--blue);
}
.form-msg { margin-top: 14px; padding: 11px 14px; border-radius: 8px; font-size: 13.5px; display: none; }
.form-msg.ok { background: #e7f6ec; color: #1a7f43; display: block; }
.form-msg.err { background: #fdecec; color: #c0392b; display: block; }

/* ---- 표 ---- */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.compare th { background: #f8fafc; font-weight: 700; }
table.compare tr:last-child td { border-bottom: 0; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 15px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 12px 0; margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---- 푸터 ---- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 44px 0 30px; margin-top: 20px; font-size: 13.5px; }
.site-footer a { color: #cbd5e1; }
.site-footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 26px; }
.site-footer .brand { color: #fff; font-size: 16px; }
.site-footer .brand .logo { background: #33405a; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .fine { color: #64748b; border-top: 1px solid #2b3648; padding-top: 18px; line-height: 1.9; }

/* ---- 반응형 ---- */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 62px 0 auto 0; background: #fff; flex-direction: column;
         align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line);
         display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { text-align: center; margin-top: 12px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 52px 0 44px; }
  .section-head h2 { font-size: 24px; }
  .grid.cols-3, .grid.cols-2, .price-grid, .steps { grid-template-columns: 1fr; }
}
