:root {
  --paper: #fafbf9;
  --card: #ffffff;
  --ink: #1c2622;
  --muted: #5d6b63;
  --line: #dde4df;
  --accent: #0e7a5f;
  --accent-soft: #e7f2ec;
  --warn: #a8531a;
  --warn-soft: #f9ede2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141a17;
    --card: #1b2320;
    --ink: #e6ece8;
    --muted: #93a29a;
    --line: #2c3833;
    --accent: #4cc39a;
    --accent-soft: #1e332b;
    --warn: #e0925c;
    --warn-soft: #33261b;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
}
body { overflow-x: hidden; }

.wrap { max-width: 640px; margin: 0 auto; padding: 28px 20px 80px; }

.badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(21px, 5.5vw, 27px);
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

.intro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  font-size: 14.5px;
  color: var(--ink);
}
.intro p { margin: 0 0 10px; }
.intro p:last-child { margin-bottom: 0; }
.intro b { color: var(--accent); }

.perk {
  display: flex; align-items: center; gap: 8px;
  background: var(--warn-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.perk b { color: var(--warn); }

#live-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}

section.q-section { margin-bottom: 8px; }
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent);
  margin: 34px 0 4px;
}
.section-title:first-of-type { margin-top: 0; }

.question {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
}
.q-label {
  font-size: 15px; font-weight: 600;
  margin: 0 0 4px;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.q-hint {
  font-size: 12.5px; color: var(--muted); font-weight: 500;
  margin: 0 0 12px;
}
.q-optional {
  font-size: 11px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px;
}
.limit-note {
  font-size: 12px; color: var(--muted); margin: -4px 0 12px;
  transition: color .2s;
}
.limit-note--flash { color: var(--warn); font-weight: 700; }

.opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 14.5px;
}
.opt:last-child { border-bottom: none; }
.opt input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.opt span { flex: 1; }

.other-input {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.other-input:disabled { opacity: .4; }

textarea.other-input { min-height: 78px; resize: vertical; }

input[type="tel"], input[type="text"].standalone {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

.consent-row {
  display: none;
  align-items: flex-start; gap: 8px;
  margin-top: 10px;
  font-size: 13px; color: var(--muted);
}
.consent-row input { margin-top: 3px; accent-color: var(--accent); }

.submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.submit-btn:disabled { opacity: .6; }

.error-box {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-top: 14px;
  font-weight: 600;
}

.success-box {
  text-align: center;
  padding: 60px 10px;
}
.success-box .icon { font-size: 40px; margin-bottom: 14px; }
.success-box h2 { font-size: 19px; margin: 0 0 10px; }
.success-box p { color: var(--muted); font-size: 14.5px; max-width: 40ch; margin: 0 auto; }

footer.legal {
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* compare page */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
th {
  text-align: left; font-size: 11.5px; letter-spacing: .05em; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; }

.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; text-align: center;
}
.stat-card .n { font-size: 30px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-card .label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat-card a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }

.bar-row { margin-bottom: 14px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bar-track { height: 10px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }

.nav-links { display: flex; gap: 10px; margin-bottom: 24px; }
.nav-links a {
  flex: 1; text-align: center; padding: 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 14px;
}
.nav-links a small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
