/** @format */

@import url("./inter-font-face.css");

/* 스크린 리더 전용 (시각적으로 숨김, 포커스 가능) */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Toss-like clean mobile web theme */
:root {
  --bg: #f2f4f6;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --text: #191f28;
  --muted: #6b7684;
  --muted2: #8b95a1;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.14);
  --ink: #191f28;
  --accentA: #3182f6;
  --accentB: #2aa4ff;
  --accentC: #5aa7ff;
  --danger: #ef4444;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(0, 23, 51, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 23, 51, 0.06);
  --shadow-inset: none;
  --ring: 0 0 0 4px rgba(49, 130, 246, 0.18);

  font-family:
    "Inter",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

:root {
  --bg: #f2f4f6;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --text: #191f28;
  --muted: #6b7684;
  --muted2: #8b95a1;
  /* 테두리가 너무 연하면 모바일에서 안 보입니다. */
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.14);
  --ink: #191f28;
  --accentA: #3182f6; /* toss blue */
  --accentB: #2aa4ff; /* light blue */
  --accentC: #5aa7ff; /* softer */
  --danger: #ef4444;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  /* 토스 느낌: "거의 안 보이는" 아주 미세한 깊이 */
  --shadow-sm: 0 1px 2px rgba(0, 23, 51, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 23, 51, 0.06);
  --shadow-inset: none;
  --ring: 0 0 0 4px rgba(49, 130, 246, 0.18);

  font-family:
    "Inter",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

* {
  box-sizing: border-box;
}

h1,
h2,
p {
  margin: 0;
}

.page {
  background: var(--bg);
  color: var(--text);
}

.stack {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100svh;
  padding: 14px 0 80px; /* 하단 도크 여유 */
}

/* 상단 네비: 로고 좌측 + CTA 우측, 스크롤 시 sticky */
.siteNav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px 10px;
  margin: 0 14px 4px;
  background: transparent;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-radius 0.22s ease,
    backdrop-filter 0.22s ease,
    -webkit-backdrop-filter 0.22s ease;
}

.siteNav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  border-radius: 8px;
  flex-shrink: 0;
}
.siteNav__brand:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.siteNav__logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.siteNav__cta {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #2f6df6, #4f8cff);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 14px rgba(47, 109, 246, 0.28);
}
.siteNav__cta:focus-visible {
  outline: none;
  box-shadow:
    var(--ring),
    0 4px 14px rgba(47, 109, 246, 0.28);
}
.siteNav__cta:active {
  transform: translateY(1px);
}

.heroSection {
  margin: 0;
  background: transparent;
  padding: 4px 14px 10px;
}

.heroSection::after {
  content: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ghostBtn {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  box-shadow: none;
}
.ghostBtn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.heroBody {
  padding: 10px 0 0;
  text-align: left;
}

.heroPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #1d4ed8;
  border: 1px solid rgba(49, 130, 246, 0.2);
  background: rgba(49, 130, 246, 0.1);
  box-shadow: none;
}

.heroTitle {
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  color: var(--text);
  text-shadow: none;
}

.heroSub {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.segRow {
  display: none;
}

.heroActions {
  margin-top: 14px;
}

.heroPrimary {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: #0b1220;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.heroPrimary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.heroPrimary:active {
  transform: translateY(1px);
}

/* AutoShowcase-like hero extras */
.heroChips {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chipBtn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.chipBtn:active {
  transform: translateY(1px);
}

.heroMedia {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  padding: 18px 0 14px;
}
.heroMediaCar {
  height: 180px;
  width: 90%;
  margin: 0 auto;
  border-radius: 16px;
  background:
    radial-gradient(120px 60px at 50% 55%, rgba(0, 0, 0, 0.06), transparent 65%),
    linear-gradient(135deg, #f3f4f6, #e5e7eb);
  position: relative;
  overflow: hidden;
}
.heroMediaCar::after {
  content: "";
  position: absolute;
  inset: -30px -40px auto -40px;
  height: 120px;
  background: linear-gradient(90deg, transparent, rgba(49, 130, 246, 0.18), transparent);
  transform: rotate(-6deg);
}

.heroMediaCar.hasImg {
  background: #ffffff;
}
.heroMediaCar.hasImg::after {
  display: none;
}
.heroMediaCar.hasImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heroServiceOverview {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.heroServiceOverview__item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.heroServiceOverview__item strong {
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.2px;
}

.heroServiceOverview__item span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.proofSection {
  padding: 12px 0 18px;
  background: transparent;
}

/* NEW sections base spacing */
.benefitSection,
.feedSection,
.faqSection {
  padding: 12px 0 18px;
  background: transparent;
}

.sectionBox {
  margin: 0 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: none;
}

.sectionBox .sectionTitleRow {
  padding: 0;
  margin-bottom: 10px;
}

/* 기존 내부 박스들은 플랫 리스트로 */
.proofTable {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.proofTable::after {
  content: none;
}
.proofRow {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.proofRow:first-child {
  border-top: none;
}

.stepCard,
.benefitCard,
.feedCard,
.faqList,
.featuredBanner {
  border: none;
  background: transparent;
  box-shadow: none;
}

.steps {
  gap: 0;
}
.stepCard {
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 0;
}
.stepCard:first-child {
  border-top: none;
}

.benefitCards,
.feedList {
  gap: 0;
}
.benefitCard,
.feedCard {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.benefitCard:first-child,
.feedCard:first-child {
  border-top: none;
}

.faqList {
  margin-top: 0;
  border-radius: 0;
}
.faqItem {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.faqItem:first-child {
  border-top: none;
}
.faqA {
  padding: 0 0 12px;
  border-top: none;
}

/* Benefit highlights */
.benefitCards {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.benefitCard {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: var(--shadow-sm);
  padding: 12px 12px 14px;
}
.benefitTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.benefitBadge {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  color: var(--muted);
  border: 1px solid var(--border);
  background: #ffffff;
}
.benefitIcon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(49, 130, 246, 0.1);
  border: 1px solid rgba(49, 130, 246, 0.18);
}
.benefitTitle {
  margin-top: 10px;
  font-weight: 1100;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.benefitDesc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(10, 15, 30, 0.58);
}

/* Feed cards */
.feedList {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.feedCard {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
}
.feedThumb {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(49, 130, 246, 0.12);
  border: 1px solid rgba(49, 130, 246, 0.16);
  box-shadow: none;
}
.feedThumb.alt {
  background: rgba(49, 130, 246, 0.1);
}
.feedThumb.alt2 {
  background: rgba(49, 130, 246, 0.08);
}
.feedTitle {
  font-size: 13px;
  font-weight: 1100;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.feedMeta {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(10, 15, 30, 0.54);
}
.feedCta {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: rgba(49, 130, 246, 0.1);
  color: #1d4ed8;
  font-weight: 1100;
}
.feedCta:active {
  transform: translateY(1px);
}

/* FAQ accordion */
.faqList {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faqItem {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
}
.faqQ {
  font-size: 13px;
  font-weight: 1100;
  letter-spacing: -0.2px;
  text-align: left;
}
.faqChevron {
  transition: transform 220ms ease;
}
.faqItem[aria-expanded="true"] .faqChevron {
  transform: rotate(180deg);
}
.faqA {
  padding: 0 12px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.sectionTitleRow {
  text-align: left;
  margin: 0 0 10px;
  padding: 0 14px;
}

.sectionTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.proofTable {
  margin: 0 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.proofRow {
  display: grid;
  grid-template-columns: 86px 1fr 130px;
  gap: 10px;
  padding: 12px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  align-items: center;
  will-change: transform;
}

/* live feed: 새 행이 추가되는 느낌 */
.proofRow.isNew {
  animation: liveIn 560ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

/* 기존 행들이 아래로 '부드럽게' 밀려나는 FLIP 애니메이션 */
.proofRow.isMove {
  transition: transform 1050ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes liveIn {
  0% {
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(124, 58, 237, 0.08);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    background: transparent;
  }
}

.proofTable {
  position: relative;
  overflow: hidden;
}
.proofTable::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    transparent 26%,
    transparent 76%,
    rgba(255, 255, 255, 0.22)
  );
  mix-blend-mode: soft-light;
}

/* 세로 롤링(물레방아 느낌): 트랙을 위로 무한 이동 */
.proofTable.isRoll {
  /* 3줄 정도만 보이게(현황 카드처럼) */
  max-height: 156px;
}

.liveTrack {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
}

@keyframes liveLoopUp {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, calc(-1 * var(--live-shift, 156px)), 0);
  }
}

.proofTable.isRoll .liveTrack {
  animation: liveLoopUp var(--live-duration, 14s) linear infinite;
}

.proofTable.isPaused .liveTrack {
  animation-play-state: paused;
}
.proofRow:first-child {
  border-top: none;
}

.proofCell {
  font-size: 12px;
  color: rgba(10, 15, 30, 0.74);
}
.proofCell.label {
  color: rgba(10, 15, 30, 0.52);
}

/* 앱 리스트 느낌: 왼쪽에 작은 썸네일 점/칩 */
.proofCell.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proofCell.label::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background:
    radial-gradient(10px 10px at 30% 30%, rgba(124, 58, 237, 0.55), transparent 60%),
    radial-gradient(10px 10px at 70% 40%, rgba(6, 182, 212, 0.45), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.12);
}
.proofCell.highlight {
  font-weight: 900;
  color: var(--accentA);
}
.proofCell.meta {
  text-align: right;
  color: rgba(10, 15, 30, 0.44);
}

/*
 * 상담 문의(proofSection.isInView): 기본은 항상 기존 3열 그리드 유지.
 * 작은 뷰포트에서만 컨테이너 쿼리를 켜고, 테이블 실제 폭이 매우 좁을 때(깨짐 구간)에만
 * 라벨 1행 + 하이라이트·메타 2행으로 전환.
 */
@media (max-width: 520px) {
  .proofSection.isInView .proofTable {
    container-type: inline-size;
    container-name: proofFeed;
  }

  @container proofFeed (max-width: 360px) {
    .proofSection.isInView .proofRow {
      display: grid !important;
      grid-template-columns: 1fr auto !important;
      grid-template-rows: auto auto !important;
      column-gap: 10px !important;
      row-gap: 6px !important;
      align-items: center !important;
    }

    .proofSection.isInView .proofCell.label {
      grid-column: 1 / -1 !important;
      grid-row: 1 !important;
      align-self: start !important;
    }

    .proofSection.isInView .proofCell.highlight {
      grid-column: 1 !important;
      grid-row: 2 !important;
      min-width: 0 !important;
      text-align: left !important;
    }

    .proofSection.isInView .proofCell.meta {
      grid-column: 2 !important;
      grid-row: 2 !important;
      text-align: right !important;
      justify-self: end !important;
    }
  }
}

/* 컨테이너 쿼리 미지원: 좁은 기기에서만(대략 동일 깨짐 구간) 폴백 */
@supports not (container-type: inline-size) {
  @media (max-width: 360px) {
    .proofSection.isInView .proofRow {
      display: grid !important;
      grid-template-columns: 1fr auto !important;
      grid-template-rows: auto auto !important;
      column-gap: 10px !important;
      row-gap: 6px !important;
      align-items: center !important;
    }

    .proofSection.isInView .proofCell.label {
      grid-column: 1 / -1 !important;
      grid-row: 1 !important;
      align-self: start !important;
    }

    .proofSection.isInView .proofCell.highlight {
      grid-column: 1 !important;
      grid-row: 2 !important;
      min-width: 0 !important;
      text-align: left !important;
    }

    .proofSection.isInView .proofCell.meta {
      grid-column: 2 !important;
      grid-row: 2 !important;
      text-align: right !important;
      justify-self: end !important;
    }
  }
}

.processSection {
  background: transparent;
  padding: 12px 0 18px;
}

.steps {
  margin-top: 10px;
  display: grid;
  gap: 14px;
}

.stepCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.stepNum {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 1000;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.1);
}
.stepNum.accentBlue {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(124, 58, 237, 0.1));
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.2);
}
.stepNum.accentGold {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(245, 158, 11, 0.12));
  color: #166534;
  border-color: rgba(34, 197, 94, 0.2);
}

/* 단계 카드 타이포: .stepDesc(16px) 기준, 예전 13/12 비율로 제목·번호 정렬 */
.stepTitle {
  font-weight: 900;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.stepDesc {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(10, 15, 30, 0.56);
}

.productSection {
  background: transparent;
  padding: 12px 0 18px;
}

.featuredBanner {
  margin: 12px 14px 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.featuredMedia {
  height: 120px;
  background:
    radial-gradient(ellipse 120% 80% at 20% 20%, rgba(47, 109, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 70% at 85% 60%, rgba(139, 92, 246, 0.22), transparent 50%),
    linear-gradient(145deg, rgba(49, 130, 246, 0.2), rgba(49, 130, 246, 0.05));
}

.featuredLive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #2563eb;
  text-transform: uppercase;
}
.featuredLive__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: featuredPulse 2s ease-in-out infinite;
}
@keyframes featuredPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.92);
  }
}

.sectionTitleRow--product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.productLiveBadge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.featuredBody {
  padding: 12px 12px 14px;
}

.featuredTitle {
  font-weight: 1000;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.featuredSub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.featuredBtn {
  margin-top: 10px;
  height: 40px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(49, 130, 246, 0.22);
  background: rgba(49, 130, 246, 0.1);
  color: #1d4ed8;
  font-weight: 1000;
}
.featuredBtn:active {
  transform: translateY(1px);
}

.tiny {
  font-size: 14px;
}

.hScroll {
  margin-top: 12px;
  padding: 0 14px;
  overflow: hidden;
  padding-bottom: 6px;
  border-radius: 0;
}

/* 상품 레일: 가로 무한 루프 + 스냅 (isAuto 시 transform 애니메이션) */
#productRail {
  overflow: hidden;
  padding: 0;
  margin-top: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
#productRail .railTrack {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  padding: 6px 4px 12px;
  will-change: transform;
  /* 모바일 합성 레이어에서 루프 transform이 끊기지 않도록 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#productRail .productCard {
  width: 226px;
  flex: 0 0 265px;
  scroll-snap-align: start;
}
#productRail .productThumb {
  height: 138px;
  border-radius: 16px;
}

/* 앱 느낌: 자동 슬라이드 중에도 부드러운 관성 느낌 */
/* .hScroll.isAuto {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
} */

.railTrack {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-bottom: 6px;
  will-change: transform;
}

.productCard {
  width: 196px;
  flex: 0 0 196px;
}

@keyframes railLoopLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--rail-shift, 320px)), 0, 0);
  }
}

/* 기본: 왼쪽으로 부드럽게 무한 루프 */
.hScroll.isAuto .railTrack {
  animation: railLoopLeft var(--rail-duration, 22s) linear infinite;
}

.hScroll.isPaused .railTrack {
  animation-play-state: paused;
}

/* 모바일·좁은 화면: transform 무한 루프 대신 네이티브 가로 스크롤(터치 팬) */
@media (max-width: 768px) {
  #productRail.hScroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  #productRail .railTrack {
    animation: none !important;
    transform: none !important;
    will-change: auto;
    -webkit-transform: none;
  }
}

.hScroll::-webkit-scrollbar {
  height: 8px;
}
.hScroll::-webkit-scrollbar-thumb {
  background: rgba(49, 130, 246, 0.35);
  border-radius: 999px;
}
.hScroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.productCard {
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.productCard--clickable {
  cursor: pointer;
  text-align: left;
}
.productCard--clickable:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-sm);
}
.productCard:active {
  transform: translateY(1px);
}

.productThumb {
  height: 128px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f2f4f6, #e5e8eb);
  /* border: 1px solid var(--border); */
  box-shadow: none;
}

.productThumb.hasImg {
  background: #ffffff !important;
  background-image: var(--img) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.productThumb.dark {
  background: linear-gradient(135deg, #111827, #334155);
  border-color: rgba(255, 255, 255, 0.18);
}

.productName {
  margin-top: 10px;
  font-weight: 900;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.2px;
}
.productTag {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(10, 15, 30, 0.56);
}

.formSection {
  background: transparent;
  padding: 12px 0 18px;
}

.formPanel {
  margin: 0 14px;
  border-radius: 24px;
  background: linear-gradient(165deg, #ffffff 0%, #f5f8fc 48%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.09);
  padding: 18px 16px 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 12px 32px rgba(15, 23, 42, 0.07),
    0 4px 10px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.formPanel::before {
  content: none;
}

.formHead {
  text-align: left;
  padding: 2px 0 10px;
}

.formTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text);
}

.pillTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 14px;
}

/* 5개 선택(보증금·선납금·나이순번·신용도): 2열 + 마지막 행 전체 폭 */
.pillTabs--five {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillTabs--five .pillTab:nth-child(5) {
  grid-column: 1 / -1;
}

@media (min-width: 420px) {
  .pillTabs--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillTabs--five .pillTab:nth-child(5) {
    grid-column: 1 / -1;
  }
}

/* 선택 탭: 캡슐형 + 살짝 볼록(누르고 싶은 느낌) */
.pillTab {
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 5px 10px rgba(15, 23, 42, 0.07),
    0 2px 0 rgba(15, 23, 42, 0.04);
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    filter 0.16s ease;
}
.pillTab:hover {
  filter: brightness(1.02);
}
.pillTab:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 2px 5px rgba(15, 23, 42, 0.08);
}
.pillTab.isActive {
  color: #ffffff;
  border-color: rgba(25, 75, 190, 0.5);
  background: linear-gradient(180deg, #6b9fff 0%, #3b7df7 38%, #2563eb 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 6px 14px rgba(47, 109, 246, 0.42),
    0 3px 0 rgba(29, 78, 200, 0.45);
}
.pillTab.isActive:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 2px 8px rgba(47, 109, 246, 0.35),
    0 1px 0 rgba(29, 78, 200, 0.4);
}

.formBody {
  display: grid;
  gap: 0;
}

/* 상담 폼: 폭에 따라 연락처 줄 배치(컨테이너 쿼리) */
#leadForm.formBody {
  container-type: inline-size;
  container-name: leadForm;
}

/* 단계별 공개: formSection isInView 후 1단계부터, 선택 시 다음 단계 애니메이션 */
.formBody .formStep {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(14px);
  margin: 0;
  padding: 0;
  transition:
    max-height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease 0.06s,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    margin-bottom 0.35s ease;
  pointer-events: none;
}

.formBody .formStep.isRevealed {
  max-height: 5600px;
  opacity: 1;
  transform: none;
  margin-bottom: 14px;
  padding-top: 2px;
  padding-bottom: 2px;
  pointer-events: auto;
}

/* 노출된 단계끼리 인접: 대각선 + · + 십자 장식 구분선 (HMI 스타일) */
.formBody .formStep.isRevealed + .formStep.isRevealed {
  border-top: none;
  padding-top: 16px;
  margin-top: 4px;
}

.formBody .formStep.isRevealed + .formStep.isRevealed::before {
  content: "";
  display: block;
  width: min(220px, 92%);
  height: 22px;
  margin: 0 auto 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-62 -10 124 20' fill='none'%3E%3Cg stroke='%234a5568' stroke-width='1.15' stroke-linecap='round'%3E%3Cg transform='rotate(-28)'%3E%3Cline x1='-54' y1='0' x2='-40' y2='0'/%3E%3Ccircle cx='-34' cy='0' r='1.55' fill='%234a5568' stroke='none'/%3E%3Cline x1='-26' y1='0' x2='-8' y2='0'/%3E%3Cline x1='0' y1='-3.2' x2='0' y2='3.2'/%3E%3Cline x1='-3.2' y1='0' x2='3.2' y2='0'/%3E%3Cline x1='8' y1='0' x2='24' y2='0'/%3E%3Ccircle cx='30' cy='0' r='1.55' fill='%234a5568' stroke='none'/%3E%3Cline x1='36' y1='0' x2='52' y2='0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.88;
}

.formStep__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.formStep__label {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.35px;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .formBody .formStep {
    transition: none !important;
    transform: none !important;
  }
}

.fieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.phoneInlineRow {
  display: grid;
  grid-template-columns: 68px minmax(78px, 1fr) minmax(78px, 1fr) 78px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.phoneSeg {
  text-align: center;
  padding: 0 8px;
  min-width: 0;
}

.phoneVerifyBtn {
  min-width: 78px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
}

/* 폼 카드가 좁을 때: 번호 3칸은 1행, 인증 버튼은 아래 행 전체 폭 */
@container leadForm (max-width: 400px) {
  .phoneInlineRow {
    grid-template-columns: minmax(56px, 76px) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  .phoneInlineRow > .phoneVerifyBtn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  /* 인증번호 + 확인: 한 줄이면 버튼이 잘리거나 가려짐 → 입력 아래 전체 폭 */
  #verify_code_panel .inputWithBtn {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #verify_code_panel .inputWithBtn > .fieldActionBtn {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #verify_code_panel .inputWithBtn > input {
    width: 100%;
  }
}

@media (max-width: 400px) {
  #leadForm .phoneInlineRow {
    grid-template-columns: minmax(56px, 76px) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  #leadForm .phoneInlineRow > .phoneVerifyBtn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #leadForm #verify_code_panel .inputWithBtn {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #leadForm #verify_code_panel .inputWithBtn > .fieldActionBtn {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #leadForm #verify_code_panel .inputWithBtn > input {
    width: 100%;
  }
}

@container leadForm (max-width: 360px) {
  .phoneInlineRow {
    gap: 6px;
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  #leadForm .phoneInlineRow {
    gap: 6px;
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
  }
}

.labelText {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

select,
input {
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 3px 8px rgba(15, 23, 42, 0.05);
}
select:focus-visible,
input:focus-visible {
  border-color: rgba(49, 130, 246, 0.65);
  box-shadow:
    var(--ring),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 12px rgba(47, 109, 246, 0.12);
}

.formPanel select {
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-repeat: no-repeat, no-repeat;
  background-position:
    right 16px center,
    0 0;
  background-size:
    12px auto,
    100% 100%;
  padding-right: 40px;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
  background: transparent;
  accent-color: var(--accentA);
}

input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

input::placeholder {
  color: #b0b8c1;
}

.agreeRow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.agreeRow input[type="checkbox"] {
  flex-shrink: 0;
}

.primaryBtn {
  height: 52px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #6b9fff 0%, #3d7ef9 42%, #2563eb 100%);
  color: #ffffff;
  font-weight: 1000;
  letter-spacing: -0.25px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 7px 16px rgba(47, 109, 246, 0.42),
    0 4px 0 rgba(29, 78, 200, 0.38);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease;
}
.primaryBtn:hover:not(:disabled) {
  filter: brightness(1.03);
}
.primaryBtn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 3px 10px rgba(47, 109, 246, 0.32),
    0 1px 0 rgba(29, 78, 200, 0.35);
}
.primaryBtn:focus-visible {
  outline: none;
  box-shadow:
    var(--ring),
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 8px 20px rgba(47, 109, 246, 0.45);
}

.finePrint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.errorText {
  font-size: 11px;
  color: #e11d48;
  font-weight: 800;
}

/* 본인 확인 · 문자 인증 UI */
.verifyCard {
  display: grid;
  gap: 10px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(49, 130, 246, 0.06);
  border: 1px solid rgba(49, 130, 246, 0.14);
}

.verifyCard.isVerified {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.22);
}

.verifyCardHead {
  display: grid;
  gap: 4px;
  padding-bottom: 2px;
}

.verifyCardTitle {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: var(--text);
}

.verifyCardSub {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 700;
}

.verifyCodeField {
  margin: 0;
}

.inputWithBtn {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.inputWithBtn > input {
  flex: 1;
  min-width: 0;
}

.fieldActionBtn {
  flex-shrink: 0;
  align-self: stretch;
  height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.15px;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 4px 8px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.16s ease,
    opacity 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.fieldActionBtn:hover:not(:disabled) {
  filter: brightness(1.02);
}

.fieldActionBtn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 2px 4px rgba(15, 23, 42, 0.08);
}

.fieldActionBtn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.fieldActionBtn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.fieldActionBtn--primary {
  background: linear-gradient(180deg, #6b9fff 0%, #3d7ef9 45%, #2563eb 100%);
  color: #ffffff;
  border-color: rgba(25, 75, 190, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 5px 12px rgba(47, 109, 246, 0.38),
    0 2px 0 rgba(29, 78, 200, 0.35);
}
.fieldActionBtn--primary:active:not(:disabled) {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 8px rgba(47, 109, 246, 0.3),
    0 1px 0 rgba(29, 78, 200, 0.32);
}

.fieldActionBtn.isLoading {
  position: relative;
  color: rgba(255, 255, 255, 0.94);
  pointer-events: none;
}

.fieldActionBtn.isLoading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  display: inline-block;
  vertical-align: -2px;
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

.fieldActionBtn--block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verifyCodePanel {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(239, 246, 255, 0.9) 100%);
  border: 1px solid rgba(49, 130, 246, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 6px 16px rgba(47, 109, 246, 0.08);
}

.verifyCodePanel.isHidden {
  display: none !important;
}

.verifyCodePanel.isVerified {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.22);
}

#err_verify {
  margin-top: 8px;
}

.verifyHint {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 650;
}

.verifyMetaRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-top: 6px;
  min-height: 18px;
}

.verifyTimer {
  font-size: 11px;
  font-weight: 800;
  color: #1d4ed8;
}

.verifyTimer strong {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.verifySoftMsg {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  flex: 1;
  text-align: right;
}

.verifyStateBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

/* 모바일 WebView 등: 클래스의 display가 [hidden] 기본 스타일을 덮어써 배지가 항상 보이던 문제 방지 */
.verifyStateBadge[hidden] {
  display: none !important;
}

.verifyStateBadge__icon {
  font-size: 12px;
  line-height: 1;
}

.verifyGateMsg {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
  color: var(--muted);
  text-align: center;
}

.verifyGateMsg.isHidden {
  display: none;
}

.primaryBtn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

/* 문자 인증 완료 후 제출 버튼 — 비활성 스타일과 구분 */
.primaryBtn.isLeadSubmitReady:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.submitOk {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #bbf7d0;
}
.submitErr {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #fecaca;
}

.ctaSection {
  background: transparent;
  padding: 16px 18px 22px;
}

.finalCta {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--accentA);
  color: #ffffff;
  font-weight: 1000;
  letter-spacing: -0.2px;
  box-shadow: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}
.finalCta:active {
  transform: translateY(1px);
  box-shadow: none;
}

.footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 사이트 푸터 (본문 아래 전체 영역) ---------- */
.siteFooter {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #eef2f7 100%);
}

.siteFooter__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.siteFooter__head {
  padding-bottom: 4px;
}

.siteFooter__logoText {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.35px;
  color: rgba(15, 23, 42, 0.9);
}

.siteFooter__tagline {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.48);
  letter-spacing: -0.12px;
}

.siteFooter__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 400px) {
  .siteFooter__cols {
    grid-template-columns: 1fr 1.15fr;
    gap: 16px 20px;
  }
}

.siteFooter__heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: rgba(15, 23, 42, 0.72);
}

.siteFooter__value {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.25px;
  color: #1d4ed8;
}

.siteFooter__value--hidden {
  display: none;
}

.siteFooter__muted {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.45);
  letter-spacing: -0.08px;
}

.siteFooter__muted--hidden {
  display: none;
}

.siteFooter__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.52);
  letter-spacing: -0.08px;
}

.siteFooter__list li + li {
  margin-top: 4px;
}

.siteFooter__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 11.5px;
}

.siteFooter__link {
  color: rgba(29, 78, 216, 0.88);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.siteFooter__link:hover {
  text-decoration: underline;
}

.siteFooter__sep {
  color: rgba(15, 23, 42, 0.2);
  font-weight: 500;
  user-select: none;
}

.siteFooter__copy {
  margin: 0;
  padding-top: 4px;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.38);
  letter-spacing: -0.05px;
}

/* 앱 하단 도크(섹션은 그대로, UI만 고정) */
.bottomDock {
  display: none !important;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(520px, calc(100vw - 20px));
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.dockItem {
  border: none;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  padding: 4px 0;
}

.dockIcon {
  font-size: 16px;
  line-height: 1;
}
.dockText {
  font-size: 10px;
  font-weight: 900;
}

.dockCta {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--accentA);
  color: #fff;
  font-weight: 1000;
  letter-spacing: -0.2px;
  box-shadow: none;
}
.dockCta:active {
  transform: translateY(1px);
}

@media (max-width: 360px) {
  .proofRow {
    grid-template-columns: 78px 1fr 112px;
  }
  .hScroll {
    border-radius: var(--radius-md);
  }
  .productCard {
    width: 168px;
    flex: 0 0 168px;
  }
  #productRail .productCard {
    width: 168px;
    flex: 0 0 168px;
  }
  #productRail .productThumb {
    height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .siteNav {
    transition: none !important;
  }
  .segBtn,
  .pillTab,
  .primaryBtn,
  .finalCta,
  .productCard,
  .proofRow {
    transition: none;
  }
  .proofRow.isNew {
    animation: none;
  }
  .proofTable.isRoll .liveTrack {
    animation: none;
  }
  .stack > section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .featuredLive__dot {
    animation: none !important;
  }
  .productSection.isInView .sectionTitleRow--product,
  .productSection.isInView .featuredBanner,
  .productSection.isInView #productRail {
    animation: none !important;
  }
}

/* (removed) flat overrides: theme now handles styles directly */

/* =========================
   본문 전체 프레임 + 내부 박스 제거
   ========================= */
.page {
  background: #f5f7fb;
  padding: 10px 0 0;
}

.stack {
  background: transparent;
  border: none;
  border-radius: 20px;
  box-shadow: none;
  overflow: hidden;
  padding: 0 0 24px; /* bottomDock 제거로 여백 축소 */
  margin: 0 auto;
}

.heroSection {
  margin: 0;
  padding: 8px 14px 14px;
}

/* 내부 카드/패널 박스 제거 */
.proofTable,
.stepCard,
.productCard,
.featuredBanner,
.catItem,
.benefitCard,
.feedCard,
.formPanel,
.faqList {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 구분선은 최소로 복구 (너무 무보더면 어색함) */
.proofTable,
.formPanel,
.faqList {
  border: 1px solid var(--border) !important;
}

/* 섹션 구분선: 한국 모바일에서 흔한 1px 구분 */
.stack > section {
  padding: 4px 0;
}
.stack > section + section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.stack > section:last-child {
  border-bottom: none;
}

/* 섹션별 스크롤 리빌 애니메이션 */
.stack > section {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.stack > section.isInView {
  opacity: 1;
  transform: none;
}

/* 히어로: 리빌 opacity 0이 적용되면 높이/이미지 노출이 어색해지므로 항상 표시 */
.stack > section.heroSection {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
  /* .stack > section { padding: 4px 0 } 보다 우선 — aspect-ratio와 배경 정합 */
  padding-block: 0 !important;
  padding-inline: 0 !important;
}

/* proofTable 안의 장식 오버레이 제거 */
.proofTable::after {
  display: none !important;
}

/* =========================
   Final Visual System Overrides
   (Korean mobile, Toss-like clean UI)
   ========================= */
.page {
  background: var(--bg) !important;
}

.stack {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 22px !important;
}

.heroSection {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 16px 14px 14px !important;
  margin: 10px 14px 0 !important;
}

.sectionBox {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  margin: 0 14px !important;
}

.proofTable {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
}

.stepCard,
.benefitCard,
.feedCard,
.productCard,
.featuredBanner,
.formPanel,
.faqList {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}

.formHead {
  padding: 0 0 10px !important;
}

.formTitle {
  font-size: 18px !important;
}

/* 단계 노출 시 선택 탭: 기본(비선택) 상태는 배경·그림자 없음 */
.pillTab:not(.isActive) {
  background: transparent !important;
  box-shadow: none !important;
}

/* =========================
   Korean Card UI Lock (final)
   - border/background 일관성 확보
   - 투명/무보더 규칙이 남아도 덮어씀
   ========================= */
.sectionBox,
.formPanel,
.proofTable,
.faqList {
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.proofTable {
  border-radius: 0 !important;
  overflow: hidden;
}

/* 내부 카드들은 "하나의 섹션 테두리"에서만 정돈되도록: 중복 border 제거 */
.stepCard,
.benefitCard,
.feedCard,
.productCard,
.featuredBanner {
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
}

.faqList {
  border: none !important;
  border-radius: 0 !important;
}

.proofRow {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 12px 14px !important;
}
.proofRow:first-child {
  border-top: none !important;
}

/* 입력칸 border 확정 */
select,
input {
  border: 1px solid #b3c2ed !important;
  background: #ffffff !important;
  color: var(--text) !important;
}
select:focus-visible,
input:focus-visible {
  border-color: rgba(49, 130, 246, 0.75) !important;
  box-shadow: var(--ring) !important;
}

/* 도크 숨김은 유지 */
.bottomDock {
  display: none !important;
}

/* =========================
   Premium Polish Overrides
   ========================= */
:root {
  --bg: #f4f7fb;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --accentA: #2f6df6;
  --ring: 0 0 0 4px rgba(47, 109, 246, 0.16);
}

.page {
  background:
    radial-gradient(1200px 380px at 50% -140px, rgba(47, 109, 246, 0.08), transparent 55%), var(--bg) !important;
}

.stack {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  /* sticky 자식(.siteNav) 동작을 위해 필수 */
  overflow: visible !important;
}

.siteNav {
  margin: 4px 14px 6px !important;
  padding: 6px 14px 8px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: sticky !important;
  top: env(safe-area-inset-top, 0px) !important;
  z-index: 200 !important;
}

/* 스크롤 시작 후: 유리 느낌 배경 */
.siteNav.isScrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(180%) blur(14px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
  border-radius: 16px !important;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.06),
    0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

.sectionBox,
.proofTable,
.faqList {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.02),
    0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

.formPanel {
  background: linear-gradient(165deg, #ffffff 0%, #f5f8fc 48%, #eef2f7 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 24px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 12px 32px rgba(15, 23, 42, 0.07),
    0 4px 10px rgba(15, 23, 42, 0.04) !important;
}

/* 히어로: img 본연 비율로 높이 결정 — 이미지 교체 시 aspect-ratio 수동 수정 불필요 */
.heroSection {
  position: relative !important;
  display: block !important;
  margin: 10px 14px 6px !important;
  padding: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.02),
    0 10px 24px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background-color: #b8d4f0 !important;
}

.heroSection__media {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.heroSection__img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 이미지 위 하단 CTA — img 높이와 무관하게 하단 정렬 */
.heroBody--imageLead {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 0 14px 16px !important;
  margin: 0 !important;
  text-align: center !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.heroBody--imageLead .heroActions {
  margin-top: 0 !important;
  width: 100% !important;
  pointer-events: auto !important;
}

/* ---------- 인기 상품 섹션: isInView 시 인트로 + 카드/레일 스타일 ---------- */
@keyframes productBlockIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 레일 래퍼는 transform 미사용 — 모바일 WebKit에서 자식 .railTrack transform 루프와 충돌 방지 */
@keyframes productRailFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.productSection.isInView .sectionTitleRow--product {
  animation: productBlockIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.productSection.isInView .featuredBanner {
  animation: productBlockIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.productSection.isInView #productRail {
  animation: productRailFadeIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.productSection .featuredBanner {
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.03),
    0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

/* 실시간 인기차량 배너 상단 — event_1.png (1920×800) */
.productSection .featuredMedia {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1920 / 800 !important;
  max-height: 240px !important;
  background-color: #dbeafe !important;
  background-image: url("./img/event_1.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.productSection #productRail .productCard {
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.03),
    0 10px 22px rgba(15, 23, 42, 0.06) !important;
}

.productSection #productRail .productCard:hover {
  border-color: rgba(47, 109, 246, 0.35) !important;
  box-shadow:
    0 4px 14px rgba(47, 109, 246, 0.12),
    0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

.sectionBox {
  padding: 14px !important;
  margin: 0 14px !important;
}

.stack > section + section {
  border-top: none !important;
}

.topbar {
  padding: 2px 2px 8px;
}

.brand {
  font-size: 19px;
  letter-spacing: -0.45px;
}

.heroTitle {
  font-size: 43px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.6px;
  background: linear-gradient(92deg, #1d4ed8 0%, #2f6df6 35%, #8b5cf6 70%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(47, 109, 246, 0.16);
  background-size: 180% 100%;
  animation: heroTitleShine 5.8s ease-in-out infinite;
}

.heroSub {
  font-size: 14px;
  color: #5f6b7a;
}

@keyframes heroTitleShine {
  0% {
    background-position: 0% 50%;
    filter: saturate(1);
  }
  50% {
    background-position: 100% 50%;
    filter: saturate(1.08);
  }
  100% {
    background-position: 0% 50%;
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroTitle {
    animation: none !important;
  }
}

.chipBtn {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: #f8fafc !important;
}

/* 폼 pillTab: 기본 블록에서 볼록 스타일 유지 — !important 덮어쓰기 제거 */

.primaryBtn,
.heroPrimary,
.siteNav__cta,
.fieldActionBtn--primary,
.phoneVerifyBtn {
  background: linear-gradient(180deg, #6b9fff 0%, #3d7ef9 45%, #2563eb 100%) !important;
  border-color: rgba(25, 75, 190, 0.35) !important;
  color: #fff !important;
}

.primaryBtn,
.heroPrimary {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 7px 16px rgba(47, 109, 246, 0.42),
    0 4px 0 rgba(29, 78, 200, 0.36) !important;
}

.heroPrimary:disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.2) brightness(0.92) !important;
}

/* 맞춤 견적 받기 — 상담 폼 메인 CTA (공통 primaryBtn !important 이후 적용) */
#btn_submit_lead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  font-size: 16px;
  letter-spacing: -0.42px;
  line-height: 1.2;
  background: linear-gradient(168deg, #93b9ff 0%, #5f96fc 30%, #3575f0 62%, #1d56d8 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 11px 28px rgba(29, 78, 200, 0.38),
    0 4px 0 rgba(23, 58, 158, 0.52),
    0 0 0 1px rgba(25, 75, 190, 0.18) !important;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}

#btn_submit_lead::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 44%);
  pointer-events: none;
}

#btn_submit_lead:hover:not(:disabled) {
  filter: brightness(1.045) saturate(1.04);
}

#btn_submit_lead:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 5px 16px rgba(29, 78, 200, 0.3),
    0 2px 0 rgba(23, 58, 158, 0.42),
    0 0 0 1px rgba(25, 75, 190, 0.14) !important;
}

#btn_submit_lead:focus-visible {
  outline: none;
  box-shadow:
    var(--ring),
    0 1px 0 rgba(255, 255, 255, 0.48) inset,
    0 11px 28px rgba(29, 78, 200, 0.4),
    0 4px 0 rgba(23, 58, 158, 0.48),
    0 0 0 1px rgba(25, 75, 190, 0.2) !important;
}

#btn_submit_lead:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.5) brightness(1.03);
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: linear-gradient(168deg, #c5d4ee 0%, #a3b9e4 45%, #8aa6d6 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 4px 14px rgba(29, 78, 200, 0.1),
    0 2px 0 rgba(23, 58, 158, 0.14) !important;
}

#btn_submit_lead:disabled::before {
  opacity: 0.45;
}

#btn_submit_lead.isLeadSubmitReady:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  filter: none;
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 14px 36px rgba(29, 78, 200, 0.48),
    0 4px 0 rgba(23, 58, 158, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

.siteNav__cta {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 5px 14px rgba(47, 109, 246, 0.38),
    0 2px 0 rgba(29, 78, 200, 0.32) !important;
}

select,
input:not([type="checkbox"]):not([type="hidden"]) {
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 3px 8px rgba(15, 23, 42, 0.05) !important;
}

select:focus-visible,
input:not([type="checkbox"]):not([type="hidden"]):focus-visible {
  border-color: rgba(47, 109, 246, 0.75) !important;
  box-shadow:
    var(--ring),
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 4px 12px rgba(47, 109, 246, 0.12) !important;
}

.formPanel select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position:
    right 16px center,
    0 0 !important;
  background-size:
    12px auto,
    100% 100% !important;
}

/* 엔진 상담 UI(index 내 formPanel 임베드) */
.formPanel.engine-consult-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 8px 20px;
  overflow: visible;
}

.formPanel.engine-consult-panel .formHead {
  padding-bottom: 6px;
}

.formPanel.engine-consult-panel .formTitle {
  text-align: center;
  font-size: 36px !important;
}

.formPanel.engine-consult-panel #engineConsultRoot {
  min-height: 0;
  padding: 4px 0 0;
}

/* egv 등 엔진 상담 패널: 글자·터치 영역 확대 (일반 점진 폼과 분리) */
.formPanel.engine-consult-panel .pillTab {
  font-size: 28px;
  height: min(92px, 22vw);
}

.formPanel.engine-consult-panel .formStep__label {
  font-size: 28px;
}

.formPanel.engine-consult-panel .labelText {
  font-size: 24px;
}

.formPanel.engine-consult-panel select,
.formPanel.engine-consult-panel input:not([type="checkbox"]):not([type="hidden"]) {
  font-size: 32px !important;
  min-height: 56px;
  height: auto;
  padding-block: 12px;
}

.formPanel.engine-consult-panel select {
  background-position:
    right 20px center,
    0 0 !important;
  padding-right: 52px !important;
}

.formPanel.engine-consult-panel .agreeRow {
  font-size: 24px;
}

.formPanel.engine-consult-panel .primaryBtn {
  font-size: 32px;
  min-height: 72px;
  height: auto;
  padding-block: 14px;
}

.formPanel.engine-consult-panel .finePrint {
  font-size: 22px;
}

.formPanel.engine-consult-panel .errorText {
  font-size: 22px;
}

.formPanel.engine-consult-panel .verifyCardTitle {
  font-size: 26px;
}

.formPanel.engine-consult-panel .verifyCardSub {
  font-size: 22px;
}

.formPanel.engine-consult-panel .fieldActionBtn {
  font-size: 24px;
  min-height: 56px;
  height: auto;
  padding-block: 10px;
}

.formPanel.engine-consult-panel .verifyHint,
.formPanel.engine-consult-panel .verifyTimer,
.formPanel.engine-consult-panel .verifySoftMsg,
.formPanel.engine-consult-panel .verifyStateBadge {
  font-size: 22px;
}

.formPanel.engine-consult-panel .verifyStateBadge__icon {
  font-size: 24px;
}

.formPanel.engine-consult-panel .verifyGateMsg {
  font-size: 24px;
}

.formPanel.engine-consult-panel .submitOk,
.formPanel.engine-consult-panel .submitErr {
  font-size: 24px;
}

.formPanel.engine-consult-panel .phoneVerifyBtn {
  min-width: 96px;
  min-height: 56px;
  font-size: 24px;
}

.formPanel.engine-consult-panel #engineConsultRoot .satellite {
  font-size: 22px;
}

.formPanel.engine-consult-panel #engineConsultRoot .engine-skeuo__t1 {
  font-size: clamp(16px, 4.2vw, 20px) !important;
}

.formPanel.engine-consult-panel #engineConsultRoot .engine-skeuo__t2 {
  font-size: clamp(20px, 5.4vw, 26px) !important;
}

.formPanel.engine-consult-panel #engineConsultRoot .engine-skeuo__single {
  font-size: clamp(20px, 5.5vw, 26px) !important;
}

.formPanel.engine-consult-panel #engineConsultRoot .trail-input {
  font-size: 30px !important;
  height: 64px !important;
  padding: 0 22px !important;
}

.formPanel.engine-consult-panel #engineConsultRoot .phone-row input {
  font-size: 30px !important;
  height: 56px !important;
}

.formPanel.engine-consult-panel #engineConsultRoot .verify-block input {
  font-size: 30px !important;
  height: 56px !important;
  padding: 0 20px !important;
}

.formPanel.engine-consult-panel #engineConsultRoot .hint {
  font-size: 22px !important;
  max-width: min(560px, 92vw);
}

.formPanel.engine-consult-panel #engineConsultRoot .selection-summary {
  font-size: 20px !important;
  max-width: min(640px, 94vw);
}

/* 상담 신청 서버 전송 중 오버레이 */
.leadSubmitOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.leadSubmitOverlay--hidden {
  display: none !important;
}

.leadSubmitOverlay__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 50px rgba(15, 23, 42, 0.18);
  max-width: 280px;
  text-align: center;
}

.leadSubmitOverlay__text {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.78);
  letter-spacing: -0.2px;
}

.leadSubmitOverlay__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(47, 109, 246, 0.2);
  border-top-color: #2f6df6;
  animation: leadSubmitSpin 0.75s linear infinite;
}

@keyframes leadSubmitSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leadSubmitOverlay__spinner {
    animation: none;
    border-color: rgba(47, 109, 246, 0.45);
  }
}

/* ---------- 점진 폼: 섹션 뷰 진입(isInView) 후 패널·노출 단계 카드 ---------- */
@keyframes formLeadPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.formSection.isInView .formPanel:not(.engine-consult-panel) {
  padding: 22px 18px 20px !important;
  border-radius: 7px !important;
  background: linear-gradient(338deg, #b8cfea 0%, #142d46 52%, #2968ee 100%) !important;
  border: 3px solid rgb(255 255 255) !important;
  box-shadow:
    0px 0px 20px 0px #1d4ed8,
    0 18px 44px rgba(15, 23, 42, 0.09),
    0 6px 16px rgba(47, 109, 246, 0.07) !important;
  animation: formLeadPanelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formHead {
  padding: 2px 0 14px !important;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formTitle {
  margin: 0;
  font-size: 24px !important;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: #ffffff !important;
}

.formLeadSub {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.52);
  letter-spacing: -0.15px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formLeadSub {
  color: rgb(255 255 255);
  font-size: 12.5px;
  margin-top: 4px;
}

/* 상담 폼: 항목별 카드 없이 폼 전체를 하나의 박스로 */
.formSection.isInView .formPanel:not(.engine-consult-panel) .formBody {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  padding: 12px 12px 14px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 3px 16px rgba(15, 23, 42, 0.05) !important;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formBody .formStep.isRevealed {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 6px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formBody .formStep.isRevealed:last-child {
  margin-bottom: 0;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formBody .formStep.isRevealed + .formStep.isRevealed {
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-top: none !important;
}

.formSection.isInView
  .formPanel:not(.engine-consult-panel)
  .formBody
  .formStep.isRevealed
  + .formStep.isRevealed::before {
  display: none !important;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formStep__head {
  margin-bottom: 4px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formStep__label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.28px;
  color: rgba(15, 23, 42, 0.82);
}

/* 필: 작은 크기, 선택은 반투명 톤 */
.formSection.isInView .formPanel:not(.engine-consult-panel) .pillTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 8px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .pillTabs--five .pillTab:nth-child(5) {
  grid-column: unset;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .pillTab {
  flex: 1 1 calc(33.333% - 4px);
  min-width: calc(33.333% - 4px);
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.18px;
  box-sizing: border-box;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .pillTab:not(.isActive) {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: none !important;
  color: rgba(15, 23, 42, 0.88) !important;
  filter: none !important;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .pillTab.isActive {
  background: rgba(29, 114, 210, 0.16) !important;
  border-color: rgba(29, 114, 210, 0.42) !important;
  color: #0f4a8a !important;
  box-shadow: none !important;
  filter: none !important;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .pillTab:hover:not(.isActive) {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .pillTab:active {
  transform: translateY(1px);
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formBody .field {
  gap: 4px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .fieldRow {
  gap: 8px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .labelText {
  font-size: 11.5px;
  color: rgba(15, 23, 42, 0.45);
}

.formSection.isInView .formPanel:not(.engine-consult-panel) #btn_submit_lead {
  margin-top: 10px;
  border-radius: 15px !important;
  min-height: 52px;
  font-size: 15px;
  letter-spacing: -0.38px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .verifyCodePanel {
  border-radius: 10px;
}

.formSection.isInView .formPanel:not(.engine-consult-panel) .formHead {
  padding-bottom: 6px !important;
}

@media (prefers-reduced-motion: reduce) {
  .formSection.isInView .formPanel:not(.engine-consult-panel) {
    animation: none !important;
  }
}
