/* ── KindGod · scribbled-on-paper aesthetic ─────────────────────
   Off-white paper backdrop, ink handwriting, #ccff00 highlighter. */
:root {
  --paper: #f6f1e4;
  --paper-deep: #ece5d2;
  --card: #fffdf4;
  --ink: #26231c;
  --ink-soft: #6f6a5a;
  --ink-faint: rgba(38, 35, 28, 0.18);
  --lime: #ccff00;
  --lime-dim: rgba(204, 255, 0, 0.35);
  --hand: "Caveat", cursive;
  --body: "Patrick Hand", "Comic Sans MS", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--lime); text-underline-offset: 3px; }
a:hover { background: var(--lime-dim); }
.mono { font-family: var(--mono); }

/* paper grain overlay */
.sky-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255,255,252,0.7), transparent 70%),
    var(--paper);
}
.sky-glow::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.40 0 0 0 0 0.34 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* hand-drawn box helper */
.tweet-card, .flow-step, .table-scroll, .charity-pill, .total-tile, .rescuer-photo {
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

/* ── halo logo ── */
.halo-logo { position: relative; display: inline-block; }
.halo-logo img {
  display: block; border-radius: 50%;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink-faint);
  background: var(--card);
}
.halo-logo .halo {
  position: absolute; left: 50%; transform: translateX(-50%) rotate(-8deg);
  overflow: visible; pointer-events: none;
}
.halo-logo .halo ellipse {
  fill: none; stroke: var(--lime); stroke-width: 6;
  filter: drop-shadow(1.5px 2px 0 var(--ink));
}
.halo-logo--sm img { width: 42px; height: 42px; }
.halo-logo--sm .halo { width: 34px; height: 14px; top: -9px; }
.halo-logo--xl img { width: 172px; height: 172px; border-width: 3.5px; box-shadow: 5px 6px 0 var(--ink-faint); }
.halo-logo--xl .halo { width: 124px; height: 50px; top: -36px; animation: halo-float 4s ease-in-out infinite; }
@keyframes halo-float {
  0%, 100% { transform: translateX(-50%) rotate(-8deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-8deg) translateY(-6px); }
}

/* ── nav ── */
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px; position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 228, 0.92); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand:hover { background: none; }
.brand-name {
  font-family: var(--hand); font-size: 1.9rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.01em; line-height: 1;
}
.brand-name em { font-style: normal; background: linear-gradient(to top, var(--lime) 40%, transparent 40%); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a {
  color: var(--ink-soft); font-size: 0.98rem; text-decoration: none;
  font-family: var(--body);
}
.nav-links a:hover { color: var(--ink); background: var(--lime-dim); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.charity-pill {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 5px 16px 7px; line-height: 1.2;
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink-faint);
  text-decoration: none;
}
.charity-pill:hover { background: var(--card); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink-faint); }
.charity-pill-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.charity-pill-amount {
  font-family: var(--hand); font-size: 1.35rem; font-weight: 700; color: var(--ink);
  background: linear-gradient(to top, var(--lime) 35%, transparent 35%);
}
.charity-pill-usd { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.1; }
.charity-pill-usd:empty { display: none; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; cursor: pointer;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  font-family: var(--hand); font-size: 1.35rem; font-weight: 700;
  text-decoration: none; line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-gold {
  background: var(--lime); color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-gold:hover { background: var(--lime); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost {
  background: var(--card); color: var(--ink);
  border: 2px dashed var(--ink-soft);
}
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-ghost .mono { font-size: 0.85rem; font-family: var(--mono); }
.btn-nav { padding: 6px 16px; font-size: 1.15rem; }
.icon-copy { width: 15px; height: 15px; }

/* X / Twitter link */
.x-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 38px; height: 38px;
  background: var(--card); border: 2px solid var(--ink);
  border-radius: 50% 45% 55% 48%;
  box-shadow: 2.5px 2.5px 0 var(--ink-faint);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.x-link svg { width: 17px; height: 17px; fill: var(--ink); }
.x-link:hover { background: var(--lime); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink-faint); }
.x-link--footer {
  width: auto; height: auto; padding: 6px 18px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  font-family: var(--hand); font-size: 1.2rem; font-weight: 700; color: var(--ink);
}

/* ── hero ── */
.hero { max-width: 800px; margin: 0 auto; padding: 76px 24px 40px; text-align: center; }
.hero > .halo-logo { display: block; width: fit-content; margin: 0 auto; }
.hero-title {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(4.2rem, 11vw, 7rem);
  margin-top: 30px; line-height: 1; color: var(--ink);
  position: relative; display: inline-block;
}
.hero-title::after {
  content: ""; position: absolute; left: 4%; right: 2%; bottom: 8px;
  height: 0.28em; background: var(--lime); z-index: -1;
  transform: skew(-12deg) rotate(-1deg);
}
.hero-sub {
  font-family: var(--hand); font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink-soft); margin-top: 4px; font-weight: 500;
}
.hero-blurb { color: var(--ink-soft); max-width: 580px; margin: 20px auto 0; }
.hero-blurb strong { color: var(--ink); background: linear-gradient(to top, var(--lime) 35%, transparent 35%); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; align-items: center; }

/* ── sections ── */
.section-kicker {
  text-align: center; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink-soft);
  margin-bottom: 26px;
}
.section-title {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1.1; color: var(--ink);
}
.section-title em { font-style: normal; background: linear-gradient(to top, var(--lime) 38%, transparent 38%); }
.section-sub { color: var(--ink-soft); margin-top: 8px; max-width: 620px; }

/* ── tweets banner ── */
.tweets { max-width: 620px; margin: 0 auto; padding: 60px 24px 20px; }
.tweet-card {
  display: block; background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink-faint);
  padding: 20px 22px; color: var(--ink); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tweet-card:hover { background: var(--card); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-faint); }
.tweet-card--reply { margin-left: 34px; transform: rotate(0.4deg); }
.reply-thread {
  width: 2px; height: 34px; margin-left: 44px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 5px, transparent 5px 9px);
}
.tweet-head { display: flex; align-items: center; gap: 12px; }
.tweet-av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); }
.tweet-who { display: flex; flex-direction: column; line-height: 1.25; }
.tweet-name { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 4px; }
.badge { width: 16px; height: 16px; fill: #1d9bf0; }
.tweet-handle { color: var(--ink-soft); font-size: 0.88rem; }
.tweet-x { width: 20px; height: 20px; fill: var(--ink); margin-left: auto; align-self: flex-start; }
.tweet-text { margin-top: 12px; font-size: 1.05rem; white-space: pre-line; }
.mention { color: #1d6fb8; }
.tweet-media { margin-top: 14px; border-radius: 12px; overflow: hidden; border: 2px solid var(--ink); }
.tweet-media--two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.tweet-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.tweet-foot {
  display: flex; justify-content: space-between; margin-top: 14px;
  color: var(--ink-soft); font-size: 0.85rem;
}

/* ── flow ── */
.flow { max-width: 1060px; margin: 0 auto; padding: 90px 24px 30px; text-align: center; }
.flow .section-sub { margin-left: auto; margin-right: auto; }
.flow-steps {
  display: flex; align-items: stretch; justify-content: center; gap: 22px;
  margin-top: 44px; flex-wrap: wrap;
}
.flow-step {
  flex: 1 1 260px; max-width: 320px; text-align: left;
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink-faint);
  padding: 26px;
}
.flow-step:nth-child(3) { transform: rotate(0.5deg); }
.flow-step--gold { background: linear-gradient(180deg, rgba(204,255,0,0.25), var(--card) 70%); transform: rotate(-0.5deg); }
.flow-num {
  width: 38px; height: 38px; border-radius: 50% 45% 55% 48%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); border: 2px solid var(--ink); color: var(--ink);
  font-family: var(--hand); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 14px;
}
.flow-step h3 { font-family: var(--hand); font-size: 1.7rem; font-weight: 700; margin-bottom: 6px; line-height: 1.1; }
.flow-step p { color: var(--ink-soft); font-size: 0.98rem; }
.flow-step p em { font-style: normal; background: linear-gradient(to top, var(--lime) 35%, transparent 35%); color: var(--ink); }
.flow-arrow { align-self: center; color: var(--ink); font-size: 2rem; font-family: var(--hand); }
.wallet-tag { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.wallet-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.wallet-addr {
  background: var(--paper); border: 2px dashed var(--ink-soft);
  color: var(--ink); border-radius: 8px; padding: 7px 10px;
  font-size: 0.88rem; cursor: pointer; text-align: left; font-family: var(--mono);
}
.wallet-addr:hover { border-color: var(--ink); background: var(--lime-dim); }

/* ── claims table ── */
.claims { max-width: 1060px; margin: 0 auto; padding: 90px 24px 30px; }
.claims-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px;
}
.total-tile {
  display: flex; flex-direction: column; text-align: right;
  padding: 12px 24px 14px;
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink-faint); transform: rotate(-0.6deg);
}
.total-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.total-value {
  font-family: var(--hand); font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1.1;
  background: linear-gradient(to top, var(--lime) 30%, transparent 30%);
}
.total-alt { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }

.table-scroll { overflow-x: auto; border: 2px solid var(--ink); background: var(--card); box-shadow: 5px 5px 0 var(--ink-faint); }
.claims-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 880px; }
.claims-table th {
  text-align: left; padding: 13px 16px; color: var(--ink);
  font-family: var(--hand); font-size: 1.15rem; font-weight: 700; line-height: 1.1;
  border-bottom: 2px solid var(--ink); white-space: nowrap;
}
.claims-table td { padding: 12px 16px; border-bottom: 1.5px dashed var(--ink-faint); white-space: nowrap; }
.claims-table tbody tr:last-child td { border-bottom: none; }
.claims-table tbody tr:hover { background: rgba(204,255,0,0.12); }
.claims-table .num, .claims-table td.num { text-align: right; font-family: var(--mono); font-size: 0.86rem; }
.claims-table td.num.gold { background: linear-gradient(to top, var(--lime-dim) 30%, transparent 30%); font-weight: 600; }
.tx-link { font-family: var(--mono); font-size: 0.8rem; display: inline-block; }
.status-chip {
  display: inline-block; padding: 2px 12px 3px; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  font-family: var(--hand); font-size: 1.05rem; font-weight: 700; line-height: 1.2;
  background: var(--lime); color: var(--ink); border: 2px solid var(--ink);
}
.status-chip--pending { background: transparent; border-style: dashed; color: var(--ink-soft); }
.claims-note { margin-top: 14px; color: var(--ink-soft); font-size: 0.92rem; }

/* ── rescuer ── */
.rescuer { max-width: 1060px; margin: 0 auto; padding: 90px 24px 60px; }
.rescuer-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.rescuer-text p { color: var(--ink-soft); margin-top: 14px; }
.rescuer-strong { color: var(--ink) !important; }
.rescuer-text .btn { margin-top: 26px; }
.rescuer-photo {
  position: relative; overflow: hidden;
  border: 2.5px solid var(--ink); background: var(--card);
  padding: 12px 12px 0; box-shadow: 6px 6px 0 var(--ink-faint);
  transform: rotate(2deg);
}
.rescuer-photo img { width: 100%; display: block; border: 2px solid var(--ink); border-radius: 6px; }
.rescuer-caption {
  display: block; text-align: center; padding: 8px 4px 10px;
  font-family: var(--hand); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}

/* ── footer ── */
.footer {
  border-top: 2px solid var(--ink);
  padding: 44px 24px 52px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--paper-deep);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-line { color: var(--ink-soft); font-size: 0.92rem; word-break: break-all; }
.footer-line .mono { color: var(--ink); background: var(--lime-dim); padding: 1px 6px; border-radius: 6px; }
.footer-fine { color: var(--ink-soft); font-size: 0.85rem; max-width: 520px; }

/* ── toast ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--lime);
  font-family: var(--hand); font-weight: 700; font-size: 1.2rem;
  padding: 8px 24px; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; z-index: 100;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── responsive ── */
@media (max-width: 900px) {
  .nav { padding: 12px 18px; gap: 14px; }
  .nav-links { display: none; }
  .flow-arrow { display: none; }
  .rescuer-grid { grid-template-columns: 1fr; gap: 40px; }
  .rescuer-media { order: -1; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .charity-pill-amount { font-size: 1.15rem; }
  .btn-nav { display: none; }
  .tweet-card--reply { margin-left: 14px; }
  .reply-thread { margin-left: 30px; }
  .hero { padding-top: 52px; }
}
