/* Public pricing page. Plan data comes from the billing catalog; motion respects reduced-motion. */
.pricing {
  --plan-ring: 0 0 0 1px var(--blue), 0 24px 60px -32px rgb(47 107 255 / 55%);
  overflow: clip;
}

.pricing-hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 164px var(--gutter) 48px;
  text-align: center;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 40px;
  left: 50%;
  width: min(1100px, 140vw);
  height: 520px;
  background:
    radial-gradient(closest-side, rgb(47 107 255 / 12%), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgb(47 209 145 / 8%), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.pricing-eyebrow {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid #d8e3ff;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-hero h1 {
  color: #202629;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.pricing-hero h1 span {
  color: #657080;
}

.pricing-hero > p:last-child {
  max-width: 560px;
  margin: 24px auto 0;
  color: #626971;
  font-size: 17px;
  line-height: 1.7;
}

.pricing-hero > * {
  animation: pricing-rise 0.9s var(--ease-out) both;
}

.pricing-hero h1 {
  animation-delay: 0.06s;
}

.pricing-hero > p:last-child {
  animation-delay: 0.12s;
}

.pricing-plans {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

/* Engineer count */

.seat-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 10px 14px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 18px 40px -28px rgb(25 35 50 / 35%);
  animation: pricing-rise 0.9s 0.18s var(--ease-out) both;
}

.seat-picker-label {
  color: #353e45;
  font-size: 14px;
  font-weight: 650;
}

.seat-stepper {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8fb;
}

.seat-stepper button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #353e45;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.seat-stepper button:hover {
  background: var(--white);
  box-shadow: 0 1px 3px rgb(25 35 50 / 14%);
}

.seat-stepper button:active {
  transform: scale(0.9);
}

.seat-stepper input {
  width: 52px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
}

.seat-stepper input::-webkit-inner-spin-button,
.seat-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.seat-stepper input:focus {
  outline: 0;
}

.seat-stepper:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.seat-range {
  --fill: 0%;
  width: 200px;
  height: 22px;
  margin: 0 8px 0 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.seat-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) var(--fill), #dfe4ec var(--fill));
}

.seat-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #dfe4ec;
}

.seat-range::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
}

.seat-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 1px 4px rgb(25 35 50 / 35%);
  transition: transform 0.2s var(--ease-out);
  appearance: none;
}

.seat-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 1px 4px rgb(25 35 50 / 35%);
}

.seat-range:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

/* Plan cards */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), opacity 0.35s, border-color 0.35s;
  animation: pricing-rise 0.9s var(--ease-out) both;
}

.plan-card:nth-child(1) {
  animation-delay: 0.22s;
}

.plan-card:nth-child(2) {
  animation-delay: 0.28s;
}

.plan-card:nth-child(3) {
  animation-delay: 0.34s;
}

.plan-card:nth-child(4) {
  animation-delay: 0.4s;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -34px rgb(25 35 50 / 40%);
}

.plan-card.is-fit {
  border-color: var(--blue);
  box-shadow: var(--plan-ring);
}

.plan-card.is-limited {
  background: #fafbfc;
}

.plan-card.is-limited .plan-amount {
  color: #5d6676;
}



.plan-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.plan-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.plan-badge--fit {
  margin-left: auto;
  background: var(--blue);
  color: var(--white);
  animation: pricing-pop 0.45s var(--ease-out) both;
}

.plan-tagline {
  min-height: 48px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 22px;
}

.plan-amount {
  font-size: 46px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-amount--text {
  font-size: 40px;
}

.plan-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.plan-total {
  min-height: 42px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-total strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plan-total.is-changing {
  animation: pricing-nudge 0.4s var(--ease-out);
}

.plan-cta {
  width: 100%;
  margin-top: 18px;
}

.site-body .plan-card .btn--outline {
  border-color: #d5d9de;
  color: #353e45;
}

.plan-facts {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.plan-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3a4352;
  font-size: 14px;
  line-height: 1.45;
}

.plan-facts svg {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

/* Larger teams route to sales: a dark card set apart from the self-serve plans. */

.plan-card--contact {
  border-color: var(--ink-800);
  background:
    radial-gradient(120% 70% at 100% 0%, rgb(47 107 255 / 28%), transparent 60%),
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--ink-900);
  color: var(--text-on-dark);
}

.plan-card--contact .plan-tagline,
.plan-card--contact .plan-unit,
.plan-card--contact .plan-total {
  color: var(--muted-on-dark);
}

.plan-card--contact.is-fit {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 1px var(--blue-bright), 0 24px 60px -30px rgb(47 107 255 / 70%);
}

.plan-card--contact .plan-facts {
  border-color: var(--edge-dark);
}

.plan-card--contact .plan-facts li {
  color: #d5dcea;
}

.plan-card--contact .plan-facts svg {
  background: rgb(91 141 255 / 18%);
  color: var(--blue-bright);
}

.site-body .btn--contact {
  background: var(--white);
  color: var(--ink);
}

.site-body .btn--contact:hover {
  background: #e8eefc;
}

.pricing-note {
  max-width: 640px;
  margin: 28px auto 0;
  color: #78808b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* Comparison and capabilities */

.pricing-compare,
.pricing-includes {
  max-width: 1360px;
  margin: 0 auto;
  padding: 88px var(--gutter) 24px;
}

.pricing-section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px 80px;
  margin-bottom: 40px;
}

.pricing-section-heading h2 {
  color: #202629;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.pricing-section-heading p {
  color: #626971;
  font-size: 16px;
  line-height: 1.7;
}

.pricing-section-heading a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}

.pricing-section-heading a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table thead th {
  background: #f8fafc;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.compare-table tbody th {
  width: 18%;
  color: var(--muted);
  font-weight: 600;
}

.compare-table td {
  color: #2c3440;
}

.compare-table small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.compare-table tr > :nth-child(4) {
  background: rgb(47 107 255 / 4%);
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.includes-grid li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.includes-grid li:nth-child(3n + 2) {
  transition-delay: 0.08s;
}

.includes-grid li:nth-child(3n) {
  transition-delay: 0.16s;
}

.includes-index {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
}

.includes-grid strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.includes-grid li > span:not(.includes-index) {
  color: var(--muted);
  font-size: 14px;
}

.includes-scope {
  justify-self: start;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.pricing-questions {
  padding: 96px var(--gutter);
}

@keyframes pricing-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes pricing-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes pricing-nudge {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }
}

@media (max-width: 1120px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pricing-hero {
    padding-top: 128px;
  }

  .pricing-section-heading {
    grid-template-columns: 1fr;
  }

  .includes-grid {
    grid-template-columns: 1fr;
  }

  .seat-picker {
    border-radius: 20px;
    padding: 14px 18px;
  }

  .seat-range {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 620px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-tagline {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-hero > *,
  .seat-picker,
  .plan-card,
  .plan-badge--fit {
    animation: none;
  }

  .plan-card,
  .plan-card:hover {
    transform: none;
    transition: none;
  }
}
