/* The free-trial popup (README "Free-trial popup"). Opened and closed by members.js; without the
   script it never shows. */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.popup__dialog {
  position: relative;
  width: min(100%, 760px);
  background: var(--page);
  color: var(--ink);
  border-radius: var(--r-panel);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  box-shadow: var(--shadow-popup);
  animation: sm-in 0.25s ease-out;
}
.popup__photo {
  position: relative;
  min-height: 260px;
  background: var(--green);
  overflow: hidden;
}
.popup__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.popup__circle {
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--lime);
}
.popup__offer {
  position: absolute;
  left: 22px;
  bottom: 22px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  max-width: 120px;
}
.popup__body {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 16px;
  align-content: center;
}
.popup__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.popup__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.popup__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.popup__later {
  height: 52px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.popup__later:hover {
  color: var(--ink);
}
.popup__fine {
  font-size: 12px;
  color: var(--text-muted);
}
.popup__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(248, 247, 242, 0.9);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.popup__close::after {
  /* a 44 px target around the 36 px circle */
  content: "";
  position: absolute;
  inset: -4px;
}

.has-popup {
  overflow: hidden;
}
