* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f0f1f5;
  --card: #ffffff;
  --soft: #f8f8fb;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e7e8ee;
  --accent: #e5333a;
  --accent-soft: rgba(229, 51, 58, 0.1);
  --blue: #2f6fed;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
.main-title,
.section-title,
.deal-name,
.card-title,
.faq-q,
.check-title,
.tip-title {
  word-break: keep-all;
}

body {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-wrapper {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: 40px;
}

/* ── 공정위 고지 배너 ── */
.disclosure-bar {
  background: #2b2b33;
  color: #e9e9ef;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 10px 18px;
  text-align: center;
  letter-spacing: -0.2px;
}

/* ── 헤더 ── */
.main-header {
  padding: 22px 22px 16px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.main-title {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.6px;
}

.main-title .highlight {
  color: var(--accent);
}

.main-sub {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.updated-at {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* ── 페이지 상단 (서브페이지) ── */
.sub-header {
  padding: 22px 22px 18px;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.sub-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.sub-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── 섹션 ── */
.section {
  padding: 0 18px;
  margin-top: 26px;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-left: 4px;
  letter-spacing: -0.3px;
}

.section-title small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ── 특가 카드 ── */
.deal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deal-card {
  display: block;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}

.deal-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

.deal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-body {
  padding: 14px 15px 15px;
}

.deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tag-rocket {
  background: rgba(47, 111, 237, 0.1);
  color: var(--blue);
  border-color: rgba(47, 111, 237, 0.2);
}

.deal-rank-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #2b2b33;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-right: 6px;
  vertical-align: 1px;
}

.deal-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.deal-rate {
  font-size: 19px;
  font-weight: 900;
  color: var(--accent);
}

.deal-price {
  font-size: 19px;
  font-weight: 900;
}

.deal-origin {
  font-size: 13px;
  color: #9b9ba5;
  text-decoration: line-through;
}

.deal-unit {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.deal-coupon {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4e8;
  border: 1px solid #f7d4ae;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  color: #9a5a11;
}

.deal-reasons {
  margin-top: 11px;
  padding: 0;
  list-style: none;
}

.deal-reasons li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #3c3c46;
  margin-bottom: 3px;
}

.deal-reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.deal-note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.deal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 13px;
  height: 46px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.deal-disclosure {
  margin-top: 9px;
  font-size: 10.5px;
  line-height: 1.5;
  color: #9b9ba5;
  text-align: center;
}

/* ── 비었을 때 ── */
.deal-empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── 안내 박스 ── */
.notice-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.notice-box strong {
  color: var(--text);
}

/* ── 메뉴 카드 ── */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: var(--shadow);
}

.menu-emoji {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card-desc {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.menu-arrow {
  color: #c4c4cf;
  font-size: 18px;
  font-weight: 700;
}

/* ── 본문 콘텐츠 블록 ── */
.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 17px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.tip-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 9px;
}

.content-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #3c3c46;
}

.content-card p + p {
  margin-top: 10px;
}

.content-card ul {
  margin-top: 10px;
  padding-left: 18px;
}

.content-card li {
  font-size: 14px;
  line-height: 1.8;
  color: #3c3c46;
  margin-bottom: 5px;
}

.kv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.kv-table th,
.kv-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  line-height: 1.6;
}

.kv-table th {
  background: var(--soft);
  font-weight: 700;
  width: 34%;
  color: var(--muted);
}

/* ── 체크리스트 ── */
.check-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.check-item.on {
  border-color: var(--accent);
  background: #fff7f7;
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--line);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
  font-weight: 900;
}

.check-item.on .check-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.check-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
}

.check-desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.check-result {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.check-score {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}

.check-msg {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.check-reset {
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

/* ── FAQ ── */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 9px;
  overflow: hidden;
}

.faq-q {
  padding: 15px 16px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.faq-q span:last-child {
  color: #c4c4cf;
  flex-shrink: 0;
}

.faq-a {
  display: none;
  padding: 0 16px 15px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-item.on .faq-a {
  display: block;
}

/* ── 푸터 ── */
.site-footer {
  margin-top: 34px;
  padding: 22px 22px 8px;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.footer-nav a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.footer-disclosure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-meta {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.8;
  color: #9b9ba5;
}
