/* =============================================================================
   Open Hearts — Donate page
   Palette: #0f2040 · #1e3a6e · #2d5fa8 · #f0f4ff · #0f172a · #64748b · white
   Ease: cubic-bezier(.2, .8, .2, 1)
   ============================================================================= */

/* ── Keyframes ────────────────────────────────────────────────────── */
@keyframes dnOrbA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, 45px) scale(1.08); }
}
@keyframes dnOrbB {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-55px, -35px) scale(0.92); }
}
@keyframes dnWordReveal {
  to { transform: translateY(0); }
}
@keyframes dnDrawLine {
  to { width: 48px; }
}
@keyframes dnMountUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dnRowIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dnPanelIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dnFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dnCopied {
  0%   { background: rgba(13,148,136,0.25); }
  80%  { background: rgba(13,148,136,0.25); }
  100% { background: transparent; }
}

/* ── 1. Hero ribbon ───────────────────────────────────────────────── */
.dn-hero {
  position: relative;
  background: #0f2040;
  padding: 160px 40px 140px;
  overflow: hidden;
}

.dn-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dn-orb--a {
  top: -25%; left: 5%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(45,95,168,0.5), transparent 65%);
  filter: blur(45px);
  animation: dnOrbA 16s ease-in-out infinite alternate;
}
.dn-orb--b {
  bottom: -35%; right: 8%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(13,148,136,0.22), transparent 62%);
  filter: blur(55px);
  animation: dnOrbB 20s ease-in-out infinite alternate;
}

.dn-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

/* Eyebrow */
.dn-hero__ey {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
}
.dn-hero__ey.is-up {
  animation: dnMountUp 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
.dn-hero__ey-line {
  display: inline-block;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.dn-hero__ey.is-up .dn-hero__ey-line {
  animation: dnDrawLine 1s cubic-bezier(.2,.8,.2,1) 0.2s forwards;
}
.dn-hero__ey-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* Headline word-reveal */
.dn-hero__hl {
  font-family: var(--font-serif);
  font-size: clamp(68px, 10.5vw, 160px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.dn-hero__hl .wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-top: 0.12em;
}
.dn-hero__hl .wm > span {
  display: inline-block;
  transform: translateY(110%);
}
.dn-hero__hl.is-up .wm > span {
  animation: dnWordReveal 1s cubic-bezier(.2,.8,.2,1) var(--wd, 0.25s) both;
}

/* Lede */
.dn-hero__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  max-width: 520px;
  color: rgba(255,255,255,0.78);
  opacity: 0;
}
.dn-hero__lede.is-up {
  animation: dnMountUp 0.7s cubic-bezier(.2,.8,.2,1) 0.78s forwards;
}

/* ── 2. Donate body ───────────────────────────────────────────────── */
.dn-body {
  position: relative;
  background: #fff;
  padding: 120px 40px;
  overflow-x: clip;
}

.dn-body__wm {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(200px, 28vw, 440px);
  font-weight: 500;
  line-height: 1;
  color: rgba(15,32,64,0.032);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.dn-body__grid {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Left column ─────────────────────────────────────────────────── */
.dn-ey {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.dn-ey__line {
  display: inline-block;
  width: 0;
  height: 1px;
  flex-shrink: 0;
}
.dn-ey__text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dn-left .dn-ey { opacity: 0; }
.dn-left .dn-ey.is-up {
  animation: dnMountUp 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.dn-left .dn-ey__line { background: #0f2040; }
.dn-left .dn-ey__text { color: #2d5fa8; }
.dn-left .dn-ey.is-up .dn-ey__line {
  animation: dnDrawLine 1s cubic-bezier(.2,.8,.2,1) 0.2s forwards;
}

.dn-left__h2 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0f2040;
  margin-bottom: 30px;
}
.dn-left__h2 .wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.dn-left__h2 .wm > span {
  display: inline-block;
  transform: translateY(105%);
}
.dn-left__h2.is-up .wm > span {
  animation: dnWordReveal 0.9s cubic-bezier(.2,.8,.2,1) var(--wd, 0.3s) both;
}

.dn-left__pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  color: #1e3a6e;
  border-left: 3px solid #1e3a6e;
  padding-left: 20px;
  margin-bottom: 22px;
  opacity: 0;
}
.dn-left__pull.is-up {
  animation: dnMountUp 0.7s cubic-bezier(.2,.8,.2,1) 0.35s forwards;
}

.dn-left__body {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5775;
  margin-bottom: 48px;
  opacity: 0;
}
.dn-left__body.is-up {
  animation: dnMountUp 0.7s cubic-bezier(.2,.8,.2,1) 0.5s forwards;
}

/* ── Ledger ───────────────────────────────────────────────────────── */
.dn-ledger { margin-bottom: 36px; }

.dn-ledger__ey {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 14px;
}

.dn-ledger__row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0 20px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(15,32,64,0.09);
  opacity: 0;
}
.dn-ledger__row:last-child {
  border-bottom: 1px solid rgba(15,32,64,0.09);
}
.dn-ledger__row.is-up {
  animation: dnRowIn 0.55s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 0.1s + 0.15s) both;
}

.dn-ledger__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dn-ledger__num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: #0f2040;
  line-height: 1;
}
.dn-ledger__cur {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #2d5fa8;
  text-transform: uppercase;
}
.dn-ledger__outcome {
  font-size: 14px;
  line-height: 1.45;
  color: #4b5775;
}

/* ── Trust line ───────────────────────────────────────────────────── */
.dn-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1e3a6e;
  opacity: 0;
}
.dn-trust.is-up {
  animation: dnMountUp 0.7s cubic-bezier(.2,.8,.2,1) 0.7s forwards;
}
.dn-trust__sep { color: rgba(30,58,110,0.3); }

/* ── Right panel ──────────────────────────────────────────────────── */
.dn-panel {
  position: relative;
  background: #0f2040;
  border-radius: 16px;
  padding: 44px 40px;
  color: #fff;
  opacity: 0;
}
.dn-panel.is-up {
  animation: dnPanelIn 0.8s cubic-bezier(.2,.8,.2,1) 0.25s forwards;
}

.dn-panel__wm {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-family: var(--font-serif);
  font-size: 180px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  user-select: none;
  pointer-events: none;
}

/* ── Tabs ─────────────────────────────────────────────────────────── */
.dn-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 36px;
}

.dn-tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dn-tab.is-active {
  background: rgba(255,255,255,0.11);
  color: #fff;
}
.dn-tab:hover:not(.is-active) {
  color: rgba(255,255,255,0.75);
}

/* ── Tab views ────────────────────────────────────────────────────── */
.dn-view--hidden { display: none; }

.dn-view__h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.dn-view__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.dn-view.anim-in {
  animation: dnFadeUp 0.35s cubic-bezier(.2,.8,.2,1) both;
}

/* ── QR Card ──────────────────────────────────────────────────────── */
.dn-qr-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.dn-qr-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #1e3a6e;
}
.dn-qr-card__logo {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #fff;
  color: #1e3a6e;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.dn-qr-card__bank-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dn-qr-card__bank-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}
.dn-qr-card__bank-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.dn-qr-card__divider {
  height: 1px;
  background: rgba(15,32,64,0.07);
}

.dn-qr-card__body {
  padding: 20px 20px 22px;
  text-align: center;
}
.dn-qr-card__visa {
  font-size: 13px;
  color: #4b5775;
  margin-bottom: 3px;
}
.dn-qr-card__visa em {
  font-style: normal;
  font-weight: 600;
  color: #1e3a6e;
}
.dn-qr-card__meta {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.dn-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.dn-qr-img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  border-radius: 6px;
}

.dn-qr-placeholder {
  width: 260px;
  height: 260px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dn-qr-placeholder__logo {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: rgba(30,58,110,0.18);
}

.dn-qr-caption {
  font-size: 12px;
  color: #94a3b8;
}

/* ── Download button ──────────────────────────────────────────────── */
.dn-dl-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dn-dl-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.38);
  color: #fff;
}

/* ── Bank Card ────────────────────────────────────────────────────── */
.dn-bank-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
}

.dn-bank-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dn-bank-row:last-child { border-bottom: none; }

.dn-bank-row__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.dn-bank-row__value {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  min-width: 0;
  overflow-wrap: break-word;
}
.dn-bank-row__value--mono {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.dn-copy {
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.dn-copy:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.dn-copy.is-copied {
  background: rgba(13,148,136,0.2);
  border-color: rgba(13,148,136,0.4);
  color: #5eead4;
}

/* ── 3. Footer CTA ────────────────────────────────────────────────── */
.dn-footer {
  background: #f0f4ff;
  padding: 100px 40px;
  text-align: center;
}
.dn-footer__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.55;
  color: #1e3a6e;
  max-width: 680px;
  margin: 0 auto 20px;
}
.dn-footer__sig {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(30,58,110,0.45);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .dn-body__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .dn-hero {
    padding: 120px 28px 100px;
  }
  .dn-body {
    padding: 80px 28px;
  }
  .dn-footer {
    padding: 80px 28px;
  }
  .dn-panel {
    padding: 36px 28px;
  }
}

@media (max-width: 560px) {
  .dn-hero {
    padding: 100px 20px 80px;
  }
  .dn-body {
    padding: 64px 20px;
  }
  .dn-footer {
    padding: 64px 20px;
  }
  .dn-panel {
    padding: 28px 20px;
  }
  .dn-bank-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 4px;
  }
  .dn-bank-row__label {
    grid-column: 1; grid-row: 1;
  }
  .dn-bank-row__value {
    grid-column: 1; grid-row: 2;
  }
  .dn-copy {
    grid-column: 2; grid-row: 1 / 3;
    align-self: center;
  }
  .dn-ledger__row {
    grid-template-columns: 140px 1fr;
  }
}
