/* 서비스 페이지 — 프로세스(스텝) + 채팅 UI */

.page-service {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, sans-serif;
}

.page-service #service.ds-section--soft {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #e0f2fe 100%);
}

.svc-steps {
  margin: 0 auto;
}

.svc-step {
  margin-bottom: 100px;
}

.svc-step:last-child {
  margin-bottom: 0;
}

.svc-step__main {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: 60px;
  position: relative;
}

.svc-step__main--reverse {
  flex-direction: row-reverse;
}

.svc-step__visual {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 320px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
}
.svc-step__visual video,
.svc-step__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.svc-step__visual video.cover,
.svc-step__visual img.cover {
  object-fit: cover;
}

.svc-step__badge {
  position: absolute;
  top: -18px;
  z-index: 1;
  min-width: 60px;
  height: 60px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6366f1;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  pointer-events: none;
}

.svc-step__main:not(.svc-step__main--reverse) .svc-step__badge {
  left: -18px;
}

.svc-step__main--reverse .svc-step__badge {
  right: -18px;
  left: auto;
}

.svc-step__text {
  flex: 1;
  min-width: 0;
}

.svc-step__label {
  font-size: 20px;
  font-weight: 600;
  color: #6366f1;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.svc-step__title {
  font-size: 36px;
  font-weight: 700;

  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.svc-step__desc {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #4a5565;
}
.svc-step__desc.mt12 {
  margin-top: 12px;
}

/* 채팅 블록 */
.svc-step__chat {
  max-width: 700px;
  margin: 0 auto;
}

.svc-chat__heading {
  text-align: center;
  margin: 0 0 12px;
  font-size: 24px;
  /* font-size: clamp(18px, 2vw, 22px); */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.svc-chat__sub {
  text-align: center;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
  color: #4a5565;
}

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

.svc-chat__msg {
  display: flex;
  gap: 10px;
  max-width: 92%;
}

.svc-chat__msg--client {
  align-self: flex-start;
}

.svc-chat__msg--company {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.svc-chat__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e0e3ed;
  /* border: 1px solid rgba(15, 23, 42, 0.06); */
}

.svc-chat__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.svc-chat__msg--company .svc-chat__meta {
  align-items: flex-end;
  text-align: right;
}

.svc-chat__name {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

.svc-chat__bubble {
  max-width: 520px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.svc-chat__msg--client .svc-chat__bubble {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.svc-chat__msg--company .svc-chat__bubble {
  background: #6366f1;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

/* Scroll reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(2px);
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  will-change: opacity, transform, filter;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* CTA는 좀 더 느긋하게(덜 튀게) */
.ds-cta .reveal-item {
  transform: translateY(16px);
  filter: blur(3px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-cta .reveal-item.is-visible {
  transform: translateY(0);
  filter: blur(0);
}

/* 채팅 말풍선 순차 등장 */
.reveal-msg {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
  will-change: opacity, transform, filter;
}

.reveal-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .reveal-msg {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
@media all and (max-width: 1440px) {
  .svc-steps {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media all and (max-width: 1024px) {
  .svc-step__title {
    font-size: 32px;
  }
  .svc-step__label,
  .svc-step__desc {
    font-size: 18px;
  }
  .svc-chat__heading {
    font-size: 20px;
  }
  .svc-chat__sub {
    font-size: 16px;
  }
  .svc-step__badge {
    min-width: unset;
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
}
@media all and (max-width: 900px) {
  .svc-step__main,
  .svc-step__main--reverse {
    flex-direction: column;
  }
  .svc-steps {
    padding-left: 0;
    padding-right: 0;
  }
  .svc-step__text {
    order: 1;
  }
  .svc-step__visual {
    order: 2;
  }
  .svc-step__badge {
    display: none;
  }
  .svc-step__main {
    align-items: unset;
  }

  .svc-step__main--reverse .svc-step__badge {
    left: auto;
    right: -18px;
  }

  .svc-step {
    margin-bottom: 72px;
  }

  .svc-chat__msg {
    max-width: 100%;
  }
}
@media all and (max-width: 768px) {
  .svc-step__title {
    font-size: 20px;
  }
  .svc-step__label,
  .svc-step__desc {
    font-size: 16px;
  }
  .svc-chat__heading {
    font-size: 18px;
  }
  .svc-chat__bubble,
  .svc-chat__sub {
    font-size: 14px;
  }
  .ds-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  .ds-cta__actions a {
    width: 100%;
    max-width: 320px;
  }
  .svc-chat__avatar {
    width: 40px;
    height: 40px;
  }
}
