/* ============================================================
   components.css — 헤더 · 푸터 · 버튼 · 칩 · 카드 · 진행표시 · 게이지 · 토스트 · 폼 · 뱃지
   v6: 디자이너 시안 기준(흰 카드 24px · 틸→블루 그라데이션 CTA · 네이비 아웃라인 · 틸 알약 스텝)
   ============================================================ */

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(38, 74, 148, .08);
  height: var(--header-h); backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; height: 100%; min-width: 0; }
.brand-logo { display: block; height: var(--logo-h, 30px); width: auto; flex: none; }
.brand-sig { display: inline-flex; align-items: center; }
.logo__divider { width: 1px; height: 22px; background: #C9D3E0; display: none; }
.logo__campaign { font-size: var(--fs-sm); color: var(--sub); font-weight: 500; white-space: nowrap; display: none; }
@media (min-width: 1200px) { .logo__campaign { display: inline; } .logo__divider { display: block; } }

.nav { display: none; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 13px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--sky-tint); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--navy-tint); }
.nav a.nav__cta { color: var(--ink); background: transparent; margin-left: 0; }
.nav a.nav__cta[aria-current="page"] { color: var(--navy); background: var(--navy-tint); }
@media (min-width: 1024px) { .nav { display: flex; } }

.hdr-tools { display: flex; align-items: center; gap: 6px; position: relative; }
.hdr-my {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--navy); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; transition: background .15s, color .15s;
}
.hdr-my:hover, .hdr-my[aria-expanded="true"] { background: var(--navy); color: #fff; }
.hdr-my span { display: none; }
@media (min-width: 640px) { .hdr-my span { display: inline; } }
@media (max-width: 639px) { .hdr-my { width: 40px; padding: 0; } }
@media (min-width: 1024px) { .hdr-my { margin-left: 10px; } }
.popover {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  width: min(360px, calc(100vw - 32px)); padding: 18px; border-radius: 18px; background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  animation: popIn .16s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.popover__title { font-weight: 800; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.popover__input { letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.popover__input::placeholder { letter-spacing: 0; font-weight: 400; text-transform: none; }
.popover__hint { margin-top: 10px; }
.popover__hint b { color: var(--navy); letter-spacing: .08em; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
}
.menu-btn:hover { background: var(--soft); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* 모바일 메뉴 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.mobile-menu__list { padding: 12px var(--gutter); overflow: auto; }
.mobile-menu__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--ink);
}
.mobile-menu__list a[aria-current="page"] { color: var(--navy); }
.mobile-menu__list a .icon { color: var(--sub); }
.mobile-menu__foot { margin-top: auto; padding: 16px var(--gutter) 28px; }
body.menu-open { overflow: hidden; }

/* ---------- 푸터(틸 그라데이션 밴드) ---------- */
.site-footer { padding: 36px 0 40px; background: var(--grad-band); color: #fff; margin-top: 40px; }
.site-footer .container { display: flex; flex-direction: column; gap: 16px; }
.site-footer__host { display: flex; align-items: center; gap: 10px; }
.site-footer__host .brand-logo { height: 40px; }
.site-footer__host span { display: none; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-sm); color: #fff; font-weight: 600; }
.site-footer__links a { opacity: .92; }
.site-footer__links a:hover { opacity: 1; text-decoration: underline; }
.site-footer__meta { font-size: var(--fs-xs); color: rgba(255, 255, 255, .85); }
@media (min-width: 1024px) {
  .site-footer { padding: 44px 0 48px; margin-top: 64px; }
  .site-footer .container { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .site-footer__host .brand-logo { height: 46px; }
}
body.has-sticky .site-footer { margin-bottom: 0; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: var(--r-btn);
  font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .08s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 10px 24px rgba(0, 162, 154, .34); }
.btn--blue { background: var(--navy); color: #fff; }
.btn--blue:hover:not(:disabled) { background: var(--navy-deep); }
.btn--secondary { background: #fff; color: var(--ink); border-color: #D5DEE9; }
.btn--secondary:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover:not(:disabled) { background: var(--navy); color: #fff; }
.btn--gray { background: #E6EAF0; color: #6F7684; }
.btn--gray:hover:not(:disabled) { background: #DCE1E9; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: rgba(38, 74, 148, .06); }
.btn--tint { background: var(--teal-tint); color: var(--teal-deep); }
.btn--tint:hover:not(:disabled) { background: #D3EFED; }
.btn--gold { background: var(--kmrb-gold); color: #fff; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--xs { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn .icon { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--stack { flex-direction: column; }
.btn-row--stack .btn { width: 100%; }
@media (min-width: 640px) { .btn-row--stack { flex-direction: row; } .btn-row--stack .btn { width: auto; } }
.link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link--plain { text-decoration: none; }
.link:hover { color: var(--navy-deep); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-weight: 700; font-size: var(--fs-sm); }

/* 알약(히어로 카운터 등) */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1.5px solid rgba(38, 74, 148, .14); color: var(--navy);
  font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(38, 74, 148, .10); transition: border-color .15s, background .15s;
}
.pill:hover { border-color: var(--navy); background: #fff; }
.pill b { color: var(--teal); font-size: 16px; }
.pill .icon { color: var(--teal); }

/* ---------- 칩(선택 토글) — 체크 원이 있는 알약 ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px 0 8px; border-radius: 999px;
  background: #fff; border: 1.5px solid #D5DEE9; color: var(--ink);
  font-weight: 700; font-size: 15px; cursor: pointer; user-select: none; position: relative;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.chip:hover { border-color: var(--teal); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip__mark {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #D5DEE9; background: #F3F6FA;
  display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: none;
  transition: background .15s, border-color .15s, color .15s;
}
.chip .pf { display: none; }
.chip.is-on { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.chip.is-on .chip__mark { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip--sm { height: 40px; font-size: 14px; padding: 0 14px 0 6px; }
.chip--sm .chip__mark { width: 26px; height: 26px; }
/* OTT 선택 타일(STEP 1) — 로고 + 이름 · 체크는 오른쪽 위 · 모바일 3열 → 640px 4열 */
.chip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.chip--tile { height: auto; min-height: 96px; padding: 16px 8px 12px; border-radius: 16px; flex-direction: column; justify-content: center; gap: 8px; text-align: center; font-size: 13px; min-width: 0; }
.chip--tile .chip__mark { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; }
.chip--tile .pf { display: inline-flex; }
.chip--tile .pf--logo { border: 0; padding: 0; min-width: 0; height: 28px; background: transparent; }
.chip--tile .pf--logo img { height: 24px; max-width: 84px; }
.chip--tile .pf:not(.pf--logo) { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.chip--tile .chip__name { display: block; width: 100%; line-height: 1.25; overflow-wrap: anywhere; }
.chip--tile .chip__del { position: absolute; top: 6px; left: 6px; margin: 0; }
@media (min-width: 1024px) { .chip--tile { min-height: 104px; font-size: 14px; } .chip--tile .pf--logo img { height: 26px; max-width: 96px; } }

/* 플랫폼 아이콘(중립 스타일) */
.pf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; background: var(--navy-tint); color: var(--navy);
  font-weight: 800; font-size: 13px; letter-spacing: -0.02em; flex: none;
}
.pf--lg { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.pf--sm { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
/* 공식 로고 배지 — 흰 바탕 · 얇은 테두리 · 로고 높이 고정(가로는 비율대로 · 긴 로고는 max-width 안에서 축소) */
.pf--logo { width: auto; min-width: 32px; padding: 0 7px; background: #fff; border: 1px solid var(--line); }
.pf--logo img { display: block; height: 16px; width: auto; max-width: 64px; object-fit: contain; }
.pf--lg.pf--logo { min-width: 44px; padding: 0 10px; }
.pf--lg.pf--logo img { height: 22px; max-width: 96px; }
.pf--sm.pf--logo { min-width: 24px; padding: 0 5px; }
.pf--sm.pf--logo img { height: 12px; max-width: 52px; }
.pf-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 14px; }

/* ---------- 카드 ---------- */
.card { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 22px; }
.card--line { box-shadow: none; border: 1px solid var(--line); }
.card--soft { background: var(--soft); box-shadow: none; }
.card--tint { background: var(--mint-tint); box-shadow: none; }
.card--blue { background: var(--sky-tint); box-shadow: none; }
.card--gold { background: var(--gold-tint); box-shadow: none; }
.card--link { display: block; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-tint); color: var(--teal); margin-bottom: 14px; }
.card__icon--blue { background: var(--navy-tint); color: var(--navy); }
.card__icon--gold { background: var(--gold-tint); color: var(--kmrb-gold); }
@media (min-width: 1024px) { .card { padding: 32px; } }
.card__title { font-size: 20px; font-weight: 800; color: var(--teal); letter-spacing: -0.01em; }
.card__title--navy { color: var(--navy); }
@media (min-width: 1024px) { .card__title { font-size: 24px; } }

/* ---------- 진행 단계 — 현재 단계만 틸 알약, 나머지 번호 원 + 회색 선 ---------- */
.steps { display: flex; align-items: center; gap: 0; }
.steps__item { display: flex; align-items: center; flex: 1; min-width: 0; }
.steps__item:last-child { flex: none; }
.steps__item.is-current { flex: none; }
.steps__pill { white-space: nowrap; }
.steps__pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 4px; border-radius: 999px; flex: none; transition: background .2s, padding .2s; }
.steps__dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #CBD5E1; background: #fff; color: var(--sub); font-size: 12px; font-weight: 800;
  transition: background .2s, border-color .2s, color .2s;
}
.steps__label { display: none; font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.steps__item.is-current .steps__pill { background: var(--grad-cta); padding: 0 14px 0 4px; box-shadow: 0 4px 12px rgba(0, 162, 154, .25); }
.steps__item.is-current .steps__dot { background: #fff; border-color: #fff; color: var(--teal); }
.steps__item.is-current .steps__label { display: inline; color: #fff; font-weight: 700; }
.steps__item.is-done .steps__dot { background: var(--teal-tint); border-color: var(--teal); color: var(--teal); }
.steps__line { flex: 1; height: 1.5px; background: #D5DEE9; margin: 0 6px; }
.steps__item.is-done .steps__line { background: var(--teal); opacity: .5; }
@media (min-width: 1024px) {
  .steps__pill { height: 38px; }
  .steps__dot { width: 28px; height: 28px; font-size: 13px; }
  .steps__label { display: inline; }
  .steps__item.is-current .steps__pill { padding-right: 16px; }
  .steps__item.is-done .steps__label { color: var(--teal); }
  .steps__line { margin: 0 14px; }
}

/* ---------- 게이지 ---------- */
.gauge { height: 10px; border-radius: 999px; background: #E6EDF5; overflow: hidden; }
.gauge--lg { height: 14px; }
.gauge__fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad-cta); transition: width .9s var(--ease); }
.gauge__fill--blue { background: var(--navy); }
.gauge__fill--gold { background: var(--kmrb-gold); }
.gauge-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gauge-row:last-child { border-bottom: 0; }
.gauge-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gauge-row__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.gauge-row__num { font-weight: 800; color: var(--ink); font-size: 17px; }
.gauge-row__num small { color: var(--sub); font-weight: 500; margin-left: 4px; }
@media (min-width: 1024px) {
  .gauge-row { grid-template-columns: 220px 1fr 160px; align-items: center; gap: 24px; padding: 18px 0; }
  .gauge-row__num { text-align: right; font-size: 19px; }
}

/* ---------- 토스트 ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: calc(var(--cta-h) + 16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: calc(100% - 40px); max-width: 420px; }
body:not(.has-sticky) .toast-wrap { bottom: 24px; }
@media (min-width: 1024px) { .toast-wrap { bottom: 32px; } }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--ok { background: var(--teal); }
.toast--warn { background: var(--coral); }
.toast .icon { flex: none; }

/* ---------- 하단 고정 CTA(모바일) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px; align-items: center;
}
.sticky-cta .btn { height: 52px; }
.sticky-cta .btn--primary { flex: 1; }
.sticky-cta__meta { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.sticky-cta__meta strong { font-size: 15px; color: var(--ink); line-height: 1.2; }
.sticky-cta__meta span { font-size: 12px; color: var(--sub); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 700; color: var(--ink); font-size: 15px; }
.field__label small { font-weight: 500; color: var(--sub); margin-left: 6px; }
.field__help { font-size: var(--fs-sm); color: var(--sub); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #D5DEE9; background: #fff;
  font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #A8ACB7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 162, 154, .15); }
.input[aria-invalid="true"] { border-color: var(--coral); }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23787D89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.textarea { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 0; position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #CBD5E1; background: #fff; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: transparent; margin-top: 1px; transition: background .15s, border-color .15s;
}
.check input:checked + .check__box { background: var(--teal); border-color: var(--teal); color: #fff; }
.check:focus-within .check__box { outline: 3px solid var(--teal); outline-offset: 2px; }
.check__text { font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.check__text small { display: block; font-weight: 500; color: var(--sub); margin-top: 2px; }
.check--card { padding: 14px 16px; border: 1.5px solid #D5DEE9; border-radius: 14px; background: #fff; }
.check--card:has(input:checked) { border-color: var(--teal); background: var(--mint-tint); }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { width: 50px; height: 30px; border-radius: 999px; background: #D5DEE9; position: relative; transition: background .2s; flex: none; }
.toggle__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked + .toggle__track { background: var(--teal); }
.toggle input:checked + .toggle__track::after { transform: translateX(20px); }
.toggle:focus-within .toggle__track { outline: 3px solid var(--teal); outline-offset: 2px; }
.toggle__text { font-weight: 700; color: var(--ink); }

.range { width: 100%; height: 44px; appearance: none; background: transparent; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: #D5DEE9; }
.range::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); margin-top: -10px; }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: #D5DEE9; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--soft); gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--sub); cursor: pointer; transition: background .15s, color .15s; }
.seg input:checked + span { background: #fff; color: var(--teal); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg label:focus-within span { outline: 3px solid var(--teal); outline-offset: 1px; }
.seg--block { display: flex; } .seg--block label { flex: 1; } .seg--block span { width: 100%; }
.seg--wrap { flex-wrap: wrap; }

/* ---------- 태그 · 뱃지 ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag--draft { background: var(--soft); color: var(--sub); border: 1px dashed var(--kmrb-silver); }
.tag--emerald { background: var(--teal-tint); color: var(--teal-deep); }
.tag--blue { background: var(--navy-tint); color: var(--navy); }
.tag--gold { background: var(--gold-tint); color: #9A7420; }
.tag--ink { background: var(--navy); color: #fff; }
.tag--outline { border: 1px solid var(--line); color: var(--sub); background: #fff; }
.tag--ok { background: var(--teal-tint); color: var(--teal-deep); }
.tag--warn { background: var(--coral-tint); color: var(--coral); }
.tag--pending { background: var(--soft); color: var(--sub); }
/* 허니팟 입력 — 화면 밖 · 보조기기에서도 숨김 */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }

/* 연령등급 픽토그램(공식 원본 PNG · 색 변경 없음) · 제한상영가는 아웃라인 */
.rate { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; flex: none; overflow: hidden; }
.rate--all { background: var(--rate-all); }
.rate--12 { background: var(--rate-12); }
.rate--15 { background: var(--rate-15); }
.rate--19 { background: var(--rate-19); }
.rate--r { background: #fff; color: var(--ink); border: 1.5px solid #B8C2CE; font-size: 11px; line-height: 1.2; text-align: center; padding: 2px; border-radius: 8px; }
.rate--lg { width: 80px; height: 80px; font-size: 24px; border-radius: 14px; }
.rate--lg.rate--r { font-size: 12px; }
.rate--xl { width: 96px; height: 96px; border-radius: 16px; }
.rate--xl.rate--r { font-size: 13px; }
.rate--sm { width: 32px; height: 32px; font-size: 12px; border-radius: 7px; }
.rate--sm.rate--r { font-size: 8px; }
.rate img { width: 100%; height: 100%; object-fit: contain; }
.rate:has(img) { background: transparent; }

/* ---------- 안내 박스 ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--sky-tint); color: var(--text); font-size: var(--fs-sm); line-height: 1.55; }
.notice .icon { flex: none; color: var(--navy); margin-top: 2px; }
.notice > div { min-width: 0; flex: 1 1 auto; }
.notice--emerald { background: var(--mint-tint); } .notice--emerald .icon { color: var(--teal); }
.notice--gold { background: var(--gold-tint); } .notice--gold .icon { color: var(--kmrb-gold); }
.notice--warn { background: var(--coral-tint); } .notice--warn .icon { color: var(--coral); }
.notice strong { color: var(--ink); }
.notice__body { flex: 1; min-width: 0; }
.notice__close { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--sub); }
.notice__close:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.notice details { margin-top: 6px; }
.notice summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.notice summary::-webkit-details-marker { display: none; }
.notice details[open] summary .icon { transform: rotate(180deg); }
.notice details p { margin-top: 6px; }

/* ---------- 아코디언 ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; text-align: left; font-size: 17px; font-weight: 700; color: var(--ink); }
.acc__btn .icon { color: var(--sub); transition: transform .2s; flex: none; }
.acc__btn[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }
.acc__panel { display: none; padding: 0 0 24px; }
.acc__panel.is-open { display: block; }
@media (min-width: 1024px) { .acc__btn { padding: 22px 0; font-size: 19px; } }

/* ---------- 키-값 표 ---------- */
.kv { border-top: 1px solid var(--line); }
.kv__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.kv__row > * { min-width: 0; }
.kv__key { font-size: var(--fs-sm); font-weight: 700; color: var(--sub); }
.kv__val { color: var(--ink); font-weight: 500; }
@media (min-width: 1024px) { .kv__row { grid-template-columns: 180px minmax(0, 1fr); padding: 16px 0; } }

/* 표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { min-width: 480px; }
.table th { font-size: var(--fs-sm); font-weight: 700; color: var(--sub); padding: 10px 12px; border-bottom: 1.5px solid var(--navy); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.table td.num, .table th.num { text-align: right; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- 골드 도장(서약서 · CI 골드 유지) ---------- */
.stamp {
  position: absolute; width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid var(--kmrb-gold); color: var(--kmrb-gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em; line-height: 1.15;
  transform: rotate(-12deg) scale(2.2); opacity: 0;
}
.stamp::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px solid var(--kmrb-gold); }
.stamp small { font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.stamp.is-pressed { animation: stampIn .5s cubic-bezier(.2, 1.2, .3, 1) forwards; }
@keyframes stampIn {
  0% { transform: rotate(-12deg) scale(2.2); opacity: 0; }
  60% { transform: rotate(-12deg) scale(.92); opacity: 1; }
  100% { transform: rotate(-12deg) scale(1); opacity: 1; }
}

/* ---------- 숫자 강조 ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__num--emerald { color: var(--teal); }
.stat__num--blue { color: var(--navy); }
.stat__label { font-size: var(--fs-sm); color: var(--sub); font-weight: 600; }
@media (min-width: 1024px) { .stat__num { font-size: 52px; } }

/* ---------- 구분선 ---------- */
.rule { border-top: 1px solid var(--line); }
.rule--ink { border-top: 1.5px solid var(--navy); }

/* ---------- 페이지 헤드(지붕 모티프 타이틀) ---------- */
.page-head { padding: 28px 0 20px; }
.page-head .h1 { position: relative; padding-top: 30px; }
.page-head .h1::before { content: ''; position: absolute; left: -2px; top: 0; width: 72px; height: 24px; background: url('../assets/kv2/_extracted/roof.svg') no-repeat left bottom / contain; }
.page-head .lead { margin-top: 10px; max-width: 680px; }
@media (min-width: 1024px) {
  .page-head { padding: 44px 0 28px; }
  .page-head .h1 { padding-top: 36px; }
  .page-head .h1::before { width: 86px; height: 29px; }
  .page-head .lead { margin-top: 14px; }
}

/* ---------- 라이트박스(PNG 미리보기) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(22, 24, 31, .72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox__panel { background: #fff; border-radius: 18px; padding: 16px; max-width: 420px; width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 12px; }
.lightbox__panel img { width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.lightbox__close { align-self: flex-end; }
.lightbox--img { padding: 12px; }
.lightbox__panel--scroll { max-width: 920px; overflow: auto; padding: 12px; gap: 10px; }
.lightbox__panel--scroll img { max-height: none; width: 100%; height: auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lightbox__bar .sub { min-width: 0; font-weight: 600; }

/* ---------- 입력 오류 ---------- */
.form-error { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--coral-tint); border: 1.5px solid var(--coral); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; animation: shake .3s ease; }
.form-error .icon { flex: none; color: var(--coral); margin-top: 2px; }
.form-error strong { display: block; color: #B0432F; font-size: 15px; }
.form-error span { display: block; color: var(--text); margin-top: 2px; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wizard-nav__hint.is-error { color: var(--coral); font-weight: 700; }

/* ---------- 접근 코드 ---------- */
.access-card { display: flex; flex-direction: column; gap: 16px; }
.access-card__title { font-size: 18px; font-weight: 800; color: var(--ink); margin: 4px 0 6px; }
.access-card__code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.access-code { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 12px; background: #fff; border: 1.5px dashed var(--navy); color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: .14em; }
@media (min-width: 1024px) { .access-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } .access-card__title { font-size: 20px; } .access-card__code { flex: none; } }
.access-entry { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.access-entry__form { display: flex; gap: 8px; }
.access-entry__form .input { flex: 1; min-width: 0; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.access-entry__form .input::placeholder { letter-spacing: 0; font-weight: 400; text-transform: none; }
.access-entry__form .btn { flex: none; }
@media (min-width: 1024px) { .access-entry { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; } .access-entry__form { width: 420px; } }

/* ---------- 키비주얼 락업('OTT 볼 땐 꼭! 자녀 보호 모드 ON!' 원본 SVG) ---------- */
.kv-lock { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.kv-lock--lg { --kv: 56px; } .kv-lock--md { --kv: 34px; } .kv-lock--sm { --kv: 20px; }
@media (min-width: 1024px) { .kv-lock--lg { --kv: 72px; } }
.kv-logo { display: block; height: auto; width: calc(var(--kv) * 4.2); max-width: 100%; }
.kv-lock--mode .kv-logo { width: calc(var(--kv) * 4.6); }
.kv-lock--mode.kv-lock--sm .kv-logo { width: calc(var(--kv) * 4.2); }
/* v5 2안(온가족안심) 락업 — 호환 유지 */
.kv-lock__roof { display: block; height: auto; }
.kv-lock__text { display: inline-flex; align-items: center; font-weight: 900; letter-spacing: -0.045em; white-space: nowrap; }
.kv-lock__text .c-blue { color: var(--kmrb-blue); } .kv-lock__text .c-em { color: var(--kmrb-emerald); }
.kv-on { display: inline-flex; flex: none; margin-right: .08em; }
.kv-on svg { width: .78em; height: .78em; }
.kv-lock--on .kv-lock__text { font-size: var(--kv); }
.kv-lock--on .kv-lock__roof { width: calc(var(--kv) * 5.3); margin: 0 0 calc(var(--kv) * -.08) calc(var(--kv) * -.12); }

/* 캐릭터 장식(원본 SVG 그대로 · 크기와 기울기만) */
.kv-char { display: block; height: auto; width: var(--char-w, 96px); filter: drop-shadow(0 6px 12px rgba(38, 74, 148, .14)); pointer-events: none; user-select: none; }
.kv-badge { display: block; height: auto; width: var(--badge-w, 64px); filter: drop-shadow(0 4px 10px rgba(38, 74, 148, .16)); pointer-events: none; user-select: none; }
.kv-obj { display: block; height: auto; width: var(--obj-w, 40px); filter: drop-shadow(0 4px 8px rgba(38, 74, 148, .14)); pointer-events: none; user-select: none; }
