:root {
  /* Three jobs, three colours. Indigo acts, berry points, the gradient is the
     brand signing its name: wordmark, chip, ribbon, step number. Nothing else. */
  --ink: #211d3f;
  --deep: #211d3f;
  --deep-mid: #2b2755;
  --deep-2: #34306b;

  --action: #211d3f;
  --action-dark: #34306b;
  --action-soft: #efedf8;

  --berry: #b13d5e;
  --berry-dark: #8f3049;
  --berry-soft: #fbeef2;

  --coral: #f96a4c;
  --magenta: #c65ba8;
  --violet: #8a7bff;
  --violet-ink: #6f5ce6;
  --gradient: linear-gradient(135deg, #f96a4c 0%, #c65ba8 55%, #8a7bff 100%);
  --gradient-run: linear-gradient(90deg, #f96a4c 0%, #c65ba8 55%, #8a7bff 100%);
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 620' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='black' stroke-width='58' stroke-linecap='round'%3E%3Cpath d='M-60 230c200-170 400-170 600 0s400 170 600 0'/%3E%3Cpath d='M-60 390c200-170 400-170 600 0s400 170 600 0'/%3E%3C/g%3E%3C/svg%3E");

  --muted: #5c5878;
  --soft-meta: #726e8c;
  --surface: #ffffff;
  --page-bg: #faf7f2;
  --bg-soft: #f5f1ea;
  --hairline: #eee7db;
  --hairline-hover: #ddd1bd;
  --faint-divider: #f2ede4;

  --display: "Bricolage Grotesque", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-1: 0 1px 2px rgba(33, 29, 63, 0.05);
  --shadow-2: 0 6px 24px rgba(33, 29, 63, 0.07), 0 1px 2px rgba(33, 29, 63, 0.05);
  --shadow-3: 0 18px 50px rgba(33, 29, 63, 0.11), 0 4px 12px rgba(33, 29, 63, 0.06);
  --shadow-float: 0 30px 70px rgba(33, 29, 63, 0.16), 0 8px 20px rgba(33, 29, 63, 0.08);

  /* type scale */
  --text-2xs: 10.5px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 18px;
  --text-xl: 19px;
  --text-2xl: 22px;

  /* spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 34px;
  --space-9: 44px;
  --space-10: 56px;
  --space-11: 72px;
  --space-12: 96px;

  --maxw: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

.num { font-variant-numeric: tabular-nums; }

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

/* ---------- accessibility ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
.skip-link:focus {
  left: 14px;
  top: 14px;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  font-family: var(--display);
  font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid rgba(33, 29, 63, 0.55);
  outline-offset: 2px;
}
.btn-accent {
  background: var(--action);
  color: #fff;
  box-shadow: 0 6px 18px rgba(33, 29, 63, 0.22);
}
.btn-accent:hover {
  background: var(--action-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(33, 29, 63, 0.28);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover {
  border-color: var(--hairline-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.btn-on-dark {
  background: #fff;
  color: var(--deep);
}
.btn-on-dark:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- brand lockup ----------
   Chip geometry matches @giveflow/ui GiveFlowMark so the site and the admin
   render one mark: 22% radius, 62% glyph, 135deg gradient at 0/55/100. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(33, 29, 63, 0.18);
  flex: none;
}
.mark svg { width: 62%; height: 62%; display: block; }
.mark.sm { width: 28px; height: 28px; border-radius: 6px; }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.035em;
  line-height: 1;
}
.wm-give { color: var(--ink); }
.wm-flow, .hero h1 .grad { color: var(--magenta); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .wm-flow, .hero h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
@media (forced-colors: active) {
  .wm-flow, .hero h1 .grad { -webkit-text-fill-color: currentColor; }
}
.brand .mark.sm + .wordmark { font-size: 19px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(33, 29, 63, 0.03);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.site-header .nav-links a {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}
.site-header .nav-links a:hover { color: var(--ink); background: rgba(33, 29, 63,0.04); }
.site-header .nav-links .current-menu-item > a,
.site-header .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:focus-visible {
  outline: 3px solid rgba(33, 29, 63, 0.55);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 44px 0 92px;
  overflow: hidden;
}
/* The mark's double wave, drawn at page scale. The gradient is painted and the
   wave masks it, so the ribbon carries the brand without inventing a shape.
   It runs along the foot of the hero, so the break into the first section is a
   wave rather than a straight edge, and the copy keeps clean paper under it. */
.hero::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -56px;
  height: 300px;
  opacity: 0.24;
  z-index: 0;
  background: var(--gradient);
  -webkit-mask-image: var(--wave-mask);
  mask-image: var(--wave-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.hero-copy { padding-top: 96px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--berry);
  background: var(--berry-soft);
  border: 1px solid rgba(177, 61, 94, 0.16);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 0 0 4px rgba(177, 61, 94, 0.14);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--berry); }
.hero .sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- hero product visual: realistic GiveFlow form ---------- */
.product {
  position: relative;
  perspective: 1800px;
}
/* the donation form card itself */
.dform {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
  padding: 30px;
  transform: rotateY(-6deg) rotateX(1.5deg);
  transform-style: preserve-3d;
}
.df-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--faint-divider);
  margin-bottom: 18px;
}
.df-org {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.df-org-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--violet) 0%, var(--violet-ink) 100%);
  display: grid; place-items: center;
  flex: none;
}
.df-org-mark svg { width: 21px; height: 21px; color: #fff; }
.df-org-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; line-height: 1.2; }
.df-org-meta { font-size: 12.5px; color: var(--soft-meta); }
.df-brandchip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--display);
  font-size: 10.5px; font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  flex: none;
}
.df-brandchip i {
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--gradient);
  display: block;
}
.df-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* shared label + field shells */
.df-label {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.df-label .opt {
  color: var(--soft-meta);
  font-weight: 500;
  letter-spacing: 0;
}
.df-block { margin-bottom: 18px; }
.df-input {
  width: 100%;
  background: var(--page-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
}
.df-input::placeholder { color: var(--soft-meta); }
.df-input:focus-visible {
  outline: none;
  border-color: var(--action);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(33, 29, 63,0.12);
}

/* currency switcher */
.df-curr {
  display: inline-flex;
  background: var(--page-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.df-curr button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.df-curr button[aria-pressed="true"] {
  background: var(--action);
  color: #fff;
  box-shadow: 0 2px 6px rgba(33, 29, 63,0.28);
}
.df-curr button:focus-visible {
  outline: 3px solid rgba(33, 29, 63, 0.55);
  outline-offset: 2px;
}

/* preset amounts */
.df-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.amt {
  position: relative;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 0;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.amt:hover { border-color: var(--hairline-hover); }
.amt:focus-visible {
  outline: 3px solid rgba(33, 29, 63, 0.55);
  outline-offset: 2px;
}
.amt.active {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(33, 29, 63, 0.12);
}
.df-impact {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--berry);
  font-weight: 500;
}
.df-impact svg { width: 13px; height: 13px; flex: none; }
.df-custom {
  position: relative;
  margin-top: 10px;
}
.df-custom .sym {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
}
.df-custom .df-input {
  padding-left: 30px;
  font-variant-numeric: tabular-nums;
}

/* recurring segmented control */
.df-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--page-bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
}
.df-seg button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 10px 0;
  border-radius: 9px;
  cursor: pointer;
}
.df-seg button[aria-pressed="true"] {
  background: var(--action);
  color: #fff;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--action);
}
.df-seg button:focus-visible {
  outline: 3px solid rgba(33, 29, 63, 0.55);
  outline-offset: 2px;
}

/* two-column rows */
.df-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.df-field { display: block; }

/* select */
.df-select {
  position: relative;
}
.df-select select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--page-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 38px 12px 14px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.df-select select:focus-visible {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(33, 29, 63,0.12);
}
.df-select::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* checkboxes */
.df-checks { display: flex; flex-direction: column; gap: 12px; }
.df-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
}
.df-check .box {
  width: 19px; height: 19px;
  border-radius: 6px;
  border: 1.5px solid var(--hairline);
  background: var(--page-bg);
  flex: none;
  margin-top: 1px;
  display: grid;
  place-items: center;
}
.df-check .box svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.df-check.on .box {
  background: var(--action);
  border-color: var(--action);
}
.df-check.on .box svg { opacity: 1; }
.df-check span small { color: var(--soft-meta); }

/* submit */
.df-submit {
  width: 100%;
  background: var(--action);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 24px rgba(33, 29, 63,0.3);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.df-submit:hover { background: var(--action-dark); }
.df-submit:focus-visible {
  outline: 3px solid rgba(33, 29, 63, 0.55);
  outline-offset: 2px;
}
.df-submit svg { width: 17px; height: 17px; }
.df-secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 13px;
  font-size: 11.5px;
  color: var(--soft-meta);
  font-weight: 500;
}
.df-lock {
  position: relative;
  width: 11px; height: 14px;
  flex: none;
}
.df-lock::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 11px; height: 8px;
  border-radius: 2px;
  background: var(--soft-meta);
}
.df-lock::after {
  content: "";
  position: absolute;
  left: 2px; top: 0;
  width: 7px; height: 7px;
  border: 1.5px solid var(--soft-meta);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

/* floating chips around the device */
.float-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 3;
}
.float-chip .ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex: none;
}
.float-chip .ic svg { width: 16px; height: 16px; }
.float-chip .ct strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.float-chip .ct span { font-size: 11.5px; color: var(--soft-meta); }
.chip-recurring {
  top: 30px; left: -46px;
  animation: floaty 5s ease-in-out infinite;
}
.chip-recurring .ic { background: var(--action-soft); color: var(--action-dark); }
.chip-payout {
  bottom: 64px; right: -50px;
  animation: floaty 5.6s ease-in-out infinite 0.6s;
}
.chip-payout .ic { background: var(--berry-soft); color: var(--berry); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- section shell ---------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-head p {
  font-size: 18px;
  color: var(--muted);
}

/* ---------- feature grid ---------- */
.features { background: var(--surface); border-top: 1px solid var(--faint-divider); border-bottom: 1px solid var(--faint-divider); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.feat {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.feat-lg, .feat-md, .feat-dark { grid-column: span 3; }
.feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: rgba(33, 29, 63,0.3);
}
.feat-dark {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  border-color: transparent;
  color: #fff;
}
.feat-dark:hover { border-color: transparent; box-shadow: var(--shadow-float); }
.feat-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--action-soft);
  color: var(--action-dark);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feat-ic svg { width: 22px; height: 22px; }
.feat-dark .feat-ic { background: rgba(255,255,255,0.1); color: #fff; }
.feat h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feat-dark h3 { color: #fff; }
.feat p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.feat-dark p { color: rgba(255,255,255,0.72); }

/* in-card micro-visuals */
.mini { margin-top: auto; padding-top: 22px; }
.mini-seg, .mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-seg span, .mini-chips span {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--hairline);
}
.mini-seg span.on, .mini-chips span.on {
  background: var(--action); color: #fff; border-color: var(--action);
}
.mpg-track { display: block; height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.mpg-track i { display: block; height: 100%; border-radius: 999px; background: var(--violet-ink); }
.mpg-label { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.mpg-label b { color: var(--ink); font-weight: 700; font-family: var(--display); }
.mini-bars { display: grid; gap: 10px; }
.mbar { display: grid; gap: 5px; }
.mbar em { font-style: normal; font-size: 11.5px; color: var(--soft-meta); }
.mbar i { display: block; height: 6px; border-radius: 999px; background: var(--violet-ink); }
.mini-blocks { display: grid; gap: 8px; }
.mb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
}
.mb-row i { width: 22px; height: 22px; border-radius: 6px; background: var(--action-soft); flex: none; }
.mb-row b { height: 7px; border-radius: 999px; background: var(--bg-soft); flex: 1; }
.mb-row:nth-child(2) b { max-width: 68%; }
.mb-add {
  justify-content: center;
  border-style: dashed;
  color: var(--action);
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  background: transparent;
}
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.mini-chart i { flex: 1; border-radius: 6px 6px 3px 3px; background: #e4e0fb; }
.mini-chart i:nth-child(even) { background: var(--violet-ink); }
.mini-pass { display: flex; flex-direction: column; gap: 14px; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  color: #e7e3ff;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.mp-chip svg { width: 14px; height: 14px; color: var(--violet); }
.mp-bars { display: flex; gap: 8px; }
.mp-bars i { height: 8px; border-radius: 999px; }
.mp-bars i.p1 { width: 72px; background: rgba(138,123,255,0.85); }
.mp-bars i.p2 { width: 44px; background: rgba(255,255,255,0.16); }
.mp-bars i.p3 { width: 30px; background: rgba(255,255,255,0.16); }

/* ---------- values strip ---------- */
.values { background: var(--bg-soft); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.value-ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--action-soft);
  color: var(--action-dark);
  margin-bottom: 16px;
}
.value-ic svg { width: 21px; height: 21px; }
.value h3 { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 7px; }
.value p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- how it works ---------- */
.how { background: var(--page-bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--hairline) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: rgba(33, 29, 63,0.28); }
.step-num {
  counter-increment: step;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-run);
  background-size: 300% 100%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(33, 29, 63, 0.18);
}
.step:nth-child(1) .step-num { background-position: 0 50%; }
.step:nth-child(2) .step-num { background-position: 50% 50%; }
.step:nth-child(3) .step-num { background-position: 100% 50%; }
.step-num::before { content: counter(step); }
.step-meta {
  display: inline-block;
  font-family: var(--display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- closing CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--deep) 0%, var(--deep-mid) 55%, var(--deep-2) 130%);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40px -12%;
  background: var(--gradient);
  opacity: 0.15;
  -webkit-mask-image: var(--wave-mask);
  mask-image: var(--wave-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 104px 0;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.cta-inner p {
  font-size: 19px;
  color: rgba(255,255,255,0.74);
  margin-bottom: 36px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-install {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.cta-install code {
  font-family: var(--mono);
  background: rgba(255,255,255,0.12);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
}
.cta-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
}
.cta-note a { color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 3px; }
.cta-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.cta-trust li {
  position: relative;
  font-family: var(--display);
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding-left: 22px;
}
.cta-trust li::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--page-bg);
  border-top: 1px solid var(--hairline);
  padding: 72px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--faint-divider);
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-tag {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 280px;
}
.foot-col-heading {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-meta);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 11px; }
.foot-col a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--berry); }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 30px;
  flex-wrap: wrap;
}
.foot-bottom-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-bottom-left .wordmark { font-size: 17px; }
.foot-bottom-tag {
  font-size: 13.5px;
  color: var(--soft-meta);
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
}
.foot-meta {
  font-size: 13px;
  color: var(--soft-meta);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- mobile nav panel ---------- */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 70px 0 0;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(8px);
  z-index: 99;
  padding: 28px var(--gutter);
  flex-direction: column;
  gap: 6px;
}
.mobile-panel.open { display: flex; }
.mobile-panel .mobile-links { list-style: none; display: flex; flex-direction: column; }
.mobile-panel .mobile-links a {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  padding: 16px 4px;
  border-bottom: 1px solid var(--faint-divider);
}
.mobile-panel .btn { margin-top: 20px; }

/* ---------- generic content pages ---------- */
.site-main { padding: 72px 0 88px; }
.page-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.page-head .kicker { margin-bottom: 14px; }
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-head p { font-size: 18px; color: var(--muted); }

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--berry); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--berry-dark); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
  border-left: 3px solid var(--berry);
  padding-left: 18px;
  color: var(--muted);
  font-style: italic;
}
.prose code {
  font-family: var(--mono);
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.prose pre {
  background: var(--deep);
  color: #e9e5f5;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; }

/* ---------- blog / archive list ---------- */
.post-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgba(33, 29, 63,0.25); }
.post-card h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.post-card .meta { font-size: 13px; color: var(--soft-meta); margin-bottom: 12px; }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  color: var(--berry);
}

.pagination { max-width: 760px; margin: 44px auto 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--surface); color: var(--muted); font-weight: 500;
}
.pagination .page-numbers.current { background: var(--action); color: #fff; border-color: transparent; }
.pagination a.page-numbers:hover { border-color: var(--hairline-hover); color: var(--ink); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; max-width: 600px; margin: 0 auto; padding: 64px 0 88px; }
.error-404 .code {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 12vw, 120px); letter-spacing: -0.04em;
  color: var(--deep-2); line-height: 1;
}
.error-404 h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 10px 0 14px; }
.error-404 p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.error-404-links {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--faint-divider);
}
.error-404-sub {
  font-size: 14px;
  color: var(--soft-meta);
  margin-bottom: 14px;
}
.error-404-links ul {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-404-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--berry);
  transition: color .15s ease;
}
.error-404-links a:hover { color: var(--berry-dark); }

/* ---------- comments ---------- */
.comments { max-width: 760px; margin: 56px auto 0; padding-top: 36px; border-top: 1px solid var(--faint-divider); }
.comments-title { font-size: 1.4rem; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.comment-list .children { list-style: none; margin: 18px 0 0 24px; display: flex; flex-direction: column; gap: 18px; }
.comment-body {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-1);
}
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--soft-meta); margin: 4px 0 10px; }
.comment-metadata a { color: inherit; }
.comment-respond {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-1);
}
.comment-respond .comment-reply-title { font-size: 1.2rem; margin-bottom: 16px; }
.comment-form label { display: block; font-family: var(--display); font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--page-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 16px;
}
.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
  outline: none;
  border-color: var(--action);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(33, 29, 63,0.3);
}
.comment-form .submit {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  background: var(--action);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(33, 29, 63,0.22);
}
.comment-form .submit:hover { background: var(--action-dark); }
.no-comments { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .dform { transform: none; }
  .product { max-width: 460px; margin: 0 auto; }
  .chip-recurring { left: -16px; }
  .chip-payout { right: -16px; }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat, .feat-lg, .feat-md, .feat-dark { grid-column: span 2; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section-pad { padding: 68px 0; }
  .site-header .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat, .feat-lg, .feat-md, .feat-dark { grid-column: span 1; }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .hero { padding: 52px 0 68px; }
  .hero::before { bottom: -40px; height: 210px; }
  /* The sample donation form is decorative and costs a phone most of a screen
     before it reaches the first real sentence. Everything inside it, the float
     chips included, goes with it, which is why this breakpoint no longer
     positions them. */
  .product { display: none; }
  .cta-inner { padding: 76px 0; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* Docs are still being written; the note says so on the index and on every
   article. Tokens only, no new colours. */
.docs-wip {
  margin: 0 0 28px;
  padding: 12px 16px;
  background: var(--berry-soft);
  border-left: 3px solid var(--berry);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}

/* contact form */
.contact-form { max-width: 560px; }
.contact-row { margin: 0 0 18px; }
.contact-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.contact-row textarea.df-input { resize: vertical; min-height: 150px; }
.contact-actions { margin: 4px 0 0; }
/* Off-screen rather than display:none: a bot reading the DOM fills what it can
   see in the markup, and hiding it this way keeps it out of the tab order. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-notice {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  font-size: 14.5px;
  line-height: 1.55;
}
.contact-notice.is-ok  { background: var(--action-soft); border-color: var(--action); color: var(--ink); }
.contact-notice.is-bad { background: #fbeae7; border-color: #b42318; color: #8a1c14; }

/* -- Cookie consent -----------
   Hidden until the script confirms no choice is stored, so it never flashes
   for a returning visitor whose answer is already on file. */
.giveflow-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px 18px;
	border: 1px solid var(--hairline);
	border-radius: 12px;
	background: var(--surface);
	box-shadow: 0 18px 50px rgba(33, 29, 63, .12), 0 4px 12px rgba(33, 29, 63, .06);
}
.giveflow-consent[hidden] { display: none; }
.giveflow-consent__text {
	flex: 1 1 320px;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--muted);
}
.giveflow-consent__text a { color: var(--berry); }
.giveflow-consent__actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}
.giveflow-consent__btn {
	appearance: none;
	padding: 8px 16px;
	border: 1px solid var(--hairline);
	border-radius: 8px;
	background: var(--surface);
	color: var(--ink);
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
}
.giveflow-consent__btn:hover { border-color: var(--hairline-hover); }
.giveflow-consent__btn--accept {
	border-color: var(--action);
	background: var(--action);
	color: #fff;
}
.giveflow-consent__btn--accept:hover { background: var(--action-dark); border-color: var(--action-dark); }
@media (max-width: 560px) {
	.giveflow-consent { flex-direction: column; align-items: stretch; }
	.giveflow-consent__actions .giveflow-consent__btn { flex: 1; }
}
