/* Law Lab pricing — excluded rows + matrix. Scoped to #pricing only. */

/* Webflow IX sometimes leaves #pricing at z-index:-1; partners then paint over cards */
#pricing.tertiary-section,
#pricing {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

#pricing .pricing-card {
  position: relative;
}

/* Card height follows viewport height: roomy on tall screens, compact on short ones,
   so the tallest card (Premium) fits one screen under the navbar. */
#pricing .pricing-card {
  padding: clamp(8px, 1.2vh, 16px) clamp(6px, 0.8vh, 10px) clamp(6px, 0.8vh, 10px);
}

#pricing .pricing-package-header-wrapper {
  padding: clamp(8px, 1.3vh, 16px) 16px clamp(6px, 0.9vh, 12px);
}

#pricing .pricing-card-body-padding,
#pricing .pricing-card-body-padding.featured {
  padding: clamp(16px, 2.6vh, 30px) clamp(18px, 1.6vw, 25px) !important;
}

#pricing .pricing-block-bottom {
  gap: 6px;
  margin-bottom: clamp(6px, 1vh, 14px);
}

#pricing ._40px-text-bold {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.15;
}

#pricing .pricing-divider-wrapper {
  margin-bottom: clamp(8px, 1.4vh, 18px);
  padding-bottom: clamp(8px, 1.4vh, 18px);
}

#pricing .pricing-divider-wrapper > p {
  margin: clamp(4px, 0.8vh, 10px) 0 0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.88;
}

#pricing .ll-pricing-duration {
  margin: clamp(4px, 0.8vh, 10px) 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  opacity: 0.72;
  letter-spacing: -0.01em;
}

#pricing .pricing-divider-wrapper .animated-border-wrapper {
  margin-top: clamp(8px, 1.2vh, 14px);
  margin-bottom: 0;
}

#pricing .membership-features-list {
  margin-top: clamp(4px, 0.6vh, 8px);
  margin-bottom: clamp(14px, 2.4vh, 28px);
  grid-row-gap: clamp(6px, 1.05vh, 12px);
  grid-column-gap: clamp(6px, 1.05vh, 12px);
  row-gap: clamp(6px, 1.05vh, 12px);
  overflow: visible;
}

#pricing .pricing-list-item {
  list-style: none;
  margin: 0;
  padding-top: 1px;
  padding-bottom: 1px;
  line-height: 1.4;
  font-size: 14px;
}

#pricing .pricing-list-item.is-note {
  font-size: 12.5px;
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 992px) and (max-height: 820px) {
  #pricing .pricing-card-body-padding,
  #pricing .pricing-card-body-padding.featured {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  #pricing .membership-features-list {
    margin-bottom: 14px;
    grid-row-gap: 6px;
    row-gap: 6px;
  }

  #pricing .pricing-divider-wrapper {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
}

#pricing .pricing-card > .primary-button,
#pricing .pricing-card-body-padding > .primary-button {
  margin-top: 0;
}

html.light #pricing .ll-pricing-duration {
  color: #3d3a38;
  opacity: 0.9;
}

html.light #pricing .pricing-card.featured .ll-pricing-duration {
  color: #14151c;
  opacity: 0.75;
}

#pricing .pricing-list-item.is-note {
  font-size: 12.5px;
  line-height: 1.4;
  list-style: none;
}

#pricing .pricing-list-item.is-excluded.is-note {
  opacity: 0.58;
}

#pricing .pricing-list-item.is-note {
  background-image: none !important;
}

#pricing .pricing-list-item.is-note::before {
  content: none !important;
}

html.light #pricing .pricing-list-item.is-excluded.is-note {
  opacity: 0.68;
  color: #3d3a38;
}

#pricing .ll-pricing-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #14151c;
  background: #ffa66b;
  line-height: 1.2;
  pointer-events: none;
}

/* Dark: bullets are background-image stars — keep the star, only fade the row */
#pricing .pricing-list-item.is-excluded {
  opacity: 0.4;
}

#pricing .pricing-list-item.is-excluded:not(.is-note) {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

#pricing .membership-features-list {
  overflow: visible;
}

/* Light: theme uses ::before mask stars — keep that system, only fade excluded */
html.light #pricing .pricing-list-item.is-excluded {
  opacity: 0.5;
  color: #5c5854;
}

html.light #pricing .pricing-list-item.is-excluded::before {
  background-color: #9a9590 !important;
}

/* Matrix under cards — brand tokens only */
#pricing .ll-pricing-matrix {
  margin-top: 48px;
  padding: 28px 24px 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 21, 28, 0.45);
  clear: both;
}

html.light #pricing .ll-pricing-matrix {
  /* Page bg is #f4efe9 — #eceae8 blended in; lift card like other light surfaces */
  border-color: rgba(20, 21, 28, 0.14);
  background: #ffffff;
}

#pricing .ll-pricing-matrix__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffa66b;
  margin-bottom: 10px;
}

#pricing .ll-pricing-matrix__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f4efe9;
  font-weight: 700;
}

html.light #pricing .ll-pricing-matrix__title {
  color: #14151c;
}

#pricing .ll-pricing-matrix__lead {
  margin: 0 0 20px;
  max-width: 46rem;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.72;
}

html.light #pricing .ll-pricing-matrix__lead {
  color: #3d3a38;
  opacity: 0.88;
}

#pricing .ll-pricing-matrix__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
  position: relative;
}

#pricing .ll-pricing-matrix__hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 166, 107, 0.1);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, height, opacity;
}

#pricing .ll-pricing-matrix__hover.is-active {
  opacity: 1;
}

html.light #pricing .ll-pricing-matrix__hover {
  background: rgba(255, 166, 107, 0.16);
}

#pricing .ll-pricing-matrix__table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

#pricing .ll-pricing-matrix__table th,
#pricing .ll-pricing-matrix__table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

html.light #pricing .ll-pricing-matrix__table th,
html.light #pricing .ll-pricing-matrix__table td {
  border-bottom-color: rgba(20, 21, 28, 0.08);
}

#pricing .ll-pricing-matrix__table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffa66b;
  white-space: nowrap;
}

#pricing .ll-pricing-matrix__table td:nth-child(2) {
  font-weight: 600;
}

#pricing .ll-pricing-matrix__table td:nth-child(3) {
  white-space: nowrap;
  color: #ffa66b;
  font-weight: 600;
}

html.light #pricing .ll-pricing-matrix__table td:nth-child(3) {
  color: #b85a18;
}

@media (prefers-reduced-motion: reduce) {
  #pricing .ll-pricing-matrix__hover {
    transition: opacity 0.15s ease;
  }
}

@media screen and (max-width: 767px) {
  #pricing .ll-pricing-badge {
    top: 12px;
    right: 14px;
    font-size: 11px;
    padding: 5px 10px;
  }

  #pricing .ll-pricing-matrix {
    margin-top: 32px;
    padding: 18px 12px 8px;
    border-radius: 18px;
  }

  #pricing .ll-pricing-matrix__table {
    font-size: 13px;
  }

  #pricing .ll-pricing-matrix__table th,
  #pricing .ll-pricing-matrix__table td {
    padding: 11px 10px;
  }
}
