/**
 * Proxy Grove — Dedicated Pricing page shell
 * Light mode uses existing tokens. Dark mode only under html.dark.
 */

.pg-pricing-page {
  padding-bottom: 2rem;
}

.pg-pricing-page__hero .pg-rp-hero__title {
  max-width: 16ch;
}

.pg-pricing-page__hero .pg-rp-hero__inner {
  align-items: center;
}

@media (min-width: 1024px) {
  .pg-pricing-page__hero .pg-rp-hero__desc {
    max-width: 36ch;
  }
}

/* —— Hero pricing UI card —— */
.pg-pricing-page__hero .pg-rp-hero__art {
  min-height: 0;
}

.pg-price-hero-ui {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgb(19 0 154 / 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgb(19 127 21 / 0.07), transparent 50%),
    linear-gradient(165deg, #fff, #f6f7fc);
  border: 1px solid rgb(19 0 154 / 0.1);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.8) inset,
    0 20px 48px rgb(19 0 154 / 0.1);
  overflow: hidden;
}

.pg-price-hero-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgb(19 0 154 / 0.28),
    rgb(255 255 255 / 0.5) 48%,
    rgb(19 127 21 / 0.22)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pg-price-hero-ui__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pg-price-hero-ui__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-price-hero-ui__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-button-primary-bg);
  box-shadow: 0 0 0 0 rgb(19 127 21 / 0.45);
  animation: pg-price-hero-pulse 2s ease-out infinite;
}

.pg-price-hero-ui__chips {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgb(19 0 154 / 0.06);
  border: 1px solid rgb(19 0 154 / 0.08);
}

.pg-price-hero-ui__chips span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--color-text-body);
  opacity: 0.75;
}

.pg-price-hero-ui__chips span.is-active {
  background: #fff;
  color: var(--color-text-heading);
  opacity: 1;
  box-shadow: 0 4px 12px rgb(19 0 154 / 0.08);
}

.pg-price-hero-ui__plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.pg-price-hero-ui__plan {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgb(248 249 255);
  border: 1px solid rgb(19 0 154 / 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-price-hero-ui__plan.is-featured {
  background: linear-gradient(160deg, rgb(19 127 21 / 0.08), rgb(19 0 154 / 0.04));
  border-color: rgb(19 127 21 / 0.28);
  box-shadow: 0 8px 22px rgb(19 127 21 / 0.08);
}

.pg-price-hero-ui__plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pg-price-hero-ui__plan-name {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
}

.pg-price-hero-ui__pill {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-button-primary-bg);
}

.pg-price-hero-ui__plan-meta {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.72rem;
  color: var(--color-text-body);
  opacity: 0.7;
}

.pg-price-hero-ui__plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pg-price-hero-ui__plan-row strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-heading);
}

.pg-price-hero-ui__plan-row strong span {
  margin-left: 0.2rem;
  font-family: Inter, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-body);
  opacity: 0.65;
}

.pg-price-hero-ui__plan-row em {
  font-style: normal;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-button-primary-bg);
}

.pg-price-hero-ui__plan:not(.is-featured) .pg-price-hero-ui__plan-row em {
  color: var(--color-text-heading);
  background: #fff;
  border: 1px solid rgb(19 0 154 / 0.14);
}

.pg-price-hero-ui__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.85rem;
  padding: 0.65rem 0.5rem 0.15rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgb(19 0 154 / 0.08);
}

.pg-price-hero-ui__foot span {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--color-text-body);
  opacity: 0.7;
}

@keyframes pg-price-hero-pulse {
  0% { box-shadow: 0 0 0 0 rgb(19 127 21 / 0.45); }
  70% { box-shadow: 0 0 0 6px rgb(19 127 21 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(19 127 21 / 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-price-hero-ui__dot {
    animation: none;
  }
}

html.dark .pg-price-hero-ui {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgb(99 102 241 / 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgb(34 197 94 / 0.1), transparent 50%),
    linear-gradient(165deg, #15182a, #121526);
  border-color: rgb(255 255 255 / 0.1);
  box-shadow: var(--shadow-glass);
}

html.dark .pg-price-hero-ui__chips {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.08);
}

html.dark .pg-price-hero-ui__chips span.is-active {
  background: #1a1e32;
  color: #f0f1f7;
}

html.dark .pg-price-hero-ui__plan {
  background: #15192a;
  border-color: rgb(255 255 255 / 0.08);
}

html.dark .pg-price-hero-ui__plan.is-featured {
  background: linear-gradient(160deg, rgb(34 197 94 / 0.12), rgb(99 102 241 / 0.08));
  border-color: rgb(34 197 94 / 0.3);
}

html.dark .pg-price-hero-ui__plan:not(.is-featured) .pg-price-hero-ui__plan-row em {
  background: #1a1e32;
  border-color: rgb(255 255 255 / 0.12);
  color: #f0f1f7;
}

html.dark .pg-price-hero-ui__foot {
  border-top-color: rgb(255 255 255 / 0.08);
}

/* Safety: never leave pricing copy invisible if reveal JS is delayed */
.pg-pricing-page .pg-reveal {
  opacity: 1;
  transform: none;
}

.pg-pricing-page__highlights {
  padding: 0 0 1.5rem;
  margin-top: -0.5rem;
}

.pg-pricing-page__hl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pg-pricing-page__hl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.pg-pricing-page__hl {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgb(19 0 154 / 0.1);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-glass);
}

.pg-pricing-page__hl strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
}

.pg-pricing-page__hl span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

.pg-pricing--page {
  padding-top: 1.5rem;
}

.pg-pricing--page .pg-pricing__header {
  margin-bottom: 1.5rem;
}

.pg-nav__link.is-active {
  color: var(--color-text-heading);
}

/* ---------- Night mode ---------- */
html.dark .pg-pricing-page__hl {
  background: var(--color-surface-raised);
  border-color: rgb(255 255 255 / 0.1);
}

html.dark .pg-pricing-page__hl strong {
  color: var(--color-text-heading);
}

html.dark .pg-pricing-page__hl span {
  color: var(--color-text-body);
}

html.dark .pg-pricing--page .pg-price-compare,
html.dark .pg-pricing--page .pg-price-compare th,
html.dark .pg-pricing--page .pg-price-compare td {
  border-color: rgb(255 255 255 / 0.1);
  color: var(--color-text-body);
}

html.dark .pg-pricing--page .pg-price-compare th {
  color: var(--color-text-heading);
  background: rgb(255 255 255 / 0.04);
}

html.dark .pg-pricing--page .pg-price-compare__th--popular {
  color: #c7d2fe;
}

html.dark .pg-nav__link.is-active {
  color: #f0f1f7;
}
