/* Salesforge rebuild, version 11, round 11: "Real results, right here", Frank's case studies inside the site.

   Every "Case Study" card and customer logo on the six pages used to lead nowhere: the case-study pages are not part of
   the rebuild, so Frank's links were taken out. Proof is what a buyer looks for just before deciding, and the site had
   numbers it could not back up with the story. Now each card and logo opens that customer's case study right here, in
   a reader on the page, with Frank's own words: his headline, the products the customer used ("Forges used"), the
   story, the quotes with the people's faces, the results, his closing words and his "Get the full case study" form.
   A library of all 16 (his "Real Customers. Real Results.") opens from the "10,000+ Businesses" grid, beside every
   "Trusted by 10,000+ Businesses" strip, under Agent Frank's logos and in the footer, with filters by product and an
   "Agencies" filter (on the Agencies page it opens filtered). Every story ends with the next step that fits it: the
   trial form, or "Hire Agent Frank" (the booking chat of round 10), and "Price this stack for my volume", which hands
   the story's own stack (its infrastructure, and Leadsforge if it used it) to the plan builder of round 2.
   Links ?customer=<story> and ?customers=<filter>; Back closes; Esc, arrows between stories, Copy link.
   New code. Works with js/stories.js (and js/stories-data.js, loaded when a story opens); classes start with st-. */

/* ---------------------------------------------------------------- the ways in, on the pages */
.st-live { cursor: pointer; }
.st-live:focus-visible { outline: 2px solid #6e40d7; outline-offset: -3px; }
/* the homepage strip: a logo's story card shows on keyboard focus too, and ends with the way in */
.logos__grid > .logo.st-live:focus-visible .logo__card { opacity: 1; visibility: visible; transform: none; }
.st-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; line-height: 1.4; font-weight: 600; color: #6e40d7; }
.st-go svg { width: 15px; height: 15px; flex: none; transition: transform .2s ease; }
.logo.st-live:hover .st-go svg { transform: translateX(3px); }
/* logo tiles (Solutions pages): the same small "Case Study" pill as Agent Frank's logos */
.st-badge {
  position: absolute; top: 6px; right: 6px; padding: 2px 6px; border: 1px solid var(--gray-200); border-radius: 9999px;
  font-size: 10px; line-height: 14px; font-weight: 500; color: var(--ink); background: var(--white);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.logos__grid > .logo.st-live { transition: background-color .25s ease; }
.logos__grid > .logo.st-live:hover { background-color: #faf8ff; }
.logo.st-live:hover .st-badge, .logo.st-live:hover .logo__badge { background: #6e40d7; border-color: #6e40d7; color: #fff; }
/* the homepage grid's logo tiles and Frank's case cards (theirs keep his own hover motion) */
.tst-tile.st-live { transition: background-color .25s ease; }
.tst-tile.st-live:hover { background-color: #faf8ff; }
.tst-tile.st-live .case-badge, .case.st-live .case-badge { transition: background .2s ease, color .2s ease, border-color .2s ease; }
.tst-tile.st-live:hover .case-badge, .case.st-live:hover .case-badge { background: #6e40d7; border-color: #6e40d7; color: #fff; }
.tst-case.st-live:hover .tst-case__badge { background: #fff; color: #6e40d7; }
.case.st-live { transition: border-color .25s ease, box-shadow .25s ease; }
.case.st-live:hover { border-color: #d6bbfb; box-shadow: 0 14px 30px -18px rgba(110, 64, 215, .55); }

/* the library buttons */
:root .st-all {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: inherit; text-align: left;
  color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.st-all__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f4ebff; color: #6e40d7; }
.st-all__icon svg { width: 18px; height: 18px; }
.st-all__text { font-weight: 600; }
.st-all__arrow { display: inline-flex; color: #6e40d7; }
.st-all__arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.st-all:hover .st-all__arrow svg { transform: translateX(3px); }
.st-all:focus-visible { outline: 2px solid #6e40d7; outline-offset: 2px; }
:root .st-all--big {
  margin-top: 22px; padding: 8px 14px 8px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--gray-200);
  font-size: 15px; line-height: 1.3; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
:root .st-all--big:hover { border-color: #6e40d7; box-shadow: 0 10px 24px -14px rgba(110, 64, 215, .7); }
:root .st-all--center { margin: 14px auto 6px; padding: 6px 12px 6px 6px; border-radius: 10px; background: #fff; border: 1px solid var(--gray-200); font-size: 14px; }
:root .st-all--center:hover { border-color: #6e40d7; }
:root .st-all--center .st-all__icon { width: 26px; height: 26px; border-radius: 7px; }
:root .st-all--inline { gap: 6px; padding: 4px 6px; margin: 0; border: 0; border-radius: 8px; background: none; font-size: 14px; line-height: 21px; color: #6e40d7; }
:root .st-all--inline .st-all__icon { width: auto; height: auto; background: none; border-radius: 0; }
:root .st-all--inline .st-all__icon svg { width: 17px; height: 17px; }
:root .st-all--inline:hover { color: #5925dc; background: #f9f5ff; }
.logos__head.st-head { gap: 4px 14px; flex-wrap: wrap; }
.logos__head.st-head .logos__title::after { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 0 3px 14px; border-radius: 50%; background: #d0d5dd; vertical-align: middle; }
.af-logos__title + .st-all { display: flex; width: max-content; max-width: 100%; }
.tst__left .st-all--big { max-width: 100%; }
/* the footer: "Case Studies" under Pricing, a button drawn like the links beside it */
:root .st-foot { background: none; border: 0; padding: 8px 0; margin: 0; text-align: left; cursor: pointer; font-family: inherit; }
@media (max-width: 991px) {
  .tst__left .st-all--big { margin-top: 16px; }
}
@media (max-width: 600px) {
  .logos__head.st-head { height: auto; min-height: 64px; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 16px; }
  .logos__head.st-head .logos__title::after { content: none; }
}

/* ---------------------------------------------------------------- the overlay */
html.st-locked, html.st-locked body { overflow: hidden; }
/* round 10's chat button and hello float above every overlay; while a story is open they would sit on its corner */
html.st-locked .bk-fab, html.st-locked .bk-hello { opacity: 0; pointer-events: none; }
.st {
  --st-bg: #fff; --st-canvas: #f9fafb; --st-card: #fff; --st-ink: #101828; --st-body: #475467; --st-muted: #667085;
  --st-line: #eaecf0; --st-line-2: #d0d5dd; --st-brand: #6e40d7; --st-brand-ink: #5925dc; --st-soft: #f4ebff; --st-hl: #6e40d7;
  --st-num: linear-gradient(95deg, #5925dc 0%, #7f56d9 45%, #a855f7 100%);
  position: fixed; inset: 0; z-index: 1970; font-family: "Inter", sans-serif; color: var(--st-ink); line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.st[hidden] { display: none; }
.st-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); opacity: 0; transition: opacity .24s ease; }
.st.is-open .st-backdrop { opacity: 1; }
.st-shell {
  position: absolute; top: 24px; bottom: 24px; left: 50%; width: min(1180px, calc(100% - 48px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--st-bg);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .06), 0 40px 100px -24px rgba(16, 24, 40, .5);
  opacity: 0; transform: translate(-50%, 18px) scale(.985);
  transition: opacity .24s ease, transform .34s cubic-bezier(.2, .8, .2, 1);
}
.st.is-open .st-shell { opacity: 1; transform: translate(-50%, 0); }
.st-shell:focus { outline: none; }
.st-shell [tabindex="-1"]:focus { outline: none; }

/* the bar: Frank's breadcrumb ("Case Studies" > the customer), previous and next, Copy link, close; reading progress */
.st-bar {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 62px; padding: 0 12px 0 16px; background: var(--st-bg); border-bottom: 1px solid var(--st-line);
}
.st-crumb { display: flex; align-items: center; gap: 2px; min-width: 0; font-size: 14px; font-weight: 500; }
.st .st-crumb__home {
  flex: none; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--st-brand);
  font: inherit; cursor: pointer; transition: background .15s ease;
}
.st .st-crumb__home:hover:not(:disabled) { background: var(--st-soft); }
.st .st-crumb__home:disabled { color: var(--st-ink); cursor: default; font-weight: 600; }
.st .st-crumb__home:focus-visible { outline: 2px solid var(--st-brand); outline-offset: 0; }
.st-crumb__sep { display: inline-flex; color: var(--st-muted); }
.st-crumb__sep svg { width: 16px; height: 16px; }
.st-crumb__here { min-width: 0; padding: 0 4px; color: var(--st-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-crumb__sep[hidden], .st-crumb__here[hidden], .st-count[hidden], .st .st-tool[hidden] { display: none; }
.st-tools { flex: none; display: flex; align-items: center; gap: 6px; }
.st .st-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; min-width: 38px; padding: 0 12px;
  border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-bg); color: var(--st-ink);
  font: 600 13.5px/1 "Inter", sans-serif; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.st .st-tool--icon { width: 38px; padding: 0; }
.st .st-tool svg { width: 18px; height: 18px; flex: none; }
.st .st-tool:hover { background: var(--st-canvas); border-color: var(--st-line-2); }
.st .st-tool:focus-visible { outline: 2px solid var(--st-brand); outline-offset: 1px; }
.st .st-tool--x { margin-left: 4px; }
.st-count { min-width: 56px; text-align: center; font-size: 13px; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.st-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.st-progress__bar {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #6e40d7, #c084fc 60%, #fb923c);
}
.st-main { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------------- the library */
.st-lib { min-height: 100%; padding: 46px 40px 56px; background: var(--st-canvas); }
.st-lib[hidden] { display: none; }
.st-lib__head { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.st-kicker {
  display: inline-block; padding: 4px 10px; border-radius: 9999px; background: var(--st-soft); color: var(--st-brand-ink);
  font-size: 12.5px; line-height: 1.4; font-weight: 600;
}
.st-lib__title { margin: 14px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 650; letter-spacing: -.025em; color: var(--st-ink); }
.st-lib__lead { margin: 0 auto; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--st-body); }
.st-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; max-width: 980px; }
.st .st-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; border-radius: 9999px;
  border: 1px solid var(--st-line); background: var(--st-card); color: var(--st-ink); font: 500 14px/1 "Inter", sans-serif;
  white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.st .st-chip:hover { border-color: var(--st-line-2); }
.st .st-chip[aria-pressed="true"] { background: var(--st-ink); border-color: var(--st-ink); color: var(--st-bg); }
.st .st-chip:focus-visible { outline: 2px solid var(--st-brand); outline-offset: 2px; }
.st-chip[data-st-filter="all"], .st-chip[data-st-filter="agencies"] { padding-left: 14px; }
.st-chip__n { font-size: 12px; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.st .st-chip[aria-pressed="true"] .st-chip__n { color: inherit; opacity: .72; }
/* a product's square: Frank's colour with the forge mark; Agent Frank is his portrait */
.st-sq { display: inline-flex; flex: none; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; }
.st-sq svg, .st-sq img { display: block; width: 100%; height: 100%; }
.st-sq__img { object-fit: cover; border-radius: inherit; }
.st-sq--chip { width: 18px; height: 18px; border-radius: 5px; }
.st-sq--sm { width: 20px; height: 20px; border-radius: 6px; }
.st-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1060px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.st-grid__item[hidden] { display: none; }
.st-grid__item.is-in { animation: st-in .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--st-i, 0) * 32ms); }
@keyframes st-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.st .st-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; height: 100%; margin: 0;
  padding: 18px 20px 20px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-card); color: var(--st-ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .2s ease, box-shadow .22s ease;
}
.st .st-card:hover { transform: translateY(-3px); border-color: #d6bbfb; box-shadow: 0 20px 40px -22px rgba(110, 64, 215, .55); }
.st .st-card:focus-visible { outline: 2px solid var(--st-brand); outline-offset: 2px; }
.st-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.st-card__forges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.st-card__metric { display: flex; flex-direction: column; gap: 3px; padding: 4px 0 14px; border-bottom: 1px solid var(--st-line); }
.st-card__v {
  font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: var(--st-num); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.st-card__l { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--st-ink); }
.st-card__s { font-size: 13px; line-height: 1.4; color: var(--st-muted); }
.st-card__title { font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--st-ink); }
.st-card--words .st-card__title { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.st-card__sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 14px; line-height: 1.5; color: var(--st-body); }
.st-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--st-brand); }
.st-card__go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.st .st-card:hover .st-card__go svg { transform: translateX(3px); }
/* a customer's logo always sits on a white tile, as on Frank's pages, so every logo reads in both looks */
.st-logo {
  flex: none; display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; max-width: 150px;
  padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #eaecf0;
}
.st-logo__img { display: block; width: auto; height: auto; max-width: 124px; max-height: 26px; object-fit: contain; }
.st-logo--lg { height: 58px; max-width: 210px; padding: 10px 16px; border-radius: 12px; }
.st-logo--lg .st-logo__img { max-width: 176px; max-height: 36px; }

/* ---------------------------------------------------------------- a story */
.st-story[hidden] { display: none; }
.st-story { padding-bottom: 56px; }
.st-wait { margin: 0; padding: 120px 24px; text-align: center; color: var(--st-muted); font-size: 15px; }
.st-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start;
  padding: 40px 44px 36px; border-bottom: 1px solid var(--st-line);
  background: radial-gradient(90% 120% at 0% 0%, rgba(110, 64, 215, .07), rgba(110, 64, 215, 0) 60%), var(--st-bg);
}
.st-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; min-width: 0; }
.st-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-brand__name { font-size: 15px; font-weight: 600; color: var(--st-ink); }
.st-brand__site { font-size: 13.5px; color: var(--st-muted); overflow-wrap: anywhere; }
.st-hero__title { margin: 0; font-size: clamp(27px, 3.1vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -.025em; color: var(--st-ink); text-wrap: balance; }
.st-hl { color: var(--st-hl); }
.st-hero__dek { margin: 18px 0 0; max-width: 62ch; font-size: 17px; line-height: 1.55; color: var(--st-body); }
.st-side { padding: 18px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-canvas); }
.st-side__label { margin: 0 0 10px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--st-muted); }
.st-forges { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.st-forge { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--st-line); border-radius: 12px; background: var(--st-card); }
.st-forge .st-sq { width: 32px; height: 32px; border-radius: 8px; }
.st-forge__text { display: flex; flex-direction: column; min-width: 0; }
.st-forge__name { font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--st-ink); }
.st-forge__tag { font-size: 12px; line-height: 1.4; color: var(--st-muted); }

/* the forms (demo mode) */
.st-form__row { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.st-form__row[hidden], .st-form__done[hidden] { display: none; }
.st-input {
  width: 100%; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--st-line-2); border-radius: 10px;
  background: #fff; color: #101828; font: 400 15px/1 "Inter", sans-serif; transition: border-color .15s ease, box-shadow .15s ease;
}
.st-input::placeholder { color: #667085; }
.st-input:focus { outline: none; border-color: #6e40d7; box-shadow: 0 0 0 4px rgba(110, 64, 215, .16); }
.st .st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px; font: 600 15px/1 "Inter", sans-serif; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.st .st-btn:disabled { opacity: .75; cursor: progress; }
.st .st-btn:focus-visible { outline: 2px solid var(--st-brand); outline-offset: 2px; }
.st .st-btn--main { background: #6e40d7; color: #fff; box-shadow: 0 10px 24px -12px rgba(110, 64, 215, .9); }
.st .st-btn--main:hover { background: #5925dc; }
.st .st-btn--dark { background: #101828; color: #fff; }
.st .st-btn--dark:hover { background: #1d2939; }
.st .st-btn--line { background: transparent; border-color: #6e40d7; color: #6e40d7; }
.st .st-btn--line:hover { background: #6e40d7; color: #fff; }
.st .st-btn--ghost { background: transparent; border-color: var(--st-line-2); color: var(--st-ink); }
.st .st-btn--ghost:hover { background: var(--st-canvas); }
.st-form__done { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #ecfdf3; color: #054f31; }
.st-form__done:focus { outline: none; }
.st-form__icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #12b76a; color: #fff; }
.st-form__icon svg { width: 14px; height: 14px; }
.st-form__words { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; }
.st-form__said { font-weight: 600; }
.st-form__demo { font-size: 12.5px; opacity: .8; }
.st-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the story itself */
.st-body { max-width: 808px; margin: 0 auto; padding: 40px 24px 8px; }
.st-p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--st-body); }
.st-p strong, .st-list strong { font-weight: 600; color: var(--st-ink); }
.st-h { margin: 40px 0 14px; font-size: 26px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; color: var(--st-ink); }
.st-body > .st-h:first-child { margin-top: 0; }
.st-h4 { margin: 26px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--st-ink); }
.st-list { margin: 0 0 20px; padding-left: 22px; font-size: 17px; line-height: 1.65; color: var(--st-body); }
.st-list li { margin: 6px 0; padding-left: 2px; }
.st-list li::marker { color: var(--st-brand); }
.st-list .st-list { margin: 6px 0 4px; }
.st-fig { margin: 6px 0 24px; }
.st-fig__img { display: block; width: auto; max-width: min(100%, 420px); height: auto; border: 1px solid var(--st-line); border-radius: 14px; }
.st-q {
  position: relative; margin: 32px 0 34px; padding: 26px 28px 22px; border: 1px solid #ebe9fe; border-radius: 18px;
  background: #fbf6fd linear-gradient(135deg, #f9f5ff, #fdf2fa 60%, #fff6ed);
}
.st-q__mark { position: absolute; top: -13px; left: 24px; display: block; width: 34px; height: 26px; color: #6e40d7; }
.st-q__mark svg { display: block; width: 100%; height: 100%; }
.st-q__text { margin: 0; font-size: 20px; line-height: 1.55; font-weight: 500; letter-spacing: -.005em; color: var(--st-ink); }
.st-q__text strong { font-weight: 650; }
.st-q__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.st-q__photo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.st-q__id { display: flex; flex-direction: column; min-width: 0; }
.st-q__name { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--st-ink); }
.st-q__role { font-size: 13.5px; line-height: 1.4; color: var(--st-muted); }

/* the results: Frank's purple first card and its neighbours; the numbers count up once */
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 30px; }
.st-stats--2, .st-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-stats--1 { grid-template-columns: minmax(0, 1fr); }
.st-stats--words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-stat {
  display: flex; flex-direction: column; gap: 6px; min-height: 140px; padding: 20px; border: 1px solid var(--st-line);
  border-radius: 16px; background: var(--st-canvas);
}
.st-stat--accent { border-color: transparent; background: #6e40d7 linear-gradient(140deg, #6e40d7, #7f56d9 55%, #9e77ed); color: #fff; box-shadow: 0 18px 40px -22px rgba(110, 64, 215, .9); }
.st-stat__v { font-size: 38px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.st-stat__l { font-size: 15.5px; line-height: 1.35; font-weight: 600; color: var(--st-ink); }
.st-stat__s { margin-top: auto; font-size: 13.5px; line-height: 1.45; color: var(--st-muted); }
.st-stat--words { min-height: 0; }
.st-stat--words .st-stat__l { font-size: 16px; line-height: 1.5; }
.st-stat--accent .st-stat__v, .st-stat--accent .st-stat__l { color: #fff; }
.st-stat--accent .st-stat__s { color: rgba(255, 255, 255, .84); }

/* Frank's closing words and the next step */
.st-cta {
  max-width: 760px; margin: 22px auto 0; padding: 30px 30px 28px; border: 1px solid #ebe9fe; border-radius: 20px;
  background: #faf2fb radial-gradient(120% 140% at 0% 0%, #f4ebff 0%, #fdf2fa 48%, #fff6ed 100%);
}
.st-cta__title { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; color: var(--st-ink); }
.st-cta__text { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--st-body); }
.st-cta__acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.st-cta .st-form { flex: 1 1 360px; min-width: 0; }
.st-cta .st-form__row { flex-direction: row; }
.st-cta .st-btn--line { background: rgba(255, 255, 255, .7); }
.st-cta .st-btn--line:hover { background: #6e40d7; }
.st-next { max-width: 760px; margin: 26px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.st .st-next__card {
  display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 18px 20px; border: 1px solid var(--st-line); border-radius: 16px;
  background: var(--st-card); color: var(--st-ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.st .st-next__card:hover { border-color: #d6bbfb; box-shadow: 0 18px 36px -24px rgba(110, 64, 215, .6); transform: translateY(-2px); }
.st .st-next__card:focus-visible { outline: 2px solid var(--st-brand); outline-offset: 2px; }
.st-next__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--st-brand); }
.st-next__label svg { width: 15px; height: 15px; }
.st-next__row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.st-next__title { font-size: 17px; line-height: 1.4; font-weight: 600; }

/* Copy link */
.st-toast {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; max-width: calc(100% - 32px); margin: 0; padding: 10px 16px;
  border-radius: 12px; background: #101828; color: #fff; font-size: 14px; font-weight: 500;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.st-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1080px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 34px 32px 30px; }
}
@media (max-width: 900px) {
  .st-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .st-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
  .st-side__label { grid-column: 1 / -1; }
  .st-cta, .st-next { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 720px) {
  .st-shell { top: 0; bottom: 0; left: 0; width: 100%; border-radius: 0; transform: translateY(18px); }
  .st.is-open .st-shell { transform: none; }
  .st-bar { height: 56px; padding: 0 8px 0 8px; }
  .st .st-tool--copy { width: 38px; padding: 0; }
  .st .st-tool--copy .st-tool__label { display: none; }
  .st-lib { padding: 30px 16px 40px; }
  .st-lib__lead { font-size: 16px; }
  .st-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 22px; padding: 2px 16px 6px; scrollbar-width: none; }
  .st-chips::-webkit-scrollbar { display: none; }
  .st-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .st-card__v { font-size: 36px; }
  .st-hero { padding: 26px 18px 24px; }
  .st-side { display: block; }
  .st-hero__dek { font-size: 16px; }
  .st-body { padding: 28px 18px 4px; }
  .st-p, .st-list { font-size: 16px; }
  .st-h { font-size: 23px; margin-top: 34px; }
  .st-q { padding: 24px 18px 18px; }
  .st-q__text { font-size: 18px; }
  .st-stats, .st-stats--2, .st-stats--4, .st-stats--words { grid-template-columns: minmax(0, 1fr); }
  .st-stat { min-height: 0; }
  .st-stat__s { margin-top: 4px; }
  .st-cta { margin: 18px 16px 0; padding: 24px 18px 22px; }
  .st-cta__title { font-size: 22px; }
  .st-cta .st-form { flex-basis: 100%; }
  .st-cta .st-form__row { flex-direction: column; }
  .st-cta__acts > .st-btn { width: 100%; }
  .st-next { margin: 22px 16px 0; }
}
@media (max-width: 560px) {
  .st-crumb__sep, .st-crumb__here, .st-count { display: none !important; }
  .st-stat__v { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-backdrop, .st-shell, .st .st-card, .st-card__go svg, .st-all__arrow svg, .st-go svg { transition: none; }
  .st-grid__item.is-in { animation: none; }
}

/* ---------------------------------------------------------------- Forge Night (round 6) */
html[data-look="night"] .st {
  --st-bg: #0e0f16; --st-canvas: #0a0b10; --st-card: #14151e; --st-ink: #f4f4fa; --st-body: #c3c5d1; --st-muted: #9597a6;
  --st-line: rgba(255, 255, 255, .09); --st-line-2: rgba(255, 255, 255, .18); --st-brand: #b7a4ff; --st-brand-ink: #c9b8ff;
  --st-soft: rgba(143, 99, 246, .16); --st-hl: #c9b8ff; --st-num: var(--n-accent);
}
html[data-look="night"] .st-backdrop { background: rgba(4, 5, 9, .74); }
html[data-look="night"] .st-shell { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -30px rgba(143, 99, 246, .45); }
html[data-look="night"] .st-hl { background: var(--n-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-look="night"] .st-hero { background: radial-gradient(90% 120% at 0% 0%, rgba(143, 99, 246, .16), rgba(143, 99, 246, 0) 60%), var(--st-bg); }
html[data-look="night"] .st-logo { box-shadow: none; }
html[data-look="night"] .st-sq--mf { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
html[data-look="night"] .st .st-card:hover, html[data-look="night"] .st .st-next__card:hover { border-color: rgba(183, 164, 255, .45); box-shadow: 0 22px 44px -24px rgba(143, 99, 246, .75); }
html[data-look="night"] .st-input { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); color: #f4f4fa; }
html[data-look="night"] .st-input::placeholder { color: #8e90a0; }
html[data-look="night"] .st-input:focus { border-color: #b7a4ff; box-shadow: 0 0 0 4px rgba(143, 99, 246, .25); }
html[data-look="night"] .st .st-btn--main { background: #7a4ae6; box-shadow: 0 12px 28px -12px rgba(143, 99, 246, .95); }
html[data-look="night"] .st .st-btn--main:hover { background: #8f63f6; }
html[data-look="night"] .st .st-btn--dark { background: #f4f4fa; color: #101828; }
html[data-look="night"] .st .st-btn--dark:hover { background: #fff; }
html[data-look="night"] .st .st-btn--line { background: transparent; border-color: rgba(183, 164, 255, .55); color: #d3c3ff; }
html[data-look="night"] .st .st-btn--line:hover { background: #7a4ae6; border-color: #7a4ae6; color: #fff; }
html[data-look="night"] .st-form__done { background: rgba(18, 183, 106, .12); color: #a6f4c5; }
html[data-look="night"] .st-q { border-color: rgba(183, 164, 255, .2); background: #1a1726 linear-gradient(135deg, rgba(143, 99, 246, .16), rgba(239, 148, 201, .08) 60%, rgba(254, 166, 104, .07)); }
html[data-look="night"] .st-q__mark { color: #b7a4ff; }
html[data-look="night"] .st-q__photo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .14); }
html[data-look="night"] .st-stat--accent { background: #6a3fd9 linear-gradient(140deg, #6339d0, #7a4ae6 55%, #9b6bf5); box-shadow: 0 20px 44px -22px rgba(143, 99, 246, .9); }
html[data-look="night"] .st-cta {
  border-color: rgba(183, 164, 255, .24);
  background: radial-gradient(120% 140% at 0% 0%, rgba(143, 99, 246, .24) 0%, rgba(239, 148, 201, .1) 50%, rgba(254, 166, 104, .08) 100%), #1b1828;
}
html[data-look="night"] .st-toast { background: #f4f4fa; color: #101828; }
html[data-look="night"] .st-progress__bar { background: var(--n-accent); }
/* the ways in, at night */
html[data-look="night"] .st-live:focus-visible { outline-color: #b7a4ff; }
html[data-look="night"] .st-go { color: #c9b8ff; }
html[data-look="night"] .st-badge { background: rgba(255, 255, 255, .05); border-color: var(--n-line-2); color: #dcdce6; }
html[data-look="night"] .logos__grid > .logo.st-live:hover, html[data-look="night"] .tst-tile.st-live:hover { background-color: rgba(143, 99, 246, .08); }
html[data-look="night"] .logo.st-live:hover .st-badge, html[data-look="night"] .logo.st-live:hover .logo__badge,
html[data-look="night"] .tst-tile.st-live:hover .case-badge, html[data-look="night"] .case.st-live:hover .case-badge { background: #7a4ae6; border-color: #7a4ae6; color: #fff; }
html[data-look="night"] .case.st-live:hover { border-color: rgba(183, 164, 255, .45); box-shadow: 0 18px 36px -20px rgba(143, 99, 246, .7); }
html[data-look="night"] .st-all { color: #f4f4fa; }
html[data-look="night"] .st-all__icon { background: rgba(143, 99, 246, .18); color: #c9b8ff; }
html[data-look="night"] .st-all__arrow { color: #c9b8ff; }
html[data-look="night"] .st-all:focus-visible { outline-color: #b7a4ff; }
html[data-look="night"] .st-all--big, html[data-look="night"] .st-all--center { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
html[data-look="night"] .st-all--big:hover, html[data-look="night"] .st-all--center:hover { border-color: rgba(183, 164, 255, .55); box-shadow: 0 12px 28px -14px rgba(143, 99, 246, .8); }
html[data-look="night"] .st-all--inline { color: #c9b8ff; }
html[data-look="night"] .st-all--inline .st-all__icon { background: none; }
html[data-look="night"] .st-all--inline:hover { color: #e4dbff; background: rgba(143, 99, 246, .12); }
html[data-look="night"] .logos__head.st-head .logos__title::after { background: rgba(255, 255, 255, .25); }
