/* ==========================================================================
   KIP Screener — page-specific styles
   Foundations: ../colors_and_type.css + ../styles.css (shared kip-* system).
   This page is foundation-facing. Calm, credible, type-forward. No finance
   imagery, no investor language, no gradients in the chrome.
   ========================================================================== */

/* The Screener page locks the accent to the Katapult brand blue regardless of
   the shared default — blue is the product mark and the safest, most credible
   read for a grant-making audience. */
.scr-page {
  --kip-accent: var(--k-brand-blue);
  --kip-accent-deep: var(--k-deep-blue);
}

/* -------------------------------------------------------------------------
   Hero — balanced editorial two-column. The headline is a full sentence,
   so we give it a generous left measure and demote the "turn" to a lighter
   sub-headline; the supporting copy + CTA sit in a baseline-aligned aside
   on the right so the navy band reads as composed, not empty.
   ------------------------------------------------------------------------- */
.scr-hero .kip-hero__inner {
  padding-block: clamp(5.5rem, 11vw, 9rem) clamp(3rem, 5.5vw, 5.5rem);
  gap: 0;
}
.scr-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 3rem);
}
@media (min-width: 900px) {
  .scr-hero__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    align-items: end;
  }
}

.scr-hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 20ch;
}
.scr-hero h1 .scr-hero__lead { display: block; }
.scr-hero h1 .scr-hero__turn {
  display: block;
  margin-top: 0.5em;
  font-size: 0.6em;
  line-height: 1.2;
  font-weight: var(--fw-light);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.82);
}
.scr-hero--navy h1 .scr-hero__turn,
.scr-hero--photo h1 .scr-hero__turn {
  color: var(--k-white);
}
.scr-hero--photo .kip-hero__photo {
  background: url("/assets/images/bluebell.webp") center/cover no-repeat;
}

.scr-hero__aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.scr-hero .kip-hero__sub {
  max-width: 42ch;
  margin: 0;
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
/* The shared hero eyebrow + sub start at opacity:0 and rely on a keyframe to
   fade in. CSS animations are paused in some preview/embed contexts, which
   left both permanently invisible. Pin them visible — the page already has a
   robust scroll-reveal for the sections below. */
.scr-hero .kip-hero__eyebrow,
.scr-hero .kip-hero__sub {
  opacity: 1 !important;
  animation: none !important;
}

/* Faint six-dot motif bleeding off the right edge — brand texture that
   fills the band without competing with the aside copy. */
.scr-hero__motif {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 320px);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 899px) {
  .scr-hero__motif { display: none; }
}

.scr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: 0;
}
.scr-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.scr-btn svg { flex: none; }
.scr-btn--primary {
  background: var(--kip-accent);
  color: var(--k-white);
  border-color: var(--kip-accent);
}
.scr-btn--primary:hover { background: var(--kip-accent-deep); border-color: var(--kip-accent-deep); }
.scr-btn--primary:active { transform: translateY(1px); }
/* On a brand-blue hero the primary button needs to read against blue */
.scr-hero--blue .scr-btn--primary {
  background: var(--k-white);
  color: var(--k-navy);
  border-color: var(--k-white);
}
.scr-hero--blue .scr-btn--primary:hover { background: rgba(255,255,255,0.88); }

/* -------------------------------------------------------------------------
   Proof strip — slim operational credibility, directly under the hero.
   Operational numbers only (programmes, organisations, countries, years).
   ------------------------------------------------------------------------- */
.scr-proof {
  background: var(--k-off-white);
  border-bottom: 1px solid var(--border-subtle);
}
.scr-proof__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8) var(--sp-6);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
@media (min-width: 720px) {
  .scr-proof__inner { grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
}
.scr-proof__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-default);
}
.scr-proof__n {
  font-weight: var(--fw-bold);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--k-navy);
  font-feature-settings: "tnum" 1;
}
.scr-proof__n em { font-style: normal; color: var(--kip-accent); }
.scr-proof__label {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--fg2);
  max-width: 22ch;
}

/* -------------------------------------------------------------------------
   The Problem — editorial 2-col, building to the "imagine" turn.
   ------------------------------------------------------------------------- */
.scr-problem__body p {
  font-size: clamp(1.125rem, 1.3vw, 1.3125rem);
  line-height: 1.6;
  margin: 0 0 var(--sp-6);
  color: var(--fg1);
  text-wrap: pretty;
  max-width: 58ch;
}
.scr-problem__body p:last-child { margin-bottom: 0; }
.scr-problem__body .scr-status p {
  color: var(--fg2);
}
/* The pragmatic-status-quo lines, set as a tighter enumerated block */
.scr-status {
  margin: var(--sp-6) 0;
  padding-left: var(--sp-6);
  border-left: 2px solid var(--border-default);
}
.scr-status p { margin: 0 0 var(--sp-3); font-size: 1.0625rem; line-height: 1.55; }
.scr-status p:last-child { margin-bottom: 0; }

/* The turn — "It does not have to feel like this." Highlighted. */
.scr-turn {
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-default);
}
.scr-turn p {
  font-size: clamp(1.3125rem, 2.2vw, 1.875rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em;
  color: var(--k-navy) !important;
  max-width: 26ch !important;
  font-weight: var(--fw-regular);
  text-wrap: balance;
}
.scr-turn p em {
  font-style: italic;
  color: var(--kip-accent);
  font-weight: var(--fw-light);
}

/* -------------------------------------------------------------------------
   How it works — two-stage pipeline.
   ------------------------------------------------------------------------- */
.scr-how__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}
@media (min-width: 880px) {
  .scr-how__head {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--sp-10);
  }
}
.scr-how__head h2 {
  margin: 0;
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 16ch;
}
.scr-how__head p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg2);
  max-width: 40ch;
}

.scr-stages {
  display: grid;
  gap: var(--sp-6);
}
/* SPLIT layout: two cards side by side, a connecting flow between them */
.scr-stages--split {
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .scr-stages--split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
/* STEPS layout: full-width stacked rows */
.scr-stages--steps {
  grid-template-columns: 1fr;
  gap: 0;
}

.scr-stage {
  background: var(--k-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.scr-stages--steps .scr-stage {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5) clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--border-default);
  align-items: start;
}
.scr-stages--steps .scr-stage:last-child { border-bottom: 1px solid var(--border-default); }
@media (max-width: 640px) {
  .scr-stages--steps .scr-stage { grid-template-columns: 1fr; gap: var(--sp-3); }
}

.scr-stage__num {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: var(--fw-bold);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kip-accent);
}
.scr-stages--steps .scr-stage__num {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 0.9;
  color: var(--kip-accent);
  min-width: 0;
}
.scr-stage__kicker {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg2);
}
.scr-stage__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.scr-stage h3 {
  margin: 0;
  font-weight: var(--fw-bold);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.scr-stage p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg1);
  text-wrap: pretty;
  max-width: 58ch;
}

/* Closing line of How-it-works: the shortlist outputs (lock C copy). */
.scr-how__close {
  margin-top: var(--sp-10);
  background: var(--k-navy);
  color: var(--k-white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 880px) {
  .scr-how__close { grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
}
.scr-how__close-label {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.scr-how__close p {
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
  max-width: 64ch;
}
.scr-how__close p strong { color: var(--k-white); font-weight: var(--fw-bold); }

/* -------------------------------------------------------------------------
   Built by Katapult — origin story, editorial 2-col.
   ------------------------------------------------------------------------- */
.scr-origin {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: start;
}
@media (min-width: 880px) {
  .scr-origin { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 7rem); }
}
.scr-origin__head h2 {
  margin: 0;
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.scr-origin__head h2 em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--kip-accent);
}
.scr-origin__body p {
  margin: 0 0 var(--sp-6);
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg1);
  text-wrap: pretty;
  max-width: 62ch;
}
.scr-origin__body p:last-child { margin-bottom: 0; }
.scr-origin__body p:nth-child(2) { color: var(--fg2); }

/* Reserved testimonial slot — clearly empty, never fabricated. Off by default. */
.scr-testimonial {
  margin-top: var(--sp-12);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--fg2);
  background: var(--k-off-white);
}
.scr-testimonial__label {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg2);
  margin: 0 0 var(--sp-3);
}
.scr-testimonial p {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Trust / data-separation band (lock E). Calm, navy, definitive.
   ------------------------------------------------------------------------- */
.scr-trust {
  background: var(--k-navy);
  color: var(--k-white);
  position: relative;
  overflow: hidden;
}
.scr-trust__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  align-items: start;
}
@media (min-width: 880px) {
  .scr-trust__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(3rem, 7vw, 6rem); }
}
.scr-trust__eyebrow {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
}
.scr-trust__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.scr-trust h2 {
  margin: 0;
  font-weight: var(--fw-bold);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--k-white);
}
.scr-trust__body p {
  margin: 0 0 var(--sp-5);
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
  max-width: 56ch;
}
.scr-trust__body p:last-of-type { margin-bottom: var(--sp-6); }
.scr-trust__body p strong { color: var(--k-white); font-weight: var(--fw-bold); }
.scr-trust__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--k-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.scr-trust__link:hover { border-color: var(--k-white); }

/* -------------------------------------------------------------------------
   Contact — reuses .kip-contact / .kip-form from the shared system, with a
   consent row + privacy notice (GDPR / UK-GDPR for the UK/EU audience).
   ------------------------------------------------------------------------- */
.scr-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--fg2);
}
.scr-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--kip-accent);
}
.scr-consent a {
  color: var(--fg1);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.scr-consent a:hover { color: var(--kip-accent); }

/* -------------------------------------------------------------------------
   Closing CTA — restate the soft ask.
   ------------------------------------------------------------------------- */
.scr-close {
  background: var(--kip-accent);
  color: var(--k-white);
  position: relative;
  overflow: hidden;
}
.scr-close__motif {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 420px);
  z-index: 0;
  pointer-events: none;
}
.scr-close__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: clamp(4rem, 9vw, 7rem);
  align-items: center;
}
@media (min-width: 880px) {
  .scr-close__inner { grid-template-columns: minmax(0, 1.4fr) auto; gap: clamp(2.5rem, 6vw, 5rem); }
}
.scr-close h2 {
  margin: 0 0 var(--sp-5);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--k-white);
  max-width: 18ch;
}
.scr-close p {
  margin: 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 44ch;
  text-wrap: pretty;
}
.scr-close__action { display: flex; flex-direction: column; gap: var(--sp-4); }
.scr-close .scr-btn--primary {
  background: var(--k-white);
  color: var(--k-navy);
  border-color: var(--k-white);
  font-size: 1rem;
  padding: 1rem 1.75rem;
}
.scr-close .scr-btn--primary:hover { background: rgba(255, 255, 255, 0.9); }
.scr-close__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 30ch;
  line-height: 1.45;
}

/* -------------------------------------------------------------------------
   Section intro reused head (eyebrow + h2) for The Problem
   ------------------------------------------------------------------------- */
.scr-section-head h2 {
  margin: 0;
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.scr-section-head h2 em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--kip-accent);
}

/* -------------------------------------------------------------------------
   Motion — calm fade-up on scroll (matches the shared eyebrow reveal).
   ------------------------------------------------------------------------- */
.scr-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.scr-reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .scr-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
