/* Client feedback marquee and original-chat viewer */
.client-feedback-section {
  position: relative;
  overflow: hidden;
  margin: 0 58px 34px;
  padding: 56px 0 34px;
  border: 1px solid rgba(7, 79, 59, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 83% 66%, rgba(53, 201, 142, 0.14), transparent 25%),
    radial-gradient(circle at 14% 80%, rgba(214, 234, 224, 0.58), transparent 27%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(249, 252, 248, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 64px rgba(7, 21, 18, 0.07);
  isolation: isolate;
}

.client-feedback-section::before,
.client-feedback-section::after {
  content: none;
  border: 0;
  box-shadow: none;
}

.client-feedback-heading {
  max-width: 940px;
  padding: 0 54px 36px;
}

.client-feedback-heading .eyebrow,
.proof-preview-section .section-heading > .eyebrow {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  margin: 0 0 28px;
  padding: 10px 18px;
  border: 1px solid rgba(5, 78, 58, 0.3);
  border-radius: 999px;
  background: linear-gradient(145deg, #168b69, #07553f);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 30px rgba(5, 84, 62, 0.18);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.client-feedback-heading .eyebrow::before,
.proof-preview-section .section-heading > .eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #f14e45;
  box-shadow: 0 0 0 0 rgba(241, 78, 69, 0.38);
  animation: clientFeedbackHeadingSignal 2.6s ease-out infinite;
}

@keyframes clientFeedbackHeadingSignal {
  0%, 34% {
    box-shadow: 0 0 0 0 rgba(241, 78, 69, 0.36);
  }
  72%, 100% {
    box-shadow: 0 0 0 10px rgba(241, 78, 69, 0);
  }
}

.client-feedback-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.client-feedback-heading > p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.client-feedback-marquee {
  display: grid;
  gap: 20px;
  padding: 6px 0 12px;
  overflow: hidden;
}

.client-feedback-row {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.client-feedback-row::-webkit-scrollbar {
  display: none;
}

.client-feedback-row.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.client-feedback-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 2px 0 8px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.client-feedback-card {
  position: relative;
  display: grid;
  flex: 0 0 338px;
  gap: 24px;
  width: 338px;
  min-height: 220px;
  padding: 25px 26px 23px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(20, 132, 95, 0.2);
  border-radius: 27px;
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.9), rgba(247, 253, 249, 0.58)),
    radial-gradient(circle at 82% 78%, rgba(53, 201, 142, 0.13), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 45px rgba(7, 55, 42, 0.1);
  backdrop-filter: blur(22px) saturate(1.25);
  cursor: pointer;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.client-feedback-card::after {
  position: absolute;
  right: 26px;
  bottom: 31px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #159b72;
  box-shadow: 0 0 0 0 rgba(21, 155, 114, 0.32);
  transform-origin: center;
  animation: clientFeedbackGreenPulse 2.2s ease-out infinite;
  content: "";
}

.client-feedback-card:hover,
.client-feedback-card:focus-visible {
  z-index: 2;
  transform: translateY(-6px);
  border-color: rgba(20, 132, 95, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 28px 58px rgba(7, 55, 42, 0.15);
  outline: none;
}

.feedback-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(7, 21, 18, 0.08);
}

.feedback-card-top > span {
  max-width: 190px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.feedback-card-top > span::before {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  place-items: center;
  color: var(--signal-deep);
  border: 1px solid rgba(20, 132, 95, 0.2);
  border-radius: 50%;
  background: rgba(231, 249, 241, 0.9);
  content: "✓";
}

.feedback-card-top em {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: #087657;
  border: 1px solid rgba(20, 132, 95, 0.16);
  border-radius: 999px;
  background: rgba(231, 249, 241, 0.82);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-feedback-card > strong {
  position: relative;
  z-index: 1;
  align-self: start;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.12;
}

.feedback-proof-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: end;
  justify-self: start;
  gap: 7px;
  color: #0b6e51;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feedback-proof-action b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(20, 132, 95, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.client-feedback-note {
  margin: 18px 54px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.client-feedback-note strong {
  color: var(--signal-deep);
}

.feedback-proof-modal[hidden] {
  display: none !important;
}

.feedback-proof-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.feedback-proof-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(2, 20, 16, 0.38);
  backdrop-filter: blur(0) saturate(1);
  transition:
    opacity 420ms ease,
    backdrop-filter 520ms ease;
}

.feedback-proof-viewer {
  --proof-origin-x: 0px;
  --proof-origin-y: 0px;
  --proof-origin-scale: 0.36;
  position: relative;
  z-index: 1;
  display: grid;
  width: min(460px, calc(100vw - 34px));
  max-height: calc(100svh - 34px);
  padding: 16px;
  overflow: hidden;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.91), rgba(238, 249, 243, 0.76)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 46px 100px rgba(0, 18, 14, 0.36);
  transform: translate3d(var(--proof-origin-x), var(--proof-origin-y), 0) scale(var(--proof-origin-scale));
  transform-origin: center;
  transition:
    transform 520ms cubic-bezier(0.2, 0.82, 0.24, 1),
    opacity 260ms ease;
}

.feedback-proof-modal.is-open .feedback-proof-backdrop {
  opacity: 1;
  backdrop-filter: blur(18px) saturate(0.72);
}

.feedback-proof-modal.is-open .feedback-proof-viewer {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.feedback-proof-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 4px 14px;
}

.feedback-proof-viewer-head > div {
  display: grid;
  gap: 3px;
}

.feedback-proof-viewer-head span {
  color: var(--signal-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feedback-proof-viewer-head strong {
  font-size: 16px;
}

.feedback-proof-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(7, 21, 18, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 9px 24px rgba(7, 21, 18, 0.08);
  cursor: pointer;
  font-size: 25px;
}

.feedback-proof-close:hover,
.feedback-proof-close:focus-visible {
  border-color: rgba(20, 132, 95, 0.32);
  outline: 2px solid rgba(53, 201, 142, 0.22);
}

.feedback-proof-phone {
  position: relative;
  width: min(390px, 100%);
  height: min(72svh, 730px);
  min-height: 420px;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 27px;
  background: #071713;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 22px 52px rgba(1, 19, 15, 0.25);
}

.feedback-proof-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #00110e;
}

.feedback-proof-speaker {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.feedback-proof-viewer > p {
  margin: 12px 0 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

body.proof-view-open {
  overflow: hidden;
}

/* Keep original conversations genuinely readable on large desktop displays. */
@media (min-width: 1600px) and (min-height: 1000px) {
  .feedback-proof-modal {
    padding: 28px;
  }

  .feedback-proof-viewer {
    width: min(760px, calc(100vw - 64px));
    max-height: calc(100svh - 56px);
    padding: 20px;
    border-radius: 38px;
  }

  .feedback-proof-viewer-head {
    padding: 6px 6px 16px;
  }

  .feedback-proof-viewer-head span {
    font-size: 12px;
  }

  .feedback-proof-viewer-head strong {
    font-size: 20px;
  }

  .feedback-proof-close {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 29px;
  }

  .feedback-proof-phone {
    width: min(680px, 100%);
    height: min(calc(100svh - 190px), 1020px);
    min-height: 0;
    padding: 14px;
    border-radius: 31px;
  }

  .feedback-proof-viewer > p {
    padding-top: 12px;
    font-size: 13px;
  }
}

@keyframes clientFeedbackForward {
  from { transform: translateX(-7%); }
  to { transform: translateX(-29%); }
}

@keyframes clientFeedbackReverse {
  from { transform: translateX(-27%); }
  to { transform: translateX(-5%); }
}

@keyframes clientFeedbackGreenPulse {
  0% {
    transform: scale(0.68);
    box-shadow: 0 0 0 0 rgba(21, 155, 114, 0.34);
  }
  46% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(21, 155, 114, 0.14);
  }
  100% {
    transform: scale(0.68);
    box-shadow: 0 0 0 17px rgba(21, 155, 114, 0);
  }
}

@keyframes clientFeedbackGreenPulseMobile {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.72);
  }

  50% {
    opacity: 1;
    transform: scale(1.14);
  }
}

@media (max-width: 860px) {
  .client-feedback-section {
    margin: 0 14px 18px;
    padding: 38px 0 27px;
    border-radius: 26px;
  }

  .client-feedback-heading {
    padding: 0 22px 27px;
  }

  .client-feedback-heading .eyebrow,
  .proof-preview-section .section-heading > .eyebrow {
    min-height: 40px;
    margin-bottom: 22px;
    padding: 9px 15px;
    font-size: 12px;
  }

  .client-feedback-heading h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .client-feedback-row {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: auto;
  }

  .client-feedback-card {
    background:
      linear-gradient(142deg, rgba(255, 255, 255, 0.96), rgba(242, 251, 246, 0.9)),
      radial-gradient(circle at 82% 78%, rgba(53, 201, 142, 0.13), transparent 42%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .client-feedback-card::after {
    animation-name: clientFeedbackGreenPulseMobile;
    box-shadow: 0 0 0 7px rgba(21, 155, 114, 0.12);
  }

  .client-feedback-row.is-dragging .client-feedback-card {
    transform: none !important;
    transition: none;
  }

  .client-feedback-track,
  .client-feedback-track.track-forward,
  .client-feedback-track.track-reverse {
    padding-inline: 18px;
  }

  .client-feedback-card {
    width: 286px;
    min-height: 210px;
    flex-basis: 286px;
  }

  .client-feedback-note {
    margin-inline: 22px;
  }

  .feedback-proof-modal {
    padding: 9px;
  }

  .feedback-proof-viewer {
    width: min(470px, calc(100vw - 18px));
    max-height: calc(100svh - 18px);
    padding: 12px;
    border-radius: 28px;
  }

  .feedback-proof-phone {
    height: min(77svh, 760px);
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-proof-backdrop,
  .feedback-proof-viewer,
  .client-feedback-card {
    transition-duration: 1ms;
  }

  .client-feedback-card::after {
    animation: none;
    transform: none;
    box-shadow: 0 0 0 7px rgba(21, 155, 114, 0.12);
  }

  .client-feedback-heading .eyebrow::before,
  .proof-preview-section .section-heading > .eyebrow::before {
    animation: none;
    box-shadow: 0 0 0 7px rgba(241, 78, 69, 0.12);
  }
}
