/* 홈 리뷰 띠 — 네이버·카카오맵·구글에 남겨진 실제 리뷰를 천천히 흘려 보여 준다.
   카드를 바꿀 때는 index.html의 두 묶음(보이는 묶음, aria-hidden 묶음)을 같이 고친다. */
.home-voices {
  scroll-margin-top: 72px;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: var(--bg-base);
  overflow: hidden;
}

.home-voices__head {
  max-width: 1200px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.home-voices__eyebrow {
  margin: 0 0 0.9rem;
  color: var(--teal-pattern);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.home-voices__head h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

/* 외국어 홈: 캡처는 한국어 원문이고 인용은 번역이라는 안내 한 줄. */
.home-voices__caption {
  margin: 0.8rem 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
  word-break: keep-all;
}

.home-voices__rail {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.home-voices__track {
  display: flex;
  width: max-content;
  animation: home-voices-flow 150s linear infinite;
}

.home-voices__rail:hover .home-voices__track,
.home-voices__rail:focus-within .home-voices__track {
  animation-play-state: paused;
}

.home-voices__set {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
  padding-right: 1rem;
  margin: 0;
  list-style: none;
}

/* 채널 색은 박성호 요청(2026-09-28)으로 각 플랫폼 색을 그대로 쓴다. 디어 팔레트 예외는 이 띠뿐이다. */
.voice-card {
  display: flex;
  flex-direction: column;
  width: clamp(250px, 72vw, 300px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--warm-gray);
  border-radius: 18px;
}

.voice-band {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.voice-band__logo {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.voice-band__label {
  font-weight: 600;
  opacity: 0.88;
}

.voice-band__stars {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.voice-card--naver .voice-band {
  color: #fff;
  background: #03c75a;
}

.voice-card--kakao .voice-band {
  color: #191919;
  background: #fee500;
}

.voice-card--kakao .voice-band__logo b {
  font-weight: 500;
}

.voice-card--kakao .voice-band__stars {
  color: #191919;
}

.voice-card--google .voice-band {
  color: #3c4043;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.voice-card--google .voice-band__logo {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.voice-card--google .voice-band__logo i {
  font-style: normal;
}

.voice-card--google .voice-band__logo i:nth-child(1),
.voice-card--google .voice-band__logo i:nth-child(4) { color: #4285f4; }
.voice-card--google .voice-band__logo i:nth-child(2),
.voice-card--google .voice-band__logo i:nth-child(6) { color: #ea4335; }
.voice-card--google .voice-band__logo i:nth-child(3) { color: #fbbc05; }
.voice-card--google .voice-band__logo i:nth-child(5) { color: #34a853; }

.voice-card--google .voice-band__stars {
  color: #fbbc05;
}

/* 실제 리뷰 화면. 긴 캡처는 윗부분(가린 작성자·날짜·첫 문장)부터 보인다. */
.voice-card__shot {
  position: relative;
  height: 210px;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--warm-gray);
}

/* 폭에 맞춰 원래 비율로 싣는다. 가로로 긴 캡처는 잘리지 않고, 세로로 긴 캡처는 아래가 가려진다. */
.voice-card__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.voice-card__shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.voice-card blockquote {
  flex: 1;
  margin: 1rem 1.2rem 0;
  color: #3a3f3c;
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.voice-card blockquote strong {
  color: var(--green-deep);
  font-weight: 600;
}

.voice-card__gloss {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.voice-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0.9rem 1.2rem 0;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--warm-gray);
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.voice-card__meta b {
  color: var(--teal-dark);
  font-weight: 600;
}

/* 카카오·구글 캡처는 가로로 길어서 카드를 넓혀 글씨가 작아지지 않게 한다. */
.voice-card.voice-card--wide {
  width: clamp(280px, 86vw, 440px);
}

.home-voices__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: clamp(1.8rem, 3.5vw, 2.4rem) auto 0;
  padding: 0 1rem;
  list-style: none;
}

.voice-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.voice-link::after {
  content: "→";
  margin-left: 0.4rem;
}

.voice-link--naver {
  color: #fff;
  background: #03c75a;
}

.voice-link--kakao {
  color: #191919;
  background: #fee500;
}

.voice-link--google {
  color: #3c4043;
  background: #fff;
  border: 1px solid #dadce0;
}

.voice-link:hover {
  filter: brightness(0.95);
}

/* 리뷰 바로가기 알약 — js/home-review-pill.js가 is-visible을 붙였다 뗀다. */
.review-pill {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.35rem 0 1.05rem;
  color: #fff;
  background: var(--green-deep);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(36, 120, 96, 0.38);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.review-pill.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: review-pill-hop 0.9s ease 0.2s 1;
}

/* 나타날 때 한 번만 살짝 튀어 올라 눈에 띄게 한다. */
@keyframes review-pill-hop {
  0%, 100% { translate: 0 0; }
  35% { translate: 0 -8px; }
  60% { translate: 0 0; }
  78% { translate: 0 -3px; }
}

.review-pill__dots {
  display: inline-flex;
  gap: 3px;
  padding: 4px 5px;
  background: #fff;
  border-radius: 999px;
}

.review-pill__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.review-pill__dots i:nth-child(1) { background: #03c75a; }
.review-pill__dots i:nth-child(2) { background: #fee500; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.review-pill__dots i:nth-child(3) { background: #4285f4; }

.review-pill__arrow {
  color: #fff;
}

.review-pill:hover {
  background: var(--teal-dark);
}

/* 휴대폰: 하단 메뉴(75px) 바로 위, 오른쪽 디숭이와 겹치지 않게 왼쪽에 둔다. */
@media (max-width: 900px) {
  .review-pill {
    left: 16px;
    bottom: calc(75px + 12px + env(safe-area-inset-bottom, 0px));
    transform: translateY(12px);
  }

  .review-pill.is-visible {
    transform: translateY(0);
  }
}

@keyframes home-voices-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 움직임 줄이기를 켠 기기에서는 흐르지 않고 손으로 넘긴다. */
@media (prefers-reduced-motion: reduce) {
  .home-voices__rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-voices__track {
    animation: none;
    padding: 0 clamp(1rem, 4vw, 2rem);
  }

  .home-voices__set[aria-hidden="true"] {
    display: none;
  }

  .voice-card {
    scroll-snap-align: start;
  }

  .review-pill,
  .review-pill.is-visible {
    transition: none;
    animation: none;
  }
}
