@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;700&display=swap");

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  line-height: 1.8;
  font-size: 18px;
  color: var(--ink, #171717);
  background: var(--bg, #fff);
  font-family: var(--font, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}
img { max-width: 100%; display: block; border: 0 }
a { color: var(--accent, #111); text-decoration: none }

.cbd-wrap { max-width: 900px; margin: 0 auto; padding: 56px 24px 96px }
.cbd-ad-note { font-size: 13px; color: var(--muted, #667085); margin: 0 0 16px }
.cbd-hero { margin-bottom: 8px }
.cbd-hero .tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--tag-bg, #f3f4f6);
  color: var(--tag-ink, #111);
  margin-bottom: 16px;
}
.cbd-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3rem);
  line-height: 1.35;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  font-weight: 750;
}
.cbd-hero p { margin: 0; font-size: 1.15rem; color: var(--lead, #3f3f46) }

.cbd-box {
  margin: 28px 0 8px;
  padding: 18px 20px;
  background: var(--box-bg, #f6f7f8);
  border: 1px solid var(--line, #ececec);
  border-radius: var(--radius, 16px);
}
.cbd-box b { display: block; margin-bottom: 8px; font-size: 16px; letter-spacing: .02em }

.cbd-h2 {
  margin: 64px 0 22px;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  font-weight: 720;
}
.cbd-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: card;
}
.cbd-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg, #fff);
  border: 1px solid var(--line, #ececec);
  border-radius: var(--radius, 16px);
  overflow: hidden;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cbd-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(17,17,17,.06) }
.cbd-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center;
  background: #f3f4f6;
}
.cbd-card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.cbd-card h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.02em }
.cbd-card p { margin: 0; font-size: 1rem; color: var(--muted, #667085); flex: 1 }
.cbd-card .btn { font-size: .85rem; font-weight: 700; color: var(--accent, #111) }

.cbd-list { margin: 0; padding: 0; list-style: none }
.cbd-list li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 42px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--line, #ececec);
  border-radius: 12px;
}
.cbd-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent, #111);
  opacity: .35;
}

.cbd-table-wrap { overflow-x: auto; border: 1px solid var(--line, #ececec); border-radius: var(--radius, 16px) }
.cbd-table { width: 100%; border-collapse: collapse; font-size: 1.02rem }
.cbd-table th, .cbd-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line, #ececec) }
.cbd-table tr:last-child td { border-bottom: 0 }
.cbd-table th { background: var(--th-bg, #f6f7f8); font-weight: 700 }
.cbd-table-note { font-size: .88rem; color: var(--muted, #667085); margin: 10px 0 0 }

.cbd-faq {
  border: 1px solid var(--line, #ececec);
  border-radius: 14px;
  margin: 8px 0;
  background: var(--card-bg, #fff);
}
.cbd-faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cbd-faq summary::-webkit-details-marker { display: none }
.cbd-faq summary::after { content: "+"; color: var(--muted, #667085); font-weight: 500 }
.cbd-faq[open] summary::after { content: "-" }
.cbd-faq .a { padding: 0 18px 16px; color: var(--lead, #3f3f46) }

.cbd-cta {
  margin: 56px 0 28px;
  padding: 36px 28px;
  text-align: left;
  background: var(--cta-bg, #111);
  color: #fff;
  border-radius: calc(var(--radius, 16px) + 4px);
}
.cbd-cta h2 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -.03em }
.cbd-cta p { margin: 0 0 20px; opacity: .82 }
.cbd-cta a {
  display: inline-flex;
  background: var(--cta-btn, #fff);
  color: var(--cta-btn-ink, #111);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.cbd-legal { font-size: 14px; color: #525252; line-height: 1.8; margin-top: 56px }
.cbd-legal p { margin: 0 0 8px }
.cbd-legal .sim { font-weight: 700; color: #404040 }
.cbd-logo { margin-top: 24px }
.cbd-logo img { max-height: 44px }

.home .cbd-cards { grid-template-columns: repeat(2, 1fr) }

@media (max-width: 767px) {
  .cbd-wrap { padding: 28px 16px 64px }
  .cbd-cards, .home .cbd-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }
  .cbd-cards li, .home .cbd-cards li { flex: 0 0 78%; scroll-snap-align: start }
}
