/* 몽땅77 공식 주문안내 — 단일 페이지 스타일 */
:root {
  --ink: #16181d;
  --ink-2: #4a4f59;
  --ink-3: #6b717c;
  --line: #e7e8eb;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --accent: #e0203f;        /* 시안의 빨간 헤드라인 */
  --accent-soft: #fdecef;
  --kakao: #fee500;         /* 카카오 공식 노란색 */
  --kakao-ink: #191919;
  --stage: #eceef1;
  --radius: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.ico { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; border-radius: 8px; }

/* ---------- 모바일 기본: 프레임 없이 전체 폭 ---------- */
.stage, .device { min-height: 100vh; min-height: 100dvh; }
.screen { position: relative; background: var(--paper); }

/* ---------- 상단 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px;
}
.wordmark {
  font-size: 26px; font-weight: 900; letter-spacing: -0.03em;
  text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; min-height: 44px; gap: 8px;
}
.wordmark picture { flex: none; display: block; }
.wordmark-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.topbar-tiktok {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; line-height: 1.3; color: var(--ink-2); text-decoration: none;
  padding: 6px 4px; min-height: 44px;
}
.topbar-tiktok .ico { font-size: 22px; color: var(--ink); }
.topbar-tiktok b { color: var(--ink); font-weight: 700; }

/* ---------- HERO ---------- */
.hero { padding: 14px 20px 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  background: var(--soft); border: 1px solid var(--line);
  padding: 6px 12px 6px 10px; border-radius: 999px;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.badge .ico { font-size: 18px; color: #16a34a; }
.headline {
  display: block;
  font-size: clamp(30px, 8.6vw, 36px);
  font-weight: 800; line-height: 1.25; letter-spacing: -0.035em;
}
.headline em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 14px;
  font-size: 17px; color: var(--ink-2); line-height: 1.6;
}

/* 카카오 버튼 */
.btn-kakao {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 64px; padding: 14px 20px;
  background: var(--kakao); color: var(--kakao-ink);
  border-radius: var(--radius);
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
  transition: transform .12s ease, filter .12s ease;
}
.btn-kakao .ico { font-size: 26px; }
.btn-kakao .ico-chev { font-size: 20px; margin-left: auto; }
.btn-kakao > span { margin-right: auto; }
.btn-kakao:active { transform: scale(.985); filter: brightness(.96); }
@media (hover: hover) { .btn-kakao:hover { filter: brightness(.97); } }
.btn-kakao--hero { margin-top: 24px; }

.cta-note {
  margin-top: 10px; text-align: center;
  font-size: 14px; color: var(--ink-3);
}
.cta-note b { color: var(--ink); }

.hero-video {
  margin-top: 18px; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #e9e2dc;
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

.tiktok-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px; padding: 12px 16px; min-height: 64px;
  background: var(--soft); border-radius: var(--radius);
  text-decoration: none;
}
.tiktok-mark {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: #000; color: #fff; font-size: 22px;
}
.tiktok-row-text { display: flex; flex-direction: column; line-height: 1.3; }
.tiktok-row-text small { font-size: 14px; color: var(--ink-3); }
.tiktok-row-text b { font-size: 18px; }
.tiktok-row .ico-chev { margin-left: auto; font-size: 18px; color: var(--ink-3); }

/* ---------- 공통 블록 ---------- */
.block { padding: 28px 20px; border-top: 8px solid var(--soft); }
.block h2, .closing h2 {
  font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35;
  margin-bottom: 16px;
}

/* 주문 4단계 */
.steps { display: grid; gap: 10px; }
.steps li {
  display: grid; grid-template-columns: 40px 40px 1fr; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--soft); border-radius: var(--radius);
  font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em;
}
.step-no {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 800;
}
.step-ico { width: 36px; height: 36px; color: var(--ink); justify-self: center; }
.step-ico--talk {
  display: grid; place-items: center; width: 40px; height: 32px; border-radius: 16px;
  background: var(--kakao); color: var(--kakao-ink);
  font-size: 11px; font-weight: 900; letter-spacing: .02em;
}

/* 배송 */
.ship {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius);
}
.ship-ico { width: 44px; height: 44px; flex: none; }
.ship p { display: flex; flex-direction: column; }
.ship strong { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.ship span { font-size: 17px; color: var(--ink-2); margin-top: 2px; }

/* 팬 가입 안내 이미지 */
.fan img { width: 100%; border-radius: var(--radius); background: #fff6f4; }

/* 공식 채널 */
.channel {
  display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
}
.channel + .channel { margin-top: 10px; }
.channel-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 24px;
}
.channel-mark--tiktok { background: #000; color: #fff; }
.channel-mark--kakao { background: var(--kakao); color: var(--kakao-ink); }
.channel-kind { font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.channel-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.channel-meta { font-size: 15px; color: var(--ink-2); }
.btn-line {
  grid-column: 1 / -1; margin-top: 8px;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 12px;
  border: 1.5px solid var(--ink); background: #fff;
  font-size: 17px; font-weight: 700; text-decoration: none;
}
.btn-line.is-pending { border-color: var(--line); color: var(--ink-3); border-style: dashed; }

.official-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 16px;
  background: #f0f7f2; border-radius: var(--radius);
  font-size: 16px; line-height: 1.6; color: var(--ink);
}
.official-note .ico { font-size: 22px; color: #16a34a; margin-top: 2px; }

/* 마무리 CTA */
.closing {
  padding: 32px 20px 28px; text-align: center;
  background: var(--soft);
}
.closing p { color: var(--ink-2); margin-bottom: 20px; }

.footer {
  padding: 22px 20px 26px; text-align: center;
  font-size: 14px; color: var(--ink-3); line-height: 1.7;
}
.footer b { color: var(--ink); }

/* ---------- 하단 고정 CTA ---------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0));
  transition: opacity .2s ease, transform .2s ease;
}
.sticky-cta.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.btn-kakao--sticky { min-height: 56px; font-size: 19px; }
.btn-kakao--sticky > span { margin-right: 0; }

/* ---------- PC: 가운데 스마트폰형 화면 ---------- */
@media (min-width: 768px) {
  body { background: var(--stage); }
  .stage {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 24px;
  }
  .device {
    width: 408px; height: min(880px, calc(100vh - 48px)); min-height: 600px;
    padding: 12px; border-radius: 56px;
    background: #1c1d21;
    box-shadow: 0 0 0 1px #3a3b40 inset, 0 30px 60px -20px rgba(20,24,33,.35);
  }
  .screen {
    height: 100%; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 44px;
    scrollbar-width: none;
  }
  .screen::-webkit-scrollbar { display: none; }
  .topbar { padding-top: 26px; }
  .sticky-cta { padding: 10px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
