/* Donate page. Borrows the site's tokens and button styles; only the pieces the
   homepage has no equivalent of are defined here. */

.donate-hero {
  position: relative;
  padding: clamp(120px, 16vh, 190px) clamp(24px, 9vw, 152px) clamp(40px, 6vh, 70px);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(211, 20, 43, .22), transparent 65%),
    linear-gradient(180deg, #070a12 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}
.donate-hero-inner { max-width: 780px; }
.donate-hero h1 {
  margin: 0 0 26px;
  font: 800 clamp(44px, 6vw, 78px)/0.98 "Barlow Condensed", sans-serif;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.donate-hero h1 em { font-style: italic; color: var(--red-hot); }
.donate-lede { margin: 0; max-width: 660px; color: #c1c9d5; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.72; }
.donate-note { margin: 20px 0 0; max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.donate-body { padding: clamp(44px, 7vh, 76px) clamp(24px, 9vw, 152px) clamp(80px, 12vh, 130px); }
.donate-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }

.donate-panel {
  padding: clamp(24px, 3vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
}
.donate-h2 {
  margin: 0 0 22px;
  font: 700 13px/1 Inter, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #c6cedb;
}

/* Monthly / One-time switch. Same visual language as the amount buttons so it reads as
   part of the same choice, just one row up. */
.mode-toggle { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
.mode {
  padding: 10px 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 13px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.mode:hover { border-color: rgba(255,255,255,.34); }
.mode[aria-pressed="true"] {
  border-color: var(--red-hot);
  background: linear-gradient(180deg, rgba(255,41,69,.16), rgba(255,41,69,.05));
  box-shadow: inset 0 0 0 1px rgba(255,41,69,.35);
  color: var(--paper);
}

.amount-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }

.amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 18px 8px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.amount:hover { border-color: rgba(255,255,255,.34); transform: translateY(-2px); }
.amount strong { font: 800 26px/1 "Barlow Condensed", sans-serif; }

/* The tier name sits under the amount. "Pinnacle of Awesome" is 19 characters in a ~105px
   box, so it is set in the condensed face with tight tracking and allowed to wrap. The
   fixed min-height keeps all four boxes level whether their name takes one line or two,
   which is what stops the grid resizing as the labels change. */
.amount span {
  min-height: 2.5em;
  display: flex; align-items: center; justify-content: center;
  font: 700 10.5px/1.25 "Barlow Condensed", sans-serif;
  letter-spacing: .06em; text-transform: uppercase; text-wrap: balance;
  color: var(--muted);
}
.amount[aria-pressed="true"] {
  border-color: var(--red-hot);
  background: linear-gradient(180deg, rgba(255,41,69,.16), rgba(255,41,69,.05));
  box-shadow: inset 0 0 0 1px rgba(255,41,69,.35);
}
.amount[aria-pressed="true"] span { color: #ffb3bf; }

.custom-row, .discord-row { margin-top: 26px; }
.custom-label {
  display: block;
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c6cedb;
}
.optional { margin-left: 6px; color: var(--muted); font-weight: 600; letter-spacing: .1em; }
.custom-field { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--panel-2); border: 1px solid var(--line); }
.custom-field:focus-within, .discord-row input:focus { border-color: var(--red-hot); outline: none; }
.custom-field > span { color: var(--muted); font-weight: 700; }
.custom-field em { color: var(--muted); font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.custom-field input, .discord-row input {
  width: 100%;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: 600 17px/1 Inter, sans-serif;
}
.discord-row input { padding: 15px 14px; background: var(--panel-2); border: 1px solid var(--line); }
.custom-field input::-webkit-outer-spin-button,
.custom-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-field input[type=number] { -moz-appearance: textfield; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.hint em { color: #c1c9d5; font-style: normal; }

/* An anchor, not a button, because Gumroad's overlay binds to anchors — so the disabled
   look has to be a class and pointer-events, not the [disabled] attribute. */
.donate-continue {
  width: 100%; margin-top: 28px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.donate-continue.is-disabled { opacity: .5; cursor: not-allowed; transform: none; pointer-events: none; }
.donate-error { margin: 14px 0 0; color: #ff8a99; font-size: 13px; line-height: 1.6; }

.donate-aside { background: var(--panel-2); }
.donate-list { margin: 0; padding-left: 18px; color: #c1c9d5; font-size: 14px; line-height: 1.85; }
.donate-list strong { color: var(--paper); }
.supporter-card { margin-top: 26px; padding: 20px; background: rgba(255,41,69,.07); border: 1px solid rgba(255,41,69,.3); }
.supporter-kicker { margin: 0; color: #ffb3bf; font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.supporter-name { margin: 8px 0 10px; font: 800 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.supporter-copy { margin: 0; color: #c1c9d5; font-size: 13.5px; line-height: 1.7; }

/* The nav entry for this page. Scoped to donate.css rather than the shared stylesheet
   because this is the only page that is ever its own current tab. */
#site-nav a[aria-current="page"] { color: var(--red-hot); }

/* --- Connecting Discord --- */
.discord-connect {
  display: inline-flex; align-items: center; gap: 9px;
  background: #5865f2; border-color: #5865f2; color: #fff; text-decoration: none;
}
.discord-connect:hover { background: #4752c4; border-color: #4752c4; }

.connected { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.connected-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ba55d; box-shadow: 0 0 0 3px rgba(59,165,93,.18);
}
.connected-name { color: var(--paper); font-weight: 600; font-size: 14px; }
.link-button {
  padding: 0; border: 0; background: none; color: #c6cedb;
  font: 600 12.5px/1 Inter, sans-serif; cursor: pointer; text-decoration: underline;
}
.link-button:hover { color: var(--red-hot); }

.connect-warn {
  margin: 12px 0 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.6;
  color: #ffd9a0; background: rgba(217,170,86,.09);
  border: 1px solid rgba(217,170,86,.32);
}
.connect-warn a { color: var(--gold); }

.manual-fallback { margin-top: 14px; }
.manual-fallback summary {
  color: #9aa4b6; font-size: 12.5px; cursor: pointer; width: fit-content;
}
.manual-fallback summary:hover { color: #c6cedb; }
.manual-fallback input { margin-top: 10px; }


/* Support off: the page still explains itself rather than showing dead buttons. */
.donate-closed { margin: 0; padding: 22px; background: var(--panel-2); border: 1px solid var(--line); color: #c1c9d5; font-size: 14px; line-height: 1.7; }
.donate-closed a { color: var(--red-hot); }
