/*
  SkySearch — /search-funds, a standalone page.

  This sheet holds the page's own sections (sfp-*) and nothing else. It loads
  after landing.css, and it does not override landing.css classes that other
  pages depend on. Constraints that are enforced by tests:

    - Every visible address on the page is @example.com (tests/sf-page.spec.ts).
    - No horizontal overflow at 320px with 150% text. Every multi-column block
      below uses minmax(min(Nrem, 100%), 1fr) for exactly that reason.
    - Gold stays "found" only. It appears on the SkySearch step of the
      workflow, the found badge, the compare column, and the evidence marks.
*/

/* ------------------------------------------------------------ hero ------- */

.sfp-nowrap { white-space: nowrap; }

@media (min-width: 62rem) {
  .sfp-hero__grid {
    display: grid;
    grid-template-columns: minmax(27rem, 36rem) 1fr;
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
  }
}
/* On a phone the workspace mock reads as the product; the copy comes second.
   The homepage's horizontal-fade scrim assumes the copy sits on the left; this
   page keeps the copy on the bottom, so the scrim is vertical instead. */
@media (max-width: 61.99rem) {
  .sfp-hero__grid { display: flex; flex-direction: column-reverse; }
  .sfp-workspace { margin-top: 0; margin-bottom: 1rem; }
  .hero.sfp-hero::before {
    background: linear-gradient(180deg, rgba(30, 58, 110, 0.6) 0%, rgba(30, 58, 110, 0.72) 34%, rgba(30, 58, 110, 0.9) 78%, rgba(30, 58, 110, 0.94) 100%);
  }
  .hero.sfp-hero { padding-block: 1.25rem 1.75rem; min-height: 0; }
  .hero.sfp-hero h1 { max-width: none; font-size: clamp(1.65rem, 7vw, 2rem); }
  .hero.sfp-hero .hero__lede { margin-top: 0.6rem; }
  .sfp-hero .search-wrap { margin-top: 0.85rem; }
  .sfp-workspace__main { padding: 0.7rem 0.85rem 0.9rem; }
  .sfp-workspace__bar { padding-bottom: 0.45rem; margin-bottom: 0.55rem; }
  .sfp-workspace__org { padding: 0.45rem 0.5rem; margin-bottom: 0.55rem; }
  .sfp-workspace__tabs { margin-bottom: 0.55rem; }
  .sfp-workspace__person { padding: 0.2rem 0.1rem 0.4rem; }
  .sfp-workspace__actions--m { margin-top: 0.55rem; }
}

/* The annotated hand-notes under the form. Gold ink, not gold type. */
.sfp-inknote {
  margin: 1rem 0 0;
  font-family: var(--font-hand, 'Segoe Script', 'Bradley Hand', cursive);
  font-size: 1.05rem;
  color: var(--gold-light);
  transform: rotate(-1.2deg);
  width: max-content;
  max-width: 100%;
  padding-top: 0.75rem; /* sits clear of the form card under it */
}

/* The product workspace mock. The composition is the point: a card that
   overdraws a source-evidence side panel, rather than a single rectangle. */
.sfp-workspace {
  position: relative;
  min-width: 0;
  padding-bottom: 1.25rem;
}
@media (min-width: 62rem) {
  .sfp-workspace { margin-top: 1.5rem; }
}

.sfp-workspace__main {
  position: relative;
  z-index: 1;
  padding: 0.9rem 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(15, 27, 45, 0.45);
}

.sfp-workspace__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.7rem;
}
.sfp-workspace__bar .brand__mark { width: 1rem; height: 1rem; }
.sfp-workspace__brand { font-weight: 700; font-size: 0.8rem; color: var(--ink); }

.sfp-workspace__search {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.sfp-workspace__search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.42rem 0.6rem;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--surface);
}
.sfp-workspace__go {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.7rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--cobalt, #1d4a9a);
  white-space: nowrap;
}

.sfp-workspace__org {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 0.7rem;
}
.sfp-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--cobalt, #1d4a9a);
}
.sfp-avatar--org { background: var(--line-strong); color: var(--ink-2); }
.sfp-avatar--person { background: var(--cobalt, #1d4a9a); }
.sfp-workspace__org > span > .sfp-workspace__orgname { display: block; font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.sfp-badge--found {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-ink);
  white-space: nowrap;
}
.sfp-workspace__orgmeta {
  display: block;
  margin-left: auto;
  font-size: 0.66rem;
  color: var(--ink-2);
  text-align: right;
  max-width: 55%;
}

.sfp-workspace__tabs {
  display: flex;
  gap: 0.3rem;
  border-bottom: 1px solid var(--line);
  margin: 0 -0.2rem 0.7rem;
  padding: 0 0.2rem;
  overflow-x: auto;
}
.sfp-workspace__tab {
  flex: none;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.sfp-workspace__tab--on {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.sfp-workspace__person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.1rem 0.5rem;
}
.sfp-workspace__who { min-width: 0; }
.sfp-workspace__name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.sfp-workspace__name .badge {
  position: static;
  padding: 0.08rem 0.4rem;
  font-size: 0.6rem;
  vertical-align: middle;
}
.sfp-workspace__role { display: block; font-size: 0.72rem; color: var(--ink-2); }
.sfp-workspace__org-small { display: block; font-size: 0.7rem; color: var(--muted); }
.sfp-workspace__example {
  margin: 0.55rem 0 0;
  font-size: 0.62rem;
  color: var(--muted);
}

.sfp-workspace__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sfp-workspace__actions span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font-size: 0.68rem;
  color: var(--ink-2);
  background: #fff;
}
/* On a phone the three ghost actions are noise: the only call to action on
   the mock is Search, which is shown as a single primary button. */
.sfp-workspace__actions--m { display: none; }
@media (max-width: 61.99rem) {
  .sfp-workspace__search { display: none; }
  .sfp-workspace__actions { display: none; }
  .sfp-workspace__actions--m {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.55rem;
    background: var(--cobalt, #1d4a9a);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
  }
}

/* Evidence side panel. On desktop it overlaps the main card; collapsed it is
   a normal block below it. */
.sfp-workspace__evidence {
  position: relative;
  padding: 0.8rem 0.9rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px -16px rgba(15, 27, 45, 0.4);
  font-size: 0.72rem;
}
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .sfp-workspace__evidence { max-width: 26rem; }
}
@media (min-width: 62rem) {
  .sfp-workspace__evidence {
    position: absolute;
    top: 1.5rem;
    right: -0.5rem;
    width: min(16.5rem, 42%);
  }
}
.sfp-workspace__ehead {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-2);
}
.sfp-srcs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.sfp-srcs li {
  min-width: 0;
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0 0.4rem;
  align-items: start;
}
.sfp-srcs svg { width: 0.9rem; height: 0.9rem; color: var(--ink-2); }
.sfp-srcs__name { grid-column: 2; font-weight: 600; color: var(--ink); }
.sfp-srcs__line { grid-column: 2; color: var(--ink-2); line-height: 1.4; }
.sfp-srcs__all {
  margin: 0.6rem 0 0;
  color: var(--cobalt-ink, #25427c);
  font-weight: 600;
  font-size: 0.68rem;
}

/* The segmented row above the hero form inputs. It routes the search by kind;
   company and the remains of person/role are still both posted. */
.sfp-seg {
  display: flex;
  gap: 0;
  padding: 0.2rem;
  background: var(--cloud);
  border-radius: 9px 9px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
}
.sfp-seg__btn {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sfp-seg__btn--on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.12);
}

/* ------------------------------------------------------------ proof ------ */

.sfp-proof { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.sfp-proof__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .sfp-proof__grid { grid-template-columns: auto 1fr auto; }
}

.sfp-proof__kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.sfp-proof__number {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.sfp-proof__line { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

.sfp-proof__swoosh {
  display: none;
  width: 100%;
  max-width: 20rem;
  color: var(--gold);
}
@media (min-width: 62rem) { .sfp-proof__swoosh { display: block; } }
.sfp-proof__ink { font-family: var(--font-hand, 'Segoe Script', 'Bradley Hand', cursive); }

.sfp-proof__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
}
@media (min-width: 62rem) {
  .sfp-proof__facts { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); }
}
.sfp-proof__facts > li { min-width: 0; }
.sfp-proof__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}
.sfp-proof__icon svg { width: 1.05rem; height: 1.05rem; }
.sfp-proof__facts b { display: block; font-size: 1.4rem; color: var(--ink); line-height: 1.1; }
.sfp-proof__facts span { display: block; font-size: 0.75rem; color: var(--ink-2); margin-top: 0.15rem; }

/* --------------------------------------------------------- opportunity --- */

.sfp-opp { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.sfp-opp .head--center h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.sfp-opp__list {
  list-style: none;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  padding: 0;
  max-width: 62rem;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.sfp-opp__item { min-width: 0; display: flex; gap: 0.85rem; align-items: flex-start; }
.sfp-opp__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #eef3fa;
  color: var(--ink-2);
}
.sfp-opp__item b { display: block; font-size: 1rem; color: var(--ink); }
.sfp-opp__item span span { display: block; margin-top: 0.3rem; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }

/* -------------------------------------------------------------- pain ----- */

.sfp-pain { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

/* Asymmetric: the figure carries the argument, the four points read as a
   plain list beside it. No boxed cards here — that shape is used enough
   elsewhere on the page (workflow, compare, stories) that a fourth uniform
   grid reads as generated rather than composed. */
.sfp-pain__layout {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 62rem) {
  .sfp-pain__layout { grid-template-columns: minmax(16rem, 21rem) 1fr; align-items: start; }
}
.sfp-pain__art { margin: 0 auto; max-width: 18rem; text-align: center; }
@media (min-width: 62rem) {
  .sfp-pain__art { margin: 0; max-width: none; text-align: left; }
}
.sfp-pain__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(15, 27, 45, 0.35);
}
.sfp-pain__ink {
  margin: 0.75rem 0 0;
  font-family: var(--font-hand, 'Segoe Script', 'Bradley Hand', cursive);
  color: var(--gold-ink);
  font-size: 0.95rem;
  transform: rotate(-1deg);
}

.sfp-pain__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.5rem);
}
.sfp-pain__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-top: clamp(1.1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}
.sfp-pain__item:first-child { padding-top: 0; border-top: none; }
.sfp-pain__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: #eef3fa;
  color: var(--ink-2);
}
.sfp-pain__body { min-width: 0; }
.sfp-pain__body b { display: block; font-size: 0.95rem; color: var(--ink); }
.sfp-pain__body p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; }
.sfp-pain__quote {
  margin: 0.55rem 0 0 !important;
  font-size: 0.85rem !important;
  font-style: italic;
  color: var(--ink) !important;
  border-left: 3px solid var(--gold-line);
  padding-left: 0.6rem;
}

/* ----------------------------------------------------------- workflow ---- */

.sfp-flow { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

/* The route: a hand-drawn dotted line that rises to meet the one step that
   is ours, so the emphasis is a place on a path, not a fourth colour. */
.sfp-flow__map { position: relative; max-width: 72rem; margin: clamp(2rem, 4vw, 2.75rem) auto 0; }
.sfp-flow__route {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1.6rem;
  color: var(--gold-ink);
  pointer-events: none;
}
@media (min-width: 62rem) {
  .sfp-flow__map { padding-top: 1.6rem; }
  .sfp-flow__route { display: block; }
}
.sfp-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(10.5rem, 100%), 1fr));
  counter-reset: sfpflow;
}
.sfp-flow__step {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
}
@media (max-width: 61.99rem) {
  .sfp-flow__step { max-width: 34rem; margin: 0 auto; }
}
.sfp-flow__step b { display: block; font-size: 0.88rem; color: var(--ink); }
.sfp-flow__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--cloud-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 0.4rem;
}
.sfp-flow__step p { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--ink-2); line-height: 1.45; }

/* The one step that is ours: gold border, gold number badge, soft tint, and
   on desktop it sits physically higher and larger than the other four, the
   peak the route rises to meet, not just a fourth colour in the same row. */
.sfp-flow__step--ours { border-color: var(--gold-line); background: var(--gold-soft); }
.sfp-flow__step--ours .sfp-flow__n { background: var(--gold); color: #fff; }
@media (min-width: 62rem) {
  .sfp-flow__step--ours {
    z-index: 2;
    transform: translateY(-0.65rem) scale(1.07);
    box-shadow: 0 22px 40px -18px rgba(122, 79, 14, 0.4);
  }
}

.sfp-flow__note {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-family: var(--font-hand, 'Segoe Script', 'Bradley Hand', cursive);
  color: var(--gold-ink);
  font-size: 1rem;
  transform: rotate(-1deg);
}

/* ----------------------------------------------------------- case study -- */

.sfp-case { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.sfp-case .band__sky-img,
.sfp-case__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.5;
}
.sfp-case .band__sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 58, 110, 0.55) 0%, rgba(30, 58, 110, 0.5) 45%, rgba(30, 58, 110, 0.7) 100%);
  pointer-events: none;
}
.sfp-case__ink {
  position: relative;
  margin: 2.5rem auto 0;
  font-family: var(--font-hand, 'Segoe Script', 'Bradley Hand', cursive);
  color: var(--gold-light);
  font-size: 1rem;
  text-align: right;
  max-width: 60rem;
  transform: rotate(-0.6deg);
}

.sfp-case__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 62rem) {
  .sfp-case__grid { grid-template-columns: minmax(20rem, 0.9fr) 2.6fr; align-items: center; }
}
.sfp-case__copy .lede { max-width: 34rem; }
.sfp-case__quote {
  margin: 1.5rem 0 0;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 32rem;
}
.sfp-case__who { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--on-sky-dim, #cbd5e8); }

.sfp-case__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: sfpcase;
}
@media (min-width: 62rem) {
  .sfp-case__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sfp-case__step {
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 0.95rem 1rem;
  box-shadow: 0 14px 34px -16px rgba(15, 27, 45, 0.55);
}
@media (max-width: 61.99rem) {
  .sfp-case__step { max-width: 34rem; margin: 0 auto; }
}
.sfp-case__step b { display: block; font-size: 0.82rem; color: var(--ink); }
.sfp-case__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold-ink);
  font-size: 0.68rem;
  font-weight: 700;
  margin-right: 0.4rem;
}
.sfp-case__step > p { margin: 0.25rem 0 0; font-size: 0.74rem; color: var(--ink-2); line-height: 1.45; }

.sfp-case__mini {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-size: 0.68rem;
}
.sfp-case__mini > span { min-width: 0; }
.sfp-case__mini b { display: block; font-size: 0.7rem; color: var(--ink); }
.sfp-case__mini span span { display: block; font-size: 0.62rem; color: var(--ink-2); }
.sfp-case__mini svg { flex: none; width: 0.9rem; height: 0.9rem; color: var(--gold-ink); }
.sfp-case__minigo {
  margin-left: auto;
  color: #fff;
  background: var(--cobalt, #1d4a9a);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}
.sfp-case__mini--draft { display: block; }
.sfp-case__mini--draft span { display: block; font-size: 0.66rem; color: var(--ink-2); }
.sfp-case__mini--draft p { margin: 0.3rem 0 0.35rem; font-size: 0.66rem; line-height: 1.45; color: var(--ink-2); }
.sfp-case__mini--draft .sfp-case__minigo { display: inline-block; }

/* ----------------------------------------------------------- compare ----- */

.sfp-compare { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.sfp-compare__grid {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  max-width: 78rem;
}
@media (min-width: 62rem) {
  .sfp-compare__grid { grid-template-columns: 0.92fr 0.92fr 0.92fr 0.92fr 1.3fr; }
}
.sfp-compare__col {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem 1.15rem;
  text-align: center;
}
@media (max-width: 61.99rem) {
  .sfp-compare__col { max-width: 34rem; margin: 0 auto; }
}
.sfp-compare__col b { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.85rem; color: var(--ink); }
.sfp-compare__col .brand__mark { width: 0.95rem; height: 0.95rem; }
.sfp-compare__what { margin: 0.25rem 0 0; font-size: 0.74rem; color: var(--ink-2); }
.sfp-compare__figs { display: flex; justify-content: center; gap: 0.22rem; margin: 0.7rem 0 0.55rem; }
.sfp-compare__figs .s-fig { width: 0.85rem; height: 0.85rem; color: var(--line-strong); }
.sfp-compare__figs .s-fig--on { color: var(--gold); fill: currentColor; }
.sfp-compare__note { margin: 0; font-size: 0.72rem; color: var(--ink-2); line-height: 1.45; }
.sfp-compare__col--ours { border-color: var(--gold-line); background: var(--gold-soft); }
.sfp-compare__col--ours .sfp-compare__note { color: var(--gold-ink); font-weight: 600; }
@media (min-width: 62rem) {
  .sfp-compare__col--ours { padding: 1.3rem 1.3rem 1.5rem; box-shadow: 0 20px 40px -22px rgba(122, 79, 14, 0.35); }
  .sfp-compare__col--ours b { font-size: 0.95rem; }
  .sfp-compare__col--ours .sfp-compare__figs .s-fig { width: 0.95rem; height: 0.95rem; }
}

/* ------------------------------------------------------------ stories ---- */

.sfp-stories { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

/* A wall, not a grid: one story is large and leads, two sit stacked beside
   it, and the fourth runs the full width underneath. Same four facts, four
   different shapes — the opposite of a repeated card. */
.sfp-stories__wall {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 62rem) {
  .sfp-stories__wall {
    grid-template-columns: 1.5fr 1fr;
    grid-template-areas: "lead b" "lead c" "wide wide";
  }
  .sfp-story--lead { grid-area: lead; }
  .sfp-story:nth-child(2) { grid-area: b; }
  .sfp-story:nth-child(3) { grid-area: c; }
  .sfp-story--wide { grid-area: wide; }
}
.sfp-story {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.15rem;
}
@media (max-width: 61.99rem) {
  .sfp-story { max-width: 34rem; margin: 0 auto; }
}
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .sfp-stories__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-story { max-width: none; }
  .sfp-flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-flow__step { max-width: none; }
}
.sfp-story--lead {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem 1.7rem;
}
.sfp-story--lead .sfp-story__q { font-size: 1.15rem; line-height: 1.5; }
.sfp-story--wide .sfp-story__col { min-width: 0; }
@media (min-width: 30rem) {
  .sfp-story--wide { display: flex; align-items: flex-start; gap: 1rem; }
  .sfp-story--wide .sfp-story__avatar { margin-top: 0.1rem; }
  .sfp-story--wide .sfp-story__q { margin-top: 0; }
}
.sfp-story__avatar {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  color: var(--cobalt, #1d4a9a);
  background: #eef3fa;
  border-radius: 999px;
  padding: 0.45rem;
}
.sfp-story__q { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink); }
.sfp-story__who { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.5rem; }
.sfp-story__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cobalt-ink, #1d4a9a);
  background: var(--cobalt-soft, #eaf0fa);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.sfp-story__flag {
  margin: 0.6rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 0.5rem;
}

/* ------------------------------------------------------------ sources ---- */

.sfp-sources { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.sfp-sources__art { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.sfp-sources__art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 16px;
}
.sfp-sources__ink {
  margin: 0.65rem auto 0;
  max-width: 72rem;
  font-family: var(--font-hand, 'Segoe Script', 'Bradley Hand', cursive);
  color: var(--gold-ink);
  font-size: 0.95rem;
  transform: rotate(-0.6deg);
}
.sfp-sources__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .sfp-sources__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr); }
}
.sfp-sources__checks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  border-radius: 10px;
  display: grid;
  gap: 0.4rem;
  max-width: 22rem;
}
.sfp-sources__checks li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; color: var(--gold-ink); font-weight: 600; }
.sfp-sources__checks svg { flex: none; width: 0.85rem; height: 0.85rem; }
.sfp-sources__stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
}
.sfp-sources__stack li { min-width: 0; text-align: center; }
.sfp-sources__stack svg { width: 1.6rem; height: 1.6rem; color: var(--ink-2); }
.sfp-sources__stack b { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--ink); }
.sfp-sources__stack span { display: block; font-size: 0.68rem; color: var(--ink-2); }

/* ------------------------------------------------------------- closing --- */

.sfp-close { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.sfp-close .head--center .h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.sfp-close__form { max-width: 34rem; margin: 1.5rem auto 0; }

/* ------------------------------------------------------------ aligned ---- */

/* Use the full hand font fallback across the page: the site ships no brand
   hand font, so cursive-family stacks are used. Kept in one place so the
   font stack can change once. */
:root { --font-hand: 'Segoe Script', 'Bradley Hand', cursive; }

/* The sky section needs its img selector namespaced so it does not touch
   other pages (the rule references .band__sky-img generically elsewhere). */
.sfp-close .band__sky-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0.55; }
.sfp-close .band__sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 58, 110, 0.45) 0%, rgba(30, 58, 110, 0.5) 45%, rgba(30, 58, 110, 0.65) 100%);
  pointer-events: none;
}
.sfp-close .band__sky, .sfp-case .band__sky { position: absolute; inset: 0; }
.sfp-close .band__sky::before, .sfp-case .band__sky::before { content: none; }

/*
  The brand mark artwork renders in gold-on-blue; in the compare column it is
  beside the site's own wordmark, so it is also the one place a colored
  product logo is not competitive with a gold found badge.
*/

/* The evidence side panel carries more weight on desktop than its absolute
   default suggested; keep it visually primary in the card pair. */
@media (min-width: 62rem) {
  .sfp-workspace__evidence { z-index: 2; }
}
/* The case study steps read better balanced: intro text left, cards in a
   2x2 grid at tablet size and a single column at phone. */
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .sfp-case__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-case__step { max-width: none; }
}
@media (min-width: 62rem) {
  .sfp-case__steps { gap: 1.4rem; }
  .sfp-case__step { padding: 1.05rem 1.1rem 1.15rem; }
}

/* The compare columns compress awkwardly on tablet; give them a row on
   medium widths before they become five columns. */
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .sfp-compare__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sfp-compare__col { max-width: none; }
  .sfp-compare__col--ours { grid-column: 1 / -1; }
}

@media (max-width: 30rem) {
  /* A narrow phone: smallest marks hide rather than shrink. */
  .sfp-workspace__orgmeta { display: none; }
  .sfp-flow__note, .sfp-case__ink { font-size: 0.9rem; }
  .sfp-proof__facts { grid-template-columns: 1fr; }
  /* The evidence panel on the hero only repeats the section below the
     fold; drop it to keep the page shorter on a phone. */
  .sfp-workspace__evidence { display: none; }
  .sfp-proof__icon { width: 1.8rem; height: 1.8rem; }
  .sfp-proof__facts b { font-size: 1.15rem; }
}
