/* donate section: Fig. 02, the donation page and the example checkout.
   Values from claude/canvas/Main.dc.html (section "FIG. 02 · THE DONATION PAGE"). */

.donate {
  background-color: var(--paper);
  /* The badge hangs 34px past the card; clip it at the viewport edge instead of widening the page. */
  overflow-x: clip;
}

.donate-inner {
  padding-block: clamp(80px, 10vw, 128px) var(--section-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 72px 80px;
}

/* Left column */
.donate-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.donate-label {
  color: var(--muted);
}

.donate-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
}

.donate-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.donate-icon {
  flex: none;
  width: 26px;
  height: 19px;
  margin-top: 4px;
}

.donate-icon-text {
  font-size: 9px;
  font-weight: 800;
}

.donate-strong {
  color: var(--ink);
}

.donate-fee {
  flex: 1;
  min-width: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The slivers are fixed widths on purpose, not to scale, so they stay visible. */
.donate-bar {
  display: flex;
  width: 70%;
  height: 30px;
  margin-top: 2px;
  border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--white);
}

.donate-bar-cause {
  flex: 1;
  background: var(--teal);
}

.donate-bar-stripe,
.donate-bar-ours {
  flex: none;
  border-left: var(--border);
}

.donate-bar-stripe {
  width: 16px;
  background: var(--wave-3);
}

.donate-bar-ours {
  width: 7px;
  background: var(--coral);
}

.donate-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}

.donate-key-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.donate-swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
}

.donate-swatch--cause {
  background: var(--teal);
}

.donate-swatch--stripe {
  background: var(--wave-3);
}

.donate-swatch--ours {
  background: var(--coral);
}

.donate-caption {
  font-size: 16px;
  line-height: 1.45;
}

/* Right column: hand note, badge, checkout card */
.donate-checkout {
  position: relative;
  flex: 1 1 400px;
  min-width: 0;
  max-width: 480px;
  margin: 0 auto;
}

.donate-hint {
  position: absolute;
  z-index: 3;
  top: -58px;
  left: -72px;
  margin: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--coral-deep);
  white-space: nowrap;
  transform: rotate(-3deg);
}

.donate-hint-arrow {
  position: absolute;
  z-index: 3;
  top: -24px;
  left: -76px;
  width: 100px;
  height: 190px;
  overflow: visible;
}

.donate-badge {
  position: absolute;
  z-index: 2;
  top: -58px;
  right: -34px;
  width: 132px;
  height: 132px;
  transform: rotate(12deg);
}

.donate-badge-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.donate-card {
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.donate-card-head,
.donate-amount {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.donate-card-label {
  font-size: 12px;
  color: var(--muted);
}

.donate-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.donate-field-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* The input fills the whole box so its own focus ring outlines the box; the "$" sits on top of its padding. */
.donate-amount-box {
  position: relative;
}

.donate-amount-sign {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 800;
  pointer-events: none;
}

.donate-amount-input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 14px 0 34px;
  border: var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.donate-methods {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.donate-legend {
  padding: 0;
  margin-bottom: 12px;
}

/* Selected vs unselected is CSS only. Border plus padding stays 20px either way, so switching never shifts the box. */
.donate-option {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 2px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: var(--white);
}

.donate-option:has(:checked) {
  padding: 17.5px;
  border: 2.5px solid var(--ink);
  background: var(--sunflower-pale);
}

.donate-option--direct {
  gap: 12px;
}

.donate-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.donate-radio {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.donate-rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
}

.donate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.donate-row--total {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.donate-figure {
  margin: 0;
  font-family: var(--font-mono);
}

.donate-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.donate-btn {
  width: 100%;
}

.donate-or {
  display: flex;
  align-items: center;
  gap: 14px;
}

.donate-or-line {
  flex: 1;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent);
}

.donate-or-label {
  color: var(--muted);
}

.donate-direct-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.donate-footnote {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
