/* Setup packages and their checkout: up only while a payment gateway reviews the site, then deleted with
   /plans and /checkout (docs/FOUNDER.md). */

.plans {
  display: grid;
  gap: clamp(32px, 4vw, 44px);
  padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 80px);
}

.plans-head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
}

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.package {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  padding: 28px;
  border-radius: 20px;
  background: var(--paper-2);
}

.package ul {
  display: grid;
  align-content: start;
  list-style: disc;
  gap: 8px;
  padding-left: 1.25em;
  color: var(--text-2);
}

.package .btn {
  margin-top: 12px;
}

.price {
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.plans-foot {
  max-width: 44rem;
}

.checkout,
.payment {
  display: grid;
  gap: 28px;
  max-width: 34rem;
}

.payment[hidden] {
  display: none;
}

.checkout fieldset {
  display: grid;
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 0;
}

.checkout legend {
  padding: 0;
  margin-bottom: 14px;
}

.fields label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.fields input:not([type="checkbox"]) {
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: inherit;
  font-weight: 400;
  color: var(--text);
}

.fields input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.choices label,
.fields .agree {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}

.choices label {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--paper-2);
  font-weight: 700;
}

.choices label span {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.choices input,
.fields .agree input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--ink);
}

.payment-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
}

.payment-slot {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-3);
  text-align: center;
}
