/* ============================================================
   service_ai — AI 기반 플랫폼 소개 (밝은 톤)
   html font-size 62.5% 기준: 1.4rem=14px, 1.6rem=16px
   ============================================================ */

.service-ai-page {
  background: #ffffff;
  color: #191f28;
}

.service-ai-page #page {
  background: #ffffff;
}

/* ── 서브페이지 공통 레이아웃 (lb-sub-*) ── */
.lb-sub-hero {
  position: relative;
  padding: 150px 0;
  background: #ffffff; 
  overflow: hidden;
}

.lb-sub-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
}

/* 히어로 배경 SVG — 좌상단 ai-bg01 / 우하단 ai-bg02 */
.ai-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ai-hero-bg-img {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: min(52vw, 800px);
  max-height: min(70%, 650px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.35;
}

.ai-hero-bg-img--tl {
  top: 0;
  left: 0;
  transform: translate(-6%, -4%);
}

.ai-hero-bg-img--br {
  right: 0;
  bottom: 0;
  transform: translate(8%, 6%);
}

@media (max-width: 768px) {
  .ai-hero-bg-img {
    max-width: min(72vw, 360px);
    max-height: 42%;
    opacity: 0.85;
  }

  .ai-hero-bg-img--tl {
    transform: translate(-12%, -8%);
  }

  .ai-hero-bg-img--br {
    transform: translate(14%, 10%);
  }
}

/* 히어로: 레퍼런스형 중앙정렬 (카피 위 + UI 스테이지 아래) */
.ai-hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.ai-hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-sub-hero-title {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 700;
  word-break: keep-all;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--clr-text, #191f28);
  margin: 0 0 16px;
  font-family: 'A2z', 'Noto Sans KR', sans-serif;
  text-align: center;
}


.lb-sub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ── 히어로 UI 팝업 스테이지 (중앙, 넓게) ── */
.ai-hero-stage {
  position: relative;
  min-height: 580px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 1;
}

/* 배경 흐린 UI — 채팅 / 캘린더 / 차트 / 알림 (서로 다른 형태) */
.ai-float-ghost {
  position: absolute;
  z-index: 0;
  box-sizing: border-box;
  pointer-events: none;
  border: 1px solid rgba(229, 232, 235, 0.95);
  background: rgba(255, 255, 255, 0.58);
  filter: blur(1.8px);
  opacity: 0.5;
}

/* A: 채팅 패널 */
.ai-float-ghost-a {
  left: 1%;
  top: 6%;
  width: 210px;
  height: 168px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(-3deg);
  opacity: 0.48;
}

/* B: 미니 캘린더 */
.ai-float-ghost-b {
  right: 3%;
  top: 2%;
  width: 168px;
  height: 152px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(2.5deg);
  opacity: 0.46;
  filter: blur(1.6px);
}

/* C: 막대 차트 카드 */
.ai-float-ghost-c {
  left: 0;
  bottom: 8%;
  width: 200px;
  height: 156px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(1.5deg);
  opacity: 0.5;
}

/* D: 알림 리스트 */
.ai-float-ghost-d {
  right: 0;
  bottom: 16%;
  width: 188px;
  height: 138px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(-2deg);
  opacity: 0.47;
  filter: blur(2px);
}

.ai-ghost-bar {
  display: block;
  height: 8px;
  width: 100%;
  border-radius: 5px;
  background: rgba(209, 214, 219, 0.9);
  flex-shrink: 0;
}

.ai-ghost-bar.is-short {
  width: 48%;
}

.ai-ghost-bar.is-mid {
  width: 68%;
}

.ai-ghost-bar.is-tiny {
  width: 34%;
  height: 6px;
}

/* 채팅 */
.ai-ghost-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.ai-ghost-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(196, 204, 214, 0.95);
  flex-shrink: 0;
}

.ai-ghost-bubble {
  display: block;
  height: 28px;
  border-radius: 12px;
  max-width: 88%;
}

.ai-ghost-bubble--in {
  align-self: flex-start;
  width: 72%;
  background: rgba(236, 239, 243, 0.95);
  border-radius: 4px 12px 12px 12px;
}

.ai-ghost-bubble--out {
  align-self: flex-end;
  width: 58%;
  background: rgba(210, 218, 230, 0.9);
  border-radius: 12px 4px 12px 12px;
}

.ai-ghost-bubble.is-short {
  width: 44%;
  height: 22px;
}

/* 캘린더 */
.ai-ghost-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-ghost-dot-pack {
  display: flex;
  gap: 4px;
}

.ai-ghost-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(209, 214, 219, 0.95);
}

.ai-ghost-cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.ai-ghost-cal-grid > span {
  display: block;
  border-radius: 6px;
  background: rgba(242, 244, 246, 0.95);
  min-height: 18px;
}

.ai-ghost-cal-grid > span.is-on {
  background: rgba(180, 190, 204, 0.95);
}

/* 차트 */
.ai-ghost-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-ghost-pill {
  width: 36px;
  height: 14px;
  border-radius: 999px;
  background: rgba(209, 214, 219, 0.95);
  flex-shrink: 0;
}

.ai-ghost-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  flex: 1;
  min-height: 72px;
  padding: 4px 2px 0;
  border-bottom: 1px solid rgba(229, 232, 235, 0.9);
}

.ai-ghost-bars > span {
  display: block;
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: rgba(196, 204, 214, 0.95);
}

.ai-ghost-bars > span:nth-child(even) {
  background: rgba(176, 186, 198, 0.9);
}

.ai-ghost-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 알림 리스트 */
.ai-ghost-notify-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.ai-ghost-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(196, 204, 214, 0.95);
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-ghost-icon.is-soft {
  border-radius: 50%;
  background: rgba(220, 224, 230, 0.95);
}

.ai-ghost-icon.is-accent {
  border-radius: 4px;
  background: rgba(176, 186, 198, 0.95);
}

.ai-ghost-notify-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

@media (max-width: 768px) {
  .ai-float-ghost-a,
  .ai-float-ghost-b,
  .ai-float-ghost-c,
  .ai-float-ghost-d {
    opacity: 0.38;
    filter: blur(2.2px);
  }

  .ai-float-ghost-a {
    width: 150px;
    height: 128px;
  }

  .ai-float-ghost-b {
    width: 128px;
    height: 118px;
  }

  .ai-float-ghost-c {
    width: 140px;
    height: 120px;
  }

  .ai-float-ghost-d {
    width: 136px;
    height: 110px;
  }
}

.ai-float {
  position: absolute;
  /* 레퍼런스: 반투명 화이트 카드 + 소프트 보더 */
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 232, 235, 0.95);
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

/* 메인: 여행 AI 폼 샘플 (포인트 색 = --clr-accent #5b6ef5) */
.ai-float-main {
  left: 50%;
  top: 50%;
  width: 400px;
  max-width: calc(100% - 24px);
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 0px 20px rgba(15, 23, 42, 0.05);
}

.ai-main-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  box-sizing: border-box;
}

.ai-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.ai-main-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ai-main-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: #8b95a1;
  letter-spacing: -0.02em;
  word-break: keep-all;
  text-align: left;
}

.ai-main-value {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 1.6rem;
  line-height: 1.35;
  color: #191f28;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-main-value.is-muted {
  color: #b0b8c1;
}

.ai-main-select {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
}

.ai-main-select-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4e5968;
  flex-shrink: 0;
}

.ai-main-select-value {
  font-size: 1.5rem;
  color: #8b95a1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-main-select-caret {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid #8b95a1;
  border-bottom: 1.5px solid #8b95a1;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.ai-main-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ai-main-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-main-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #e5e8eb;
  border-radius: 999px;
  background: #ffffff;
  font-size: 1.4rem;
  font-weight: 500;
  color: #4e5968;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-sizing: border-box;
}

.ai-main-chip.is-on {
  border-color: var(--clr-accent, #5b6ef5);
  background: rgba(91, 110, 245, 0.1);
  color: var(--clr-accent, #5b6ef5);
  font-weight: 600;
}

/* 참고: legacy style.css clearfix 는 .row / .row-* float 그리드만 대상 (search-row 등 flex 오탐 제거됨) */
.ai-main-addline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ai-main-addinput {
  flex: 1 1 auto;
  min-width: 0;
  /* .ai-main-value 와 동일 높이·세로 중앙 */
  min-height: 40px;
}

.ai-main-addbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #f7f8fa;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  color: #4e5968;
  white-space: nowrap;
  box-sizing: border-box;
}

.ai-main-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.ai-main-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #4e5968;
  word-break: keep-all;
}

.ai-main-check i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #d1d6db;
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ai-main-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--clr-accent, #5b6ef5);
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 주변 결과 카드 — 메인 중심으로 다시 뭉침 (살짝 겹치는 클러스터) */
.ai-float-doc {
  left: calc(50% + 170px);
  right: auto;
  top: 0px;
  width: 300px;
  z-index: 4;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* 문서/리포트 요약 카드 — 리스트형(중고차)과 다른 문서 레이아웃 */
.ai-doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f2;
  background: #fafbfc;
}

.ai-doc-icon {
  width: 34px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #e5e8eb;
  background: #ffffff;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.ai-doc-icon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #f2f4f6;
  border-left: 1px solid #e5e8eb;
  border-bottom: 1px solid #e5e8eb;
  box-sizing: border-box;
}

.ai-doc-icon::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 14px;
  height: 2px;
  background: #d1d6db;
  box-shadow: 0 5px 0 #d1d6db, 0 10px 0 #d1d6db;
}

.ai-doc-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.ai-doc-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ai-doc-sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.02em;
}

.ai-doc-source {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 10px 12px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f8fa;
  border: 1px solid #eef0f2;
  box-sizing: border-box;
}

.ai-doc-source-label {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8b95a1;
  letter-spacing: -0.02em;
}

.ai-doc-source-name {
  min-width: 0;
  font-size: 1.2rem;
  color: #333d4b;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-doc-points {
  list-style: none;
  margin: 0;
  padding: 12px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: ai-doc-n;
  text-align: left;
}

.ai-doc-points > li {
  position: relative;
  padding-left: 26px;
  font-size: 1.25rem;
  line-height: 1.45;
  color: #333d4b;
  letter-spacing: -0.02em;
  word-break: keep-all;
  counter-increment: ai-doc-n;
}

.ai-doc-points > li::before {
  content: counter(ai-doc-n);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(91, 110, 245, 0.12);
  color: var(--clr-accent, #5b6ef5);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.ai-doc-insight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(91, 110, 245, 0.22);
  background: rgba(91, 110, 245, 0.08);
  box-sizing: border-box;
  text-align: left;
}

.ai-doc-insight-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.02em;
}

.ai-doc-insight-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #191f28;
  letter-spacing: -0.02em;
  line-height: 1.4;
  word-break: keep-all;
}

.ai-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 12px;
}

.ai-doc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #e5e8eb;
  background: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  color: #4e5968;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-sizing: border-box;
}

.ai-doc-chip.is-on {
  border-color: rgba(91, 110, 245, 0.35);
  background: rgba(91, 110, 245, 0.1);
  color: var(--clr-accent, #5b6ef5);
  font-weight: 600;
}

.ai-float-car {
  left: calc(50% + 120px);
  right: auto;
  bottom: 10px;
  width: 300px;
  z-index: 6;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* 중고차 매물 매칭 카드 */
.ai-car-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f2;
  background: #fafbfc;
}

.ai-car-head-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-car-head-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 110, 245, 0.12);
  color: var(--clr-accent, #5b6ef5);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ai-car-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 0;
}

.ai-car-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5e8eb;
  background: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  color: #4e5968;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-sizing: border-box;
}

.ai-car-tag.is-on {
  border-color: rgba(91, 110, 245, 0.35);
  background: rgba(91, 110, 245, 0.1);
  color: var(--clr-accent, #5b6ef5);
  font-weight: 600;
}

.ai-car-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.ai-car-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  background: #f7f8fa;
  box-sizing: border-box;
}

.ai-car-item.is-top {
  border-color: rgba(91, 110, 245, 0.28);
  background: rgba(91, 110, 245, 0.06);
}

.ai-car-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #d1d6db;
  flex-shrink: 0;
  position: relative;
}

.ai-car-thumb.is-soft {
  background: #e5e8eb;
}

.ai-car-thumb::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
}

.ai-car-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.ai-car-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #191f28;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-car-price {
  font-size: 1.2rem;
  color: #4e5968;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ai-car-score {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ai-car-score.is-mid {
  color: #4e5968;
}

.ai-car-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid #eef0f2;
  background: #ffffff;
}

.ai-car-foot-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4e5968;
  letter-spacing: -0.02em;
}

.ai-car-foot-arrow {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #8b95a1;
  border-right: 1.5px solid #8b95a1;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ai-float-counsel {
  left: auto;
  right: calc(50% + 150px);
  bottom: 100px;
  width: 280px;
  z-index: 4;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* 상담 챗봇 카드 */
.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f2;
  background: #fafbfc;
}

.ai-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-accent, #5b6ef5);
  flex-shrink: 0;
  position: relative;
}

.ai-chat-avatar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-sizing: border-box;
}

.ai-chat-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.ai-chat-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ai-chat-status {
  font-size: 1.1rem;
  color: var(--clr-accent, #5b6ef5);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ai-chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 10px;
  background: #f7f8fa;
  min-height: 0;
}

.ai-chat-msg {
  display: flex;
  width: 100%;
  min-width: 0;
}

.ai-chat-msg--user {
  justify-content: flex-end;
}

.ai-chat-msg--bot {
  justify-content: flex-start;
}

.ai-chat-bubble {
  display: block;
  max-width: 92%;
  padding: 9px 11px;
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
  box-sizing: border-box;
}

.ai-chat-msg--user .ai-chat-bubble {
  border-radius: 12px 12px 4px 12px;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  color: #333d4b;
  text-align: left;
}

.ai-chat-msg--bot .ai-chat-bubble {
  border-radius: 12px 12px 12px 4px;
  background: rgba(91, 110, 245, 0.12);
  border: 1px solid rgba(91, 110, 245, 0.22);
  color: #191f28;
  text-align: left;
}

.ai-chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.ai-chat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(91, 110, 245, 0.28);
  background: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-sizing: border-box;
}

.ai-chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eef0f2;
  background: #ffffff;
}

.ai-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #f7f8fa;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #191f28;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  text-align: left;
}

.ai-chat-input.is-muted {
  color: #b0b8c1;
}

.ai-chat-send {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--clr-accent, #5b6ef5);
  flex-shrink: 0;
  position: relative;
}

.ai-chat-send::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.ai-float-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5e8eb;
  background: #f7f8fa;
  font-size: 1.3rem;
  color: #4e5968;
  letter-spacing: -0.02em;
}

.ai-float-card-title {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #191f28;
  line-height: 1.3;
  word-break: keep-all;
}

.ai-float-card-text {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #4e5968;
  word-break: keep-all;
}

.ai-float-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-float-list li {
  padding: 6px 10px;
  border-radius: 6px;
  background: #f2f4f6;
  font-size: 1.3rem;
  color: #333d4b;
}

.ai-float-match {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f8fa;
  border: 1px solid #eef0f2;
}

.ai-float-match-label {
  font-size: 1.3rem;
  color: #8b95a1;
}

.ai-float-match-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

/* 등장 연출 (호버 translate 없이 opacity만) */
.ai-float-main,
.ai-float-doc,
.ai-float-car,
.ai-float-counsel {
  opacity: 0;
  animation: ai-float-in 0.55s ease forwards;
}

.ai-float-main { animation-delay: 0.05s; }
.ai-float-doc { animation-delay: 0.18s; }
.ai-float-car { animation-delay: 0.3s; }
.ai-float-counsel { animation-delay: 0.4s; }

@keyframes ai-float-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 메인: 중앙 정렬 transform 유지 + opacity 등장 */
.ai-float-main {
  animation-name: ai-float-main-in;
}

@keyframes ai-float-main-in {
  from { opacity: 0; transform: translate(-50%, -50%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/*
 * 모바일 히어로 보조 카드
 * - 너무 진하면 “실제 페이지 UI”처럼 보임
 * - 너무 옅으면 안 보임 → 중간 톤 + 회전/축소로 장식 신호
 */
@keyframes ai-hero-side-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-float-main,
  .ai-float-doc,
  .ai-float-car,
  .ai-float-counsel {
    opacity: 1;
    animation: none;
  }

  .ai-hero-stage .ai-float-doc,
  .ai-hero-stage .ai-float-car,
  .ai-hero-stage .ai-float-counsel {
    opacity: 0.72;
  }

  .ai-hero-stage .ai-float-main {
    transform: none;
  }

  .ai-hero-stage .ai-float-doc {
    transform: rotate(3deg) scale(0.92);
  }

  .ai-hero-stage .ai-float-car {
    transform: rotate(-2.5deg) scale(0.92);
  }

  .ai-hero-stage .ai-float-counsel {
    transform: rotate(2deg) scale(0.92);
  }

  .ai-float-main {
    transform: translate(-50%, -50%);
  }
}

.lb-sub-sec {
  padding: 100px 0;
  background: #ffffff;
  box-sizing: border-box;
}

.lb-sub-sec-inner {
  max-width: 1400px;
  box-sizing: border-box;
}

.lb-sub-sec-title {
  margin: 0 0 50px;
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #191f28;
  word-break: keep-all;
  font-family: 'A2Z', 'Noto Sans KR', sans-serif;
}

.lb-sub-sec-lead {
  margin: -12px 0 24px;
  max-width: 640px;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #4e5968;
  word-break: keep-all;
}

/* ── 버튼 ── */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.ai-btn-primary {
  background: #191f28;
  color: #ffffff;
  border: 1px solid #191f28;
}

.ai-btn-primary:hover {
  background: #2c3440;
  border-color: #2c3440;
}

.ai-btn-line {
  background: #ffffff;
  color: #191f28;
  border: 1px solid #d1d6db;
}

.ai-btn-line:hover {
  border-color: #8b95a1;
}

/* ── 공통 흐름 (PC: 원래 캡슐+캡션 / 모바일: 원+설명 세로 중앙) ── */
.ai-flow-sec {
}

.ai-flow-heading {
  text-align: center;
  margin-bottom: 40px;
}

.ai-flow-heading-title {
  margin-bottom: 0;
  text-align: center;
}

.ai-flow-diagram {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/*
 * PC 원래 레이아웃:
 * - 두꺼운 캡슐이 원 전체를 감쌈
 * - 아래 캡션 4열 + stem
 */
.ai-flow-capsule {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 30px;
  border-radius: 999px;
  border: 3px solid var(--clr-accent);
  box-sizing: border-box;
}

.ai-flow-circles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 100px;
  width: 100%;
  align-items: center;
}

.ai-flow-circle-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* PC에서는 원 안 모바일 전용 본문 숨김 */
.ai-flow-body--mobile {
  display: none;
}

.ai-flow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--clr-accent);
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.ai-flow-circle-text {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-accent);
  line-height: 1.2;
  transition: color 0.6s ease;
}

.ai-flow-circle-item.is-active .ai-flow-circle {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}

.ai-flow-circle-item.is-active .ai-flow-circle-text {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .ai-flow-circle,
  .ai-flow-circle-text,
  .ai-flow-title {
    transition: none;
  }
}

.ai-flow-captions {
  list-style: none;
  margin: 0;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 100px;
  width: 100%;
}

.ai-flow-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}

.ai-flow-stem {
  display: block;
  width: 2px;
  height: 30px;
  margin: 0 auto;
  background: var(--clr-accent);
  flex-shrink: 0;
}

.ai-flow-body {
  padding-top: 10px;
  width: 100%;
  max-width: 200px;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.ai-flow-title {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #191f28;
  word-break: keep-all;
  transition: color 0.1s ease;
}

.ai-flow-caption.is-active .ai-flow-title {
  color: var(--clr-accent);
}

.ai-flow-desc {
  margin: 0;
  font-size: 1.8rem;
  color: #4e5968;
  word-break: keep-all;
}

/* ── 사례 ── */
.ai-case-sec { 
  background:#fcfcfc;
}

.ai-case {
  padding: 70px 0;
  border-top: 1px solid #e5e8eb;
}

.ai-case:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ai-case:last-of-type {
  padding-bottom: 0;
}

.ai-case-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* 좌: 설명·포인트 / 우: UI 쇼케이스 */
.ai-case-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px 50px;
  align-items: start;
}

.ai-case-copy {
  min-width: 0;
  padding-top: 12px;
}

/* 스플릿 좌측: 담백한 텍스트 리스트 (카드/번호 타임라인 지양) */
.ai-case--split .ai-case-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-template-columns: none;
  border-top: 1px solid #e5e8eb;
}

.ai-case--split .ai-case-points > li {
  display: block;
  margin: 0;
  padding: 20px 10px;
  border: none;
  border-bottom: 1px solid #e5e8eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ai-case--split .ai-case-point-label {
  display: block;
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--clr-accent);
  line-height: 1.3;
}

.ai-case--split .ai-case-point-text {
  display: block;
  font-size: 2.0rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.025em;
  color: #191f28;
  word-break: keep-all;
}

.ai-case--split .ai-case-showcase {
  margin-bottom: 0;
} 

.ai-case-title {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #191f28;
  word-break: keep-all;
}

.ai-case-title i {
  color:var(--clr-accent);
  font-size:2.8rem;
  transform:translateY(2px)
}

.ai-case-summary {
  margin: 0 0 20px;
  max-width: 760px;
  font-size: 1.6rem;
  line-height: 1.65;
  color: #333d4b;
  word-break: keep-all;
}

/* 여행 사례: 입력 폼 중심 + 주변 결과 팝업 */
.ai-case-showcase {
  position: relative;
  min-height: 450px;
  margin: 0;
  padding: 12px 4px 20px;
  box-sizing: border-box;
}

.ai-case-main {
  position: relative;
  z-index: 3;
  width: min(420px, 92%);
  margin: 0 auto;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.ai-case-main .ai-main-form {
  padding: 22px;
  gap: 14px;
}

.ai-case-float {
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  border: 1px solid #e5e8eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  /* 스크롤 진입 전: 숨김 */
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.ai-case-float.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/*
 * 분석 중 오버레이 — 사례별 역할 분리
 * report(여행) / match(중고차) / summary(상담)
 */
.ai-case-analyze {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(247, 248, 250, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.ai-case-analyze.is-on {
  opacity: 1;
  visibility: visible;
}

.ai-case-analyze-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(268px, 100%);
  padding: 16px 16px 14px;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  box-sizing: border-box;
  text-align: left;
  transform: translateY(6px) scale(0.98);
  transition: transform 0.22s ease;
}

.ai-case-analyze.is-on .ai-case-analyze-card {
  transform: translateY(0) scale(1);
}

.ai-case-analyze-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #8b95a1;
}

.ai-case-analyze-text {
  display: block;
  min-width: 0;
  width: 100%;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: #191f28;
  word-break: keep-all;
}

/* 여행: 리포트형 — 진행 바 */
.ai-case-analyze--report .ai-case-analyze-progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 2px;
  border-radius: 999px;
  background: #e5e8eb;
  overflow: hidden;
}

.ai-case-analyze--report .ai-case-analyze-progress > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--clr-accent, #5b6ef5);
  transition: width 0.35s ease;
}

/* 중고차: 매칭/스캔형 — 건수 + 스켈레톤 리스트 */
.ai-case-analyze--match .ai-case-analyze-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #4e5968;
}

.ai-case-analyze--match .ai-case-analyze-count > em {
  font-style: normal;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ai-case-analyze--match .ai-case-analyze-skel {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-case-analyze--match .ai-case-analyze-skel > li {
  height: 10px;
  border-radius: 4px;
  background: #eef0f2;
}

.ai-case-analyze--match .ai-case-analyze-skel > li:nth-child(1) {
  width: 100%;
}

.ai-case-analyze--match .ai-case-analyze-skel > li:nth-child(2) {
  width: 86%;
}

.ai-case-analyze--match .ai-case-analyze-skel > li:nth-child(3) {
  width: 72%;
}

.ai-case-analyze--match.is-on .ai-case-analyze-skel > li {
  animation: ai-case-analyze-skel 1.1s ease-in-out infinite;
}

.ai-case-analyze--match.is-on .ai-case-analyze-skel > li:nth-child(2) {
  animation-delay: 0.12s;
}

.ai-case-analyze--match.is-on .ai-case-analyze-skel > li:nth-child(3) {
  animation-delay: 0.24s;
}

/* 상담: 요약형 — 키워드 칩 순차 등장 */
.ai-case-analyze--summary .ai-case-analyze-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.ai-case-analyze--summary .ai-case-analyze-tags > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5e8eb;
  background: #f7f8fa;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #4e5968;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.ai-case-analyze--summary .ai-case-analyze-tags > span.is-on {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(91, 110, 245, 0.35);
  background: rgba(91, 110, 245, 0.1);
  color: var(--clr-accent, #5b6ef5);
}

@keyframes ai-case-analyze-skel {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-case-analyze,
  .ai-case-analyze-card {
    transition: none;
  }

  .ai-case-analyze.is-on .ai-case-analyze-card {
    transform: none;
  }

  .ai-case-analyze--report .ai-case-analyze-progress > i {
    transition: none;
  }

  .ai-case-analyze--match.is-on .ai-case-analyze-skel > li {
    animation: none;
    opacity: 0.75;
  }

  .ai-case-analyze--summary .ai-case-analyze-tags > span {
    transition: none;
  }
}

/* CTA 클릭 연출 */
.ai-case-main .ai-main-cta {
  position: relative;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.ai-case-main .ai-main-cta.is-pressed {
  transform: scale(0.96);
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.18);
  background: #4a5ad4;
}

.ai-case-main .ai-main-cta.is-busy::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ai-case-cta-spin 0.6s linear infinite;
  box-sizing: border-box;
}

.ai-case-main .ai-main-cta.is-busy {
  color: transparent;
}

@keyframes ai-case-cta-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-case-float {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .ai-case-main .ai-main-cta {
    transition: none;
  }

  .ai-case-main .ai-main-cta.is-busy::after {
    animation: none;
  }
}

/* 위험도 팝업 (간소화) */
.ai-case-float-risk {
  left: 0;
  top: -20px;
  width: min(280px, 42%);
  padding: 14px;
}

.ai-risk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ai-risk-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 110, 245, 0.12);
  color: var(--clr-accent, #5b6ef5);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.ai-risk-desc {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #8b95a1;
  word-break: keep-all;
}

.ai-risk-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ai-risk-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 6px solid #e5e8eb;
  border-top-color: var(--clr-accent, #5b6ef5);
  border-right-color: var(--clr-accent, #5b6ef5);
  box-sizing: border-box;
}

.ai-risk-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: #191f28;
  line-height: 1;
}

.ai-risk-den {
  font-size: 1.05rem;
  color: #8b95a1;
  margin-top: 2px;
}

.ai-risk-level {
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-accent, #5b6ef5);
}

.ai-risk-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-risk-bars > li {
  min-width: 0;
}

.ai-risk-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333d4b;
}

.ai-risk-bar-label em {
  font-style: normal;
  font-weight: 700;
  color: #8b95a1;
}

.ai-risk-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #e5e8eb;
  overflow: hidden;
}

.ai-risk-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--clr-accent, #5b6ef5);
}

.ai-risk-bar.is-mid > i {
  background: #8b95a1;
}

/* 일정 팝업 (간소화 타임라인) */
.ai-case-float-plan {
  right: 0;
  bottom: 8px;
  width: min(300px, 46%);
  padding: 14px 14px 12px;
}

.ai-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-plan-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 110, 245, 0.12);
  color: var(--clr-accent, #5b6ef5);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.ai-plan-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-plan-timeline > li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.ai-plan-day {
  flex-shrink: 0;
  width: 46px;
  padding-top: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.02em;
}

.ai-plan-card {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  background: #f7f8fa;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.ai-plan-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: keep-all;
}

.ai-plan-card-text {
  font-size: 1.2rem;
  line-height: 1.4;
  color: #4e5968;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* 중고차 사례: 매물 추천 / 상세 팝업 */
.ai-case-float-match {
  left: 0;
  bottom: 35px;
  width: min(280px, 44%);
  padding: 0;
}

.ai-case-float-detail {
  right: 0;
  top: 50px;
  width: min(270px, 42%);
  padding: 14px;
}

.ai-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f2;
  background: #fafbfc;
}

.ai-match-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-match-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 110, 245, 0.12);
  color: var(--clr-accent, #5b6ef5);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.ai-match-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-match-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  background: #f7f8fa;
  box-sizing: border-box;
}

.ai-match-item.is-top {
  border-color: rgba(91, 110, 245, 0.28);
  background: rgba(91, 110, 245, 0.06);
}

.ai-match-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #d1d6db;
  flex-shrink: 0;
  position: relative;
}

.ai-match-thumb.is-soft {
  background: #e5e8eb;
}

.ai-match-thumb::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 9px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
}

.ai-match-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.ai-match-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #191f28;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-match-price {
  font-size: 1.2rem;
  color: #4e5968;
  letter-spacing: -0.02em;
}

.ai-match-score {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ai-match-score.is-mid {
  color: #4e5968;
}

.ai-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 110, 245, 0.12);
  color: var(--clr-accent, #5b6ef5);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.ai-detail-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #eef0f2;
  box-sizing: border-box;
  text-align: left;
}

.ai-detail-car {
  font-size: 1.45rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-accent, #5b6ef5);
  letter-spacing: -0.02em;
}

.ai-detail-reasons {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.ai-detail-reasons > li {
  position: relative;
  padding-left: 12px;
  font-size: 1.25rem;
  line-height: 1.45;
  color: #333d4b;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.ai-detail-reasons > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-accent, #5b6ef5);
}

.ai-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5e8eb;
  background: #ffffff;
  font-size: 1.15rem;
  color: #4e5968;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* 상담 사례: 중앙 챗봇 + 사이드 어시스트 */
.ai-case-main--chat {
  width: min(380px, 94%);
  overflow: hidden;
}

.ai-case-chat {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: #ffffff;
}

.ai-case-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f2;
  background: #fafbfc;
}

.ai-case-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-accent, #5b6ef5);
  flex-shrink: 0;
  position: relative;
}

.ai-case-chat-avatar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-sizing: border-box;
}

.ai-case-chat-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.ai-case-chat-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-case-chat-status {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-accent, #5b6ef5);
}

.ai-case-chat-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  background: #f7f8fa;
  min-height: 200px;
  box-sizing: border-box;
}

.ai-case-chat-msg {
  display: flex;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ai-case-chat-msg.is-on {
  opacity: 1;
  transform: none;
}

.ai-case-chat-msg--user {
  justify-content: flex-end;
}

.ai-case-chat-msg--bot {
  justify-content: flex-start;
}

.ai-case-chat-bubble {
  display: block;
  max-width: 88%;
  padding: 10px 12px;
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
  box-sizing: border-box;
  text-align: left;
}

.ai-case-chat-msg--user .ai-case-chat-bubble {
  border-radius: 12px 12px 4px 12px;
  background: var(--clr-accent, #5b6ef5);
  color: #ffffff;
}

.ai-case-chat-msg--bot .ai-case-chat-bubble {
  border-radius: 12px 12px 12px 4px;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  color: #191f28;
}

.ai-case-chat-typing {
  display: none;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: #ffffff;
  border: 1px solid #e5e8eb;
}

.ai-case-chat-typing.is-on {
  display: inline-flex;
}

.ai-case-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0b8c1;
  animation: ai-case-chat-dot 1s ease-in-out infinite;
}

.ai-case-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-case-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ai-case-chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.ai-case-chat-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eef0f2;
  background: #ffffff;
}

.ai-case-chat-input {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #f7f8fa;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
}

.ai-case-chat-placeholder,
.ai-case-chat-typed {
  display: block;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-case-chat-placeholder {
  color: #b0b8c1;
}

.ai-case-chat-typed {
  display: none;
  color: #191f28;
}

.ai-case-chat-input.is-typed .ai-case-chat-placeholder {
  display: none;
}

.ai-case-chat-input.is-typed .ai-case-chat-typed {
  display: block;
}

.ai-case-chat-send {
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 64px;
  padding: 0 14px;
  margin: 0;
  font-size: 1.3rem;
}

.ai-case-main--chat .ai-main-cta.is-busy {
  color: transparent;
}

.ai-case-float-tips {
  left: 20px;
  top: 100px;
  width: min(250px, 40%);
  padding: 14px;
}

.ai-case-float-suggest {
  right: 50px;
  bottom: 12px;
  width: min(260px, 42%);
  padding: 14px;
}

.ai-tips-head,
.ai-suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-tips-title,
.ai-suggest-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.ai-tips-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 110, 245, 0.12);
  color: var(--clr-accent, #5b6ef5);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.ai-tips-list,
.ai-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ai-tips-list > li,
.ai-suggest-list > li {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #eef0f2;
  background: #f7f8fa;
  font-size: 1.25rem;
  line-height: 1.45;
  color: #333d4b;
  letter-spacing: -0.02em;
  word-break: keep-all;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .ai-case-chat-msg {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ai-case-chat-typing span {
    animation: none;
  }
}

.ai-case-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-case-points li {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
}

.ai-case-point-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4e5968;
}

.ai-case-point-text {
  display: block;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #191f28;
  word-break: keep-all;
}

/* ── 다른 분야 (흘러가는 마퀴 배너) ── */
.ai-more-sec {
  background: #ffffff;
  overflow: hidden;
}

.ai-more-heading {
  text-align: center;
  margin-bottom: 28px;
}

.ai-more-heading-title {
  margin-bottom: 0;
  text-align: center;
}

.ai-field-marquee {
  width: 100%;
  overflow: hidden;
  padding: 18px 0;
  box-sizing: border-box;
  /* 양끝 페이드 없이 flat (그라데이션 금지) */
}

.ai-field-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ai-field-marquee 32s linear infinite;
  will-change: transform;
}

.ai-field-marquee:hover .ai-field-marquee-track {
  animation-play-state: paused;
}

.ai-field-list {
  list-style: none;
  margin: 0;
  padding: 0 15px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ai-field-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ai-field-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 15px 40px;
  border-radius: 999px;
  border: 2px solid var(--clr-accent);
  background: #ffffff;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color:  var(--clr-accent);
  line-height: 1.25;
  word-break: keep-all;
  white-space: nowrap;
  box-sizing: border-box;
}

@keyframes ai-field-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-field-marquee-track {
    animation: none;
    transform: none;
  }

  .ai-field-marquee {
    overflow-x: auto;
  }

  .ai-field-marquee-track {
    width: auto;
    max-width: 100%;
  }

  .ai-field-list[aria-hidden='true'] {
    display: none;
  }
}

/* ── 사례 단계 데모 (모바일 전용 크롬, PC는 contents로 기존 플로트 유지) ── */
.ai-story-chrome {
  display: none;
}

.ai-story-viewport,
.ai-story-track,
.ai-story-slide {
  display: contents;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .lb-sub-hero {
    padding: 120px 0 52px;
  }

  .lb-sub-hero-title {
    font-size: 2.8rem;
  }

  .ai-hero-layout {
    gap: 36px;
  }

  .ai-hero-stage {
    min-height: 540px;
    max-width: 900px;
  }

  .ai-float-main {
    width: 400px;
  }

  .ai-main-form {
    padding: 22px;
    gap: 14px;
  }

  .ai-float-doc {
    left: calc(50% + 120px);
    width: 260px;
  }

  .ai-float-car {
    left: calc(50% + 120px);
    width: 250px;
  }

  .ai-float-counsel {
    right: calc(50% + 110px);
    width: 250px;
  }

  .ai-chat-bubble {
    font-size: 1.2rem;
  }

  .ai-float-ghost {
    opacity: 0.35;
  }

  .lb-sub-sec {
    padding: 72px 0;
  }

  .lb-sub-sec-title {
    margin-bottom: 36px;
    font-size: 3.2rem;
    line-height: 1.3;
  }

  .lb-sub-sec-lead {
    font-size: 1.55rem;
    margin-bottom: 28px;
  }

  .ai-flow-heading {
    margin-bottom: 32px;
  }

  .ai-case-title {
    font-size: 2.3rem;
  }

  .ai-case-title i {
    font-size: 2.4rem;
  }

  .ai-case--split .ai-case-point-label {
    font-size: 1.5rem;
  }

  .ai-case--split .ai-case-point-text {
    font-size: 1.85rem;
  }

  .ai-more-heading {
    margin-bottom: 24px;
  }

  .ai-flow-capsule {
    padding: 22px;
  }

  .ai-flow-circles {
    gap: 40px;
  }

  .ai-flow-captions {
    gap: 40px;
    padding: 0 22px;
  }

  .ai-flow-circle-text {
    font-size: 1.8rem;
  }

  .ai-flow-title {
    font-size: 1.8rem;
  }

  .ai-flow-desc {
    font-size: 1.5rem;
  }

  .ai-case-points {
    grid-template-columns: 1fr;
  }

  .ai-case-body {
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.4fr);
    gap: 20px 24px;
  }

  .ai-case-showcase {
    min-height: 460px;
  }

  .ai-case-float-risk {
    width: min(240px, 44%);
  }

  .ai-case-float-plan {
    width: min(250px, 46%);
  }

  .ai-field-marquee {
    padding: 16px 0;
  }

  .ai-field-marquee-track {
    animation-duration: 28s;
  }

  .ai-field-label {
    min-height: 40px;
    padding: 0 16px;
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .lb-sub-hero {
    padding: 120px 0 44px;
  }

  .lb-sub-hero-title {
    font-size: 2.4rem;
  }

  /* 히어로 CTA: 한 줄 2열 (세로 스택으로 스크롤만 늘리지 않음) */
  .lb-sub-hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .lb-sub-hero-actions .ai-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0 12px;
    font-size: 1.4rem;
  }

  /*
   * 히어로 스테이지 (모바일)
   * - 메인 폼이 주인공, 주변 카드·고스트는 “꾸밈 클러스터”
   * - 그림자 잘림: 작은 그림자 + 스테이지 안쪽 여백
   * - 보조 UI는 읽히는 페이지 UI처럼 보이지 않게 반투명·살짝 축소
   */
  .ai-hero-stage {
    position: relative;
    min-height: 0;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 20px 36px;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* 고스트: 장식 레이어 (형태만, 흐리게) */
  .ai-hero-stage .ai-float-ghost {
    display: block;
    opacity: 0.28;
    filter: blur(2px);
    z-index: 0;
    pointer-events: none;
  }

  .ai-hero-stage .ai-float-ghost-a {
    left: -4%;
    top: 8%;
    width: 120px;
    height: 100px;
    transform: rotate(-6deg);
  }

  .ai-hero-stage .ai-float-ghost-b {
    right: -2%;
    top: 4%;
    width: 100px;
    height: 92px;
    transform: rotate(5deg);
  }

  .ai-hero-stage .ai-float-ghost-c {
    right: 2%;
    bottom: 10%;
    top: auto;
    left: auto;
    width: 110px;
    height: 96px;
    transform: rotate(4deg);
  }

  .ai-hero-stage .ai-float-ghost-d {
    left: 0;
    bottom: 6%;
    top: auto;
    width: 108px;
    height: 88px;
    transform: rotate(-4deg);
  }

  .ai-hero-stage .ai-float {
    position: absolute;
    max-width: none;
    pointer-events: none;
    /* 큰 그림자 → 잘림. 얕은 그림자로 교체 */
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  /* 메인: 흐름 중앙, 살짝 좁혀 주변 카드가 보이게 */
  .ai-hero-stage .ai-float-main {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(300px, 86%);
    max-width: 100%;
    margin: 0 auto;
    transform: none;
    z-index: 5;
    pointer-events: auto;
    opacity: 0;
    animation: ai-float-in 0.55s ease forwards;
    animation-delay: 0.05s;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    background: #ffffff;
  }

  /* 보조 카드: 클러스터 장식 (페이지 본 UI처럼 보이지 않게) */
  .ai-hero-stage .ai-float-doc,
  .ai-hero-stage .ai-float-car,
  .ai-hero-stage .ai-float-counsel {
    display: flex;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    border-color: rgba(229, 232, 235, 0.9);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    animation: ai-hero-side-in 0.55s ease forwards;
  }

  .ai-hero-stage .ai-float-doc {
    top: 10px;
    right: 4px;
    left: auto;
    bottom: auto;
    width: min(148px, 40%);
    max-height: 132px;
    transform: rotate(3deg) scale(0.92);
    transform-origin: top right;
    animation-delay: 0.14s;
  }

  .ai-hero-stage .ai-float-car {
    top: auto;
    right: 2px;
    left: auto;
    bottom: 14px;
    width: min(152px, 42%);
    max-height: 148px;
    z-index: 3;
    transform: rotate(-2.5deg) scale(0.92);
    transform-origin: bottom right;
    animation-delay: 0.26s;
  }

  .ai-hero-stage .ai-float-counsel {
    top: auto;
    left: 2px;
    right: auto;
    bottom: 36px;
    width: min(146px, 40%);
    max-height: 148px;
    transform: rotate(2deg) scale(0.92);
    transform-origin: bottom left;
    animation-delay: 0.36s;
  }

  /* 보조 카드: 핵심 한 블록만 (장식 밀도) */
  .ai-hero-stage .ai-float-doc .ai-doc-points > li:nth-child(n + 2),
  .ai-hero-stage .ai-float-doc .ai-doc-insight,
  .ai-hero-stage .ai-float-doc .ai-doc-actions,
  .ai-hero-stage .ai-float-car .ai-car-item:nth-child(n + 2),
  .ai-hero-stage .ai-float-car .ai-car-foot,
  .ai-hero-stage .ai-float-counsel .ai-chat-msg:nth-child(n + 2),
  .ai-hero-stage .ai-float-counsel .ai-chat-suggest,
  .ai-hero-stage .ai-float-counsel .ai-chat-foot {
    display: none;
  }

  .ai-hero-stage .ai-float-doc .ai-doc-head,
  .ai-hero-stage .ai-float-car .ai-car-head,
  .ai-hero-stage .ai-float-counsel .ai-chat-head {
    padding: 8px 10px;
  }

  .ai-hero-stage .ai-float-doc .ai-doc-title,
  .ai-hero-stage .ai-float-car .ai-car-head-title,
  .ai-hero-stage .ai-float-counsel .ai-chat-title {
    font-size: 1.15rem;
  }

  .ai-hero-stage .ai-float-doc .ai-doc-sub,
  .ai-hero-stage .ai-float-counsel .ai-chat-status {
    font-size: 1.05rem;
  }

  .ai-main-form {
    padding: 16px;
    gap: 12px;
  }

  .ai-main-grid {
    gap: 10px 8px;
  }

  .ai-main-field {
    gap: 6px;
  }

  .ai-main-label {
    font-size: 1.2rem;
  }

  .ai-main-value {
    min-height: 36px;
    padding: 0 12px;
    font-size: 1.3rem;
  }

  .ai-main-select {
    min-height: 36px;
    padding: 0 12px;
    gap: 8px;
  }

  .ai-main-select-label,
  .ai-main-select-value {
    font-size: 1.3rem;
  }

  .ai-main-block {
    gap: 8px;
  }

  /* 여행 유형 칩: 모바일에서 덜 튀고 한 줄에 더 잘 들어가게 */
  .ai-main-chips {
    gap: 6px;
  }

  .ai-main-chip {
    min-height: 30px;
    padding: 0 11px;
    font-size: 1.2rem;
  }

  .ai-main-addline {
    gap: 6px;
  }

  .ai-main-addinput {
    min-height: 36px;
  }

  .ai-main-addbtn {
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 1.25rem;
  }

  .ai-main-checks {
    gap: 8px 12px;
  }

  .ai-main-check {
    font-size: 1.3rem;
    gap: 6px;
  }

  .ai-main-check i {
    width: 16px;
    height: 16px;
  }

  .ai-main-cta {
    min-height: 44px;
    margin-top: 2px;
    font-size: 1.45rem;
  }

  /* 섹션 공통 (모바일) */
  .lb-sub-sec {
    padding: 56px 0 52px;
  }

  .lb-sub-sec-inner.con-inner,
  .service-ai-page .lb-sub-sec-inner {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .lb-sub-sec-title {
    margin: 0 0 28px;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
  }

  .lb-sub-sec-lead {
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.55;
  }

  .ai-flow-heading {
    margin-bottom: 22px;
  }

  .ai-flow-heading-title,
  .ai-more-heading-title {
    margin-bottom: 0;
  }

  .ai-more-heading {
    margin-bottom: 22px;
  }

  /*
   * 모바일 A안 (PC 무관, ≤768만):
   * (● INPUT)  조건·내용 입력
   *            원하는 조건과 업무 내용을 입력합니다
   * → 원 | 제목+설명 한 행
   */
  .ai-flow-diagram .ai-flow-capsule {
    display: block;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .ai-flow-diagram .ai-flow-circles {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1.5px solid #e5e8eb;
    border-radius: 16px;
    background: #ffffff;
    box-sizing: border-box;
    align-items: stretch;
  }

  .ai-flow-diagram .ai-flow-circle-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px;
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    text-align: left;
    box-sizing: border-box;
    transition: background-color 0.25s ease;
  }

  .ai-flow-diagram .ai-flow-circle-item.is-active {
    background: rgba(91, 110, 245, 0.08);
  }

  .ai-flow-diagram .ai-flow-circle {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    flex: 0 0 64px;
    aspect-ratio: 1;
    border-width: 2px;
  }

  .ai-flow-diagram .ai-flow-circle-text {
    font-size: 1.15rem !important;
    letter-spacing: -0.04em;
  }

  /* PC 하단 캡션 숨김 */
  .ai-flow-diagram .ai-flow-captions {
    display: none !important;
  }

  /* 원 오른쪽 본문 */
  .ai-flow-diagram .ai-flow-body--mobile {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    margin-top: 0;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
  }

  .ai-flow-diagram .ai-flow-body--mobile .ai-flow-title {
    margin: 0 0 4px;
    font-size: 1.7rem;
    line-height: 1.35;
    word-break: keep-all;
  }

  .ai-flow-diagram .ai-flow-circle-item.is-active .ai-flow-body--mobile .ai-flow-title {
    color: var(--clr-accent, #5b6ef5);
  }

  .ai-flow-diagram .ai-flow-body--mobile .ai-flow-desc {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.45;
    word-break: keep-all;
    color: #4e5968;
  }

  .ai-case {
    padding: 32px 0;
  }

  .ai-case-head {
    margin-bottom: 16px;
  }

  .ai-case-title {
    font-size: 2.15rem;
    line-height: 1.35;
  }

  .ai-case-title i {
    font-size: 2.2rem;
  }

  .ai-case-copy {
    padding-top: 4px;
  }

  .ai-case--split .ai-case-points > li {
    padding: 16px 4px;
  }

  .ai-case--split .ai-case-point-label {
    margin-bottom: 6px;
    font-size: 1.45rem;
  }

  .ai-case--split .ai-case-point-text {
    font-size: 1.7rem;
    line-height: 1.5;
  }

  .ai-field-label {
    min-height: 40px;
    font-size: 1.4rem;
    padding: 0 16px;
  }

  .ai-case-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /*
   * 사례 쇼케이스 모바일
   * - 중앙 폼 + 주변 결과 플로트 유지
   * - 플로트 최소 폭 확보 + 내부 스택/타이포 반응형 (글 깨짐 방지)
   */
  .ai-case-showcase[data-story] .ai-story-chrome {
    display: none !important;
  }

  .ai-case-showcase[data-story] .ai-story-viewport,
  .ai-case-showcase[data-story] .ai-story-track,
  .ai-case-showcase[data-story] .ai-story-slide {
    display: contents;
  }

  .ai-case-showcase {
    position: relative;
    min-height: 0;
    padding: 20px 0 24px;
    overflow: visible;
  }

  .ai-case-main {
    position: relative;
    z-index: 3;
    width: min(300px, 84%);
    margin: 0 auto;
    border-radius: 14px;
  }

  .ai-case-main--chat {
    width: min(300px, 86%);
  }

  .ai-case-main .ai-main-form {
    padding: 14px;
    gap: 10px;
  }

  .ai-case-main--chat .ai-case-chat {
    min-height: 260px;
  }

  .ai-case-main--chat .ai-case-chat-log {
    min-height: 140px;
    padding: 10px;
    gap: 8px;
  }

  .ai-case-float {
    position: absolute;
    z-index: 4;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  /* 좌측 결과 카드 */
  .ai-case-float-risk,
  .ai-case-float-match,
  .ai-case-float-tips {
    left: 0;
    width: min(200px, 54vw);
  }

  .ai-case-float-risk {
    top: 0;
    padding: 12px;
  }

  .ai-case-float-match {
    bottom: 2%;
    top: auto;
    padding: 0;
  }

  .ai-case-float-tips {
    top: 6%;
    padding: 12px;
  }

  /* 우측 결과 카드 */
  .ai-case-float-plan,
  .ai-case-float-detail,
  .ai-case-float-suggest {
    right: 0;
    left: auto;
    width: min(210px, 56vw);
  }

  .ai-case-float-plan {
    bottom: 0;
    top: auto;
    padding: 12px;
  }

  .ai-case-float-detail {
    top: 4%;
    padding: 12px;
  }

  .ai-case-float-suggest {
    bottom: 0;
    top: auto;
    padding: 12px;
  }

  /* ── 공통: 제목/배지 줄바꿈 허용 ── */
  .ai-case-float .ai-risk-head,
  .ai-case-float .ai-plan-head,
  .ai-case-float .ai-match-head,
  .ai-case-float .ai-detail-head,
  .ai-case-float .ai-tips-head,
  .ai-case-float .ai-suggest-head {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }

  .ai-case-float .ai-risk-title,
  .ai-case-float .ai-plan-title,
  .ai-case-float .ai-match-title,
  .ai-case-float .ai-detail-title,
  .ai-case-float .ai-tips-title,
  .ai-case-float .ai-suggest-title {
    font-size: 1.35rem;
    line-height: 1.3;
    word-break: keep-all;
  }

  .ai-case-float .ai-risk-badge,
  .ai-case-float .ai-plan-badge,
  .ai-case-float .ai-match-count,
  .ai-case-float .ai-detail-badge,
  .ai-case-float .ai-tips-badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 1.05rem;
  }

  /* ── 위험도 ── */
  .ai-case-float .ai-risk-desc {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .ai-case-float .ai-risk-body {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ai-case-float .ai-risk-score {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-width: 5px;
  }

  .ai-case-float .ai-risk-num {
    font-size: 2rem;
  }

  .ai-case-float .ai-risk-den {
    font-size: 1.05rem;
  }

  .ai-case-float .ai-risk-level {
    font-size: 1.1rem;
  }

  .ai-case-float .ai-risk-bars {
    width: 100%;
    gap: 8px;
  }

  .ai-case-float .ai-risk-bar-label {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  /* ── 일정: DAY + 카드 세로 스택 (좁은 폭 가로 깨짐 방지) ── */
  .ai-case-float .ai-plan-timeline {
    gap: 8px;
  }

  .ai-case-float .ai-plan-timeline > li {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .ai-case-float .ai-plan-timeline > li:nth-child(n + 3) {
    display: none;
  }

  .ai-case-float .ai-plan-day {
    width: auto;
    padding-top: 0;
    font-size: 1.15rem;
  }

  .ai-case-float .ai-plan-card {
    padding: 8px 10px;
  }

  .ai-case-float .ai-plan-card-title {
    font-size: 1.3rem;
    line-height: 1.3;
    word-break: keep-all;
  }

  .ai-case-float .ai-plan-card-text {
    font-size: 1.2rem;
    line-height: 1.4;
    word-break: keep-all;
  }

  /* ── 매물 리스트 ── */
  .ai-case-float .ai-match-list {
    padding: 8px 10px 10px;
    gap: 6px;
  }

  .ai-case-float .ai-match-item {
    padding: 8px;
    gap: 8px;
  }

  .ai-case-float .ai-match-item:nth-child(n + 3) {
    display: none;
  }

  .ai-case-float .ai-match-thumb {
    width: 28px;
    height: 28px;
  }

  .ai-case-float .ai-match-name {
    font-size: 1.2rem;
  }

  .ai-case-float .ai-match-price {
    font-size: 1.15rem;
  }

  .ai-case-float .ai-match-score {
    font-size: 1.25rem;
  }

  /* ── 상세 ── */
  .ai-case-float .ai-detail-hero {
    padding: 10px;
    margin-bottom: 8px;
  }

  .ai-case-float .ai-detail-car {
    font-size: 1.35rem;
    word-break: keep-all;
  }

  .ai-case-float .ai-detail-price {
    font-size: 1.4rem;
  }

  .ai-case-float .ai-detail-reasons {
    gap: 5px;
    margin-bottom: 8px;
  }

  .ai-case-float .ai-detail-reasons > li {
    font-size: 1.2rem;
    line-height: 1.4;
    word-break: keep-all;
    padding-left: 10px;
  }

  .ai-case-float .ai-detail-tags {
    gap: 5px;
  }

  .ai-case-float .ai-detail-tags span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 1.1rem;
  }

  /* ── 상담 포인트 / 추천 질문 ── */
  .ai-case-float .ai-tips-list,
  .ai-case-float .ai-suggest-list {
    gap: 6px;
  }

  .ai-case-float .ai-tips-list > li,
  .ai-case-float .ai-suggest-list > li {
    font-size: 1.2rem;
    line-height: 1.4;
    word-break: keep-all;
  }

  .ai-field-marquee {
    padding: 16px 0;
  }

  .ai-field-marquee-track {
    animation-duration: 24s;
  }

  .ai-field-list {
    gap: 10px;
  }
}

/* 아주 좁은 폭 */
@media (max-width: 400px) {
  .ai-hero-stage {
    padding: 22px 14px 28px;
  }

  .ai-hero-stage .ai-float-main {
    width: min(280px, 88%);
  }

  .ai-hero-stage .ai-float-doc,
  .ai-hero-stage .ai-float-car,
  .ai-hero-stage .ai-float-counsel {
    width: min(128px, 38%);
    max-height: 120px;
  }

  .lb-sub-hero-actions {
    max-width: 100%;
  }

  .lb-sub-hero-actions .ai-btn {
    padding: 0 10px;
    font-size: 1.35rem;
  }

  .ai-case-main {
    width: min(280px, 86%);
  }

  .ai-case-main--chat {
    width: min(280px, 88%);
  }

  /* 아주 좁은 폭: 플로트는 더 줄이지 말고 내부 밀도만 조절 */
  .ai-case-float-risk,
  .ai-case-float-match,
  .ai-case-float-tips {
    width: min(188px, 52vw);
  }

  .ai-case-float-plan,
  .ai-case-float-detail,
  .ai-case-float-suggest {
    width: min(196px, 54vw);
  }

  .ai-case-float .ai-risk-desc {
    -webkit-line-clamp: 2;
    font-size: 1.15rem;
  }

  .ai-case-float .ai-plan-card-title {
    font-size: 1.25rem;
  }

  .ai-case-float .ai-plan-card-text {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .lb-sub-hero-title {
    font-size: 2.2rem;
  }

  .lb-sub-sec {
    padding: 48px 0 44px;
  }

  .lb-sub-sec-title {
    font-size: 2.4rem;
    margin-bottom: 24px;
  }

  .ai-case-title {
    font-size: 2rem;
  }

  .ai-case--split .ai-case-point-text {
    font-size: 1.6rem;
  }

  /* 히어로 버튼은 한 줄 유지 (전역 .ai-btn width:100% 금지) */
  .lb-sub-hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .lb-sub-hero-actions .ai-btn {
    width: auto;
    flex: 1 1 0;
  }
}
