/* =========================================================
   꿈터치 — 공통 디자인
   색을 바꾸고 싶으면 아래 :root 의 값만 바꾸면 사이트 전체가 바뀝니다.
   ========================================================= */
/* 글꼴(Pretendard)은 각 페이지 <head>에서 불러와요 (더 빨리 뜨도록) */

/* ---------- 한눈에 보기 / 한 줄 요약 (검색·AI 요약용 핵심 정보) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.fact { background: #fff; border: 1px solid #ece9f5; border-radius: 18px; padding: 22px; }
.fact dt { font-size: 13px; font-weight: 800; color: #ff7a45; letter-spacing: .04em; margin-bottom: 6px; }
.fact dd { color: #1b1838; font-weight: 600; font-size: 15.5px; line-height: 1.6; }
.fact dd small { display: block; color: #7a7690; font-weight: 500; font-size: 13.5px; margin-top: 2px; }
.answer-box { max-width: 900px; margin: 0 auto; background: #efedff; border-left: 5px solid #5b4fd6; border-radius: 18px; padding: 26px 30px; }
.answer-box h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 10px; }
.answer-box p { font-size: 16px; }
.answer-box ul { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.answer-box li { list-style: none; font-size: 15px; color: #1b1838; }
.answer-box li b { color: #5b4fd6; margin-right: 8px; }
.page-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
@media (max-width: 768px) {
  .facts { grid-template-columns: 1fr; }
  .answer-box { padding: 22px 20px; }
  .answer-box ul { grid-template-columns: 1fr; }
}

:root {
  --ink: #1b1838;        /* 제목 글자색 */
  --text: #3d3a52;       /* 본문 글자색 */
  --muted: #7a7690;      /* 흐린 글자색 */
  --indigo: #3d3580;     /* 꿈터치 로고색 */
  --indigo-2: #5b4fd6;
  --indigo-soft: #efedff;
  --accent: #ff7a45;     /* 포인트색 (따뜻한 코랄) */
  --accent-soft: #fff0e8;
  --cream: #fff9f3;
  --bg: #ffffff;
  --line: #ece9f5;
  --kakao: #fee500;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(40, 30, 110, .08);
  --shadow-lg: 0 24px 60px rgba(40, 30, 110, .16);
  --max: 1160px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hl { color: var(--accent); }
.hl-indigo { color: var(--indigo-2); }
.mark { background: linear-gradient(transparent 62%, #ffd9c6 62%); padding: 0 2px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 122, 69, .35); }
.btn-accent:hover { box-shadow: 0 14px 30px rgba(255, 122, 69, .45); }
.btn-kakao { background: var(--kakao); color: #191919; }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-line { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 69, .55); }
  70% { box-shadow: 0 0 0 16px rgba(255, 122, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 69, 0); }
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--indigo); font-size: 18px; }
.logo-mark { width: 40px; height: 44px; object-fit: contain; flex-shrink: 0; }
.footer-logo { width: 170px; height: auto; margin: -18px 0 8px -26px; }
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; margin-top: -3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--text); transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: var(--indigo-soft); color: var(--indigo); }
.nav .btn { margin-left: 10px; padding: 11px 20px; font-size: 15px; }
.nav .btn:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 110px 0; position: relative; }
.section-cream { background: var(--cream); }
.section-indigo { background: linear-gradient(160deg, #221d57 0%, #3d3580 60%, #5b4fd6 130%); color: #d9d6f5; }
.section-indigo h2, .section-indigo h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .02em;
}
.section-indigo .eyebrow { background: rgba(255, 255, 255, .12); color: #ffb899; }
.section-title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; }
.section-lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.section-indigo .section-lead { color: #bfbbe6; }

/* ---------- 스크롤 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.9); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }

/* ---------- 메인 히어로 (영상) ---------- */
.hero {
  position: relative; min-height: calc(100svh - 70px); display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 80% 20%, #6d5ff0 0%, transparent 60%),
              radial-gradient(900px 500px at 10% 90%, #ff7a45 0%, transparent 55%),
              linear-gradient(135deg, #1b1647, #3d3580);
  background-image: url("../assets/hero-poster.jpg"), linear-gradient(135deg, #1b1647, #3d3580);
  background-size: cover; background-position: 70% center;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s; }
.hero-video.ready { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 16, 55, .88) 0%, rgba(20, 16, 55, .55) 50%, rgba(20, 16, 55, .15) 100%),
              linear-gradient(0deg, rgba(20, 16, 55, .6) 0%, transparent 35%);
}
.hero-inner { position: relative; padding: 90px 24px 120px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; margin-bottom: 26px;
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 70px); font-weight: 800; line-height: 1.18; max-width: 900px; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 .type-line { display: inline-block; min-height: 1.2em; color: #ffb899; }
.type-cursor { display: inline-block; width: 4px; height: .9em; background: #ffb899; margin-left: 6px; vertical-align: -0.08em; animation: blink .9s steps(1) infinite; }
.hero p.lead { margin-top: 24px; font-size: clamp(17px, 1.9vw, 21px); color: #e1def9; max-width: 600px; }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; color: #cfcbf1; }
.hero-proof b { display: block; font-size: 26px; color: #fff; font-weight: 800; }
.float-icons { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.float-icons span {
  position: absolute; font-size: 34px; opacity: .85; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-26px) rotate(8deg); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #cfcbf1; text-align: center; letter-spacing: .15em; }
.scroll-hint::after { content: ""; display: block; width: 2px; height: 36px; margin: 8px auto 0; background: linear-gradient(#fff, transparent); animation: drop 1.8s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 흐르는 띠 (마퀴) */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-weight: 700; font-size: 18px; }
.marquee-track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "🐾"; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 문제 제기 (찔리게) ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); position: relative;
}
.pain-card .q { font-size: 40px; margin-bottom: 16px; }
.pain-card h3 { font-size: 21px; margin-bottom: 10px; }
.pain-card p { color: var(--muted); font-size: 15.5px; }
.search-demo {
  max-width: 640px; margin: 60px auto 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.search-bar { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); font-weight: 600; }
.search-bar .n { width: 30px; height: 30px; border-radius: 8px; background: #03c75a; color: #fff; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.search-results { padding: 14px 22px 20px; }
.sr { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); opacity: 0; transform: translateY(10px); transition: .5s; }
.sr:last-child { border-bottom: 0; }
.sr.show { opacity: 1; transform: none; }
.sr .thumb { width: 48px; height: 48px; border-radius: 12px; background: var(--indigo-soft); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.sr b { color: var(--ink); display: block; }
.sr small { color: var(--muted); }
.sr.me { background: #fff5f5; margin: 0 -22px; padding: 12px 22px; }
.sr.me .thumb { background: #ffe1e1; }
.sr.me b { color: #d93b3b; }

/* ---------- 장점 (기대하게) ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.benefit {
  display: flex; gap: 20px; align-items: flex-start; background: #fff; padding: 30px;
  border-radius: var(--radius); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit .ic { width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--indigo-soft); }
.benefit:nth-child(2n) .ic { background: var(--accent-soft); }
.benefit h3 { font-size: 20px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 15.5px; }

/* ---------- 숫자 (믿게) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.stat b { display: block; font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat b em { font-style: normal; color: #ffb899; font-size: .6em; margin-left: 2px; }
.stat span { font-size: 15px; color: #c8c4ee; }
.stat-note { text-align: center; font-size: 12.5px; color: #9f9acc; margin-top: 22px; }

/* ---------- 업종 카드 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-card {
  position: relative; border-radius: 26px; overflow: hidden; min-height: 380px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 24px;
  background-size: cover; background-position: center; isolation: isolate;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.biz-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(15, 12, 40, .85) 100%); }
.biz-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.biz-card .emoji { position: absolute; top: 22px; left: 22px; font-size: 30px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); transition: transform .4s; }
.biz-card:hover .emoji { transform: rotate(-10deg) scale(1.1); }
.biz-card h3 { color: #fff; font-size: 24px; }
.biz-card p { font-size: 14.5px; color: #e4e1fb; margin: 6px 0 16px; }
.biz-card .go { font-weight: 700; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.biz-card .go::after { content: "→"; transition: transform .3s; }
.biz-card:hover .go::after { transform: translateX(6px); }
.bg-hospital { background-image: url("../assets/hospital.jpg"), linear-gradient(150deg, #4fb3a9, #2d6e8e); }
.bg-hotel { background-image: url("../assets/hotel.jpg"), linear-gradient(150deg, #8f7cf7, #3d3580); }
.bg-kinder { background-image: url("../assets/kindergarten.jpg"), linear-gradient(150deg, #ffc15e, #ff7a45); }
.bg-groom { background-image: url("../assets/grooming.jpg"), linear-gradient(150deg, #ff8fb1, #c0508a); }

/* ---------- 제작 과정 ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 38px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step .num {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 30px; box-shadow: var(--shadow); transition: .3s;
}
.step:hover .num { border-color: var(--accent); transform: scale(1.08); }
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step h4::before { counter-increment: step; content: "STEP " counter(step); display: block; font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: .08em; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 비교표 ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.compare-col { border-radius: var(--radius); padding: 34px 30px; background: #fff; border: 1px solid var(--line); }
.compare-col.good { background: var(--indigo); color: #e1def9; border: 0; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.compare-col.good h3 { color: #fff; }
.compare-col h3 { font-size: 20px; margin-bottom: 20px; }
.compare-col li { list-style: none; padding: 11px 0; border-bottom: 1px solid rgba(128, 128, 160, .18); display: flex; gap: 10px; font-size: 15.5px; }
.compare-col li:last-child { border-bottom: 0; }

/* ---------- 후기 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); }
.review .stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--text); font-size: 15.5px; }
.review .who { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.review .who i { width: 40px; height: 40px; border-radius: 50%; background: var(--indigo-soft); display: grid; place-items: center; font-style: normal; font-size: 20px; }
.review .who b { color: var(--ink); display: block; }
.sample-note { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; padding: 22px 26px; font-weight: 700; color: var(--ink); font-size: 17px; display: flex; justify-content: space-between; gap: 14px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .3s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA 띠 ---------- */
.cta-band {
  border-radius: 34px; padding: 70px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 0%, #ff9a6e, transparent 60%), linear-gradient(135deg, #3d3580, #5b4fd6);
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta-band p { margin: 16px auto 32px; color: #e1def9; font-size: 18px; max-width: 560px; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .paw { position: absolute; font-size: 120px; opacity: .08; }
.cta-band .scarcity { display: inline-block; margin-top: 22px; font-size: 14px; background: rgba(0, 0, 0, .2); padding: 8px 16px; border-radius: 999px; }

/* ---------- 업종 상세 페이지 ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: 100px 0 110px;
  background-size: cover; background-position: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 16, 55, .9) 0%, rgba(20, 16, 55, .6) 55%, rgba(20, 16, 55, .2) 100%); }
.page-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
.page-hero .lead { margin-top: 20px; font-size: clamp(16px, 1.8vw, 20px); color: #e1def9; }
.page-hero .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .15); margin-bottom: 22px; backdrop-filter: blur(6px); }
.page-hero .hero-cta { margin-top: 34px; }

/* 휴대폰 목업 */
.phone {
  width: min(300px, 100%); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 42px; background: #111; padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px #333; position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #111; border-radius: 20px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; position: relative; }
.phone-scroll { animation: phoneScroll 14s ease-in-out infinite; }
@keyframes phoneScroll { 0%, 12% { transform: translateY(0); } 45%, 57% { transform: translateY(-38%); } 88%, 100% { transform: translateY(0); } }
.ps-hero { height: 230px; display: flex; flex-direction: column; justify-content: flex-end; padding: 50px 16px 18px; color: #fff; background-size: cover; background-position: center; position: relative; isolation: isolate; }
.ps-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); z-index: -1; }
.ps-hero b { font-size: 18px; line-height: 1.3; }
.ps-hero small { font-size: 11px; opacity: .85; }
.ps-body { padding: 14px; display: grid; gap: 10px; }
.ps-btn { background: var(--accent); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-size: 12px; font-weight: 700; }
.ps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-tile { background: var(--indigo-soft); border-radius: 12px; padding: 12px 10px; font-size: 11px; color: var(--ink); font-weight: 700; }
.ps-tile span { display: block; font-size: 20px; margin-bottom: 4px; }
.ps-line { height: 9px; border-radius: 6px; background: #eeedf4; }
.ps-line.s { width: 60%; }
.ps-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 11px; display: flex; gap: 10px; align-items: center; color: var(--ink); }
.ps-card i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-style: normal; font-size: 16px; flex-shrink: 0; }

/* 기능 카드 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature .ic { font-size: 34px; margin-bottom: 16px; width: 64px; height: 64px; border-radius: 20px; background: var(--indigo-soft); display: grid; place-items: center; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* 전/후 */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 960px; margin: 0 auto; }
.ba-box { border-radius: var(--radius); padding: 30px; }
.ba-box.before { background: #f4f4f7; }
.ba-box.after { background: var(--indigo); color: #e1def9; box-shadow: var(--shadow-lg); }
.ba-box.after h3 { color: #fff; }
.ba-box h3 { font-size: 18px; margin-bottom: 14px; }
.ba-box li { list-style: none; padding: 7px 0; font-size: 15.5px; }
.ba-arrow { font-size: 34px; color: var(--accent); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

/* 페이지 이동 탭 */
.biz-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.biz-tabs a { padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; background: #fff; transition: .2s; }
.biz-tabs a:hover, .biz-tabs a.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ---------- 포트폴리오 ---------- */
.pf-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.pf-filter button { padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; background: #fff; transition: .2s; }
.pf-filter button.on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-item { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, opacity .35s; }
.pf-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pf-item.hide { display: none; }
.pf-thumb { aspect-ratio: 4 / 3; background: var(--indigo-soft); position: relative; overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pf-item:hover .pf-thumb img { transform: scale(1.06); }
.pf-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600;
  background: repeating-linear-gradient(45deg, #f6f5fc 0 14px, #efedf9 14px 28px);
}
.pf-empty span { display: block; font-size: 34px; margin-bottom: 6px; }
.pf-info { padding: 20px 22px; }
.pf-info .cat { font-size: 13px; font-weight: 700; color: var(--accent); }
.pf-info h3 { font-size: 18px; margin-top: 4px; }
.pf-info p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- 견적 계산기 ---------- */
.calc { display: grid; grid-template-columns: 1.35fr .9fr; gap: 28px; align-items: start; }
.calc-steps { background: #fff; border-radius: 28px; padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-block + .calc-block { margin-top: 34px; padding-top: 30px; border-top: 1px dashed var(--line); }
.calc-block h3 { font-size: 19px; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.calc-block h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.calc-block > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; padding-left: 38px; }
.opt-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt {
  border: 2px solid var(--line); border-radius: 16px; padding: 16px 12px; text-align: center; background: #fff;
  transition: .18s; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.opt:hover { border-color: #c9c3f5; }
.opt.on { border-color: var(--indigo-2); background: var(--indigo-soft); box-shadow: 0 6px 16px rgba(91, 79, 214, .15); }
.opt .e { font-size: 26px; }
.opt b { color: var(--ink); font-size: 15px; }
.opt small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.opt .price { color: var(--indigo-2); font-weight: 700; font-size: 13.5px; }
.opt.row { flex-direction: row; justify-content: space-between; text-align: left; padding: 14px 16px; }
.opt.row .l { display: flex; align-items: center; gap: 10px; }
.opt.row .chk { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: #fff; font-size: 12px; display: grid; place-items: center; flex-shrink: 0; margin-left: 8px; }
.opt.row.on .chk { background: var(--indigo-2); }
.opt.rec { position: relative; }
.opt.rec::after { content: "추천"; position: absolute; top: -9px; right: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.calc-result {
  position: sticky; top: 90px; background: linear-gradient(160deg, #221d57, #3d3580); color: #d9d6f5; border-radius: 28px; padding: 32px;
  box-shadow: var(--shadow-lg);
}
.calc-result .lbl { font-size: 14px; color: #a9a4dc; }
.calc-result .total { font-size: clamp(40px, 5vw, 54px); font-weight: 800; color: #fff; line-height: 1.15; margin: 4px 0; letter-spacing: -0.02em; }
.calc-result .vat { font-size: 12.5px; color: #a9a4dc; }
.calc-result .monthly { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }
.calc-result .monthly b { color: #ffb899; font-size: 22px; }
.calc-lines { margin: 22px 0; font-size: 14px; }
.calc-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.calc-lines div span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.calc-lines .empty { color: #8f8ac2; border: 0; justify-content: center; }
.calc-result .btn { width: 100%; margin-top: 10px; }
.calc-result .copy { background: rgba(255, 255, 255, .1); color: #fff; }
.calc-result .reset { display: block; margin: 12px auto 0; font-size: 13px; color: #a9a4dc; text-decoration: underline; }
.toast {
  position: fixed; left: 50%; bottom: 160px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- 푸터 ---------- */
.site-footer { background: #15122f; color: #9a96bf; padding: 64px 0 110px; font-size: 14px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer li { list-style: none; padding: 4px 0; }
.site-footer .brand { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; font-size: 13px; }

/* ---------- 하단 고정 상담 바 ----------
   ※ 화면 맨 아래 64px는 Netlify가 넣는 'Powered by Netlify' 표시 자리라 비워 둬요 */
.sticky-cta {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(200%); z-index: 90;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 24px; border-radius: 999px;
  background: rgba(27, 24, 56, .94); backdrop-filter: blur(10px); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1); max-width: calc(100% - 110px);
}
.sticky-cta.show { transform: translateX(-50%); }
.sticky-cta p { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sticky-cta p b { color: #ffb899; }
.sticky-cta .btn { padding: 12px 20px; font-size: 15px; }

/* ---------- 챗봇 ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 86px; z-index: 100; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 30px; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(255, 122, 69, .45); transition: transform .3s;
}
.chat-fab:hover { transform: scale(1.08) rotate(-8deg); }
.chat-fab .badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: #e53935; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.chat-bubble-hint {
  position: fixed; right: 96px; bottom: 100px; z-index: 100; background: #fff; color: var(--ink); padding: 11px 16px;
  border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: .4s; pointer-events: none; white-space: nowrap;
}
.chat-bubble-hint.show { opacity: 1; transform: none; }
.chat-panel {
  position: fixed; right: 22px; bottom: 164px; z-index: 110; width: 370px; max-width: calc(100% - 32px);
  height: min(600px, calc(100svh - 190px)); background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(20, 16, 60, .3);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: .3s cubic-bezier(.2, .7, .2, 1);
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { background: linear-gradient(135deg, #3d3580, #5b4fd6); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 24px; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { font-size: 12px; color: #d4d0f7; }
.chat-head small::before { content: "●"; color: #4ade80; margin-right: 4px; }
.chat-head .x { margin-left: auto; font-size: 24px; width: 36px; height: 36px; border-radius: 50%; }
.chat-head .x:hover { background: rgba(255, 255, 255, .15); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: #f7f6fc; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.6; animation: msgIn .35s ease; white-space: pre-line; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { background: #fff; color: var(--text); border-bottom-left-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.msg.me { background: var(--indigo); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.msg a { color: var(--indigo-2); font-weight: 700; text-decoration: underline; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9b5d6; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.chat-quick { padding: 12px 14px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; max-height: 160px; overflow-y: auto; background: #fff; }
.chat-quick button { padding: 9px 13px; border-radius: 999px; border: 1.5px solid #dcd8f5; font-size: 13.5px; font-weight: 600; color: var(--indigo); background: #fff; transition: .2s; }
.chat-quick button:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.chat-quick .kakao { background: var(--kakao); border-color: var(--kakao); color: #191919; }

/* =========================================================
   모바일 (768px 이하)
   ========================================================= */
@media (max-width: 1024px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .br-pc { display: none; }
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .25s;
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; }
  .nav .btn { margin: 8px 0 0; }
  .hero-inner { padding: 70px 20px 110px; }
  .hero-proof { gap: 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .float-icons span { font-size: 24px; }
  .pain-grid, .review-grid, .feature-grid, .pf-grid { grid-template-columns: 1fr; }
  .benefit-grid, .compare { grid-template-columns: 1fr; }
  .compare-col.good { transform: none; }
  .benefit { padding: 24px; }
  .biz-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .biz-card { min-height: 250px; padding: 20px 16px; border-radius: 20px; }
  .biz-card h3 { font-size: 19px; }
  .biz-card p { display: none; }
  .biz-card .emoji { width: 46px; height: 46px; font-size: 24px; top: 14px; left: 14px; }
  .process { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 70px 0 80px; }
  .page-hero .container { grid-template-columns: 1fr; gap: 50px; }
  .phone { width: 240px; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); margin: 0 auto; animation: none; }
  .calc-steps { padding: 24px 18px; border-radius: 22px; }
  .calc-block > p { padding-left: 0; }
  .opt-grid, .opt-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 54px 22px; border-radius: 26px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 26px; }
  .sticky-cta { left: 16px; right: 92px; transform: translateY(200%); max-width: none; padding: 8px 8px 8px 16px; justify-content: space-between; }
  .sticky-cta.show { transform: none; }
  .sticky-cta p { font-size: 13px; white-space: normal; line-height: 1.35; }
  .sticky-cta .btn { padding: 11px 14px; font-size: 14px; }
  .chat-fab { right: 16px; bottom: 80px; width: 58px; height: 58px; }
  .chat-bubble-hint { display: none; }
  .chat-panel { right: 12px; left: 12px; width: auto; max-width: none; bottom: 148px; height: calc(100svh - 170px); }
}

/* ---------- 상담 신청서 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-points { margin: 24px 0; display: grid; gap: 10px; }
.contact-points li { list-style: none; font-size: 16px; color: var(--ink); }
.contact-direct { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 500; font-size: 16px; padding: 13px 14px; width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfaff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--indigo-2); box-shadow: 0 0 0 4px rgba(91, 79, 214, .12); }
.contact-form textarea { resize: vertical; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); }
.contact-form .agree input { width: 18px; height: 18px; margin-top: 3px; padding: 0; flex-shrink: 0; accent-color: var(--indigo-2); }
.contact-form .agree a { color: var(--indigo-2); text-decoration: underline; }
.contact-form .hp { display: none; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.sticky-cta .tel-btn { background: #fff; color: var(--ink); padding: 12px 16px; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; color: var(--text); }
.legal ul { padding-left: 20px; }
@media (max-width: 768px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 22px 18px; border-radius: 22px; }
  .contact-form .row2 { grid-template-columns: 1fr; }
  .sticky-cta .tel-btn { padding: 11px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
