/* 모바일(≤767px) 홈 — Figma MO_Main(1:7193) 기준 360px 좌표계.
   responsive.js가 --zm-s(뷰포트/360)를 갱신하고, zoom으로 전체 배율을 잡는다.
   폰트 패밀리는 Figma 헤드가 로드하는 것을 그대로 사용(웨이트가 패밀리명에 내장). */

#zing-mo {
  display: none;
}

/* 폰 UA: 서버가 PC 레이어를 렌더하지 않음 → 폭과 무관하게 모바일 홈 유지 */
html.zing-pc-absent #zing-mo {
  display: block;
}

@media (max-width: 767px) {
  #zing-mo {
    display: block;
  }
  /* PC 레이어 전체 숨김 (Figma 컨테이너 + PC 전용 커스텀 UI) */
  #container,
  #zing-float,
  #zing-drag-cursor,
  #zing-lang-chip-menu,
  #zing-lang-menu {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

#zing-mo {
  --zm-red: var(--zing-red);
  --zm-footer-line: var(--zing-red-soft-line);
  font-family: var(--font-kr-regular);
  font-weight: normal;
  line-height: 1.48;
  color: #000;
}
/* 리셋은 :where로 특이성 0 — 아래 컴포넌트 클래스 규칙이 항상 이긴다 */
:where(#zing-mo) h1,
:where(#zing-mo) h2,
:where(#zing-mo) h3,
:where(#zing-mo) p {
  margin: 0;
}
:where(#zing-mo) img {
  display: block;
}
:where(#zing-mo) button {
  font: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.zm-page {
  position: relative;
  width: 360px;
  margin: 0 auto;
  zoom: var(--zm-s, 1);
  overflow: hidden;
}

/* ── 공통 조각 ── */
.zm-point {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-kr-semibold);
  font-size: 14px;
}
.zm-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}
.zm-dot--red {
  background: var(--zm-red);
}
.zm-dot--white {
  background: #fff;
}
.zm-h2 {
  margin-top: 32px;
  font-family: var(--font-en-medium);
  font-weight: normal;
  font-size: 32px;
  line-height: 1.16;
  text-transform: uppercase;
}
.zm-h2--red {
  color: var(--zm-red);
}
.zm-h2--white {
  color: #fff;
}
.zm-bar {
  width: 1px;
  height: 12px;
  background: #ddd;
}
.zm-stat {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
.zm-stat img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.zm-stat b {
  font-family: var(--font-kr-semibold);
  font-weight: normal;
}

/* ── 고정 헤더 ── */
#zm-header {
  position: fixed;
  top: 0;
  /* .zm-page(중앙 정렬)와 같은 축: 뷰포트 50% - 페이지 반폭(180px, zoom 배율 적용) */
  left: 50%;
  margin-left: -180px;
  z-index: 60;
  width: 360px;
  height: 56px;
  zoom: var(--zm-s, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background-color 0.25s var(--ease-soft);
}
.zm-logo {
  width: 43.75px;
  height: 27.874px;
}
.zm-logo-red {
  display: none;
}
.zm-header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.zm-lang-chip {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-kr-semibold);
  font-size: 12px;
  color: #fff;
}
.zm-header--white .zm-lang-chip {
  border-color: #e8e8e8;
  color: var(--zm-red);
}
.zm-contact-chip {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 40px;
  padding: 12px 10px;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-kr-bold);
  font-size: 14px;
  color: var(--zm-red);
}
.zm-contact-chip img {
  width: 24.5px;
  height: 14px;
}
.zm-header--white {
  background: #fff;
}
.zm-header--white .zm-logo-white {
  display: none;
}
.zm-header--white .zm-logo-red {
  display: block;
}
.zm-header--white .zm-contact-chip {
  border: 1px solid #e8e8e8;
}

/* ── 히어로 ── */
.zm-hero {
  position: relative;
  height: 800px;
  background: var(--zm-red);
}
.zm-hero-img {
  position: absolute;
  left: 10px;
  top: 112px;
  width: 340px;
  height: 644.445px;
  overflow: hidden;
  -webkit-mask-image: url("../img/mobile/hero-mask.svg");
  mask-image: url("../img/mobile/hero-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.zm-hero-photo {
  position: absolute;
  left: -206px;
  top: -192px;
  width: 830px;
  height: 1037px;
}
.zm-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zm-hero-tint {
  position: absolute;
  inset: 0;
  background: rgba(76, 0, 2, 0.5);
}
.zm-hero-title {
  position: absolute;
  left: 76px;
  top: 204px;
  width: 225px;
  font-family: var(--font-kr-bold);
  font-weight: normal;
  font-size: 36px;
  line-height: 1.28;
  color: #fff;
}
.zm-hero-cta {
  position: absolute;
  left: 60px;
  top: 448px;
  width: 241px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.zm-hero-cta p {
  font-family: var(--font-kr-semibold);
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
}
.zm-btn-line {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-kr-semibold);
  font-size: 14px;
  color: #fff;
}
.zm-btn-line img {
  width: 15px;
  height: 13px;
}

/* ── 캠페인 ── */
.zm-campaigns {
  margin-top: 60px;
  padding: 0 20px;
}
.zm-campaigns-sub {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.zm-campaigns-sub p {
  flex: 1 0 0;
  font-size: 16px;
}
.zm-arrow-circle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--zm-red);
  border-radius: 999px;
}
.zm-arrow-circle img {
  width: 15px;
  height: 13px;
}
.zm-card-track {
  margin: 28px -20px 0;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 20px;
  scrollbar-width: none;
}
.zm-card-track::-webkit-scrollbar {
  display: none;
}
.zm-card {
  flex-shrink: 0;
  width: 320px;
  scroll-snap-align: start;
}
.zm-card-img {
  height: 344px;
  border-radius: 16px;
  overflow: hidden;
}
.zm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zm-card-info {
  margin-top: 20px;
}
.zm-badges {
  display: flex;
  gap: 4px;
}
.zm-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 8px 12px;
  border-radius: 100px;
  font-family: var(--font-kr-semibold);
  font-size: 12px;
}
.zm-badge--state {
  background: var(--zing-red-tint-bg);
  border: 1px solid var(--zing-red-tint-border);
  color: var(--zm-red);
}
.zm-badge--cat {
  background: #ffe9f5;
  border: 1px solid #ffb4dd;
  color: #e62393;
}
.zm-card-title {
  margin-top: 6px;
  min-height: 60px;
  font-family: var(--font-kr-semibold);
  font-weight: normal;
  font-size: 20px;
}
.zm-card-sub {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zm-card-stats {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zm-due {
  font-size: 14px;
  color: #333;
}
.zm-progress {
  margin-top: 24px;
  height: 4px;
  border-radius: 999px;
  background: #e8e8e8;
}
#zm-progress-thumb {
  display: block;
  width: 98.889px;
  height: 4px;
  border-radius: 999px;
  background: var(--zm-red);
}

/* ── 캠페인 진행방식 ── */
.zm-process {
  margin-top: 60px;
  padding: 48px 20px 0;
  background: var(--zm-red);
  color: #fff;
}
.zm-process-sub {
  margin-top: 4px;
  font-size: 16px;
}
.zm-process-card {
  margin-top: 28px;
  height: 606px;
  padding: 32px 24px;
  border-radius: 16px;
  background: #fff;
  color: #000;
}
.zm-tab {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--zm-red);
  padding: 0 12px 12px;
}
.zm-tab span {
  font-family: var(--font-en-semibold);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--zm-red);
}
.zm-process-lead {
  margin-top: 24px;
  font-family: var(--font-kr-bold);
  font-size: 16px;
}
.zm-steps {
  position: relative;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.zm-steps-line {
  position: absolute;
  left: 14px;
  top: 16px;
  height: 344px;
  width: 0;
  border-left: 0.5px dashed #ccc;
}
.zm-step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.zm-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding-top: 2px;
  border-radius: 999px;
  background: var(--zm-red);
  font-family: var(--font-en-semibold);
  font-style: normal;
  font-size: 14px;
  color: #fff;
}
.zm-step-label {
  font-family: var(--font-en-semibold);
  font-size: 14px;
  color: var(--zm-red);
}
.zm-step h3 {
  margin-top: 2px;
  font-family: var(--font-kr-bold);
  font-weight: normal;
  font-size: 16px;
}
.zm-step p {
  margin-top: 2px;
  font-size: 14px;
  color: #333;
  max-width: 228px;
}
.zm-illust {
  position: relative;
  margin: 28px auto 0;
  width: 297.143px;
  height: 156px;
}
.zm-il {
  position: absolute;
  width: 52px;
  height: 52px;
}
.zm-il-1 {
  left: 34.36px;
  top: 104px;
}
.zm-il-2 {
  left: 42.71px;
  top: 52.93px;
}
.zm-il-3 {
  left: 245.14px;
  top: 52px;
}
.zm-il-4 {
  left: 95.64px;
  top: 104px;
}
.zm-il-5 {
  left: 113.29px;
  top: 0;
}
.zm-il-pill {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 999px;
  font-family: var(--font-en-medium);
  font-size: 16.7px;
  text-transform: uppercase;
  color: var(--zm-red);
}
.zm-il-influencer {
  left: 147.24px;
  top: 104px;
  width: 148px;
  background: #fdeddb;
}
.zm-il-advertiser {
  left: 94.5px;
  top: 52px;
  width: 144.3px;
  background: #febce2;
}

/* ── 등급 시스템 ── */
.zm-grades {
  margin-top: 60px;
  padding: 0 20px;
}
.zm-grades-sub {
  margin-top: 4px;
  font-size: 16px;
}
.zm-grade-track {
  margin: 28px -20px 0;
  padding: 0 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  scrollbar-width: none;
}
.zm-grade-track::-webkit-scrollbar {
  display: none;
}
.zm-grade {
  flex-shrink: 0;
  width: 296px;
  height: 422px;
  padding: 24px;
  border-radius: 16px;
  scroll-snap-align: start;
}
.zm-grade--gold {
  background: #fff1cd;
}
.zm-grade--silver {
  background: #e8eaea;
}
.zm-grade--bronze {
  background: #fdeddb;
}
.zm-grade-cn {
  font-family: var(--font-kr-medium);
  font-size: 16px;
}
.zm-grade--gold .zm-grade-cn {
  color: #bb7300;
}
.zm-grade--silver .zm-grade-cn {
  color: #5b5b5b;
}
.zm-grade--bronze .zm-grade-cn {
  color: #b05f18;
}
.zm-grade h3 {
  margin-top: 4px;
  font-family: var(--font-en-semibold);
  font-weight: normal;
  font-size: 24px;
  line-height: 1.4;
  text-transform: uppercase;
}
.zm-grade-art {
  position: relative;
  margin-top: 32px;
  height: 98px;
}
.zm-grade-art i {
  position: absolute;
  width: 10px;
  border-radius: 999px;
}
.zm-grade--gold .zm-grade-art i {
  background: #f7b71a;
}
.zm-grade--silver .zm-grade-art i {
  background: #a6a9aa;
}
.zm-grade--bronze .zm-grade-art i {
  background: #b05f18;
}
.zm-medal {
  position: absolute;
  left: 117px;
  top: 42px;
  width: 14px;
  height: 14px;
}
.zm-grade-desc {
  margin-top: 32px;
  min-height: 96px;
  font-size: 16px;
}
.zm-grade-stats {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.zm-dots {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.zm-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e8e8e8;
  transition: width 0.2s var(--ease-soft);
}
.zm-dots i.is-active {
  width: 27px;
  background: var(--zm-red);
}

/* ── 왜 ZING인가 ── */
.zm-why {
  position: relative;
  margin: 60px 20px 0;
  border-radius: 16px;
  overflow: hidden;
}
.zm-why-bg {
  position: absolute;
  inset: 0;
}
.zm-why-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
.zm-why-shade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(270deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 80.87%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.zm-why-smoke {
  position: absolute;
  inset: 0;
}
.zm-why-body {
  position: relative;
  padding: 48px 24px;
  color: #fff;
}
.zm-why-items {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.zm-why-item {
  padding-bottom: 32px;
  border-bottom: 1px solid #573e3e;
}
.zm-why-item--last {
  padding-bottom: 0;
  border-bottom: 0;
}
.zm-why-item h3 {
  font-family: var(--font-kr-bold);
  font-weight: normal;
  font-size: 16px;
}
.zm-why-item p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ── 푸터 ── */
.zm-footer {
  margin-top: 83px;
  padding: 32px 24px 120px;
  background: var(--zm-red);
  border-radius: 24px 24px 0 0;
  color: #fff;
}
.zm-footer-head {
  position: relative;
  height: 218px;
}
.zm-fh {
  position: absolute;
  font-family: var(--font-en-medium);
  font-size: 40px;
  line-height: 1.16;
  text-transform: uppercase;
  white-space: nowrap;
}
.zm-fh-1 {
  left: 116px;
  top: 0;
}
.zm-fh-2 {
  left: 0;
  top: 46px;
  width: 231px;
  text-align: right;
}
.zm-fh-3 {
  left: 170px;
  top: 92px;
}
.zm-fh-sub {
  position: absolute;
  left: 0;
  top: 142px;
  font-size: 14px;
}
.zm-fh-note {
  position: absolute;
  left: 0;
  top: 200px;
  width: 312px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.zm-footer-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--zm-footer-line);
}
.zm-footer-en {
  font-family: var(--font-en-semibold);
  font-size: 24px;
  line-height: 1.4;
  text-transform: uppercase;
}
.zm-footer-links {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.zm-footer-links button {
  font-family: var(--font-kr-bold);
  font-size: 14px;
  color: #fff;
}
.zm-footer-contact {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.zm-footer-contact p {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zm-footer-contact b {
  width: 18px;
  font-family: var(--font-en-semibold);
  font-weight: normal;
}
.zm-footer-contact span {
  font-family: var(--font-en-semibold);
}
.zm-footer-contact .zm-addr {
  font-family: var(--font-kr-bold);
}
.zm-footer-last {
  padding-top: 24px;
}
.zm-footer-privacy {
  font-family: var(--font-kr-semibold);
  font-size: 14px;
}
.zm-footer-copy {
  margin-top: 8px;
  font-family: var(--font-en-regular);
  font-size: 14px;
}
.zm-footer-ci {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.zm-footer-ci > span:first-child {
  font-family: var(--font-en-regular);
  font-size: 14px;
}
.zm-ci {
  position: relative;
  width: 92px;
  height: 16px;
}
.zm-ci-logo {
  position: absolute;
  left: 26.65%;
  top: 18.54%;
  width: 73.35%;
  height: 62.73%;
}
.zm-ci-symbol {
  position: absolute;
  left: 0;
  top: 0;
  width: 17.76%;
  height: 100%;
}

/* ── 플로팅 TOP ── */
#zm-top {
  position: fixed;
  right: 12px;
  bottom: 20px;
  z-index: 55;
  zoom: var(--zm-s, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8e8e8;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.08));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease-soft),
    transform 0.25s var(--ease-soft);
}
#zm-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#zm-top img {
  width: 12px;
  height: 10px;
  transform: rotate(90deg) scaleY(-1);
}
