:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #627085;
  --line: #ccd6e3;
  --accent: #246b61;
  --accent2: #b98b2f;
  --field: #fbfdff;
  --bad: #b33227;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;650;750;850;900&family=Libre+Baskerville:wght@400;700&display=swap");

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px clamp(16px, 4vw, 48px); background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; color: var(--ink); text-decoration: none; }
.brand img { width: 26px; height: 26px; object-fit: contain; display: block; }
nav { display: flex; gap: 12px; flex-wrap: wrap; }
nav a { color: var(--accent); text-decoration: none; font-weight: 750; }
main { width: min(1120px, calc(100% - 28px)); margin: 22px auto 48px; }
.hero { padding: 18px 0; }
.landing-hero { min-height: 580px; display: flex; align-items: center; padding: clamp(24px, 6vw, 72px); border-radius: 8px; overflow: hidden; background-image: linear-gradient(90deg, rgba(6, 39, 31, .92) 0%, rgba(8, 43, 35, .82) 34%, rgba(8, 43, 35, .22) 62%, rgba(8, 43, 35, 0) 100%), url("/static/assets/kingdomgive-hero.jpg"); background-size: cover; background-position: center; box-shadow: 0 18px 46px rgba(23, 32, 51, .16); }
.hero-copy { width: min(620px, 100%); }
.landing-hero h1 { max-width: 620px; color: #ffffff; text-shadow: 0 2px 18px rgba(0, 0, 0, .22); }
.landing-hero p { color: rgba(255, 255, 255, .88); max-width: 560px; }
.eyebrow { color: #e0b554; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.secondary-link { background: #e6edf4; color: var(--ink); border: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.feature-grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.org-give-page { --theme-main: #246b61; --theme-deep: #06271f; --theme-accent: #d6a72e; min-height: calc(100vh - 112px); display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); align-items: center; padding: clamp(16px, 3vw, 32px); border-radius: 8px; background: radial-gradient(circle at 12% 8%, rgba(214, 167, 46, .18), transparent 28%), linear-gradient(135deg, #fffaf1 0%, #eef5f1 100%); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.theme-blue { --theme-main: #2b68b8; --theme-deep: #10213f; --theme-accent: #7bb8ff; }
.theme-charcoal { --theme-main: #3b4658; --theme-deep: #111827; --theme-accent: #d8b06a; }
.theme-plum { --theme-main: #6c3f86; --theme-deep: #2a1735; --theme-accent: #d9a7ff; }
.org-story { min-height: 650px; border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); background-image: linear-gradient(110deg, color-mix(in srgb, var(--theme-deep) 72%, transparent) 0%, rgba(6, 39, 31, .28) 48%, rgba(6, 39, 31, 0) 100%), var(--org-hero-image, url("/static/assets/kingdomgive-hero.jpg")); background-size: cover; background-position: center 35%; box-shadow: 0 24px 64px rgba(23, 32, 51, .18); }
.org-story-content { max-width: 620px; }
.org-story h1 { color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(2.2rem, 4.4vw, 4.7rem); line-height: 1.08; text-shadow: 0 2px 18px rgba(0,0,0,.24); }
.org-story p { color: rgba(255,255,255,.9); font-size: 1.18rem; max-width: 520px; }
.donation-card { background: rgba(255, 255, 255, .92); border: 1px solid rgba(36, 107, 97, .18); border-radius: 8px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 24px 62px rgba(23, 32, 51, .13); display: grid; gap: 16px; backdrop-filter: blur(8px); overflow: visible; }
.donation-card h2 { text-align: left; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.7rem; line-height: 1.2; margin: 10px 0 8px; }
.donation-step { display: grid; gap: 14px; }
.hidden { display: none !important; }
.step-dots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 0 12px; }
.step-dots span { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; border: 1px solid rgba(36, 107, 97, .18); background: rgba(255,255,255,.72); color: #657287; font-size: 12px; font-weight: 850; }
.step-dots b { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #e9eef2; color: #657287; font-size: 11px; }
.step-dots span.active { border-color: color-mix(in srgb, var(--theme-main) 44%, #fff); background: color-mix(in srgb, var(--theme-main) 10%, #fff); color: var(--theme-main); box-shadow: 0 8px 20px rgba(36, 107, 97, .08); }
.step-dots span.active b, .step-dots span.complete b { background: var(--theme-main); color: #fff; }
.step-dots span.complete { color: var(--theme-main); }
.donation-total-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -8px; padding: 11px 13px; border: 1px solid rgba(36, 107, 97, .16); border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(246, 250, 248, .9)); color: #667287; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.donation-total-summary strong { color: var(--ink); font-size: 1.25rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.frequency-select { position: relative; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: #667287; }
.frequency-select select { margin-top: 7px; min-height: 52px; appearance: none; background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%); border: 1px solid color-mix(in srgb, var(--theme-main) 36%, #c9d5df); border-radius: 8px; color: var(--ink); font-weight: 850; padding: 13px 44px 13px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.frequency-select::after { content: ""; position: absolute; right: 16px; bottom: 18px; width: 9px; height: 9px; border-right: 2px solid var(--theme-main); border-bottom: 2px solid var(--theme-main); transform: rotate(45deg); pointer-events: none; }
.frequency-note { text-align: left; background: #fff7e8; color: #5b4730; border: 1px solid rgba(214, 167, 46, .28); border-left: 4px solid var(--theme-accent); border-radius: 8px; padding: 10px 12px; margin: 0; width: 100%; font-size: .9rem; }
.payment-note { text-align: left; background: color-mix(in srgb, var(--theme-main) 8%, #fff); color: #4c5f69; border: 1px solid color-mix(in srgb, var(--theme-main) 18%, #d7e2ea); border-radius: 8px; padding: 11px 12px; margin: 2px 0 0; font-size: .9rem; }
.schedule-fields { display: grid; gap: 10px; }
.schedule-field { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: #667287; }
.schedule-field select { margin-top: 7px; min-height: 46px; background: #fff; border: 1px solid color-mix(in srgb, var(--theme-main) 24%, #c9d5df); border-radius: 8px; font-weight: 800; color: var(--ink); }
.schedule-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gift-lines { display: grid; gap: 12px; }
.gift-line { display: grid; grid-template-columns: minmax(150px, 1fr) 124px 34px; gap: 8px; align-items: end; padding: 10px; border: 1px solid rgba(36, 107, 97, .14); border-radius: 8px; background: rgba(255,255,255,.72); overflow: visible; }
.gift-line label { font-size: 12px; }
.gift-line select { min-height: 46px; font-size: 14px; font-weight: 850; overflow: visible; }
.amount-field { position: relative; display: flex; align-items: center; min-height: 46px; border: 1px solid color-mix(in srgb, var(--theme-main) 44%, #c9d5df); border-radius: 8px; background: #fff; padding: 0 10px; font-size: 1rem; color: #6f7b8d; }
.amount-field span { flex: 0 0 auto; }
.amount-field input { border: 0; background: transparent; font-size: .95rem; font-weight: 850; padding: 10px 5px; outline: none; min-width: 0; }
.link-button { justify-self: start; min-height: auto; background: transparent; color: var(--accent); padding: 0; font-weight: 850; }
.add-gift-button { background: transparent; color: var(--theme-main); border: 1px dashed color-mix(in srgb, var(--theme-main) 46%, #c9d5df); }
.remove-gift-button { min-height: 46px; width: 34px; background: #f2ebe2; color: #73503a; border: 1px solid #ead7c8; padding: 0; font-size: 0; position: relative; }
.remove-gift-button::before { content: "×"; font-size: 20px; line-height: 1; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.setup-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.setup-sidebar { position: sticky; top: 86px; display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 32px rgba(23, 32, 51, .08); }
.setup-sidebar-title { display: grid; gap: 4px; }
.setup-sidebar-title h1 { font-size: 1.35rem; margin: 0; }
.setup-nav { display: grid; gap: 8px; }
.setup-nav-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 11px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfe; color: var(--ink); text-decoration: none; font-weight: 900; }
.setup-nav-item small { grid-column: 2; color: var(--muted); font-size: 11px; font-weight: 850; }
.status-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.setup-nav-item.complete .status-icon { border-radius: 999px; background: #1f7a5a; }
.setup-nav-item.complete .status-icon::before { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.setup-nav-item.incomplete .status-icon { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 20px solid #e0a92a; position: relative; }
.setup-nav-item.incomplete .status-icon::before { content: "!"; position: absolute; left: -3px; top: 5px; color: #4f3a13; font-size: 13px; font-weight: 950; line-height: 1; }
.setup-save { width: 100%; }
.setup-content { display: grid; gap: 14px; }
.setup-section { scroll-margin-top: 86px; display: grid; gap: 12px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 32px rgba(23, 32, 51, .08); }
.setup-section h2 { font-size: 1.35rem; margin: 0; }
.setup-section h3 { font-size: 1rem; margin: 0 0 4px; }
.payment-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-config-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfe; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 8px; letter-spacing: 0; }
h2 { font-size: 1.1rem; margin: 18px 0 8px; }
p { color: var(--muted); line-height: 1.5; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 12px 32px rgba(23, 32, 51, .08); display: grid; gap: 12px; }
.narrow { max-width: 760px; margin-inline: auto; }
label { font-weight: 800; font-size: 13px; display: grid; gap: 6px; color: var(--ink); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--ink); padding: 10px 11px; font: inherit; }
textarea { min-height: 92px; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 7px; padding: 10px 14px; background: var(--accent); color: white; font-weight: 850; text-decoration: none; cursor: pointer; }
button.secondary, .button.secondary { background: #e6edf4; color: var(--ink); border: 1px solid var(--line); }
.integration-status { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 18%, #d7e2ea); border-left: 4px solid var(--accent); border-radius: 8px; background: #f7fbfa; }
.integration-status strong { color: var(--ink); }
.integration-status span { color: var(--muted); font-size: 13px; }
.compact-actions { margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid4 { display: grid; grid-template-columns: 1.3fr .7fr .7fr .5fr; gap: 10px; }
.line { display: grid; grid-template-columns: 1fr 1fr 120px 1.2fr; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfe; margin-bottom: 8px; }
.total { font-size: 1.25rem; font-weight: 900; text-align: right; }
.muted, .fine { color: var(--muted); font-size: 12px; }
.check { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; }
.check input { width: auto; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px; }
th { background: #eef3f8; }
code { background: #eef3f8; padding: 2px 5px; border-radius: 5px; }

@media (max-width: 760px) {
  header { align-items: flex-start; flex-direction: column; }
  .grid2, .grid4, .line, .landing-hero, .feature-grid, .org-give-page, .setup-layout, .payment-config-grid { grid-template-columns: 1fr; }
  .landing-hero { min-height: 520px; padding: 24px; background-image: linear-gradient(180deg, rgba(6, 39, 31, .94) 0%, rgba(8, 43, 35, .76) 54%, rgba(8, 43, 35, .28) 100%), url("/static/assets/kingdomgive-hero.jpg"); background-position: 58% center; align-items: flex-start; }
  .org-give-page { padding: 12px; }
  .org-story { min-height: 360px; padding: 22px; order: 1; }
  .donation-card { margin-top: -28px; position: relative; z-index: 1; order: 2; }
  .schedule-pair { grid-template-columns: 1fr; }
  .gift-line { grid-template-columns: 1fr; }
  .setup-sidebar { position: static; }
}

@media print {
  header, .no-print { display: none !important; }
  body { background: white; }
  main { width: 100%; margin: 0; }
  .panel { border: 0; box-shadow: none; }
}
