/*
 * "Live on the app today": a real shop's real post, in a phone. The post is
 * taller than the phone; the screen scrolls by hand, and with motion on it
 * scrolls with the page instead (motion.js), so the caption comes into view.
 */

.live-shop {
  align-items: center;
  background:
    radial-gradient(40% 55% at 90% 15%, rgb(22 163 74 / 12%) 0%, transparent 70%),
    radial-gradient(35% 50% at 0% 100%, rgb(210 237 136 / 30%) 0%, transparent 70%),
    #fbfaf6;
  display: grid;
  gap: clamp(40px, 6vw, 100px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  overflow: hidden;
}

.live-copy h2 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.02;
}

.live-lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 22px 0 28px;
  max-width: 520px;
}

.live-points {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0 0 34px;
  max-width: 540px;
  padding: 0;
}

.live-points li {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px -24px rgb(23 46 43 / 45%);
  display: flex;
  gap: 14px;
  padding: 16px 18px;
}

.live-points strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}

.live-points div span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.live-tick {
  flex: none;
  height: 26px;
  width: 26px;
}

.live-dot {
  align-items: center;
  background: var(--teal-light);
  border-radius: 50%;
  color: var(--teal);
  display: inline-flex;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  width: 26px;
}

/* --- the phone ----------------------------------------------------------- */

.live-phone {
  justify-self: center;
  margin: 0;
  max-width: 360px;
  position: relative;
  width: 100%;
}

/* A green disc behind the phone. */
.live-phone::before {
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(22 163 74 / 22%) 0%, rgb(22 163 74 / 0%) 68%);
  border-radius: 50%;
  content: "";
  left: 50%;
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 150%;
  z-index: 0;
}

.live-screen {
  background: #fff;
  border: 11px solid #121c1b;
  border-radius: 44px;
  box-shadow:
    0 50px 80px -40px rgb(12 30 28 / 70%),
    0 0 0 1px rgb(0 0 0 / 8%);
  height: min(660px, 170vw);
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
  z-index: 1;
}

.live-screen::-webkit-scrollbar {
  display: none;
}

.live-screen img {
  display: block;
  height: auto;
  width: 100%;
}

/* With motion on, the page drives the screen (motion.js). */
.motion-live .live-screen {
  overflow: hidden;
}

.live-badge {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 16px 30px -16px rgb(0 0 0 / 45%);
  color: #15803d;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  left: -22px;
  padding: 9px 16px 9px 10px;
  position: absolute;
  top: 44px;
  z-index: 2;
}

.live-badge .live-tick {
  height: 22px;
  width: 22px;
}

.live-phone figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  position: relative;
  text-align: center;
  z-index: 1;
}

@media (max-width: 900px) {
  .live-shop {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-phone {
    max-width: 320px;
  }

  .live-badge {
    left: -10px;
  }
}

@media (max-width: 480px) {
  .live-points li {
    padding: 14px;
  }

  .live-screen {
    border-width: 9px;
    border-radius: 38px;
  }
}
