:root {
  --bg: #eaf4ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #d5e9ff;
  --accent-strong: #f4555a;
  --border: #dfe7f3;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f3f8ff 0%, #e6f2ff 100%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: none;
  font-size: 15px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.story__image .brand {
  transform: scale(2);
  transform-origin: center;
}

.brand__logo {
  width: 36px;
  height: 36px;
  display: inline-block;
  object-fit: contain;
}

.brand__text {
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  align-items: start;
  justify-items: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  max-width: 750px;
  width: 100%;
}

.story {
  display: grid;
  grid-template-rows: 220px auto;
  gap: 14px;
}

.story__image {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
}

.story__content h1 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #2563eb;
  margin: 0;
  font-weight: 700;
}

.lede {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}

.lede-secondary {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.details__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.details .link {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
}

.details__panel {
  border: 1px solid var(--border);
  background: #f8fbff;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.details__panel[hidden] {
  display: none;
}

.details__panel h3 {
  margin: 0 0 2px;
  font-size: 18px;
  color: var(--text);
}

.details__panel .muted {
  margin: 0 0 4px;
}

.details__panel p {
  margin: 0;
  color: var(--text);
}

.details__panel .signature {
  font-weight: 700;
}

.link.subtle {
  justify-self: flex-start;
  padding: 0;
}

.donation h2 {
  margin: 4px 0 12px;
  font-size: 18px;
}

.donation-stack {
  display: grid;
  gap: 8px;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.donation-option {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}

.donation-option__header {
  display: grid;
  gap: 4px;
  text-align: center;
}

.donation-option__header h3 {
  margin: 0;
  font-size: 16px;
}

.donation-option__header p {
  margin: 0;
  font-size: 12px;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fbff;
}

.accordion__trigger {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text);
}

.accordion__titles {
  display: grid;
  gap: 4px;
  text-align: left;
}

.accordion__title {
  font-weight: 800;
  font-size: 16px;
}

.accordion__subtitle {
  color: var(--muted);
  font-size: 13px;
}

.accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  transition: transform 120ms ease-in-out;
}

.accordion__trigger[aria-expanded='true'] .accordion__icon {
  transform: rotate(180deg);
  background: #e5edff;
  border-color: #c7dbf5;
  color: #1d4ed8;
}

.accordion__panel {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.accordion__panel[hidden] {
  display: none;
}

.check-option {
  background: #f8fbff;
}

.check-option .accordion__trigger {
  background: #f8fbff;
}

.check-option .accordion__panel {
  background: #f8fbff;
}

.qr-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}

.qr-stack {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.qr-link {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-decoration: none;
  color: var(--text);
}

.qr-link .qr {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.qr-link:hover .qr {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.qr-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.qr {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
}

.qr--venmo {
  object-fit: contain;
  padding: 24px 10px 24px 10px;
}

.qr-actions {
  display: grid;
  gap: 8px;
}

.zeffy-card {
  display: grid;
  gap: 12px;
  padding: 0;
}

.zeffy-badge {
  align-self: start;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zeffy-steps {
  margin: 0;
  gap: 6px;
}

.zeffy-warning {
  margin: 0 0 2px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
}

.zeffy-warning-colors {
  color: red;
  /* background: #fef3c7; */
  /* border: 1px solid #fcd34d; */
}

.zeffy-warning__icon {
  font-weight: 800;
}

.zeffy-warning--global {
  margin: 0;
  width: fit-content;
  justify-self: end;
  white-space: nowrap;
  padding-bottom: 16px;
}

.zeffy-warning-spacer {
  height: 0;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2563eb;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  background: #e5edff;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.link-button:hover {
  background: #d7e5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.list {
  padding-left: 18px;
  margin: 12px 0;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.check-card {
  display: grid;
  padding: 0;
}

.check-intro {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.check-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.check-block {
  display: grid;
  gap: 6px;
}

.check-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.check-value {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.check-address {
}

.check-block.check-receipt {
}

.check-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.check-address address {
  font-style: normal;
}

.check-note {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.amount {
  border: 1px solid var(--border);
  background: #f6f9ff;
  color: var(--text);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.amount.active {
  border-color: #2563eb;
  background: #e0ecff;
}

.custom {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f8fbff;
}

.prefix {
  color: var(--muted);
  margin-right: 6px;
  font-weight: 700;
}

.custom input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  outline: none;
}

.selection {
  margin: 6px 0 12px;
  color: var(--text);
  font-weight: 600;
}

.note {
  background: #f6f9ff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
  color: var(--text);
}

.note .muted {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 600;
}

.field input {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font-size: 15px;
}

.field input:focus {
  outline: 2px solid #2563eb;
}

.card-element {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
}

.actions {
  display: grid;
  gap: 6px;
}

.primary {
  background: #f4555a;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(244, 85, 90, 0.35);
}

.primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.feedback {
  min-height: 18px;
  color: var(--muted);
  margin: 0;
}

.feedback.success {
  color: #16a34a;
}

.feedback.error {
  color: #e11d48;
}

.home-floater {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  color: #000000;
  background: #FED74F;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.12), 0 10px 16px rgba(59, 130, 246, 0.18);
  transition: filter 300ms ease-in-out;
}

.home-floater:hover {
  filter: brightness(0.95);
}

@media (min-width: 640px) {
  .home-floater {
    right: 48px;
    bottom: 48px;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .story {
    grid-template-rows: 140px auto;
  }

  .story__image .brand {
    transform: scale(1.4);
  }

  .qr-group {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .donation-grid {
    grid-template-columns: 1fr;
  }

  .zeffy-warning--global {
    justify-self: start;
    white-space: normal;
  }

}
