.donate-page {
  padding: clamp(1.5rem, 4vw, 3.25rem) 1.25rem 7rem;
  background: #f4f8fd;
  color: #17233b;
}

.donate-shell {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.donate-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #dce9f6;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #f4faff 100%);
  box-shadow: 0 15px 40px rgba(27, 67, 115, 0.06);
  text-align: center;
}

.donate-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('../img/herobanner/kitotool-brand-donate-artwork-v3.webp') center 54% / cover no-repeat;
  content: '';
  opacity: 0.42;
  pointer-events: none;
}

.donate-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 55% 100% at 50% 50%, rgba(250, 253, 255, 0.91) 0%, rgba(250, 253, 255, 0.82) 55%, rgba(250, 253, 255, 0.1) 100%);
  content: '';
  pointer-events: none;
}

.donate-eyebrow,
.donate-method__eyebrow {
  display: block;
  color: #087eae;
  font-size: 0.78rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.04em;
}

.donate-hero h1 {
  margin: 0.4rem 0 0.7rem;
  color: #15243d;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-bold);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.donate-hero p {
  max-width: 70ch;
  margin: 0 auto;
  color: #465b76;
  font-size: 1rem;
  line-height: 1.7;
}

.donate-hero__note {
  display: inline-block;
  margin-top: 1rem;
  color: #276783;
  font-size: 0.85rem;
  font-weight: 650;
}

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.9fr);
  align-items: start;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.donate-story,
.donate-method {
  min-width: 0;
  border: 1px solid #dce9f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(27, 67, 115, 0.05);
}

.donate-story {
  padding: 0 clamp(1.35rem, 3vw, 2.5rem);
}

.donate-story section {
  padding: 1.5rem 0;
}

.donate-story section + section {
  border-top: 1px solid #e7eef6;
}

.donate-story h2 {
  margin: 0 0 0.6rem;
  color: #0f789f;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 750;
  line-height: 1.35;
}

.donate-story p {
  margin: 0;
  color: #40536f;
  font-size: 0.96rem;
  line-height: 1.75;
}

.donate-story p + p { margin-top: 0.8rem; }

.donate-story p a,
.donate-story__link {
  color: #086bba;
  font-weight: 650;
  text-underline-offset: 3px;
}

.donate-story__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  text-decoration: none;
}

.donate-method {
  padding: clamp(1.25rem, 3vw, 1.8rem);
}

.donate-method__heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.donate-method__icon {
  display: grid;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 12px;
  background: #fff4dc;
  font-size: 1.35rem;
}

.donate-method__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0;
}

.donate-method h2 {
  margin: 0.15rem 0 0;
  color: #15243d;
  font-size: 1.25rem;
  line-height: 1.3;
}

.donate-method__intro {
  margin: 1rem 0;
  color: #51647e;
  font-size: 0.88rem;
  line-height: 1.65;
}

.donate-method__qr {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid #e3ebf5;
  border-radius: 16px;
  background: #f9fbfe;
}

.donate-method__qr img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.donate-method__qr span,
.donate-method__footnote {
  color: #63758d;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.donate-method__details {
  margin: 1rem 0 0;
}

.donate-method__details > div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e9eef5;
  font-size: 0.85rem;
  line-height: 1.4;
}

.donate-method__details dt {
  flex: 0 0 auto;
  color: #60738d;
}

.donate-method__details dd {
  margin: 0;
  color: #1e3451;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.donate-method__account {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.donate-method__account span { user-select: all; }

.donate-method__copy {
  display: inline-grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 1px solid #cfe2f2;
  border-radius: 8px;
  background: #f2f9fd;
  color: #087eae;
  cursor: pointer;
}

.donate-method__copy:hover { background: #e4f3fa; }
.donate-method__copy:focus-visible { outline: 2px solid #087eae; outline-offset: 2px; }
.donate-method__copy svg { width: 1rem; height: 1rem; }

.donate-method__copy-status {
  margin: 0.45rem 0 0;
  color: #0f7960;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: right;
}

.donate-method__copy-status[hidden] { display: none; }
.donate-method__copy-status[data-state="error"] { color: #ad3b39; }

.donate-method__paypal,
.donate-method__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: #087eae;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.donate-method__paypal:hover,
.donate-method__contact:hover {
  background: #07698f;
  color: #fff;
}

.donate-method__footnote {
  margin: 1rem 0 0;
}

[data-theme="dark"] .donate-page {
  background: #0c1627;
  color: #e5efff;
}

[data-theme="dark"] .donate-hero,
[data-theme="dark"] .donate-story,
[data-theme="dark"] .donate-method {
  border-color: #2a405c;
  background: #14243b;
}

[data-theme="dark"] .donate-hero::before {
  opacity: 0.22;
}

[data-theme="dark"] .donate-hero::after {
  background: radial-gradient(ellipse 55% 100% at 50% 50%, rgba(20, 36, 59, 0.93) 0%, rgba(20, 36, 59, 0.84) 55%, rgba(20, 36, 59, 0.18) 100%);
}

[data-theme="dark"] .donate-hero h1,
[data-theme="dark"] .donate-method h2,
[data-theme="dark"] .donate-method__details dd { color: #f0f6ff; }

[data-theme="dark"] .donate-hero p,
[data-theme="dark"] .donate-story p,
[data-theme="dark"] .donate-method__intro { color: #bdcbe0; }

[data-theme="dark"] .donate-hero .donate-eyebrow,
[data-theme="dark"] .donate-hero__note { color: #83d2f2; }

[data-theme="dark"] .donate-story p a { color: #7dd3fc; }
[data-theme="dark"] .donate-method__copy { border-color: #35536d; background: #1c3751; color: #9bd7ed; }

[data-theme="dark"] .donate-method__qr { border-color: #2a405c; background: #0e1d31; }
[data-theme="dark"] .donate-story section + section,
[data-theme="dark"] .donate-method__details > div { border-color: #2a405c; }

.donate-story .donation-counts { flex-wrap: wrap; }
.donate-story .donation-counts__grid { flex: 1 1 100%; }

@media (max-width: 800px) {
  .donate-layout { grid-template-columns: 1fr; }
  .donate-method { order: -1; }
}

@media (max-width: 720px) {
  .donate-hero { padding-bottom: 9rem; }
  .donate-hero::before {
    top: auto;
    height: 8.5rem;
    background-position: center bottom;
    mask-image: linear-gradient(to bottom, transparent, #000 25%);
    opacity: 0.5;
  }
  .donate-hero::after { display: none; }
  [data-theme="dark"] .donate-hero::before { opacity: 0.22; }
}

@media (max-width: 480px) {
  .donate-page { padding-inline: 0.85rem; }
  .donate-hero { padding: 1.5rem 1.1rem 9rem; }
  .donate-story section { padding-block: 1.2rem; }
  .donate-method__details > div { flex-wrap: wrap; }
  .donate-method__details dd { margin-left: auto; }
}
