.pricing {
  max-width: 744px;
  margin-inline: auto;

  section:not(:last-of-type) {
    margin-bottom: 2rem;
  }

  .plans {
    > ul {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      gap: 2rem;
    }

    dl {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      margin-bottom: 0.5rem;
    }

    dt {
      strong {
        font-size: 1.25rem;
      }
    }

    li {
      display: flex;
      flex-direction: column;

      ul {
        display: table;
        margin-inline: auto;
        margin-bottom: 1rem;
        flex: 1;
      }
    }

    p {
      display: table;
      margin: auto;
      background: var(--light-300);
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      font-size: 0.875rem;

      span {
        display: block;
      }
    }

    .callout {
      margin-bottom: 1rem;
    }
  }

  .qa {
    dl:not(:last-of-type) {
      margin-bottom: 1rem;
    }

    dt {
      font-weight: bold;
    }
  }

  .subscribe-button {
    display: table;
    position: relative;
    margin-inline: auto;
    color: var(--light-50);
    text-shadow: var(--text-shadow-dark);
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 0.5rem;
    cursor: pointer;
    transition-property: opacity, translate;
    transition-duration: 0.3s;

    &::before {
      content: '';
      position: absolute;
      top: -3px;
      left: -3px;
      width: calc(100% + 6px);
      height: calc(100% + 6px);
      background: linear-gradient(to bottom, var(--lime-950), var(--lime-50));
      border-radius: inherit;
      z-index: -2;
      box-shadow: 0 0.2rem 0.4rem -0.1rem rgb(0 0 0 / 0.6);
    }

    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(
          circle at 50% -800%,
          var(--light-50) 0%,
          rgb(255 255 255 / 0.8) 20%,
          rgb(255 255 255 / 0.8) 90%,
          rgb(0 0 0 / 0) 95%
        ),
        radial-gradient(
          circle at 50% 100%,
          var(--lime-400) 40%,
          rgb(0 0 0 / 0) 75%
        ),
        linear-gradient(to bottom, var(--lime-950) 0%, var(--lime-600) 100%);
      border-radius: inherit;
      z-index: -1;
    }

    &:disabled {
      pointer-events: none;
      opacity: 0.6;
    }

    &:hover {
      translate: 0 -2px;
    }
  }
}

@media (min-width: 744px) {
  .pricing {
    .plans {
      > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
  }
}
