/* ============================================================
   Automach LP — 광고 전환 랜딩(HSO) 전용 스타일
   design-b.css의 b- 토큰(그린·네이비·Pretendard)을 그대로 사용.
   LP 전용 클래스는 lp- 프리픽스로 분리해 기존 CSS와 충돌 방지.
   ============================================================ */

/* ── 경량 헤더 ── */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--b-border);
  height: 64px;
  display: flex;
  align-items: center;
}
.lp-header__inner {
  width: var(--b-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.lp-header__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.lp-header__nav a {
  padding: 8px 14px;
  color: var(--b-slate);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--b-radius-pill);
  transition: background 0.15s, color 0.15s;
}
.lp-header__nav a:hover {
  background: var(--b-green-pale);
  color: var(--b-green);
}
.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-header__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--b-navy);
  white-space: nowrap;
}
.lp-header__tel:hover {
  color: var(--b-green);
}
.lp-header__cta {
  background: var(--b-green);
  color: var(--b-white);
  padding: 10px 20px;
  border-radius: var(--b-radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}
.lp-header__cta:hover {
  background: var(--b-green-hover);
}

/* ── HOOK ── */
.lp-hook {
  position: relative;
  overflow: hidden;
  background: var(--b-white);
  padding: 72px 0 80px;
}
.lp-hook__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.lp-hook__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.lp-hook__blob--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #a7f3d0 0%, #6ee7b7 50%, transparent 70%);
  top: -200px;
  right: -120px;
}
.lp-hook__blob--2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--b-green-pale) 0%, #a7f3d0 60%, transparent 80%);
  bottom: -120px;
  left: -80px;
}
.lp-hook__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(5, 150, 105, 0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}
.lp-hook__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}
.lp-hook__content {
  text-align: left;
  min-width: 0;
}
.lp-hook__aside {
  min-width: 0;
}
.lp-hook__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--b-green-pale);
  color: var(--b-green-hover);
  border: 1px solid #a7f3d0;
  padding: 7px 16px;
  border-radius: var(--b-radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.lp-hook__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--b-green);
  animation: bPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.lp-hook__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--b-navy);
  margin-bottom: 20px;
}
.lp-hook__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--b-slate);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 0 32px;
}
.lp-hook__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 36px;
}
.lp-stat {
  background: var(--b-white);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow-sm);
  padding: 22px 16px;
}
.lp-stat__value {
  display: block;
  font-family: var(--b-font-num);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 700;
  color: var(--b-green);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lp-hook__cta {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.lp-hook__micro {
  font-size: 13px;
  color: var(--b-muted);
  margin-top: 18px;
}

/* ── STORY ── */
.lp-story {
  background: var(--b-white);
}
.lp-story__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.lp-story__hook {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--b-navy);
  margin: 14px 0 20px;
}
.lp-story__bridge {
  font-size: 17px;
  color: var(--b-slate);
  line-height: 1.85;
  margin-bottom: 44px;
}
.lp-story__fit {
  background: var(--b-green-bg);
  border: 1px solid var(--b-green-pale);
  border-radius: var(--b-radius-lg);
  padding: 36px 32px;
  text-align: left;
}
.lp-story__fit-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--b-navy);
  margin-bottom: 20px;
}
.lp-fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-fit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--b-slate);
  line-height: 1.6;
  font-weight: 500;
}
.lp-fit-check {
  width: 24px;
  height: 24px;
  background: var(--b-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  margin-top: 1px;
}

/* ── 공통 면책 문구 ── */
.lp-disclaimer {
  font-size: 13px;
  color: var(--b-muted);
  line-height: 1.7;
}
.lp-story__disclaimer {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
}

/* ── OFFER ── */
.lp-offer__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.lp-offer__summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--b-green-pale);
  color: var(--b-green);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--b-radius-pill);
}
.lp-offer__table {
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  overflow: hidden;
  background: var(--b-white);
  box-shadow: var(--b-shadow-sm);
}
.lp-offer__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--b-border);
}
.lp-offer__row:last-child {
  border-bottom: none;
}
.lp-offer__row:nth-child(even) {
  background: var(--b-surface);
}
.lp-offer__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--b-slate);
}
.lp-offer__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--b-navy);
  line-height: 1.6;
}
.lp-offer__disclaimer {
  margin-top: 20px;
}

/* ── OFFER 한도·금리 인포그래픽 ── */
.lp-offer__infographic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.lp-offer__metric {
  background: var(--b-white);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow-sm);
  padding: 22px 24px;
}
.lp-offer__metric-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lp-offer__metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--b-slate);
}
.lp-offer__metric-value {
  font-family: var(--b-font-num);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--b-green);
}
.lp-offer__bar {
  position: relative;
  height: 12px;
  border-radius: var(--b-radius-pill);
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  overflow: hidden;
}
.lp-offer__bar-fill {
  display: block;
  height: 100%;
  width: var(--bar-w, 0%);
  border-radius: var(--b-radius-pill);
  background: linear-gradient(90deg, var(--b-green-light), var(--b-green));
  animation: lpBarGrow 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.lp-offer__bar--range {
  background: var(--b-surface);
}
.lp-offer__bar-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--seg-l, 0%);
  width: var(--seg-w, 0%);
  border-radius: var(--b-radius-pill);
  background: linear-gradient(90deg, var(--b-green-light), var(--b-green-hover));
  transform-origin: left center;
  animation: lpSegGrow 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.lp-offer__metric-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--b-muted);
}

/* ── HOOK 비주얼 패널 (HeroVisual) ── */
.lp-herovisual {
  position: relative;
}
.lp-herovisual__media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--b-radius-lg);
  box-shadow: var(--b-shadow-lg);
  background: var(--b-surface);
}
.lp-herovisual__media-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--b-muted);
  text-align: center;
}
.lp-herovisual__graphic {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--b-white) 0%, var(--b-green-bg) 100%);
  border: 1px solid var(--b-green-pale);
  border-radius: var(--b-radius-lg);
  box-shadow: var(--b-shadow-lg);
  padding: 28px 28px 24px;
}
.lp-herovisual__glow {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.lp-herovisual__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.lp-herovisual__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--b-white);
  border: 1px solid var(--b-green-pale);
  color: var(--b-green);
  box-shadow: var(--b-shadow-sm);
}
.lp-herovisual__chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--b-green-hover);
  background: var(--b-green-pale);
  padding: 6px 14px;
  border-radius: var(--b-radius-pill);
}
.lp-herovisual__gauge {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 4px auto 6px;
}
.lp-herovisual__gauge svg {
  display: block;
  overflow: visible;
}
.lp-arc {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
}
.lp-arc--track {
  stroke: var(--b-border);
}
.lp-arc--fill {
  stroke: var(--b-green);
  animation: lpArcFill 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.lp-herovisual__gauge-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.lp-herovisual__gauge-cap {
  font-size: 12px;
  font-weight: 600;
  color: var(--b-slate);
}
.lp-herovisual__gauge-value {
  font-family: var(--b-font-num);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--b-navy);
  line-height: 1.1;
}
.lp-herovisual__gauge-sub {
  font-size: 11px;
  color: var(--b-slate);
  font-weight: 500;
  margin-top: 2px;
}
.lp-herovisual__rate {
  position: relative;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--b-green-pale);
}
.lp-herovisual__rate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lp-herovisual__rate-cap {
  font-size: 13px;
  font-weight: 600;
  color: var(--b-slate);
}
.lp-herovisual__rate-val {
  font-family: var(--b-font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--b-green-hover);
}
.lp-herovisual__rate-track {
  position: relative;
  height: 10px;
  border-radius: var(--b-radius-pill);
  background: var(--b-white);
  border: 1px solid var(--b-border);
  overflow: hidden;
}
.lp-herovisual__rate-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: var(--b-radius-pill);
  background: linear-gradient(90deg, var(--b-green-light), var(--b-green-hover));
  transform-origin: left center;
  animation: lpSegX 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.lp-herovisual__rate-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--b-muted);
}
.lp-herovisual__note {
  position: relative;
  margin-top: 16px;
  font-size: 12px;
  color: var(--b-muted);
  line-height: 1.5;
}

/* ── 프로세스 4단계 비주얼 (ProcessVisual) ── */
.lp-process__track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.lp-process__step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.lp-process__marker {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
}
.lp-process__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--b-green-bg);
  border: 1px solid var(--b-green-pale);
  color: var(--b-green);
}
.lp-process__no {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--b-radius-pill);
  background: var(--b-green);
  color: var(--b-white);
  font-family: var(--b-font-num);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--b-shadow-green);
}
.lp-process__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--b-navy);
  margin-bottom: 6px;
}
.lp-process__time {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--b-green-hover);
  background: var(--b-green-pale);
  padding: 3px 12px;
  border-radius: var(--b-radius-pill);
  margin-bottom: 12px;
}
.lp-process__desc {
  font-size: 14px;
  color: var(--b-slate);
  line-height: 1.65;
}

/* ── 후기 슬롯 (TestimonialsSection) ── */
.lp-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.lp-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--b-white);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow-sm);
  padding: 26px 24px;
}
.lp-review__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--b-navy);
}
.lp-review__cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--b-border);
}
.lp-review__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--b-navy);
}
.lp-review__meta {
  font-size: 13px;
  color: var(--b-muted);
}
.lp-reviews__disclaimer {
  margin-top: 24px;
  text-align: center;
}

/* ── 그래픽 진입 애니메이션 ── */
@keyframes lpArcFill {
  from { stroke-dashoffset: var(--arc-len); }
  to { stroke-dashoffset: var(--arc-offset); }
}
@keyframes lpBarGrow {
  from { width: 0; }
  to { width: var(--bar-w, 0%); }
}
@keyframes lpSegGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes lpSegX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-arc--fill,
  .lp-offer__bar-fill,
  .lp-offer__bar-seg,
  .lp-herovisual__rate-seg {
    animation: none;
  }
}

/* ── 폼 인트로 보조 ── */
.lp-form-section .b-form-intro__title {
  font-size: clamp(26px, 3.5vw, 34px);
}

/* ── 모바일 sticky CTA 바 ── */
.lp-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .lp-header__nav {
    display: none;
  }
  .lp-header__tel {
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 50%;
    background: var(--b-green-pale);
    color: var(--b-green);
  }
  .lp-header__tel-label {
    display: none;
  }

  .lp-hook {
    padding: 52px 0 56px;
  }
  .lp-hook__inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
  .lp-hook__content {
    text-align: center;
  }
  .lp-hook__lead {
    max-width: 640px;
    margin: 0 auto 32px;
  }
  .lp-hook__cta {
    justify-content: center;
    flex-direction: column;
  }
  .lp-hook__stats {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto 36px;
  }
  .lp-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .lp-hook__cta .b-btn-primary,
  .lp-hook__cta .b-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .lp-hook__aside {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .lp-herovisual__graphic {
    padding: 24px 20px 20px;
  }

  .lp-story__fit {
    padding: 26px 22px;
  }
  .lp-offer__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }

  /* sticky 하단 CTA 바: 모바일에서 전화/상담이 항상 닿도록 */
  .lp-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--b-border);
  }
  .lp-sticky-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border-radius: var(--b-radius-pill);
    font-size: 15px;
    font-weight: 700;
  }
  .lp-sticky-cta__tel {
    border: 2px solid var(--b-green);
    color: var(--b-green);
    background: var(--b-white);
  }
  .lp-sticky-cta__apply {
    background: var(--b-green);
    color: var(--b-white);
    box-shadow: var(--b-shadow-green);
  }

  /* sticky 바가 마지막 콘텐츠를 가리지 않도록 여백 확보 */
  .automach-lp .b-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 480px) {
  .lp-hook__title {
    font-size: 30px;
  }
  .lp-story__hook {
    font-size: 23px;
  }
}
