/* The upgrade page. Builds on style.css: the same paper, ink, line and one
   copper accent, flat cards with a border and no shadow. */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 32px;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.plan h2 { margin: 0 0 4px; }

.plan-pro { border-color: var(--mark); }

.price {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

.price span { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.plan ul { margin: 0; padding-left: 1.2em; }

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

form { display: grid; gap: 8px; max-width: 360px; margin-top: 16px; }

label { font-size: .9rem; font-weight: 600; color: var(--ink); margin-top: 8px; }

input {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 44px;
}

input:focus-visible { outline: 2px solid var(--mark); outline-offset: 1px; border-color: var(--mark); }

button.action {
  font: inherit;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  margin-top: 16px;
  justify-self: start;
}

button.action:hover { filter: brightness(.94); }
button.action:active { filter: brightness(.88); }
button.action:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button.action:disabled { opacity: .55; cursor: progress; filter: none; }

button.link {
  font: inherit;
  background: none;
  border: 0;
  padding: 12px 8px;
  margin-left: 8px;
  color: var(--mark);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}

button.link:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 4px; }

.error {
  background: #f6e3d2;
  color: var(--ink);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  button.link { margin-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .panel { animation: rise .2s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
