/* mb 영역 전용 스타일 — 클래스는 .mb- 로 시작 */

/* 공통 작은 부품 */
.mb-block { display: block; }
.mb-sub { font-size: var(--fs-lg); display: inline-flex; align-items: center; gap: 6px; }
.mb-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-top { align-items: flex-start; }
.mb-ok { color: var(--ok); }
.mb-img { background: var(--surface-2); color: var(--ink-3); font-size: var(--fs-sm); }
img.mb-img, .mb-img img { color: var(--ink-3); }

/* 목록 줄(링크가 줄 전체) */
.list > li.mb-li { padding: 0; display: block; }
.mb-li__a { display: flex; align-items: center; gap: 10px; padding: 14px 18px; min-height: 52px; min-width: 0; }
.mb-li__a:hover { background: var(--surface-3); }
.mb-li__a .li-chev { flex: 0 0 auto; }

/* 고객센터 진입 카드 */
.mb-entry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mb-entry__card { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mb-entry__card .li-chev { color: var(--ink-3); }
.mb-entry__t { font-size: var(--fs-lg); }
@media (max-width: 900px) { .mb-entry { grid-template-columns: 1fr; } }

/* 공지 */
.mb-notice { align-items: flex-start; }
.mb-notice .grow { min-width: 0; }
.mb-notice__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mb-notice .li-chev { margin-top: 2px; }
.mb-notices .is-pinned { background: var(--warn-soft); }
.mb-notices .is-pinned .mb-li__a:hover { background: var(--crema-soft); }
.mb-article__head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mb-article__head h1 { font-size: var(--fs-h3); line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.list > a .mb-ellipsis { flex: 1 1 auto; }

/* FAQ 아코디언 */
.mb-faq { display: flex; flex-direction: column; gap: 10px; }
.mb-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.mb-faq__item summary { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r); }
.mb-faq__item summary::-webkit-details-marker { display: none; }
.mb-faq__item summary:hover { background: var(--surface-3); }
.mb-faq__item summary > .ic:first-child { color: var(--accent); margin-top: 2px; flex: 0 0 auto; }
.mb-faq__item summary .grow { min-width: 0; }
.mb-faq__chev { color: var(--ink-3); flex: 0 0 auto; margin-top: 2px; transition: transform var(--t-short) var(--ease); }
.mb-faq__item[open] { border-color: var(--line-strong); }
.mb-faq__item[open] .mb-faq__chev { transform: rotate(180deg); }
.mb-faq__a { display: flex; gap: 10px; align-items: flex-start; padding: 0 18px 18px 18px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.mb-faq__item:target { border-color: var(--accent); }

/* 약관 */
.mb-policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.mb-policy__toc { position: sticky; top: calc(var(--header-h) + 16px); }
.mb-policy__toc ol { display: flex; flex-direction: column; gap: 2px; }
.mb-policy__toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--ink-2); }
.mb-policy__toc a:hover { background: var(--surface-3); color: var(--ink); }
.mb-policy__body h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.mb-policy__body > :first-child { margin-top: 0; }
.mb-consent .row { align-items: flex-start; }
@media (max-width: 900px) {
  .mb-policy { grid-template-columns: 1fr; }
  .mb-policy__toc { position: static; }
}

/* 온보딩 슬라이드 */
.mb-onb { padding-bottom: 32px; }
.mb-onb__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.mb-onb__track::-webkit-scrollbar { display: none; }
.mb-onb__track:focus-visible { box-shadow: var(--focus); outline: 0; }
.mb-onb__slide { scroll-snap-align: start; min-width: 0; padding: 0 2px; }
.mb-onb__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.mb-onb__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-onb__badge { position: absolute; left: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.mb-onb__badge .ic { width: 26px; height: 26px; }
.mb-onb__title { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -0.02em; word-break: keep-all; }
.mb-onb__dots { display: flex; justify-content: center; gap: 4px; }
.mb-onb__dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-pill); }
.mb-onb__dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--line-strong); transition: width var(--t-mid) var(--ease), background var(--t-mid) var(--ease); }
.mb-onb__dot[aria-current="step"]::before { width: 22px; background: var(--accent); }
.mb-onb__foot { display: flex; gap: 10px; }
.mb-onb__foot .grow { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .mb-onb__track { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .mb-onb__dot::before { transition: none; }
}

/* 알림 권한 안내 */
.mb-perm__mark { margin: 0 auto; width: 64px; height: 64px; border-radius: 20px; }
.mb-perm__mark .ic { width: 30px; height: 30px; }

/* 서비스 소개: 히어로 */
.mb-hero { padding: 48px 0 56px; }
.mb-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.mb-hero__title { font-size: var(--fs-h1); line-height: 1.18; letter-spacing: -0.03em; word-break: keep-all; }
.mb-hero__title em { font-style: normal; color: var(--crema); }
.mb-hero__lead { font-size: var(--fs-lg); margin-top: 16px; max-width: 32em; }
.mb-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: var(--fs-sm); }
.mb-hero__meta li { display: inline-flex; align-items: center; gap: 6px; color: var(--surface-2); }
.mb-hero__photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); background: var(--night-2); }
.mb-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-hero__float { position: absolute; left: 16px; right: 16px; bottom: 16px; background: var(--night); border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; color: var(--surface); }
.mb-hero__float .small { color: var(--surface-2); }
.mb-hero__big { font: 700 40px/1 var(--font-num); color: var(--crema); }
@media (max-width: 900px) {
  .mb-hero { padding: 32px 0 40px; }
  .mb-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .mb-hero__photo { aspect-ratio: 4 / 3; }
}

/* 서비스 소개: 3단계·기능·사진 띠·CTA */
.mb-steps { display: flex; flex-direction: column; gap: 16px; }
.mb-steps li { display: flex; gap: 14px; align-items: flex-start; }
.mb-steps__n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--surface); font-weight: 700; }
.mb-feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mb-feat h3 { font-size: var(--fs-lg); }
.mb-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mb-strip li { aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; }
.mb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-cta { display: flex; align-items: center; gap: 24px; padding: 36px; border-radius: var(--r-lg); }
.mb-cta .btn-row { flex: 0 0 auto; }
@media (max-width: 900px) {
  .mb-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
@media (max-width: 480px) { .mb-feat { grid-template-columns: 1fr; } }
.mb-col { min-width: 0; }
.mb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .mb-two { grid-template-columns: 1fr; } }
.mb-reset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mb-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mb-search .mb-search__q { flex: 1 1 220px; min-width: 0; }
.mb-search .select { width: auto; flex: 0 0 auto; }
.mb-qa { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-sm); font: 700 13px var(--font-num); background: var(--accent-soft); color: var(--accent-ink); flex: 0 0 auto; }
.mb-qa.is-a { background: var(--crema-soft); color: var(--warn); }
@media (max-width: 600px) { .mb-search .mb-search__q { flex-basis: 100%; } .mb-search .select { flex: 1 1 auto; } }
