/* Yearly / Lifetime switch. Lifetime is the default. Without JS both offers stay visible. */
.plan-switch {
  display: none;
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 3px;
  border: 1px solid var(--hairline, var(--line, #ded7c8));
  border-radius: 999px;
  background: #fffdf8;
}
html.js .plan-switch {
  display: inline-flex;
}
.plan-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft, var(--soft, #4a453c));
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}
.plan-switch button[aria-checked="true"] {
  background: var(--ink, #16130e);
  color: var(--paper, #faf7f1);
}
.plan-switch button:focus-visible {
  outline: 2px solid var(--safe, #1e7a44);
  outline-offset: 2px;
}
html.js .plan-offer:not(.is-active),
html.js .plan-cta:not(.is-active) {
  display: none;
}
html:not(.js) .plan-offer + .plan-offer {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline, var(--line, #ded7c8));
}
html:not(.js) .plan-cta + .plan-cta {
  margin-top: 10px;
}

/* Card chrome for pages that do not already style .plan (the pricing page). */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 8px;
  align-items: stretch;
}
.plan-grid .plan {
  border: 1px solid var(--line, var(--hairline, #ded7c8));
  border-radius: 16px;
  padding: 24px;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
}
.plan-grid .plan.pro {
  border-color: var(--safe, #1e7a44);
  box-shadow: 0 14px 40px rgba(30, 122, 68, 0.13);
}
.plan-grid .plan-name {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft, var(--ink-soft, #4a453c));
}
.plan-grid .plan-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 0;
}
.plan-grid .plan-price small {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--soft, var(--ink-soft, #4a453c));
}
.plan-grid .plan-sub {
  color: var(--soft, var(--ink-soft, #4a453c));
  font-size: 15px;
  margin: 8px 0 18px;
}
.plan-grid .plan .button,
.plan-grid .plan .btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
}
@media (max-width: 720px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}
