/*
 * The Pricing and FAQ pages (plan 2026-10-12): plan cards filled by pricing.js, the included
 * features, and the questions as disclosure rows. Uses the tokens of styles.css.
 */
.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  margin-bottom: 12px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.plan h2 {
  margin: 0;
  font-size: 1.25rem;
}

.plan .price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.plan .amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.plan .per {
  color: var(--muted);
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan li,
.included li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li::before,
.included li::before {
  content: '✓';
  flex: none;
  color: var(--primary);
  font-weight: 700;
}

.plan .button {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

.plans-note {
  color: var(--muted);
  margin: 0 0 8px;
}

/* While the plans load, and when they could not be read: the note takes the cards' place. */
.plans[aria-busy='true'] .plan {
  min-height: 300px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.included ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 24px;
}

.faq {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.0625rem;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.faq details > div {
  padding: 0 0 18px;
  color: var(--muted);
}

.faq details p {
  margin: 0 0 8px;
}

/* The page header carries more links here than on the legal pages. */
.top nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.top nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}
