/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --cream:      #FBF7F0;
  --cream-2:    #F5EEE3;
  --paper:      #FFFFFF;
  --ink:        #1C1915;
  --ink-soft:   #4A4238;
  --muted:      #7A6F60;
  --line:       #E4DACB;
  --line-soft:  #EFE7DA;

  --accent:     #B4532A;
  --accent-2:   #96431F;
  --accent-tint:#FBEDE4;
  --gold:       #C08A2E;
  --green:      #2F7D5B;
  --green-tint: #E8F3ED;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(28,25,21,.05);
  --shadow:    0 8px 28px -12px rgba(28,25,21,.18);
  --shadow-lg: 0 24px 60px -24px rgba(28,25,21,.28);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ==========================================================================
   Demo notice
   ========================================================================== */
.demo-banner {
  display: none;
  background: #FDF6E3;
  border-bottom: 1px solid #EBD9A8;
  color: #7A5B12;
  font-size: 14px;
  text-align: center;
  padding: 10px 22px;
  font-weight: 500;
}
.demo-banner.on { display: block; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: block;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .06s, box-shadow .18s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 76px 0 8px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  border: 1px solid #F0D6C5;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); max-width: 16ch; margin: 0 auto 20px; }
.hero .lede { font-size: clamp(1.05rem, 2.1vw, 1.22rem); color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Social proof line under the hero — light, not shouty. */
.social-proof {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--green);
  font-weight: 600;
  min-height: 1px;
}
.social-proof:empty { display: none; }
.social-proof::before { content: "●"; font-size: 9px; margin-right: 7px; vertical-align: middle; }

/* ==========================================================================
   Frequency toggle (monthly vs one-time)
   ========================================================================== */
.freq-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 14px;
}
.freq {
  position: relative;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 13px 12px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.freq:hover { color: var(--ink); }
.freq.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 10px -4px rgba(28,25,21,.28);
}
.freq .freq-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}
.freq:not(.active) .freq-tag { color: var(--muted); }

.freq-note {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 26px;
  line-height: 1.5;
}
.freq-note b { color: var(--ink); font-weight: 600; }

/* Impact statement under the amount grid */
.impact-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-tint);
  border: 1px solid #F0D6C5;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-top: 14px;
  font-size: 14.5px;
  color: #7A3A1C;
  line-height: 1.5;
}
.impact-dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

.cancel-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 18px;
}

/* ==========================================================================
   Progress
   ========================================================================== */
.progress-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 30px;
  box-shadow: var(--shadow); margin: 44px auto 0;
  max-width: 760px; text-align: left;
}
.progress-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.progress-raised { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 600; line-height: 1; }
.progress-raised .of { font-size: .52em; color: var(--muted); font-weight: 400; }
.progress-label { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.progress-pct { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.bar { height: 12px; background: var(--cream-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line-soft); }
.bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 999px; transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.progress-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--muted); }
.progress-meta b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 76px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 54ch; margin: 0 auto; font-size: 1.03rem; }

/* ==========================================================================
   Donation form
   ========================================================================== */
.donate-shell { max-width: 720px; margin: 0 auto; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .card { padding: 24px 20px; border-radius: var(--radius); } }

.field-label {
  display: block; font-size: 12.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 24px 0 10px;
}
.field-label:first-child { margin-top: 0; }
.field-label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: #A99C8A; font-size: 12.5px; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tier {
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 15px 8px 13px;
  text-align: center; cursor: pointer; font-family: var(--sans);
  transition: border-color .16s, background .16s, transform .06s;
}
.tier:hover { border-color: var(--accent); transform: translateY(-1px); }
.tier .amt { display: block; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.tier .hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tier.active { background: var(--accent); border-color: var(--accent); }
.tier.active .amt { color: #fff; }
.tier.active .hint { color: rgba(255,255,255,.82); }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; background: var(--cream); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink);
  padding: 13px 15px; font-family: var(--sans); font-size: 16px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: #A99C8A; }
input:focus, textarea:focus, select:focus {
  outline: none; background: var(--paper); border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(180,83,42,.13);
}
textarea { resize: vertical; min-height: 92px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6F60' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.amount-input-wrap { position: relative; }
.amount-input-wrap .prefix { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.amount-input-wrap input { padding-left: 32px; }

.check {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 15px 16px;
  margin-top: 24px; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.check:hover { border-color: #D3C4AF; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.check .t { font-size: 15px; font-weight: 600; }
.check .d { font-size: 13.5px; color: var(--muted); margin-top: 1px; }

.form-msg { display: none; margin-top: 18px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14.5px; }
.form-msg.show { display: block; }
.form-msg.error { background: #FDECEC; border: 1px solid #F3C6C6; color: #96272C; }

.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.secure-note svg { flex: none; }

/* ==========================================================================
   Impact tiers
   ========================================================================== */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .impact-grid { grid-template-columns: 1fr; } }
.impact {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.impact:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.impact .k { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--accent); }
.impact .k .per { font-size: .55em; color: var(--muted); font-weight: 400; }
.impact h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.impact p { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 760px) { .trust-row { grid-template-columns: 1fr 1fr; } }
.trust-cell { background: var(--paper); padding: 24px 20px; text-align: center; }
.trust-cell .n { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.trust-cell .l { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }

/* ==========================================================================
   Wall
   ========================================================================== */
.wall-list { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.wall-item {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.wall-item .head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.wall-item .who { font-weight: 700; font-size: 15px; }
.wall-item .amt { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: 15px; }
.wall-item p { margin-top: 7px; color: var(--ink-soft); font-size: 15.5px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; margin-bottom: 11px; }
.faq details[open] { border-color: #D9CBB6; }
.faq summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 600; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .body { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--cream-2); padding: 44px 0 56px; margin-top: 20px; }
.site-footer .inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer p { font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; gap: 20px; font-size: 14px; }

/* ==========================================================================
   Status pages
   ========================================================================== */
.status-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 22px; }
.status-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 52px 44px;
  box-shadow: var(--shadow-lg); text-align: center;
  max-width: 520px; width: 100%;
}
@media (max-width: 520px) { .status-card { padding: 36px 24px; } }
.status-icon {
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 26px;
  background: var(--green-tint); border: 2px solid var(--green); color: var(--green);
  font-size: 2.1rem;
}
.status-icon.pending { background: #FDECEC; border-color: #C0392B; color: #C0392B; }
.status-card h1 { font-size: 1.85rem; margin-bottom: 12px; }
.status-card .sub { color: var(--muted); }
.status-amount { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; margin-top: 22px; }

.demo-badge {
  display: inline-block;
  background: #FDF6E3; border: 1px solid #EBD9A8; color: #7A5B12;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 13px; border-radius: 999px;
}

/* ==========================================================================
   Legal / content pages
   ========================================================================== */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.legal h2 {
  font-size: 1.28rem;
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal p { margin-bottom: 15px; color: var(--ink-soft); }
.legal ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.legal li { margin-bottom: 9px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); }
.legal-foot {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.about-lede {
  font-size: 1.18rem !important;
  color: var(--ink) !important;
  line-height: 1.6;
  margin-bottom: 26px !important;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 {
  margin: 0 0 10px;
  padding-top: 0;
  border-top: none;
  font-size: 1.15rem;
}
.contact-card p { margin-bottom: 0; }
.contact-email { font-size: 1.12rem; font-family: var(--mono, ui-monospace, monospace); }
.contact-note { color: var(--muted); font-size: 14.5px; }

/* Small print under the donate button */
.legal-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.legal-note a { color: var(--muted); text-decoration: underline; }
.legal-note a:hover { color: var(--accent); }
