/* ═══════════════════════════════════════════════
   포켓변호사 (umbrella) — 브랜드 레벨 디자인 시스템
   대상: pocketlawyer/index.php 및 shared/bizinfo.php::pl_doc_page() 가
         렌더하는 정적 문서 페이지(pricing/terms/privacy/refund-policy).
   각 하위 서비스(refundrescue/getmymoney/easysosong) 는 자체 style.css 사용.
═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:  #0C2746;
  --navy2: #1a3a5c;
  --red:   #c0392b;
  --cream: #F5F4F1;
  --paper: #FFFFFF;
  --line:  #E8E6E1;
  --muted: #6C7077;
  --text:  #1c1814;
  --green: #2d6a4f;
  --sans:  "Pretendard Variable", -apple-system, BlinkMacSystemFont, sans-serif;
  --max:   1080px;
  --gutter: clamp(20px, 5vw, 32px);
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── 진입 페이드 ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,244,241,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12,39,70,.06);
  padding: 0 var(--gutter);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-name { font-size: 1.22rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.brand-name b { color: var(--red); font-weight: 800; }
.brand-firm { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: .86rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-link:hover { color: var(--navy); }
@media (max-width: 680px) {
  .brand-firm { display: none; }
  .nav-links .nav-link:not(.nav-link--cta) { display: none; }
}
.nav-link--cta {
  background: var(--navy); color: #fff; font-weight: 700;
  padding: 8px 16px; border-radius: 7px;
}
.nav-link--cta:hover { background: var(--navy2); color: #fff; }

/* ═══════════════ HERO ═══════════════ */
/* ═══════════════ HERO — 풀스크린 이미지 + 슬로건 ═══════════════ */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);     /* 내비 높이 제외 */
  min-height: 560px;
  background-image: url('pocketlawyer_hero.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(40px, 12vw, 180px);
  overflow: hidden;
}
/* 좌측에 옅은 흰색 그라데이션 — 슬로건 뒤 가독성 보장 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(255,255,255,.78) 0%,
    rgba(255,255,255,.45) 35%,
    rgba(255,255,255,0)   60%);
  pointer-events: none;
  z-index: 1;
}

.hero-slogan {
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 7.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.045em;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(255,255,255,.55);
  position: relative;
  z-index: 2;
}
.hero-line {
  display: block;
  position: relative;
  min-height: 1.12em;          /* 빈 줄도 자리 차지 — 타이핑 시 점프 방지 */
  white-space: nowrap;
}
.hero-line-accent { color: var(--red); }
/* 현재 타이핑 중인 줄에 커서 — 마지막 줄에는 영구 유지 */
.hero-line.typing::after {
  content: '';
  display: inline-block;
  width: .08em;
  height: .9em;
  background: var(--red);
  margin-left: .12em;
  vertical-align: -.08em;
  animation: cursorBlink 1.05s steps(2) infinite;
}
@keyframes cursorBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ═══════════════ 히어로 아래 3단계 카드 ═══════════════ */
.hero-aside {
  position: relative;
  width: 100%;
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
}
.hero-aside-inner { max-width: var(--max); margin: 0 auto; }
.hero-aside-label {
  font-size: .86rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.2rem;
}
.hero-aside-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.hero-aside-item {
  display: flex; gap: 14px; align-items: baseline;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hero-aside-item:hover {
  transform: translateY(-2px);
  border-color: rgba(12,39,70,.2);
  box-shadow: 0 8px 24px rgba(12,39,70,.08);
}
.hero-aside-no {
  font-size: .98rem; font-weight: 800; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.hero-aside-txt { font-size: 1.08rem; font-weight: 700; color: var(--navy); letter-spacing: -.015em; }
.hero-aside-txt span { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: 0; }

@media (max-width: 820px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    max-height: none;
    display: grid;
    grid-template-rows: auto auto;
    /* 배경 이미지 제거 — 별도 <div> 로 그림과 텍스트 분리 */
    background-image: none;
    background-color: #eef4fb;        /* 이미지 로딩 전 보호색 */
    padding: 40px clamp(20px, 6vw, 40px) 0;
    align-items: start;
    justify-content: stretch;
  }
  /* 그라데이션 오버레이 모바일에선 불필요 */
  .hero::before { display: none; }
  /* 슬로건 — 상단 텍스트 영역 */
  .hero-slogan {
    font-size: clamp(2rem, 9vw, 3.8rem);
    line-height: 1.2;
    text-shadow: none;
    padding-bottom: 8px;
  }
  /* 이미지를 슬로건 아래 별도 박스로 표시 — overlap 제거 */
  .hero::after {
    content: '';
    display: block;
    width: calc(100% + 2 * clamp(20px, 6vw, 40px));
    margin: 24px calc(-1 * clamp(20px, 6vw, 40px)) 0;
    aspect-ratio: 1660 / 877;
    background-image: url('pocketlawyer_hero.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  .hero-aside-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ═══════════════ FLOW (세 서비스) ═══════════════ */
.flow { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter); }
.flow-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 64px); }
.flow-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; color: var(--navy); letter-spacing: -.035em; line-height: 1.25; margin-bottom: .9rem; }
.flow-head p { font-size: 1rem; color: var(--muted); line-height: 1.85; }
.flow-head p strong { color: var(--text); font-weight: 600; }

.step { display: grid; grid-template-columns: minmax(64px, 88px) 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.step:last-of-type { border-bottom: 1px solid var(--line); }
.step-no { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--line); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s; }
.step:hover .step-no { color: var(--red); }
.step-body { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.step-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); background: rgba(192,57,43,.06); border: 1px solid rgba(192,57,43,.14); border-radius: 99px; padding: .25rem .8rem; margin-bottom: 1rem; }
.step-name { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; margin-bottom: .5rem; }
.step-lead { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: .9rem; }
.step-desc { font-size: .94rem; color: var(--muted); line-height: 1.85; max-width: 42em; margin-bottom: 1rem; }
.step-when { font-size: .82rem; color: var(--muted); }
.step-when b { color: var(--navy); font-weight: 600; }
.step-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 160px; }
.step-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; font-size: .92rem; font-weight: 700;
  padding: 12px 22px; border-radius: 9px; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.step-link:hover { background: var(--navy2); transform: translateY(-1px); color: #fff; }
.step-link svg { transition: transform .2s; }
.step-link:hover svg { transform: translateX(3px); }
.step-soon { font-size: .72rem; color: var(--muted); }
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-no { font-size: 2rem; }
  .step-body { grid-template-columns: 1fr; }
  .step-action { align-items: flex-start; }
}

/* ── 연결 메시지 ── */
.flow-bridge { display: flex; align-items: center; gap: 14px; padding: 18px 0; color: var(--muted); font-size: .86rem; }
.flow-bridge::before { content: ""; width: 1px; height: 28px; background: var(--line); margin-left: clamp(32px, 5vw, 44px); }

/* ═══════════════ FIRM ═══════════════ */
.firm { background: var(--navy); }
.firm-inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 84px) var(--gutter); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.firm-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1.2rem; }
.firm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.firm h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 1.1rem; }
.firm h2 em { color: #f5c842; font-style: normal; }
.firm p { font-size: .96rem; color: rgba(255,255,255,.6); line-height: 1.9; margin-bottom: 1.6rem; max-width: 34em; }
.firm-points { display: flex; flex-direction: column; gap: 10px; }
.firm-point { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.6; }
.firm-point::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: rgba(245,200,66,.8); }
.firm-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 30px; }
.firm-card-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.firm-card-sub { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.firm-spec { display: flex; justify-content: space-between; font-size: .86rem; padding: 7px 0; }
.firm-spec-k { color: rgba(255,255,255,.45); }
.firm-spec-v { color: rgba(255,255,255,.85); font-weight: 600; }
@media (max-width: 760px) { .firm-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ═══════════════ CTA STRIP ═══════════════ */
.closing { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 104px) var(--gutter); text-align: center; }
.closing h2 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); font-weight: 800; color: var(--navy); letter-spacing: -.04em; line-height: 1.2; margin-bottom: 1rem; }
.closing p { font-size: 1.02rem; color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.closing-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: #fff; font-size: 1.05rem; font-weight: 700;
  padding: 15px 34px; border-radius: 11px; transition: background .2s, transform .2s;
}
.closing-cta:hover { background: #a5281c; color: #fff; transform: translateY(-1px); }

/* ═══════════════ FOOTER (umbrella site footer) ═══════════════ */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .76rem; color: var(--muted); line-height: 1.7; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { font-size: .78rem; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--navy); }

/* ═══════════════ BIZINFO (사업자 고지 푸터) ═══════════════ */
.pl-bizinfo { border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: .74rem; line-height: 1.85; padding: 22px clamp(16px,4vw,28px); }
.pl-bizinfo-in { max-width: 1024px; margin: 0 auto; }
.pl-bizinfo-nav { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 600; }
.pl-bizinfo-nav a { color: var(--navy); text-decoration: none; }
.pl-bizinfo-nav a.privacy { font-weight: 800; }
.pl-bizinfo-nav .sep { opacity: .4; }
.pl-bizinfo-note { margin-top: 8px; opacity: .8; }
