/* polish.css — sungbyun.com 공통 마감 (2026-10-31)
   구조·글은 건드리지 않고 질감만 더한다. 빼려면 <link> 한 줄만 제거.
   원칙: 누르는 순간 반응 · 반투명 크롬 · 크기별 자간 · 튀지 않는 등장 · 움직임 줄이기 존중 */

/* 1. 타이포 — 크기에 따라 자간·행간을 다르게 */
h1{letter-spacing:-.032em;line-height:1.14;font-optical-sizing:auto;text-wrap:balance}
h2{letter-spacing:-.026em;line-height:1.22;text-wrap:balance}
h3{letter-spacing:-.014em;line-height:1.32}
h4{letter-spacing:-.008em}
.kicker,.eyebrow,.p-label,.c-tag,.side-k,.cta-k,.rel-k,.num,.when{letter-spacing:.08em;font-feature-settings:"tnum" 1}
.price b,.d-price,.num,td.r,.mono{font-variant-numeric:tabular-nums}
p,li,td{text-wrap:pretty}

/* 2. 상단 바 — 유리 재질, 선 대신 스크롤 그림자 (JS가 밝기를 보고 hd-dark/hd-light를 붙임) */
.hd{-webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
    transition:background .35s ease,box-shadow .35s ease,border-color .35s ease}
.hd.hd-dark:not(.solid){background:rgba(7,12,24,.72)!important;border-bottom-color:rgba(255,255,255,.08)!important}
.hd.hd-light,.hd.solid{background:rgba(255,255,255,.8)!important;border-bottom-color:transparent!important;
    box-shadow:0 1px 0 rgba(16,20,33,.06),0 10px 28px -18px rgba(16,20,33,.28)}
.hd.hd-light.at-top{box-shadow:0 1px 0 rgba(16,20,33,.06)}
/* 모바일 하단 바도 같은 재질 */
.mbar{background:rgba(7,12,24,.84)!important;-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
    border-top-color:rgba(255,255,255,.08)!important;box-shadow:0 -12px 32px -20px rgba(5,9,19,.6)}
.mbar a.kakao,.mbar a.go{-webkit-backdrop-filter:none;backdrop-filter:none}
.rail{border-radius:14px;overflow:hidden;box-shadow:0 24px 60px -24px rgba(5,9,19,.45),0 0 0 1px rgba(5,9,19,.06)}

/* 3. 누르는 순간 반응 (pointer-down), 손을 떼면 복귀 */
.btn,.nav-cta,.mbar a,.rail a,.more-grid a,.cards a,.cards figure,.guide-card,.plan,.area,.terms-box,.diffs>div,.case,.card-dark,.side-card,.cta-box,.lines .line,.ck li,.steps-banner,.copy,
button,summary,.product-line span,.proof-in>div{
  transition:transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .32s cubic-bezier(.2,.8,.2,1),background-color .2s ease,border-color .2s ease,color .2s ease}
.btn:active,.nav-cta:active,.mbar a:active,.rail a:active,.more-grid a:active,.cards a:active,button:active,.copy:active{transform:scale(.975)!important;transition-duration:.09s}
summary:active{transform:none}
.btn:hover,.nav-cta:hover{transform:translateY(-1px)}
.btn-primary:hover,.btn-blue:hover,.nav-cta:hover,.cta-band .btn-primary:hover{box-shadow:0 10px 24px -12px rgba(20,40,160,.65)}
.btn-kakao:hover{box-shadow:0 10px 24px -12px rgba(120,100,0,.5)}

/* 4. 카드 — 떠오르되 과하지 않게 */
.more-grid a:hover,.cards a:hover,.guide-card:hover,.plan:hover,.area:hover,.diffs>div:hover,.terms-box:hover,.case:hover{
  transform:translateY(-3px);box-shadow:0 18px 40px -24px rgba(16,23,51,.35),0 0 0 1px rgba(16,23,51,.04)}
.plan.mid:hover{box-shadow:0 22px 48px -24px rgba(20,40,160,.45),0 0 0 1px rgba(20,40,160,.25)}
.card-dark:focus-within{box-shadow:0 0 0 1px rgba(143,165,255,.55),0 16px 40px -24px rgba(0,0,0,.6)}
.mini input:focus,.ck-form input:focus,input:focus-visible,textarea:focus-visible{transition:box-shadow .18s ease,border-color .18s ease}

/* 5. FAQ — 뚝 열리지 않고 부드럽게 (지원 브라우저만, 미지원은 즉시 열림) */
details{interpolate-size:allow-keywords}
details::details-content{display:block;height:0;overflow:clip;opacity:0;
  transition:height .34s cubic-bezier(.2,.8,.2,1),opacity .28s ease,content-visibility .34s allow-discrete}
details[open]::details-content{height:auto;opacity:1}
details summary{transition:color .18s ease}
details[open] summary{color:var(--accent,var(--blue,#1428A0))}
.faq details[open],.faq-page details[open],.faq-item[open]{background:linear-gradient(180deg,rgba(20,40,160,.035),transparent 70%)}
.faq summary::after{transition:transform .32s cubic-bezier(.2,.8,.2,1),color .18s ease}
.faq details[open] summary::after{transform:rotate(180deg)}

/* 6. 등장 — 8~10px만 떠오르며, 튀지 않음 (JS가 .pz를 붙인 요소만) */
html.polish .pz{opacity:0;transform:translateY(10px);will-change:opacity,transform}
html.polish .pz.in{opacity:1;transform:none;transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1)}
html.polish .pz.in>*{will-change:auto}

/* 7. 이미지·표 질감 */
.hero-photo img,.media-card img,.spec-img,.profile-top img{border-radius:12px}
.hero-photo{border-radius:12px;overflow:hidden}
.vs-wrap,.tbl-wrap{border-radius:10px;overflow:hidden}
.vs tbody tr:hover td,.tbl-wrap tbody tr:hover td{background:rgba(20,40,160,.035)}
::selection{background:rgba(20,40,160,.18)}

/* 8. 접근성 — 움직임·투명도·대비 설정 존중 */
@media (prefers-reduced-motion:reduce){
  html.polish .pz{opacity:1;transform:none}
  .btn:hover,.nav-cta:hover,.more-grid a:hover,.cards a:hover,.plan:hover,.area:hover,.diffs>div:hover,.terms-box:hover,.case:hover{transform:none}
  details::details-content{transition:none}
}
@media (prefers-reduced-transparency:reduce){
  .hd{backdrop-filter:none;-webkit-backdrop-filter:none}
  .hd.hd-dark:not(.solid){background:#070C18!important}
  .hd.hd-light,.hd.solid{background:#fff!important}
  .mbar{background:#070C18!important;backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media (prefers-contrast:more){
  .hd.solid{border-bottom-color:var(--line,#DCE0EC)!important;box-shadow:none}
  .btn,.nav-cta{outline:1px solid currentColor;outline-offset:-1px}
}

/* ---- 상담 시트 (sheet.js) — techsecretlaw.com 시트와 같은 구성 ---- */
.sh-scrim{position:fixed;inset:0;z-index:90;background:#050913;opacity:0;transition:none}
.sh{position:fixed;left:0;right:0;margin:0 auto;bottom:0;z-index:91;width:min(100%,560px);max-height:min(90vh,760px);transform:translate3d(0,100%,0);
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);
  border-radius:20px 20px 0 0;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);color:#111733;
  display:flex;flex-direction:column;touch-action:none;will-change:transform;user-select:none;-webkit-user-select:none;
  font-family:"Pretendard Site","Pretendard Variable",Pretendard,"Pretendard Fallback Malgun","Pretendard Fallback Noto","Malgun Gothic","맑은 고딕",-apple-system,sans-serif;text-align:left}
.sh *,.sh *::before,.sh *::after{box-sizing:border-box}
.sh .sh-grab{flex:0 0 auto;padding:10px 0 4px;cursor:grab;touch-action:none}
.sh.is-drag .sh-grab{cursor:grabbing}
.sh .sh-grab span{display:block;width:40px;height:5px;border-radius:3px;background:rgba(17,23,51,.25);margin:0 auto}
.sh-x{position:absolute;right:14px;top:14px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(17,23,51,.08);font-size:20px;line-height:32px;color:#111733;cursor:pointer;padding:0}
.sh-body{overflow:auto;padding:10px 24px calc(28px + env(safe-area-inset-bottom));overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.sh-t{margin:6px 0 4px;font-size:20px;line-height:1.3;letter-spacing:-.024em;font-weight:700;color:#111733}
.sh-p{margin:0 0 16px;color:#586082;font-size:15px;line-height:1.7;letter-spacing:-.01em}
.sh-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.sh-row a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;border-radius:12px;font-weight:700;font-size:15.5px;text-decoration:none}
.sh-row svg{width:19px;height:19px}
.sh-ph{background:#1428A0;color:#fff}.sh-ph svg{fill:none;stroke:#fff;stroke-width:1.8}
.sh-kk{background:#FEE500;color:#191919}.sh-kk svg{fill:#191919}
.sh-list{list-style:none;padding:0;margin:0;border-top:1px solid rgba(17,23,51,.1)}
.sh-list li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid rgba(17,23,51,.1);font-size:15px}
.sh-list span{color:#586082;white-space:nowrap;flex:none}
.sh-list b,.sh-list a{font-weight:600;color:#111733;text-align:right;text-decoration:none;word-break:break-all;user-select:text;-webkit-user-select:text}
.sh-list a[href^="tel"]{font-family:var(--mono,"IBM Plex Mono",monospace);font-weight:500;letter-spacing:.01em}
.sh-more{margin-top:16px}
.sh-more summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;font-weight:700;font-size:15px;color:#1428A0}
.sh-more summary::-webkit-details-marker{display:none}
.sh-more summary::after{content:"+";font-size:20px;font-weight:400;line-height:1}
.sh-more[open] summary::after{content:"−"}
.sh-form{display:grid;gap:10px;padding:4px 0 6px}
.sh-f2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sh-form label{display:grid;gap:4px;font-size:13px;color:#586082}
.sh-form input[type=text],.sh-form input[type=tel]{width:100%;padding:11px 12px;border-radius:10px;border:1px solid rgba(17,23,51,.16);background:#fff;font:inherit;font-size:16px;color:#111733;user-select:text;-webkit-user-select:text}
.sh-form input:focus{outline:2px solid #1428A0;outline-offset:1px}
.sh-opt{font-weight:400;font-size:12px}
.sh-err{margin:0;font-size:13.5px;color:#B42318}
.sh .sh-submit{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:12px;background:#1428A0;color:#fff;font:inherit;font-weight:700;font-size:15.5px;cursor:pointer;justify-self:start}
.sh .sh-submit:hover{background:#2A46D1}
.sh-note{margin:14px 0 0;font-size:12.5px;color:#586082}
.sh:focus{outline:none}
html.sh-open{overflow:hidden}
@media(max-width:480px){.sh-f2{grid-template-columns:1fr}.sh-body{padding:10px 18px calc(24px + env(safe-area-inset-bottom))}.sh-list li{font-size:14.5px}}
@media (prefers-reduced-transparency:reduce){.sh{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media (prefers-contrast:more){.sh{border:1px solid #111733}}
.sh-x{z-index:3;background:rgba(255,255,255,.92);box-shadow:0 1px 0 rgba(17,23,51,.08),0 4px 12px -4px rgba(17,23,51,.25)}
