/* The pricing page (pricing.html): the three solutions side by side, each with its price, a button
   to get started and what is included. The base and the texture are in page.css. */

/* ------------------------------------------------------------ the yellow card */

.pc-hero {
  position: relative;
  padding: 16px 16px 0;
}

.pc-frame {
  position: relative;
  min-height: calc(100vh - 32px);
  min-height: calc(100svh - 32px);
  border-radius: 40px;
  overflow: hidden;
  background: #feeb8d;
  color: #252324;
}

.pc-body {
  position: relative;
  padding: clamp(128px, 17svh, 190px) 32px 40px;
}

.pc-head {
  display: grid;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pc-title {
  margin: 0;
  font-size: clamp(44px, 5vw, 96px);
  font-weight: 550;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.pc-title > span {
  display: block;
}

.pc-title > span + span {
  color: rgba(37, 35, 36, 0.5);
}

.pc-sub {
  max-width: 30em;
  margin: 22px 0 0;
  font-size: 20px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: rgba(37, 35, 36, 0.62);
}

/* ------------------------------------------------------------ the cards */

/* the cards share their rows, so names, prices and buttons line up across them */
.pc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  max-width: 1240px;
  margin: 56px auto 0;
}

.pc-card {
  position: relative;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 30px 30px 34px;
  border-radius: 28px;
  background: #fffce1;
  color: #000000;
  scroll-margin-top: 24px;
  transition: box-shadow 0.3s ease, translate 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.pc-card:hover {
  translate: 0 -3px;
}

/* arriving from "Choose ..." on the solutions page, that card is outlined */
.pc-card:target {
  box-shadow: inset 0 0 0 2px #252324;
}

.pc-card__no {
  display: block;
  height: 30px;
  color: #252324;
}

.pc-card__no svg {
  display: block;
  height: 100%;
  width: auto;
  overflow: visible;
}

.pc-card__name {
  margin: 24px 0 0;
  font-size: 30px;
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pc-card__price {
  margin: 28px 0 0;
  font-size: clamp(48px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sb-from {
  margin-right: 8px;
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.012em;
}

/* what the starting price is for, under it */
.pc-card__base {
  display: block;
  margin-top: 14px;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.pc-card__cta {
  height: 52px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #252324;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.pc-card__cta,
.pc-card__cta:hover {
  color: #fffce1;
}

.pc-card__incl {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #d3d1bb;
}

.pc-card__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.pc-card__list svg {
  display: block;
  flex: none;
}

/* for screen readers: which solution a "Get started" is for */
.pc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------ smaller screens */

@media (max-width: 1000px) {
  .pc-cards {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
    max-width: 560px;
  }

  .pc-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .pc-body {
    padding: 112px 16px 24px;
  }

  .pc-title {
    font-size: 46px;
  }

  .pc-sub {
    font-size: 18px;
  }

  .pc-cards {
    margin-top: 40px;
  }

  .pc-card {
    padding: 26px 22px 28px;
    border-radius: 24px;
  }

  .pc-card__name {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-card {
    transition: none;
  }

  .pc-card:hover {
    translate: none;
  }
}
