/* ==========================================================
   스마트통신 — 가볍고 간편하고 다가가기 쉬운 느낌 (흰색 + 파랑)
   ========================================================== */
:root {
  --bg: #f5f8ff;
  --white: #ffffff;
  --blue: #0b5cff;
  --blue-d: #0a3fb8;
  --cyan: #14c8ff;
  --navy: #0a1940;
  --text: #1b2540;
  --muted: #5d6a86;
  --line: #e2e9f6;
  --soft: #eaf1ff;
  --amber: #ffb020;
  --amber-bg: #fff7e6;
  --amber-d: #b86e00;
  --green: #12b886;
  /* 흰 글자가 올라가는 왼쪽 위는 진하게, 밝은 하늘색은 글자 없는 오른쪽 아래로 */
  --grad: linear-gradient(135deg, #0a4fe0 0%, #0b5cff 55%, #1590f5 100%);
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1180px;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 18px 40px -18px rgba(11, 92, 255, .28);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.7; letter-spacing: -.015em;
  word-break: keep-all; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap {
  width: min(var(--wrap), 100% - 40px); margin-inline: auto;
  /* 아이폰 가로 화면에서 노치에 글자가 가리지 않게 */
  padding-left: max(0px, calc(env(safe-area-inset-left) - 20px));
  padding-right: max(0px, calc(env(safe-area-inset-right) - 20px));
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- 스크롤 등장 (통통 튀는 느낌) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px) scale(.97);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--spring) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s var(--ease);
}
.site-header.is-scrolled {
  height: 62px; background: rgba(255, 255, 255, .86);
  box-shadow: 0 6px 24px -12px rgba(10, 25, 64, .18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.brand img { height: 42px; width: auto; transition: height .35s var(--ease); }
.is-scrolled .brand img { height: 36px; }
.nav { display: flex; gap: 6px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a { padding: 8px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.nav a:hover { background: var(--soft); color: var(--blue); }
.tel-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 800; font-size: 15px; color: var(--white); background: var(--grad);
  box-shadow: var(--shadow); transition: transform .3s var(--spring);
}
.tel-pill:hover { transform: translateY(-2px) scale(1.03); }
.tel-pill svg { animation: wiggle 2.8s ease-in-out infinite; }
.tel-pill { white-space: nowrap; }
.tel-short { display: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 16px; padding: 14px 24px; font-weight: 800; font-size: 16px;
  white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .35s var(--spring), box-shadow .3s, background .3s;
}
.btn-blue { color: var(--white); background: var(--grad); box-shadow: 0 12px 26px -12px rgba(11, 92, 255, .7); }
.btn-blue:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 34px -14px rgba(11, 92, 255, .8); }
.btn-blue:active { transform: scale(.97); }
.btn-white { color: var(--blue); background: var(--white); box-shadow: 0 10px 24px -12px rgba(10, 25, 64, .4); }
.btn-white:hover { transform: translateY(-3px); }
.btn-soft { color: var(--blue); background: var(--soft); }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- 카카오톡 상담 (카카오 노란색 + 검정 글자) ---------- */
.btn-kakao { color: #191919; background: #fee500; box-shadow: 0 12px 26px -14px rgba(110, 92, 0, .55); }
.btn-kakao:hover { background: #ffeb33; }
.btn-kakao svg, .mbar-kakao svg { flex: none; }
.consult-card .btn + .btn { margin-top: 12px; }
.consult-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.fab.fab-kakao { color: #191919; background: #fee500; }
.mbar a.mbar-kakao { color: #191919; background: #fee500; box-shadow: 0 10px 20px -12px rgba(110, 92, 0, .6); }
.quick-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.quick-btns .btn { padding: 16px 18px; }
.quick-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .quick-btns { grid-template-columns: 1fr; } }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 56px) 0 96px;
  background: radial-gradient(70% 70% at 80% 30%, #dceaff 0%, transparent 60%), linear-gradient(180deg, #f8fbff, var(--bg));
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.blob { position: absolute; z-index: -2; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(8px); opacity: .55; animation: morph 14s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; right: -140px; top: -80px; background: radial-gradient(circle at 30% 30%, #9fe6ff, #6aa5ff 70%); }
.blob-2 { width: 380px; height: 380px; left: -160px; bottom: -120px; background: radial-gradient(circle at 60% 40%, #c9dcff, #a7c4ff 70%); animation-delay: -6s; opacity: .45; }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0) translate(0, 0); }
  33% { border-radius: 63% 37% 45% 55% / 55% 61% 39% 45%; transform: rotate(20deg) translate(10px, 20px); }
  66% { border-radius: 38% 62% 35% 65% / 62% 37% 63% 38%; transform: rotate(-12deg) translate(-14px, 6px); }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 12px;
  font-size: 14.5px; font-weight: 700; color: var(--blue); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 18px -10px rgba(11, 92, 255, .35);
}
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: dotPing 1.8s ease-out infinite; }
@keyframes dotPing { to { transform: scale(2.8); opacity: 0; } }
.hero-title {
  margin: 0 0 20px; font-weight: 900; font-size: clamp(46px, 6.6vw, 88px); line-height: 1.12;
  letter-spacing: -.045em; color: var(--navy);
}
.grad-text {
  background: linear-gradient(90deg, #0b5cff, #0890e6, #0b5cff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: flow 4s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }
.hero-sub { margin: 0 0 30px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.hero-sub b { color: var(--blue); font-weight: 800; }

/* 히어로 간편 폼 */
.quick-form {
  position: relative; padding: 22px; border-radius: 22px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(11, 92, 255, .35);
  max-width: 600px;
}
.quick-title { margin: 0 0 12px; font-weight: 800; font-size: 16px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.quick-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(11, 92, 255, .15); }

/* 히어로 그림 */
.hero-visual { position: relative; aspect-ratio: 1 / .95; display: grid; place-items: center; }
.hero-phone { position: relative; z-index: 2; width: 66%; filter: drop-shadow(0 30px 40px rgba(11, 92, 255, .28)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
.waves { position: absolute; inset: 10%; z-index: 0; }
.waves span {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(20, 200, 255, .45);
  animation: wave 3.6s var(--ease) infinite; opacity: 0;
}
.waves span:nth-child(2) { animation-delay: 1.2s; }
.waves span:nth-child(3) { animation-delay: 2.4s; }
@keyframes wave { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.ring { position: absolute; inset: 8%; z-index: 1; border-radius: 50%; border: 2px dashed rgba(11, 92, 255, .22); }
.ring-1 { animation: spinR 26s linear infinite; }
.ring-2 { inset: 20%; border-style: solid; border-color: rgba(20, 200, 255, .25); animation: spinR 18s linear infinite reverse; }
.ring i { position: absolute; top: 50%; left: -7px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(11, 92, 255, .14); }
.ring-2 i { left: auto; right: -6px; width: 11px; height: 11px; background: var(--cyan); }
@keyframes spinR { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 16px; background: var(--white); color: var(--navy);
  font-weight: 800; font-size: 15px; box-shadow: 0 16px 34px -14px rgba(10, 25, 64, .3);
  animation: floatChip 4.6s ease-in-out infinite;
}
.float-chip svg { width: 20px; height: 20px; padding: 3px; border-radius: 7px; color: var(--white); background: var(--grad); }
.c1 { top: 10%; left: 2%; }
.c2 { top: 4%; right: 6%; animation-delay: -1.2s; }
.c2 svg { background: linear-gradient(135deg, #ffcf4a, #ff9d00); }
.c3 { bottom: 16%; left: -2%; animation-delay: -2.4s; }
.c3 svg { background: linear-gradient(135deg, #3ee0a8, #12b886); }
.c4 { bottom: 6%; right: 2%; padding: 14px 18px; gap: 6px; color: var(--white); background: var(--grad); animation-delay: -3.4s; }
.c4 small { font-size: 13px; opacity: .9; }
.c4 b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- 키워드 띠 ---------- */
.tickers { position: relative; z-index: 2; overflow: hidden; padding: 28px 0 12px; margin-top: -40px; }
.ticker { overflow: hidden; }
.ticker-track { display: flex; align-items: center; width: max-content; white-space: nowrap; }
.ticker-track > * { margin-right: 28px; }
.t1 { transform: rotate(-2deg); background: linear-gradient(90deg, #0a4fe0, #0b5cff 50%, #0a4fe0); padding: 16px 0; box-shadow: 0 16px 30px -16px rgba(11, 92, 255, .6); }
.t1 .ticker-track { color: var(--white); font-weight: 900; font-size: clamp(18px, 2.2vw, 26px); animation: marquee 30s linear infinite; }
.t1 i { font-style: normal; color: #bfeaff; font-size: .8em; }
.t2 { transform: rotate(1.5deg); background: var(--white); padding: 12px 0; margin-top: -6px; border-block: 1px solid var(--line); }
.t2 .ticker-track { color: var(--blue); font-weight: 900; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: .14em; animation: marquee 24s linear infinite reverse; }
.t2 i { font-style: normal; color: var(--cyan); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
/* 파란 바탕 위 초점 테두리는 흰색 */
.tile-blue :focus-visible, .consult-copy :focus-visible, .tile-cta:focus-visible { outline-color: var(--white); }
.js .hero [data-reveal] { transition-duration: .7s; }

/* ---------- 섹션 공통 ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.section-soft { background: linear-gradient(180deg, var(--bg), #eaf1ff 50%, var(--bg)); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 5vw, 60px); }
.sec-label {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .2em; color: var(--blue); background: var(--soft);
}
.sec-title { margin: 0 0 14px; font-weight: 900; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.22; letter-spacing: -.04em; color: var(--navy); }
.sec-desc { margin: 0; font-size: clamp(16px, 1.35vw, 18px); color: var(--muted); }

/* ---------- 이용 안내 (벤토) ---------- */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.b-big { grid-row: span 2; }
.bento > div { perspective: 900px; }
.tile {
  position: relative; display: block; height: 100%; padding: 30px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(10, 25, 64, .35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .35s, border-color .35s;
}
.tile:hover { box-shadow: 0 30px 50px -28px rgba(11, 92, 255, .45); border-color: #c9d9fb; }
.tile h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--navy); }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 18px; color: var(--white); }
.tile-ico svg { width: 26px; height: 26px; }
.tile:hover .tile-ico { animation: jump .7s var(--spring); }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-10px) scale(1.08) rotate(-6deg); } 70% { transform: translateY(2px) scale(.98); } 100% { transform: none; } }
.ico-blue { background: var(--grad); }
.ico-cyan { background: linear-gradient(135deg, #ffcf4a, #ff9d00); }
.ico-green { background: linear-gradient(135deg, #3ee0a8, #12b886); }
.ico-white { background: rgba(255, 255, 255, .2); }
.tile-blue {
  color: var(--white); background: var(--grad); border: 0; padding: 36px 32px; min-height: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
}
.tile-blue::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); animation: morph 12s ease-in-out infinite;
}
.tile-kicker { margin: 0 0 6px !important; color: #e6f6ff !important; font-weight: 700; font-size: 15px !important; }
.tile-num { margin: 0 0 10px !important; color: var(--white) !important; font-weight: 900; font-size: clamp(40px, 4.6vw, 60px) !important; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tile-num small { font-size: .42em; margin-left: 2px; }
.tile-num em { font-style: normal; margin: 0 8px; opacity: .8; }
.tile-text { color: #e3f3ff !important; margin-bottom: 24px !important; max-width: 300px; }
.tile-phone { position: absolute; right: -40px; bottom: -40px; width: 62%; max-width: 320px; opacity: .95; filter: brightness(1.6) saturate(.6) drop-shadow(0 20px 30px rgba(0, 0, 0, .2)); animation: bob 6s ease-in-out infinite; pointer-events: none; }
.tile-blue .btn { position: relative; z-index: 2; margin-top: auto; }
.tile-cta { color: var(--white); background: linear-gradient(135deg, #0a1940, #13306e); border: 0; }
.tile-cta h3 { color: var(--white); }
.tile-cta p { color: #b9c7e6; }
.tile-go {
  position: absolute; right: 24px; top: 26px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; background: rgba(255, 255, 255, .14);
  transition: transform .35s var(--spring), background .3s;
}
.tile-cta:hover .tile-go { transform: translateX(6px); background: var(--blue); }

/* ---------- 진행 절차 ---------- */
.timeline { position: relative; }
.timeline-line {
  position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #c9d8f6 0 10px, transparent 10px 18px);
}
.timeline-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { text-align: center; }
.step-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 22px; font-weight: 900; font-size: 24px; color: var(--muted);
  background: var(--white); border: 2px solid var(--line);
  transition: transform .6s var(--spring), background .4s, color .4s, box-shadow .4s, border-color .4s;
}
.step.is-on .step-dot {
  color: var(--white); background: var(--grad); border-color: transparent; transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 14px 26px -12px rgba(11, 92, 255, .7);
}
.step-card {
  padding: 22px 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--spring), box-shadow .4s;
}
.step.is-on .step-card { transform: translateY(-4px); box-shadow: 0 18px 34px -24px rgba(11, 92, 255, .5); }
.step h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--navy); }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- 보험사기 주의 안내 ---------- */
.notice-box {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 52px); align-items: center;
  padding: clamp(28px, 4.5vw, 54px); border-radius: 28px; background: var(--amber-bg);
  border: 2px solid #ffe2a6; position: relative; overflow: hidden;
}
.notice-box::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #1b2540 14px 28px);
  animation: tape 1.6s linear infinite; background-size: 39.6px 8px;
}
@keyframes tape { to { background-position: 39.6px 0; } }
.notice-icon {
  position: relative; display: grid; place-items: center; width: clamp(96px, 11vw, 132px); aspect-ratio: 1;
  border-radius: 32px; color: var(--white); background: linear-gradient(135deg, #ffc94a, #ff9500);
  box-shadow: 0 20px 34px -18px rgba(255, 149, 0, .8); animation: wobble 3.4s ease-in-out infinite;
}
.notice-icon svg { width: 52%; height: 52%; }
@keyframes wobble {
  0%, 80%, 100% { transform: rotate(0) scale(1); }
  84% { transform: rotate(-10deg) scale(1.06); } 88% { transform: rotate(9deg) scale(1.06); }
  92% { transform: rotate(-6deg); } 96% { transform: rotate(4deg); }
}
.notice-box .sec-label { color: #8a4b00; background: #ffecc2; }
.notice-box .sec-title { margin-bottom: 10px; }
.notice-lead { margin: 0 0 16px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; }
.notice-lead strong { color: #a84d00; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notice-list li { position: relative; padding: 12px 16px 12px 46px; border-radius: 14px; background: var(--white); font-size: 15.5px; }
.notice-list li::before {
  content: '!'; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 7px;
  display: grid; place-items: center; background: var(--amber); color: var(--white); font-weight: 900; font-size: 13px; line-height: 1;
}
.notice-list strong { color: #b34d00; }

/* ---------- 상담 신청 ---------- */
.consult-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 36px; color: var(--white); background: var(--grad);
  box-shadow: 0 40px 80px -40px rgba(11, 92, 255, .7);
}
.consult-deco { position: absolute; inset: 0; pointer-events: none; }
.consult-deco span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); animation: morph 16s ease-in-out infinite; }
.consult-deco span:nth-child(1) { width: 340px; height: 340px; left: -120px; bottom: -160px; }
.consult-deco span:nth-child(2) { width: 220px; height: 220px; right: 32%; top: -110px; animation-delay: -5s; }
.consult-deco span:nth-child(3) { width: 120px; height: 120px; right: 46%; bottom: 30px; animation-delay: -9s; background: rgba(255, 255, 255, .07); }
.consult-copy, .consult-form { position: relative; z-index: 1; }
.consult-copy .sec-label { color: var(--white); background: rgba(255, 255, 255, .18); }
.consult-copy .sec-title { color: var(--white); }
.consult-copy .sec-desc { color: #eaf5ff; }
.consult-tel { display: inline-flex; align-items: center; gap: 12px; margin: 24px 0; font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; }
.consult-tel svg { width: 50px; height: 50px; padding: 13px; border-radius: 18px; color: var(--blue); background: var(--white); animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(-14deg); } 78% { transform: rotate(14deg); }
  82% { transform: rotate(-10deg); } 86% { transform: rotate(10deg); } 90% { transform: rotate(0); }
}
.consult-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.consult-points li { padding: 8px 14px 8px 34px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14.5px; font-weight: 700; position: relative; }
.consult-points li::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 10px; height: 6px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: translateY(-70%) rotate(-45deg);
}
.consult-form { padding: clamp(24px, 3.5vw, 38px); border-radius: 26px; background: var(--white); color: var(--text); box-shadow: 0 30px 60px -30px rgba(10, 25, 64, .55); }
.form-title { margin: 0 0 18px; font-weight: 900; font-size: 22px; color: var(--navy); }

/* 상담 신청서 (텔레그램 접수) — 첫 화면 간편 상담과 상담 칸에서 함께 사용 */
.lead-form { display: grid; gap: 12px; }
.lf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lf-row-q { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.lf-row-q .btn { height: 52px; padding: 0 22px; }
.lf-field { display: grid; gap: 6px; }
.lf-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.lead-form input[type="text"], .lead-form input[type="tel"] {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid #cdd8ec; background: var(--bg); color: var(--text);
  font: inherit; font-size: 16px; /* 16px 이상이어야 아이폰에서 입력할 때 화면이 확대되지 않음 */
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lead-form input::placeholder { color: #7d89a3; }
.lead-form input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(11, 92, 255, .14); }
.lead-form input[aria-invalid="true"] { border-color: #c4320a; }
.lf-agree { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 14.5px; color: var(--text); }
.lf-agree label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lf-agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue); }
.lf-agree em { font-style: normal; color: var(--blue); }
.lf-view { padding: 4px 2px; border: 0; background: none; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-msg { margin: 0; font-size: 14px; text-align: center; color: var(--muted); }
.lf-msg:empty { display: none; }
.lf-msg.is-bad { color: #c4320a; font-weight: 600; }
.lead-form .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.lf-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; font-size: 13.5px; color: var(--muted); }
.lf-or::before, .lf-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.quick-alt { margin-top: 12px; }
@media (max-width: 560px) {
  .lf-row, .lf-row-q { grid-template-columns: minmax(0, 1fr); }
  .lf-row-q .btn { width: 100%; }
}

/* ---------- 푸터 ---------- */
.site-footer { padding: 48px 0 44px; background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-logo { height: 38px; width: auto; margin-bottom: 20px; }
.biz { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; }
.biz div { display: flex; gap: 8px; }
.biz dt { color: var(--muted); }
.biz dd { margin: 0; }
.copy { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- 떠 있는 버튼 ---------- */
.fab {
  position: fixed; right: calc(26px + env(safe-area-inset-right)); bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 40; width: 76px; height: 76px; border-radius: 26px;
  display: grid; place-items: center; align-content: center; gap: 2px; color: var(--white); background: var(--grad);
  font-weight: 800; font-size: 13px; box-shadow: 0 16px 34px -12px rgba(11, 92, 255, .75);
  transition: transform .35s var(--spring); animation: fabBounce 3s ease-in-out infinite;
}
.fab svg { width: 26px; height: 26px; }
.fab:hover { transform: scale(1.08) rotate(-4deg); animation: none; }
@keyframes fabBounce { 0%, 80%, 100% { transform: translateY(0); } 86% { transform: translateY(-10px); } 92% { transform: translateY(0); } 96% { transform: translateY(-4px); } }
.mbar { display: none; }

/* ---------- 팝업 ---------- */
.dialog {
  width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 28px;
  background: var(--white); color: var(--text); box-shadow: 0 40px 90px -30px rgba(10, 25, 64, .5);
}
/* iOS 15.3 이하처럼 dialog 를 모르는 브라우저에서도 평소엔 숨기고, 열면 가운데 표시 */
dialog:not([open]) { display: none; }
dialog[open] { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; height: fit-content; margin: auto; }
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.dialog::backdrop { background: rgba(10, 25, 64, .45); backdrop-filter: blur(4px); }
.dialog[open] { animation: popIn .5s var(--spring); }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.9); } }
.dialog-body { padding: 38px 28px 28px; text-align: center; }
.dialog h3 { margin: 0 0 10px; font-size: 23px; font-weight: 900; color: var(--navy); }
.dialog p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.dialog-body > .btn { margin-top: 10px; }
.dialog-text { text-align: left; }
.dialog-text h3 { text-align: center; }
.dialog-text p { font-size: 14px; }
.privacy-list { margin: 0 0 14px; display: grid; gap: 8px; font-size: 14.5px; }
.privacy-list div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.privacy-list dt { font-weight: 700; color: var(--blue-d); }
.privacy-list dd { margin: 0; color: var(--text); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-big { grid-row: auto; grid-column: span 2; }
  .c1 { left: 0; } .c3 { left: 0; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .site-header { height: 62px; }
  .nav { display: none; }
  .tel-pill { margin-left: auto; padding: 9px 14px; font-size: 14px; }
  .brand img, .is-scrolled .brand img { height: 32px; }
  .hero { padding: calc(var(--header-h) + 28px) 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { order: 2; width: min(100%, 380px); margin: 12px auto 0; aspect-ratio: 1 / .78; }
  .blob, .tile-blue::before, .consult-deco span { animation: none; filter: none; }
  .hero-phone { width: 46%; }
  .float-chip { font-size: 13px; padding: 8px 12px; border-radius: 13px; }
  .float-chip svg { width: 17px; height: 17px; }
  .c4 b { font-size: 19px; }
  .c4 { padding: 10px 14px; }
  .hero-title { font-size: clamp(42px, 12vw, 64px); }
  .timeline-line { left: 31px; right: auto; top: 33px; bottom: 60px; width: 4px; height: auto; background: repeating-linear-gradient(180deg, #c9d8f6 0 10px, transparent 10px 18px); }
  .timeline-fill { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { display: grid; grid-template-columns: 66px 1fr; gap: 16px; text-align: left; align-items: center; }
  .step-dot { margin: 0; }
  .notice-box { grid-template-columns: 1fr; }
  .notice-icon { width: 84px; border-radius: 26px; }
  .consult-panel { grid-template-columns: minmax(0, 1fr); border-radius: 28px; }
  .fab { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, .94); box-shadow: 0 -8px 24px -14px rgba(10, 25, 64, .25);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 16px; font-weight: 800; font-size: 16px; }
  .mbar-tel { color: var(--blue); background: var(--soft); }
  .mbar-cta { color: var(--white); background: var(--grad); box-shadow: 0 10px 20px -10px rgba(11, 92, 255, .7); }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .consult-tel { font-size: 26px; white-space: nowrap; gap: 10px; }
  .consult-tel svg { width: 44px; height: 44px; padding: 11px; }
  .wrap { width: calc(100% - 32px); }
  .bento { grid-template-columns: 1fr; }
  .b-big { grid-column: auto; }
  .tile-phone { width: 48%; right: -24px; bottom: -30px; }
  .quick-form { padding: 18px; }
}

/* 금액 카드가 좁은 폰에서도 한 줄로 보이게 */
@media (max-width: 400px) {
  .tile-num { font-size: min(40px, 10.5vw) !important; white-space: nowrap; }
  /* 상담 카드의 전화 버튼이 카드 밖으로 밀리지 않게 */
  .consult-panel { padding: 28px 14px; }
  .consult-form { padding: 22px 14px; }
  .consult-form .btn-lg { padding-inline: 8px; font-size: 16px; gap: 6px; }
}

/* 폭이 좁은 폰: 헤더 전화 버튼은 번호 대신 '전화' */
@media (max-width: 339px) {
  .tel-num { display: none; }
  .tel-short { display: inline; }
}

/* ---------- 움직임 줄이기 설정 존중 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
