/* 클라임유심 프리미엄 UI 레이어 — 후기 시스템 + 랜딩 전환 섹션 공용 */
/* user-flow.css 이후에 로드되어 같은 선택자를 자연스럽게 덮어쓴다. */

:root {
  --gold-1: #ffe9ad;
  --gold-2: #ffc94d;
  --gold-3: #ef9f1c;
  --gold-line: #7a5b1c;
  --panel-line: #2c4757;
  --panel-bg: linear-gradient(150deg, #0f2233, #0a1726 72%);
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1.8l3.09 6.62 7.09.7-5.32 4.75 1.5 6.98L12 17.1l-6.36 3.75 1.5-6.98L1.82 9.12l7.09-.7z'/%3E%3C/svg%3E");
}

/* ---------------- 별점 컴포넌트 (부분 채움 지원) ---------------- */
.stars {
  --pct: 100;
  --size: 18px;
  position: relative;
  display: inline-block;
  width: calc(var(--size) * 5);
  height: var(--size);
  vertical-align: -3px;
}
.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--star-mask) left center / var(--size) var(--size) repeat-x;
  mask: var(--star-mask) left center / var(--size) var(--size) repeat-x;
}
.stars::before { background: #2b4256; }
.stars::after {
  width: calc(var(--pct) * 1%);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 48%, var(--gold-3));
}

/* ---------------- 공통 조각 ---------------- */
.section-kicker {
  margin: 0 0 6px;
  color: #75ead5;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
}
.chip--persona {
  border: 1px solid #2e5c66;
  background: #0d2b33;
  color: #8ff5e4;
}
.chip--featured {
  border: 1px solid var(--gold-line);
  background: linear-gradient(90deg, rgba(245, 185, 66, .2), rgba(245, 185, 66, .05));
  color: #ffd97a;
}
.chip--rating {
  border: 1px solid #3a5b6e;
  background: #0e2233;
  color: #cfe6f2;
}

.review-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #062730;
  font-size: 17px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px rgba(0, 0, 0, .35);
}
.av-1 { background: linear-gradient(145deg, #8cffe8, #3ecfb8); }
.av-2 { background: linear-gradient(145deg, #ffd97a, #e8a020); }
.av-3 { background: linear-gradient(145deg, #9fd8ff, #4a9fd8); }
.av-4 { background: linear-gradient(145deg, #d5b8ff, #9670e0); }
.av-5 { background: linear-gradient(145deg, #ffb8c6, #e0708a); }

/* ---------------- 후기 카드 (홈·후기 페이지 공용) ---------------- */
.review-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: var(--panel-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(140, 247, 255, .07);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  border-color: #3f6a80;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 24px rgba(72, 212, 224, .08), inset 0 1px 0 rgba(140, 247, 255, .1);
}
.review-card--featured {
  border-color: #6a5426;
  background: linear-gradient(150deg, #14263a, #0d1a28 70%);
}
.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__who {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.review-card__name {
  color: #f2fbff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.review-card__date {
  color: #7d99ac;
  font-size: 12px;
}
.review-card__stars {
  margin-left: auto;
  flex: none;
}
.review-card__body {
  margin: 0;
  color: #d8e7ef;
  font-size: 14.5px;
  line-height: 1.75;
  word-break: keep-all;
}
.review-card__body .line { display: block; }
.review-card__body .line + .line { margin-top: 7px; }
.review-card__body.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.review-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.review-card__more {
  margin-left: auto;
  color: #79f4df;
  font-size: 12px;
  font-weight: 750;
}
.review-card.is-expanded .review-card__more { display: none; }

/* ---------------- 별점 요약 패널 (/reviews/) ---------------- */
.rating-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  margin: 18px 0 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #2e4a5e;
  border-radius: 20px;
  background: linear-gradient(150deg, #0e2133, #081524 75%);
  box-shadow: inset 0 1px 0 rgba(140, 247, 255, .08), 0 18px 50px rgba(0, 0, 0, .3);
}
.rating-summary__score {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  min-width: 150px;
  text-align: center;
}
.rating-summary__avg {
  font-size: clamp(46px, 7vw, 62px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, var(--gold-1) 52%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(245, 185, 66, .25));
}
.rating-summary__total {
  color: #9db8c8;
  font-size: 13px;
  font-weight: 650;
}
.rating-summary__total strong { color: #d9f7ff; }
.reviews-histogram {
  display: grid;
  gap: 9px;
  align-content: center;
}
.hist-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #b5cbd5;
}
.hist-row__label { font-weight: 750; color: #d4e6f0; }
.hist-row__bar {
  height: 10px;
  border-radius: 99px;
  background: #16293a;
  overflow: hidden;
}
.hist-row__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  box-shadow: 0 0 12px rgba(245, 185, 66, .35);
  transition: width 1s cubic-bezier(.2, .7, .2, 1);
}
.hist-row__count { text-align: right; color: #8fa9ba; }

/* 세그먼트 필터 */
.reviews-filters.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: #0a1926;
}
.reviews-filters.seg .reviews-filter {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b8cdd9;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.reviews-filters.seg .reviews-filter:hover { color: #eaf7fc; }
.reviews-filters.seg .reviews-filter.is-active {
  background: linear-gradient(180deg, #a0fff2, #55e8df);
  color: #06232c;
  box-shadow: 0 4px 14px rgba(85, 232, 223, .25);
}

/* /reviews/ 페이지 보강 */
.reviews-page .reviews-live {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 4px 0 18px;
  color: #9fe8d8;
  font-size: 13px;
  font-weight: 700;
}
.reviews-page .reviews-live .la-dot { margin-right: 2px; }
.reviews-page .reviews-live .reviews-live__count { color: #c9e3ee; font-weight: 650; }
.reviews-page .reviews-disclaimer {
  padding: 11px 14px;
  border: 1px solid #314f60;
  border-left: 3px solid var(--gold-2);
  border-radius: 0 12px 12px 0;
  background: rgba(245, 185, 66, .05);
}
.reviews-list { gap: 14px; }
.reviews-more {
  border: 1px solid #3d6478;
  background: linear-gradient(180deg, #14303e, #0e2230);
  transition: border-color .2s, transform .2s;
}
.reviews-more:hover { border-color: #67edf0; transform: translateY(-1px); }

/* ---------------- 홈: 신뢰 바 ---------------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.trust-bar__item {
  padding: 15px 18px;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: var(--panel-bg);
  box-shadow: inset 0 1px 0 rgba(140, 247, 255, .06);
}
.trust-bar__label {
  display: block;
  color: #9db8c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.trust-bar__num {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 7px;
  color: #f6fbff;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 850;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.trust-bar__num .stars { --size: 15px; }
.trust-bar__unit {
  color: #a4b7ca;
  font-size: 14px;
  font-weight: 700;
}
.trust-bar__num--live {
  color: #9fe8d8;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 750;
  letter-spacing: -.02em;
}

/* 히어로 신뢰 포인트 */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: block;
  min-width: 0;
  padding: 12px 12px 11px;
  border: 1px solid #2a4558;
  border-radius: 12px;
  background: rgba(8, 22, 34, .45);
  color: #93abbd;
  font-size: 13px;
  line-height: 1.55;
}
.hero-trust li::before { content: none; }
.hero-trust strong {
  display: block;
  margin-bottom: 3px;
  color: #a8fff1;
  font-weight: 750;
  word-break: keep-all;
  line-break: strict;
}
.hero-trust span {
  display: block;
  color: #9db4c4;
  word-break: keep-all;
  line-break: strict;
}

/* ---------------- 홈: 공감 섹션 ---------------- */
.empathy {
  margin: 22px 0;
  padding: clamp(22px, 3.4vw, 32px);
  border: 1px solid #2e4a5e;
  border-radius: 20px;
  background: linear-gradient(155deg, #0d1e2e, #081523 75%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .3);
  scroll-margin-top: 120px;
}
.empathy h2 {
  margin: 0 0 16px;
  color: #f6fbff;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -.045em;
  line-height: 1.35;
  word-break: keep-all;
}
.empathy__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.empathy__list li {
  border: 1px solid #2a4556;
  border-radius: 14px;
  background: #0b1a29;
  transition: border-color .2s ease, transform .2s ease;
}
.empathy__list li:hover {
  border-color: #58d8c9;
  transform: translateY(-2px);
}
.empathy__list a {
  display: block;
  height: 100%;
  padding: 15px 16px;
  color: inherit;
  text-decoration: none;
}
.empathy__list em {
  display: inline-block;
  margin-top: 10px;
  color: #79f4df;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}
.empathy__list strong {
  display: block;
  margin-bottom: 6px;
  color: #eaf6fb;
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
}
.empathy__list span {
  color: #9db4c4;
  font-size: 12.5px;
  line-height: 1.65;
  word-break: keep-all;
}
.empathy__resolve {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-left: 3px solid var(--gold-2);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(245, 185, 66, .09), transparent 72%);
  color: #e8d9b8;
  font-size: 13.5px;
  line-height: 1.7;
  word-break: keep-all;
}

/* ---------------- 홈: 절차 섹션 ---------------- */
.process {
  margin: 22px 0;
  padding: clamp(22px, 3.4vw, 32px);
  border: 1px solid #2e4a5e;
  border-radius: 20px;
  background: linear-gradient(155deg, #0d1e2e, #081523 75%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .3);
  scroll-margin-top: 120px;
}
.process h2 {
  margin: 0 0 16px;
  color: #f6fbff;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -.045em;
  line-height: 1.35;
  word-break: keep-all;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.process__steps li {
  position: relative;
  padding: 16px;
  border: 1px solid #2a4556;
  border-radius: 14px;
  background: #0b1a29;
}
.process__steps li:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -13px;
  top: 18px;
  z-index: 2;
  color: #58d8c9;
  font-size: 22px;
  font-weight: 300;
}
.process__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #a0fff2, #4bdfd2);
  color: #06232c;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(77, 232, 192, .3);
}
.process__steps strong {
  display: block;
  margin-bottom: 5px;
  color: #eaf6fb;
  font-size: 14.5px;
  word-break: keep-all;
}
.process__steps span {
  color: #9db4c4;
  font-size: 12.5px;
  line-height: 1.6;
  word-break: keep-all;
}

/* 공용 CTA 버튼 */
.cta-pulse,
.process__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #b7fff6;
  border-radius: 13px;
  background: linear-gradient(180deg, #a0fff2, #4bdfd2);
  color: #06232c;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.03em;
  text-decoration: none;
  animation: cta-glow 2.6s ease-in-out infinite;
}
.cta-pulse:hover,
.process__cta:hover { filter: brightness(1.05); }
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(44, 221, 206, .26); }
  50% { box-shadow: 0 8px 36px rgba(44, 221, 206, .48); }
}

/* ---------------- 홈: 후기 섹션 ---------------- */
.home-reviews {
  margin: 22px 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #2e4a5e;
  border-radius: 20px;
  background: linear-gradient(155deg, #0e2133, #081524 78%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .3);
  scroll-margin-top: 120px;
}
.home-reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.home-reviews__title h2 {
  margin: 0;
  color: #f6fbff;
  font-size: clamp(21px, 3vw, 26px);
  letter-spacing: -.045em;
}
.home-reviews__stats {
  margin: 6px 0 0;
  color: #a8fff1;
  font-size: 13.5px;
  font-weight: 700;
}
.home-reviews__score {
  display: grid;
  justify-items: end;
  gap: 3px;
  flex: none;
}
.home-reviews__score strong {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, var(--gold-1) 55%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-reviews__score .stars { --size: 15px; }
.home-reviews__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-reviews__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  min-height: 44px;
  color: #79f4df;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.home-reviews__link:hover { color: #a8fff1; }

/* ---------------- 스티키 상담 CTA ---------------- */
.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid #b7fff6;
  border-radius: 999px;
  background: linear-gradient(170deg, #a9fff4, #4fdfd2);
  color: #062830;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(44, 221, 206, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(44, 221, 206, .5);
}
.sticky-cta__pulse {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #062830;
  animation: la-pulse-dark 1.8s ease-out infinite;
}
@keyframes la-pulse-dark {
  0% { box-shadow: 0 0 0 0 rgba(6, 40, 48, .5); }
  70% { box-shadow: 0 0 0 8px rgba(6, 40, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 40, 48, 0); }
}
.sticky-cta strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.sticky-cta > span:not(.sticky-cta__pulse) {
  font-size: 11.5px;
  font-weight: 700;
  color: #0a4a44;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .sticky-cta {
    right: 12px;
    left: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    justify-content: center;
    padding: 14px 18px;
    border-radius: 15px;
  }
  .sticky-cta > span:not(.sticky-cta__pulse) { display: none; }
}

/* ---------------- 스크롤 리빌 ---------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- 반응형 ---------------- */
@media (max-width: 760px) {
  .hero-trust { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; gap: 9px; }
  .trust-bar__item { padding: 13px 16px; }
  .empathy__list,
  .process__steps { grid-template-columns: 1fr; gap: 9px; }
  .process__steps li:not(:last-child)::after {
    content: "⌄";
    right: 50%;
    top: auto;
    bottom: -13px;
    transform: translateX(50%);
    font-size: 15px;
  }
  .home-reviews__list { grid-template-columns: 1fr; }
  .rating-summary { grid-template-columns: 1fr; gap: 18px; }
  .rating-summary__score { justify-items: start; text-align: left; }
  .reviews-filters.seg { display: flex; overflow-x: auto; }
  .reviews-filters.seg .reviews-filter { flex: 1 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta-pulse,
  .process__cta { animation: none; }
  .sticky-cta__pulse { animation: none; }
  .review-card { transition: none; }
  .hist-row__fill { transition: none; }
}

/* 한국어 줄바꿈: 어절은 붙이고, 문장 끝의 짧은 조각은 위로 당긴다. */
html {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
:where(h1, h2, h3, h4, p, li, a, button, span, small, strong, em, summary, label, dt, dd) {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
@supports (text-wrap: pretty) {
  :where(p, li, summary, dd, .hero-intro, .hero-chat-note, .consultation-intro, .consultation-safety, .empathy__resolve, .operator-funded-costs, .site-footer, .site-footer__terms, .reviews-disclaimer, .reviews-snippet) {
    text-wrap: pretty;
  }
}
@supports (text-wrap: balance) {
  :where(h1, h2, h3, .section-kicker) {
    text-wrap: balance;
  }
}
@media (max-width: 420px) {
  .hero-actions .cta-main,
  .hero-actions .cta-secondary,
  .cta-pulse,
  .process__cta,
  .sticky-cta strong {
    white-space: normal;
    text-wrap: balance;
    line-height: 1.3;
  }
  .site-footer nav { gap: 8px 12px; }
  .consultation-panel { padding: 18px 14px; }
  .quick-flow span { word-break: keep-all; }
}
