/* Kisumu East fundraiser. Brand: Pantone 312 teal, navy from the party logo, white. */
:root {
  --brand: #00b4ce;
  --brand-deep: #00788d;
  --brand-tint: #e6f7fb;
  --navy: #0b2a5b;
  --navy-2: #123a78;
  --ink: #0e1b2c;
  --muted: #53647a;
  --line: #d9e5ec;
  --bg: #ffffff;
  --bg-soft: #f3f9fb;
  --ok: #12805c;
  --warn: #a15c00;
  --bad: #b3261e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 8px 24px rgba(11, 42, 91, .08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-deep); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; border: 2px solid transparent; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none; min-height: 46px; transition: transform .12s, background .12s, box-shadow .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: #006679; }
.btn-hero { background: var(--brand); color: var(--navy); }
.btn-hero:hover { background: #33c6dc; }
.btn-ghost { background: transparent; color: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 8px 16px; min-height: 38px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-deep); text-decoration: underline; cursor: pointer; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand b { display: block; font-size: 1rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand-deep); }
.basket-btn { position: relative; white-space: nowrap; flex: none; }
.basket-btn .count { background: var(--navy); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; font-size: .78rem; display: inline-grid; place-items: center; padding: 0 6px; }
@media (max-width: 1020px) { .nav { display: none; } .top .basket-btn { margin-left: auto; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0a6f8a 130%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 180, 206, .35), transparent 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 64px 0 72px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fe3f1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: #d6e6f5; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .slogan { margin-top: 28px; color: #9fc3e0; font-size: .95rem; letter-spacing: .04em; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 48px; } }

.meter { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.meter .label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.meter .big { font-size: clamp(2rem, 4.4vw, 2.7rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 2px; }
.meter .of { color: var(--muted); font-size: .95rem; }
.bar { height: 12px; background: #e3eef3; border-radius: 99px; overflow: hidden; margin: 16px 0 10px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); min-width: 0; }
.meter .stats { display: flex; gap: 22px; color: var(--muted); font-size: .9rem; }
.meter .stats b { color: var(--navy); font-size: 1.1rem; display: block; }
.meter .first { margin-top: 12px; padding: 10px 12px; background: var(--brand-tint); border-radius: 12px; color: var(--navy); font-size: .92rem; }

/* Sections */
section { padding: 72px 0; scroll-margin-top: 64px; }
section.soft { background: var(--bg-soft); }
.sec-head { max-width: 42em; margin-bottom: 32px; }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
@media (max-width: 700px) { section { padding: 48px 0; } }

/* Quick give */
.quick { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; min-height: 44px; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.amount-box { display: flex; gap: 10px; align-items: stretch; }
.field-money { position: relative; }
.field-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: .9rem; }
.field-money input { padding-left: 52px; }
@media (max-width: 800px) { .quick { grid-template-columns: 1fr; } .amount-box { flex-wrap: wrap; } }

/* Item menu */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.card.done { opacity: .75; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.card .ico svg { width: 26px; height: 26px; }
.card header { display: flex; gap: 12px; align-items: flex-start; }
.card h3 { font-size: 1.04rem; }
.card .cat { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card p.blurb { color: var(--muted); font-size: .94rem; flex: 1; }
.card .bar { height: 8px; margin: 2px 0 6px; }
.card .meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); gap: 8px; }
.card .meta b { color: var(--navy); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fff4dc; color: var(--warn); }
.tag.ok { background: #e1f5ec; color: var(--ok); }
.buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; }
.step { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.step button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.step button:hover { background: var(--brand-tint); }
.step input { width: 64px; text-align: center; border: 0; font: inherit; font-weight: 700; padding: 0; height: 40px; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn { flex: 1; min-width: 130px; }
.card .custom { font-size: .85rem; }
.custom-row { display: flex; gap: 8px; width: 100%; }
.custom-row .field-money { flex: 1; }
.inbasket { font-size: .82rem; color: var(--ok); font-weight: 700; }

/* Forms */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0, 180, 206, .25); }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink); margin: 0; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--brand-deep); }
.err { background: #fdecea; color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: .94rem; margin: 12px 0; }
.note { background: var(--brand-tint); border-radius: 12px; padding: 12px 14px; font-size: .92rem; color: var(--navy); }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* Charts */
.budget-list { display: grid; gap: 12px; }
.brow { display: grid; grid-template-columns: minmax(150px, 1.2fr) 3fr auto; gap: 14px; align-items: center; font-size: .95rem; }
.brow .track { background: #e3eef3; border-radius: 99px; height: 14px; overflow: hidden; }
.brow .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-radius: 99px; }
.brow b { color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .brow { grid-template-columns: 1fr auto; } .brow .track { grid-column: 1 / -1; order: 3; } }
.months { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; align-items: end; height: 250px; padding-top: 20px; }
.mcol { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.mcol i { display: block; width: 100%; max-width: 64px; background: linear-gradient(180deg, var(--brand), var(--brand-deep)); border-radius: 10px 10px 4px 4px; min-height: 4px; }
.mcol.peak i { background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.mcol small { font-size: .74rem; color: var(--muted); text-align: center; line-height: 1.2; }
.mcol b { font-size: .74rem; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .months { gap: 4px; } .mcol b { font-size: .62rem; } .mcol small { font-size: .62rem; } }
details.table { margin-top: 16px; }
details.table summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Supporters / big gifts / FAQ */
.supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sup { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sup b { color: var(--navy); }
.sup span { color: var(--muted); font-size: .88rem; display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.panel p { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 52em; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trust svg { width: 26px; height: 26px; color: var(--brand-deep); margin-bottom: 8px; }
.trust p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

footer { background: var(--navy); color: #c7d8ea; padding: 40px 0 56px; font-size: .92rem; }
footer a { color: #8fe3f1; }
footer .wrap { display: grid; gap: 12px; }
footer .disc { color: #fff; font-weight: 600; }

/* Dialog */
dialog { overflow: hidden; border: 0; border-radius: 22px; padding: 0; width: min(640px, 100% - 24px); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); color: var(--ink); }
dialog::backdrop { background: rgba(7, 20, 46, .6); backdrop-filter: blur(3px); }
.dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 12px; border-bottom: 1px solid var(--line); }
.dlg-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dlg-body { padding: 20px 24px; overflow-y: auto; min-height: 0; flex: 1; display: grid; gap: 18px; align-content: start; }
.dlg-head, .dlg-foot { flex: none; }
.dlg-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--bg-soft); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.xbtn { border: 0; background: var(--bg-soft); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.xbtn svg { width: 20px; height: 20px; }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; font-size: .94rem; }
.line input { width: 120px; min-height: 40px; padding: 6px 10px; text-align: right; }
.line .rm { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 6px; }
.line .rm:hover { color: var(--bad); }
.line .rm svg { width: 18px; height: 18px; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.methods { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 400; margin: 0; }
.method:has(input:checked) { border-color: var(--brand-deep); background: var(--brand-tint); }
.method b { color: var(--navy); display: block; }
.method input { margin-top: 4px; accent-color: var(--brand-deep); width: 18px; height: 18px; }
.empty { text-align: center; color: var(--muted); padding: 28px 0; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--brand-tint); border-top-color: var(--brand-deep); animation: spin 1s linear infinite; margin: 8px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; font-weight: 600; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.receipt { max-width: 560px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.receipt .badge { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: #e1f5ec; color: var(--ok); }
.receipt .badge.wait { background: var(--brand-tint); color: var(--brand-deep); }
.receipt .badge.bad { background: #fdecea; color: var(--bad); }
.receipt .badge svg { width: 34px; height: 34px; }
.receipt dl { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 20px 0; font-size: .95rem; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; }
@media print { .top, footer, .no-print { display: none !important; } .receipt { box-shadow: none; border: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
