/* 법률사무소 남 랜딩 (2026-10-21 제작요청서 반영 개편)
   딥 네이비 #10233F + 상담 버튼 밝은 노랑 #FFD24A(글자 네이비).
   광고는 모바일만 집행(사용자 10/21) → 모든 화면에서 480px 한 장으로 보여 준다. PC 2단 레이아웃은 뺐다. */
:root {
  --navy: #10233F;
  --navy-2: #1b3459;
  --navy-3: #2b4a78;
  --yellow: #FFD24A;
  --yellow-2: #f5c42c;
  --bg: #FFFFFF;
  --gray: #F5F7FA;
  --line: #e1e6ee;
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --error: #d23c3c;
  --radius: 14px;
  --header-h: 60px;
  --sticky-h: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { background: #dfe3ea; }
body {
  max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); color: var(--ink);
  box-shadow: 0 0 40px rgba(16,35,63,.12);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: normal; }
button { font: inherit; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.ico { width: 18px; height: 18px; flex: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: 12px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-center { display: flex; width: 100%; max-width: 420px; margin: 28px auto 0; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(8px); backdrop-filter: saturate(160%) blur(8px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 42px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-call { display: none; align-items: center; gap: 6px; text-decoration: none; font-size: 15px; color: var(--ink-2); }
.header-call b { color: var(--navy); font-size: 18px; font-weight: 800; }
.header-call .ico { color: var(--navy); }
.header-cta {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--yellow); color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none;
}

/* ---------- 메인 ---------- */
.hero {
  background:
    radial-gradient(90% 60% at 90% 40%, rgba(43,74,120,.55) 0%, rgba(43,74,120,0) 70%),
    var(--navy);
  color: #fff; padding-top: 24px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8);
}
.hero-eyebrow i { width: 1px; height: 12px; background: rgba(255,255,255,.4); }
.hero h1 { margin: 0; font-size: clamp(27px, 7.6vw, 32px); line-height: 1.36; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { color: var(--yellow); }
.hero-sub { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.76); }

/* 사진은 흐름 안(오른쪽 열)에 둔다. 절대 위치로 띄우면 넓은 폰에서 위 설명 글자를 덮었다(2026-10-21). */
.hero-visual { display: grid; grid-template-columns: 1fr 62%; align-items: end; gap: 0; margin: 12px -20px 0 0; }
.hero-points {
  list-style: none; margin: 0; padding: 0; align-self: center;
  display: grid; gap: 12px;
}
.hero-points li {
  position: relative; padding-left: 26px; font-size: 15px; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.92);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%2310233F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero-lawyer {
  position: relative; margin: 0; min-width: 0;
}
.hero-lawyer img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.hero-lawyer figcaption {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; max-width: calc(100% - 12px);
  text-align: center; padding: 5px 10px; border-radius: 10px;
  background: rgba(16,35,63,.82); border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-lawyer figcaption b { display: block; font-size: 14px; line-height: 1.4; }
.hero-lawyer figcaption span { display: block; font-size: 11.5px; line-height: 1.4; letter-spacing: -0.03em; color: rgba(255,255,255,.75); }

.hero-actions { display: grid; gap: 8px; padding: 0 0 24px; position: relative; z-index: 3; }
.hero-actions .btn { width: 100%; }
.hero-hours { margin: 4px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.65); }

/* ---------- 상담폼 ---------- */
.form-card { background: var(--gray); margin: 0 -20px; padding: 32px 20px 36px; border-radius: 22px 22px 0 0; color: var(--ink); }
.form-title { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.form-desc { margin: 8px 0 22px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.lead-form { display: grid; gap: 16px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; height: 54px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2378839a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 20px no-repeat;
}
.field select:invalid { color: var(--ink-3); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(43,74,120,.15); }
.field.is-error input, .field.is-error select, .field.is-error .chip span { border-color: var(--error); }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 50px; padding: 0 4px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink-2); transition: all .12s;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--navy-3); outline-offset: 2px; }

.consent { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.consent-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.consent-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--navy); }
.consent-check.is-error span { color: var(--error); }
.consent-more { flex: none; border: 0; background: none; padding: 6px 0; font-size: 14px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.btn-submit { width: 100%; margin-top: 4px; font-size: 17px; }
.form-note { margin: -4px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.form-msg { margin: 0; font-size: 14px; line-height: 1.5; text-align: center; font-weight: 600; color: var(--error); }
.form-msg:empty { display: none; }

.form-done { text-align: center; padding: 18px 4px 6px; outline: 0; }
.done-ico { display: inline-grid; place-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.done-ico svg { width: 30px; height: 30px; }
.done-title { margin: 16px 0 6px; font-size: 21px; line-height: 1.4; font-weight: 700; color: var(--navy); }
.done-desc { margin: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.form-done .btn { width: 100%; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 64px 0; }
.sec-title { margin: 0; font-size: 24px; line-height: 1.42; font-weight: 700; letter-spacing: -0.035em; color: var(--navy); }
.sec-title em { color: var(--navy-3); background: linear-gradient(transparent 62%, rgba(255,210,74,.5) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.fineprint { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.fineprint.center { text-align: center; }

/* 공감 */
.sec-worry { background: #fff; }
.worry-list { display: grid; gap: 10px; margin-top: 24px; }
.worry-row {
  display: flex; align-items: center; gap: 14px; padding: 18px 14px 18px 16px;
  border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line);
  text-decoration: none; color: inherit; transition: border-color .12s, background .12s;
}
.worry-row:active { background: var(--gray); border-color: var(--navy-3); }
.w-ico { flex: none; display: grid; place-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gray); color: var(--navy); }
.w-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.w-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.w-text b { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; letter-spacing: -0.03em; }
.w-text span { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.w-chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec-close { margin: 28px 0 0; text-align: center; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.sec-close b { color: var(--navy); font-size: 17px; font-weight: 700; }

/* 대표변호사 */
.sec-lawyer { background: var(--gray); }
.host-card { margin-top: 24px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px -22px rgba(16,35,63,.5); }
.lawyer-photo { margin: 0; }
.lawyer-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.host-body { padding: 20px 18px 6px; }
.lawyer-name { margin: 0 0 8px; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.lawyer-name small { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.host-facts { list-style: none; margin: 0; padding: 0; }
.host-facts li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.host-facts li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.host-facts b { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.host-facts span:not(.hf-ico) { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.hf-ico { flex: none; width: 24px; height: 24px; color: var(--navy-3); }
.hf-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hf-verified { color: #1f8a5b; }
.hf-verified svg { fill: #1f8a5b; stroke: #1f8a5b; }
.hf-verified .hf-check { stroke: #fff; stroke-width: 2.2; fill: none; }
.hf-link { flex: none; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--gray); font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; }
.strengths { list-style: none; margin: 20px 0 0; padding: 4px 18px; display: grid; counter-reset: st; background: #fff; border-radius: 18px; }
.strengths li { counter-increment: st; position: relative; display: grid; gap: 4px; padding: 18px 0 18px 44px; }
.strengths li + li { border-top: 1px solid var(--line); }
.strengths li::before {
  content: counter(st); position: absolute; left: 0; top: 18px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center;
  font-size: 14px; font-weight: 700; color: var(--navy); background: var(--yellow);
}
.strengths b { font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--ink); padding-top: 2px; }
.strengths span { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* 비용·서류 */
.support-grid { display: grid; gap: 12px; margin-top: 24px; }
.support-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 20px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.support-card > p { grid-column: 1 / -1; }
.s-ico { display: grid; place-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--yellow); }
.s-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-card h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.support-card p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.support-card .s-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.6; color: var(--ink-3); }

/* 사례(승인 자료가 생기면 사용) */
.cases-grid { display: grid; gap: 12px; margin-top: 22px; }

/* 진행 과정 */
.sec-process { background: var(--gray); }
.timeline { list-style: none; margin: 26px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: #d3dae5; }
.timeline li:last-child { padding-bottom: 6px; }
.timeline li:last-child::before { display: none; }
.t-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #b9c3d3; }
.timeline li.is-now .t-dot { border-color: var(--navy); background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,210,74,.35); }
.timeline small { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--navy-3); }
.timeline b { display: block; margin: 2px 0 4px; font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.timeline p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.t-note { margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink-2); text-align: center; }

/* FAQ */
.faq { margin-top: 20px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 36px 18px 28px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 2px; top: 18px; font-weight: 700; color: var(--navy-3); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; padding: 14px 16px; background: var(--gray); border-radius: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* 마지막 상담 */
.sec-final { background: var(--navy); color: #fff; padding-bottom: 0; }
.sec-final .sec-title { color: #fff; }
.sec-final .sec-title em { color: var(--yellow); box-shadow: none; }
.sec-final .sec-desc { color: rgba(255,255,255,.78); }
.final-call {
  display: inline-flex; flex-direction: column; margin: 20px 0 28px; text-decoration: none;
  font-size: 26px; line-height: 1.3; font-weight: 800; color: #fff; letter-spacing: -0.01em; gap: 2px;
}
.final-call small { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); }
.form-card-bottom { padding-top: 28px; }

/* 푸터 */
.site-footer { background: #0b1830; color: rgba(255,255,255,.62); padding: 36px 0 32px; font-size: 13px; line-height: 1.7; letter-spacing: -0.01em; }
.footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; }
.footer-logo img { height: 34px; width: auto; }
.footer-info { margin: 0; display: grid; gap: 2px; }
.footer-info div { display: flex; gap: 10px; }
.footer-info dt { flex: none; min-width: 92px; color: rgba(255,255,255,.45); }
.footer-info dd { margin: 0; }
.footer-info a { text-decoration: none; color: #fff; font-weight: 700; }
.footer-privacy { margin-top: 14px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.85); font-size: 13px; text-decoration: underline; cursor: pointer; }
.footer-copy { margin: 14px 0 0; color: rgba(255,255,255,.4); }

/* ---------- 모바일 하단 고정 (전화 40% / 상담 60%) ---------- */
.sticky-bar {
  position: fixed; left: 50%; bottom: 0; z-index: 60; width: 100%; max-width: 480px; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(16,35,63,.35);
  transition: transform .2s ease;
}
.sticky-bar.is-hidden { transform: translate(-50%, 110%); }
.sticky-bar a { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 12px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.sticky-call { flex: 0 0 calc(40% - 4px); gap: 6px; background: var(--navy); color: #fff; font-size: 16px; }
.sticky-call span { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-call small { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.7); }
.sticky-form { flex: 1; background: var(--yellow); color: var(--navy); font-size: 17px; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(8,16,30,.7); }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; background: #fff; border-radius: 16px; padding: 24px 20px 20px; }
.modal-box h2 { margin: 0 0 14px; font-size: 19px; color: var(--navy); }
.privacy-list { margin: 0 0 18px; display: grid; gap: 12px; }
.privacy-list dt { font-size: 14px; font-weight: 700; color: var(--navy); }
.privacy-list dd { margin: 2px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.modal-close { width: 100%; }
.modal-cert { text-align: center; padding: 16px; }
.modal-cert img { width: 100%; max-height: 72vh; object-fit: contain; margin-bottom: 14px; }

/* ---------- 작은 화면 ---------- */
@media (max-width: 359px) {
  .hero h1 { font-size: 25px; }
  .hero-points li { font-size: 14px; }
  .chip span { font-size: 14px; }
  .logo img { height: 32px; }
}

/* ---------- 버튼 눈길 끌기 (2026-10-21) ----------
   전화·상담 클릭을 늘리려는 짧은 움직임. 요청서 4항(과한 애니메이션·반복 팝업 금지)에 맞춰
   몇 초에 한 번, 1초 이내로만 움직인다. '동작 줄이기' 설정이면 모두 끈다.
   효과는 클래리티 call_click / cta_click(위치별)으로 전후 비교. */

/* 전화 아이콘: 5초마다 짧게 '따르릉' */
@keyframes fx-ring {
  0%, 84%, 100% { transform: rotate(0); }
  86% { transform: rotate(-16deg); }
  88% { transform: rotate(14deg); }
  90% { transform: rotate(-12deg); }
  92% { transform: rotate(10deg); }
  94% { transform: rotate(-6deg); }
  96% { transform: rotate(3deg); }
}
.fx-ring .ico { transform-origin: 50% 60%; animation: fx-ring 5s ease-in-out 1.2s infinite; }

/* 메인 상담 버튼: 은은한 빛 번짐 */
@keyframes fx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,210,74,.55); }
  70% { box-shadow: 0 0 0 12px rgba(255,210,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,210,74,0); }
}
.fx-pulse { animation: fx-pulse 2.6s ease-out 1s infinite; }

/* 하단 상담 버튼: 4.5초마다 빛이 한 번 지나감 */
@keyframes fx-shine {
  0% { transform: translateX(-130%) skewX(-20deg); }
  22%, 100% { transform: translateX(260%) skewX(-20deg); }
}
.fx-shine { position: relative; overflow: hidden; isolation: isolate; }
.fx-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0));
  animation: fx-shine 4.5s ease-in-out 2s infinite;
}

/* 하단 바: 처음 열릴 때 아래에서 한 번 올라온다 */
.sticky-bar.is-pre { transform: translate(-50%, 110%); }
.sticky-bar { transition: transform .35s cubic-bezier(.2,.8,.2,1); }

/* 누를 때 손맛 */
.sticky-bar a, .btn, .worry-row, .chip span { -webkit-tap-highlight-color: transparent; }
.sticky-bar a:active { transform: scale(.96); }
.sticky-bar a { transition: transform .1s ease; }
.chip input:checked + span { animation: fx-pop .18s ease-out; }
@keyframes fx-pop { 0% { transform: scale(.94); } 100% { transform: scale(1); } }

/* 상담 버튼으로 폼에 도착하면 폼 테두리를 한 번 강조 */
@keyframes fx-flash {
  0% { box-shadow: 0 0 0 0 rgba(255,210,74,0); }
  25% { box-shadow: 0 0 0 4px rgba(255,210,74,.9); }
  100% { box-shadow: 0 0 0 0 rgba(255,210,74,0); }
}
.lead-form.is-flash { border-radius: 14px; animation: fx-flash 1.4s ease-out 1; }

/* 아래 구간: 화면에 들어올 때 살짝 떠오르기(1회). JS 가 없으면 그대로 보인다 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .fx-ring .ico, .fx-pulse, .fx-shine::after, .chip input:checked + span, .lead-form.is-flash { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
