/* Release 3.5.0: 3D tool group on /plugin and storage plans on /pricing. */

.rpGroupHead {
  margin-top: 64px;
}
.rpGroupHead h3 {
  letter-spacing: -0.025em;
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.25;
}
.rpGroupHead p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #69655f;
  font-size: 16px;
  line-height: 1.6;
}

.rsToolGrid.rp3dGrid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.rsToolGrid.rp3dGrid article:nth-child(n) {
  grid-column: span 2;
  scroll-margin-top: 32px;
}
.rsToolGrid.rp3dGrid article:nth-child(4) {
  grid-column: span 6;
}
/* The Mapper card swaps in a tall picture on tablets and phones (a <picture> source).
   The wrapper must not take part in the card's layout. */
.rsToolGrid.rp3dGrid picture {
  display: contents;
}
/* Wide picture on desktop: keep the top swatch in view. */
.rsToolGrid.rp3dGrid article[data-tool="Mapper"] img {
  object-position: 50% 20%;
}

@media (min-width: 641px) and (max-width: 1000px) {
  .rsToolGrid.rp3dGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rsToolGrid.rp3dGrid article:nth-child(n) {
    grid-column: span 1;
    height: 440px;
  }
}

/* Tall Mapper picture on tablets and phones: keep the sphere above the card text. */
@media (max-width: 1000px) {
  .rsToolGrid.rp3dGrid article[data-tool="Mapper"] img {
    object-position: 50% 80%;
  }
}

@media (max-width: 640px) {
  .rpGroupHead {
    margin-top: 48px;
  }
  .rpGroupHead h3 {
    font-size: 24px;
  }
  .rsToolGrid.rp3dGrid {
    grid-template-columns: 1fr;
  }
  .rsToolGrid.rp3dGrid article:nth-child(n) {
    grid-column: auto;
    aspect-ratio: auto;
    height: 440px;
    min-height: 0;
  }
}

.rpStorage .rpStorageGrid {
  margin-top: var(--rm-control-media-gap, 24px);
}
/* One price per card: monthly by default, yearly when the switch is on Yearly */
.rpStorage .rpStorageYearly {
  display: none;
}
.rpStorage:has(input[value="year"]:checked) .rpStorageYearly {
  display: block;
}
.rpStorage:has(input[value="year"]:checked) .rpStorageMonthly {
  display: none;
}
/* Monthly / Yearly switch */
.rpPeriodSwitch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  margin: var(--rm-heading-controls-gap, 36px) auto 0;
  padding: 5px;
  background: #fff;
  border: 1px solid #dfdcd5;
  border-radius: var(--rm-control-radius, 9px);
}
.rpPeriodSwitch label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--rm-control-radius, 9px);
  color: #625d55;
  font: 550 14px/1.3 "Review Inter", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s, color 0.16s;
}
.rpPeriodSwitch label:hover:not(:has(input:checked)) {
  color: #292622;
  background: #eeece6;
}
.rpPeriodSwitch label:has(input:checked) {
  color: #fff;
  background: #292622;
}
.rpPeriodSwitch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  clip-path: inset(50%);
}
.rpPeriodSwitch label:has(input:focus-visible) {
  outline: 2px solid #a37120;
  outline-offset: 3px;
}
.rpPeriodSaving {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f4ead7;
  color: #8a5f1a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.rpPeriodSwitch label:has(input:checked) .rpPeriodSaving {
  background: rgba(232, 175, 72, 0.18);
  color: #e8af48;
}
@media (prefers-reduced-motion: reduce) {
  .rpPeriodSwitch label {
    transition: none;
  }
}
@media (max-width: 560px) {
  .rpPeriodSwitch label {
    padding-inline: 14px;
  }
}
.rpStorage .rmPackExamples {
  margin-bottom: 0;
}
.rpStorageNotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: #49453f;
  font-size: 15px;
  line-height: 1.5;
}
.rpStorage .rmWorkflowAction {
  margin-top: 32px;
}

@media (max-width: 760px) {
  .rpStorageNotes {
    grid-template-columns: 1fr;
  }
}
