/* 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;
}

#pricing .ll-pricing-duration {
  margin: 10px 0 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0.72;
  letter-spacing: -0.01em;
}

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::before {
  opacity: 0.35;
  transform: scale(0.75);
}

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 — mute them, do not invent ::before icons */
#pricing .pricing-list-item.is-excluded {
  opacity: 0.38;
  background-image: none !important;
}

#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.42;
  color: #5c5854;
}

html.light #pricing .pricing-list-item.is-excluded::before {
  opacity: 0.35;
  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;
  }
}
