:root {
  --main: #2563eb;
  --main-soft: #eff4ff;
  --text: #111827;
  --sub: #4b5563;
  --line: #e5e7eb;
  --promo: #dc2626;
  --diff: #fff4c2;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px; line-height: 1.55; word-break: keep-all;
}
a { color: var(--main); }
h1 { font-size: 28px; line-height: 1.3; margin: 8px 0 12px; }
h2 { font-size: 22px; margin: 28px 0 12px; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }

.preview-bar { background: #fde68a; color: #78350f; text-align: center; font-weight: 700; padding: 6px 12px; font-size: 16px; }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 1100px; margin: 0 auto; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.top a { display: inline-flex; align-items: center; min-height: 44px; }
.top .logo { font-weight: 800; font-size: 22px; color: var(--main); text-decoration: none; }
.top nav a { margin-left: 14px; padding: 0 4px; text-decoration: none; font-weight: 600; }
#compare-count { display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 12px; background: var(--main); color: #fff; font-size: 15px; text-align: center; }
.foot { max-width: 1100px; margin: 40px auto 0; padding: 20px 16px 40px; border-top: 1px solid var(--line); color: var(--sub); font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  border: 0; border-radius: 12px; padding: 12px 22px; font-size: 19px; font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: center; font-family: inherit;
}
.btn-main, .btn-join { background: var(--main); color: #fff; }
.btn-sub { background: var(--main-soft); color: var(--main); }
.btn-call { background: #16a34a; color: #fff; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 17px; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: default; }

/* 첫 화면 */
.hero { text-align: center; padding: 36px 8px 24px; }
.hero h1 { font-size: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.carriers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0; }

.badge { text-decoration: none; display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
.c-umobile { background: #e6007e; } .c-hello { background: #d6006e; } .c-ktm { background: #ed1c24; }
.c-theone { background: #6d28d9; } .c-smartel { background: #4a26ff; } .c-pretty { background: #f97316; }
.net { color: var(--sub); font-size: 15px; margin-left: 6px; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 20px; margin: 4px 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card .price { font-size: 26px; font-weight: 800; }
.card .promo { color: var(--promo); font-weight: 700; font-size: 16px; }
.card .specs { color: var(--sub); font-size: 16px; }
.card .total { font-size: 15px; color: var(--sub); }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.card.picked { border-color: var(--main); box-shadow: 0 0 0 2px var(--main) inset; }
.save { background: #dcfce7; color: #166534; font-weight: 800; border-radius: 10px; padding: 6px 10px; font-size: 17px; }

/* 추천 질문 */
.quiz { max-width: 560px; margin: 0 auto; }
.quiz .step { color: var(--sub); font-size: 16px; }
.quiz .choices { display: grid; gap: 10px; margin-top: 16px; }
.quiz .choices button { width: 100%; background: #fff; color: var(--text); border: 2px solid var(--line); }
.quiz .choices button:hover { border-color: var(--main); }
.quiz input { width: 100%; font-size: 22px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; font-family: inherit; }
.quiz .row { display: flex; gap: 10px; margin-top: 14px; }
.quiz .row .btn { flex: 1; }

/* 목록 필터 */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.filters label { display: flex; flex-direction: column; font-size: 15px; color: var(--sub); gap: 4px; }
.filters select { font-size: 17px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: inherit; }
.count { color: var(--sub); margin: 0 0 10px; }
.more { display: block; margin: 20px auto; }

/* 비교 */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { border-collapse: collapse; min-width: 560px; width: 100%; }
.compare th, .compare td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; font-size: 17px; }
.compare th { background: #f9fafb; width: 120px; white-space: nowrap; }
.compare td.diff { background: var(--diff); font-weight: 700; }

/* 상세 */
.detail { max-width: 720px; }
.price-big { font-size: 26px; font-weight: 800; color: var(--promo); margin: 4px 0 16px; }
.spec { border-collapse: collapse; width: 100%; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 12px 6px; text-align: left; }
.spec th { width: 34%; color: var(--sub); font-weight: 600; }
.benefits { padding-left: 22px; }
.join { margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.consult { background: #f0fdf4; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.consult-title { margin: 0; font-weight: 700; }
.checked { color: var(--sub); font-size: 15px; }
.empty { color: var(--sub); text-align: center; padding: 30px 0; }

@media (max-width: 600px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 26px; }
  .hero .actions .btn { width: 100%; }
  .top nav a { margin-left: 10px; font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
}
