/* ═══ 투명도 — 개선안 데모 전용 스타일 (index-demo.html에서만 로드) ═══
   프로덕션 style.css는 건드리지 않는다. 여기 규칙은 데모 페이지에서만 적용된다.
   Notion 개선사항: 히어로 브랜드라인 · 3 promise 리카피 · 상황 6종 ·
   before/after 신규 · 왜-투명도 내러티브 · 법무법인 호암 성과 · 영상 2그룹. */

/* ── 데모 리본 (프로덕션 아님을 명시) ── */
.demo-ribbon {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 9px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 14px 30px -14px rgba(17, 17, 19, .6);
}
.demo-ribbon .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
@media (max-width: 720px) { .demo-ribbon { left: 12px; bottom: 76px; font-size: 12px; padding: 7px 12px; } }

/* ── 헤더 확대 + 가로 로고 (목업 Image#2) ── */
.nav-in { padding: 18px 24px; gap: 20px; }
.logo img { height: 46px; }                 /* style.css 27px 오버라이드 · 목업처럼 크게 */
.nav-menu { gap: 20px; margin-left: 12px; }
.nav-menu a { font-size: 15.5px; font-weight: 600; }
.nav-exec { display: inline-flex; align-items: center; gap: 6px; }
.nav-badge {
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  padding: 3px 6px; border-radius: 6px; letter-spacing: .02em;
}
.nav-cta {
  margin-left: auto; padding: 11px 22px; font-size: 14.5px;
  background: var(--accent); border-radius: 999px;
}
.nav-cta:hover { background: #0a4fb8; }
/* 앵커 스크롤 오프셋 (고정 헤더 아래로 안 가리게) */
.sec[id], #process { scroll-margin-top: 96px; }

/* ── 히어로 2단 (그래픽) — 목업처럼 크게 ── */
.hero--split { text-align: left; padding: 150px 24px 96px; }
.hero--split .hero-in {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
  align-items: center; max-width: 1360px;
}
.hero--split .hero-copy { max-width: none; margin: 0; align-items: flex-start; text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 700;
}
.hero-badge .hb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero--split h1 { font-size: clamp(44px, 5vw, 72px); margin-top: 24px; line-height: 1.1; text-align: left; }
.hero--split .hero-sub { text-align: left; font-size: 19px; margin-top: 24px; }
.hero--split .hero-cta { justify-content: flex-start; margin-top: 36px; }
.hero--split .hero-cta .btn-lg { padding: 18px 34px; font-size: 16.5px; }
.hero-figure { max-width: 700px; margin-left: auto; }
.hero-figure img { width: 100%; height: auto; display: block; border-radius: 16px; }
/* 히어로 격자무늬 배경 텍스처 제거 (style.css .hero::before) */
.hero::before { display: none; }

/* 공개 3카드 */
.hero-cards { max-width: 1200px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-card {
  display: block; padding: 24px 24px 22px; border-radius: 16px;
  background: #fff; box-shadow: 0 0 0 1px var(--hair-soft);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.hero-card:hover { box-shadow: 0 0 0 1px var(--accent), 0 20px 40px -24px rgba(11,92,214,.35); transform: translateY(-3px); }
.hc-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.hc-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc-title { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hc-title b { color: var(--accent); margin-right: 6px; }
.hc-desc { color: var(--text); font-size: 14.5px; line-height: 1.65; margin-top: 8px; }
.hc-go { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 700; }
.hero-card:hover .hc-go { text-decoration: underline; }

/* ── 서브페이지 히어로 (집행영상) ── */
.hero--page { text-align: center; padding: 150px 24px 36px; }
.exec-back { text-align: center; margin-top: 52px; }

@media (max-width: 900px) {
  .hero--split .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero--split .hero-copy { align-items: center; text-align: center; }
  .hero--split h1, .hero--split .hero-sub { text-align: center; }
  .hero--split .hero-cta { justify-content: center; }
}
@media (max-width: 700px) {
  .hero-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .hero--split { padding-top: 116px; }
}

/* ── 히어로 브랜드 라인 (배지 삭제 대체) ── */
.hero-brand {
  color: var(--muted); font-size: 15px; font-weight: 700;
  letter-spacing: .04em; margin-bottom: 22px;
}
.hero-brand b { color: var(--navy); font-weight: 800; }

/* ── 3가지 promise — 블랙 밴드 리카피(긴 문구 대응 폰트 축소) ── */
.statband--promise .stat b { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.statband--promise .stat > span { font-size: 16px; margin-top: 4px; max-width: 300px; }
.statband--promise .stat-eyebrow {
  display: block; color: var(--accent); font-size: 13px; font-weight: 800;
  letter-spacing: .14em; margin-bottom: 10px;
}
.statband--promise .stat-eyebrow.center {
  text-align: center; color: rgba(255,255,255,.55); margin-bottom: 34px;
}

/* ── 상황별 안내 — 6종 (기존 5종 배치 규칙 리셋) ── */
.sit-grid.sit-grid--six .sit-card,
.sit-grid.sit-grid--six .sit-b2b { grid-column: span 2; }
.sit-grid.sit-grid--six .sit-card:nth-child(4),
.sit-grid.sit-grid--six .sit-card:nth-child(5) { grid-column: span 2; }

/* 6번째: B2B 유도 카드 (앵커 — 공용 JS의 .sit-card 핸들러와 분리) */
.sit-b2b {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 28px 26px 24px;
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.sit-b2b:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -28px rgba(25,38,60,.5); }
.sit-b2b .ico { color: #fff; }
.sit-b2b b { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sit-b2b p { color: rgba(255,255,255,.82); font-size: 16.5px; line-height: 1.68; }
.sit-b2b .sit-go { margin-top: auto; padding-top: 12px; color: #fff; font-size: 15px; font-weight: 700; opacity: .9; transition: transform .5s var(--ease); }
.sit-b2b:hover .sit-go { transform: translateX(4px); }
.sit-b2b .sit-b2b-tag {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  color: #fff; background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px;
}

/* 상황 섹션 마무리 문구 + CTA */
.sit-closer { text-align: center; margin-top: 52px; }
.sit-closer h3 {
  color: var(--ink); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800;
  letter-spacing: -.02em; text-wrap: balance;
}
.sit-closer p { color: var(--text); font-size: 17.5px; margin-top: 10px; }
.sit-closer .btn { margin-top: 26px; }

/* ── before/after — 신규 섹션 ── */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card {
  background: #fff; border-radius: var(--r-slab); padding: 36px 34px 30px;
  box-shadow: 0 0 0 1px var(--hair-soft), 0 30px 70px -34px rgba(17,17,19,.16);
  display: flex; flex-direction: column;
}
.case-tag { align-self: flex-start; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.case-title { color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.4; margin-top: 14px; }
.case-quote {
  color: var(--text); font-size: 16.5px; line-height: 1.8; margin-top: 16px;
  padding-left: 16px; border-left: 3px solid var(--hair);
}
/* margin-top:auto + 카드 동일 높이(그리드 stretch) → 두 카드의 BEFORE·AFTER·비용 블록이 바닥 정렬 */
.case-ba { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; }
/* min-height 고정 → 한 줄/두 줄 행이 같은 높이 → 카드 간 행 위치 일치 */
.case-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  min-height: 76px;
  padding: 14px 16px; border-radius: 14px; background: var(--panel);
}
.case-row .k {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-align: center;
  padding: 5px 0; border-radius: 999px;
}
.case-row.before .k { background: var(--warn-bg); color: var(--warn); }
.case-row.after  { background: rgba(11,92,214,.06); }
.case-row.after  .k { background: var(--accent); color: #fff; }
.case-row.cost   { background: var(--ink); }
.case-row.cost .k { background: rgba(255,255,255,.16); color: #fff; }
.case-row.cost .v { color: #fff; font-weight: 700; }
.case-row .v { font-size: 16px; line-height: 1.5; color: var(--text); }
.case-row.after .v { color: var(--ink); font-weight: 600; }
/* 성공사례 더보기 — 섹션 우측 상단, 네이버 블로그 카테고리로 연결 */
#cases .sec-in { position: relative; }
.cases-more { position: absolute; top: 0; right: 0; margin: 0; }
/* 중간폭 데스크톱: 우측 고정 퀵메뉴와 겹치지 않게 안쪽으로 (퀵메뉴는 ≤900px 숨김) */
@media (min-width: 901px) and (max-width: 1360px) { .cases-more { right: 110px; } }
@media (max-width: 860px) { .cases-more { position: static; text-align: right; margin: -8px 0 20px; } }

/* ── 왜 투명도인가 — 대표변호사 이미지 + 내러티브 2단 (기능카드 4개 대체) ── */
.why-2col {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: start;
}
.why-figure { margin: 0; position: sticky; top: 108px; }
.why-figure img {
  width: 100%; height: auto; display: block; border-radius: var(--r-slab);
  box-shadow: 0 0 0 1px var(--hair-soft), 0 30px 70px -34px rgba(17,17,19,.28);
}
.why-body { text-align: left; }
.why-body .lead { color: var(--text); font-size: 19px; line-height: 1.85; text-wrap: pretty; }
.why-qs { margin: 26px 0; display: grid; gap: 14px; }
.why-q {
  margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  color: var(--ink); font-size: 17.5px; font-weight: 700; line-height: 1.55; letter-spacing: -.01em;
}
.why-answer { color: var(--text); font-size: 18px; line-height: 1.85; margin-top: 4px; text-align: left; }
.why-close {
  margin-top: 26px; padding: 28px 26px; border-radius: var(--r-slab);
  background: var(--navy); color: #fff; text-align: left;
}
.why-close b { display: block; font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.5; }
.why-close > span { display: block; color: rgba(255,255,255,.82); font-size: 15px; letter-spacing: -.01em; margin-top: 10px; white-space: nowrap; }
.why-close .tm { color: #fff; font-weight: 800; }
.why-close .tm-line { white-space: nowrap; }   /* “‘투명도’ 입니다.” 한 줄 유지 */

/* ── 법무법인 호암은 — 성과 지표 (신규) ── */
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred {
  background: var(--panel); border-radius: 20px; padding: 30px 24px;
  text-align: center; display: flex; flex-direction: column; gap: 8px;
}
.cred .big {
  color: var(--navy); font-size: clamp(26px, 3vw, 36px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
}
.cred .big small { font-size: .5em; font-weight: 700; margin-left: 1px; }
.cred .lbl { color: var(--text); font-size: 15.5px; line-height: 1.55; }

/* ── 영상 2그룹 ── */
.vgroup + .vgroup { margin-top: 56px; }
.vgroup-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.vgroup-head h3 { color: var(--navy); font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.02em; }
.vgroup-head .sub { color: var(--muted); font-size: 15px; font-weight: 600; }
.vgroup-more { color: var(--accent); font-size: 15px; font-weight: 700; }
.vgroup-more:hover { text-decoration: underline; }
.vgroup-note {
  margin-top: 14px; color: var(--muted); font-size: 13.5px;
  background: rgba(11,92,214,.05); border-radius: 10px; padding: 8px 12px; display: inline-block;
}
/* 숏츠 — 세로형 미리보기 (5개 → 데스크톱 한 줄 5열) */
.vgrid--shorts { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.vgrid--shorts .vthumb { aspect-ratio: 9 / 16; }
@media (max-width: 1000px) { .vgrid--shorts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .vgrid--shorts { grid-template-columns: repeat(2, 1fr); } }

/* ── 반응형 ── */
@media (max-width: 860px) {
  .cases-grid { grid-template-columns: 1fr; }
  .why-2col { grid-template-columns: 1fr; gap: 28px; max-width: 620px; }
  .why-figure { position: static; max-width: 280px; margin: 0 auto; }
  .why-close > span { white-space: normal; }   /* 모바일에선 줄바꿈 허용 */
  .cred-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sit-grid.sit-grid--six { grid-template-columns: repeat(2, 1fr); }
  .sit-grid.sit-grid--six .sit-card,
  .sit-grid.sit-grid--six .sit-b2b,
  .sit-grid.sit-grid--six .sit-card:nth-child(4),
  .sit-grid.sit-grid--six .sit-card:nth-child(5) { grid-column: auto; }
}
