/* ============================================================
   SPENDFLO-STYLE SOLUTION PAGES — sp-solution.css
   Spendflo-inspired layout: centered hero, consistent feature
   blocks (text-left/visual-right), horizontal agent flow steps
============================================================ */

/* ── Centered Product Page Hero ── */
.sp-hero {
  padding: calc(var(--nav-h) + 60px) 0 0;
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sp-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 70%;
  background: linear-gradient(180deg, var(--blue-pale) 0%, transparent 100%);
  pointer-events: none;
}
.sp-hero-inner { position: relative; z-index: 1; padding: 0 28px; }
.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid rgba(21,101,192,.2);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 100px;
  margin-bottom: 24px;
}
.sp-eyebrow.ot { background: var(--orange-light); color: var(--orange); border-color: rgba(244,121,32,.2); }
.sp-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; color: var(--dark);
  max-width: 820px; margin: 0 auto 20px; line-height: 1.1;
}
.sp-hero h1 .hl  { color: var(--blue); }
.sp-hero h1 .hot { color: var(--orange); }
.sp-hero-desc {
  font-size: 1.05rem; color: var(--gray);
  max-width: 640px; margin: 0 auto 36px; line-height: 1.8;
}
.sp-hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Full-width light visual strip below hero text */
.sp-hero-visual {
  background: linear-gradient(180deg, #EBF3FC 0%, #F0F6FF 60%, var(--white) 100%);
  border-top: 1px solid rgba(21,101,192,.1);
  padding: 40px 28px 0;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: 300px; overflow: hidden;
}
.sp-hero-mockup {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 60px rgba(21,101,192,.12), 0 0 0 1px rgba(21,101,192,.06);
  width: 100%; max-width: 860px;
  overflow: hidden;
}
.sp-hero-mockup .hm-titlebar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.sp-hero-mockup .hm-dot-r,
.sp-hero-mockup .hm-dot-y,
.sp-hero-mockup .hm-dot-g { opacity: .55; }
.sp-hero-mockup .hm-wtitle { color: var(--gray-light); font-size: .7rem; }
.sp-hero-mockup .hm-body {
  padding: 24px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
/* Hero mockup right col: progress rows */
.sp-mockup-left,
.sp-mockup-right { display: flex; flex-direction: column; gap: 8px; }
.sp-mockup-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-size: .8rem; color: var(--dark-2);
}
.sp-mockup-row i { font-size: .75rem; flex-shrink: 0; }
.sp-mockup-row .mr-badge {
  margin-left: auto; font-size: .65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
}
.mr-badge.done   { background: #DCFCE7; color: #16A34A; }
.mr-badge.run    { background: #FEF9C3; color: #A16207; }
.mr-badge.q,
.mr-badge.queued { background: var(--blue-light); color: var(--blue); }
/* Hero mockup row icon/label helpers (order-to-cash style) */
.mr-icon  { flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; width: 22px; }
.mr-label { flex: 1; font-size: .78rem; color: var(--dark-2); line-height: 1.4; }
/* ── Hero mockup 2-col body columns ── */
.hm-body-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-col-left,
.hm-col-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ── Hero mockup stat grid (2×2 inside hm-col-right) ── */
.sp-mockup-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sp-mockup-stat {
  background: var(--light); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
}
/* Old .sv/.sl aliases kept; new explicit class names also supported */
.sp-mockup-stat .sv,
.sp-mockup-stat .sp-mockup-stat-val { font-size: 1.6rem; font-weight: 900; color: var(--blue); line-height: 1; }
.sp-mockup-stat .sv.ot,
.sp-mockup-stat .sp-mockup-stat-val.ot { color: var(--orange); }
.sp-mockup-stat .sl,
.sp-mockup-stat .sp-mockup-stat-label { font-size: .68rem; color: var(--gray); margin-top: 3px; }

/* ── Stats Showcase — clean light KPI band ── */
.stat-showcase {
  background: #F0F4FF;
  padding: 64px 0;
}
.ss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.ss-item {
  background: #fff;
  padding: 28px 22px 28px 26px;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(21,101,192,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid rgba(230,238,255,.9);
  border-left: 4px solid #1565C0;
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ss-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(21,101,192,.13);
  background: #fff;
}
/* Left border accent colours */
.ss-item::before { display: none; }
.ss-item.tl-accent { border-left-color: #0891B2; }
.ss-item.pu-accent { border-left-color: #7C3AED; }
.ss-item.gn-accent { border-left-color: #16A34A; }
.ss-item.ot-accent { border-left-color: #F47920; }
/* Background blob */
.ss-blob {
  position: absolute; right: -22px; top: -22px;
  width: 88px; height: 88px; border-radius: 50%;
  background: #1565C0; opacity: .07; pointer-events: none;
}
.ss-item.tl-accent .ss-blob { background: #0891B2; }
.ss-item.pu-accent .ss-blob { background: #7C3AED; }
.ss-item.gn-accent .ss-blob { background: #16A34A; }
.ss-item.ot-accent .ss-blob { background: #F47920; }
/* Icon box */
.ss-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.ss-icon.bl { background: rgba(21,101,192,.10); color: #1565C0; }
.ss-icon.ot { background: rgba(244,121,32,.10); color: #e06610; }
.ss-icon.tl { background: rgba(8,145,178,.10); color: #0891B2; }
.ss-icon.pu { background: rgba(124,58,237,.10); color: #7C3AED; }
.ss-icon.gn { background: rgba(22,163,74,.10); color: #16A34A; }
/* Body */
.ss-body { flex: 1; min-width: 0; }
/* Big number */
.ss-val {
  font-size: 2.2rem; font-weight: 900;
  color: var(--dark); line-height: 1; margin-bottom: 5px;
  letter-spacing: -0.03em;
}
.ss-val .ot { color: #F47920; }
.ss-val .bl { color: #1565C0; }
/* Divider — hidden */
.ss-divider { display: none; }
/* Label */
.ss-label {
  font-size: 0.8rem; font-weight: 500;
  color: #64748b; line-height: 1.4;
}

/* ── Consistent Feature Block ── */
.sp-feature-section { padding: 80px 0; }
.sp-feature-section.alt { background: var(--light); }
.sp-feature-grid {
  display: grid; grid-template-columns: 55fr 45fr;
  gap: 56px; align-items: center;
}
/* Reversed grid: visual left, text right on desktop */
.sp-feature-grid-rev {
  direction: rtl;
}
.sp-feature-grid-rev > * {
  direction: ltr;
}
.sp-feature-content {}
.sp-feature-label { margin-bottom: 12px; }
.sp-feature-content h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; color: var(--dark);
  margin-bottom: 14px; line-height: 1.2;
}
.sp-feature-content p {
  color: var(--gray); font-size: .98rem;
  line-height: 1.8; margin-bottom: 22px;
}
.sp-check-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.sp-check-item { display: flex; align-items: flex-start; gap: 14px; }
.sp-check-item .ci-dot {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; margin-top: 1px;
  box-shadow: 0 2px 8px rgba(244,121,32,.32);
}
.sp-check-item .ci-dot::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.sp-check-item .ci-dot.bl { background: var(--blue); box-shadow: 0 2px 8px rgba(21,101,192,.32); }
.sp-check-item .ci-dot.ot { background: var(--orange); }
.sp-check-item span { font-size: .9rem; color: var(--dark-2); line-height: 1.6; }
.sp-text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 700; font-size: .88rem;
  transition: gap .2s;
}
.sp-text-link:hover { gap: 10px; }
.sp-text-link.ot { color: var(--orange); }

/* Feature visual */
.sp-feature-visual { display: flex; justify-content: flex-end; width: 100%; }
.sp-feature-visual .sp-feat-card { width: 100%; max-width: 420px; }
.sp-feat-card {
  background: linear-gradient(135deg, var(--blue-pale) 0%, #E8F0FE 100%);
  border: 1px solid rgba(21,101,192,.12);
  border-radius: var(--radius-xl);
  padding: 26px; width: 100%; max-width: 460px;
  box-shadow: 0 8px 40px rgba(21,101,192,.1);
}
.sp-feat-card.ot {
  background: linear-gradient(135deg, var(--orange-light) 0%, #FFF0E0 100%);
  border-color: rgba(244,121,32,.15);
  box-shadow: 0 8px 40px rgba(244,121,32,.1);
}
.sp-feat-card.tl {
  background: linear-gradient(135deg, #E0F7FA 0%, #E8F5E9 100%);
  border-color: rgba(8,145,178,.15);
  box-shadow: 0 8px 40px rgba(8,145,178,.1);
}
.sp-feat-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 18px;
}
.sp-feat-title.ot { color: var(--orange); }
.sp-feat-title.tl { color: #0891B2; }
.sp-feat-rows { display: flex; flex-direction: column; gap: 8px; }
.sp-feat-row {
  display: flex; align-items: center; gap: 10px;
  background: white; border-radius: 10px;
  padding: 10px 14px; font-size: .8rem; color: var(--dark-2);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sp-feat-row i.ok  { color: #16A34A; font-size: .7rem; }
.sp-feat-row i.run { color: var(--orange); font-size: .7rem; }
.sp-feat-row i.ai  { color: var(--blue); font-size: .7rem; }
.sp-feat-row .fr-badge {
  margin-left: auto; font-size: .64rem; font-weight: 700;
  padding: 2px 7px; border-radius: 100px;
}
.fr-badge.done { background: #DCFCE7; color: #16A34A; }
.fr-badge.live { background: #FEF9C3; color: #A16207; }
.fr-badge.auto { background: var(--blue-light); color: var(--blue); }
.sp-feat-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-feat-stat {
  background: white; border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
/* Old class names kept for backward compat */
.sp-feat-stat .fv,
.sp-feat-stat .sp-feat-stat-val { font-size: 1.4rem; font-weight: 900; color: var(--blue); line-height: 1; }
.sp-feat-stat .fv.ot,
.sp-feat-stat .sp-feat-stat-val.ot { color: var(--orange); }
.sp-feat-stat .fl,
.sp-feat-stat .sp-feat-stat-label { font-size: .65rem; color: var(--gray); margin-top: 3px; }
/* Row content classes */
.sp-feat-row-id { font-size: .78rem; font-weight: 700; color: var(--dark); flex-shrink: 0; min-width: 64px; }
.sp-feat-row-vendor { font-size: .78rem; color: var(--gray); flex: 1; }
/* Row label class (fr-label = sfr-label alias) */
.fr-label { flex: 1; }

/* ── Agent Flow Section ── */
.agent-flow-section {
  padding: 90px 0;
  background: var(--dark);
  position: relative; overflow: hidden;
}
.agent-flow-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(21,101,192,.28) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 50%, rgba(244,121,32,.15) 0%, transparent 50%);
  pointer-events: none;
}
.agent-flow-section .section-header { position: relative; z-index: 1; }
.agent-flow-section h2 { color: white; margin-bottom: 10px; }
.agent-flow-section .section-header p { color: rgba(255,255,255,.52); max-width: 600px; margin: 0 auto; }
.agent-flow-section .section-label {
  background: rgba(244,121,32,.18); color: #FFB366;
  border: 1px solid rgba(244,121,32,.28);
}

/* Steps row */
.af-steps-row {
  display: flex; align-items: stretch; flex-wrap: wrap;
  gap: 12px; position: relative; z-index: 1; margin-top: 52px;
}
.af-step { flex: 1; min-width: 160px; position: relative; }

/* Arrow between steps */
.af-step:not(:last-child) .af-step-inner::after {
  content: '';
  position: absolute; top: 50%; right: -18px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid rgba(255,255,255,.18);
  pointer-events: none; z-index: 4;
}
.af-step-inner {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 22px 18px; height: 100%;
  position: relative;
  transition: background .2s, border-color .2s, transform .2s;
}
.af-step-inner:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
}
.af-step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.af-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.55); font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.af-step-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: white; flex-shrink: 0;
}
.af-step-title { font-size: .86rem; font-weight: 700; color: white; line-height: 1.3; }
.af-step-desc  { font-size: .74rem; color: rgba(255,255,255,.48); line-height: 1.55; margin-bottom: 10px; }
.af-step-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .63rem; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
}
.af-step-badge.auto { background: rgba(99,179,237,.15); color: #93C5FD; }
.af-step-badge.done { background: rgba(74,222,128,.15);  color: #4ADE80; }
.af-step-badge.ai   { background: rgba(244,121,32,.18);  color: #FFB366; }
.af-step-badge.sap  { background: rgba(21,101,192,.25);  color: #93C5FD; }
.af-step-badge.loop { background: rgba(167,139,250,.2);  color: #C4B5FD; }

/* Step icon colour helpers */
.af-ic-blue   { background: linear-gradient(135deg,#1565C0,#1976D2); }
.af-ic-orange { background: linear-gradient(135deg,#F47920,#FB8C3A); }
.af-ic-green  { background: linear-gradient(135deg,#16A34A,#22C55E); }
.af-ic-purple { background: linear-gradient(135deg,#7C3AED,#9333EA); }
.af-ic-teal   { background: linear-gradient(135deg,#0891B2,#06B6D4); }
.af-ic-red    { background: linear-gradient(135deg,#DC2626,#EF4444); }

/* ── Benefits Grid on solution pages ── */
.sp-benefits-section { padding: 80px 0; }
.sp-benefits-section.alt { background: var(--light); }
.sp-benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.sp-benefit-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px 20px;
  transition: var(--transition);
}
.sp-benefit-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(21,101,192,.1);
  transform: translateY(-4px);
}
.sp-benefit-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: white; margin-bottom: 16px;
  background: linear-gradient(135deg,var(--blue),#1976D2);
}
.sp-benefit-icon.ot { background: linear-gradient(135deg,var(--orange),var(--orange-dark)); }
.sp-benefit-card h5 { font-size: .95rem; margin-bottom: 8px; }
.sp-benefit-card p  { font-size: .82rem; line-height: 1.65; }

/* ── Hero mockup row icon & label (inside .sp-mockup-row) ── */
.sp-mockup-row-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: white;
}
.sp-mockup-row-icon.bl { background: var(--blue); }
.sp-mockup-row-icon.ot { background: var(--orange); }
.sp-mockup-row-icon.tl { background: #0891B2; }
.sp-mockup-row-icon.gn { background: #16A34A; }
.sp-mockup-row-label { flex: 1; font-size: .78rem; color: var(--dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Hero two-column layout (procurement-platform style) ── */
.sp-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px;
  display: grid; grid-template-columns: 55fr 45fr;
  gap: 60px; align-items: center;
  padding-bottom: 60px;
}
.sp-hero-content { text-align: left; padding-bottom: 0; }
.sp-hero-content h1 {
  margin-left: 0; margin-right: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}
.sp-hero-content .sp-hero-desc { margin-left: 0; margin-right: 0; max-width: 100%; }
.sp-hero-content .sp-hero-actions { justify-content: flex-start; }
.sp-hero-visual {
  background: none;
  border-top: none;
  padding: 0;
  min-height: unset;
  display: flex; justify-content: flex-end; align-items: center;
}
.sp-hero-mockup {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 60px rgba(21,101,192,.14), 0 0 0 1px rgba(21,101,192,.06);
  width: 100%; max-width: 520px;
  overflow: hidden;
}
.sp-mockup-titlebar {
  display: flex; align-items: center; gap: 6px;
  background: var(--light); border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}
.sp-mockup-title { font-size: .7rem; color: var(--gray-light); margin-left: 6px; }
.sp-hm-body {
  padding: 18px 20px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px;
}
.sp-hm-left { display: flex; flex-direction: column; gap: 7px; }
.sp-hm-right { display: flex; align-items: center; }
.sp-mockup-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 12px;
  font-size: .74rem; color: var(--dark-2);
}
.sp-mr-icon { flex-shrink: 0; font-size: .72rem; }
.sp-mr-label { flex: 1; }
.sp-mr-badge {
  margin-left: auto; font-size: .62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 100px; white-space: nowrap;
}
.sp-mr-badge.done { background: #DCFCE7; color: #16A34A; }
.sp-mr-badge.run  { background: #FEF9C3; color: #A16207; }
.sp-mockup-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sp-ms-item {
  background: var(--light); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; text-align: center;
}
.sp-ms-val { font-size: 1.3rem; font-weight: 900; color: var(--blue); line-height: 1; }
.sp-ms-label { font-size: .62rem; color: var(--gray); margin-top: 4px; line-height: 1.3; }

/* ── NPD Drawing Output Panel (hero mockup right col) ── */
.npd-output-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.npd-op-title {
  font-size: .72rem;
  font-weight: 700;
  color: #16A34A;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.npd-op-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.npd-op-row:last-child { border-bottom: none; }
.npd-op-key {
  font-size: .68rem;
  color: var(--gray);
  flex-shrink: 0;
  font-weight: 500;
}
.npd-op-val {
  font-size: .72rem;
  font-weight: 700;
  color: var(--dark);
  text-align: right;
}
.npd-op-val.ot { color: var(--orange); }

/* ── Feature section — no duplicate grid on container ── */
/* Grid lives on .sp-feature-grid only, not .container */
.sp-feat-content {}
.sp-feat-content .section-label { margin-bottom: 12px; }
.sp-feat-content h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800; color: var(--dark);
  margin-bottom: 14px; line-height: 1.2;
}
.sp-feat-content p {
  color: var(--gray); font-size: .96rem;
  line-height: 1.8; margin-bottom: 22px;
}
.sp-feat-visual { display: flex; justify-content: center; }

/* Check list as <ul><li> — matches home page feature-item style */
.sp-check-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.sp-check-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: .9rem; color: var(--dark-2); line-height: 1.6;
}
/* Icon inside <li> — styled as circle like home page fi-icon */
.sp-check-list li > i {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; margin-top: 1px;
  box-shadow: 0 2px 8px rgba(21,101,192,.32);
}
.sp-check-list li > i.ot,
.sp-check-list li > i.ci-dot.ot { background: var(--orange); box-shadow: 0 2px 8px rgba(244,121,32,.32); }
/* Dot-only variant */
.sp-check-list li .ci-dot {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); margin-top: 1px;
  box-shadow: 0 2px 8px rgba(21,101,192,.28);
}
.sp-check-list li .ci-dot.ot { background: var(--orange); box-shadow: 0 2px 8px rgba(244,121,32,.28); }

/* Feature card rows */
.sfr-ok { color: #16A34A; font-size: .72rem; flex-shrink: 0; }
.sfr-ok.ot { color: var(--orange); }
.sfr-label { flex: 1; }
.sfr-badge {
  margin-left: auto; font-size: .62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 100px; white-space: nowrap;
}
.sfr-badge.done { background: #DCFCE7; color: #16A34A; }
.sfr-badge.live { background: #FEF9C3; color: #A16207; }
.sfr-badge.auto { background: var(--blue-light); color: var(--blue); }

/* Spend stat grid */
.sp-feat-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-fsg-item {
  background: white; border-radius: 10px; padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sp-fsg-val { font-size: 1.4rem; font-weight: 900; color: #0891B2; line-height: 1; }
.sp-fsg-label { font-size: .65rem; color: var(--gray); margin-top: 4px; }

/* section-label orange variant */
.section-label.orange { background: var(--orange-light); color: var(--orange); border-color: rgba(244,121,32,.2); }

/* ── Agent flow section (flat cards, no .af-step-inner wrapper) ── */
.af-steps-row {
  display: flex; flex-wrap: wrap;
  gap: 14px; position: relative; z-index: 1; margin-top: 52px;
  align-items: stretch;
}
.af-step {
  flex: 1; min-width: 160px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 22px 18px;
  transition: background .2s, border-color .2s, transform .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.af-step:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
}
.af-step-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: white; flex-shrink: 0;
}
.af-step-body { display: flex; flex-direction: column; gap: 6px; }
.af-step-body h5 { font-size: .86rem; font-weight: 700; color: white; margin: 0; }
.af-step-body p  { font-size: .74rem; color: rgba(255,255,255,.48); line-height: 1.55; margin: 0; }
.af-step-arrow {
  display: flex; align-items: center; color: rgba(255,255,255,.25);
  font-size: .75rem; flex-shrink: 0;
}
.af-badge {
  display: inline-flex; align-items: center;
  font-size: .63rem; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
  align-self: flex-start;
}
.af-badge.ai   { background: rgba(244,121,32,.18);  color: #FFB366; }
.af-badge.sap  { background: rgba(21,101,192,.25);  color: #93C5FD; }
.af-badge.auto { background: rgba(74,222,128,.15);  color: #4ADE80; }
.af-badge.done { background: rgba(74,222,128,.15);  color: #4ADE80; }

/* ── Benefits card icon variant (.sp-bc-icon) ── */
.sp-bc-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: white; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue), #1976D2);
}
.sp-bc-icon.ot { background: linear-gradient(135deg, var(--orange), var(--orange-dark, #e06510)); }

/* ── Video section ── */
.vs-player-wrap {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; cursor: pointer;
  max-width: 880px; margin: 0 auto;
  box-shadow: 0 20px 80px rgba(0,0,0,.18);
}
.vs-player-wrap video { width: 100%; display: block; }
.vs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity .25s;
}
.vs-overlay.hidden { opacity: 0; pointer-events: none; }
.vs-play-btn {
  width: 72px; height: 72px; border-radius: 50%; border: none; cursor: pointer;
  background: white; color: var(--blue); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
}
.vs-play-btn:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(0,0,0,.38); }
.vs-features { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.vs-feat-item {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; padding: 7px 16px;
  font-size: .78rem; font-weight: 600; color: white;
}
.vs-feat-item i { color: #FFB366; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sp-feature-grid { gap: 40px; }
  .sp-hero-inner { gap: 36px; }
  .af-step { min-width: calc(33% - 8px); flex: 0 0 calc(33% - 8px); }
}
@media (max-width: 900px) {
  .sp-hero-inner { grid-template-columns: 1fr; }
  .sp-hero-content { text-align: center; padding-bottom: 0; }
  .sp-hero-content .sp-hero-actions { justify-content: center; }
  .sp-hero-content h1 { margin-left: auto; margin-right: auto; }
  .sp-hero-content .sp-hero-desc { margin-left: auto; margin-right: auto; }
  .sp-hero-visual { justify-content: center; }
  .sp-feature-section .container { grid-template-columns: 1fr; }
  .sp-feature-section.alt .container { direction: ltr; }
  .sp-feat-visual { display: none; }
  .sp-feature-grid { grid-template-columns: 1fr; }
  .sp-feature-grid-rev { direction: ltr; }
  .sp-feature-visual { display: none; }
  .ss-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .ss-item { border-bottom: 1px solid rgba(230,238,255,.9); }
  .af-step { min-width: calc(50% - 6px); flex: 0 0 calc(50% - 6px); }
  .af-step-arrow { display: none; }
  .sp-hero-mockup .hm-body { grid-template-columns: 1fr; }
  .sp-benefits-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .af-step { min-width: 100%; flex: 0 0 100%; }
  .ss-grid { grid-template-columns: 1fr 1fr; }
  .sp-benefits-grid { grid-template-columns: 1fr; }
  .sp-hm-body { grid-template-columns: 1fr; }
  .sp-mockup-stats { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   MODULE HUB PAGES — hub layout for module overview pages
============================================================ */

/* ── Module Hero ── */
.mod-hero {
  padding: calc(var(--nav-h) + 80px) 0 72px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(21,101,192,.06) 0%, transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #fff8f2 45%, #fff1e4 100%);
  text-align: left;
  position: relative;
  overflow: hidden;
}
/* SVG dot texture — same as index hero */
.mod-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23F47920' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
/* Orange glow — top right, matches index hero-glow-1 */
.mod-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(244,121,32,.16) 0%, rgba(244,121,32,.04) 50%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
}
.mod-hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
/* Eyebrow badge — orange tint inside module hero to match index hero-badge */
.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(21,101,192,0.08); color: var(--primary);
  border: 1px solid rgba(21,101,192,0.18);
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 6px 14px;
  border-radius: 100px; margin-bottom: 20px;
}
.mod-hero .sp-eyebrow {
  background: rgba(244,121,32,.1);
  color: var(--orange-dark, #e06610);
  border-color: rgba(244,121,32,.25);
}
.mod-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.12;
}
.mod-hero h1 .hl  { color: var(--orange); }
.mod-hero h1 .hlb { color: var(--primary); }
.mod-tagline {
  font-size: 1.05rem;
  color: #4a5568;
  margin: 0 0 1rem;
  font-weight: 400;
  max-width: 520px;
  line-height: 1.8;
}
.mod-desc {
  font-size: 1rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 0 2rem;
  line-height: 1.8;
}
.mod-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

/* ── Module Hero 2-col grid (text left + mockup right) ── */
.mod-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mod-hero-content { max-width: 580px; }
.mod-hero-visual { display: flex; justify-content: flex-end; }
.mod-hero-visual .hm-window { max-width: 440px; width: 100%; }
@media (max-width: 960px) {
  .mod-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mod-hero-visual { display: none; }
}

/* ── Use Cases Grid ── */
.mod-usecases {
  padding: 80px 0 90px;
  background: #fff;
}
.mod-section-head { text-align: center; margin-bottom: 2.5rem; }
.mod-section-head h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.mod-section-head p { font-size: 1rem; color: var(--gray); }

.mod-uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.mod-uc-card {
  background: #fff;
  border: 1.5px solid rgba(21,101,192,0.1);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.mod-uc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 32px rgba(21,101,192,0.13);
  transform: translateY(-3px);
}
.mod-uc-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: rgba(21,101,192,.09);
  display: flex; align-items: center; justify-content: center;
}
.mod-uc-icon i { font-size: 1.2rem; color: var(--primary); }
/* Orange variant */
.mod-uc-icon.ot { background: rgba(244,121,32,.1); }
.mod-uc-icon.ot i { color: var(--accent); }
/* Remap green/purple → brand blue/orange for consistency */
.mod-uc-icon.gr { background: rgba(21,101,192,.09); }
.mod-uc-icon.gr i { color: var(--primary); }
.mod-uc-icon.pu { background: rgba(244,121,32,.1); }
.mod-uc-icon.pu i { color: var(--accent); }
.mod-uc-body { flex: 1; }
.mod-uc-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.4rem; }
.mod-uc-body p { font-size: 0.875rem; color: var(--gray); line-height: 1.65; margin: 0 0 0.75rem; }
.mod-uc-link {
  font-size: 0.8rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.18s;
}
.mod-uc-card:hover .mod-uc-link { color: var(--accent); }

/* ── Module Process Flow ── */
.mod-flow-section {
  padding: 80px 0;
  background: #f8fbff;
}
.mod-flow-steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-top: 2.5rem;
  overflow-x: auto;
  padding-bottom: 8px;
}
.mod-flow-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.mod-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px; right: -1px;
  width: 2px; height: 20px;
  background: rgba(21,101,192,0.2);
  display: none;
}
.mod-fs-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.9rem;
  border: 1.5px solid rgba(21,101,192,0.15);
}
.mod-fs-icon i { font-size: 1.3rem; color: var(--primary); }
.mod-fs-icon.ot { background: var(--orange-light); border-color: rgba(244,121,32,0.2); }
.mod-fs-icon.ot i { color: var(--accent); }
.mod-fs-icon.gr { background: #e8f5e9; border-color: #c8e6c9; }
.mod-fs-icon.gr i { color: #2e7d32; }
.mod-fs-arrow {
  position: absolute;
  top: 16px; right: -18px;
  font-size: 1.1rem;
  color: rgba(21,101,192,0.3);
  z-index: 2;
}
.mod-flow-step:last-child .mod-fs-arrow { display: none; }
.mod-fs-num {
  font-size: 0.65rem; font-weight: 800;
  color: var(--primary); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 0.35rem;
  opacity: 0.6;
}
.mod-fs-label { font-size: 0.82rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.mod-fs-desc { font-size: 0.75rem; color: var(--gray); line-height: 1.5; }

/* ── Module CTA ── */
.mod-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1976D2 100%);
  text-align: center;
  color: #fff;
}
.mod-cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; }
.mod-cta p { font-size: 1.05rem; opacity: 0.88; margin-bottom: 2rem; }
.mod-cta .btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.mod-cta .btn-outline-white { border: 2px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.mod-cta .btn-outline-white:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 700px) {
  .mod-uc-grid { grid-template-columns: 1fr; }
  .mod-flow-steps { flex-wrap: wrap; gap: 1.5rem; }
  .mod-flow-step { min-width: 45%; }
  .mod-fs-arrow { display: none; }
}

/* ============================================================
   VERTICAL ALTERNATING TIMELINE — How It Works
============================================================ */
.vtl-section {
  padding: 80px 0;
  background: #fff;
}
.vtl-track {
  position: relative;
  max-width: 860px;
  margin: 2.5rem auto 0;
}
/* Center vertical line */
.vtl-track::before {
  content: '';
  position: absolute;
  left: calc(50% - 1px);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1565C0 0%, #CBD5E1 100%);
  z-index: 1;
  pointer-events: none;
}

/* ---- Flexbox row ---- */
.vtl-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 52px;
}

/* Left & right halves — equal width, flex:1 */
.vtl-half {
  flex: 1;
  min-width: 0;
}
.vtl-half.left {
  padding-right: 32px;
  display: flex;
  justify-content: flex-end; /* card hugs the center line */
}
.vtl-half.right {
  padding-left: 32px;
}

/* Center column — fixed width, holds the number circle */
.vtl-circ-col {
  flex: 0 0 46px;
  display: flex;
  justify-content: center;
  padding-top: 14px;
  position: relative;
  z-index: 3;
}

/* Number circle */
.vtl-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 3;
}
.vtl-num.bl {
  background: #1565C0;
  box-shadow: 0 0 0 6px rgba(21,101,192,0.15), 0 4px 14px rgba(21,101,192,0.35);
}
.vtl-num.ot {
  background: #F47920;
  box-shadow: 0 0 0 6px rgba(244,121,32,0.15), 0 4px 14px rgba(244,121,32,0.35);
}

/* Card */
.vtl-card {
  background: #fff;
  border: 1.5px solid rgba(21,101,192,0.1);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.25s;
  width: 100%;
}
.vtl-card:hover {
  box-shadow: 0 8px 28px rgba(21,101,192,0.14);
  transform: translateY(-3px);
}
.vtl-step-lbl {
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary); opacity: 0.65;
  margin-bottom: 0.35rem;
  display: block;
}
.vtl-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #fff; margin-bottom: 0.55rem;
}
.vtl-ci-blue   { background: linear-gradient(135deg,#1565C0,#1976D2); }
.vtl-ci-orange { background: linear-gradient(135deg,#F47920,#FB8C3A); }
.vtl-ci-green  { background: linear-gradient(135deg,#16a34a,#22c55e); }
.vtl-ci-red    { background: linear-gradient(135deg,#dc2626,#ef4444); }
.vtl-ci-teal   { background: linear-gradient(135deg,#0891b2,#06b6d4); }
.vtl-ci-purple { background: linear-gradient(135deg,#7c3aed,#9333ea); }

.vtl-card h4 {
  font-size: 0.93rem; font-weight: 700;
  color: var(--dark); margin-bottom: 0.3rem; text-align: left;
}
.vtl-card p {
  font-size: 0.81rem; color: var(--gray);
  line-height: 1.65; margin: 0 0 0.55rem; text-align: left;
}
.vtl-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.vtl-badge.auto { background: rgba(21,101,192,0.09); color: var(--primary); }
.vtl-badge.ai   { background: rgba(244,121,32,0.09); color: var(--accent); }
.vtl-badge.sap  { background: rgba(22,163,74,0.1);   color: #16a34a; }
.vtl-badge.loop { background: rgba(124,58,237,0.09); color: #7c3aed; }
.vtl-badge.done { background: rgba(8,145,178,0.09);  color: #0891b2; }

/* Mobile: single-column, all cards right of circle */
@media (max-width: 700px) {
  .vtl-track::before { left: 23px; transform: none; }
  /* Reorder: circle first, then whichever half has content */
  .vtl-circ-col         { order: 1; flex: 0 0 46px; padding-top: 14px; }
  .vtl-half.right       { order: 2; padding-left: 14px; }
  .vtl-half.left        { order: 3; padding-right: 0; padding-left: 14px; justify-content: flex-start; }
  /* Hide whichever half is empty */
  .vtl-half:empty       { display: none !important; }
}

/* ============================================================
   INLINE DEMO FORM SECTION — replaces cta-banner on module pages
============================================================ */
.mod-demo-section {
  padding: 80px 0;
  background: #f4f8ff;
}
.mod-demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Left pitch */
.mod-demo-left {}
.mod-demo-left h2 { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 0.5rem; }
.mod-demo-left .mod-demo-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--primary); background: var(--blue-light); border-radius: 100px; padding: 4px 14px; display: inline-block; margin-bottom: 1rem; }
.mod-demo-pitch { font-size: 1rem; color: var(--gray); margin-bottom: 1.75rem; line-height: 1.7; }

.mod-demo-steps {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.mds-step { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: #64748b; }
.mds-num { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mds-arr { color: #cbd5e0; font-size: 0.7rem; }

.mod-demo-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.mod-demo-checks li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.94rem; color: var(--dark); font-weight: 500; }
.mod-demo-checks li i { color: var(--primary); font-size: 0.85rem; }

/* Right form card */
.mod-demo-form {
  background: #fff;
  border: 1.5px solid rgba(21,101,192,0.1);
  border-radius: 18px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 6px 32px rgba(21,101,192,0.08);
}
.mod-demo-form h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 0.2rem; }
.mod-form-sub { font-size: 0.82rem; color: var(--gray); margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  .mod-demo-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   VENDOR JOURNEY — CONNECTED FLOW DIAGRAM
============================================================ */
.jflow-section {
  padding: 80px 0 90px;
  background: #f8faff;
  overflow: hidden;
}

.jflow-wrap {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Flow Row ── */
.jflow-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
  gap: 0;
}

/* ── Animated flow line ── */
.jflow-line {
  position: absolute;
  top: 28px; /* centre of circles */
  left: calc(16.66% + 8px);
  right: calc(16.66% + 8px);
  height: 3px;
  background: linear-gradient(90deg, #1565C0 0%, #90CAF9 50%, #1565C0 100%);
  background-size: 200% 100%;
  animation: jflow-slide 2.4s linear infinite;
  border-radius: 2px;
  z-index: 0;
}
.jflow-rtl {
  flex-direction: row-reverse;
}
.jflow-rtl .jflow-line {
  background: linear-gradient(90deg, #0891B2 0%, #67E8F9 50%, #0891B2 100%);
  background-size: 200% 100%;
  animation: jflow-slide-rev 2.4s linear infinite;
}
@keyframes jflow-slide     { 0%{background-position:200% 0} 100%{background-position:0% 0} }
@keyframes jflow-slide-rev { 0%{background-position:0% 0} 100%{background-position:200% 0} }

/* Arrowhead at end of line */
.jflow-arrow-tip {
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  font-size: .55rem;
  color: #1565C0;
}
.jflow-rtl .jflow-line { left: calc(16.66% + 8px); right: calc(16.66% + 8px); }
.jflow-rtl .jflow-arrow-tip { left: -8px; right: auto; }
.jfat-ot { color: #0891B2 !important; }

/* Moving pulse dot on line */
.jflow-pulse {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1565C0;
  top: 50%; transform: translateY(-50%);
  animation: jflow-dot 2.4s linear infinite;
  box-shadow: 0 0 8px rgba(21,101,192,.5);
}
.jfp-ot {
  border-color: #0891B2;
  box-shadow: 0 0 8px rgba(8,145,178,.5);
  animation: jflow-dot-rev 2.4s linear infinite;
}
@keyframes jflow-dot     { 0%{left:0} 100%{left:calc(100% - 10px)} }
@keyframes jflow-dot-rev { 0%{right:0;left:auto} 100%{right:calc(100% - 10px);left:auto} }

/* ── Each node (circle + stem + card) ── */
.jflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Numbered circle ON the line */
.jflow-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff;
  position: relative; z-index: 2;
  cursor: default;
}
.jfc-bl   { background: linear-gradient(135deg, #1565C0, #1976D2); box-shadow: 0 6px 20px rgba(21,101,192,.35); }
.jfc-ot   { background: linear-gradient(135deg, #0891B2, #0097A7); box-shadow: 0 6px 20px rgba(8,145,178,.35); }
.jfc-done { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 6px 20px rgba(22,163,74,.35); }

/* Pulsing ring on circle */
.jfc-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: jfc-pulse 2s ease-out infinite;
}
.jfc-bl .jfc-ring { border-color: #1565C0; }
.jfc-ot .jfc-ring { border-color: #0891B2; }
.jfc-done .jfc-ring { border-color: #16a34a; }
.jflow-node:nth-child(2) .jfc-ring { animation-delay: .4s; }
.jflow-node:nth-child(3) .jfc-ring { animation-delay: .8s; }
@keyframes jfc-pulse {
  0%  { transform: scale(1); opacity: .6; }
  100%{ transform: scale(1.8); opacity: 0; }
}

/* Stem connecting circle to card */
.jflow-stem {
  width: 2px; height: 32px;
  background: linear-gradient(180deg, rgba(21,101,192,.4) 0%, rgba(21,101,192,.1) 100%);
}
.jfs-done { background: linear-gradient(180deg, rgba(22,163,74,.4) 0%, rgba(22,163,74,.1) 100%); }
.jflow-rtl .jflow-stem { background: linear-gradient(180deg, rgba(8,145,178,.4) 0%, rgba(8,145,178,.1) 100%); }

/* Info card */
.jflow-card {
  background: #fff;
  border: 1.5px solid #e2eaf8;
  border-radius: 16px;
  padding: 20px 18px 18px;
  width: 100%; max-width: 220px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.jflow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(21,101,192,.12);
  border-color: rgba(21,101,192,.25);
}
.jfcard-done { border-color: rgba(22,163,74,.2); }
.jfcard-done:hover { box-shadow: 0 12px 32px rgba(22,163,74,.12); }

.jfcard-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: #fff;
  margin: 0 auto 12px;
}
.jfci-bl   { background: linear-gradient(135deg, #1565C0, #1976D2); }
.jfci-ot   { background: linear-gradient(135deg, #F47920, #FB8C3A); }
.jfci-done { background: linear-gradient(135deg, #16a34a, #22c55e); }

.jflow-card h4 { font-size: .88rem; font-weight: 700; color: #0F1929; margin: 0 0 6px; }
.jflow-card p  { font-size: .75rem; color: #64748b; line-height: 1.55; margin: 0 0 10px; }

.jfcard-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.jfcard-badge.auto { background: rgba(21,101,192,.09);  color: #1565C0; }
.jfcard-badge.ai   { background: rgba(244,121,32,.09);  color: #D4621A; }
.jfcard-badge.sap  { background: rgba(22,163,74,.1);    color: #16a34a; }
.jfcard-badge.done { background: rgba(22,163,74,.12);   color: #16a34a; }

/* ── Turn connector between row 1 and row 2 ── */
.jflow-turn {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(16.66% + 12px);
  position: relative;
  height: 48px;
}
.jflow-turn-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #1565C0, #0891B2);
  border-radius: 2px;
  position: relative;
}
.jflow-turn-arrow {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  color: #0891B2;
}

/* ── Transit icon between steps on flow line ── */
.jflow-transit {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1565C0;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem;
  color: #1565C0;
  box-shadow: 0 2px 14px rgba(21,101,192,.22);
  z-index: 8;
  animation: jft-float 2s ease-in-out infinite;
}
.jflow-rtl .jflow-transit {
  border-color: #0891B2;
  color: #0891B2;
  box-shadow: 0 2px 14px rgba(8,145,178,.22);
}
@keyframes jft-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 2px 14px rgba(21,101,192,.22); }
  50%       { transform: translate(-50%, -65%) scale(1.08); box-shadow: 0 6px 20px rgba(21,101,192,.32); }
}

/* ── Mobile ── */
@media (max-width: 860px) {
  .jflow-row { flex-direction: column; align-items: center; padding: 0; gap: 0; }
  .jflow-rtl { flex-direction: column; }
  .jflow-line { display: none; }
  .jflow-turn { display: none; }
  .jflow-node { width: 100%; max-width: 360px; }
  .jflow-card { max-width: 100%; text-align: left; }
  .jfcard-icon { margin: 0 0 10px; }
  .jflow-stem { height: 20px; }
}
