/* The pricing page (site/pricing.html): the plans as cards, in the site's own type and colours. */

.pr-hero {
  padding: 56px 0 24px;
}
.pr-hero .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}
.pr-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pr-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.pr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pr-plans {
  padding: 40px 0;
}

/* Monthly / Yearly (docs/yearly-plans.md; the script is /pricing.js). Without the script: the monthly
   price and an "or $290 a year" line. With it: the switch shows, that line goes, and Yearly swaps each
   paid plan's price. The rules that hide one price sit after .pr-price, below. */
.pr-switch {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pr-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pr-switch-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.pr-switch-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.pr-switch-pill {
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
.pr-alt {
  font-size: 14px;
  color: var(--muted);
  margin-top: -6px;
}
main.js .pr-switch {
  display: inline-flex;
}
main.js .pr-alt {
  display: none;
}
.pr-plans .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pr-plans h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pr-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
}
.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pr-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-trial {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.18);
}
.pr-badge {
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.plan h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pr-price {
  font-size: 15px;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
/* One price per card: the monthly one unless Yearly is chosen. After .pr-price, which would
   otherwise show both (docs/todo-8.md, A). */
main:not([data-interval="year"]) .pr-price-year {
  display: none;
}
main[data-interval="year"] .pr-price-month {
  display: none;
}
.pr-amount {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pr-who {
  font-size: 15px;
  font-weight: 600;
}
.pr-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.pr-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: auto;
}
.pr-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pr-fine {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 72ch;
}
.pr-solo {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pr-solo .plan {
  background: var(--bg);
}
.pr-solo .pr-switch {
  background: var(--bg);
}

.pr-copy {
  padding: 48px 0;
}
.pr-copy-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pr-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  align-items: start;
}
.pr-two > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pr-two h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pr-two p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.pr-two .checks {
  padding-top: 6px;
}

@media (max-width: 1000px) {
  .pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .pr-two {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .pr-grid,
  .pr-grid-2 {
    grid-template-columns: 1fr;
  }
  .pr-hero {
    padding-top: 36px;
  }
}
