/* ============================================================
   웹-인클릭스 (Web-InClicks) 디자인 시스템 v2
   - 컬러: 트러스트 블루 #2563EB + 코랄 포인트 + 웜 크림 (확정 팔레트)
   - 섹션 = 한 화면 (100svh - 헤더, 모바일은 스티키 바 추가 감산)
   - 최종 CTA = 기준의 75%
   - 기준 판형 390px, 그 미만은 판형째 비례 축소
   - 엠대시 금지, 하이픈만 사용
   ============================================================ */

/* ---------- 토큰 ---------- */
:root {
  /* 컬러 */
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-ink: #173A8A;
  --navy: #1E3A5F;
  --navy-deep: #16293F;
  --tint: #EFF6FF;
  --tint-2: #E3EEFF;
  --cream: #FFF8F5;
  --coral: #FF6B4A;        /* 장식 전용 - 텍스트·버튼 배경 금지 */
  --coral-btn: #D6491F;    /* 버튼 배경 (흰 글자 대비 확보) */
  --coral-btn-h: #C93A10;
  --coral-text: #C2410C;
  --green: #047857;
  --green-big: #059669;
  --green-tint: #ECFDF5;
  --green-ink: #065F46;
  --ink: #17222F;
  --muted: #465362;
  --faint: #7E8B9A;
  --line: #E4E9F0;
  --white: #FFFFFF;

  /* 타이포 (모바일 390 기준 -> PC, clamp 유동) */
  --fs-hero: clamp(2.05rem, 1.02rem + 4.4vw, 3.9rem);   /* 33 -> 62 */
  --fs-h2:   clamp(1.7rem, .96rem + 3.2vw, 3.05rem);    /* 27 -> 49 */
  --fs-h3:   clamp(1.36rem, 1.13rem + 1vw, 1.78rem);    /* 22 -> 28.5 */
  --fs-lead: clamp(1.18rem, 1.04rem + .6vw, 1.44rem);   /* 19 -> 23 */
  --fs-body: clamp(1.06rem, .99rem + .3vw, 1.19rem);    /* 17 -> 19 */
  --fs-sm:   clamp(.97rem, .92rem + .2vw, 1.06rem);     /* 15.5 -> 17 */
  --fs-xs:   .875rem;                                   /* 14 */

  /* 레이아웃 */
  --header-h: 64px;
  --sticky-h: 64px;        /* 모바일 하단 스티키 바 */
  --container: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 34px rgba(30, 58, 95, .08);
  --shadow-lift: 0 18px 44px rgba(30, 58, 95, .13);

  /* 섹션 최소 높이 (한 화면 리듬) */
  --screen: calc(100svh - var(--header-h));
}

/* 390px 미만: 판형째 비례 축소 (rem 개별 조정 금지) */
html { font-size: 16px; }
@media (max-width: 389.98px) {
  html { font-size: calc(100vw / 24.375); }
}

/* ---------- 리셋·베이스 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.66;
  letter-spacing: -.015em;
  word-break: keep-all;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.26; letter-spacing: -.03em; font-weight: 800; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* 줄바꿈 유틸: 카피의 꺾임 위치는 직접 지정한다 */
.br-m { display: none; }
.br-d { display: inline; }
.hide-m { display: inline; }
@media (max-width: 1023.98px) {
  .br-m { display: inline; }
  .br-d { display: none; }
  .hide-m { display: none; }
  .m-hide { display: none !important; }  /* 블록 요소 모바일 숨김 */
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  height: 100%;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .62rem; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-size: 1.19rem; font-weight: 800; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--blue); }

.gnb { margin-left: auto; display: flex; align-items: center; gap: 1.7rem; }
.gnb a { font-size: 1.02rem; font-weight: 600; color: var(--muted); transition: color .18s; }
.gnb a:hover, .gnb a[aria-current="page"] { color: var(--blue-deep); }

.header-cta { margin-left: 1.4rem; flex: none; }
.header-cta .btn { min-height: 44px; padding: 0 1.3rem; font-size: 1rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: transform .22s, opacity .22s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  /* 모바일: backdrop-filter는 주소창 등장/퇴장 시 리페인트 비용이 커 스크롤 버벅임의 원인 - 불투명 배경으로 대체 */
  .site-header { background: rgba(255, 255, 255, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gnb {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.4rem 1.1rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .22s, opacity .22s, visibility .22s;
  }
  .gnb.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .gnb a { padding: .78rem .2rem; font-size: 1.12rem; border-bottom: 1px solid #F0F3F7; }
  .gnb a:last-child { border-bottom: 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.75rem;
  border: 0; border-radius: var(--radius-sm);
  font-size: var(--fs-body); font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn-primary {
  background: var(--coral-btn); color: #fff;
  box-shadow: 0 10px 26px rgba(214, 73, 31, .3);
}
.btn-primary:hover { background: var(--coral-btn-h); transform: translateY(-2px); }
.btn-blue {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
}
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-outline {
  background: #fff; color: var(--blue-deep);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.btn-outline:hover { background: var(--tint); transform: translateY(-2px); }
.btn-ghost-dark {
  background: rgba(255, 255, 255, .12); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--tint); transform: translateY(-2px); }

/* ---------- 섹션 공통 (한 화면 리듬) ---------- */
/* svh = 주소창 등장/퇴장과 무관한 최소 뷰포트 (vh 줄은 구형 브라우저 폴백) */
main > section {
  min-height: calc(100vh - var(--header-h));
  min-height: var(--screen);
  display: flex; align-items: center;
  padding-block: clamp(3.4rem, 7vh, 5.5rem);
  scroll-margin-top: var(--header-h);
}
main > section > .container { width: 100%; }
main > section.final-cta {
  min-height: calc((100vh - var(--header-h)) * .75);
  min-height: calc(var(--screen) * .75);
}
@media (max-width: 1023.98px) {
  main > section {
    min-height: calc(100vh - var(--header-h) - var(--sticky-h));
    min-height: calc(100svh - var(--header-h) - var(--sticky-h));
  }
  main > section.final-cta {
    min-height: calc((100vh - var(--header-h) - var(--sticky-h)) * .75);
    min-height: calc((100svh - var(--header-h) - var(--sticky-h)) * .75);
  }
}

/* 배경 리듬 */
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-tint { background: linear-gradient(180deg, var(--tint) 0%, #F6FAFF 100%); }
.bg-navy {
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(37, 99, 235, .35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}

/* 섹션 헤드 */
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .17em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.05rem;
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--coral);
}
.bg-navy .kicker { color: #9EC5FF; }
.sec-head { margin-bottom: clamp(2rem, 4.5vh, 3.2rem); }
.sec-head h1, .sec-head h2 { font-size: var(--fs-h2); color: var(--ink); line-height: 1.26; }
.bg-navy .sec-head h2 { color: #fff; }
.sec-head .lead { margin-top: 1rem; font-size: var(--fs-lead); color: var(--muted); }
.bg-navy .sec-head .lead { color: #C4D4E8; }
.sec-head.center { text-align: center; }
.sec-head.center .kicker { justify-content: center; }

/* ---------- 히어로 (홈) ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% 6%, rgba(37, 99, 235, .1), transparent 62%),
    radial-gradient(560px 400px at 92% 20%, rgba(255, 107, 74, .1), transparent 60%),
    linear-gradient(180deg, #FDFEFF 0%, var(--cream) 100%);
}
.hero .container { position: relative; text-align: center; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  font-size: .95rem; font-weight: 700; color: var(--muted);
  margin-bottom: 1.6rem;
}
.hero-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-big);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, .4); }
  55% { box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
}
.hero h1 { font-size: var(--fs-hero); color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--blue-deep); }
.hero-sub {
  margin-top: 1.45rem;
  font-size: var(--fs-lead); color: var(--muted);
}
.hero-micro { margin-top: 1.05rem; font-size: var(--fs-sm); color: var(--faint); font-weight: 600; }
.hero-ctas {
  margin-top: 2.1rem;
  display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap;
}
.hero-ctas .btn { min-width: 200px; }
.trust-strip {
  margin-top: clamp(2.3rem, 5.5vh, 3.6rem);
  display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap;
}
.trust-strip li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .62rem 1.15rem; border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-sm); font-weight: 700; color: var(--muted);
}
.trust-strip .tick { color: var(--green); font-weight: 800; }
@media (max-width: 1023.98px) {
  .hero-ctas .btn { min-width: 0; flex: 1 1 0; max-width: 230px; padding-inline: 1rem; }
}

/* ---------- 걱정 공감 (링크 리스트) ---------- */
.worry-list { max-width: 880px; margin-inline: auto; }
.worry-list li { border-bottom: 1px solid var(--line); }
.worry-list li:first-child { border-top: 1px solid var(--line); }
.worry-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem .35rem;
  transition: background .16s;
}
.worry-list a:hover { background: rgba(37, 99, 235, .04); }
.worry-q { font-size: var(--fs-h3); font-weight: 800; color: var(--ink); }
.worry-go {
  margin-left: auto; flex: none;
  font-size: var(--fs-sm); font-weight: 700; color: var(--blue);
}
.worry-close {
  max-width: 880px; margin: 2.2rem auto 0;
  font-size: var(--fs-lead); font-weight: 700; color: var(--ink); text-align: center;
}
.worry-close strong { color: var(--blue-deep); }
@media (max-width: 1023.98px) {
  .worry-go { display: none; }
  .worry-list a { padding: 1.06rem .1rem; }
}

/* ---------- 가격 카드 ---------- */
.price-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 1024px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}
.price-card {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.7rem 1.6rem 1.6rem;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) {
  .price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
}
.price-card.best { border: 2px solid var(--blue); }
.badge-best {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: .34rem 1rem; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em;
}
.price-name { font-size: var(--fs-h3); font-weight: 800; }
.price-desc { margin-top: .3rem; font-size: var(--fs-sm); color: var(--muted); }
.price-amount { margin-top: 1.05rem; display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.price-amount .was { font-size: var(--fs-sm); color: var(--faint); text-decoration: line-through; }
.price-amount .now { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.price-amount .unit { font-size: var(--fs-body); font-weight: 700; color: var(--muted); }
.price-tag {
  display: inline-flex; align-self: flex-start;
  margin-top: .45rem; padding: .22rem .7rem; border-radius: 999px;
  background: #FFF0EA; color: var(--coral-text);
  font-size: .82rem; font-weight: 800;
}
.price-feats { margin-top: 1.15rem; display: grid; gap: .5rem; }
.price-feats li { display: flex; gap: .55rem; font-size: var(--fs-sm); color: var(--muted); }
.price-feats .tick { color: var(--green); font-weight: 800; flex: none; }
.price-year2 {
  margin-top: auto; padding-top: 1.1rem;
  font-size: var(--fs-sm); color: var(--faint); font-weight: 600;
}
.price-note {
  margin-top: 1.7rem; text-align: center;
  font-size: var(--fs-sm); color: var(--faint); font-weight: 600;
}
.price-note a { color: var(--blue-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5단계 타임라인 ---------- */
.flow { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(5, 1fr); }
}
.flow li { position: relative; padding: 0 .8rem 0 0; counter-increment: step; }
.flow .dot-wrap { position: relative; height: 24px; display: flex; align-items: center; }
.flow .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 6px solid var(--blue);
  position: relative; z-index: 2;
}
.flow .dot-wrap::before,
.flow .dot-wrap::after {
  content: ""; position: absolute; top: 50%; height: 2.5px;
  background: #C7D9F4; transform: translateY(-50%);
}
.flow .dot-wrap::before { left: 0; right: calc(100% - 11px); }
.flow .dot-wrap::after { left: 11px; right: 0; }
.flow li:first-child .dot-wrap::before { display: none; }
.flow li:last-child .dot-wrap::after { display: none; }
.flow h3 { margin-top: .95rem; font-size: var(--fs-h3); }
.flow h3::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: .8rem; font-weight: 800;
  letter-spacing: .14em; color: var(--coral-text); margin-bottom: .25rem;
}
.flow p { margin-top: .4rem; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 1023.98px) {
  .flow { grid-template-columns: 1fr; }
  .flow li {
    display: grid; grid-template-columns: 24px 1fr; column-gap: 1rem;
    padding: 0 0 1.5rem;
  }
  .flow li:last-child { padding-bottom: 0; }
  .flow .dot-wrap { height: auto; align-items: flex-start; padding-top: .35rem; }
  .flow .dot-wrap::before, .flow .dot-wrap::after {
    left: 50%; right: auto; width: 3px; height: auto; transform: translateX(calc(-50% - 1px));
  }
  .flow .dot-wrap::before { display: none; }
  .flow .dot-wrap::after {
    /* 실선이 점 중심에서 다음 점 중심까지 이어진다 (흰 원 z-index 2가 위에 올라탐)
       bottom = li padding-bottom(1.05rem) + 다음 점 중심 오프셋(17px) - li 여백 바꾸면 함께 수정 */
    top: 16px; bottom: calc(-1.05rem - 17px);
    background: #7FA6DE;
  }
  .flow li:last-child .dot-wrap::after { display: none; }
  .flow h3 { margin-top: 0; display: flex; align-items: baseline; gap: .5rem; }
  .flow h3::before { display: inline; margin: 0; }
}

/* ---------- 선언형 섹션 ---------- */
.declare { text-align: center; max-width: 900px; margin-inline: auto; }
.dec-main {
  font-size: clamp(1.62rem, 1rem + 2.6vw, 2.7rem);
  font-weight: 800; line-height: 1.34; letter-spacing: -.03em;
  color: var(--ink);
}
.dec-main em { font-style: normal; color: var(--blue-deep); }
.dec-sub { margin-top: 1.35rem; font-size: var(--fs-lead); color: var(--muted); }
.dec-note { margin-top: 1.1rem; font-size: var(--fs-body); font-weight: 800; color: var(--ink); }
#design .dec-note { font-size: var(--fs-lead); }

/* ---------- 제작 사례 카드 ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}
.work-card {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) {
  .work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
}
.work-thumb {
  aspect-ratio: 16 / 9.6;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.work-thumb svg { width: 100%; height: 100%; }
.work-body { padding: 1.3rem 1.4rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.work-tag {
  align-self: flex-start;
  padding: .26rem .75rem; border-radius: 999px;
  background: var(--tint); color: var(--blue-deep);
  font-size: .82rem; font-weight: 800;
}
.work-body h3 { margin-top: .7rem; font-size: var(--fs-h3); }
.work-body p { margin-top: .35rem; font-size: var(--fs-sm); color: var(--muted); }
.work-link {
  margin-top: auto; padding-top: 1rem;
  font-size: var(--fs-sm); font-weight: 800; color: var(--blue-deep);
}
.work-link span { transition: transform .18s; display: inline-block; }
.work-card:hover .work-link span { transform: translateX(4px); }

/* ---------- 약속 스택 ---------- */
.promise-stack { max-width: 860px; margin-inline: auto; display: grid; gap: 0; }
.promise-stack li {
  display: flex; align-items: baseline; gap: 1.05rem;
  padding: 1.12rem .3rem;
  border-bottom: 1px solid var(--line);
}
.promise-stack li:first-child { border-top: 1px solid var(--line); }
.promise-stack .num {
  flex: none; font-size: 1rem; font-weight: 800; color: var(--coral-text);
  letter-spacing: .05em;
}
.promise-stack h3 { font-size: var(--fs-h3); }
.promise-stack p { margin-left: auto; text-align: right; font-size: var(--fs-sm); color: var(--faint); font-weight: 600; }
@media (max-width: 1023.98px) {
  .promise-stack p { display: none; }
  .promise-stack li { padding: .95rem .1rem; }
}
/* Before You Choose: 3항목 들여쓰기(전 뷰포트) + 마무리 문구 강조 */
#check .promise-stack li { padding-left: 22%; }
#check .price-note { font-size: var(--fs-lead); color: var(--ink); font-weight: 700; }

.sec-more { margin-top: 2.1rem; text-align: center; }
.sec-more a {
  font-size: var(--fs-body); font-weight: 800; color: var(--blue-deep);
}
.sec-more a span { display: inline-block; transition: transform .18s; }
.sec-more a:hover span { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.18rem .3rem;
  cursor: pointer; list-style: none;
  font-size: var(--fs-h3); font-weight: 800; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-size: 1.5rem; font-weight: 600; color: var(--blue);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 .3rem 1.3rem; font-size: var(--fs-body); color: var(--muted); }
.faq-a strong { color: var(--ink); }

/* ---------- 최종 CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--fs-h2); color: #fff; }
.fc-lead { margin-top: 1rem; font-size: var(--fs-lead); color: #C4D4E8; }
.fc-ctas { margin-top: 2rem; display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; }
.fc-ctas .btn { min-width: 210px; }
.fc-micro { margin-top: 1.4rem; font-size: var(--fs-sm); color: #93A8C2; font-weight: 600; }
@media (max-width: 1023.98px) {
  .fc-ctas .btn { min-width: 0; flex: 1 1 0; max-width: 230px; padding-inline: 1rem; }
}

/* ---------- 페이지 히어로 (서브페이지, 자연 높이) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.2rem, 8vh, 5.2rem);
  background:
    radial-gradient(560px 320px at 90% 0%, rgba(255, 107, 74, .09), transparent 60%),
    radial-gradient(620px 380px at 8% 10%, rgba(37, 99, 235, .09), transparent 62%),
    linear-gradient(180deg, #FDFEFF 0%, var(--cream) 100%);
}
.page-hero .crumb {
  font-size: var(--fs-sm); font-weight: 700; color: var(--faint);
  margin-bottom: .9rem;
}
.page-hero .crumb a:hover { color: var(--blue-deep); }
.page-hero h1 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.3rem); }
.page-hero .lead { margin-top: 1.05rem; font-size: var(--fs-lead); color: var(--muted); }
.page-hero .micro { margin-top: .85rem; font-size: var(--fs-sm); color: var(--faint); font-weight: 600; }

/* ---------- 표 (PC) / 요약 매트릭스 (모바일) ---------- */
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td {
  padding: 1.02rem 1.1rem; text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm); vertical-align: middle;
}
.cmp-table thead th {
  background: var(--navy); color: #fff;
  font-size: var(--fs-sm); font-weight: 800;
  border-bottom: 0;
}
.cmp-table thead th small { display: block; font-weight: 600; color: #B9CBE2; font-size: .82rem; }
.cmp-table tbody th {
  background: #F8FAFD; font-weight: 800; color: var(--ink);
  width: 168px;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .em { font-weight: 800; color: var(--ink); }
.cmp-table .was { color: var(--faint); text-decoration: line-through; font-size: .86em; margin-right: .35rem; }
@media (max-width: 1023.98px) {
  .pc-only { display: none !important; }
}
@media (min-width: 1024px) {
  .m-only { display: none !important; }
}

/* 모바일 한눈 비교 매트릭스: 좌측 항목 열 + 상품 3열 */
.cmp-m { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.cmp-m .row { display: grid; grid-template-columns: 88px repeat(3, 1fr); }
.cmp-m .row + .row { border-top: 1px solid var(--line); }
.cmp-m .cell {
  padding: .68rem .25rem;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: .97rem; line-height: 1.38; color: var(--muted);
}
.cmp-m .cell + .cell { border-left: 1px solid var(--line); }
.cmp-m .cell.lab {
  justify-content: flex-start; text-align: left;
  padding-left: .75rem;
  background: #F5F8FC;
  font-size: .9rem; font-weight: 800; color: var(--ink);
}
.cmp-m .head .cell { background: var(--navy); color: #fff; font-weight: 800; font-size: .97rem; }
.cmp-m .head .cell.lab { background: var(--navy); }
.cmp-m .cell b { color: var(--ink); font-weight: 800; }

/* ---------- 좌우 대조 (vs2) ---------- */
.vs2 { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 1024px) { .vs2 { grid-template-columns: 1fr 1fr; gap: 1.35rem; } }
.vs-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.55rem;
}
.vs-card.good { background: linear-gradient(180deg, #FDFFFE, var(--green-tint)); border-color: #CDEBDD; }
.vs-card.add { background: linear-gradient(180deg, #FDFEFF, var(--tint)); border-color: #CFE0F8; }
.vs-card h3 { font-size: var(--fs-h3); display: flex; align-items: center; gap: .55rem; }
.vs-card.good h3 { color: var(--green-ink); }
.vs-card.add h3 { color: var(--blue-ink); }
.vs-card ul { margin-top: 1rem; display: grid; gap: .58rem; }
/* li는 block + 기호 절대배치 - flex로 두면 안의 <b>가 별도 칼럼으로 갈라진다 (함정) */
.vs-card li {
  display: block; position: relative;
  padding-left: 1.45rem;
  font-size: var(--fs-sm); color: var(--muted);
}
.vs-card li .sign { position: absolute; left: 0; top: 0; font-weight: 800; }
.vs-card.good li .sign { color: var(--green); }
.vs-card.add li .sign { color: var(--blue); }
.vs-card li b { color: var(--ink); }

/* ---------- 케이스 스터디 ---------- */
.case { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.case + .case { margin-top: 1.5rem; }
.case-head { padding: 1.45rem 1.6rem 1.15rem; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.case-head h3 { font-size: var(--fs-h3); }
.case-flow { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .case-flow { grid-template-columns: repeat(3, 1fr); } }
.case-flow > div { padding: 1.25rem 1.6rem 1.45rem; }
@media (min-width: 1024px) {
  .case-flow > div + div { border-left: 1px solid var(--line); }
}
@media (max-width: 1023.98px) {
  .case-flow > div + div { border-top: 1px solid var(--line); }
}
.cf-label { font-size: .8rem; font-weight: 800; letter-spacing: .13em; }
.cf-label.p1 { color: var(--coral-text); }
.cf-label.p2 { color: var(--blue-deep); }
.cf-label.p3 { color: var(--green); }
.case-flow p { margin-top: .45rem; font-size: var(--fs-sm); color: var(--muted); }
.case-foot { border-top: 1px solid var(--line); padding: 1.05rem 1.6rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.case-foot .work-tag { align-self: center; }
.case-foot .go {
  margin-left: auto; font-size: var(--fs-sm); font-weight: 800; color: var(--blue-deep);
}

/* ---------- 스텝 칩 ---------- */
.chip-steps { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.chip-steps li {
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .8rem 1.35rem; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: var(--fs-sm); color: var(--muted); font-weight: 600;
  text-align: center;
}
.chip-steps b { font-size: var(--fs-h3); color: var(--ink); font-weight: 800; }
/* 납기·환불 칩 3장: 좌우 크기 통일 */
#timeline .chip-steps, #policy .chip-steps { display: grid; grid-template-columns: repeat(3, 200px); justify-content: center; }
#timeline .chip-steps li, #policy .chip-steps li { width: auto; padding-inline: .5rem; }
@media (max-width: 1023.98px) {
  #timeline .chip-steps, #policy .chip-steps { grid-template-columns: repeat(3, 1fr); max-width: 560px; margin-inline: auto; }
}

/* 나열형 섹션 모바일 들여쓰기·정렬 (모바일 한정 - PC는 기본 배치 유지) */
@media (max-width: 1023.98px) {
  .flow { padding-left: 22%; }
  .promise-stack li { padding-left: 22%; }
  .promise-stack p { display: none; }
  #tier .vs-card ul { margin-left: 20%; }
  /* Price List(#extra): 모바일에서만 항목 가운데 정렬 */
  #extra .nv-row { flex-direction: column; align-items: center; text-align: center; gap: .18rem; }
  #extra .nv-row .v { margin-left: 0; text-align: center; }
}

/* ---------- 폼 ---------- */
.form-card {
  max-width: 640px; margin-inline: auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: left;
}
.form-row { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.form-row label { font-size: var(--fs-sm); font-weight: 800; color: var(--ink); }
.form-row label .req { color: var(--coral-text); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 52px;
  padding: .7rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #FBFCFE; font-size: var(--fs-body);
  transition: border-color .16s, box-shadow .16s;
}
.form-row textarea { min-height: 108px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.form-agree { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.25rem; font-size: var(--fs-sm); color: var(--muted); }
.form-agree input { width: 20px; height: 20px; min-height: 0; margin-top: .18rem; accent-color: var(--blue); flex: none; }
.form-agree a { color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-submit { width: 100%; }
.form-alt { margin-top: 1rem; display: flex; gap: .7rem; }
.form-alt .btn { flex: 1; }
.form-note { margin-top: 1.1rem; text-align: center; font-size: var(--fs-xs); color: var(--faint); }
.form-msg { margin-top: 1rem; font-size: var(--fs-sm); font-weight: 700; text-align: center; display: none; }
.form-msg.ok { display: block; color: var(--green); }
.form-msg.err { display: block; color: var(--coral-text); }

/* ---------- 5단계 하실 일/저희가 (모바일 카드) ---------- */
.proc-m { display: grid; gap: .8rem; }
.pm-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow);
}
.pm-card h3 { font-size: var(--fs-body); display: flex; align-items: baseline; gap: .5rem; }
.pm-card h3 .n { font-size: .8rem; font-weight: 800; color: var(--coral-text); letter-spacing: .08em; }
.pm-line { display: flex; gap: .6rem; margin-top: .55rem; font-size: var(--fs-sm); color: var(--muted); align-items: baseline; }
.pm-chip {
  flex: none; font-size: .74rem; font-weight: 800;
  padding: .15rem .55rem; border-radius: 999px;
}
.pm-chip.you { background: #FFF0EA; color: var(--coral-text); }
.pm-chip.we { background: var(--tint); color: var(--blue-deep); }

/* ---------- 이름-값 리스트 (단가표·조항 요지) ---------- */
.nv { max-width: 860px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.nv-row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.02rem 1.45rem;
}
.nv-row + .nv-row { border-top: 1px solid var(--line); }
.nv-row .k { font-weight: 800; color: var(--ink); font-size: var(--fs-body); }
.nv-row .v { margin-left: auto; text-align: right; font-size: var(--fs-sm); color: var(--muted); }
.nv-row .v b { color: var(--blue-deep); font-weight: 800; }
@media (max-width: 639.98px) {
  .nv-row { flex-direction: column; gap: .15rem; }
  .nv-row .v { margin-left: 0; text-align: left; }
}

/* ---------- 법률 문서 ---------- */
.doc { max-width: 820px; margin-inline: auto; }
.doc + .doc { margin-top: clamp(2.6rem, 6vh, 4rem); }
.doc h2 { font-size: var(--fs-h3); padding-bottom: .7rem; border-bottom: 2px solid var(--ink); }
.doc h3 { font-size: var(--fs-body); margin-top: 1.6rem; color: var(--blue-ink); }
.doc p, .doc li { font-size: var(--fs-sm); color: var(--muted); margin-top: .55rem; }
.doc ul { padding-left: 1.1rem; }
.doc ul li { list-style: disc; }
.doc .doc-date { margin-top: 1.4rem; font-size: var(--fs-xs); color: var(--faint); }

/* ---------- 완료 페이지 ---------- */
.thanks-wrap { text-align: center; max-width: 640px; margin-inline: auto; }
.thanks-icon {
  width: 84px; height: 84px; margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: var(--green-tint); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800;
  box-shadow: 0 12px 30px rgba(5, 150, 105, .18);
}
.thanks-wrap h1 { font-size: var(--fs-h2); }
.thanks-wrap .lead { margin-top: 1rem; font-size: var(--fs-lead); color: var(--muted); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy-deep); color: #B9C8DC;
  padding: 2.8rem 0 2.2rem;
  font-size: var(--fs-sm);
}
.footer-top {
  display: flex; align-items: flex-start; gap: 1.2rem; flex-wrap: wrap;
  padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { margin-left: auto; display: flex; gap: 1.4rem; }
.footer-links a { font-weight: 700; color: #D7E2F0; }
.footer-links a:hover { color: #fff; }
.footer-biz { margin-top: 1.5rem; font-size: 1rem; line-height: 1.8; color: #96A8BF; }
.footer-copy { margin-top: 1.1rem; font-size: .95rem; color: #718499; }
@media (max-width: 1023.98px) {
  .site-footer { font-size: .95rem; }
  .footer-links { margin-left: 0; }
  .footer-biz { font-size: .8rem; }   /* 한계선 11.2px 이상 유지 */
  .footer-copy { font-size: .78rem; }
}

/* ---------- 모바일 스티키 바 ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: none;
  height: var(--sticky-h);
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--line);
  padding: .5rem .8rem calc(.5rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.sticky-bar .btn { flex: 1 1 0; min-height: 46px; font-size: 1.02rem; padding-inline: .8rem; }
@media (max-width: 1023.98px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: var(--sticky-h); }
}

/* ---------- 모바일 가로 스와이프 (카드 3장 세로 적층 방지) ---------- */
@media (max-width: 1023.98px) {
  .swipe-row {
    display: flex; overflow-x: auto;
    /* proximity + overscroll 차단: 세로 스크롤과의 제스처 충돌(버벅임) 방지 */
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: .9rem;
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    padding-block: 1.1rem 1.15rem;
    scrollbar-width: none;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { flex: 0 0 82%; scroll-snap-align: center; }
  /* 금액 줄: 7자리 금액(1,210,000)도 "원"까지 한 줄에 - 폰트·간격 축소 */
  .price-amount { gap: .45rem; }
  .price-amount .was { font-size: .875rem; }
  .price-amount .now { font-size: 1.6rem; }
  .swipe-hint {
    display: block; text-align: center;
    font-size: var(--fs-xs); color: var(--faint); font-weight: 600;
  }
  /* 5단계: 모바일은 제목만 (설명은 상세 페이지가 담당) */
  .flow p { display: none; }
  .flow li { padding-bottom: 1.05rem; }
}
@media (min-width: 1024px) {
  .swipe-hint { display: none; }
}

/* ---------- 리빌 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chip .dot { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 유틸 ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
