/* Optional comparison perspective trial. Remove this stylesheet's link from
   both landing pages to restore the upright, flat chat and original paper
   rotations. The extra phone wrapper is visually neutral without this file. */
.comparison-phone {
  position: relative;
  isolation: isolate;
  transform-origin: center;
}

/* A rounded, tapered back plate follows the face's lower corners instead of
   leaving the vertical side walls produced by an offset box shadow. */
.comparison-phone::before {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 28px;
  background: var(--jam);
  -webkit-mask: url('/phone-depth.svg') center / 100% 100% no-repeat;
  mask: url('/phone-depth.svg') center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.comparison-phone > .comparison-thread {
  position: relative;
  z-index: 1;
  box-shadow: none;
}

/* Keep the stacked mobile layout still and easy to read. */
.comparison-clipboard,
.comparison-quote {
  transform: none;
  transform-origin: center 60%;
}

@media (min-width: 801px) {
  .comparison-phone {
    transform: perspective(1100px) rotateX(8deg);
  }

  /* Recede the two upper corners nearest the phone; retain the paper rotations. */
  .comparison-clipboard {
    transform: perspective(1100px) rotateX(6deg) rotateY(8deg) rotateZ(-3deg);
  }

  .comparison-quote {
    transform: perspective(1100px) rotateX(6deg) rotateY(-8deg) rotateZ(3deg);
  }
}
