/* ── Supporter page ────────────────────────────────────────────────────────── */

.supporter-body {
  background: #141414;
  color: #d8d8d8;
}

.supporter-main {
  min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────────────────── */

.sup-hero {
  padding: 4.75rem 1.5rem 4.25rem;
  border-bottom: 1px solid #1e1e1e;
  text-align: center;
}

.sup-hero-inner {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.65rem;
}

/* ── Badge emblem ──────────────────────────────────────────────────────────── */

.sup-emblem-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Halo and ring removed */
.sup-emblem-halo,
.sup-emblem-ring {
  display: none;
}

/* The badge itself — scaled-up version of the profile badge */
.sup-emblem {
  position: relative;
  z-index: 1;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg,
      #152a42 0%,
      #1c3d5e 28%,
      #143552 55%,
      #0f2840 100%);
  border: 1px solid rgba(100, 190, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(40, 140, 255, 0.22),
    0 0 80px rgba(20, 100, 220, 0.1),
    0 0 2px rgba(160, 220, 255, 0.4);
  overflow: hidden;
}

.sup-emblem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.11) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-12deg);
  pointer-events: none;
}

@keyframes sup-badge-shine {
  0%, 15%  { transform: translateX(-160%) skewX(-12deg); }
  65%, 100% { transform: translateX(320%) skewX(-12deg); }
}

@keyframes sup-badge-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5) inset,
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(40, 140, 255, 0.22),
      0 0 80px rgba(20, 100, 220, 0.1),
      0 0 2px rgba(160, 220, 255, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5) inset,
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 55px rgba(40, 140, 255, 0.38),
      0 0 110px rgba(20, 100, 220, 0.18),
      0 0 2px rgba(160, 220, 255, 0.62);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sup-emblem::before {
    animation: sup-badge-shine 5.5s ease-in-out 1.5s infinite;
  }
  .sup-emblem {
    animation: sup-badge-glow 3.5s ease-in-out infinite;
  }
}

.sup-emblem::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(120, 200, 255, 0.1), transparent);
  border-radius: 0 0 7px 7px;
  pointer-events: none;
}

.sup-emblem-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8e8ff;
  text-shadow:
    0 0 20px rgba(80, 170, 255, 0.6),
    0 1px 0 rgba(0, 20, 40, 0.8);
  line-height: 1;
  white-space: nowrap;
}

/* ── Milestone list ────────────────────────────────────────────────────────── */

.sup-milestones {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  border-top: 1px solid #1e1e1e;
}

.sup-milestone {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5c5c5c;
  padding: 0.65rem 0 0.65rem 1rem;
  border-bottom: 1px solid #1e1e1e;
  position: relative;
  text-align: left;
}

.sup-milestone::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 55%;
  background: #c8a96e;
  opacity: 0.48;
  border-radius: 1px;
}

.sup-milestone--more {
  color: #454545;
  font-style: italic;
  grid-column: 1 / -1;
  justify-content: center;
  border-bottom: none;
  letter-spacing: 0.05em;
}

.sup-milestone-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #4a4a4a;
  margin-top: 0.2rem;
  text-transform: none;
}

.sup-shipped {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid #1a1a1a;
}

.sup-shipped-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a6a;
}

/* ── Copy ──────────────────────────────────────────────────────────────────── */

.sup-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.sup-hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #ebebeb;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

/* Two fixed lines under title — one sentence per line (see .sup-hero-lead-line) */
.sup-hero-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  font-size: clamp(0.7rem, 0.55rem + 0.55vw, 0.9rem);
  color: #9a9a9a;
  line-height: 1.5;
  margin: 0;
  max-width: min(42em, 100%);
  margin-inline: auto;
  text-wrap: wrap;
}

.sup-hero-lead-line {
  display: block;
  text-align: center;
  max-width: 100%;
}

/* Proof block: why support + what shipped (left-aligned prose + list) */
.sup-track-record {
  width: 100%;
  align-self: stretch;
  text-align: left;
  padding: 1.25rem 0 0;
  border-top: 1px solid #242424;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sup-track-record-intro {
  font-size: 0.85rem;
  color: #8f8f8f;
  line-height: 1.62;
  margin: 0;
  width: 100%;
}

.sup-track-record .sup-shipped {
  padding-top: 0;
  border-top: none;
  gap: 0.65rem;
}

.sup-track-record .sup-shipped-label {
  display: block;
  text-align: left;
}

/* ── CTA block ─────────────────────────────────────────────────────────────── */

.sup-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 28rem;
}

.sup-amount-heading {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  line-height: 1.45;
}

.sup-amount-heading-usd {
  font-weight: 500;
  color: #6e6e6e;
}

.sup-amount-heading-edit {
  font-weight: 500;
  color: #a09072;
}

.sup-input-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid rgba(200, 169, 110, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: #161616;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(200, 169, 110, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sup-input-row:focus-within {
  border-color: rgba(200, 169, 110, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(200, 169, 110, 0.12);
}

.sup-amount-field {
  display: flex;
  align-items: center;
  background: #141414;
  border-right: 1px solid rgba(200, 169, 110, 0.18);
  flex-shrink: 0;
  cursor: text;
  margin: 0;
}

.sup-amount-prefix {
  padding: 1rem 0.45rem 1rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #d4b87a;
  user-select: none;
  line-height: 1;
}

.sup-amount-input {
  box-sizing: border-box;
  margin: 0.4rem 0.45rem 0.4rem 0;
  padding: 0.55rem 0.65rem 0.55rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ebebeb;
  width: 5.5rem;
  cursor: text;
  caret-color: #d4b87a;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  appearance: textfield;
  -moz-appearance: textfield;
}

.sup-amount-input:hover {
  border-color: rgba(200, 169, 110, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.sup-amount-input:focus {
  outline: none;
  border-color: rgba(200, 169, 110, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.12);
}

.sup-amount-input::-webkit-outer-spin-button,
.sup-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Buy button */
.sup-buy-btn {
  flex: 1;
  padding: 1rem 1.35rem;
  background: linear-gradient(
    165deg,
    rgba(200, 169, 110, 0.22) 0%,
    rgba(200, 169, 110, 0.1) 45%,
    rgba(200, 169, 110, 0.06) 100%
  );
  border: none;
  color: #e8d4a8;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sup-buy-btn:hover:not([disabled]) {
  background: linear-gradient(
    165deg,
    rgba(200, 169, 110, 0.32) 0%,
    rgba(200, 169, 110, 0.16) 50%,
    rgba(200, 169, 110, 0.1) 100%
  );
  color: #f0e2c4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 24px rgba(200, 169, 110, 0.12);
}

.sup-buy-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.sup-amount-hint {
  font-size: 0.72rem;
  color: #656565;
  margin: 0;
  letter-spacing: 0.02em;
  max-width: 26rem;
  text-align: center;
  line-height: 1.45;
}

.sup-amount-error {
  font-size: 0.7rem;
  color: #c0392b;
  margin: 0;
  min-height: 1em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHARED SECTION LABEL
───────────────────────────────────────────────────────────────────────────── */

.sup-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 1.75rem;
  display: block;
}


/* ─────────────────────────────────────────────────────────────────────────────
   FAQ
───────────────────────────────────────────────────────────────────────────── */

.sup-faq-section {
  padding: 4rem 1.5rem 5rem;
}

.sup-faq-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.sup-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1e1e1e;
}

.sup-faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #1e1e1e;
}

.sup-faq-q {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ccc;
  margin: 0 0 0.5rem;
}

.sup-faq-a {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
}

.sup-faq-a a {
  color: #9eb8d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 184, 212, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sup-faq-a a:hover {
  color: #c4d9ee;
  border-bottom-color: rgba(196, 217, 238, 0.7);
}

.sup-faq-a a:focus-visible {
  outline: 2px solid rgba(120, 160, 210, 0.75);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TIER BADGE — keep in sync with catalog.css
───────────────────────────────────────────────────────────────────────────── */

.tier-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  width: fit-content;
}

.tier-badge.tier-supporter {
  position: relative;
  display: inline-block;
  padding: 0.18rem 0.42rem 0.2rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #c8e8ff;
  text-shadow:
    0 0 14px rgba(80, 170, 255, 0.45),
    0 1px 0 rgba(0, 20, 40, 0.85);
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg,
      #152a42 0%,
      #1c3d5e 28%,
      #143552 55%,
      #0f2840 100%);
  border: 1px solid rgba(100, 190, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(40, 140, 255, 0.18),
    0 0 1px rgba(160, 220, 255, 0.35);
  overflow: hidden;
  vertical-align: middle;
}

.tier-badge.tier-supporter .tier-supporter-label {
  position: relative;
  z-index: 1;
}

.tier-badge.tier-supporter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.11) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-12deg);
  pointer-events: none;
}

.tier-badge.tier-supporter::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  z-index: 0;
  background: linear-gradient(to top, rgba(120, 200, 255, 0.12), transparent);
  border-radius: 0 0 3px 3px;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .tier-badge.tier-supporter {
    transition:
      border-color 0.2s ease,
      color 0.2s ease,
      box-shadow 0.25s ease;
  }

  .tier-badge.tier-supporter::before {
    animation: sup-badge-shine 5.5s ease-in-out 1.5s infinite;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .sup-hero {
    padding: 3.75rem 1.25rem 3.25rem;
  }

  .sup-hero-inner {
    gap: 1.35rem;
  }

  .sup-emblem-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .sup-buy-btn {
    font-size: 0.75rem;
    padding: 0.9rem 1rem;
    letter-spacing: 0.045em;
  }

  .sup-amount-prefix {
    padding: 0.9rem 0.4rem 0.9rem 0.95rem;
    font-size: 0.85rem;
  }

  .sup-amount-heading {
    font-size: 0.68rem;
    padding-inline: 0.15rem;
  }

  .sup-amount-input {
    margin: 0.35rem 0.4rem 0.35rem 0;
    padding: 0.5rem 0.55rem 0.5rem 0.35rem;
    font-size: 1.05rem;
  }

  .sup-milestone-row {
    gap: 0.35rem 0.5rem;
  }

  .sup-perks-grid {
    grid-template-columns: 1fr;
  }

  .sup-phase2-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   WELCOME PAGE (post-purchase)
───────────────────────────────────────────────────────────────────────────── */

#supwelcome-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.supwelcome-body {
  background: #141414;
  color: #d8d8d8;
}

.supwelcome-main {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.supwelcome-inner {
  max-width: 480px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.supwelcome-inner.is-ready {
  opacity: 1;
}

/* Badge entrance */
.supwelcome-badge-wrap {
  animation: supwelcome-badge-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.supwelcome-badge {
  /* Inherits .sup-emblem styles — slightly more glow on the welcome page */
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 55px rgba(40, 140, 255, 0.3),
    0 0 100px rgba(20, 100, 220, 0.15),
    0 0 2px rgba(160, 220, 255, 0.5);
}

@keyframes supwelcome-badge-enter {
  0%   { opacity: 0; transform: scale(0.8) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Copy */
.supwelcome-copy {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.supwelcome-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: #ebebeb;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.supwelcome-sub {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.65;
  margin: 0;
}

/* Actions */
.supwelcome-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: supwelcome-fadein 0.5s ease 0.55s both;
}

.supwelcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.supwelcome-btn--primary {
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid rgba(200, 169, 110, 0.45);
  color: #c8a96e;
}

.supwelcome-btn--primary:hover {
  background: rgba(200, 169, 110, 0.2);
  border-color: #c8a96e;
}

.supwelcome-btn--ghost {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #666;
}

.supwelcome-btn--ghost:hover {
  border-color: #3d3d3d;
  color: #aaa;
}

/* Claim badge card (unauthenticated post-purchase) */
.supwelcome-claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem;
  border: 1px solid #222;
  border-radius: 8px;
  background: #181818;
  width: 100%;
  text-align: center;
}

.supwelcome-claim-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0;
}

.supwelcome-claim-sub {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}

/* Footnote */
.supwelcome-footnote {
  font-size: 0.72rem;
  color: #383838;
  margin: 0.75rem 0 0;
  animation: supwelcome-fadein 0.5s ease 0.75s both;
}

.supwelcome-teaser {
  font-size: 0.72rem;
  color: #444;
  margin: 0;
  animation: supwelcome-fadein 0.5s ease 0.9s both;
}

@keyframes supwelcome-fadein {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
