/* /pricing: hero with the plans, an "included in every plan" strip, the plan comparison chart
   and pricing FAQs. Builds on reception-enterprise-v1.css (rx-* tokens, buttons, plan cards). */

.px-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero + plans ---------- */
.px-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.25rem, 5vw, 4.5rem);
}

.px-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
  text-align: center;
}

.px-h1 {
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--rx-ink);
  text-wrap: balance;
}

.px-h1 .rx-muted {
  display: block;
}

.px-hero-head .rx-sub {
  max-width: 38rem;
  margin-top: 1.5rem;
  text-wrap: balance;
}

.px-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

#pricing .px-controls .rx-seg--currency [role="radio"] {
  padding: 0.5rem 1rem;
  font-size: 14px;
}

/* a soft field of the industry colours behind the plans; the cards stay white on top */
.px-aura {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(1180px, 130vw);
  height: 560px;
  transform: translateX(-50%);
  filter: blur(64px);
  opacity: 0.5;
  pointer-events: none;
}

.px-aura span {
  position: absolute;
  border-radius: 50%;
  animation: px-drift 26s ease-in-out infinite alternate;
}

.px-aura span:nth-child(1) {
  left: 2%;
  top: 22%;
  width: 34%;
  height: 62%;
  background: radial-gradient(closest-side, rgba(14, 165, 233, 0.6), transparent);
}

.px-aura span:nth-child(2) {
  left: 30%;
  top: 0;
  width: 40%;
  height: 72%;
  background: radial-gradient(closest-side, rgba(101, 87, 217, 0.55), transparent);
  animation-delay: -8s;
}

.px-aura span:nth-child(3) {
  right: 2%;
  top: 16%;
  width: 34%;
  height: 64%;
  background: radial-gradient(closest-side, rgba(249, 115, 22, 0.42), transparent);
  animation-delay: -15s;
}

.px-aura span:nth-child(4) {
  left: 24%;
  bottom: 0;
  width: 48%;
  height: 48%;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.45), transparent);
  animation-delay: -21s;
}

@keyframes px-drift {
  from { transform: translate3d(-3%, 2%, 0) scale(1); }
  to { transform: translate3d(3%, -3%, 0) scale(1.08); }
}

.px-plans-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  margin: 1.75rem 0 0;
  font-size: 13.5px;
  color: var(--rx-mute);
  text-align: center;
}

.px-plans-note .rx-textlink {
  font-size: 13.5px;
}

/* ---------- Included in every plan ---------- */
.px-included {
  padding-top: 0;
}

.px-included-title {
  margin: 0 0 1.75rem;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rx-ink);
}

.px-included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rx-line);
  list-style: none;
}

@media (min-width: 768px) {
  .px-included-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .px-included-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.px-included-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.px-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.6rem;
  border-radius: 12px;
  background: var(--tile, var(--rx-tint));
  color: var(--rx-ink);
}

.px-included-grid li:nth-child(1) { --tile: rgba(14, 165, 233, 0.1); }
.px-included-grid li:nth-child(2) { --tile: rgba(249, 115, 22, 0.1); }
.px-included-grid li:nth-child(3) { --tile: rgba(101, 87, 217, 0.1); }
.px-included-grid li:nth-child(4) { --tile: rgba(45, 212, 191, 0.13); }
.px-included-grid li:nth-child(5) { --tile: rgba(225, 29, 72, 0.08); }
.px-included-grid li:nth-child(6) { --tile: rgba(234, 179, 8, 0.13); }

.px-included-grid b {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rx-ink);
}

.px-included-grid span:not(.px-ic) {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--rx-soft);
}

/* ---------- Comparison chart ---------- */
.px-compare .rx-head {
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.px-compare .rx-head .rx-sub {
  margin-top: 1.25rem;
}

/* phones and small tablets compare one plan at a time */
.px-pick {
  display: none;
}

.px-chart {
  position: relative;
  --feature-w: 32%;
  --plan-w: calc((100% - var(--feature-w)) / 4);
  --sticky-top: 64px;
}

/* the featured column: one continuous wash from the badge to the buttons */
.px-wash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--feature-w) + var(--plan-w));
  width: var(--plan-w);
  border-radius: 28px;
  background: linear-gradient(180deg, #fbf5fa 0%, #f1ebf8 30%, #e1dbf6 62%, #cdc8f2 100%);
  box-shadow: 0 30px 60px -40px rgba(70, 60, 170, 0.45);
  pointer-events: none;
}

.px-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .55 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0, #000 45%);
}

.px-table {
  position: relative;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.px-table th,
.px-table td {
  padding: 1.1rem 0.75rem;
  border-bottom: 1px solid var(--rx-line);
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--rx-ink);
  text-align: center;
  vertical-align: middle;
}

.px-table thead th {
  position: sticky;
  top: var(--sticky-top);
  z-index: 2;
  padding: 3rem 0.75rem 1.35rem;
  background: #fff;
  vertical-align: bottom;
}

.px-table thead th:first-child {
  width: var(--feature-w);
  padding-left: 0;
  text-align: left;
}

/* The featured header cell stays a solid white square so it fully covers the column wash
   behind it when the header sticks; the rounded tinted top is drawn inside it. */
.px-table thead .px-featured {
  background: #fff;
}

.px-table thead .px-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 28px 28px 0 0;
  background: #fbf5fa;
}

.px-plan {
  display: block;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--rx-ink);
}

.px-price {
  display: block;
  margin-top: 0.35rem;
  font-size: 14px;
  color: var(--rx-mute);
  font-variant-numeric: tabular-nums;
}

.px-badge {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--rx-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.px-corner {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rx-mute);
}

.px-table tbody th[scope="row"] {
  padding-left: 0;
  text-align: left;
  font-size: 15.5px;
}

.px-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 13px;
  color: var(--rx-mute);
}

.px-table .px-group th {
  padding: 2.75rem 0 0.85rem;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rx-mute);
}

.px-table tbody tr:first-child.px-group th {
  padding-top: 1.75rem;
}

.px-custom {
  color: var(--rx-mute);
}

[data-plan-rate] {
  white-space: nowrap;
}

.px-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.px-yes svg {
  flex: none;
  color: #2678d4;
}

.px-no {
  color: rgba(22, 22, 23, 0.3);
}

.px-table tbody tr:not(.px-group):hover > * {
  background: rgba(22, 22, 23, 0.02);
}

.px-table tfoot th,
.px-table tfoot td {
  padding: 2rem 0.75rem 2.25rem;
  border-bottom: 0;
}

.px-btn {
  width: 100%;
  min-height: 42px;
  padding: 0 1rem;
  font-size: 14px;
}

@media (max-width: 1099px) {
  .px-chart {
    --feature-w: 28%;
  }

  .px-table th,
  .px-table td {
    font-size: 14px;
  }

  .px-btn {
    padding: 0 0.6rem;
    font-size: 13px;
  }
}

@media (max-width: 899px) {
  .px-pick {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
  }

  .px-pick .rx-seg [role="radio"] {
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--rx-soft);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .px-pick .rx-seg [role="radio"][aria-checked="true"] {
    background: #fff;
    color: var(--rx-ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }

  .px-wash {
    display: none;
  }

  .px-chart {
    --feature-w: 58%;
  }

  /* hidden plan columns must not keep a share of the width */
  .px-table {
    table-layout: auto;
  }

  .px-chart[data-show="basic"] [data-col]:not([data-col="basic"]),
  .px-chart[data-show="plus"] [data-col]:not([data-col="plus"]),
  .px-chart[data-show="premium"] [data-col]:not([data-col="premium"]),
  .px-chart[data-show="enterprise"] [data-col]:not([data-col="enterprise"]) {
    display: none;
  }

  .px-table thead th {
    padding-top: 1.25rem;
  }

  .px-table thead .px-featured::before {
    display: none;
  }

  .px-badge {
    display: none;
  }

  .px-table th,
  .px-table td {
    padding-right: 0;
  }

  .px-table td,
  .px-table thead th[data-col] {
    text-align: right;
  }

  .px-table tbody th[scope="row"] {
    font-size: 14.5px;
  }
}

/* ---------- FAQ ---------- */
.px-faq-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .px-faq-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }

  .px-faq-head {
    position: sticky;
    top: 112px;
    align-self: start;
  }
}

.px-faq-head.rx-head {
  margin-bottom: 0;
}

.px-faq-head .rx-sub {
  margin-top: 1.25rem;
}

.px-faq-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.px-qa {
  border-bottom: 1px solid var(--rx-line);
}

.px-qa:first-child {
  border-top: 1px solid var(--rx-line);
}

.px-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--rx-ink);
}

.px-qa summary::-webkit-details-marker {
  display: none;
}

.px-qa-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.12);
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.px-qa-icon::before,
.px-qa-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--rx-ink);
  transform: translate(-50%, -50%);
}

.px-qa-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.px-qa summary:hover .px-qa-icon {
  background: var(--rx-tint);
}

.px-qa[open] .px-qa-icon {
  transform: rotate(45deg);
}

.px-qa-a {
  margin: 0;
  padding: 0 3rem 1.6rem 0;
  max-width: 42rem;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--rx-soft);
}

@media (prefers-reduced-motion: reduce) {
  .px-aura span {
    animation: none;
  }

  .px-qa-icon {
    transition: none;
  }
}
