/*
 * EN For funders page (views/pages/redesign/partners.ejs).
 * Values from Paper "Site · About + Funders" → "For funders · desktop 1440"
 * and "For funders · mobile 390". Desktop first; the mobile board below 768px.
 * Shared pieces: components/report.css (sample report), components/ask.css.
 */

/* ── Shared type on this page ────────────────────────────────────────── */
.fu-kicker {
  color: var(--emerald);
  font-size: clamp(12px, 11.26px + 0.19vw, 14px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: clamp(16px, 15.26px + 0.19vw, 18px);
  text-transform: uppercase;
}
/* Section titles: 60 / 60 on desktop, 34 / 36 on mobile */
.fu-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 24.34px + 2.476vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: clamp(36px, 27.09px + 2.286vw, 60px);
}
.fu-body { color: var(--text-2); font-size: clamp(16px, 15.26px + 0.19vw, 18px); line-height: clamp(26px, 24.89px + 0.286vw, 29px); }

/* ── 1 · Hero + money card ───────────────────────────────────────────── */
.fu-hero { position: relative; background: var(--ink); color: var(--paper); overflow: clip; }
/* The final ask's ribbons, live (graphics/thick-ribbons.js); the background is
   the poster for no JS and reduced motion. As .pg-hero__ribbons on Services. */
.fu-hero__ribbons {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(1440px, 100%);
  height: 900px;
  transform: translateX(-50%);
  opacity: 0.5;
  background: url(/images/redesign/home/thick-ribbons-1600.webp) 50% / cover no-repeat;
  pointer-events: none;
}
.fu-hero__inner { position: relative; display: flex; align-items: center; gap: 72px; padding-top: 164px; padding-bottom: 120px; } /* 28 + nav 56 + 80 */
.fu-hero__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.fu-hero__title {
  font-family: var(--font-display);
  font-size: clamp(46px, 28.91px + 4.381vw, 92px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: clamp(46px, 30.4px + 4vw, 88px);
}
.fu-hero__sub { max-width: 600px; color: var(--text-on-ink); font-size: 20px; line-height: 31px; }
.fu-hero__ctas { display: flex; align-items: center; gap: 28px; padding-top: 6px; }
.fu-hero__cta { padding: 18px 28px; }
.fu-hero__scan { color: var(--paper); font-size: 16px; font-weight: 500; line-height: 20px; text-decoration: underline 1px; text-underline-position: from-font; padding-block: 12px; }

.money { width: 440px; flex-shrink: 0; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--ink-line); border-radius: var(--radius-tile); background: var(--ink-2); }
.money__item { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.money__item--rule { position: relative; }
.money__item--rule::before { content: ''; position: absolute; top: 0; left: 26px; right: 26px; height: 1px; background: var(--ink-line); }
.money__k { color: var(--muted-on-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; line-height: 16px; text-transform: uppercase; }
.money__t { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 30px; }
.money__d { color: var(--text-on-ink); font-size: 15px; line-height: 22px; }
.money__item--gets { border-radius: 20px; background: var(--emerald); color: var(--ink); }
.money__item--gets .money__k { color: var(--green-ink); }
.money__item--gets .money__d { color: var(--ink); }

/* ── 2 · Why fund ────────────────────────────────────────────────────── */
.fu-why { padding-top: 144px; padding-bottom: 128px; }
.fu-why__inner { display: flex; flex-direction: column; gap: 64px; }
.fu-why__head { display: flex; align-items: flex-end; gap: 80px; }
.fu-why__title { width: 720px; flex-shrink: 0; }
.reasons { display: flex; gap: 20px; }
.reason { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-tile); background: var(--white); }
.reason__big { color: var(--deep-green); font-family: var(--font-display); font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 58px; }
.reason__title { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 30px; }
.reason__text { color: var(--text-2); font-size: 16px; line-height: 25px; }
.reason__src { color: var(--muted); font-size: 13px; line-height: 18px; }

/* ── 3 · How it works for a funder ───────────────────────────────────── */
.fu-how { padding-block: 128px; }
.fu-how__inner { display: flex; flex-direction: column; gap: 64px; }
.fu-how__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; }
.fu-how__title { width: 640px; flex-shrink: 0; }
.fu-how__intro { width: 440px; flex-shrink: 0; }
.fu-how { overflow: clip; }
/* Ribbons through the numbers: graphics/step-flow.js on .fflow__gfx (canvas
   under the list), anchored and drawn in by pages/partners.js. Fallback (no JS,
   reduced motion, before the canvas runs): a plain line between the numbers. */
.fflow { position: relative; }
.fflow__gfx { position: absolute; inset: -56px -40px -24px; pointer-events: none; }
.fsteps { position: relative; display: flex; gap: 20px; }
.fstep { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fstep__num { position: relative; z-index: 1; }
.fstep:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 44px;
  right: -20px;
  height: 4px;
  border-radius: 2px;
  background: var(--emerald);
  transition: opacity 400ms var(--ease-out);
}
.fflow:has(.gfx-live) .fstep::before { opacity: 0; }
/* While the ribbons draw in, each step brightens as they reach its number. */
.fflow.is-scene .fstep__copy { opacity: 0.45; transition: opacity 300ms ease; }
.fflow.is-scene .fstep.is-lit .fstep__copy { opacity: 1; }
.fstep__num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 22px; }
.fstep--last .fstep__num { background: var(--emerald); color: var(--ink); }
.fstep__copy { display: flex; flex-direction: column; gap: 16px; }
.fstep__title { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 28px; }
.fstep__text { color: var(--text-2); font-size: 16px; line-height: 25px; }

/* ── 5 · Pricing logic ───────────────────────────────────────────────── */
.fu-price { padding-block: 128px; }
.fu-price__inner { display: flex; align-items: center; gap: 80px; }
.fu-price__copy { width: 500px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.fu-price__link { color: var(--deep-green); font-size: 16px; line-height: 20px; }
.fu-price__list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.prow-list { display: flex; flex-direction: column; gap: 12px; }
.prow { display: flex; align-items: center; gap: 24px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
.prow__name { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.prow__name h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 26px; }
.prow__desc { flex: 1 1 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.prow__price { width: 190px; flex-shrink: 0; text-align: right; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 34px; }
.prow__per { color: var(--muted); font-family: var(--font-sans); font-size: 14px; font-weight: 400; }
.prow__badge { padding: 3px 9px; border-radius: var(--radius-pill); background: var(--emerald); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; line-height: 14px; }
.prow--growth { border-color: transparent; background: var(--deep-green); color: var(--paper); }
.prow--growth .prow__desc, .prow--growth .prow__per { color: var(--mint-on-green); }
.fu-price__note { padding: 4px 6px 0; color: var(--muted); font-size: 13px; line-height: 18px; }

/* ── 6 · Funder FAQ ──────────────────────────────────────────────────── */
.fu-faq { padding-block: 144px; }
.fu-faq__inner { display: flex; gap: 80px; }
.fu-faq__title { width: 440px; flex-shrink: 0; }
.fu-faq__list { flex: 1 1 0; min-width: 0; }

/* ── Tablet: stack the wide two-column sections before they crush ────── */
@media (min-width: 768px) and (max-width: 1199px) {
  .fu-hero__inner, .fu-why__head, .fu-how__head, .fu-price__inner, .fu-faq__inner { flex-direction: column; align-items: stretch; gap: 48px; }
  .fu-why__title, .fu-how__title, .fu-how__intro, .fu-price__copy, .fu-faq__title { width: auto; }
  .money { width: auto; max-width: 560px; }
  .reasons { flex-wrap: wrap; }
  .reason { flex-basis: 260px; }
  /* Steps stack, number on the left, and the ribbons run down through them. */
  .fsteps { flex-direction: column; gap: 32px; max-width: 720px; }
  .fstep { flex-direction: row; gap: 20px; }
  .fstep__copy { gap: 8px; padding-top: 8px; }
  .fflow__gfx { inset: -32px auto -32px -24px; width: 120px; }
  .fstep:not(:last-child)::before { top: 44px; bottom: -32px; left: 20px; right: auto; width: 4px; height: auto; }
}

/* ══ Mobile board (390) ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .fu-hero__inner { flex-direction: column; align-items: stretch; gap: 56px; padding-top: 104px; padding-bottom: 56px; } /* 16 + nav 52 + 24 + 12 */
  .fu-hero__copy { gap: 16px; }
  .fu-hero__ribbons { left: -300px; width: 1000px; height: 600px; transform: none; opacity: 0.3; }
  .fu-hero__title { letter-spacing: -0.03em; }
  .fu-hero__sub { font-size: 17px; line-height: 26px; }
  .fu-hero__ctas { flex-direction: column; gap: 14px; padding-top: 8px; }
  .fu-hero__cta { width: 100%; padding: 17px; }
  .fu-hero__scan { font-size: 15px; padding-block: 12px; margin-block: -12px; }

  .money { width: auto; padding: 8px; border-radius: var(--radius-card); }
  .money__item { gap: 6px; padding: 18px; }
  .money__item--rule::before { left: 0; right: 0; }
  .money__k { font-size: 11px; line-height: 14px; }
  .money__t { font-size: 21px; line-height: 25px; }
  .money__d { font-size: 14px; line-height: 20px; }
  .money__item--gets { border-radius: 18px; }

  .fu-title { letter-spacing: -0.025em; }

  .fu-why { padding-top: 72px; padding-bottom: 64px; }
  .fu-why__inner { gap: 14px; }
  .fu-why__head { flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 10px; }
  .fu-why__title { width: auto; }
  .reasons { flex-direction: column; gap: 14px; }
  .reason { gap: 10px; padding: 22px; border-radius: 22px; }
  .reason__big { font-size: 38px; line-height: 40px; }
  .reason__title { font-size: 21px; line-height: 25px; }
  .reason__text { font-size: 15px; line-height: 23px; }
  .reason__src { font-size: 12px; line-height: 17px; }

  .fu-how { padding-block: 64px; }
  .fu-how__inner { gap: 24px; }
  .fu-how__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .fu-how__title, .fu-how__intro { width: auto; }
  .fsteps { flex-direction: column; gap: 24px; }
  .fstep { flex-direction: row; gap: 14px; }
  .fstep__num { width: 36px; height: 36px; font-size: 15px; line-height: 18px; }
  .fstep__copy { gap: 6px; padding-top: 6px; }
  .fflow__gfx { inset: -24px auto -24px -16px; width: 90px; }
  .fstep:not(:last-child)::before { top: 36px; bottom: -24px; left: 16px; right: auto; width: 4px; height: auto; }
  .fstep__title { font-size: 20px; line-height: 24px; }
  .fstep__text { font-size: 15px; line-height: 23px; }

  .fu-price { padding-block: 64px; }
  .fu-price__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .fu-price__copy { width: auto; gap: 12px; padding-bottom: 10px; }
  .prow { justify-content: space-between; padding: 18px 20px; border-radius: 20px; }
  /* The name column may wrap (longer PT plan notes); the price keeps its line. */
  .prow__name { width: auto; flex-shrink: 1; min-width: 0; gap: 4px; }
  .prow--growth .prow__name { gap: 6px; }
  .prow__name h3 { font-size: 19px; line-height: 23px; }
  .prow__sub { color: var(--muted); font-size: 13px; line-height: 18px; }
  .prow__badge { padding: 3px 8px; font-size: 10px; line-height: 13px; }
  .prow__price { width: auto; white-space: nowrap; font-size: 26px; letter-spacing: 0; line-height: 30px; }
  .prow__per { font-size: 13px; }
  .fu-price__note { padding: 0; line-height: 19px; }
  .fu-price__link { font-size: 15px; }

  .fu-faq { padding-block: 64px; }
  .fu-faq__inner { flex-direction: column; gap: 0; }
  .fu-faq__title { width: auto; padding-bottom: 16px; }
}
