/* VVA Donations demo site — static, mobile-first, no framework. */
:root {
  --teal: #0e6e6e;
  --teal-dark: #0a4f4f;
  --amber: #f5a623;
  --ink: #1c2430;
  --muted: #5b6675;
  --bg: #f6f5f1;
  --card: #ffffff;
  --line: #e3e1da;
  --good: #1e7d43;
  --demo: #b3541e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}
.wrap { max-width: 30rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
.wrap.wide { max-width: 42rem; }

/* Demo ribbon */
.demo-ribbon {
  background: var(--demo);
  color: #fff;
  text-align: center;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  font-weight: 700;
}

/* Header */
header.site {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .4rem 0 1rem;
}
.mark {
  width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: .5rem;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.mark.c2 { background: #7a4a9e; }
.titles h1 { font-size: 1.05rem; line-height: 1.2; }
.titles p { font-size: .8rem; color: var(--muted); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: 1rem;
  margin-bottom: .9rem;
}
.card h2 { font-size: 1rem; margin-bottom: .35rem; }
.card p.sub { font-size: .85rem; color: var(--muted); }
.photo {
  border-radius: .6rem;
  background: linear-gradient(135deg, #d8ece9, #bcd9d4);
  height: 7.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark);
  font-size: .8rem;
  text-align: center;
  padding: .5rem;
  margin-bottom: .8rem;
}
.photo.c2 { background: linear-gradient(135deg, #e9ddf5, #d3bfe8); color: #4d2d6b; }

/* Amount grid */
.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: .6rem 0;
}
.amounts button {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .85rem .3rem;
  border: 2px solid var(--line);
  border-radius: .6rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.amounts button[aria-pressed="true"] {
  border-color: var(--teal);
  background: #e7f2f1;
  color: var(--teal-dark);
}
.custom label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.custom input {
  font: inherit;
  font-size: 1.15rem;
  width: 100%;
  padding: .7rem .8rem;
  border: 2px solid var(--line);
  border-radius: .6rem;
}
.custom input:focus, .amounts button:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* CTA */
.cta {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: .7rem;
  padding: 1rem;
  cursor: pointer;
  margin-top: .9rem;
}
.cta:disabled { opacity: .55; }
.cta.amber { background: var(--amber); color: #3d2b00; }
.cta.secondary { background: transparent; color: var(--teal-dark); border: 2px solid var(--teal); }
.note { font-size: .78rem; color: var(--muted); margin-top: .7rem; text-align: center; }

/* Pay / trust */
.pay-badge {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: .78rem; color: var(--muted);
  margin-top: .8rem;
}
.lock { width: .9rem; height: .9rem; fill: var(--good); }

/* Checkout */
.total-row { display: flex; justify-content: space-between; font-size: 1.05rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.total-row.strong { font-weight: 800; font-size: 1.2rem; border-bottom: 0; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; }
.methods button {
  font: inherit; font-size: .8rem; font-weight: 700;
  padding: .7rem .2rem; border: 2px solid var(--line); border-radius: .6rem; background: #fff; cursor: pointer;
}
.methods button[aria-pressed="true"] { border-color: var(--teal); background: #e7f2f1; }
.field { margin-bottom: .7rem; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.field input {
  font: inherit; width: 100%; padding: .7rem .8rem;
  border: 2px solid var(--line); border-radius: .6rem; background: #fff;
}
.sim-banner {
  background: #fdf1e7;
  border: 1px solid #f0c9a8;
  color: #7a4212;
  border-radius: .6rem;
  font-size: .8rem;
  padding: .6rem .8rem;
  margin-bottom: .9rem;
}
.spinner {
  width: 2.2rem; height: 2.2rem;
  border: 4px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  margin: 1.2rem auto .6rem;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none; }

/* Thanks */
.tick {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--good); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: .6rem auto 1rem;
}
.tick svg { width: 2rem; height: 2rem; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.receipt { font-size: .9rem; }
.receipt .row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.receipt .row:last-child { border-bottom: 0; }
.receipt .row span:first-child { color: var(--muted); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .9rem; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: .7rem;
  padding: .8rem; text-align: center;
}
.stat b { display: block; font-size: 1.5rem; }
.stat span { font-size: .72rem; color: var(--muted); }
table.plain { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.plain th { text-align: left; color: var(--muted); font-weight: 600; font-size: .75rem; }
table.plain td, table.plain th { padding: .5rem .3rem; border-bottom: 1px solid var(--line); }
.pill {
  display: inline-block; font-size: .7rem; font-weight: 700;
  border-radius: 1rem; padding: .15rem .6rem;
}
.pill.ok { background: #e3f2e8; color: var(--good); }
.pill.review { background: #fdf3d7; color: #8a6d00; }

/* How-it-works diagram */
.diagram { width: 100%; height: auto; margin: .4rem 0 .8rem; }
ol.steps { padding-left: 1.2rem; font-size: .9rem; }
ol.steps li { margin-bottom: .5rem; }

/* Hub */
.hub a.tile {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: .8rem;
  padding: .9rem; margin-bottom: .7rem; text-decoration: none; color: inherit;
}
.hub a.tile b { display: block; }
.hub a.tile span { font-size: .82rem; color: var(--muted); }
.hub .num {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
footer.site { font-size: .75rem; color: var(--muted); text-align: center; padding: 1.2rem 0 .4rem; }
