/* Critchfield Systems - two-up plan cards (#plans-2501)
   Shared by the pricing page and the home page. */
/*-- -------------------------- -->
<---       Plans (2 up)         -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #plans-2501 {
    padding: var(--sectionPadding);
    background-color: #fff;
  }
  #plans-2501 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #plans-2501 .cs-content {
    text-align: center;
    width: 100%;
    max-width: 43.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #plans-2501 .cs-card-group {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 24px - 32px */
    gap: clamp(1.5rem, 3.5vw, 2rem);
    /* stacked on mobile: extra room so the badge clears the card above */
    row-gap: 2.75rem;
    /* room for the badge to hang over the top edge */
    padding-top: 1rem;
  }
  #plans-2501 .cs-item {
    width: 100%;
    /* 24px - 40px */
    padding: clamp(1.5rem, 3.4vw, 2.5rem);
    background-color: #fff;
    border: 1px solid #dfe6f1;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: span 12;
    position: relative;
  }
  #plans-2501 .cs-plan-name {
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2em;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: var(--primary);
    display: block;
  }
  #plans-2501 .cs-plan-desc {
    font-size: 1rem;
    line-height: 1.5em;
    margin: 0 0 1.5rem;
    color: var(--bodyTextColor);
    /* keeps both prices on the same line on desktop */
    min-height: 3rem;
  }
  #plans-2501 .cs-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin: 0 0 0.375rem;
  }
  #plans-2501 .cs-price {
    /* 44px - 64px */
    font-size: clamp(2.75rem, 6.4vw, 4rem);
    font-weight: 900;
    line-height: 1em;
    color: var(--headerColor);
    display: block;
  }
  #plans-2501 .cs-period {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bodyTextColor);
    display: block;
  }
  #plans-2501 .cs-plan-note {
    font-size: 0.875rem;
    line-height: 1.5em;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
    color: var(--bodyTextColor);
    opacity: 0.85;
    display: block;
  }
  #plans-2501 .cs-item .cs-button-4 {
    width: 100%;
    padding: 0 1rem;
  }
  #plans-2501 .cs-list-head {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    /* 24px - 32px */
    margin: clamp(1.5rem, 3.4vw, 2rem) 0 1rem;
    padding: clamp(1.5rem, 3.4vw, 2rem) 0 0;
    width: 100%;
    border-top: 1px solid #e8edf5;
    color: var(--headerColor);
    display: block;
  }
  #plans-2501 .cs-ul {
    list-style: none;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #plans-2501 .cs-li {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: left;
    margin: 0;
    color: var(--bodyTextColor);
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
  }
  #plans-2501 .cs-li:before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    /* nudge the check onto the text baseline */
    margin-top: 0.125rem;
    background: url("../assets/icons/check.svg") no-repeat center / contain;
    display: block;
    flex: none;
  }
  #plans-2501 .cs-subtext {
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5em;
    text-align: left;
    /* pins the line to the bottom so both cards finish level */
    margin: auto 0 0;
    color: var(--bodyTextColor);
    opacity: 0.8;
    display: block;
  }

  /* --- Growth card --- */
  #plans-2501 .cs-popular {
    background-color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 1.5rem 3rem -0.75rem rgba(6, 22, 51, 0.45);
  }
  #plans-2501 .cs-popular .cs-plan-name {
    color: var(--primaryLight);
  }
  #plans-2501 .cs-popular .cs-plan-desc,
  #plans-2501 .cs-popular .cs-period,
  #plans-2501 .cs-popular .cs-plan-note,
  #plans-2501 .cs-popular .cs-li,
  #plans-2501 .cs-popular .cs-subtext {
    color: var(--bodyTextColorWhite);
  }
  #plans-2501 .cs-popular .cs-price,
  #plans-2501 .cs-popular .cs-list-head {
    color: #fff;
  }
  #plans-2501 .cs-popular .cs-list-head {
    border-top-color: rgba(244, 248, 252, 0.25);
  }
  #plans-2501 .cs-popular .cs-li:before {
    background-image: url("../assets/icons/check-light.svg");
  }
  #plans-2501 .cs-badge {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.5em;
    padding: 0.25rem 1rem;
    background-color: var(--primary);
    color: #fff;
    border-radius: 3.75rem;
    display: block;
    position: absolute;
    top: -1rem;
    right: clamp(1.5rem, 3.4vw, 2.5rem);
  }
  /* white button on the navy card */
  #plans-2501 .cs-popular .cs-button-4 {
    background-color: #fff;
    color: var(--secondary);
    box-shadow: 0 1.125rem 2.25rem -0.5rem rgba(6, 22, 51, 0.5);
  }
  #plans-2501 .cs-popular .cs-button-4:before {
    background: var(--primary);
  }
  #plans-2501 .cs-popular .cs-button-4:hover {
    color: #fff;
  }

  #plans-2501 .cs-footnote {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: center;
    max-width: 40.625rem;
    margin: 0;
    color: var(--bodyTextColor);
  }
}
/* Tablet - 768px: side by side */
@media only screen and (min-width: 48rem) {
  #plans-2501 .cs-card-group {
    row-gap: clamp(1.5rem, 3.5vw, 2rem);
  }
  #plans-2501 .cs-item {
    grid-column: span 6;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #plans-2501 .cs-card-group {
    align-items: stretch;
  }
  #plans-2501 .cs-item {
    padding: 3rem;
  }
}

