/* ============================================================
   Winjit US - Customer success stories
   Uses the page family already established on the landing and
   industry pages: the .in-hero band with glass stat tiles, the
   .lp-story cards from the landing page, the .in-dec card grid,
   the gradient .in-impact band and the .lp-close closing band.
   Only what those do not already cover lives here.
   ============================================================ */

/* ------------------------------------------------------------
   INDEX - filter chips over the landing page story cards
   ------------------------------------------------------------ */
.cs-filters {
  display: flex; gap: 10px; margin-top: 34px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
}
.cs-filters::-webkit-scrollbar { display: none; }
.cs-chip {
  flex: 0 0 auto; padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--strokes); background: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--grey-700);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.cs-chip:hover { border-color: var(--primary); color: var(--primary); }
.cs-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cs-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.cs-grid { margin-top: 28px; transition: opacity 200ms ease; }
.cs-grid.is-swapping { opacity: 0; }
.lp-story[hidden] { display: none; }

/* placeholder until the anonymised screenshots are supplied: no stock
   imagery, by instruction */
.lp-story__media--pending {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(3, 78, 162, .05) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, var(--grad-soft-stops));
}
.lp-story__media--pending span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--grey-500);
  background: rgba(255, 255, 255, .8); padding: 6px 12px; border-radius: var(--radius-pill);
}
/* the outcome figure sits above the line, in the landing page cell style */
.cs-fig {
  font-family: var(--ff-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--primary); margin-bottom: 4px;
}
.cs-fig--words { font-family: var(--ff-base); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.3; letter-spacing: 0; }
.cs-unit { display: block; margin-bottom: 14px; font-size: 13.5px; color: var(--grey-500); }

.cs-empty {
  margin-top: 28px; padding: 34px; text-align: center;
  border: 1px dashed var(--grey-300); border-radius: var(--radius-card);
  color: var(--grey-500); font-size: 15px;
}
.cs-empty[hidden] { display: none; }

/* ------------------------------------------------------------
   STORY PAGE
   ------------------------------------------------------------ */
.cs-para { max-width: 70ch; margin: 34px 0 24px; font-size: 16px; line-height: 1.7; color: var(--grey-700); }

/* numbered challenge points, in the style of the framework notes */
.cs-points { max-width: 72ch; margin: 0; padding: 0; list-style: none; counter-reset: cs-point; }
.cs-points li {
  counter-increment: cs-point; position: relative; padding: 14px 0 14px 46px;
  border-top: 1px solid var(--grey-200); font-size: 15.5px; line-height: 1.6; color: var(--grey-700);
}
.cs-points li::before {
  content: counter(cs-point); position: absolute; left: 0; top: 13px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 13px; font-weight: 700;
}

.cs-tech {
  margin: clamp(22px, 2.5vw, 30px) 0 0; padding-top: 18px; border-top: 1px solid var(--grey-200);
  font-size: 14.5px; color: var(--grey-600);
}
.cs-tech b {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-right: 10px;
}

/* results: the gradient impact band, as a three-up row rather than a
   carousel */
.cs-results__row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 22px);
  margin-top: 34px;
}
.cs-results__row .in-imp { flex: initial; }
.cs-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: clamp(30px, 3.5vw, 44px); padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.cs-next__link { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #fff; }
.cs-next__link small {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--aurora-mint);
}
.cs-next__link svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.cs-next__link:hover svg { transform: translateX(4px); }
.cs-next .btn--primary { background: #fff; color: var(--primary); }
.cs-next .btn--primary:hover { background: var(--secondary); color: var(--grey-900); }

@media (max-width: 860px) { .cs-results__row { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .cs-next { flex-direction: column; align-items: flex-start; }
  .cs-next .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-grid { transition: none !important; }
}

/* "What Winjit built" sits on the black surface */
.cs-built .lp-gov__block { display: flex; flex-direction: column; }
.cs-built .in-dec__num { margin-bottom: 16px; }
.lp-gov .cs-tech { border-top-color: var(--midnight-card-border); color: var(--grey-400); }
.lp-gov .cs-tech b { color: var(--aurora-mint); }
