/* ============================================================
   네고잉 서비스 소개 페이지 — B안 v5 (모던 마켓 소프트)
   ------------------------------------------------------------
   폰트   : Pretendard Variable (+ 중국어는 시스템 폰트 폴백)
   브랜드 : 옐로우 #FFD93D (그래픽 전용) / 코랄 #FF6B5B (하트 계열)
   잉크   : #1A1A1A / 크림 #FBF3DE (브랜드 배경)
   반경   : 인터랙션 12 / 컨테이너 20 / 폰 베젤 40 / 필 999
   원칙   : 보더 없음이 기본, 소프트 섀도우로 구분 (v5)
   ============================================================ */

:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", system-ui, sans-serif;

  /* 브랜드 (B안 v5) */
  --yellow:      #FFD93D;   /* 그래픽 전용 — 텍스트 금지 (흰 배경 대비 1.5:1) */
  --yellow-tint: #FFF3B5;
  --cream-tint:  #FFF7DE;   /* 위시 계열 틴트 */
  --cream:       #FBF3DE;   /* 브랜드 배경 */
  --coral:       #FF6B5B;   /* 하트, 좋아요 계열 전용 */

  /* 표면 */
  --bg:        #ffffff;
  --bg-tint:   #F6F5F1;
  --surface:   #ffffff;
  --line:      #E4E4E4;
  --line-soft: #EFEFED;

  /* 잉크 */
  --ink:      #1A1A1A;
  --ink-mid:  #5C5C5C;   /* 보조 텍스트, AA 통과 */
  --ink-dim:  #6B6B6B;   /* 최소 텍스트, 4.5:1 이상 유지 */

  /* 반경 */
  --r-interactive: 12px;
  --r-container:   20px;
  --r-phone:       40px;
  --r-phone-inner: 31px;  /* 베젤 40 − 패딩 9 (동심 반경) */

  /* 리듬 */
  --wrap:   1200px;
  --gutter: clamp(20px, 4vw, 48px);

  /* 모션 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-press: 160ms;
  --dur-hover: 200ms;
  --dur-enter: 600ms;

  /* 소프트 섀도우 (v5: radius 6~24 / offset 0,2~8 / 잉크 8~18%) */
  --sh-sm: 0 2px 6px rgba(26, 26, 26, .06), 0 1px 2px rgba(26, 26, 26, .04);
  --sh-md: 0 4px 14px rgba(26, 26, 26, .08), 0 1px 4px rgba(26, 26, 26, .05);
  --sh-lg: 0 8px 24px rgba(26, 26, 26, .16), 0 2px 8px rgba(26, 26, 26, .06);
}

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p  { margin: 0; text-wrap: pretty; }

/* ── 중국어 / 일본어 모드 ───────────────────────────────
   Pretendard에는 한자와 가나 글리프가 없어 시스템 폰트로 폴백한다.
   keep-all은 한국어 전용 규칙이라 중국어와 일본어에서는 풀어준다
   (둘 다 띄어쓰기가 없어 keep-all이면 줄바꿈이 막힌다). */
html[data-lang="cn"] body {
  font-family: "Pretendard Variable", Pretendard, "PingFang SC", "Microsoft YaHei",
               "Noto Sans SC", -apple-system, system-ui, sans-serif;
}
html[data-lang="tw"] body {
  font-family: "Pretendard Variable", Pretendard, "PingFang TC", "Microsoft JhengHei",
               "Noto Sans TC", -apple-system, system-ui, sans-serif;
}
html[data-lang="ja"] body {
  font-family: "Pretendard Variable", Pretendard, "Hiragino Sans", "Yu Gothic",
               "Noto Sans JP", -apple-system, system-ui, sans-serif;
}
html[data-lang="cn"] main *, html[data-lang="cn"] footer *,
html[data-lang="tw"] main *, html[data-lang="tw"] footer *,
html[data-lang="ja"] main *, html[data-lang="ja"] footer * { word-break: normal; }

/* ── 줄바꿈 규칙 ────────────────────────────────────────
   문장은 쉼표 뒤나 의미가 끊기는 지점에서 끊는다.
   줄바꿈 위치는 data-i18n-* 속성 안에 직접 넣고, 아래 두 클래스로 적용한다.
   .brk      긴 문장용. 720px 이하에서는 규칙을 풀어준다.
   .brk-all  한 줄이 짧아 모바일에서도 그대로 들어가는 문장용. 항상 유지한다. */
.brk,
.brk-all { white-space: pre-line; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-interactive);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 16px; }

/* ── 워드마크 (아웃라인 SVG) ───────────────────────────── */
.wordmark { display: inline-flex; line-height: 0; }
/* object-fit: 헤더가 좁아 이미지가 눌리더라도 비율이 깨지지 않게 한다.
   영문 워드마크는 한글보다 2배 가까이 넓어 좁은 폭에서 압축되기 쉽다. */
.wordmark img { width: auto; object-fit: contain; }
.wordmark--sm img { height: 30px; }
/* --md / --lg 는 블록 레벨. inline 형제와 같은 줄에 흐르는 것을 막는다. */
.wordmark--md { display: flex; width: fit-content; }
.wordmark--md img { height: 46px; }
.wordmark--lg { display: flex; width: fit-content; }
.wordmark--lg img { height: clamp(64px, 8vw, 92px); }

/* ── 헤더 ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .92);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mid);
}
.header-nav a { transition: color var(--dur-hover) var(--ease-out); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.lang-switch__btn {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease-out),
              background var(--dur-hover) var(--ease-out);
}
.lang-switch__btn.is-active { background: var(--ink); color: #fff; }

/* ── 히어로 ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 8vw, 112px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -52%; right: -18%;
  width: min(1340px, 155vw);
  aspect-ratio: 1;
  background: radial-gradient(circle,
    var(--cream-tint) 0%,
    rgba(255, 247, 222, .72) 36%,
    rgba(255, 247, 222, .34) 56%,
    transparent 76%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(30px, 3.5vw, 45px);
  line-height: 1.32;
  letter-spacing: -.032em;
  white-space: pre-line;
  word-break: keep-all;
}
.hero__lead {
  margin-top: 18px;
  max-width: 27em;
  color: var(--ink-mid);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  word-break: keep-all;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.store-row--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-interactive);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.store-btn:hover { border-color: var(--ink-dim); box-shadow: var(--sh-md); }
.store-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.store-btn__logo { width: 22px; height: 22px; flex: none; color: var(--ink-dim); }
.store-btn__txt { display: flex; flex-direction: column; line-height: 1.25; }
/* 「다운로드」 작은 글씨도 AA 대비 */
.store-btn__txt small { color: var(--ink-mid); font-size: 11.5px; letter-spacing: .01em; }
.store-btn__txt strong {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.015em;
}

/* 폰 목업 */
.hero__visual { justify-self: center; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 9px;
  border-radius: var(--r-phone);
  background: linear-gradient(165deg, #34343a, #1a1a1c 58%);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.phone::after {
  /* 상단 스피커 슬릿 */
  content: "";
  position: absolute;
  top: 15px; left: 50%;
  width: 72px; height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  z-index: 2;
  pointer-events: none;
}
.phone img {
  width: 100%;
  /* 화면 5종 모두 원본이 1179x2556(393x852 @3x)이라 자를 필요가 없다.
     높이가 다른 화면을 새로 넣으면 여기서 잘리므로 그때는 비율을 다시 지정할 것. */
  aspect-ratio: 1179 / 2556;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-phone-inner);
  background: #fff;
  /* 밝은 배경 위 이미지 경계: 순수 검정 10% */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.phone--hero { width: min(306px, 80vw); }

/* ── 서비스 소개 + 4단계 ───────────────────────────────── */
.intro {
  padding: clamp(64px, 7vw, 96px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-tint);
}
.intro__inner { max-width: 980px; margin-inline: auto; text-align: center; }
.intro__title { font-size: clamp(25px, 2.9vw, 34px); letter-spacing: -.032em; }
.intro__body {
  max-width: 720px;
  margin-inline: auto;
  margin-top: 20px;
  color: var(--ink-mid);
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.85;
  word-break: keep-all;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 52px auto 0;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.steps__num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-bottom: 4px;
  border-radius: 50%;
  /* 옐로우 배경 + 잉크 글자 (13.5:1) — 흰 글자는 대비 미달이라 금지 */
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.steps strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.steps li > span:last-child {
  color: var(--ink-mid);
  font-size: 13.5px;
  line-height: 1.65;
  word-break: keep-all;
}

/* ── 기능 좌우 지그재그 4개 ────────────────────────────── */
.feature { padding: clamp(56px, 7vw, 104px) 0 0; }
.feature:last-of-type { padding-bottom: clamp(24px, 3vw, 40px); }
.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.feature--rev .feature__copy   { order: 2; }
.feature--rev .feature__visual { order: 1; }

.feature__copy h2 {
  font-size: clamp(24px, 2.7vw, 33px);
  letter-spacing: -.032em;
  line-height: 1.32;
  white-space: pre-line;
}
.feature__copy > p {
  margin-top: 18px;
  max-width: 32em;
  color: var(--ink-mid);
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.8;
  word-break: keep-all;
}
.feature__visual { justify-self: center; }

.tick { margin-top: 28px; display: grid; gap: 12px; }
.tick li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: .46em;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--cream-tint);
}

/* ── 계정 / 동네 안내 ──────────────────────────────────── */
.notes {
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(64px, 7vw, 88px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-tint);
}
.notes__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.note h2 { font-size: 18px; letter-spacing: -.022em; }
.note p {
  margin-top: 12px;
  color: var(--ink-mid);
  font-size: 14.5px;
  line-height: 1.85;
  word-break: keep-all;
}

/* ── CTA ───────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: clamp(80px, 9vw, 120px) 0;
  overflow: hidden;
  text-align: center;
}
.cta__glow {
  position: absolute;
  bottom: -66%; left: 50%;
  width: min(1240px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
    var(--cream-tint) 0%,
    rgba(255, 247, 222, .5) 42%,
    transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta .wordmark--md { margin-inline: auto; }
.cta__title {
  margin-top: 22px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.032em;
  line-height: 1.34;
  white-space: pre-line;
}
.cta .store-row { margin-top: 32px; }
.cta__note { margin-top: 20px; color: var(--ink-dim); font-size: 13.5px; }

/* ── 문서 페이지 — 다섯 장(약관 3종 5개 언어 전문 + 스토어가 요구한 delete-account · youth-protection)이 같은 `.legal` / `.legal-doc` 을 쓴다.
   여기를 고치면 다섯 장이 같이 바뀐다 ── */
.legal {
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
  min-height: 52vh;
}
.legal h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.legal p {
  margin-top: 16px;
  color: var(--ink-mid);
  font-size: 15.5px;
  line-height: 1.8;
  word-break: keep-all;
}
.legal__notice {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--cream-tint);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.legal__date { margin-top: 6px; color: var(--ink-dim); font-size: 13px; }

.legal-doc { max-width: 720px; margin-top: 8px; }
.legal-doc h2 {
  margin-top: 44px;
  font-size: 19px;
  letter-spacing: -.024em;
}
.legal-doc h3 { margin-top: 26px; font-size: 15.5px; letter-spacing: -.02em; }
.legal-doc p, .legal-doc li {
  color: var(--ink-mid);
  font-size: 14.5px;
  line-height: 1.85;
  word-break: keep-all;
}
.legal-doc p { margin-top: 10px; }
.legal-doc ol, .legal-doc ul { margin: 10px 0 0; padding-left: 22px; }
.legal-doc ol { list-style: decimal; }
.legal-doc ul { list-style: disc; }
.legal-doc li { margin-top: 4px; }
.legal-doc li::marker { color: var(--ink-dim); }
.legal-doc .todo {
  color: var(--ink);
  background: var(--cream-tint);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13px;
}

.legal .back {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .legal .back:hover { border-bottom-color: var(--ink); }
}

/* ── 푸터 ──────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0 60px;
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
}
.footer-links a { transition: color var(--dur-hover) var(--ease-out); }

.footer-disclaimer {
  margin-top: 24px;
  max-width: 62em;
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.8;
  word-break: keep-all;
}
.footer-disclaimer + .footer-disclaimer { margin-top: 10px; }

/* display:flex 가 브라우저 기본 [hidden]{display:none} 을 이기므로 명시한다.
   클라이언트에게 사업자 정보를 받으면 index.html 의 hidden 속성만 지우면 된다. */
.biz[hidden] { display: none; }
.biz {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 18px 0 0;
  color: var(--ink-dim);
  font-size: 12.5px;
}
.biz div { display: flex; gap: 7px; }
.biz dt { color: var(--ink-dim); font-weight: 500; }
.biz dd { margin: 0; }

.copyright { margin-top: 28px; color: var(--ink-dim); font-size: 12.5px; }

/* ── 스크롤 등장 ───────────────────────────────────────── */
/* .js 스코프 — JS가 없으면 콘텐츠가 그대로 보인다. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-enter) var(--ease-out),
              transform var(--dur-enter) var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: .08s; }
/* 히어로는 첫 화면이라 등장 연출 없이 즉시 보여준다. */
.js .hero .reveal { opacity: 1; transform: none; transition: none; }

/* ── 포인터가 있는 기기에서만 호버 ─────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover,
  .footer-links a:hover { color: var(--ink); }
  .lang-switch__btn:hover { color: var(--ink); }
  .lang-switch__btn.is-active:hover { color: #fff; }
}

/* 눌림 피드백 */
.lang-switch__btn:active {
  transform: scale(.96);
  transition: transform var(--dur-press) var(--ease-out);
}

/* ── 반응형 ──────────────────────────────────────────────
   1024 이하   2단 텍스트 그리드만 1단으로
   920 이하    폰 목업과 텍스트를 나란히 두기 어려워 히어로/기능을 1단으로
   820 이하    4단계가 좁아져 2단으로
   720 이하    모바일                                                    */

@media (max-width: 1024px) {
  .notes__grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .hero__inner   { grid-template-columns: 1fr; text-align: center; }
  .hero__copy    { display: flex; flex-direction: column; align-items: center; }
  .hero__title   { margin-top: 28px; }
  .store-row     { justify-content: center; }
  .hero__visual  { margin-top: 8px; }

  .feature__inner { grid-template-columns: 1fr; gap: 44px; }
  .feature__copy  { order: 1 !important; text-align: center; }
  .feature__copy > p { margin-inline: auto; }
  .feature__visual { order: 2 !important; }
  .tick { max-width: 25em; margin-inline: auto; text-align: left; }
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
}

@media (max-width: 720px) {

  /* 긴 문장만 지정 줄바꿈을 풀어 자연스럽게 흐르게 둔다.
     .brk-all 과 헤드라인(h1/h2/h3)은 짧아서 그대로 유지한다. */
  .brk { white-space: normal; }

  .header-nav { display: none; }
  .lang-switch { margin-left: auto; }

  /* 언어 5종 + 영문 워드마크(602x132)가 좁은 헤더에서 부딪힌다.
     간격과 버튼 여백을 줄여 로고가 눌리지 않을 자리를 만든다. */
  .header-inner { gap: 12px; }
  .lang-switch__btn { padding: 5px 8px; }
  .wordmark--sm img { height: 28px; }

  .hero { padding-top: 40px; }
  .hero__title { font-size: 27px; line-height: 1.4; }

  .store-row { width: 100%; flex-direction: column; }
  .store-btn { width: 100%; justify-content: center; }

  .phone, .phone--hero { width: min(272px, 76vw); }

  .steps { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; padding-top: 34px; }
  .feature__copy h2 { font-size: 23px; }

  .footer-links { gap: 10px 20px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 움직임은 걷어내고 색/투명도 전환은 남긴다. */
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lang-switch__btn, .skip { transition: none; }
  .lang-switch__btn:active { transform: none; }
}
