/* ==========================================================================
   The product pages (views/static-pages/product.ejs; content in lib/productPages.js).
   One visual language in the site's two themes (html[data-bs-theme], set by
   theme-toggle.js). Buttons, icons and controls are ink on paper, like the
   rest of the site: black on white by day, white on near-black by night.
   Colour is kept for the highlighted word, the charts and what carries
   meaning (delivered, rejected, held). Tokens are local to .sfp; the only rules that reach
   outside it adapt the shared navbar and footer on this page alone, through
   body:has(#sfp).
   ========================================================================== */

.sfp {
  --bg: #ffffff;
  --bg-2: #f7f9fc;
  --surface: #ffffff;
  --elev: #f2f6fc;
  --line: #e1e7f0;
  --line-2: #cfd8e6;
  --fg: #111827;
  --muted: #5b6b82;
  --accent: #111827;       /* ink: icons, controls, selected states */
  --accent-hover: #000000;
  --accent-soft: #f1f3f6;
  --on-accent: #ffffff;
  --brand: #2563eb;        /* the highlighted word, content icons and the charts */
  --brand-2: #7c3aed;
  --brand-soft: #eef4ff;
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-hover: #2a2a2a;
  --ok: #15803d;
  --ok-soft: #e8f6ee;
  --bad: #c62828;
  --bad-soft: #fdecec;
  --warn: #a15c07;
  --warn-soft: #fdf3e1;
  --warn-fill: #f59e0b;
  --info: #2563eb;
  --info-soft: #eff6ff;
  --violet: #7c3aed;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -14px rgba(15, 23, 42, .16);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 40px 80px -30px rgba(15, 23, 42, .28);
  --wave: rgba(37, 99, 235, .09);
  --radius: 14px;

  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;
}
[data-bs-theme="dark"] .sfp {
  --bg: #08090b;
  --bg-2: #0d0e11;
  --surface: #111317;
  --elev: #181b20;
  --line: #22252b;
  --line-2: #2a2e35;
  --fg: #f5f5f5;
  --muted: #a1a1aa;
  --accent: #f5f5f5;
  --accent-hover: #ffffff;
  --accent-soft: #1b1e23;
  --on-accent: #0b0c0e;
  --brand: #60a5fa;
  --brand-2: #a78bfa;
  --brand-soft: rgba(96, 165, 250, .13);
  --btn-bg: #f5f5f5;
  --btn-fg: #0b0c0e;
  --btn-hover: #d9d9de;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, .13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .13);
  --warn-fill: #fbbf24;
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, .14);
  --violet: #a78bfa;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 16px 36px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 100px -40px rgba(0, 0, 0, .95);
  --wave: rgba(96, 165, 250, .1);
}
.sfp *, .sfp *::before, .sfp *::after { box-sizing: border-box; }
/* The site's base styles space paragraphs and list items; the page sets its own rhythm. */
.sfp p, .sfp ul, .sfp ol, .sfp dl, .sfp dd, .sfp figure, .sfp h1, .sfp h2, .sfp h3 { margin: 0; }
.sfp ul, .sfp ol { padding: 0; list-style: none; }
.sfp ul li, .sfp ol li { margin: 0; }
.sfp svg { flex: none; }
.sfp-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.sfp, .sfp-ico, .sfp-step, .sfp-benefit, .sfp-dash, .sfp-dash-panel, .sfp-kpi { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }

/* — Type ----------------------------------------------------------------- */
.sfp .sfp-h1 { color: var(--fg); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.sfp .sfp-h2 { color: var(--fg); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.sfp .sfp-h3 { color: var(--fg); font-size: 1.12rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.sfp-hl { color: var(--brand); }
.sfp .sfp-lede { margin-top: 1.1rem; max-width: 30rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.45; }
.sfp .sfp-sub { margin-top: .8rem; max-width: 42rem; color: var(--muted); font-size: 1.06rem; }
.sfp .sfp-eyebrow { margin-bottom: .7rem; color: var(--muted); font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.sfp-head { margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.sfp-head--center { text-align: center; }
.sfp-head--center .sfp-sub { margin-left: auto; margin-right: auto; }
.sfp .sfp-fine { margin-top: 1.4rem; color: var(--muted); font-size: .82rem; max-width: 46rem; }
.sfp .sfp-fine--center { margin-left: auto; margin-right: auto; text-align: center; }
.sfp .sfp-demo-note { margin-top: .8rem; color: var(--muted); font-size: .8rem; text-align: center; }
.sfp a:not(.sfp-btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* — Buttons, icons, badges ------------------------------------------------ */
.sfp-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.sfp .sfp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  padding: .7rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; line-height: 1.1; text-decoration: none !important; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sfp .sfp-btn:focus-visible, .sfp button:focus-visible, .sfp a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sfp .sfp-btn--primary { background: var(--btn-bg); color: var(--btn-fg) !important; }
.sfp .sfp-btn--primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.sfp .sfp-btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--fg) !important; }
.sfp .sfp-btn--ghost:hover { border-color: var(--fg); background: var(--accent-soft); }
.sfp-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.sfp-ico--sm { width: 36px; height: 36px; border-radius: 10px; }
.sfp-badge { display: inline-block; padding: .16rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.sfp-badge--ok { background: var(--ok-soft); color: var(--ok); }
.sfp-badge--bad { background: var(--bad-soft); color: var(--bad); }
.sfp-badge--warn { background: var(--warn-soft); color: var(--warn); }
.sfp-badge--info { background: var(--info-soft); color: var(--info); }
.sfp-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .72rem; font-weight: 650; white-space: nowrap; }
.sfp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* — Hero ----------------------------------------------------------------- */
.sfp-hero { position: relative; padding: calc(var(--nav, 64px) + clamp(2.6rem, 5vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4.5rem); background: linear-gradient(180deg, var(--bg-2), var(--bg) 78%); }
/* Soft data waves behind the hero; nothing sits on top of the text. */
.sfp-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% 18%, var(--wave), transparent 70%),
    radial-gradient(48% 46% at 4% 96%, var(--wave), transparent 70%),
    repeating-radial-gradient(circle at 108% 112%, transparent 0 34px, var(--wave) 34px 35px);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.sfp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: center; }
.sfp .sfp-product { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; color: var(--fg); font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.sfp-product b { font-weight: 700; }
.sfp-product-logo { width: auto; height: 56px; flex: none; }
.sfp-product-name { display: grid; line-height: 1.08; letter-spacing: -.025em; }
.sfp-product-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #0a0a0a; color: #fff; }
[data-bs-theme="dark"] .sfp-product-ico { background: #f8fafc; color: #0b1220; }
.sfp-works { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.sfp .sfp-works ul { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.sfp .sfp-works li { display: inline-flex; align-items: center; gap: .4rem; color: var(--fg); font-weight: 600; }
.sfp .sfp-works li svg { color: var(--accent); }

/* — Hero console (a demonstration drawn in HTML) -------------------------- */
.sfp-dash-wrap { min-width: 0; perspective: 2200px; }
.sfp-dash {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.35;
  transform: rotateY(-4deg) rotateX(1.5deg); transform-origin: 0 50%;
}
.sfp-dash-side { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; background: var(--bg-2); border-right: 1px solid var(--line); }
.sfp-dash-brand { display: flex; align-items: center; gap: 7px; margin: 2px 4px 12px; font-size: 11.5px; white-space: nowrap; line-height: 1.1; letter-spacing: -.02em; color: var(--fg); }
.sfp-dash-brand img { width: auto; height: 24px; flex: none; }
.sfp-dash-brand b { font-weight: 700; }
.sfp-dash-navs { display: flex; flex-direction: column; gap: 3px; }
.sfp-dash-navs small { margin: 8px 8px 2px; color: var(--muted); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.sfp .sfp-dash-nav { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; text-align: left; white-space: nowrap; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.sfp .sfp-dash-nav:hover { background: var(--accent-soft); color: var(--fg); }
.sfp .sfp-dash-nav.is-active { background: var(--surface); color: var(--fg); font-weight: 650; box-shadow: 0 0 0 1px var(--line-2); }
.sfp .sfp-dash-nav.is-active svg { color: var(--brand); }
.sfp-dash-main { min-width: 0; padding: 14px; display: grid; gap: 10px; align-content: start; min-height: 318px; }
.sfp-dash-view { display: none; gap: 10px; }
.sfp-dash-view.is-active { display: grid; animation: sfp-fade .28s ease both; }
.sfp-dash-note { display: none; }
.sfp .sfp-dash-explain { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font-size: 12.5px; line-height: 1.45; min-height: 58px; }
.sfp-dash-explain-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; flex: none; }
.sfp-dash-explain.is-fresh [data-sfp-explain-text] { animation: sfp-fade .3s ease both; }
/* Anything that can be picked in the console. */
.sfp [data-sfp-pick]:not(.sfp-minibtn) { cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.sfp .sfp-kpi { font: inherit; text-align: left; color: inherit; }
.sfp .sfp-kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.sfp .sfp-kpi.is-picked { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.sfp .sfp-dash-threats button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 6px; border: 0; border-radius: 7px; background: transparent; color: var(--fg); font: inherit; font-size: 11.5px; white-space: nowrap; }
.sfp .sfp-dash-threats button b { margin-left: auto; padding-left: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sfp .sfp-dash-threats button:hover, .sfp .sfp-dash-threats button.is-picked { background: var(--accent-soft); }
.sfp .sfp-rows { display: grid; }
.sfp .sfp-rows li { border-top: 1px solid var(--line); }
.sfp .sfp-rows li:first-child { border-top: 0; }
.sfp .sfp-rows button:not(.sfp-minibtn):not(.sfp-switch), .sfp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: inherit; text-align: left; }
.sfp .sfp-rows button:not(.sfp-minibtn):not(.sfp-switch):hover, .sfp .sfp-rows button.is-picked:not(.sfp-minibtn):not(.sfp-switch) { background: var(--accent-soft); }
.sfp-row-main { min-width: 0; margin-right: auto; display: grid; }
.sfp-row-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-row-main small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-row-end { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sfp .sfp-minibtn { padding: 4px 12px; border: 1px solid var(--btn-bg); border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.sfp .sfp-minibtn:disabled { background: transparent; border-color: var(--line-2); color: var(--muted); cursor: default; }
.sfp .sfp-switch { position: relative; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; flex: none; transition: background-color .2s ease; }
.sfp .sfp-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.sfp .sfp-switch[aria-checked="true"] { background: var(--ok); }
.sfp .sfp-switch[aria-checked="true"]::after { transform: translateX(14px); }
/* — Quarantine demonstration (public/assets/js/mail-demo.js) ----------------- */
.sfp-q { display: grid; gap: 10px; }
.sfp-q-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sfp-q-head b { display: block; color: var(--fg); font-size: 14px; font-weight: 700; }
.sfp-q-head small { color: var(--muted); font-size: 11.5px; }
.sfp .sfp-q-reset { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.sfp .sfp-q-reset:hover { color: var(--fg); border-color: var(--fg); }
.sfp-q-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sfp-q-kpis:empty { display: none; }
.sfp-q-kpis div { padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); min-width: 0; }
.sfp-q-kpis small { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-q-kpis b { color: var(--fg); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sfp-q-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--accent-soft); width: fit-content; max-width: 100%; }
.sfp .sfp-q-tabs button { padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sfp .sfp-q-tabs button.is-active { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(15, 23, 42, .14); }
.sfp .sfp-q-list { display: grid; }
.sfp .sfp-q-list li { border-top: 1px solid var(--line); }
.sfp .sfp-q-list li:first-child { border-top: 0; }
.sfp .sfp-q-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: inherit; text-align: left; }
.sfp button.sfp-q-row { cursor: pointer; transition: background-color .18s ease; }
.sfp button.sfp-q-row:hover { background: var(--accent-soft); }
.sfp-q-main { min-width: 0; margin-right: auto; display: grid; }
.sfp-q-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-q-main small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-q-go { color: var(--muted); font-size: 16px; }
.sfp .sfp-q-empty { padding: 18px 6px; color: var(--muted); text-align: center; }

/* Console rows: an icon tile, what it is, and its figures at the end. */
.sfp .sfp-items { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sfp .sfp-items > li { border-top: 1px solid var(--line); }
.sfp .sfp-items > li:first-child, .sfp .sfp-items > li[hidden] + li:not([hidden]):first-of-type { border-top: 0; }
.sfp .sfp-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; background: var(--surface); color: var(--fg); font: inherit; text-align: left; }
.sfp button.sfp-item { cursor: pointer; transition: background-color .18s ease; }
.sfp button.sfp-item:hover, .sfp button.sfp-item.is-picked { background: var(--bg-2); }
.sfp-item-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.sfp-item-main { min-width: 0; margin-right: auto; display: grid; gap: 1px; }
.sfp-item-main b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-item-main small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-item-main em { font-style: normal; font-weight: 650; }
.sfp-t-ok { color: var(--ok); }
.sfp-t-warn { color: var(--warn); }
.sfp-t-bad { color: var(--bad); }
.sfp-t-info { color: var(--info); }
.sfp-item-end { display: grid; justify-items: end; gap: 3px; flex: none; }
.sfp-item-end b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sfp-item-end small { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.sfp-search { display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.sfp-search span { display: inline-flex; }
.sfp .sfp-search input { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font: inherit; font-size: 12px; box-shadow: none; }
.sfp-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sfp-q-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* The review panel: a wide drawer on a desk, the whole screen on a phone. */
html.sfp-locked { overflow: hidden; }
.sfp-layer { position: fixed; inset: 0; z-index: 100000; }
.sfp-layer[hidden] { display: none; }
.sfp-layer-shade { position: absolute; inset: 0; background: rgba(8, 9, 11, .55); opacity: 0; transition: opacity .2s ease; }
.sfp-layer.is-open .sfp-layer-shade { opacity: 1; }
.sfp-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5); transform: translateX(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease; outline: 0; }
.sfp-layer.is-open .sfp-drawer { transform: none; opacity: 1; }
.sfp-d-head { padding: 18px 22px 0; border-bottom: 1px solid var(--line); }
.sfp-d-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sfp .sfp-d-close { width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 10px; background: transparent; color: var(--fg); font-size: 1.1rem; cursor: pointer; }
.sfp .sfp-d-close:hover { background: var(--accent-soft); }
.sfp .sfp-d-head h3 { margin-top: .2rem; color: var(--fg); font-size: 1.3rem; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sfp .sfp-d-head > p { margin-top: .3rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.sfp .sfp-d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sfp-d-profile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; color: var(--fg); font-size: .9rem; font-weight: 600; }
.sfp-d-profile div, .sfp-d-tabs { display: flex; gap: 4px; }
.sfp-d-profile div { padding: 3px; border-radius: 999px; background: var(--accent-soft); }
.sfp .sfp-d-profile button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.sfp .sfp-d-profile button.is-active { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(15, 23, 42, .16); }
.sfp-d-tabs { margin-top: .9rem; overflow-x: auto; scrollbar-width: none; }
.sfp .sfp-d-tabs button { padding: .6rem .8rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.sfp .sfp-d-tabs button.is-active { color: var(--fg); border-bottom-color: var(--brand); }
.sfp-d-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px; animation: sfp-fade .2s ease both; }
.sfp .sfp-d-body h4 { margin: 1.2rem 0 .5rem; color: var(--fg); font-size: .95rem; font-weight: 650; }
.sfp-d-verdict { padding: .9rem 1rem; border-radius: 12px; border: 1px solid transparent; }
.sfp-d-verdict b { color: var(--fg); font-weight: 700; }
.sfp .sfp-d-verdict p { margin-top: .25rem; color: var(--fg); font-size: .92rem; opacity: .85; }
.sfp-d-verdict--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn-fill) 35%, transparent); }
.sfp-d-verdict--bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.sfp .sfp-d-checks { display: grid; border: 1px solid var(--line); border-radius: 10px; }
.sfp .sfp-d-checks li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border-top: 1px solid var(--line); color: var(--fg); font-size: .92rem; }
.sfp .sfp-d-checks li:first-child { border-top: 0; }
.sfp .sfp-d-facts { display: grid; gap: .1rem; }
.sfp-d-facts div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .8rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.sfp-d-facts div:first-child { border-top: 0; }
.sfp-d-facts dt { color: var(--muted); }
.sfp-d-facts dd { color: var(--fg); overflow-wrap: anywhere; }
.sfp .sfp-d-facts--box { margin: 1rem 0; padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.sfp-d-preview { padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.sfp .sfp-d-preview p { margin-top: .6rem; color: var(--fg); font-size: .95rem; }
.sfp .sfp-d-preview .sfp-d-safe { margin: 0; color: var(--muted); font-size: .82rem; }
.sfp-d-headers { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--fg); font: .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.sfp .sfp-d-audit { display: grid; gap: .9rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.sfp .sfp-d-audit li { position: relative; display: grid; gap: .1rem; }
.sfp .sfp-d-audit li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.sfp-d-audit small { color: var(--muted); font-size: .8rem; }
.sfp-d-audit span { color: var(--fg); font-size: .93rem; }
.sfp-d-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.sfp-d-foot small, .sfp .sfp-d-done { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; text-align: center; }
.sfp .sfp-d-btn { min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.sfp .sfp-d-btn:hover:not(:disabled) { border-color: var(--fg); }
.sfp .sfp-d-btn--main { grid-column: 1 / -1; border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); }
.sfp .sfp-d-btn--main:hover:not(:disabled) { background: var(--btn-hover); }
.sfp .sfp-d-btn:disabled { opacity: .5; cursor: default; }
.sfp-modal { position: absolute; left: 50%; top: 50%; width: min(460px, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow-y: auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); transform: translate(-50%, -50%); animation: sfp-pop .2s ease both; outline: 0; }
.sfp-modal[hidden] { display: none; }
@keyframes sfp-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.sfp .sfp-modal h3 { color: var(--fg); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.sfp .sfp-modal > p { margin-top: .4rem; color: var(--muted); font-size: .93rem; }
.sfp-d-field { display: grid; gap: .35rem; margin-top: .9rem; color: var(--fg); font-size: .88rem; font-weight: 600; }
.sfp .sfp-d-field select, .sfp .sfp-d-field textarea { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 400; }
.sfp-d-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: 1.1rem; }
.sfp-d-row .sfp-d-btn--main { grid-column: auto; }
.sfp .sfp-d-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: 1rem; }
.sfp .sfp-d-steps li { padding: .5rem .4rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.sfp .sfp-d-steps li.is-now { border-color: var(--brand); color: var(--fg); background: var(--brand-soft); }
.sfp .sfp-d-steps li.is-done { border-color: transparent; color: var(--ok); background: var(--ok-soft); }

/* — Review and release flow ------------------------------------------------- */
.sfp .sfp-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.sfp .sfp-stages li { position: relative; display: grid; justify-items: start; gap: .2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sfp-stages li i { position: absolute; top: 1.2rem; right: 1.2rem; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--fg); font-size: .8rem; font-style: normal; font-weight: 700; }
.sfp-stages li b { margin-top: .8rem; color: var(--fg); font-weight: 650; }
.sfp-stages li > span:last-child { color: var(--muted); font-size: .92rem; }
.sfp .sfp-stages-note { display: flex; align-items: flex-start; gap: .9rem; margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .95rem; }
.sfp-stages-note b { color: var(--fg); }

/* Picking a figure dims the other series of the chart. */
.sfp-chart .sfp-line, .sfp-chart .sfp-point, .sfp-chart .sfp-area { transition: opacity .25s ease; }
.sfp-chart[data-series="a"] .sfp-line--b, .sfp-chart[data-series="a"] .sfp-line--c,
.sfp-chart[data-series="b"] .sfp-line--a, .sfp-chart[data-series="b"] .sfp-line--c, .sfp-chart[data-series="b"] .sfp-point, .sfp-chart[data-series="b"] .sfp-area,
.sfp-chart[data-series="c"] .sfp-line--a, .sfp-chart[data-series="c"] .sfp-line--b, .sfp-chart[data-series="c"] .sfp-point, .sfp-chart[data-series="c"] .sfp-area { opacity: .14; }
.sfp-chart[data-series="b"] .sfp-line--b, .sfp-chart[data-series="c"] .sfp-line--c { stroke-width: 3; }
/* The accepted line draws itself when the console appears. */
.sfp-line--a { stroke-dasharray: 1400; animation: sfp-plot 1.6s ease .3s both; }
@keyframes sfp-plot { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.sfp-dash-head { display: flex; align-items: center; gap: 10px; }
.sfp-dash-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: none; }
.sfp-dash-title { min-width: 0; margin-right: auto; display: grid; }
.sfp-dash-title b { font-size: 14px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-dash-title small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfp-dash-period { padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--fg); font-weight: 600; font-size: 11px; white-space: nowrap; }
.sfp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sfp-kpi { display: grid; gap: 2px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.sfp-kpi-l { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; }
.sfp-kpi-l i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; flex: none; }
.sfp-tone-ok { background: var(--ok-soft); color: var(--ok); }
.sfp-tone-info { background: var(--info-soft); color: var(--info); }
.sfp-tone-bad { background: var(--bad-soft); color: var(--bad); }
.sfp-tone-warn { background: var(--warn-soft); color: var(--warn); }
.sfp-kpi b { color: var(--fg); font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sfp-kpi small { font-size: 10.5px; font-weight: 650; }
.sfp-up { color: var(--ok); }
.sfp-down { color: var(--bad); }
.sfp-dash-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 8px; }
.sfp-dash-panel { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.sfp-dash-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sfp-dash-ph b { color: var(--fg); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.sfp-dash-ph b span { color: var(--muted); font-weight: 400; }
.sfp-legend { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.sfp-legend i { width: 7px; height: 7px; border-radius: 50%; margin-left: 5px; }
.sfp-dot-a { background: var(--brand); }
.sfp-dot-b { background: var(--bad); }
.sfp-dot-c { background: var(--violet); }
.sfp-chart { display: block; width: 100%; height: auto; }
.sfp-chart-grid { stroke: var(--line); stroke-width: 1; }
.sfp-chart-tick { fill: var(--muted); font-size: 14px; }
.sfp-area-a { stop-color: var(--brand); stop-opacity: .26; }
.sfp-area-b { stop-color: var(--brand); stop-opacity: 0; }
.sfp-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfp-line--a { stroke: var(--brand); }
.sfp-line--b { stroke: var(--bad); stroke-width: 1.5; }
.sfp-line--c { stroke: var(--violet); stroke-width: 1.5; }
.sfp-point { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; }
.sfp .sfp-dash-threats ul { display: grid; }
.sfp .sfp-dash-threats li { border-top: 1px solid var(--line); }
.sfp .sfp-dash-threats li:first-child { border-top: 0; }
.sfp-dash-threats li i { display: inline-flex; }
.sfp-c-bad { color: var(--bad); }
.sfp-c-warn { color: var(--warn-fill); }
.sfp-c-info { color: var(--info); }

/* — Sections ------------------------------------------------------------- */
.sfp-section { padding: clamp(3.2rem, 6.5vw, 5.5rem) 0; }
.sfp-section--tight { padding-top: 0; }
.sfp-section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* — Protection flow ------------------------------------------------------- */
.sfp-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.2rem; }
.sfp .sfp-step {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .3rem; padding: 1.3rem .7rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  color: var(--fg); font: inherit; text-align: center; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background-color .25s ease;
}
/* The connector to the next step. */
.sfp .sfp-step:not(:last-child)::after {
  content: ""; position: absolute; left: calc(100% + .7rem); top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem;
  border-top: 1.6px solid var(--muted); border-right: 1.6px solid var(--muted); transform: rotate(45deg) scale(.7); pointer-events: none;
}
.sfp .sfp-step:hover { border-color: var(--accent); transform: translateY(-2px); }
.sfp-js .sfp-step.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); transform: translateY(-3px); }
.sfp-js .sfp-step.is-active .sfp-step-ico { background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; transform: scale(1.06); }
/* The icon of the step just selected draws itself in. */
.sfp-js .sfp-step.is-active .sfp-step-ico path { stroke-dasharray: 100; animation: sfp-draw .8s ease both; }
@keyframes sfp-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
/* A beam runs along the flow, from reception to delivery. */
.sfp-steps { position: relative; padding-top: 22px; }
.sfp-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent); }
.sfp-steps::after { content: ""; position: absolute; top: -1px; left: 0; width: 120px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent); animation: sfp-beam 4.5s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes sfp-beam { from { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: calc(100% - 120px); opacity: 0; } }
.sfp-step-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .3rem; border-radius: 13px; background: var(--brand-soft); color: var(--brand); transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.sfp-step b { font-size: .98rem; font-weight: 650; line-height: 1.25; }
.sfp-step small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.sfp-stepinfo { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.sfp-stepinfo-n { padding: .2rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .76rem; font-weight: 650; white-space: nowrap; }
.sfp-stepinfo b { color: var(--fg); font-weight: 650; }
.sfp .sfp-stepinfo p { margin-top: .2rem; color: var(--muted); max-width: 52rem; }
/* With the script the six explanations become one panel that follows the selected step. */
.sfp-js .sfp-stepinfo { display: none; margin-top: 1.4rem; }
.sfp-js .sfp-stepinfo.is-active { display: flex; animation: sfp-fade .3s ease both; }
@keyframes sfp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* — Benefits -------------------------------------------------------------- */
.sfp-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.sfp-benefit { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem 7rem 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.sfp-benefit:hover { border-color: var(--line-2); }

.sfp .sfp-benefit p { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.sfp-art { position: absolute; right: -.4rem; bottom: -.6rem; width: 7.2rem; height: 6rem; transition: transform .3s ease; }
.sfp-benefit:hover .sfp-art { transform: translateY(-4px); }
.sfp-art-a { fill: var(--brand); opacity: .34; }
.sfp-art-b { fill: var(--brand); opacity: .15; }
.sfp-art-c { fill: var(--brand-2); opacity: .7; }
.sfp-art > * { transform-box: fill-box; transform-origin: 50% 100%; animation: sfp-float 3.6s ease-in-out infinite; }
.sfp-art > :nth-child(2) { animation-delay: -.9s; }
.sfp-art > :nth-child(3) { animation-delay: -1.8s; }
.sfp-art > :nth-child(4) { animation-delay: -2.7s; }
.sfp-art--bars > * { animation-name: sfp-grow; }
@keyframes sfp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sfp-grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }

/* — Capabilities ----------------------------------------------------------- */
.sfp-caps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.sfp .sfp-figs { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sfp-figs dt { color: var(--fg); font-size: 2.3rem; line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sfp-figs dt em { margin-left: .2rem; color: var(--muted); font-size: .45em; font-style: normal; font-weight: 650; letter-spacing: 0; }
.sfp-figs dd { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.sfp-figs sup { color: var(--accent); }
.sfp .sfp-caplist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.sfp .sfp-caplist li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.sfp-caplist b { display: block; color: var(--fg); font-weight: 650; }
.sfp-caplist span:not(.sfp-ico) { color: var(--muted); font-size: .92rem; }

/* — Threat classification -------------------------------------------------- */
.sfp-class { padding: clamp(1.2rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sfp-class-bar { display: flex; gap: 3px; height: 14px; }
.sfp-class-bar i { flex: 1 1 0; min-width: 8px; border-radius: 4px; }
.sfp-seg-ok { background: var(--brand); }
.sfp-seg-warn { background: var(--warn-fill); }
.sfp-seg-bad { background: var(--bad); }
.sfp-seg-info { background: var(--violet); }
.sfp .sfp-class-keys { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.sfp .sfp-class-keys li { display: inline-flex; align-items: center; gap: .5rem; }
.sfp-class-keys i { width: 9px; height: 9px; border-radius: 3px; }
.sfp-class-keys b { color: var(--fg); font-variant-numeric: tabular-nums; }
.sfp .sfp-samples { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.sfp .sfp-samples li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) minmax(0, 1fr); gap: .4rem 1.2rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.sfp-samples .sfp-badge { justify-self: start; }
.sfp-samples b { display: block; color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.sfp-samples span:not(.sfp-badge) { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

/* — Integrations ----------------------------------------------------------- */
.sfp .sfp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sfp .sfp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sfp .sfp-cards > li { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sfp-cards > li > b { display: block; margin-top: .9rem; color: var(--fg); font-size: 1.05rem; font-weight: 650; }
.sfp .sfp-cards p { margin-top: .3rem; color: var(--muted); font-size: .93rem; }
.sfp .sfp-points { margin-top: .7rem; display: grid; gap: .35rem; }
.sfp .sfp-points li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: .88rem; }
.sfp .sfp-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* — Hero panel (products without a console of their own) -------------------- */
.sfp-panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); min-width: 0; }
.sfp-panel header { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.sfp-panel header b { display: block; color: var(--fg); font-size: 1.15rem; font-weight: 700; }
.sfp-panel header span:not(.sfp-ico) { color: var(--muted); font-size: .93rem; }
.sfp .sfp-panel li { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.sfp .sfp-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.sfp-panel li i { display: grid; place-items: center; width: 24px; height: 24px; margin-top: .1rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.sfp-panel li b { display: block; color: var(--fg); font-weight: 650; }
.sfp-panel li span { color: var(--muted); font-size: .93rem; }

/* — Architecture ----------------------------------------------------------- */
.sfp-arch { padding: clamp(1.2rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sfp-arch-flow { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1.25fr) 92px minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; }
.sfp-arch-node { display: grid; justify-items: center; gap: .25rem; padding: 1.2rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); text-align: center; }
.sfp-arch-node b { margin-top: .5rem; color: var(--fg); font-weight: 650; }
.sfp-arch-node span:not(.sfp-ico) { color: var(--muted); font-size: .86rem; }
/* The path between two nodes. Envelopes travel along it: mixed mail goes in,
   only clean mail comes out. */
.sfp-arch-link { position: relative; height: 2px; margin: 0 5px; background: var(--line-2); }
.sfp-arch-link::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.sfp-arch-link svg { position: absolute; top: -8px; left: 0; width: 16px; height: 16px; padding: 1px; border-radius: 4px; background: var(--surface); animation: sfp-mail-x 3.2s linear infinite; opacity: 0; }
.sfp-arch-link svg:nth-child(2) { animation-delay: 1.05s; }
.sfp-arch-link svg:nth-child(3) { animation-delay: 2.1s; }
.sfp-mail-ok { color: var(--ok); }
.sfp-mail-bad { color: var(--bad); }
.sfp-mail-warn { color: var(--warn-fill); }
@keyframes sfp-mail-x { from { left: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 14px); opacity: 0; } }
@keyframes sfp-mail-y { from { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 14px); opacity: 0; } }
.sfp-arch-core { padding: 1.2rem; border: 1.5px solid var(--brand); border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 4px var(--brand-soft); text-align: center; }
.sfp-arch-core > b { color: var(--fg); font-size: 1.05rem; font-weight: 700; }
.sfp .sfp-arch-core ul { display: grid; gap: .35rem; margin-top: .8rem; }
.sfp .sfp-arch-core li { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font-size: .9rem; font-weight: 600; overflow: hidden; animation: sfp-scan 4s ease-in-out infinite; }
/* Each layer lights up in turn as a message passes through it. */
.sfp .sfp-arch-core li:nth-child(2) { animation-delay: .55s; }
.sfp .sfp-arch-core li:nth-child(3) { animation-delay: 1.1s; }
.sfp .sfp-arch-core li:nth-child(4) { animation-delay: 1.65s; }
.sfp .sfp-arch-core li::before { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 40%; background: linear-gradient(90deg, transparent, var(--brand-soft), transparent); animation: sfp-sweep 4s ease-in-out infinite; animation-delay: inherit; }
.sfp .sfp-arch-core li svg { color: var(--ok); animation: sfp-tick 4s ease-in-out infinite; animation-delay: inherit; }
@keyframes sfp-scan { 0%, 30%, 100% { border-color: var(--line); } 12% { border-color: var(--brand); } }
@keyframes sfp-sweep { 0% { left: -40%; } 25%, 100% { left: 110%; } }
@keyframes sfp-tick { 0%, 8% { opacity: .25; transform: scale(.8); } 20%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: .25; transform: scale(.8); } }
/* What is caught leaves through these two exits. */
.sfp-arch-out .sfp-badge { animation: sfp-catch 4s ease-in-out infinite; }
.sfp-arch-out .sfp-badge:first-child { animation-delay: 1.1s; }
.sfp-arch-out .sfp-badge:last-child { animation-delay: 1.9s; }
@keyframes sfp-catch { 0%, 20%, 100% { transform: scale(1); box-shadow: none; } 8% { transform: scale(1.1); box-shadow: 0 0 0 4px var(--bad-soft); } }
.sfp-arch-out { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.sfp-arch-ext { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-2); }
.sfp-arch-ext article { position: relative; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.sfp .sfp-arch-ext h3 { margin-top: .8rem; color: var(--fg); font-size: 1rem; font-weight: 650; }
.sfp .sfp-arch-ext p { margin-top: .3rem; color: var(--muted); font-size: .92rem; }
.sfp-tag { position: absolute; top: 1rem; right: 1rem; padding: .16rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 650; }
.sfp-tag--ok { background: var(--ok-soft); color: var(--ok); }

.sfp-fakebtn { display: inline-block; padding: .2rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--accent); font-size: .8rem; font-weight: 650; }

/* — Closing call ----------------------------------------------------------- */
.sfp-final { padding-bottom: clamp(5rem, 9vw, 8rem); }
.sfp-final-card { padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); text-align: center; }
[data-bs-theme="dark"] .sfp-final-card { background: var(--surface); }
.sfp-final-card .sfp-sub { margin-left: auto; margin-right: auto; }
.sfp-final-card .sfp-cta-row { justify-content: center; }

/* — Entrance (only when the script is running) ----------------------------- */
.sfp-js [data-sfp-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
.sfp-js [data-sfp-reveal].is-in { opacity: 1; transform: none; }
.sfp-dash { animation: sfp-rise .6s ease both; }
@keyframes sfp-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* — The shared navbar and footer, on this page only ------------------------- */
/* By day the corporate bar turns white to meet the page; by night it stays as it is. */
/* The page runs edge to edge and places itself under the fixed bar. */
body:has(#sfp) main.main-content { padding: 0; max-width: none; }
[data-bs-theme="light"] body:has(#sfp) .sf-navbar { background-color: #ffffff; border-bottom: 1px solid #e1e7f0; }
[data-bs-theme="light"] body:has(#sfp) .sf-navbar-toggle-bar { background-color: #111827; }
[data-bs-theme="light"] body:has(#sfp) .sf-navbar-toggle { color: #111827; border-color: #cfd8e6; }
[data-bs-theme="light"] body:has(#sfp) .sf-navbar-link { color: #111827; background-color: transparent; border-color: transparent; }
[data-bs-theme="light"] body:has(#sfp) .sf-navbar-link:hover,
[data-bs-theme="light"] body:has(#sfp) .sf-navbar-dropdown.is-open > .sf-navbar-dropdown-toggle { background-color: #f2f6fc; color: #111827; border-color: transparent; box-shadow: none; }
[data-bs-theme="light"] body:has(#sfp) .sf-navbar-brand img,
[data-bs-theme="light"] body:has(#sfp) .sf-navbar-logo img { filter: brightness(0); }

/* — Tablet ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .sfp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sfp-hero-copy { max-width: 40rem; }
  .sfp-dash { transform: none; }
  .sfp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2.2rem; }
  .sfp-benefits { grid-template-columns: minmax(0, 1fr); }
  .sfp-caps { grid-template-columns: minmax(0, 1fr); }
  .sfp .sfp-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp .sfp-cards, .sfp .sfp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-arch-flow { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .sfp-arch-link { width: 2px; height: 64px; margin: 6px auto; }
  .sfp-arch-link::after { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .sfp-arch-link svg { top: 0; left: -8px; animation-name: sfp-mail-y; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .sfp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-benefit:last-child { grid-column: 1 / -1; }
  /* In three columns the third step has no neighbour on its right. */
  .sfp .sfp-step:nth-child(3)::after { display: none; }
}

/* — Phone ------------------------------------------------------------------- */
@media (max-width: 760px) {
  .sfp .sfp-btn { width: 100%; }
  .sfp-product-ico { width: 48px; height: 48px; border-radius: 13px; }
  .sfp-product-logo { height: 46px; }
  /* A simplified console: no sidebar, two figures per row, one panel per row. */
  .sfp-dash { grid-template-columns: minmax(0, 1fr); font-size: 12.5px; }
  .sfp-dash-period, .sfp-dash-brand, .sfp-dash-navs small { display: none; }
  .sfp .sfp-stages { grid-template-columns: minmax(0, 1fr); }
  .sfp-q-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sfp-q-tabs { width: 100%; }
  .sfp .sfp-q-tabs button { flex: 1 1 0; min-height: 36px; padding: 5px 4px; }
  .sfp .sfp-item { min-height: 60px; padding: 11px 12px; }
  .sfp-item-main b { font-size: 13.5px; white-space: normal; }
  .sfp-item-main small { font-size: 12px; }
  .sfp .sfp-search input { height: 42px; font-size: 14px; }
  .sfp-q-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* The review takes the whole screen; a confirmation rises from the bottom. */
  .sfp-drawer { width: 100%; border-left: 0; padding-top: env(safe-area-inset-top); }
  .sfp-d-facts div { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .sfp-modal { left: 0; top: auto; bottom: 0; width: 100%; max-height: 92%; border-radius: 18px 18px 0 0; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); transform: none; animation-name: sfp-rise; }
  .sfp-dash-side { padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sfp-dash-navs { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .sfp .sfp-dash-nav { width: auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; }
  .sfp-dash-main { min-height: 0; }
  /* On a phone the explanation sits right under the module chips, next to the thumb. */
  .sfp-dash-side { order: 0; }
  .sfp .sfp-dash-explain { order: 1; border-top: 0; border-bottom: 1px solid var(--line); }
  .sfp-dash-main { order: 2; }
  .sfp-steps { padding-top: 0; }
  .sfp-steps::before, .sfp-steps::after { display: none; }
  .sfp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-dash-row { grid-template-columns: minmax(0, 1fr); }
  .sfp-legend { display: none; }
  /* The flow becomes a vertical line of steps. */
  .sfp-steps { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding-left: 1.4rem; border-left: 2px solid var(--line); }
  .sfp .sfp-step { grid-template-columns: auto minmax(0, 1fr); justify-items: start; column-gap: .9rem; padding: .9rem 1rem; text-align: left; box-shadow: none; }
  .sfp .sfp-step:not(:last-child)::after { display: none; }
  .sfp .sfp-step::before { content: ""; position: absolute; left: calc(-1.4rem - 6px); top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
  .sfp-js .sfp-step.is-active::before { background: var(--brand); border-color: var(--brand); }
  .sfp-step-ico { grid-row: 1 / span 2; align-self: center; margin: 0; }
  .sfp-stepinfo { flex-direction: column; gap: .6rem; }
  .sfp-benefit { padding-right: 5.5rem; }
  .sfp-art { width: 5.4rem; height: 4.5rem; opacity: .8; }
  .sfp .sfp-caplist { grid-template-columns: minmax(0, 1fr); }
  .sfp .sfp-samples li { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .sfp .sfp-cards, .sfp .sfp-cards--4 { grid-template-columns: minmax(0, 1fr); }
  .sfp-arch-ext { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sfp *, .sfp *::before, .sfp *::after { animation: none !important; transition: none !important; }
  .sfp-js [data-sfp-reveal] { opacity: 1; transform: none; }
}
