/* =========================================================
   홈메이드 — 홈페이지 제작 구독 서비스 랜딩
   ========================================================= */

:root {
  /* 브랜드 */
  --navy: #122a54;
  --navy-deep: #0a1730;
  --blue: #3d6fc4;
  --gold: #d8b65e;
  --gold-soft: #e9ce8e;

  /* 중립 — 푸른 기를 뺀 따뜻한 회색 계열 */
  --ink: #241f19;
  --gray: #6b6357;
  --gray-light: #9a9184;
  --line: #e8e0d2;
  --paper: #faf7f2;        /* 페이지 바탕 */
  --panel: #f4efe6;        /* 한 단 내려앉은 구역 */
  --panel-2: #ece4d6;
  --white: #ffffff;        /* 카드 — 크림 위에서 종이처럼 뜬다 */

  /* 레이아웃 */
  --max: 1160px;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgb(44 40 35 / 0.05);
  --shadow: 0 4px 16px rgb(44 40 35 / 0.07);
  --shadow-lg: 0 18px 44px -14px rgb(44 40 35 / 0.22);

  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 공통 파츠 ---------- */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.section--plain { border-top: 0; }
.section--panel { background: var(--panel); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head p {
  margin-top: 14px;
  color: var(--gray);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); }

.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-soft); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--panel); border-color: var(--blue); }

.btn--light {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border-color: rgb(255 255 255 / 0.28);
}
.btn--light:hover { background: rgb(255 255 255 / 0.18); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 상단 고지 바 ---------- */

.topbar {
  background: var(--navy-deep);
  color: rgb(255 255 255 / 0.82);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  text-align: center;
}
.topbar strong { color: var(--gold-soft); font-weight: 700; }
.topbar__sep { opacity: .35; }

/* ---------- 헤더 ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  display: block;
}
.logo__mark svg { width: 100%; height: 100%; display: block; }
.logo__text { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.logo__text span { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  transition: color .15s ease;
}
.nav a:hover { color: var(--navy); }
/* 전화번호는 모바일 메뉴에서만 노출한다 (데스크톱은 헤더 우측에 이미 있음) */
.nav .nav__tel { display: none; }

.header__cta { display: flex; align-items: center; gap: 10px; }
.header__tel {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.navtoggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 0;
  position: relative;
}
.navtoggle span {
  position: absolute;
  left: 11px;
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.navtoggle span:nth-child(1) { top: 14px; }
.navtoggle span:nth-child(2) { top: 20px; }
.navtoggle span:nth-child(3) { top: 26px; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgb(216 182 94 / 0.20), transparent 62%),
    linear-gradient(180deg, var(--panel) 0%, var(--paper) 70%);
  padding: 84px 0 76px;
  overflow: hidden;
  text-align: center;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.24;
}
.hero h1 em {
  font-style: normal;
  color: var(--navy);
  position: relative;
  white-space: nowrap;
  background: linear-gradient(to top, rgb(233 206 142 / 0.6) 14px, transparent 14px);
}

.hero__lead {
  margin: 22px auto 0;
  max-width: 620px;
  color: var(--gray);
  font-size: clamp(15px, 2vw, 18px);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--gray-light);
}

.hero__stats {
  margin-top: 56px;
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__stat { background: var(--white); padding: 24px 16px; }
.hero__stat b {
  display: block;
  font-size: clamp(22px, 3.4vw, 30px);
  color: var(--navy);
  letter-spacing: -0.03em;
}
.hero__stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

/* ---------- 강점 3가지 ---------- */

.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rule {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.rule:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.rule__num {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
}
.rule h3 { font-size: 19px; margin-bottom: 10px; }
.rule p { color: var(--gray); font-size: 15px; }

/* ---------- Why ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why h2 { font-size: clamp(25px, 3.4vw, 34px); }
.why p { margin-top: 16px; color: var(--gray); }
.why__list { margin-top: 26px; display: grid; gap: 12px; }
/* flex 로 두면 안쪽 <b> 가 별개 아이템이 되어 문장이 조각나 줄바꿈된다.
   체크 표시는 절대배치로 빼고 본문은 한 덩어리로 흐르게 한다. */
.why__list li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  font-weight: 600;
}
.why__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.why__panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
}
.why__panel h3 { font-size: 20px; color: var(--gold-soft); margin-bottom: 20px; }
.why__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgb(255 255 255 / 0.13);
  font-size: 15px;
}
.why__row:first-of-type { border-top: 0; }
.why__row span { color: rgb(255 255 255 / 0.7); }
.why__row b { font-weight: 700; white-space: nowrap; }
.why__panel small {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: rgb(255 255 255 / 0.55);
  line-height: 1.65;
}

/* ---------- 포트폴리오 ---------- */

/* 일곱 장이라 마지막 줄에 한 장만 남는다.
   격자로 두면 그 한 장이 왼쪽에 붙어 빈 칸 둘이 뚫린 것처럼 보인다 -
   flex 로 두고 남는 줄을 가운데로 모은다(2단·1단으로 접혀도 그대로 통한다). */
.works {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.works > .work { flex: 0 1 calc((100% - 44px) / 3); min-width: 0; }
.work {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.work:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue);
}
/* ---------- 포트폴리오 목업 (브라우저 액자 + 폰 화면) ----------
   사진 파일 없이 CSS 블록만으로 "이 사이트는 PC와 폰 양쪽에 맞춰진다"를 보여준다. */

.work__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}
.work__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 200px at 20% 0%, rgb(61 111 196 / 0.45), transparent 60%),
    radial-gradient(320px 180px at 90% 100%, rgb(216 182 94 / 0.25), transparent 60%);
}

.mk { position: absolute; inset: 0; }

.mk__tag, .mk__pages {
  position: absolute;
  top: 11px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.mk__tag {
  left: 11px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.22);
}
.mk__pages {
  right: 11px;
  background: var(--gold);
  color: var(--navy-deep);
  letter-spacing: 0.08em;
}

/* 데스크톱 액자 — 아래가 잘리게 두어 화면이 이어지는 느낌을 준다 */
.mk__win {
  position: absolute;
  left: 14px;
  right: 62px;
  top: 38px;
  bottom: -18px;
  background: #fff;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 10px 26px rgb(10 23 48 / 0.4);
  overflow: hidden;
}
.mk__bar {
  height: 15px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
}
.mk__bar i {
  width: 3.5px; height: 3.5px;
  border-radius: 50%;
  background: #c9cfdd;
  flex: none;
}
.mk__bar em {
  margin-left: 5px;
  flex: 1;
  max-width: 82px;
  height: 7px;
  border-radius: 4px;
  background: #dfe4ee;
  font-size: 0;
}

.mk__page { padding: 8px; }

/* 폰 화면 — 액자 위로 살짝 겹쳐 올린다 */
/* 폰은 잘리지 않고 통째로 보이게 띄운다 — 액자만 아래로 흘린다. */
.mk__phone {
  position: absolute;
  right: 13px;
  bottom: 9px;
  width: 56px;
  background: #fff;
  border: 2px solid var(--navy-deep);
  border-radius: 10px;
  box-shadow: -7px 9px 24px rgb(10 23 48 / 0.5);
  overflow: hidden;
  z-index: 2;
}
/* 하단 홈 인디케이터 */
.mk__phone::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto 5px;
  border-radius: 2px;
  background: #c9cfdd;
}
.mk__notch {
  width: 16px; height: 2.5px;
  margin: 3px auto 0;
  border-radius: 2px;
  background: var(--navy-deep);
}
.mk__page--p { padding: 5px; }

/* 목업 안쪽 부품 */
.mk__hero {
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.mk__page--p .mk__hero { height: 20px; }

.mk__l {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin-top: 5px;
}
.mk__page--p .mk__l { height: 3px; margin-top: 4px; }
.mk__l.w90 { width: 90%; } .mk__l.w85 { width: 85%; } .mk__l.w80 { width: 80%; }
.mk__l.w75 { width: 75%; } .mk__l.w70 { width: 70%; } .mk__l.w65 { width: 65%; }
.mk__l.w60 { width: 60%; } .mk__l.w55 { width: 55%; } .mk__l.w45 { width: 45%; }

.mk__row { display: flex; gap: 4px; margin-top: 7px; }
.mk__row span {
  flex: 1;
  height: 20px;
  border-radius: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.mk__row span:first-child { background: #faf4e4; border-color: var(--gold-soft); }

.mk__stack { display: grid; gap: 3px; margin-top: 5px; }
.mk__stack span {
  height: 13px;
  border-radius: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.mk__stack span:first-child { background: #faf4e4; border-color: var(--gold-soft); }

.mk__split { display: grid; grid-template-columns: 1fr 0.8fr; gap: 8px; align-items: start; }
.mk__img {
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.mk__page--p .mk__img { height: 26px; }
.mk__btn {
  margin-top: 7px;
  width: 46%;
  height: 8px;
  border-radius: 999px;
  background: var(--navy);
}
.mk__page--p .mk__btn { width: 70%; height: 7px; margin-top: 5px; }

.mk__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.mk__grid span {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.mk__grid span:nth-child(2) { background: linear-gradient(135deg, var(--blue), var(--navy)); border: 0; }
.mk__grid--p { grid-template-columns: repeat(2, 1fr); gap: 3px; }
.work__body { padding: 20px 22px 24px; }
.work__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.work__body h3 { font-size: 17px; }
.work__body p { margin-top: 8px; font-size: 14px; color: var(--gray); }

.works__note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--gray-light);
  text-align: center;
}

/* ---------- 프로세스 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray); }
.step__when {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

/* ---------- 가격 ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  /* 세 카드 높이를 맞춘다 - start 로 두면 내용 길이대로 줄어서 버튼 높이가 제각각이었다. */
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--navy);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.plan__badge {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan__name { font-size: 18px; font-weight: 800; }
.plan__name i {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  margin-left: 6px;
}
.plan__price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.plan__price b {
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.15;
}
.plan__price span { font-size: 16px; font-weight: 700; color: var(--navy); }
.plan__price .per {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray);
  margin-right: 3px;
}
/* 개설비는 월 구독료 바로 아래에서 한 줄로 읽혀야 한다. */
.plan__setup {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--gray);
}
.plan__setup b { color: var(--navy); font-weight: 700; }
.plan__desc {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--gray);
}
.plan__year {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}
.plan__year b { color: var(--navy); font-weight: 800; }

/* ---------- 1년 총액 비교 ---------- */

.compare {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
.compare h3 { font-size: 19px; }
.compare__note { margin-top: 6px; font-size: 12.5px; color: var(--gray-light); }
.compare__rows { margin-top: 20px; display: grid; gap: 10px; }
.compare__row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.compare__row--us { background: var(--navy); border-color: var(--navy); color: #fff; }
.compare__who { font-size: 14px; font-weight: 800; }
.compare__calc { font-size: 14px; color: var(--gray); }
.compare__row--us .compare__calc { color: rgb(255 255 255 / 0.72); }
.compare__calc i { font-style: normal; color: var(--gold); font-weight: 800; margin: 0 4px; }
.compare__sum {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--gray);
}
.compare__row--us .compare__sum { color: var(--gold-soft); }
.compare__foot { margin-top: 16px; font-size: 14px; color: var(--gray); }
.compare__foot b { color: var(--navy); }
.plan__label {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gray-light);
}
.plan__feats { margin-top: 10px; display: grid; gap: 9px; }
/* 위와 같은 이유로 flex 를 쓰지 않는다. */
.plan__feats li {
  position: relative;
  padding-left: 13px;
  font-size: 14.5px;
  color: var(--ink);
}
.plan__feats li::before {
  content: "·";
  position: absolute;
  left: 0; top: -1px;
  color: var(--gold);
  font-weight: 900;
  font-size: 18px;
}
/* "이런 분께" 상자와 버튼은 카드 맨 아래로 붙인다 → 세 카드의 상자·버튼 줄이 나란히 선다. */
.plan > .plan__feats:last-of-type { margin-bottom: 20px; }
.plan__for {
  margin-top: auto;
  background: var(--panel);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 13.5px;
  color: var(--gray);
}
.plan__for b { color: var(--navy); display: block; margin-bottom: 3px; font-size: 12px; }
.plan .btn { margin-top: 24px; }

.plans__common {
  margin-top: 26px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.plans__common h3 { font-size: 16px; color: var(--gold-soft); flex: none; }
.plans__common ul { display: flex; flex-wrap: wrap; gap: 8px; }
.plans__common li {
  font-size: 13.5px;
  font-weight: 600;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  padding: 6px 13px;
}
.plans__extra {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--gray);
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq { max-width: 840px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 44px 22px 0;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  letter-spacing: -0.02em;
}
.faq__q::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gray);
  border-bottom: 2px solid var(--gray);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
}
.faq__q[aria-expanded="true"] { color: var(--navy); }
.faq__q[aria-expanded="true"]::after {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--blue);
}
.faq__a {
  display: none;
  padding: 0 20px 24px 0;
  color: var(--gray);
  font-size: 15px;
}
.faq__a.is-open { display: block; }

/* ---------- 문의 ---------- */

.contact {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 96px 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact h2 { font-size: clamp(26px, 3.6vw, 36px); }
.contact__lead {
  margin-top: 16px;
  color: rgb(255 255 255 / 0.72);
  font-size: 16px;
}
.contact__info { margin-top: 32px; display: grid; gap: 16px; }
.contact__info > div { display: flex; gap: 13px; align-items: flex-start; }
.contact__info dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  width: 62px;
  flex: none;
  padding-top: 3px;
}
.contact__info dd { margin: 0; font-size: 16px; font-weight: 600; }
.contact__info dd small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: rgb(255 255 255 / 0.55);
  margin-top: 2px;
}

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
}
.form__row { margin-bottom: 18px; }
.form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
}
.form label .req { color: #d64545; margin-left: 2px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 108px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(61 111 196 / 0.15);
}
.form input::placeholder, .form textarea::placeholder { color: var(--gray-light); }

.form__agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--gray);
  margin: 4px 0 20px;
}
.form__agree input { width: auto; margin-top: 3px; flex: none; }
.form__agree a { color: var(--blue); text-decoration: underline; }

.form__foot {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-light);
}

.form__msg {
  display: none;
  margin-top: 14px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}
.form__msg.is-on { display: block; }
.form__msg--ok { background: #eef7f0; color: #1f7a45; }
.form__msg--err { background: #fdf0f0; color: #b42318; }

/* ---------- 푸터 ---------- */

.footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.62);
  padding: 46px 0 40px;
  font-size: 13.5px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.footer__brand { font-size: 16px; font-weight: 800; color: #fff; }
.footer__meta { margin-top: 10px; line-height: 1.9; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.footer__links a { font-weight: 600; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__copy { margin-top: 24px; font-size: 12.5px; color: rgb(255 255 255 / 0.42); }

/* ---------- 모바일 고정 CTA ---------- */

.mobar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgb(16 24 40 / 0.07);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobar .btn { flex: 1; padding: 13px 12px; }

/* ---------- 스크롤 등장 ---------- */

/* ⚠️ .reveal 은 기본으로 보인다. 숨기는 규칙을 절대 두지 말 것.
   화면에 들어올 때 붙는 .is-in 이 떠오르는 움직임을 한 번 재생할 뿐이다.
   (숨겨 두고 보여주는 방식은 뷰어에서 스크립트가 멈추면 내용이 갇혔다 - main.js 참고) */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reveal.is-in { animation: reveal-up .5s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.is-in { animation: none; }
}


/* =========================================================
   반응형
   ========================================================= */

@media (max-width: 1024px) {
  .why { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .works > .work { flex-basis: calc((100% - 22px) / 2); }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px var(--gutter) 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    color: var(--ink);
  }
  .nav .nav__tel {
    display: block;
    margin-top: 14px;
    border: 0;
    color: var(--navy);
    font-weight: 800;
    font-size: 18px;
  }

  .navtoggle { display: block; }
  .header__cta .btn, .header__tel { display: none; }

  .section { padding: 68px 0; }
  .hero { padding: 60px 0; }
  /* 3칸을 유지하되 좁은 화면에서는 여백과 글자를 줄인다. */
  .hero__stats { margin-top: 42px; }
  .hero__stat { padding: 20px 6px; }
  .hero__stat span { font-size: 11.5px; }

  .rules, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .works > .work { flex-basis: 100%; }

  /* 비교 행은 좁아지면 3단을 세로로 쌓는다. */
  .compare { padding: 24px 20px; }
  .compare__row { grid-template-columns: 1fr; gap: 6px; }
  .compare__sum { font-size: 24px; }

  .plan--featured { order: -1; }
  .plans__common { flex-direction: column; align-items: flex-start; }

  .contact { padding: 68px 0; }
  .form { padding: 26px 22px; }

  .mobar { display: flex; }
  body { padding-bottom: 74px; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .topbar__inner { height: auto; padding: 8px 0; font-size: 12px; }
  .hero h1 { font-size: 30px; }
  .hero__actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .form__row--split { grid-template-columns: 1fr; }
  .rule, .plan { padding: 26px 22px; }
  .why__panel { padding: 28px 22px; }
  .plans__common { padding: 24px 20px; }
}

/* =========================================================
   상담 챗봇 (규칙형)
   모바일에는 하단 고정 CTA 바가 있어 그 위로 띄운다.
   ========================================================= */

.hmc { position: fixed; z-index: 70; }

.hmc__launch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 20px 9px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgb(18 42 84 / 0.34);
  transition: background .18s ease, transform .18s ease;
}
.hmc__launch:hover { background: var(--navy-deep); transform: translateY(-2px); }
.hmc__launch-txt b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hmc__launch-txt i {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: rgb(255 255 255 / 0.62);
  margin-top: 1px;
}
.hmc.is-open .hmc__launch { display: none; }



/* 상담사 아바타 + 접속 표시 */
.hmc__ava {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
  display: block;
}
.hmc__ava--lg { width: 42px; height: 42px; }
.hmc__ava svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.hmc__dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--navy);
}
.hmc__ava--lg .hmc__dot { width: 13px; height: 13px; }
.hmc__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgb(34 197 94 / 0.5);
  animation: hmcPulse 2s infinite ease-out;
}
@keyframes hmcPulse {
  0% { transform: scale(.7); opacity: .9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

.hmc__panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 372px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgb(10 23 48 / 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* .hmc__panel 의 display:flex 가 브라우저 기본 [hidden]{display:none} 을 이겨서
   닫아도 계속 보이던 문제. 명시적으로 다시 눌러준다. */
.hmc__panel[hidden] { display: none; }

.hmc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--navy);
  color: #fff;
  flex: none;
}
.hmc__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hmc__id b { display: block; font-size: 15px; letter-spacing: -0.02em; }
.hmc__id b span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 5px;
  vertical-align: 2px;
}
.hmc__id i {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: rgb(255 255 255 / 0.6);
}
.hmc__close {
  border: 0;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  flex: none;
}
.hmc__close:hover { background: rgb(255 255 255 / 0.22); }

.hmc__log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 9px;
  overscroll-behavior: contain;
}

.hmc__msg { display: flex; }
.hmc__msg--bot { justify-content: flex-start; }
.hmc__msg--me { justify-content: flex-end; }
.hmc__bub {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.hmc__bub b { color: var(--navy); font-weight: 700; }
.hmc__msg--me .hmc__bub {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}

.hmc__cta {
  display: inline-block;
  margin: 9px 6px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
}
.hmc__cta--ghost { background: var(--panel-2); color: var(--navy); }

.hmc__typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.hmc__typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-light);
  animation: hmcDot 1s infinite ease-in-out;
}
.hmc__typing i:nth-child(2) { animation-delay: .15s; }
.hmc__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hmcDot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.hmc__quick {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  max-height: 132px;
  overflow-y: auto;
}
.hmc__chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .15s ease, border-color .15s ease;
  text-align: left;
}
.hmc__chip:hover { background: var(--panel-2); border-color: var(--blue); }

.hmc__form {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 12px 14px 6px;
  background: var(--white);
}
.hmc__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.hmc__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(61 111 196 / 0.15); }
.hmc__send {
  flex: none;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.hmc__send svg { width: 19px; height: 19px; }
.hmc__send:hover { background: var(--navy-deep); }

.hmc__foot {
  flex: none;
  padding: 0 14px 12px;
  background: var(--white);
  font-size: 11.5px;
  color: var(--gray-light);
  text-align: center;
}
.hmc__foot a { color: var(--blue); font-weight: 700; }

@media (max-width: 860px) {
  /* 하단 고정 CTA 바(약 74px) 위로 올린다. */
  .hmc__launch { right: 14px; bottom: 84px; padding: 12px 16px 12px 14px; font-size: 13.5px; }
  .hmc__panel {
    right: 10px; left: 10px;
    bottom: 82px;
    width: auto;
    max-width: none;
    height: min(74vh, 540px);
  }
}

@media (max-width: 400px) {
  /* 간판 문구는 좁아도 남긴다 — 이게 없으면 무슨 버튼인지 모른다. */
  .hmc__launch { padding: 7px 16px 7px 7px; gap: 9px; }
  .hmc__launch-txt b { font-size: 13px; }
  .hmc__launch-txt i { display: none; }
  .hmc__ava--lg { width: 38px; height: 38px; }
  .hmc__id b span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hmc__typing i { animation: none; }
  .hmc__dot::after { animation: none; }
  .hmc__launch:hover { transform: none; }
}

/* 가린 상호 — 실제 이름은 소스에도 넣지 않고 ○ 로 대체한다.
   블러는 "가렸다"는 표시일 뿐, 진짜 가림은 글자를 안 넣는 것이다. */
.mk__tag--masked b {
  font-weight: 800;
  filter: blur(3px);
  letter-spacing: 0.06em;
}
.work__tag--real {
  color: var(--navy);
  background: #faf4e4;
  border: 1px solid var(--gold-soft);
}

/* -------------------------------------------------
   업종별 썸네일 — 색을 갈라 놓는다.
   넷이 전부 남색이면 "업종마다 다르게 만든다"는 말이
   화면에서 바로 반박당한다.
   ------------------------------------------------- */
.mk--edu .mk__hero, .mk--edu .mk__img { background: linear-gradient(135deg, #4f7fd4, #24407e); }
.mk--edu .mk__btn { background: #24407e; }

.mk--interior .mk__hero, .mk--interior .mk__img { background: linear-gradient(135deg, #b08b62, #6d4f33); }
.mk--interior .mk__btn { background: #6d4f33; }

.mk--food .mk__hero, .mk--food .mk__img { background: linear-gradient(135deg, #d9743f, #9c3f22); }
.mk--food .mk__btn { background: #9c3f22; }
.mk--food .mk__stack span:first-child { background: #fdeee3; border-color: #f0c3a4; }

.mk--corp .mk__hero, .mk--corp .mk__img { background: linear-gradient(135deg, #5a6b7f, #26333f); }
.mk--corp .mk__btn { background: #26333f; }
.mk--corp .mk__row span:first-child { background: #eef1f4; border-color: #cfd7de; }

/* 시공 사진을 벽처럼 붙여 거는 격자 - 사례가 많다는 게 한눈에 보여야 한다. */
.mk__gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 6px; }
.mk__gal span {
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.mk__gal span:nth-child(1),
.mk__gal span:nth-child(6) { background: linear-gradient(135deg, #b08b62, #6d4f33); border: 0; }
.mk__gal span:nth-child(3) { background: #e8dcc9; border-color: #d6c4a8; }

/* -------------------------------------------------
   실제 화면 캡처가 들어간 액자 (.mk--shot).
   그림으로 그린 화면(.mk__page)은 촬영 원본이 없는 카드에만 남는다.
   ------------------------------------------------- */
.mk__shot { display: block; width: 100%; }
.mk__win .mk__shot {
  height: calc(100% - 15px);      /* 위 15px 은 브라우저 주소창 띠 */
  object-fit: cover;
  object-position: top center;
}
/* 진짜 화면은 56px 이면 뭉개져서 휴대폰인지도 안 보인다 - 조금 키운다. */
.mk--shot .mk__phone { width: 66px; }
.mk__phone .mk__shot {
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px 8px 0 0;
}
