/* 본심 랜딩 — page2(HERO·A + 지그재그) 반응형. 토큰은 앱(06 디자인 시스템)과 동일. */

@font-face { font-family: Pretendard; src: url(assets/fonts/Pretendard-Regular.otf); font-weight: 400; font-display: swap; }
@font-face { font-family: Pretendard; src: url(assets/fonts/Pretendard-Medium.otf); font-weight: 500; font-display: swap; }
@font-face { font-family: Pretendard; src: url(assets/fonts/Pretendard-SemiBold.otf); font-weight: 600; font-display: swap; }
@font-face { font-family: Pretendard; src: url(assets/fonts/Pretendard-Bold.otf); font-weight: 700; font-display: swap; }
@font-face { font-family: Pretendard; src: url(assets/fonts/Pretendard-ExtraBold.otf); font-weight: 800; font-display: swap; }

:root {
  --page-bg: #EEEDE8;
  --ground: #FAFAF7;
  --surface: #FFFFFF;
  --line: #EFEDE6;
  --line-2: #E8E6DF;
  --ink: #1C1D21;
  --sub: #6C6A77;
  --sub-dim: #9C9AA8;
  --brand: #8B5CF6;
  --brand-2: #A78BFA;
  --brand-soft: #F1ECFF;
  --brand-ink: #6D3EE0;
  --cta-grad: linear-gradient(120deg, #8250EA, #6D3EE0);
  --a: #2E7CF6; --a-soft: #EBF3FF; --a-ink: #1B5FCC;
  --b: #FF8A00; --b-soft: #FFF6EA; --b-ink: #B35F00;
  --maxw: 1120px;
  --pad: clamp(24px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .9);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.mark { width: 26px; height: 26px; display: inline-flex; }
.mark svg { width: 100%; height: 100%; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; color: var(--sub); }
.btn-brand {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800;
  box-shadow: 0 8px 20px rgba(139, 92, 246, .28);
}
.hamburger { display: none; }
.mobile-menu { display: none; }

/* ── HERO ── */
.hero { position: relative; overflow: hidden; background: var(--ground); }
.hero-blob {
  position: absolute; top: -140px; right: -80px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--brand-soft);
}
.hero-inner { position: relative; display: flex; align-items: center; gap: 40px; padding-block: 60px 72px; }
.hero-copy { flex: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 24px;
  font-size: 13px; font-weight: 800; color: var(--brand-ink);
  background: var(--brand-soft); padding: 7px 14px; border-radius: 999px;
}
.h1 { font-size: clamp(30px, 6.2vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.hsub { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); font-weight: 500; line-height: 1.55; color: var(--sub); }
.store-badges { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.store-badges.center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 11px; padding: 13px 22px; border-radius: 14px; min-height: 44px;
}
.badge svg { width: 22px; height: 22px; flex: none; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(20, 20, 30, .12); }
.badge-txt { display: flex; flex-direction: column; line-height: 1.1; }
.badge-txt small { font-size: 10px; font-weight: 600; opacity: .78; }
.badge-txt strong { font-size: 17px; font-weight: 800; }

/* ── HERO 폰 목업 ── */
.hero-mock { flex: none; }
.phone { width: 300px; border-radius: 40px; padding: 9px; background: #0E0F12; box-shadow: 0 30px 60px rgba(20, 20, 30, .28); }
.phone-screen { border-radius: 32px; overflow: hidden; min-height: 600px; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); }
.mk-status { display: flex; justify-content: space-between; padding: 15px 22px 4px; font-size: 13px; font-weight: 600; }
.mk-brand { display: flex; align-items: center; gap: 8px; padding: 12px 20px 0; }
.mk-brand .mk-mark { width: 22px; height: 22px; }
.mk-mark svg { width: 100%; }
.mk-name { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.mk-body { padding: 18px 20px 0; }
.mk-h { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.mk-card { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 17px 16px; box-shadow: 0 12px 30px rgba(20, 20, 30, .10); }
.mk-chip { font-size: 11px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; }
.mk-q { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 13px 0 16px; }
.mk-ab { display: flex; gap: 9px; margin-bottom: 12px; }
.mk-ab .mk-a, .mk-ab .mk-b { flex: 1; padding: 14px 4px; text-align: center; font-size: 13.5px; font-weight: 800; border-radius: 13px; }
.mk-a { background: var(--a-soft); border: 1.5px solid var(--a); color: var(--a-ink); }
.mk-b { background: var(--b-soft); border: 1.5px solid var(--b); color: var(--b-ink); }
.mk-gate { position: relative; border-radius: 12px; overflow: hidden; }
.mk-gate-blur { filter: blur(5px); opacity: .5; display: flex; flex-direction: column; gap: 6px; padding: 7px; }
.mk-bar { height: 20px; border-radius: 7px; position: relative; overflow: hidden; }
.mk-bar-a { background: var(--a-soft); } .mk-bar-a i { position: absolute; inset: 0 49% 0 0; background: var(--a); }
.mk-bar-b { background: var(--b-soft); } .mk-bar-b i { position: absolute; inset: 0 51% 0 0; background: var(--b); }
.mk-gate-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255, 255, 255, .34); font-size: 11px; font-weight: 700; }
.mk-gate-over svg { width: 15px; height: 15px; }

/* ── HOW IT WORKS ── */
.how { background: #fff; padding-block: clamp(48px, 8vw, 72px); }
.how-head { text-align: center; margin-bottom: 50px; }
.eyebrow-up { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.how-head h2 { font-size: clamp(28px, 4.6vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.step { flex: 1; text-align: center; padding: 0 14px; }
.step-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-ico svg { width: 26px; height: 26px; }
.step-t { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.step-d { font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--sub); }
.connector { flex: none; color: #C9C6BE; }
.connector svg { width: 30px; height: 30px; }

/* ── FEATURES 지그재그 ── */
.features { padding-block: 24px 40px; }
.feat-row { display: flex; align-items: center; gap: 56px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.feat-row:last-child { border-bottom: 0; }
.feat-copy { flex: 1; }
.feat-chip { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; font-size: 12.5px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
.feat-chip svg { width: 14px; height: 14px; }
.feat-copy h3 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px; }
.feat-copy p { font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--sub); max-width: 44ch; }
.feat-mock { flex: none; display: flex; justify-content: center; }

/* 지그재그 폰(작은) */
.phone-sm { width: 270px; border-radius: 36px; padding: 8px; box-shadow: 0 24px 46px rgba(20, 20, 30, .2); }
.phone-sm.dark { background: #000; box-shadow: 0 24px 46px rgba(0, 0, 0, .4); }
.phone-screen.light, .phone-screen.pad { border-radius: 29px; min-height: 0; }
.phone-screen.pad { padding: 18px 16px 22px; }
.phone-screen.darkbg { background: #101216; color: #F2F4F8; }
.mk-brand.sm { padding: 0; margin-bottom: 16px; }
.mk-brand.sm .mk-name { font-size: 17px; }
.mk-card.sm { padding: 15px 14px; border-radius: 18px; box-shadow: 0 10px 24px rgba(20, 20, 30, .09); }
.mk-card.sm .mk-chip { font-size: 10.5px; padding: 4px 10px; }
.mk-q.sm { font-size: 16px; margin: 11px 0 13px; }
.mk-ab.sm { margin: 0; }
.mk-ab.sm .mk-a, .mk-ab.sm .mk-b { padding: 11px 3px; font-size: 11.5px; border-radius: 11px; border-width: 1.4px; }
.mk-dots { display: flex; gap: 5px; justify-content: center; margin-top: 14px; }
.mk-dots span { width: 5px; height: 5px; border-radius: 999px; background: var(--line-2); }
.mk-dots span.on { width: 16px; background: var(--brand); }

/* 핫 다크 목업 */
.mk-brand.hot { align-items: center; }
.mk-mark-hot { width: 24px; height: 24px; border-radius: 8px; background: rgba(167, 139, 250, .16); color: var(--brand-2); display: inline-flex; align-items: center; justify-content: center; }
.mk-mark-hot svg { width: 14px; height: 14px; }
.mk-hotcard { position: relative; background: #1A1E26; border: 1px solid rgba(167, 139, 250, .28); border-radius: 16px; padding: 14px 13px; }
.mk-accent { position: absolute; top: 0; left: 18px; right: 18px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-2); }
.mk-hot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.mk-chip-d { font-size: 10px; font-weight: 800; color: #C4B5FD; background: rgba(167, 139, 250, .16); padding: 4px 8px; border-radius: 999px; }
.mk-close { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 800; border: 1.2px solid var(--brand-2); padding: 3px 7px; border-radius: 999px; }
.mk-close .flame { color: #FF6B6E; display: inline-flex; }
.mk-close svg { width: 9px; height: 9px; }
.mk-q-d { font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 11px; }
.mk-hot-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #262B36; }
.mk-cc { display: inline-flex; align-items: baseline; gap: 4px; }
.mk-cc b { font-size: 17px; font-weight: 800; }
.mk-cc small { font-size: 10px; font-weight: 700; color: var(--sub-dim); }
.mk-delta { font-size: 9.5px; font-weight: 800; color: #C4B5FD; background: rgba(167, 139, 250, .16); padding: 3px 8px; border-radius: 999px; }

/* 등급 카드 */
.grade-card { width: 340px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 14px 34px rgba(20, 20, 30, .08); }
.grade-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.grade-av { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 800; }
.grade-nick { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.grade-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px 4px 5px; border-radius: 999px; }
.grade-badge .hex { width: 18px; height: 20px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.grade-badge .hex svg { width: 10px; height: 10px; }
.grade-prog-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; }
.grade-prog-label b { color: var(--brand-ink); }
.grade-prog-label .muted { font-size: 11.5px; color: var(--sub); }
.grade-track { height: 9px; border-radius: 999px; background: var(--page-bg); overflow: hidden; }
.grade-fill { height: 100%; background: var(--brand); border-radius: 999px; }

/* ── DOWNLOAD CTA ── */
.cta { padding-bottom: 64px; }
.cta-band { border-radius: 28px; overflow: hidden; position: relative; background: var(--cta-grad); }
.cta-blob { position: absolute; top: -80px; right: 60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-inner { position: relative; text-align: center; padding: clamp(44px, 7vw, 64px) clamp(24px, 5vw, 40px); }
.cta-mark { display: inline-flex; margin-bottom: 20px; }
.cta-mark svg { width: 52px; height: 52px; }
.cta-inner h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 14px; }
.cta-inner p { font-size: clamp(16px, 2vw, 18px); font-weight: 500; color: rgba(255, 255, 255, .85); margin-bottom: 32px; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 40px; gap: 20px; flex-wrap: wrap; }
.brand.foot .mark { width: 22px; height: 22px; }
.brand.foot .brand-name { font-size: 18px; }
.copy { font-size: 12.5px; font-weight: 500; color: var(--sub-dim); margin-left: 6px; }
.footer-links { display: flex; gap: 24px; font-size: 13.5px; font-weight: 600; color: var(--sub); }

/* ── 스크롤 페이드인(선택) ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─────────── 반응형 ─────────── */

/* 태블릿 768–1023: 2열 유지·목업 축소·네비 링크 노출 */
@media (max-width: 1023px) {
  .phone { width: 264px; }
  .feat-row { gap: 40px; }
  .hero-inner { gap: 28px; }
}

/* 모바일 < 768: 1열 세로·햄버거 */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .hamburger {
    display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px;
    align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
  }
  .hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    display: flex; flex-direction: column; gap: 4px; padding: 8px var(--pad) 20px;
    border-bottom: 1px solid var(--line); background: var(--ground);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 12px 4px; font-size: 15px; font-weight: 700; color: var(--sub); }
  .mobile-menu .btn-brand { color: #fff; justify-content: center; }

  .hero-inner { flex-direction: column; align-items: flex-start; text-align: left; padding-block: 44px 56px; }
  .hero-mock { align-self: center; margin-top: 8px; }
  .store-badges { width: 100%; }
  .badge { flex: 1; justify-content: center; min-width: 150px; }

  .how-steps { flex-direction: column; gap: 4px; }
  .connector { transform: rotate(90deg); margin: 4px 0; }

  .feat-row, .feat-row.reverse { flex-direction: column; gap: 28px; text-align: left; align-items: flex-start; }
  .feat-mock { align-self: center; }
  .feat-copy p { max-width: none; }

  .cta { padding-inline: 0; }
}

/* 아주 좁은 화면 목업 클리핑 방지 */
@media (max-width: 359px) {
  .phone { width: 88vw; }
  .phone-sm { width: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
