/* Pricing: flat monthly price per monthly-tracked-revenue (MTR) band. Plans and AI credits are tabs; the revenue
   selector highlights the plan that fits and compares it with a platform that takes 1% of revenue. */

.site-frame section.pr {
  --pr-ink: #171717;
  --pr-mute: #6b7280;
  --pr-line: #e5e7eb;
  --pr-panel: #f5f5f4;
  --pr-blue: #1d4ed8;
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) 24px clamp(3rem, 6vw, 4.5rem);
  color: var(--pr-ink);
}

/* Heading */
.pr-head h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.25rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.pr-head p {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.3125rem);
  line-height: 1.5;
  color: #525252;
}

/* Tabs and the revenue selector */
.pr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
  margin: 2.5rem 0 1.25rem;
}
.pr-seg {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.1875rem;
  background: #f3f4f6;
  border: 1px solid var(--pr-line);
  border-radius: 0.875rem;
}
.pr-seg button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid transparent;
  border-radius: 0.6875rem;
  background: transparent;
  color: #4b5563;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.pr-seg button:hover {
  color: var(--pr-ink);
}
.pr-seg button {
  padding: 0.4375rem 0.75rem;
  font-size: 0.875rem;
}
.pr-pill {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #e0e9ff;
  color: #1e3a8a;
  font-size: 0.75rem;
  font-weight: 500;
}
.pr-seg button[aria-checked="true"] {
  background: #ffffff;
  border-color: var(--pr-blue);
  color: var(--pr-ink);
  box-shadow: 0 0 0 2px rgb(29 78 216 / 0.12);
}
.pr button:focus-visible,
.pr a:focus-visible {
  outline: 2px solid var(--pr-blue);
  outline-offset: 2px;
}

/* Plan grid: four columns split by hairlines, like the reference */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: -24px;
  border-top: 1px solid var(--pr-line);
}
.pr-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  padding: 0.5rem 0.5rem 1.5rem;
}
.pr-grid .pr-card + .pr-card {
  border-left: 1px solid var(--pr-line);
}
.pr-card__top {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--pr-panel);
  border: 1px solid #ececea;
  border-radius: 0.875rem;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.pr-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pr-price {
  margin: 0.375rem 0 0;
  color: var(--pr-mute);
  font-size: 0.9375rem;
}
.pr-price b {
  margin-right: 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--pr-ink);
  font-variant-numeric: tabular-nums;
}
.pr-limit {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: var(--pr-mute);
}
.pr-yearnote[data-y]:not([data-y=""]) {
  min-height: 1.2em;
}
.pr-blurb {
  min-height: 3.1em;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #404040;
}
.pr-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  margin-top: auto;
  border: 1px solid var(--pr-line);
  border-radius: 0.625rem;
  background: #ffffff;
  color: var(--pr-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.pr-cta:hover {
  background: #fafafa;
  border-color: #d1d5db;
}

/* The featured plan */
.pr-card[data-featured] .pr-card__top {
  background: #eef3ff;
  border-color: #cbd8f7;
}

.pr-card[data-featured] .pr-cta {
  background: var(--pr-ink);
  border-color: var(--pr-ink);
  color: #ffffff;
}
.pr-card[data-featured] .pr-cta:hover {
  background: #262626;
}

/* Features */
.pr-card__list {
  padding: 0 0.75rem;
}
.pr-lead {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.pr-card__list ul {
  display: grid;
  gap: 0.6875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pr-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #404040;
}
.pr-card__list li svg {
  flex: none;
  width: 1.0625rem;
  height: 1.0625rem;
  margin-top: 0.125rem;
  color: #6b7280;
}
.pr-f[title] {
  text-decoration: underline dotted #a3a3a3;
  text-underline-offset: 4px;
  cursor: help;
}

/* The comparison and the rules */
.pr-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem 3rem;
  align-items: start;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--pr-line);
}
.pr-vs h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pr-vs p {
  max-width: 30ch;
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #525252;
}
.pr-vs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.pr-vs th,
.pr-vs td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--pr-line);
  text-align: left;
  font-weight: 400;
}
.pr-vs thead th {
  font-size: 0.8125rem;
  color: var(--pr-mute);
}
.pr-vs tbody th {
  font-weight: 600;
}
.pr-vs td:nth-child(2) {
  color: var(--pr-mute);
}
.pr-vs td b {
  font-size: 1.125rem;
  font-weight: 600;
  margin-right: 0.25rem;
}
.pr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pr-notes {
  display: grid;
  gap: 0.5rem;
  max-width: 52rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pr-mute);
}
.pr-notes a {
  color: var(--pr-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Narrower screens */
@media (max-width: 1100px) {
  .pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pr-grid .pr-card:nth-child(odd) {
    border-left: 0;
  }
  .pr-grid .pr-card:nth-child(n + 3) {
    border-top: 1px solid var(--pr-line);
  }
}
@media (max-width: 760px) {
  .site-frame section.pr {
    padding-inline: 16px;
  }
  .pr-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: -16px;
  }
  .pr-grid .pr-card + .pr-card {
    border-left: 0;
    border-top: 1px solid var(--pr-line);
  }
  .pr-blurb {
    min-height: 0;
  }
  .pr-seg {
    flex-wrap: wrap;
  }
  .pr-vs {
    grid-template-columns: minmax(0, 1fr);
  }
  .pr-vs th,
  .pr-vs td {
    padding-inline: 0.25rem;
    font-size: 0.8125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pr * {
    transition: none !important;
  }
}

