@charset "UTF-8";
/* common.css — 시안D 공통 원자 컴포넌트 */

/* Layout utility */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* Section */
.section        { padding: 72px 0; position: relative; background: #fff; }
.section--tint  { background: var(--bg-soft); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: 28px;
}
.section-head__left { max-width: 80%; width: 100%; }

/* Centered variant — 히어로·인트로처럼 가운데 정렬이 필요한 섹션 헤드 */
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 0;
}
.section-head--center .section-title { max-width: 100%; }
.section-head--center .section-desc  { margin-inline: auto; }

/* Typography helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
  color: var(--kor-red);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 12px;
}
/* 지시 도트 (LIVE / 섹션 진입 인디케이터) — .eyebrow 안에서 텍스트 앞 삽입 */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--kor-red);
  position: relative; flex-shrink: 0;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--kor-red);
  opacity: .5;
  animation: pulseDot 1.6s ease-out infinite;
}
.live-dot--blue { background: var(--kor-blue); }
.live-dot--blue::after { border-color: var(--kor-blue); }
.live-dot--red  { background: var(--kor-red-500); }
.live-dot--red::after  { border-color: var(--kor-red-500); }
@keyframes pulseDot {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.section-desc {
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

/* 텍스트 그라디언트 */
.txt-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Icon box (연계 플랫폼 카드용) */
.icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--kor-red-100);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--kor-red);
  flex-shrink: 0;
  transition: var(--tr-base);
}
.icon-box i { font-size: 20px; }
.icon-box--lg { width: 52px; height: 52px; }
.icon-box--lg i { font-size: 24px; }

/* Swiper nav (파트너 마퀴 컨트롤) */
.swiper-nav { display: flex; gap: 6px; flex-shrink: 0; }
.swiper-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-700);
  transition: var(--tr-base); cursor: pointer;
}
.swiper-arrow:hover {
  background: var(--kor-red); border-color: transparent; color: #fff;
  box-shadow: var(--shadow-pop);
}
.swiper-arrow i { font-size: 16px; }
.swiper-arrow.swiper-button-disabled {
  opacity: .35; cursor: not-allowed; pointer-events: none;
}

/* Button — 기본 형태 + 사이즈 modifier */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  padding: 0 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 15.5px; font-weight: 700; line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15,15,38,.04);
  transition: var(--tr-base);
}
.btn i { font-size: 18px; line-height: 1; flex-shrink: 0; }
.btn:hover { border-color: var(--kor-red-500); color: var(--kor-red); }
.btn:disabled,
.btn-disable {
  background: #f2f3f5;
  color: var(--ink-300);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sizes */
.btn.md { height: 44px; padding: 0 22px; font-size: 14px; }
.btn.md i { font-size: 16px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.sm i { font-size: 14px; }

/* Width utility */
.btn.fill { width: 100%; }

/* Color utilities — 범용 (버튼 외 다른 요소에도 사용 가능) */
.primary    { background: var(--kor-red); color: #fff; border-color: var(--kor-red); }
.secondary  { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.gd-primary { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(201,10,10,.45); }

.btn.primary:hover    { background: var(--kor-red-500); border-color: var(--kor-red-500); color: #fff; }
.btn.secondary:hover  { background: #000; border-color: #000; color: #fff; }
.btn.gd-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); color: #fff; }

/* Badge — 작은 마커 (기본 회색톤 pill) */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: #f2f3f5; color: var(--ink-700);
  font-size: 11px; font-weight: 700; line-height: 1;
  white-space: nowrap;
}
.badge i { font-size: 12px; line-height: 1; }

/* Tag — 카테고리/상태 라벨 (배지보다 크고 여유 있음, 기본 회색톤) */
.tag {
  display: inline-flex; align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: #f2f3f5; color: var(--ink-700);
  font-size: 12px; font-weight: 700; line-height: 1;
  white-space: nowrap;
}
.tag i { font-size: 14px; line-height: 1; }

/* Badge/Tag color modifiers — 배경색상명 기준 (soft tint 기반) */
.badge-red    { background: rgba(201,10,10,.10);  color: var(--kor-red); }
.badge-blue   { background: rgba(0,52,120,.10);   color: var(--kor-blue); }
.badge-green  { background: rgba(0,140,90,.10);   color: #008c5a; }
.badge-amber  { background: rgba(180,90,20,.10);  color: #b45a14; }
.badge-purple { background: rgba(120,60,180,.10); color: #7a3cb4; }
.badge-gray   { background: #f2f3f5;              color: var(--ink-500); }
.badge-black  { background: var(--ink-900);       color: #fff; }
.badge-white  { background: #fff;                 color: var(--ink-700); border: 1px solid var(--line-strong); }

/* A11y */
:focus { outline: 2px solid transparent; }
:focus-visible {
  outline: 2px solid var(--kor-red-500);
  outline-offset: 3px; border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }
.skip-to-content {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 14px 22px; background: var(--kor-red); color: #fff;
  font-weight: 700; font-size: 14px; border-radius: 0 0 8px 0;
}
.skip-to-content:focus, .skip-to-content:focus-visible { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* List utilities — 공용 리스트 스타일 */
.dash-list,
.dot-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.dash-list > li,
.dot-list > li {
  position: relative;
  padding-left: 10px;
}

/* dash — 4×1px 사각 (수평선) */
.dash-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;           /* 첫 줄 세로 중앙 근사 (line-height 1.3~1.7 대응) */
  width: 4px;
  height: 1px;
  background: currentColor;
  border-radius: 1px;
}

/* dot — 4×4px 원형 (디스크 마커) */
.dot-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;           /* 첫 줄 세로 중앙 근사 */
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

/* 중첩 시 들여쓰기 (동일 · 교차 중첩 모두) */
.dash-list .dash-list,
.dash-list .dot-list,
.dot-list  .dot-list,
.dot-list  .dash-list { margin-top: 4px; padding-left: 10px; }

/* Modal — 공용 다이얼로그 (약관 · 안내 등 인라인 노출) */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
  animation: modal-fade-in .18s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column;
  animation: modal-pop-in .18s cubic-bezier(.2, .8, .3, 1);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal__title {
  font-size: 17px; font-weight: 700;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.4;
}
.modal__close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--tr-base);
}
.modal__close:hover { background: #f5f6f8; color: var(--ink-900); }
.modal__close i { font-size: 22px; line-height: 1; }
.modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  color: var(--ink-700);
  font-size: 14px; line-height: 1.75;
}
.modal__body > *:first-child { margin-top: 0; }
.modal__body > *:last-child { margin-bottom: 0; }
.modal__foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 8px;
  flex-shrink: 0;
}
body.modal-open { overflow: hidden; }

@keyframes modal-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modal-pop-in {
  from { transform: translateY(6px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .modal { padding: 0; align-items: stretch; }
  .modal__dialog {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .modal__head { padding: 14px 16px; }
  .modal__body { padding: 16px; }
  .modal__foot { padding: 12px 16px; }
}

/* Responsive — 공통 컴포넌트 */
@media (max-width: 1440px) {
  .container { padding: 0 32px; }
}
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .section   { padding: 56px 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section   { padding: 44px 0; }
  .section-head {
    flex-direction: column; align-items: flex-start; margin-bottom: 20px;
  }
  .section-head__left { max-width: 100%; }
}
@media (max-width: 360px) {
  .container { padding: 0 16px; }
}
