/* A pastel colour-band layout in the spirit of ronaldmcdonaldhouse.org: cream, lavender and sky bands,
   a chunky geometric display face, a red call-to-action with cream text, blue underlined links, big
   stat numbers beside small flat icons, and a softly arched footer. */
:root {
  --cream: #fffde9;
  --lavender: #d0c9ff;
  --lavender-2: #e6e2ff;
  --sky: #8ee7f8;
  --sky-2: #c9f3fa;
  --white: #ffffff;
  --red: #db0007;
  --red-dark: #ac1400;
  --blue: #4872ae;
  --blue-dark: #2e548a;
  --purple: #64008f;
  --yellow: #ffae00;
  --green: #228b49;
  --ink: #232730;
  --body: #404040;
  --muted: #6b6f78;
  --line: rgba(35, 39, 48, .12);
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --shadow: 0 2px 4px rgba(35, 39, 48, .04), 0 14px 32px -20px rgba(35, 39, 48, .25);
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font: 17px/1.55 "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-lavender { background: var(--lavender); }
.band-cream { background: var(--cream); }
.band-sky { background: var(--sky); }
.band-white { background: var(--white); }
.section-lede { max-width: 62ch; font-size: 18px; margin-bottom: 28px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-logo { width: 36px; height: 36px; flex: none; }
.blob-logo { width: 56px; height: 56px; margin-bottom: 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-family: "JetBrains Mono", monospace; font-weight: 500; background: var(--red); color: #fffde9; padding: 4px 10px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.links a:not(.btn) { text-decoration: none; color: var(--ink); }
.links a:not(.btn):hover { color: var(--blue); }
@media (max-width: 760px) { .links a:not(.btn) { display: none; } .brand-name { display: none; } }

/* buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; border: 2px solid transparent; background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fffde9; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.arrow { font-weight: 800; }
.textlink { display: inline-block; color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 1px; }
.textlink:hover { color: var(--blue-dark); border-color: var(--blue-dark); }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--cream); padding: 8px 14px; border-radius: 999px; margin-bottom: 26px; line-height: 1.35; }
h1 { font-size: clamp(42px, 6.6vw, 78px); font-weight: 900; max-width: 12ch; margin-bottom: 22px; }
.lede { font-size: clamp(18px, 1.8vw, 22px); max-width: 52ch; color: var(--ink); font-weight: 500; line-height: 1.45; }
.lede strong { font-weight: 800; }
.sym { font-family: "JetBrains Mono", monospace; font-size: .85em; font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }

.hero-blob {
  aspect-ratio: 1; width: min(100%, 440px); margin-left: auto;
  border-radius: 50% 50% 50% 50% / 48% 48% 52% 52%;
  background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 12%; box-shadow: var(--shadow); gap: 6px;
}
@media (max-width: 860px) { .hero-blob { margin: 8px auto 0; width: min(100%, 360px); } }
.blob-label { font-size: 15px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.blob-value { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.blob-sub { font-size: 16px; font-weight: 600; color: var(--muted); min-height: 1.3em; }
.blob-to { font-size: 15px; font-weight: 600; margin-top: 6px; max-width: 24ch; line-height: 1.3; }

/* mission + stats */
.mission { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; text-align: center; max-width: 24ch; margin: 0 auto 56px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin: 0 auto; } }
.stat { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.icon { width: 56px; height: 56px; flex: none; color: var(--red); }
.stat-value { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 6px; overflow-wrap: anywhere; }
.stat-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.stat-label .muted { font-weight: 500; }
.status { margin: 44px auto 0; font-size: 15px; font-weight: 500; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.status.is-demo, .status.is-error { color: var(--red-dark); }
.status.is-demo .dot, .status.is-error .dot { background: var(--yellow); }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.steps p { margin: 0; font-size: 16px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fffde9; font-weight: 800; margin-bottom: 18px; font-size: 18px; }

/* cards & addresses */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .addresses { grid-template-columns: 1fr; } }
.addr { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; border: 1px solid var(--line); }
.card-label { font-weight: 800; font-size: 17px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.card-label small { color: var(--muted); font-weight: 500; font-size: 14px; }
.addr code { font-size: 14px; background: var(--surface-2); padding: 12px 14px; border-radius: 12px; overflow-wrap: anywhere; line-height: 1.45; color: var(--ink); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.proof { font-size: 15px; font-weight: 600; margin: 4px 0 0; color: var(--muted); }
.proof.is-ok { color: var(--green); }
.proof.is-pending { color: var(--red-dark); }
.proof a { color: inherit; }

/* ledger */
.share { padding: 22px 24px; margin-bottom: 20px; }
.share-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.share-row b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 6px; }
.bar { height: 14px; background: var(--lavender-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width .6s ease; }
.share-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.ledger th, .ledger td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.ledger thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger td.when { white-space: nowrap; color: var(--muted); font-size: 14px; }
.ledger td.when b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; }
.ledger td.amt small, .ledger td.when small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.ledger td.state { white-space: nowrap; }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill-settled { background: #dff3e4; color: var(--green); }
.pill-pending { background: var(--yellow); color: var(--ink); }
.charity-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.charity-card h3 { margin-bottom: 2px; }
.charity-card code { font-size: 13.5px; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; line-height: 1.4; color: var(--ink); }
.charity-meta { color: var(--muted); font-size: 15px; font-weight: 500; }
.charity-status { font-size: 14px; font-weight: 600; }
.charity-status.is-ok { color: var(--green); }
.charity-status.is-pending { color: var(--red-dark); }
.ledger td.link a { font-family: "JetBrains Mono", monospace; font-size: 13px; text-decoration: none; color: var(--blue); font-weight: 500; border-bottom: 1px solid var(--blue); }
.ledger tr.empty td { text-align: center; color: var(--muted); padding: 40px; }
.kind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.kind-delivered { background: var(--red); color: #fffde9; }
.kind-fees { background: var(--lavender-2); color: var(--purple); }
.kind-inflow, .kind-other { background: var(--surface-2); color: var(--muted); }
.kind-outflow { background: var(--yellow); color: var(--ink); }
.amt-delivered { color: var(--red); font-weight: 800; }
.amt-fees { color: var(--purple); font-weight: 600; }
.amt-outflow { color: var(--ink); font-weight: 700; }
.more { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 760px) {
  /* each row becomes a small card: date and amount on the first line, label and dollars on the second */
  table.ledger { min-width: 0; display: block; }
  .ledger thead { display: none; }
  .ledger tbody { display: block; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "when amt" "what status" "link link"; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: center; }
  .ledger tr:first-child { border-top: 0; }
  .ledger td { display: block; padding: 0; border: 0; min-width: 0; max-width: none; }
  .ledger td.when { grid-area: when; }
  .ledger td.what { grid-area: what; }
  .ledger td.amt { grid-area: amt; font-size: 17px; }
  .ledger td.state { grid-area: status; justify-self: end; }
  .ledger td.link { grid-area: link; }
  .ledger tr.empty { display: block; }
  .ledger tr.empty td { padding: 32px 16px; }
}

/* verify */
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .verify-grid { grid-template-columns: 1fr; } }
.verify-grid .card { padding: 26px; }
.verify-single { grid-template-columns: minmax(0, 640px); }
.verify-grid p { font-size: 16px; }
.code { background: var(--surface-2); padding: 16px 18px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }

/* faq */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; font-size: 19px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red); font-weight: 900; flex: none; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; max-width: 70ch; }

/* footer: a soft arch, the way the charity's own site ends */
.foot {
  margin-top: 0; padding: clamp(56px, 7vw, 88px) 0 56px; background: var(--lavender); color: var(--ink);
  border-radius: 200vh 200vh 0 0 / 5vh 3vh 0 0; font-size: 14px; font-weight: 500;
}
.foot p { max-width: 90ch; }
.foot-brand { margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } .bar-fill { transition: none; } }
