/* Pricing Cards v2 — matches services-card-grid styling.
   All sizes in px: the site root font-size is 28px, so rem
   units come out ~1.75x too big. Don't use rem here. */
.pcx2 {
  --pcx2-navy: #314157;
  --pcx2-orange: #ff914d;
  --pcx2-orange-hover: #e97d35;
  --pcx2-line: rgba(49, 65, 87, 0.12);
  color: var(--pcx2-navy);
  font-family: Poppins, sans-serif;
}

/* Cards share row tracks (subgrid) so everything lines up across cards */
.pcx2__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
}
.pcx2--cols-2 .pcx2__row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
}

.pcx2__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px 0 rgba(0, 0, 0, 0.07);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@supports (grid-template-rows: subgrid) {
  .pcx2__card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

/* 1. Head: tag + title, pinned to bottom so titles align */
.pcx2__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.pcx2__tag {
  display: inline-block;
  background: var(--pcx2-orange);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 12px;
  margin: 0 0 14px;
}
.pcx2 .pcx2__title {
  color: var(--pcx2-navy);
  font-family: Poppins, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.2px;
  margin: 0;
}
.pcx2 .pcx2__title-accent { color: var(--pcx2-orange); }

/* 2. Subheading + divider */
.pcx2__subhead {
  padding: 6px 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--pcx2-line);
}
.pcx2 .pcx2__subhead p {
  color: rgba(49, 65, 87, 0.75);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

/* 3. Features */
.pcx2 .pcx2__includes {
  color: var(--pcx2-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  margin: 0 0 6px;
}
.pcx2__features {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pcx2__feature {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 7px 0;
  margin: 0;
}
.pcx2__feature::before { content: none; }
.pcx2__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pcx2-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.pcx2__check svg { width: 12px; height: 12px; display: block; }
.pcx2 .pcx2__feature-title {
  color: var(--pcx2-navy);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

/* Detail (expandable) */
.pcx2__detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.25s ease, margin-top 0.32s ease;
}
.pcx2__detail-inner { overflow: hidden; }
.pcx2 .pcx2__detail p {
  color: rgba(49, 65, 87, 0.75);
  font-size: 14px;
  line-height: 21px;
  margin: 0;
}
.pcx2.is-open .pcx2__detail {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 3px;
}

/* 4. Toggle — styled like the card links in the new modules */
.pcx2__more { padding-top: 16px; }
.pcx2__toggle {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pcx2-orange);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}
.pcx2__toggle:hover,
.pcx2__toggle:focus,
.pcx2__toggle:active {
  background: none;
  color: var(--pcx2-orange);
  outline: none;
}
.pcx2__toggle:focus-visible {
  outline: 2px solid var(--pcx2-orange);
  outline-offset: 4px;
  border-radius: 4px;
}
.pcx2__toggle-label { position: relative; padding-bottom: 3px; }
.pcx2__toggle-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 40%;
  background: currentColor;
  transition: width 0.3s;
}
.pcx2__toggle:hover .pcx2__toggle-label::after { width: 100%; }
.pcx2__chevron { width: 16px; height: 16px; transition: transform 0.3s ease; }
.pcx2.is-open .pcx2__chevron { transform: rotate(180deg); }

/* 5. Footer / CTA (button style kept as before) */
.pcx2__footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--pcx2-line);
  align-self: end;
}
.pcx2 .pcx2__cta-label {
  color: var(--pcx2-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  margin: 0 0 14px;
}
.pcx2 .pcx2__cta {
  display: inline-block;
  background: var(--pcx2-orange);
  color: #fff;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 13px 32px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.pcx2 .pcx2__cta:hover { background: var(--pcx2-orange-hover); color: #fff; }
.pcx2 .pcx2__cta:active { transform: translateY(1px); }
.pcx2 .pcx2__cta:focus-visible { outline: 3px solid var(--pcx2-orange); outline-offset: 3px; }

/* Fallback (older browsers without subgrid) */
@supports not (grid-template-rows: subgrid) {
  .pcx2__body { flex: 1 1 auto; }
  .pcx2__footer { margin-top: auto; }
  .pcx2__more + .pcx2__footer { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcx2__detail, .pcx2__chevron, .pcx2__cta, .pcx2__toggle-label::after { transition: none; }
}

/* ---------- Breakpoints (same as services-card-grid) ---------- */
@media only screen and (max-width: 1024px) and (min-width: 986px) {
  .pcx2__row { gap: 20px; }
  .pcx2__card { padding: 28px 24px; }
  .pcx2 .pcx2__title { font-size: 24px; line-height: 30px; }
}
/* 3 cards stack below 986px (a 2+1 layout looks unbalanced) */
@media only screen and (max-width: 985px) {
  .pcx2--cols-3 .pcx2__row {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 20px;
  }
}
@media only screen and (max-width: 767px) {
  .pcx2--cols-2 .pcx2__row {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 18px;
  }
  .pcx2__card { padding: 26px 24px; }
}
@media only screen and (max-width: 479px) {
  .pcx2__row, .pcx2--cols-3 .pcx2__row, .pcx2--cols-2 .pcx2__row { gap: 16px; }
  .pcx2__card { padding: 24px 22px; }
  .pcx2 .pcx2__title { font-size: 22px; line-height: 28px; }
  .pcx2 .pcx2__cta { display: block; text-align: center; }
}