/* ==========================================================================
   /brand-knowledge — FLOWGEN Intelligence Layer page.
   Loaded after brand-intelligence.css; only what this page adds lives here: the engine chip under the hero title,
   the "seven stages read from one layer" block, the fact-group list, the problem / capability / KPI cards and the example steps.
   ========================================================================== */

/* engine chip under the H1 (shared stage-page pattern) */
.bk .stage-engine { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); font-size: 12.5px; color: var(--fg-2); max-width: none; }
.bk .stage-engine::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fl-a, #01c2e1); }
.bk .vx-hero-copy .stage-engine + p { margin-top: 18px; }

/* a numbered part that opens right after a sub-heading sits closer to it */
.bk .ft-subhead + .section-grid > .container > .section-head { padding-top: 24px; }
.bk .ft-subhead + .section-grid > .container > .feature-grid, .bk .ft-subhead + .section-grid > .container > .bk-groups, .bk .ft-subhead + .section-grid > .container > .bk-kpis { margin-top: 32px; }
.bk .ft-subhead.bk-view { padding-top: 72px; }
.bk .ft-subhead#ui + .ft-subhead.bk-view { padding-top: 40px; }

/* ---------- The layer: seven stage chips feed one card ---------- */
.bk-layer { padding: 72px 0 32px; }
.bk-layer-head { max-width: 640px; }
.bk-layer-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; }
.bk-layer-head p { margin-top: 16px; font-size: 16px; color: var(--fg-2); max-width: 560px; }
.bk-stages { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.bk-stages a { display: flex; flex-direction: column; height: 100%; padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); color: inherit; transition: border-color .3s, background .3s, transform .5s var(--fl-expo, cubic-bezier(.19, 1, .22, 1)); }
.bk-stages a:hover { border-color: rgba(1,194,225,.5); background: rgba(1,194,225,.04); transform: translateY(-3px); }
.bk-stages b { font-size: 12px; font-weight: 600; color: var(--fl-a, #01c2e1); font-variant-numeric: tabular-nums; }
.bk-stages strong { margin-top: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bk-stages span { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--fg-2); }
/* each chip drops a line onto the layer card */
.bk-stages li { position: relative; padding-bottom: 28px; }
.bk-stages li::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 28px; background: linear-gradient(180deg, rgba(1,194,225,.15), rgba(1,194,225,.6)); }
.bk-card { position: relative; padding: 24px 28px 22px; border: 1px solid rgba(1,194,225,.4); border-radius: 16px; background: linear-gradient(180deg, rgba(1,194,225,.08), rgba(1,194,225,.012) 60%), var(--bg-1); }
.bk-card::before { content: ""; position: absolute; left: 7.14%; right: 7.14%; top: -1px; height: 1px; background: rgba(1,194,225,.6); }
.bk-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bk-card header small { font-size: 12.5px; color: var(--fg-3); }
.bk-facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.35); font-size: 13.5px; color: var(--fg); }
.bk-facts li i { width: 6px; height: 6px; border-radius: 50%; background: var(--fl-a, #01c2e1); }
.bk-card-note { margin-top: 16px; font-size: 13px; color: var(--fg-3); }

/* ---------- 01 Problem / 05 Capabilities: cards with a small status or view label ---------- */
.bk-problems .card small, .bk-caps .card small { display: inline-flex; margin-bottom: 14px; }
.bk-caps .card small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-a, #01c2e1); }
.bk-problems .card h3, .bk-caps .card h3 { font-size: 17px; }
.bk-problems .card p, .bk-caps .card p { font-size: 14px; }
.bk-problems, .bk-caps { padding-bottom: 24px; }

/* ---------- 02 What the layer holds: nine fact groups ---------- */
.bk-groups { list-style: none; margin: 0; padding: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bk-groups li { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.bk-groups b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.bk-groups b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fl-a, #01c2e1); }
.bk-groups span { font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }

/* ---------- 06 Example: steps beside the chart ---------- */
.bk-steps { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.bk-steps li { display: grid; grid-template-columns: 22px 120px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--fg-2); }
.bk-steps li::before { content: counter(s); counter-increment: s; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-size: 10.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.bk-steps b { font-weight: 500; color: var(--fg); }
.bk .split .bk-steps + .pill-tabs { margin-top: 0; }

/* ---------- 07 Metrics: KPI tiles ---------- */
.bk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bk-kpis .card small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.bk-kpis .card strong { display: block; margin-top: 12px; font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bk-kpis .card strong sub { vertical-align: baseline; font-size: 16px; color: var(--fg-3); margin-left: 4px; }
.bk-kpis .card p { margin-top: 12px; font-size: 13.5px; }
.bk-kpis-note { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 24px; font-size: 13.5px; color: var(--fg-3); }
.bk-kpis-note .demo-tag { flex: none; margin-top: 1px; }
.bk-kpis-note p { color: var(--fg-3); }

/* ---------- Final CTA on this page has no rotator; the form sits under the sub-copy ---------- */
.bk .final-cta .url-form { margin-top: 26px; }

@media (max-width: 1100px) {
  .bk-stages { grid-template-columns: repeat(4, 1fr); }
  .bk-stages li::after { display: none; }
  .bk-stages li { padding-bottom: 0; }
  .bk-card { margin-top: 20px; }
  .bk-card::before { display: none; }
  .bk-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .bk-groups { grid-template-columns: 1fr 1fr; }
  .bk .ft-subhead.bk-view { padding-top: 56px; }
}
@media (max-width: 720px) {
  .bk-stages { grid-template-columns: repeat(2, 1fr); }
  .bk-groups, .bk-kpis { grid-template-columns: 1fr; }
  .bk-steps li { grid-template-columns: 22px minmax(0, 1fr); }
  .bk-steps b { grid-column: 2; }
  .bk-steps span { grid-column: 2; }
  .bk-card { padding: 20px; }
}
