/* SUPPORT-THANKS-2026-12-03 — the premium donor thank-you panel
   on /support?donated=1 and its twin /es/apoyo?donated=1 (the
   Stripe Payment Link's after-completion return). Scoped to the
   support pages only: the two templates load this sheet from
   their head block, nothing else does.

   The design speaks the site's language: the .svc-note panel
   surface (var(--surf), hairline green border, var(--r-m),
   var(--shadow-1)) made ceremonial — a soft emerald halo that
   breathes behind the panel (the one loop), the copy rising in
   with a gentle stagger, and an SVG shield-and-check mark whose
   stroke draws itself once in brand green. Palette is the
   estate's: green #00e676 family on #060806 — no purple, ever.

   Motion is CSS keyframes on transform/opacity only, in the
   motion.css token language (--ease-out; durations inside the
   estate's 140…760 ms ladder, the halo's slow breathe excepted).
   Under prefers-reduced-motion every animation is removed and
   the panel renders fully visible, the mark fully drawn. */

.thanks-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surf); border: 1px solid var(--grn-dim);
  border-radius: var(--r-m); box-shadow: var(--shadow-1);
  padding: 1.5em 1.3em 1.3em; margin: 0 0 1em; text-align: center;
}

/* The breathing emerald halo — the panel's single loop. */
.thanks-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 68% 58% at 50% 30%,
    rgba(0,230,118,.17), rgba(0,230,118,0) 70%);
  animation: thanks-breathe 7s ease-in-out infinite alternate;
}
@keyframes thanks-breathe {
  from { opacity: .55; transform: scale(1); }
  to   { opacity: 1;  transform: scale(1.08); }
}

/* One-shot rise, staggered by each element's --d step. */
.thanks-rise {
  animation: thanks-rise 760ms var(--ease-out) both;
  animation-delay: calc(120ms + var(--d, 0) * 140ms);
}
@keyframes thanks-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The mark: shield outline, then the check inside it — each
   stroke draws itself once (pathLength normalises both to
   100) and settles. */
.thanks-mark { display: block; width: 64px; height: 64px; margin: 0 auto .3em; }
.thanks-mark .thanks-shield,
.thanks-mark .thanks-check {
  fill: none; stroke: var(--grn); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: thanks-draw 900ms var(--ease-out) forwards;
}
.thanks-mark .thanks-check { animation-delay: 600ms; }
@keyframes thanks-draw { to { stroke-dashoffset: 0; } }

.thanks-kicker {
  font-family: var(--font-mono); font-size: .74em;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 .4em;
}
.thanks-head {
  font-size: 1.55em; font-weight: 800; letter-spacing: .01em;
  line-height: 1.15; color: var(--txt); margin: 0 0 .4em;
}
.thanks-line { max-width: 52ch; margin: 0 auto .7em; }
.thanks-honest {
  color: var(--dim); font-size: .92em;
  max-width: 52ch; margin: 0 auto 1.1em;
}
.thanks-panel .btn-send { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .thanks-panel::before, .thanks-rise,
  .thanks-mark .thanks-shield,
  .thanks-mark .thanks-check { animation: none !important; }
  .thanks-mark .thanks-shield,
  .thanks-mark .thanks-check { stroke-dashoffset: 0; }
}
