/*
 * Wishbone's other pages (pricing, use cases): the home page's sky, bar and
 * colours from home.css, with ordinary scrolling content in frosted cards.
 */
.page .frame {
  position: relative;
  top: auto;
  height: auto;
  min-height: calc(100vh - 24px);
  min-height: calc(100svh - 24px);
  display: block;
  padding: 136px 24px 96px;
}
.page .sky { position: absolute; inset: 0; }

.intro { max-width: 820px; margin: 0 auto; text-align: center; }
.intro .label,
.plan-name,
.case .label {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.intro h1 {
  margin: 12px 0 0;
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  background: linear-gradient(90deg, var(--heading-from), var(--heading-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 8px;
}
.intro .lede {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Frosted cards, as in the product window. */
.panel {
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: var(--app-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--app-shadow);
}

/* Text pages (About, Careers, Privacy, Terms): the writing in one frosted
   card, using the theme's colours. */
.page .prose {
  --foreground: var(--ink);
  --muted-foreground: var(--ink-muted);
  max-width: 760px;
  margin: 48px auto 0;
  padding: 48px;
  color: var(--ink);
}
.page .prose > :first-child { margin-top: 0; }
.page .prose h2 { color: var(--ink); }
.page .prose p, .page .prose li { color: var(--ink-muted); }
.page .prose strong { color: var(--ink); }
.page .prose a:not(.button) { color: var(--ink); }
.page .intro .button { margin-top: 32px; }

/* Pricing. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 48px auto 0;
}
/* Each card spans the same five rows (name, price, line, list, button), so
   the dividers and buttons line up across cards whatever the text length. */
.plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding: 32px; }
.plan.featured { border-color: var(--focus-line); box-shadow: var(--focus-shadow), var(--app-shadow); }
.price { margin: 16px 0 0; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.price span { font-size: 1rem; line-height: 1.5rem; color: var(--ink-muted); }
.plan-line { margin: 12px 0 0; font-size: 1rem; line-height: 1.5rem; color: var(--ink-muted); text-wrap: pretty; }
.plan ul { margin: 24px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--hair); }
.plan li { display: flex; gap: 12px; font-size: 1rem; line-height: 1.5rem; }
.plan li + li { margin-top: 12px; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--label); }
.page .plan .button { margin-top: 32px; align-self: end; justify-content: center; }
.plan:not(.featured) .button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line); }
.plan:not(.featured) .button:hover { background: var(--tint-2); }

.faq { max-width: 680px; margin: 64px auto 0; }
.faq h2 { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.faq dl { margin: 24px 0 0; padding: 8px 24px; }
.faq dt { margin: 0; padding-top: 16px; font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.faq dd { margin: 4px 0 0; padding-bottom: 16px; font-size: 1rem; line-height: 1.5rem; color: var(--ink-muted); text-wrap: pretty; }
.faq dd + dt { border-top: 1px solid var(--hair); }

/* The full comparison, under the questions. */
.compare { max-width: 800px; margin: 64px auto 0; }
.compare h2 { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.compare-panel { margin-top: 24px; padding: 8px 24px 16px; overflow-x: auto; }
.compare table { width: 100%; min-width: 480px; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 0; font-size: 1rem; line-height: 1.5rem; text-align: left; font-weight: 400; }
.compare thead th { padding: 16px 0; font-weight: 600; text-align: center; border-bottom: 1px solid var(--hair); }
.compare thead th span { display: block; font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; color: var(--ink-muted); }
.compare td { width: 120px; text-align: center; color: var(--ink); }
.compare tbody th { padding-right: 16px; color: var(--ink); }
.compare tbody tr + tr:not(.group) th, .compare tbody tr + tr:not(.group) td { border-top: 1px solid var(--hair); }
.compare tr.group th {
  padding: 32px 0 8px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.compare tbody tr:first-child.group th { padding-top: 16px; }
.compare td svg { width: 16px; height: 16px; color: var(--label); vertical-align: middle; }
.compare .no { color: var(--ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Use cases. */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 48px auto 0;
}
.case { padding: 32px; }
.case h2 { margin: 12px 0 0; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.case p.body { margin: 12px 0 0; font-size: 1rem; line-height: 1.5rem; color: var(--ink-muted); text-wrap: pretty; }
.ask {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tint-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink);
}
.ask span { display: block; margin-bottom: 4px; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--ink-muted); }
.page-cta { margin-top: 64px; text-align: center; }
.page-cta p { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.page-cta .button { margin-top: 24px; }

@media (max-width: 760px) {
  .page .frame { padding: 112px 16px 64px; }
  .intro h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .intro .lede { font-size: 1rem; line-height: 1.5rem; }
  .plans, .cases { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .plan, .case { padding: 24px; }
  .page .prose { margin-top: 32px; padding: 24px; }
  .compare-panel { padding: 4px 16px 12px; }
  .compare td { width: 72px; }
  .compare table { min-width: 0; }
  .compare th, .compare td { font-size: 0.875rem; line-height: 1.25rem; }
  .case h2 { font-size: 1.5rem; line-height: 2rem; }
}
