/* -------------------------------- 

File#: _2_pricing-table
Title: Pricing Table
Descr: A table used to compare prices and features of different products
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
    /* colors */
    --pd6-color-primary-hsl: 154, 84%, 19%;
    --pd6-color-bg-hsl: 0, 0%, 100%;
    --pd6-color-contrast-high-hsl: 230, 7%, 23%;
    --pd6-color-contrast-higher-hsl: 230, 13%, 9%;
    --pd6-color-contrast-low-hsl: 240, 4%, 65%;
    --pd6-color-bg-dark-hsl: 154, 0%, 95%;
    --pd6-color-bg-light-hsl: 0, 0%, 100%;
    --pd6-color-white-hsl: 0, 0%, 100%;
    --pd6-color-primary-darker-hsl: 154, 84%, 25%;
    --pd6-color-primary-light-hsl: 154, 84%, 25%;
    --pd6-color-bg-lighter-hsl: 0, 0%, 100%;
    --pd6-color-black-hsl: 230, 13%, 9%;
    /* spacing */
    --pd6-space-3xs: 0.25rem;
    --pd6-space-2xs: 0.375rem;
    --pd6-space-xs: 0.5rem;
    --pd6-space-sm: 0.75rem;
    --pd6-space-md: 1.25rem;
    /* typography */
    --pd6-text-3xl: 1.915rem;
    --pd6-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --pd6-space-3xs: 0.375rem;
    --pd6-space-2xs: 0.5625rem;
    --pd6-space-xs: 0.75rem;
    --pd6-space-sm: 1.125rem;
    --pd6-space-md: 2rem;

    /* typography */
    --pd6-text-3xl: 1.915rem;
    --pd6-text-sm: 1rem;
  }
}

/* buttons */
.pd6-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  white-space: nowrap;
  text-decoration: none;
  background: hsl(var(--pd6-color-bg-dark-hsl));
  color: hsl(var(--pd6-color-contrast-higher-hsl));
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.2s ease;
  will-change: transform;
  padding: var(--pd6-space-2xs) var(--pd6-space-sm);
  border-radius: 0.25em;
}

.pd6-btn:focus-visible {
  box-shadow: 0px 0px 0px 2px hsl(var(--pd6-color-bg-hsl)), 0px 0px 0px 4px hsla(var(--pd6-color-contrast-higher-hsl), 0.15);
  outline: none;
}

.pd6-btn:active {
  transform: translateY(2px);
}

.pd6-btn--primary {
  background: hsl(var(--pd6-color-primary-hsl));
  color: hsl(var(--pd6-color-white-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--pd6-color-white-hsl), 0.15), 0px 1px 3px hsla(var(--pd6-color-primary-darker-hsl), 0.25), 0px 2px 6px hsla(var(--pd6-color-primary-darker-hsl), 0.1), 0px 6px 10px -2px hsla(var(--pd6-color-primary-darker-hsl), 0.25);
}

.pd6-btn--primary:hover {
  background: hsl(var(--pd6-color-primary-light-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--pd6-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--pd6-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--pd6-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--pd6-color-primary-darker-hsl), 0.25);
}

.pd6-btn--primary:focus {
  box-shadow: inset 0px 1px 0px hsla(var(--pd6-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--pd6-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--pd6-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--pd6-color-primary-darker-hsl), 0.25), 0px 0px 0px 2px hsl(var(--pd6-color-bg-hsl)), 0px 0px 0px 4px hsl(var(--pd6-color-primary-hsl));
}

.pd6-btn--subtle {
  background: hsl(var(--pd6-color-bg-lighter-hsl));
  color: hsl(var(--pd6-color-contrast-higher-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--pd6-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--pd6-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--pd6-color-black-hsl), 0.2), 0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
}

.pd6-btn--subtle:hover {
  background: hsl(var(--pd6-color-bg-light-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--pd6-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--pd6-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--pd6-color-black-hsl), 0.2), 0 0.1px 0.3px rgba(0, 0, 0, 0.06),0 1px 2px rgba(0, 0, 0, 0.12);
}

.pd6-btn--subtle:focus {
  box-shadow: inset 0px 1px 0px hsla(var(--pd6-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--pd6-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--pd6-color-black-hsl), 0.2), 0 0.1px 0.3px rgba(0, 0, 0, 0.06),0 1px 2px rgba(0, 0, 0, 0.12), 0px 0px 0px 2px hsl(var(--pd6-color-bg-hsl)), 0px 0px 0px 4px hsl(var(--pd6-color-contrast-high-hsl));
}

.pd6-btn--md {
  font-size: 1.2em;
}

/* component */
.p-table__item {
  background-color: hsl(var(--pd6-color-bg-dark-hsl));
  border-radius: 0.5em;
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075);
  padding: var(--pd6-space-sm);
  display: flex;
  flex-direction: column;
}

.p-table__item--popular {
  background-color: hsl(var(--pd6-color-bg-light-hsl));
  box-shadow: 0 0 0 2px hsl(var(--pd6-color-primary-hsl)), 0 0.9px 1.5px rgba(0, 0, 0, 0.03),0 3.1px 5.5px rgba(0, 0, 0, 0.08),0 14px 25px rgba(0, 0, 0, 0.12);
}

.p-table__badge {
    font-size: var(--pd6-text-xs);
    background-color: #eea303;
    color: #000000;
    padding: var(--pd6-space-3xs) var(--pd6-space-3xs);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
    border-radius: 0.25em;
}

.p-table__price span {
  font-size: var(--pd6-text-3xl);
  font-weight: bold;
}
.p-table__price i {
  color: hsl(var(--pd6-color-contrast-low-hsl));
}

.p-table__features li {
  margin-bottom: var(--pd6-space-xs);
}

.p-table__switch {
  display: none;
}

.p-table--has-switch .p-table__price-wrapper {
  position: relative;
  overflow: hidden;
}
.p-table--has-switch .p-table__price {
  will-change: transform;
  transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
.p-table--has-switch .p-table__price[data-transition-delay="2nd"] {
  transition-delay: 0.1s;
}
.p-table--has-switch .p-table__price[data-transition-delay="3rd"] {
  transition-delay: 0.2s;
}
.p-table--has-switch .p-table__price--month {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.p-table--has-switch .p-table__price--year {
  pointer-events: none;
  opacity: 0;
  -webkit-transform: translateY(100%);
          transform: translateY(100%);
}

.p-table--yearly .p-table__price--month {
  pointer-events: none;
  opacity: 0;
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
}
.p-table--yearly .p-table__price--year {
  pointer-events: auto;
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* utility classes */
.pd6-width-100\% {
  width: 100%;
}

.pd6-margin-top-auto {
  margin-top: auto;
}

.pd6-margin-bottom-md {
  margin-bottom: var(--pd6-space-md);
}

.pd6-margin-bottom-sm {
  margin-bottom: var(--pd6-space-sm);
}

.pd6-margin-bottom-2xs {
  margin-bottom: var(--pd6-space-2xs);
}

.pd6-items-center {
  align-items: center;
}

.pd6-justify-between {
  justify-content: space-between;
}

.pd6-flex {
  display: flex;
}

.pd6-gap-sm {
  gap: var(--pd6-space-sm);
}

.pd6-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.pd6-grid > * {
  min-width: 0;
  grid-column-end: span 12;
}

.pd6-sr-only {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.pd6-justify-center {
  justify-content: center;
}

@media(min-width: 64rem){
    .pd6-col-3\@md {
        grid-column-end: span 3;
    }

  .pd6-col-4\@md {
    grid-column-end: span 4;
  }

    .pd6-col-5\@md {
        grid-column-end: span 5;
    }
}