/* ─────────────────────────────────────────────
   layout.css — 상단 메뉴 · 모바일 메뉴 · 히어로 · 섹션 틀 · 푸터
   ───────────────────────────────────────────── */

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  border-bottom: 1px solid transparent;
  transition: transform .7s var(--ease), background-color .5s, border-color .5s;
}
.nav.is-scrolled {
  background: rgba(247, 246, 242, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-101%); }
html.menu-open { overflow: hidden; }
html.menu-open .nav { transform: none; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.nav__in { display: flex; align-items: center; gap: 28px; height: var(--nav-h); transition: height .5s var(--ease); }
.nav.is-scrolled .nav__in { height: 70px; }

.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; color: var(--gold); flex: none; transition: transform 1.2s var(--ease); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__word { font-family: var(--f-en); font-weight: 500; font-size: 18px; line-height: 1; letter-spacing: .26em; }
.brand__word small { display: block; margin-top: 6px; font-family: var(--f-sans); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--text-3); }

.nav__links { display: flex; gap: 34px; font-size: 14.5px; color: var(--text-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color .4s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-deco); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 600;
  transition: background-color .5s var(--ease);
}
.nav__cta svg { width: 13px; height: 13px; transition: transform .5s var(--ease); }
.nav__cta:hover { background: var(--gold); }
.nav__cta:hover svg { transform: translateX(3px); }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .6s var(--ease), top .6s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
html.menu-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
html.menu-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ── MOBILE MENU ── */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--pad-x) 40px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu nav { display: flex; flex-direction: column; }
.menu a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--f-kr); font-weight: 400; font-size: clamp(32px, 8.6vw, 56px); line-height: 1.42; letter-spacing: -.05em;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
html.menu-open .menu a { opacity: 1; transform: none; }
html.menu-open .menu a:nth-child(1) { transition-delay: .25s; }
html.menu-open .menu a:nth-child(2) { transition-delay: .3s; }
html.menu-open .menu a:nth-child(3) { transition-delay: .35s; }
html.menu-open .menu a:nth-child(4) { transition-delay: .4s; }
html.menu-open .menu a:nth-child(5) { transition-delay: .45s; }
html.menu-open .menu a:nth-child(6) { transition-delay: .5s; }
.menu__foot { margin-top: 56px; font-size: 14px; color: var(--text-3); }

/* ── HERO — 첫 화면: 왼쪽 약속·대표 가격·버튼, 오른쪽 만들어 드리는 화면 예시, 맨 아래 실적 띠 ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__gl.is-fallback {
  background:
    radial-gradient(55% 65% at 80% 40%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(45% 55% at 90% 75%, rgba(200, 164, 101, .14), transparent 70%),
    var(--bg);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 246, 242, .92) 0%, rgba(247, 246, 242, .6) 38%, rgba(247, 246, 242, 0) 62%),
    linear-gradient(180deg, rgba(247, 246, 242, .5) 0%, rgba(247, 246, 242, 0) 20%, rgba(247, 246, 242, 0) 78%, var(--bg) 100%);
}
.hero__inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center;
  gap: clamp(32px, 4vw, 72px);
  padding-top: calc(var(--nav-h) + clamp(20px, 4vh, 56px)); padding-bottom: clamp(28px, 5vh, 60px);
}
.hero__eyebrow {
  margin-bottom: clamp(18px, 2vw, 26px); padding: 8px 15px 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(200, 164, 101, .35);
}
.hero__eyebrow::before { width: 7px; height: 7px; border-radius: 50%; }
.hero__title { font-family: var(--f-kr); font-weight: 600; font-size: clamp(38px, 4.6vw, 74px); line-height: 1.16; letter-spacing: -.06em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line__in { display: inline-block; will-change: transform; }
.hero__title em { color: var(--gold); background: linear-gradient(transparent 74%, rgba(200, 164, 101, .16) 74%); }
.hero__lead { max-width: 29em; margin-top: clamp(16px, 2vw, 24px); font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.75; color: var(--text-2); }

/* 만들어 드리는 것 8가지와 시작 가격 — 누르면 그 카드로(09-26 "3개밖에 없는 것처럼 보인다") */
.hero__prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin-top: clamp(20px, 2.4vw, 30px); }
.hero__prices a {
  display: flex; flex-direction: column; gap: 1px; height: 100%; padding: 10px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 26px -20px rgba(20, 20, 18, .4);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.hero__prices a:hover { border-color: var(--gold-deco); transform: translateY(-2px); }
.hero__prices span { font-size: clamp(12px, .95vw, 13.5px); line-height: 1.4; color: var(--text-2); white-space: nowrap; }
.hero__prices b { font-family: var(--f-kr); font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; letter-spacing: -.03em; white-space: nowrap; }
/* 그 밖에 맡는 일 — 첫 화면에 전부(09-26 "다 넣어"), 누르면 '맡길 수 있는 일'의 그 줄로 */
.hero__also { max-width: 640px; margin-top: 14px; }
.hero__also p { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.hero__also ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.hero__also a:not(.more-link) {
  display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.5; color: var(--text-2);
  transition: border-color .4s var(--ease), color .4s;
}
.hero__also a:not(.more-link):hover { border-color: var(--gold-deco); color: var(--text); }
.hero__also .more-link { padding: 4px 2px; font-size: 13.5px; }
/* 텔레그램 — 버튼 아래 한 줄(색 규칙: 카카오 노랑만 예외라 글자 링크로) */
.hero__tg { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: color .4s; }
.hero__tg svg { width: 18px; height: 18px; flex: none; }
.hero__tg:hover { color: var(--gold-ink); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(20px, 2.4vw, 30px); }

/* 만들어 드리는 화면 예시 3장 — 천천히 떠 있다 */
.hero__show { position: relative; height: clamp(380px, 34vw, 500px); }
.show {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 20, 18, .04), 0 34px 70px -34px rgba(20, 20, 18, .34);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.show--sheet { top: 2%; right: 0; width: 86%; }
.show--chat { left: 0; top: 38%; width: 62%; padding: 18px 20px 20px; animation-duration: 8s; animation-delay: -2s; }
.show--toast {
  right: 3%; bottom: 5%; width: 50%; padding: 16px 18px; background: var(--ink); border-color: var(--ink); color: #fff;
  font-size: 15px; line-height: 1.5; animation-duration: 6s; animation-delay: -4s;
}
.show--toast small { display: block; margin-bottom: 4px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.show--toast em { color: var(--gold-deco); font-weight: 700; }
.show__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.show__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.show__bar span { margin-left: 6px; font-family: var(--f-mono); font-size: 11.5px; }
.show__bar b { margin-left: auto; font-weight: 600; color: var(--gold-ink); }
.show__table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.show__table th, .show__table td { padding: 10px 16px; text-align: right; }
.show__table th:first-child, .show__table td:first-child { text-align: left; }
.show__table th { font-size: 11.5px; font-weight: 600; color: var(--text-3); background: var(--bg); }
.show__table td { border-top: 1px solid var(--line); }
.show__table .dn { color: var(--ok); font-weight: 600; }
.show__table .up { color: var(--warn); font-weight: 600; }
.show__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13.5px; }
.show__head span { padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11.5px; font-weight: 600; }
.show__q { width: fit-content; max-width: 80%; margin-left: auto; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; font-size: 14px; }
.show__a { max-width: 94%; margin-top: 10px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.show__a small { display: table; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11.5px; font-weight: 600; }
.hero__note { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--text-3); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 164, 101, .55); } 100% { box-shadow: 0 0 0 10px rgba(200, 164, 101, 0); } }

/* ── SECTION 틀 ── */
.section { padding: var(--sec-y) 0; position: relative; }
.label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(22px, 2.6vw, 36px);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.label__line { flex: 1; height: 1px; background: var(--line); transform-origin: left center; }

/* ── FOOTER ── */
.footer { position: relative; padding: clamp(64px, 7vw, 112px) 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.footer__cta { font-family: var(--f-kr); font-weight: 400; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.3; letter-spacing: -.05em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 230px)); gap: 40px; }
.footer__h { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 14px; }
.footer__cols a { display: table; padding: 5px 0; font-size: 15px; color: var(--text-2); transition: color .4s; }
.footer__cols a:hover { color: var(--gold); }
.footer__word { margin: clamp(40px, 5vw, 80px) 0 22px; line-height: .78; text-align: center; white-space: nowrap; font-family: var(--f-en); font-weight: 300; font-size: 15vw; letter-spacing: -.02em; }
.footer__word span { display: inline-block; font-optical-sizing: none; background: linear-gradient(180deg, rgba(20, 20, 18, .88) 0%, rgba(20, 20, 18, .05) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__legal a { transition: color .4s; }
.footer__legal a:hover { color: var(--gold); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }   /* 태블릿에서도 메뉴를 열 수 있게(768~1080 에서 메뉴가 아예 없던 문제) */
  .nav__cta { margin-right: 4px; }
}
@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__show { width: min(100%, 560px); height: 400px; margin: 0 auto; }
}
@media (max-width: 767px) {
  :root { --nav-h: 68px; }
  .nav__cta { display: none; }
  .brand__word { font-size: 16px; }
  .brand__word small { display: none; }
  .brand__mark { width: 30px; height: 30px; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(247, 246, 242, .35) 0%, rgba(247, 246, 242, .15) 22%, rgba(247, 246, 242, .75) 46%, rgba(247, 246, 242, .92) 70%, var(--bg) 100%);
  }
  .hero__inner { padding-top: calc(var(--nav-h) + 22px); padding-bottom: 32px; }
  .hero__show { display: none; }   /* 휴대폰 첫 화면은 약속·가격·버튼에 집중 */
  .hero__prices { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; }
  .hero__prices a { padding: 8px 12px; border-radius: 12px; }
  .hero__prices span { font-size: 12.5px; }
  .hero__prices b { font-size: 16px; }
  .hero__prices { margin-top: 22px; }
  .hero__tg { margin-top: 12px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__legal { flex-direction: column; }
}
