/* Social proof — trusted-by client marquee + one mixed horizontal review carousel
   (Google card, video reviews, Instagram quotes, follow card) */

.proof {
  background: var(--ink);
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: "Fredoka", "Poppins", sans-serif;
}

/* stardust: tiny cyan + hot-pink specks in the empty black space */
.proof::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
background-image:
    radial-gradient(8px 8px at 14% 30%, rgba(0, 172, 220, 0.95), transparent 80%),
    radial-gradient(8px 8px at 30% 70%, rgba(238, 42, 123, 0.9), transparent 80%),
    radial-gradient(8px 8px at 52% 20%, rgba(0, 172, 220, 0.9), transparent 80%),
    radial-gradient(8px 8px at 70% 64%, rgba(238, 42, 123, 0.9), transparent 80%),
    radial-gradient(8px 8px at 86% 34%, rgba(0, 172, 220, 0.95), transparent 80%),
    radial-gradient(8px 8px at 92% 76%, rgba(238, 42, 123, 0.9), transparent 80%),
    radial-gradient(8px 8px at 24% 90%, rgba(0, 172, 220, 0.9), transparent 80%),
    radial-gradient(8px 8px at 60% 92%, rgba(255, 222, 89, 0.8), transparent 80%);
}

.proof__head { text-align: center; margin-bottom: 2.2rem; padding: 0 5vw; }

.proof__kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  transform: rotate(-2deg);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
  margin-bottom: 1.1rem;
}

.proof__title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.proof__title em { font-style: normal; color: var(--pink); }

/* floating IP mascots in the empty black margins of the section */
.proof__mascot {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.proof__mascot--joy {
  top: 14%;
  left: 2%;
  width: clamp(76px, 6.5vw, 116px);
  transform: rotate(-7deg);
}

.proof__mascot--minku {
  bottom: 8%;
  right: 2%;
  width: clamp(70px, 6vw, 104px);
  transform: rotate(6deg);
}
.proof [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proof.is-visible [data-reveal] { opacity: 1; transform: translateY(0); }
.proof.is-visible [data-reveal="0"] { transition-delay: 0.02s; }
.proof.is-visible [data-reveal="1"] { transition-delay: 0.14s; }

/* ---------- trusted-by marquee ---------- */
.proof__clients {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  max-width: 1280px;
  margin: 0 auto 2.4rem;
  padding: 0 5vw;
}

.proof__clients-label {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof__marquee {
  flex: 1;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 0;
  /* fade both edges so names slide in/out of nothing */
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}

.proof__marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: proofMarquee 26s linear infinite;
}

.proof__marquee:hover .proof__marquee-track { animation-play-state: paused; }

.proof__marquee-track span {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.proof__marquee-track i {
  color: var(--yellow);
  font-style: normal;
  font-size: 0.8rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .proof__marquee-track { animation: none; }
}

/* ---------- horizontal carousel ---------- */
.proof__carousel-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw;
}

.proof__carousel {
  display: flex;
  align-items: center; /* Instagram embeds run taller than our cards — center the mix */
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.4rem 0.4rem 1.6rem; /* room for hover-lift + hard shadows */
  scrollbar-width: none;
}

.proof__carousel::-webkit-scrollbar { display: none; }

.proof__slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 420px;
}

/* arrows — match hero's circular style */
.proof__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 10, 10, 0.75);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.proof__arrow:hover { background: var(--pink); border-color: var(--pink); }
.proof__arrow--prev { left: calc(5vw - 23px); }
.proof__arrow--next { right: calc(5vw - 23px); }
.proof__arrow[disabled] { opacity: 0.25; cursor: default; }
.proof__arrow[disabled]:hover { background: rgba(10, 10, 10, 0.75); border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Google receipt card ---------- */
.proof__google {
  position: relative;
  overflow: hidden;
  width: 300px;
  border-radius: 4px;
  padding: 2rem 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-1.5deg);
  text-decoration: none;
  box-shadow: 10px 14px 0 rgba(0, 172, 220, 0.35), 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  -webkit-mask-image: radial-gradient(circle 5px at 14px 100%, transparent 98%, #fff 100%),
    radial-gradient(circle 5px at 42px 100%, transparent 98%, #fff 100%),
    radial-gradient(circle 5px at 70px 100%, transparent 98%, #fff 100%),
    radial-gradient(circle 5px at 98px 100%, transparent 98%, #fff 100%),
    radial-gradient(circle 5px at 126px 100%, transparent 98%, #fff 100%);
}

.proof__google-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.4s ease;
}

.proof__google::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 15%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.35));
}

.proof__google:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 12px 18px 0 rgba(0, 172, 220, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.proof__google:hover .proof__google-bg { transform: scale(1.06); }

.proof__google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.proof__google-badge svg { width: 14px; height: 14px; }

.proof__score {
  font-weight: 700;
  font-size: clamp(3rem, 5.2vw, 4.4rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.proof__stars {
  color: #f6b700;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin: 0.5rem 0 0.7rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.proof__google-label {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  max-width: 22ch;
}

.proof__google-cta {
  margin-top: 1.2rem;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Instagram reel embed slide (rendered by js/instagram-reels.js) ---------- */
.proof__ig-slide {
  height: auto;
  width: 328px; /* Instagram's embed min-width is 326px */
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 7px 9px 0 rgba(0, 172, 220, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4);
  background: #141414;
}

/* alternate accents so the row doesn't read uniform */
.proof__ig-slide:nth-of-type(odd) { border-color: var(--pink); box-shadow: 7px 9px 0 rgba(238, 42, 123, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4); }

.proof__ig-slide .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: none !important;
}

/* ---------- Local review-video cards (portrait 9:16) ---------- */
.proof__video-slide {
  width: 236px; /* 9:16 of the 420px slide height */
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 7px 9px 0 rgba(0, 172, 220, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4);
  background: #000;
  transform: rotate(-1.2deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.proof__video-slide--alt {
  border-color: var(--pink);
  transform: rotate(1.5deg);
  box-shadow: 7px 9px 0 rgba(238, 42, 123, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.proof__video-slide:hover { transform: rotate(0) translateY(-4px); }

.proof__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ---------- Instagram follow card (end of carousel) ---------- */
.proof__insta-card {
  width: 280px;
  background: linear-gradient(135deg, var(--pink), #b0007e);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  text-decoration: none;
  transform: rotate(-0.8deg);
  box-shadow: 8px 10px 0 rgba(238, 42, 123, 0.3), 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.proof__insta-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 8px 14px 0 rgba(238, 42, 123, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45); }

.proof__insta-icon { font-size: 2.4rem; }

.proof__insta-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.proof__insta-btn {
  background: #fff;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .proof__clients { flex-direction: column; gap: 0.8rem; align-items: stretch; text-align: center; }
  .proof__slide { height: 380px; }
  .proof__google, .proof__insta-card { width: min(78vw, 320px); }
  .proof__ig-slide { width: min(86vw, 328px); }
  .proof__video-slide { width: min(58vw, 214px); } /* 9:16 of the 380px mobile height */
  .proof__arrow { display: none; } /* swipe is native on touch */
  .proof__mascot { display: none; }
}
