/* Extra styles for the post-purchase and recovery pages. Kept out of styles.css so the
   landing page stays as small as possible — it is the one people actually wait for. */

.receipt-head { text-align: center; margin-bottom: 44px; }
.receipt-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.receipt-head .lede { margin-inline: auto; }

.check {
  width: 56px; height: 56px; margin: 0 auto 22px;
  border-radius: 50%; background: #e7f6ec; position: relative;
}
.check::after {
  content: ""; position: absolute; left: 19px; top: 16px;
  width: 15px; height: 24px;
  border-right: 3px solid #1c9e4f; border-bottom: 3px solid #1c9e4f;
  transform: rotate(42deg);
}

.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.step-card h2 {
  font-size: 1.16rem; display: flex; align-items: center; gap: 12px; margin-bottom: .8em;
}
.step-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  background: var(--accent-wash); color: var(--accent-ink); font-size: .87rem; font-weight: 660;
}
.step-card p:last-child { margin-bottom: 0; }

.key-state { margin: 0; }
.key-state p { margin: 0 0 .8em; }

.key-box {
  display: flex; align-items: center; gap: 12px;
  background: #f5f8fc; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px 12px 16px; margin-bottom: 14px;
}
.key-box code {
  flex: 1; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.5; color: var(--ink);
  word-break: break-all; user-select: all;
}
.key-box .btn { flex: none; }

.key-meta { font-size: .9rem; color: var(--muted); }
.key-note { font-size: .9rem; color: var(--muted); margin-bottom: 0 !important; }
.error-title { font-weight: 620; color: #a2331f; }

.spinner {
  display: inline-block; width: 15px; height: 15px; margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.plain-list { padding-left: 1.2em; margin: 0 0 1em; }
.plain-list li { margin-bottom: .55em; }

/* Recovery form */
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 590; color: var(--ink); margin-bottom: 6px;
              font-size: .95rem; }
.field input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus-visible { outline: 3px solid rgba(13,129,255,.4); outline-offset: 1px;
                             border-color: var(--accent); }
.field small { display: block; color: var(--muted); font-size: .87rem; margin-top: 6px; }

/* Legal pages */
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: .2em; }
.legal h2 { font-size: 1.2rem; margin: 2em 0 .6em; }
.legal-updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.2em; }
.legal ul { margin: 0 0 1.1em; }
