/* =========================================================
   TRAFFIC LAB — style.css
   팔레트: 딥 네이비 #0B1120 / #0F172A, 일렉트릭 블루 #2563EB, 포인트 오렌지 #F97316
   ========================================================= */
:root {
  --navy-900: #0B1120;
  --navy-800: #0F172A;
  --navy-700: #1E293B;
  --navy-600: #334155;
  --blue: #2563EB;
  --blue-400: #60A5FA;
  --blue-50: #EFF6FF;
  --orange: #F97316;
  --orange-600: #EA580C;
  --orange-50: #FFF7ED;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94A3B8;
  --line: #E2E8F0;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --red: #DC2626;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
.m-only { display: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.btn--lg { height: 54px; font-size: 16.5px; padding: 0 26px; }
.btn--block { width: 100%; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(249, 115, 22, .7); }
.btn--orange:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--blue-400); background: rgba(37,99,235,.15); }
.btn--ghost-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 로고 ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo__mark { width: 38px; height: 38px; flex: none; }
/* 이미지 로고: 정사각형에 가까운 엠블럼(186x192)이라 높이 기준으로 맞추고 비율 유지 */
.nav .logo { height: 100%; padding: 6px 0; flex: none; }
.logo__img { display: block; height: 100%; max-height: 60px; width: auto; aspect-ratio: 186 / 192; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.logo__text small { font-size: 10.5px; font-weight: 700; letter-spacing: 2.6px; color: var(--blue-400); margin-top: 3px; }

/* ---------- 네비게이션 ---------- */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100;
  background: rgba(11, 17, 32, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(11, 17, 32, .96); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__menu { display: flex; gap: 6px; }
.nav__menu a { color: #CBD5E1; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__menu a:hover, .nav__menu a.is-active { color: #fff; background: rgba(255,255,255,.07); }
.nav__cta-mobile { display: none !important; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; color: #fff; padding: calc(var(--nav-h) + 64px) 0 56px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(249,115,22,.10), transparent 60%),
    var(--navy-900);
}
.hero::before { /* 미세 그리드 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(37,99,235,.14); border: 1px solid rgba(96,165,250,.35); color: #BFDBFE; font-size: 13.5px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(249,115,22,0); } }
.hero__title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.22; font-weight: 800; letter-spacing: -1.2px; margin: 20px 0 18px; }
.grad { background: linear-gradient(90deg, #60A5FA, #2563EB 55%, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: #94A3B8; font-size: 17px; max-width: 560px; margin-bottom: 28px; }

/* 미니 진단 위젯 */
.widget {
  background: rgba(15,23,42,.85); border: 1px solid rgba(148,163,184,.18); border-radius: 18px; padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
.widget__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.widget__head strong { font-size: 17px; }
.widget__head span { font-size: 12.5px; color: var(--orange); font-weight: 600; }
.widget__step { border: 0; padding: 0; margin: 0 0 14px; display: block; min-width: 0; }
.widget__step legend, .widget__step .legend { display: block; font-size: 13.5px; color: #CBD5E1; margin-bottom: 8px; padding: 0; font-weight: 600; }
.widget__step b { color: var(--blue-400); font-weight: 800; margin-right: 6px; letter-spacing: .5px; }
.widget__row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; }
.widget input::placeholder { font-size: 14px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  height: 40px; border-radius: 9px; border: 1px solid rgba(148,163,184,.25); background: rgba(255,255,255,.03);
  color: #E2E8F0; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s;
}
.chip:hover { border-color: var(--blue-400); }
.chip[aria-checked="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(37,99,235,.8); }
/* 희망 상담 분야: 다중 선택 토글 (2×2) */
.widget__step legend small, .field__label small { font-weight: 500; color: #94A3B8; font-size: 12px; margin-left: 2px; }
.chips--multi { grid-template-columns: repeat(2, 1fr); }
.chip--toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font-size: 13.5px; white-space: nowrap; min-width: 0; }
.chips--multi .chip--toggle:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 홀수 개일 때 마지막은 한 줄 전체 */
.chip__t > span { white-space: nowrap; }
.chip--toggle::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid rgba(148,163,184,.55);
  transition: all .18s;
}
.chip--toggle[aria-pressed="true"] { background: rgba(249,115,22,.14); border-color: var(--orange); color: #fff; }
.chip--toggle[aria-pressed="true"]::before {
  border-color: var(--orange);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
/* 하단 신청 폼(밝은 배경)용 */
.field__label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.chip--light { background: #fff; border-color: #CBD5E1; color: #334155; }
.chip--light:hover { border-color: var(--blue); }
.chip--light::before { border-color: #94A3B8; }
.chip--light[aria-pressed="true"] { background: #FFF7ED; border-color: var(--orange); color: #9A3412; }
.widget input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(148,163,184,.25);
  background: rgba(2,6,23,.5); color: #fff; font-size: 15px; transition: border-color .2s;
}
.widget input::placeholder { color: #64748B; }
.widget input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #94A3B8; margin: 2px 0 10px; cursor: pointer; }
.consent input { width: 16px !important; height: 16px !important; margin-top: 2px; accent-color: var(--orange); flex: none; }
.consent a { color: #CBD5E1; text-decoration: underline; }
.consent--light { color: var(--ink-2); }
.consent--light a { color: var(--ink); }
.form-error { min-height: 0; color: #FCA5A5; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-error:empty { display: none; }
.is-invalid { border-color: #F87171 !important; }

/* 히어로 비주얼 */
.hero__visual { position: relative; height: 640px; }
.mock { position: absolute; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.mock--dash {
  top: 0; left: 0; width: 88%; background: #0F172A; border: 1px solid rgba(148,163,184,.18); overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0B1120; border-bottom: 1px solid rgba(148,163,184,.12); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.mock__bar i:first-child { background: #F87171; } .mock__bar i:nth-child(2) { background: #FBBF24; } .mock__bar i:nth-child(3) { background: #34D399; }
.mock__bar span { margin-left: 8px; font-size: 11.5px; color: #64748B; font-weight: 600; }
.dash { padding: 16px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash__kpis div { background: #1E293B; border-radius: 10px; padding: 10px 12px; }
.dash__kpis small { display: block; color: #94A3B8; font-size: 11px; }
.dash__kpis b { display: block; font-size: 18px; letter-spacing: -.3px; }
.dash__kpis b.o { color: var(--orange); }
.dash__kpis em { font-style: normal; font-size: 10.5px; color: #64748B; }
.dash__kpis em.up { color: #34D399; } .dash__kpis em.down { color: #FCA5A5; }
.dash__chart { margin-top: 10px; background: #1E293B; border-radius: 10px; padding: 10px 12px; }
.dash__chart small { color: #94A3B8; font-size: 11px; }
.dash__chart svg { width: 100%; height: 86px; margin-top: 6px; }
.bars rect { fill: #475569; transform-box: fill-box; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.bars rect.hl { fill: var(--blue); }
.bars rect:nth-child(2) { animation-delay: .05s; } .bars rect:nth-child(3) { animation-delay: .1s; } .bars rect:nth-child(4) { animation-delay: .15s; }
.bars rect:nth-child(5) { animation-delay: .2s; } .bars rect:nth-child(6) { animation-delay: .25s; } .bars rect:nth-child(7) { animation-delay: .3s; }
.bars rect:nth-child(8) { animation-delay: .35s; } .bars rect:nth-child(9) { animation-delay: .4s; } .bars rect:nth-child(10) { animation-delay: .45s; }
@keyframes grow { from { transform: scaleY(0); } }
.dash__table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 11.5px; }
.dash__table th { text-align: left; color: #64748B; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #1E293B; }
.dash__table td { padding: 6px 4px; color: #CBD5E1; border-bottom: 1px solid #1E293B; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #334155; color: #CBD5E1; }
.pill--o { background: rgba(249,115,22,.18); color: #FDBA74; }

.mock--phone {
  right: 0; top: 150px; width: 210px; background: #fff; color: var(--ink); border: 7px solid #1E293B; border-radius: 30px; padding: 22px 12px 14px;
  animation: float 6s ease-in-out infinite .8s; z-index: 2;
}
.phone__notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 64px; height: 8px; border-radius: 8px; background: #1E293B; }
.phone__search { background: #F1F5F9; border-radius: 999px; font-size: 11.5px; padding: 6px 10px; color: var(--ink-2); border: 1.5px solid #03C75A; }
.phone__tabs { display: flex; gap: 10px; font-size: 11px; margin: 8px 2px; color: var(--ink-3); }
.phone__tabs .on { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }
.phone__list li { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #F1F5F9; font-size: 11px; }
.phone__list li div { flex: 1; min-width: 0; }
.phone__list strong { display: block; font-size: 12px; }
.phone__list small { color: var(--ink-3); font-size: 10px; }
.rank { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #F1F5F9; font-size: 11px; }
.phone__list li.me { background: var(--blue-50); border-radius: 8px; }
.phone__list li.me .rank { background: var(--blue); color: #fff; }
.rise { font-style: normal; color: var(--orange); font-weight: 800; font-size: 11px; }
.phone__graph { margin-top: 8px; background: var(--orange-50); border-radius: 10px; padding: 8px; }
.phone__graph svg { height: 34px; width: 100%; }
.phone__graph polyline { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 2s .5s ease forwards; }
.phone__graph small { font-size: 10.5px; color: var(--orange-600); font-weight: 700; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.mock--report { left: 6%; bottom: 0; width: 230px; height: 230px; box-shadow: none; animation: float 8s ease-in-out infinite .4s; }
.paper { position: absolute; width: 170px; height: 220px; background: #fff; border-radius: 6px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); }
.paper--3 { left: 40px; top: 4px; transform: rotate(8deg); background: #E2E8F0; }
.paper--2 { left: 22px; top: 2px; transform: rotate(4deg); background: #F1F5F9; }
.paper--1 { left: 0; top: 0; overflow: hidden; color: var(--ink); }
.paper__head { background: #1F3A5F; color: #fff; padding: 14px 12px; }
.paper__head small { display: block; font-size: 7px; letter-spacing: 1px; color: #9EC5F4; font-weight: 700; }
.paper__head b { font-size: 12px; line-height: 1.3; display: block; margin-top: 3px; }
.paper__kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 10px 12px 6px; }
.paper__kpi i { height: 26px; border-radius: 4px; background: #F1F5F9; border: 1px solid #E2E8F0; }
.paper__kpi i:nth-child(2) { background: #FEF2F2; border-color: #FECACA; }
.paper__lines { padding: 4px 12px; }
.paper__lines i { display: block; height: 6px; background: #E2E8F0; border-radius: 3px; margin: 6px 0; }
.paper__tag { position: absolute; bottom: 10px; right: 10px; font-size: 9px; font-weight: 800; color: #fff; background: var(--orange); padding: 3px 8px; border-radius: 999px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* 신뢰 배지 */
.trust { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.trust li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.15);
}
.trust__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 20px; border-radius: 12px; background: rgba(37,99,235,.18); }
.trust b { display: block; font-size: 15px; }
.trust small { color: #94A3B8; font-size: 13px; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 104px 0; }
.section--light { background: var(--bg-light); }
.section--navy { background: var(--navy-800); color: #fff; }
.section--navy2 { background: var(--navy-900); color: #fff; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 2.5px; color: var(--blue); margin-bottom: 12px; }
.sec-head h2, .apply h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; letter-spacing: -.8px; font-weight: 800; }
.sec-head p { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.sec-head--dark .eyebrow, .apply .eyebrow { color: var(--blue-400); }
.sec-head--dark p { color: #94A3B8; }
.hl-o { color: var(--orange); }

.checks li { position: relative; padding-left: 28px; margin: 9px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- 문제 vs 해결 ---------- */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.vs__card { border-radius: var(--radius); padding: 32px; background: #fff; border: 1px solid var(--line); }
.vs__card h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.vs__card .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #fff; }
.vs__card--bad .ic { background: #94A3B8; }
.vs__card--bad { background: #F1F5F9; }
.vs__card--bad b { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(220,38,38,.5); }
.vs__card--good { border: 2px solid var(--blue); box-shadow: 0 20px 40px -20px rgba(37,99,235,.45); }
.vs__card--good .ic { background: var(--blue); }
.vs__card li { padding: 14px 0; border-top: 1px solid var(--line); }
.vs__card li:first-child { border-top: 0; padding-top: 0; }
.vs__card li b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.vs__card li span { color: var(--ink-2); font-size: 14.5px; }
.vs__arrow { align-self: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 10px 24px -8px rgba(249,115,22,.7); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #BFDBFE; }
.feature__no { position: absolute; top: 22px; right: 24px; font-size: 40px; font-weight: 900; color: #EEF2F7; letter-spacing: -1px; }
.feature__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.feature__ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; letter-spacing: -.3px; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature p b { color: var(--ink); }

/* ---------- 탭 ---------- */
.tabs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.tabs__list button {
  text-align: left; padding: 18px 20px; border-radius: 12px; cursor: pointer; font-size: 18px; font-weight: 800;
  border: 1px solid rgba(148,163,184,.2); background: rgba(255,255,255,.03); color: #CBD5E1; transition: all .2s;
}
.tabs__list button small { display: block; font-size: 13px; font-weight: 500; color: #64748B; margin-top: 3px; }
.tabs__list button:hover { border-color: rgba(96,165,250,.5); color: #fff; }
.tabs__list button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 14px 30px -14px rgba(37,99,235,.9); }
.tabs__list button[aria-selected="true"] small { color: #DBEAFE; }
.tabs__panel {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(148,163,184,.15); border-radius: 18px; padding: 40px;
  animation: fade .35s ease;
}
.tabs__panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.panel__copy h3 { font-size: 23px; line-height: 1.4; letter-spacing: -.4px; margin-bottom: 14px; }
.panel__copy p { color: #94A3B8; margin-bottom: 14px; }
.panel__copy .checks li { color: #E2E8F0; }
.panel__visual { display: flex; flex-direction: column; gap: 16px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba__img { height: 150px; border-radius: 12px; display: flex; align-items: flex-end; padding: 10px; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.ba__img--before { background: linear-gradient(135deg, #475569, #334155); color: #CBD5E1; }
.ba__img--after { background: linear-gradient(135deg, #60A5FA, #2563EB); color: #fff; }
.kwchips { display: flex; flex-wrap: wrap; gap: 8px; }
.kwchips span { padding: 7px 13px; border-radius: 999px; background: rgba(249,115,22,.12); color: #FDBA74; font-size: 13.5px; font-weight: 600; border: 1px solid rgba(249,115,22,.3); }
.urgent { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: 14px; background: linear-gradient(135deg, rgba(220,38,38,.22), rgba(249,115,22,.12)); border: 1px solid rgba(248,113,113,.35); }
.urgent b { font-size: 20px; }
.urgent small { color: #FECACA; }
.urgent__dot { width: 12px; height: 12px; border-radius: 50%; background: #F87171; box-shadow: 0 0 0 5px rgba(248,113,113,.25); animation: pulse 1.6s infinite; margin-bottom: 6px; }
.steps { counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.steps li { counter-increment: s; padding: 14px; border-radius: 12px; background: rgba(37,99,235,.14); border: 1px solid rgba(96,165,250,.3); font-weight: 700; font-size: 14.5px; }
.steps li::before { content: "0" counter(s); display: block; color: var(--blue-400); font-size: 12px; font-weight: 800; }

/* ---------- 리포트 샘플 ---------- */
.reports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 24px; transition: transform .25s, box-shadow .25s; }
.rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rcard--best { border: 2px solid var(--orange); }
.rcard__page {
  aspect-ratio: 210 / 230; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px;
  box-shadow: 0 12px 24px -16px rgba(15,23,42,.35); margin-bottom: 18px; overflow: hidden;
  background-image: linear-gradient(#fff, #fff), linear-gradient(var(--bg-light), var(--bg-light));
}
.rcard h3 { font-size: 16.5px; letter-spacing: -.3px; margin-bottom: 6px; }
.rcard p { color: var(--ink-2); font-size: 14px; }
.rp-head { font-size: 13px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.rp-head b { background: #1F3A5F; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; }
.rp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.rp-kpis div { border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.rp-kpis small { display: block; font-size: 10px; color: var(--ink-2); }
.rp-kpis b { font-size: 17px; font-weight: 900; }
.rp-kpis b.red { color: var(--red); }
.rp-note { font-size: 11px; padding: 6px 8px; border-left: 3px solid; border-radius: 0 6px 6px 0; margin-top: 6px; font-weight: 600; }
.rp-note--blue { border-color: var(--blue); background: var(--blue-50); }
.rp-note--red { border-color: var(--red); background: #FEF2F2; }
.rp-bars { width: 100%; height: calc(100% - 34px); }
.rp-bars .g { fill: #CBD5E1; } .rp-bars .b { fill: var(--blue); }
.rp-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.rp-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rp-table td:first-child { width: 42%; color: var(--ink-2); }
.rp-table i { display: block; height: 8px; border-radius: 4px; background: #CBD5E1; }
.rp-table tr.me td { font-weight: 800; color: var(--ink); }
.rp-table tr.me i { background: var(--blue); }
.rp-gold li { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); counter-increment: g; }
.rp-gold { counter-reset: g; }
.rp-gold li span::before { content: counter(g); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--orange-50); color: var(--orange-600); font-size: 10px; font-weight: 800; margin-right: 6px; }
.rp-gold em { font-style: normal; font-weight: 800; color: var(--blue); }
.sample-cta { text-align: center; margin-top: 44px; }
.sample-cta p { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }

/* ---------- 가격 ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.price {
  position: relative; display: flex; flex-direction: column; padding: 30px 24px 24px; border-radius: 18px;
  background: var(--navy-800); border: 1px solid rgba(148,163,184,.18); transition: transform .25s, border-color .25s;
}
.price:hover { transform: translateY(-4px); border-color: rgba(96,165,250,.5); }
.price h3 { font-size: 17px; color: #E2E8F0; min-height: 48px; }
.price__amt { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-top: 8px; }
.price__amt small { font-size: 15px; font-weight: 600; color: #94A3B8; margin-right: 2px; }
.price__amt span { font-size: 17px; font-weight: 700; margin-left: 2px; }
.price__amt--quote { color: var(--blue-400); }
.price__was { color: #64748B; text-decoration: line-through; font-size: 14px; margin-top: 4px; }
.price__vat { color: #94A3B8; font-size: 13.5px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(148,163,184,.15); min-height: 58px; }
.price .checks { flex: 1; margin-bottom: 22px; }
.price .checks li { font-size: 14.5px; color: #CBD5E1; }
.price .checks b { color: #FDBA74; }
.price--best { background: linear-gradient(180deg, #1E3A8A 0%, #0F172A 70%); border: 2px solid var(--orange); translate: 0 -10px; box-shadow: 0 30px 60px -30px rgba(249,115,22,.55); }
.price--best:hover { border-color: var(--orange); }
.price__ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.price-note { text-align: center; color: #94A3B8; margin-top: 36px; font-size: 15px; }
.price-note b { color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: #BFDBFE; box-shadow: 0 12px 30px -20px rgba(37,99,235,.5); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 22px 56px 22px 24px; font-size: 17px; font-weight: 700; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--blue); }
.q { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-size: 13px; font-weight: 900; }
.faq__a { padding: 0 24px 24px 72px; color: var(--ink-2); font-size: 15.5px; }
.faq__a p + p, .faq__a ol + p { margin-top: 10px; }
.faq__a ol { counter-reset: f; margin-top: 10px; display: grid; gap: 6px; }
.faq__a ol li { counter-increment: f; position: relative; padding-left: 26px; }
.faq__a ol li::before { content: counter(f); position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.faq__a b { color: var(--ink); }

/* ---------- 신청 폼 ---------- */
.apply { background: radial-gradient(800px 400px at 0% 0%, rgba(37,99,235,.22), transparent 60%), var(--navy-800); }
.apply__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.apply__copy p { color: #94A3B8; font-size: 17px; margin: 18px 0 20px; }
.checks--dark li { color: #E2E8F0; }
.apply__form { background: #fff; color: var(--ink); border-radius: 20px; padding: 34px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.apply__form h3 { font-size: 21px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field em { color: var(--orange); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #CBD5E1; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply__form .form-error { color: var(--red); }
.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); } 30% { box-shadow: 0 0 0 6px rgba(249,115,22,.6); } }

/* ---------- 푸터 ---------- */
.footer { background: var(--navy-900); color: #94A3B8; padding: 52px 0 96px; font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(148,163,184,.12); margin-bottom: 22px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a:hover { color: #fff; }
.footer__info { font-style: normal; display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer__info span:not(:last-child)::after { content: "|"; margin: 0 12px; color: #334155; }
.footer__info a { color: #CBD5E1; }
.privacy { margin-top: 16px; font-size: 13px; }
.privacy summary { cursor: pointer; color: #CBD5E1; }
.privacy p { margin-top: 8px; max-width: 860px; color: #64748B; }
.footer__copy { margin-top: 20px; color: #64748B; font-size: 13px; }

/* 모바일 고정 CTA */
.sticky-cta { display: none; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.7); backdrop-filter: blur(4px); animation: fade .25s; }
.modal__box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 40px 32px 28px; text-align: center; animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.modal__x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: var(--ink-3); cursor: pointer; }
.modal__ic { width: 64px; height: 64px; margin: 0 auto 18px; }
.modal__box h3 { font-size: 21px; letter-spacing: -.4px; }
.modal__store { color: var(--blue); font-weight: 700; margin-top: 6px; }
.modal__store:empty { display: none; }
.modal__box p { color: var(--ink-2); margin-top: 12px; font-size: 15px; }
.modal__box p b { color: var(--ink); }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
body.no-scroll { overflow: hidden; }

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { height: 620px; max-width: 640px; width: 100%; margin: 0 auto; }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .price--best { translate: none; }
  .reports { grid-template-columns: repeat(2, 1fr); }
  .apply__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .logo__img { max-height: 54px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 20px 22px;
    background: rgba(11,17,32,.98); border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a { padding: 14px 12px; font-size: 16px; }
  .nav__cta-mobile { display: flex !important; margin-top: 8px; color: #fff !important; }
  .vs { grid-template-columns: 1fr; }
  .vs__arrow { transform: rotate(90deg); justify-self: center; }
  .features { grid-template-columns: 1fr; }
  .tabs__panel { grid-template-columns: 1fr; padding: 28px 24px; }
  .trust { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .m-only { display: inline; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head p { font-size: 15.5px; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero__sub { font-size: 15.5px; }
  .widget { padding: 18px 16px; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .chip--toggle { font-size: 13px; padding: 0 6px; gap: 5px; }
  .widget__row, .field-row { grid-template-columns: 1fr; }
  .widget__row { gap: 0; }
  .hero__visual { height: 640px; }
  .mock--dash { width: 100%; }
  .dash { padding: 12px; }
  .dash__kpis b { font-size: 15px; }
  .mock--phone { width: 176px; top: 230px; right: -4px; }
  .mock--report { left: 0; transform-origin: left bottom; scale: .85; }
  .tabs__list { grid-template-columns: 1fr; }
  .tabs__list button { padding: 14px 16px; font-size: 16px; }
  .panel__copy h3 { font-size: 19px; }
  .reports, .prices { grid-template-columns: 1fr; }
  .price h3, .price__vat { min-height: 0; }
  .vs__card { padding: 24px 20px; }
  .faq__item summary { font-size: 15.5px; padding: 18px 48px 18px 16px; }
  .faq__a { padding: 0 16px 20px 16px; }
  .apply__form { padding: 24px 18px; }
  .footer__info { flex-direction: column; }
  .footer__info span::after { display: none; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    height: 54px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: 16px;
    box-shadow: 0 12px 30px -8px rgba(249,115,22,.7); transition: transform .3s, opacity .3s;
  }
  .sticky-cta.is-hidden { transform: translateY(90px); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 스팸 봇 차단용 숨김 입력칸 (사람에게는 보이지 않음) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* 희망 상담 분야: 좁은 화면에서도 2열×3줄 유지 — 긴 이름은 정해진 위치에서만 두 줄로 나눔 */
@media (max-width: 520px) {
  .chips--multi .chip--toggle { height: 52px; font-size: 13px; line-height: 1.3; padding: 0 8px; justify-content: flex-start; text-align: left; }
  .chip__t > span { display: block; }
}

/* ---------- 리포트: 05 플레이스 SEO 진단 (한 줄 전체 강조 카드) ---------- */
.rcard--seo {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center;
  padding: 28px 30px; border: 2px solid var(--orange); background: linear-gradient(135deg, #FFF7ED 0%, #fff 55%);
}
.seo-diag__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--orange-600); background: #fff; border: 1px solid #FED7AA; border-radius: 999px; padding: 5px 12px 5px 6px; margin-bottom: 12px; }
.seo-diag__badge b { background: var(--orange); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.rcard--seo h3 { font-size: 20px; margin-bottom: 8px; }
.rcard--seo p { font-size: 15px; }
.rcard--seo p b { color: var(--ink); }
.seo-diag__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seo-diag__list li {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seo-diag__list li::before { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
.seo-diag__list .ok::before { content: "✓"; background: var(--blue); }
.seo-diag__list .bad::before { content: "✕"; background: var(--red); }
.seo-diag__list .warn::before { content: "!"; background: var(--orange); }

/* ---------- 왜 플레이스 SEO가 먼저인가 ---------- */
.section--white { background: #fff; border-top: 1px solid var(--line); }
.sec-head p b { color: var(--ink); }
.seo-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seo-why__card {
  position: relative; background: var(--bg-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.seo-why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #BFDBFE; }
.seo-why__card--hl { background: #FFF7ED; border: 2px solid var(--orange); }
.seo-why__card--hl .feature__ic { background: var(--orange); color: #fff; }
.seo-why__no { position: absolute; top: 22px; right: 24px; font-size: 40px; font-weight: 900; color: #E2E8F0; letter-spacing: -1px; }
.seo-why__card--hl .seo-why__no { color: #FED7AA; }
.seo-why__card h3 { font-size: 19px; letter-spacing: -.3px; margin-bottom: 10px; }
.seo-why__card p { color: var(--ink-2); font-size: 15px; }
.seo-why__card p b { color: var(--ink); }
.seo-flow { display: flex; justify-content: center; align-items: center; gap: 36px; margin: 40px auto 0; flex-wrap: wrap; }
.seo-flow li { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--bg-light); border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink-2); }
.seo-flow li b { font-size: 11.5px; letter-spacing: .5px; color: var(--ink-3); }
.seo-flow li.on { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(249,115,22,.7); }
.seo-flow li.on b { color: #FFEDD5; }
.seo-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 800; }
.seo-why__cta { text-align: center; margin-top: 28px; }

@media (max-width: 900px) {
  .rcard--seo { grid-template-columns: 1fr; gap: 20px; }
  .seo-why { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rcard--seo { padding: 22px 18px; }
  .rcard--seo h3 { font-size: 18px; }
  .seo-diag__list li { font-size: 13px; padding: 9px 10px; }
  .seo-flow { flex-direction: column; gap: 26px; }
  .seo-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .seo-why__cta .btn { width: 100%; font-size: 16px; }
}
@media (max-width: 400px) {
  .seo-diag__list { grid-template-columns: 1fr; }
}
#seo-first .sec-head h2 { word-break: keep-all; text-wrap: balance; }

/* FAQ 질문: 검색엔진용 h3, 보이는 모양은 summary 그대로 */
.faq__q { display: inline; font: inherit; letter-spacing: inherit; margin: 0; }
