:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1d2321;
  --muted: #5f6a66;
  --border: #e3e7e4;
  --accent: #1f9e7e;
  --accent-soft: #e3f5ef;
  --star: #f5a623;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --surface: #1a201e;
    --text: #e8ecea;
    --muted: #9aa6a1;
    --border: #2a3230;
    --accent: #4fd1ab;
    --accent-soft: #1b2e28;
    --star: #ffc04d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Main */
main { padding-block: 40px 64px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.3;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 40px 0 8px;
  padding-top: 8px;
}
h3 {
  font-size: 17px;
  margin: 24px 0 4px;
}
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }

.lang-switch {
  font-size: 14px;
  margin-bottom: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 20px 0;
}
.card > :last-child { margin-bottom: 0; }

.summary {
  border-left: 4px solid var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table-scroll { overflow-x: auto; margin: 12px 0 20px; }
th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px 10px 0;
}
th { color: var(--muted); font-weight: 600; white-space: nowrap; }

hr.lang-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0 8px;
}

/* Product (index) */
.product {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.product img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex: none;
}
.product-body { flex: 1 1 260px; }
.product h2 { margin: 0 0 4px; padding: 0; }
.tagline { color: var(--muted); margin: 0 0 10px; }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.links li { margin: 0; }

.hero p.lead { font-size: 18px; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.site-footer .wrap { padding-block: 28px; }
.site-footer p { margin: 0; }
.site-footer .company { font-weight: 700; color: var(--text); margin-bottom: 4px; }
