:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #0f4c81;
  --primary-hover: #0a365c;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --radius: 10px;
  --max-width: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.94rem; font-weight: 500; }
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }

.hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  margin: 24px 0;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero h1 { margin: 0 0 10px; font-size: 1.85rem; line-height: 1.3; }
.hero p { margin: 0; color: var(--text-secondary); max-width: 720px; }

.cta-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-cta:hover { background: var(--primary-hover); text-decoration: none; }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  color: var(--text-main);
  border: 1px dashed var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-copy:hover { background: #e2e8f0; }
.btn-copy.copied { background: var(--accent-soft); border-color: var(--accent); color: #0f766e; }

.code-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--primary);
}

.section { margin: 32px 0; }
.section-title { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; }
.section-subtitle { margin: 0 0 16px; font-size: 0.94rem; color: var(--text-secondary); }

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; text-align: left; }
.compare-table th {
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.93rem;
}
.compare-table tr:last-child td { border-bottom: none; }

.rating-pill {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-meta { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.4; }
.card p { margin: 0 0 14px; color: var(--text-secondary); font-size: 0.92rem; }
.card-link { font-weight: 600; font-size: 0.9rem; }

.article-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin: 24px 0;
}

.article-wrap h1 { margin-top: 0; font-size: 1.75rem; line-height: 1.35; }
.article-meta {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.article-wrap h2 {
  margin-top: 24px;
  font-size: 1.22rem;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.summary-box {
  background: var(--bg-muted);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0 22px;
  font-size: 0.94rem;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item p { margin: 10px 0 0; color: var(--text-secondary); font-size: 0.92rem; }

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .hero, .article-wrap { padding: 22px 18px; }
  .hero h1, .article-wrap h1 { font-size: 1.45rem; }
}
