/* =============================================================================
   salesfision-ai :: sf-* library block reskin
   -----------------------------------------------------------------------------
   Site-scoped overrides that make the migrated generic sf-* library blocks
   pixel-match salesfision-ai's bespoke dark design (red #e31515 / yellow accents,
   emoji icons). EVERY rule is scoped under the page wrapper .sf-salesfisionai
   (emitted by includes/block-renderer.php for any page containing a
   "*-salesfisionai" block) so other sites' shared sf-* blocks are untouched.
   Loaded AFTER salesfisionai.css so it wins on the shared design tokens.
   Generated from the per-section migration spec (11 sections). Do NOT hand-edit
   the section bodies; re-run the spec instead.
   ============================================================================= */


/* -----------------------------------------------------------------------------
   SECTION: hero-salesfisionai  ->  sf-hero (layout="pillars")
   ----------------------------------------------------------------------------- */

/* Site-scoped reskin: pixel-match sai hero to sf-hero pillars layout.
   Scope under the salesfision-ai page wrapper. The sf-hero pillars markup
   uses .platform-hero / .platform-hero-* / .section-badge / .hero-heading-accent /
   .platform-cta-primary / .btn-outline; the original sai design uses the dark
   --red token set + full-viewport flex hero + pulsing-dot eyebrow + trust strip. */

.sf-salesfisionai .platform-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height, 72px);
  position: relative;
  overflow: hidden;
  background: var(--bg-base, #0D0D0D);
}
/* top-right red glow + bottom hairline from sai .hero::before/::after */
.sf-salesfisionai .platform-hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(227,21,21,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.sf-salesfisionai .platform-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border,#2A2A2A), transparent);
}
.sf-salesfisionai .platform-hero-inner,
.sf-salesfisionai .platform-hero-grid { position: relative; z-index: 1; }
.sf-salesfisionai .platform-hero-text {
  padding-block: var(--space-24, 96px);
  max-width: 820px; text-align: left;
}

/* eyebrow pill = sai .section-tag (red glow + pulsing dot) */
.sf-salesfisionai .platform-hero .section-badge {
  display: inline-flex; align-items: center; gap: var(--space-2,8px);
  font-size: var(--text-xs,.75rem); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red,#e31515); background: var(--red-glow,rgba(227,21,21,.15));
  border: 1px solid var(--border-red,rgba(227,21,21,.3));
  padding: var(--space-1,4px) var(--space-3,12px);
  border-radius: var(--radius-full,9999px); margin-bottom: var(--space-5,20px);
}
.sf-salesfisionai .platform-hero .section-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--red,#e31515);
  border-radius: 50%; animation: pulse 2s infinite;
}

/* heading-xl scale; force accent onto its own line (sai had <br> before line2) */
.sf-salesfisionai .platform-hero-text h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.03em;
  color: var(--text-primary,#F8F8F8);
}
.sf-salesfisionai .platform-hero-text h1 .hero-heading-accent {
  display: block; color: var(--red,#e31515);
}

/* subtext = sai .hero__sub */
.sf-salesfisionai .platform-hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted,#888); line-height: 1.75;
  margin-top: var(--space-6,24px); max-width: 680px;
}

/* CTA row = sai .hero__actions */
.sf-salesfisionai .platform-hero-ctas {
  display: flex; align-items: center; gap: var(--space-4,16px);
  flex-wrap: wrap; margin-top: var(--space-10,40px);
}
/* primary CTA = sai .btn.btn-primary.btn-lg; hide the default leading '›' arrow,
   show trailing '→' via cta_arrow_position=trailing (.platform-cta-trailing) */
.sf-salesfisionai .platform-hero-ctas .platform-cta-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2,8px); font-size: 1.125rem; font-weight: 600;
  padding: 16px 40px; border-radius: var(--radius-md,8px);
  background: var(--red,#e31515); color: #fff;
  box-shadow: 0 0 20px var(--red-glow,rgba(227,21,21,.15));
  transition: all 250ms cubic-bezier(.4,0,.2,1);
}
.sf-salesfisionai .platform-hero-ctas .platform-cta-primary:hover {
  background: var(--red-hover,#c41010);
  box-shadow: 0 0 32px var(--red-glow-strong,rgba(227,21,21,.25));
  transform: translateY(-1px);
}
.sf-salesfisionai .platform-hero-ctas .platform-cta-arrow { display: none; } /* kill leading '›' */
.sf-salesfisionai .platform-hero-ctas .platform-cta-trailing { font-size: 1.1em; }
/* outline/secondary CTA = sai .btn.btn-ghost.btn-lg */
.sf-salesfisionai .platform-hero-ctas .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2,8px); font-size: 1.125rem; font-weight: 600;
  padding: 16px 40px; border-radius: var(--radius-md,8px);
  background: transparent; color: var(--text-secondary,#C0C0C0);
  border: 1px solid var(--border-light,#333);
  transition: all 250ms cubic-bezier(.4,0,.2,1);
}
.sf-salesfisionai .platform-hero-ctas .btn-outline:hover {
  border-color: var(--text-muted,#888); color: var(--text-primary,#F8F8F8);
  background: var(--bg-elevated,#1F1F1F);
}

/* NEW social-proof line = sai .hero__proof + pulsing red dot */
.sf-salesfisionai .platform-hero-proof {
  display: flex; align-items: center; gap: var(--space-3,12px);
  margin-top: var(--space-8,32px);
  font-size: var(--text-sm,.875rem); color: var(--text-faint,#555);
}
.sf-salesfisionai .platform-hero-proof::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red,#e31515);
}

@media (max-width: 768px) {
  .sf-salesfisionai .platform-hero-text { max-width: 100%; }
  .sf-salesfisionai .platform-hero-ctas { flex-direction: column; align-items: flex-start; }
}


/* -----------------------------------------------------------------------------
   SECTION: hero-page-salesfisionai  ->  sf-hero (layout="badge", extended with heading_accent + ctas repeater + arrow-on-primary)
   ----------------------------------------------------------------------------- */

/* Scope: salesfision-ai badge-layout hero. The bundle has no page wrapper class today (it leans on global .page-hero); scope tightly to the block so other badge-layout sites are untouched. */

.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero {
  /* override library's flat 160px/40px box with the bespoke spacing + bottom border + red glow */
  padding: calc(var(--nav-height) + var(--space-24)) 0 var(--space-24);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-base) !important; /* kill library inline 'background:#000' / bg_image gradient */
}
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(227,21,21,0.06) 0%, transparent 70%);
  pointer-events: none;
}
/* center column (bespoke .page-hero__inner max-width:780px) */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero > * { position: relative; z-index: 1; }
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero h1,
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero p,
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions { max-width: 780px; margin-inline: auto; }

/* eyebrow pill = bespoke .section-tag (pulsing red dot) */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .section-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); background: var(--red-glow);
  border: 1px solid var(--border-red);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); margin-bottom: var(--space-5);
}
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .section-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--red);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(.8);} }

/* two-tone H1 = bespoke .heading-xl + .text-red, forced onto two lines */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero h1 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: var(--weight-black); line-height: var(--leading-tight);
  letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 0;
}
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero h1 .hero-heading-accent {
  display: block; color: var(--red); /* second line, red — overrides library --sf-hero-red mix */
}

/* sub = bespoke .page-hero__sub */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero p {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-muted); line-height: var(--leading-relaxed);
  margin-top: var(--space-6); max-width: 780px;
}

/* actions row = bespoke .page-hero__actions */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-10);
}
/* primary CTA = bespoke .btn .btn-primary .btn-lg + trailing arrow */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions .btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-lg); font-weight: var(--weight-semibold);
  padding: 16px 40px; border-radius: var(--radius-md);
  background: var(--red); color: #fff; box-shadow: 0 0 20px var(--red-glow);
  transition: all var(--duration-base) var(--ease);
}
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions .btn-primary::after {
  content: '\2192'; font-size: 1.1em;
  transition: transform var(--duration-fast) var(--ease);
}
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions .btn-primary:hover {
  background: var(--red-hover); box-shadow: 0 0 32px var(--red-glow-strong); transform: translateY(-1px);
}
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions .btn-primary:hover::after { transform: translateX(3px); }
/* ghost/secondary CTA = bespoke .btn .btn-ghost .btn-lg */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions .btn-outline {
  font-size: var(--text-lg); font-weight: var(--weight-semibold);
  padding: 16px 40px; border-radius: var(--radius-md);
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--duration-base) var(--ease);
}
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions .btn-outline:hover {
  border-color: var(--text-muted); color: var(--text-primary); background: var(--bg-elevated);
}
@media (max-width: 768px) {
  .sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .page-hero__actions { flex-direction: column; }
}


/* -----------------------------------------------------------------------------
   SECTION: legal-hero-salesfisionai  ->  sf-hero (layout="badge")
   ----------------------------------------------------------------------------- */

/* Site-scoped reskin to make sf-hero (badge layout) pixel-match the bespoke .legal-hero on salesfision-ai.
   This site's CSS is NOT body-wrapper-scoped (.legal-hero/.container are bare). The blueprint scopes via [data-sf-block="sf-hero"]. Place these in salesfisionai.css so they win on specificity (block style.css is generic; site bundle loads after). All values use the site's existing tokens. */

/* Layout: bespoke is LEFT-aligned, constrained to .container width, with top nav clearance, bottom border, transparent (page) background — NOT centered dark full-bleed. */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero {
  padding: calc(var(--nav-height) + var(--space-16)) var(--space-6) var(--space-12);
  text-align: left;
  background: transparent !important;     /* override inline background:#000 from render.php */
  border-bottom: 1px solid var(--border);
  max-width: var(--max-width);            /* 1200px, matches .container */
  margin-inline: auto;
}

/* Hide the always-emitted empty <p> (bespoke has no sub element). */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero p:empty { display: none; }

/* Heading -> .heading-lg parity (clamp 30->48px, bold, tight). Kill blueprint's centered 72px/-2px treatment. */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: var(--space-4) 0 0;             /* bespoke: margin-top:var(--space-4), no bottom margin */
  text-align: left;
}

/* Badge pill -> bespoke .section-tag (red pulsing-dot pill). Re-skin .section-badge to match exactly. */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: 0;                        /* spacing handled by h1 margin-top */
  animation: none;                         /* drop blueprint's sfHeroUp entrance to match bespoke (no entrance anim) */
}
/* Pulsing dot before the pill, identical to .section-tag::before. */
.sf-salesfisionai [data-sf-block="sf-hero"] .page-hero .section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;            /* @keyframes pulse already defined globally in salesfisionai.css */
}


/* -----------------------------------------------------------------------------
   SECTION: stats-salesfisionai  ->  sf-results-stats
   ----------------------------------------------------------------------------- */

/* Site-scoped: pixel-match salesfision-ai's .stats-bar using sf-results-stats markup.
   Scope under the page wrapper .sf-salesfisionai (set in includes/site-assets.php)
   so other sites' sf-results-stats are untouched. Bespoke uses a 4-col GRID with
   vertical divider lines + top/bottom border + red count-up numbers, NOT the
   library's centered flex row. */
.sf-salesfisionai [data-sf-block="sf-results-stats"] .results-section {
  background: var(--bg-surface, #161616);
  border-block: 1px solid var(--border, #2A2A2A);
  padding-block: var(--space-12, 48px);
  padding-inline: 0;                 /* override library 80px 40px */
}
.sf-salesfisionai [data-sf-block="sf-results-stats"] .results-inner {
  display: grid;                     /* override library flex */
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8, 32px);
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-6, 24px);
}
.sf-salesfisionai [data-sf-block="sf-results-stats"] .result-stat {
  text-align: center;
  padding: var(--space-6, 24px);
  position: relative;
}
.sf-salesfisionai [data-sf-block="sf-results-stats"] .result-stat + .result-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  height: 60%; width: 1px;
  background: var(--border, #2A2A2A);
}
.sf-salesfisionai [data-sf-block="sf-results-stats"] .result-stat h3 {
  font-size: clamp(var(--text-3xl, 1.875rem), 4vw, var(--text-5xl, 3rem));
  font-weight: var(--weight-black, 900);
  color: var(--red, #e31515);        /* matches inline accent; ensures red even if accent left default */
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2, 8px);
}
.sf-salesfisionai [data-sf-block="sf-results-stats"] .result-stat p {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #888888);
  font-weight: var(--weight-medium, 500);
}
/* Responsive parity with salesfisionai.css breakpoints */
@media (max-width: 1024px) {
  .sf-salesfisionai [data-sf-block="sf-results-stats"] .results-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sf-salesfisionai [data-sf-block="sf-results-stats"] .results-inner { grid-template-columns: repeat(2, 1fr); }
  .sf-salesfisionai [data-sf-block="sf-results-stats"] .result-stat + .result-stat::before { display: none; }
}
@media (max-width: 480px) {
  .sf-salesfisionai [data-sf-block="sf-results-stats"] .results-inner { grid-template-columns: 1fr 1fr; }
}


/* -----------------------------------------------------------------------------
   SECTION: features-salesfisionai  ->  sf-feature-grid (layout="cards")
   ----------------------------------------------------------------------------- */

/* Site-scoped reskin for the shared sf-feature-grid (cards layout) so it pixel-matches
   salesfision-ai's bespoke features block. Scope to the page wrapper AND the block selector
   so other sites' sf-feature-grid is untouched (byte-parity-safe).
   Wrapper note: sai uses unscoped global classes; prefer body.sf-salesfisionai (page bundle wrapper)
   OR fall back to the block data-attr alone if no wrapper class exists. Tokens come from
   assets/css/salesfisionai.css (--red #e31515, --bg-surface #161616, --border #2A2A2A, spacing/typography vars). */

.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-section {
  background: transparent;           /* sai uses .section (transparent), not #111 */
  padding-block: var(--space-24, 96px);
  padding-inline: 0;
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-inner {
  width: 100%;
  max-width: var(--max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--space-6, 24px);
}

/* centered header (sai .section-header--center) */
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-title {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16, 64px);
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-title h2 {
  font-size: clamp(var(--text-2xl,1.5rem), 3vw, var(--text-4xl,2.25rem));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary, #F8F8F8);
  margin-bottom: 0;
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-title p {
  font-size: var(--text-lg, 1.125rem);
  color: var(--text-muted, #888);
  line-height: 1.75;
  margin-top: var(--space-4, 16px);
}
/* hide empty subtext <p> (instance 3 has sub='') */
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-title p:empty { display: none; }

/* eyebrow → outlined red pill with pulsing dot (sai .section-tag).
   Requires badge_style='outline' modifier (fieldsToAdd) emitting .section-badge--outline. */
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-title .section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  background: var(--red-glow, rgba(227,21,21,0.15)) !important; /* override inline accent bg */
  color: var(--red, #e31515);
  border: 1px solid var(--border-red, rgba(227,21,21,0.3));
  font-size: var(--text-xs, .75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-1,4px) var(--space-3,12px);
  border-radius: var(--radius-full, 999px);
  margin-bottom: var(--space-5, 20px);
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-title .section-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red, #e31515);
  border-radius: 50%;
  animation: pulse 2s infinite;     /* @keyframes pulse already defined globally */
}

/* 2-col grid collapsing to 1-col (sai .feature-grid). 'columns'=2 sets inline grid-template-columns. */
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5, 20px);
}
@media (max-width: 900px) {
  .sf-salesfisionai [data-sf-block="sf-feature-grid"] .features-grid { grid-template-columns: 1fr !important; }
}

/* INLINE card (sai .feature-item): icon column left, body right.
   Requires card_layout='inline' (fieldsToAdd) emitting .feature-card--inline + .feature-card__body. */
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .feature-card {
  background: var(--bg-surface, #161616);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: var(--radius-lg, 16px);
  padding: var(--space-6, 24px);
  display: flex;
  gap: var(--space-4, 16px);
  align-items: flex-start;
  transition: border-color .3s, transform .3s;
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .feature-card:hover {
  border-color: var(--red, #e31515);
  transform: translateY(-4px);
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .feature-card .f-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  margin-bottom: 0;            /* override target's 20px */
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .feature-card h3 {
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  color: var(--text-primary, #F8F8F8);
  margin-bottom: var(--space-1, 4px);
}
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .feature-card p {
  font-size: var(--text-sm, .875rem);
  color: var(--text-muted, #888);
  line-height: 1.75;
}
/* if card_layout='inline' wraps h3+p in .feature-card__body, keep them in the right column: */
.sf-salesfisionai [data-sf-block="sf-feature-grid"] .feature-card__body { flex: 1; }

/* NOTE: sai adds .reveal / reveal-delay-N scroll-in animations per item (driven by salesfisionai-ui.js
   IntersectionObserver). The shared cards markup does NOT emit .reveal classes. To 100%-match the
   staggered fade-in, either (a) accept static cards (graceful, content identical) — recommended, or
   (b) add a default-off 'reveal' flag to the block that appends .reveal[ reveal-delay-N] per card. */


/* -----------------------------------------------------------------------------
   SECTION: services-salesfisionai  ->  sf-feature-grid (use layout="cards" + new per-card link extension; NOT the existing layout="services")
   ----------------------------------------------------------------------------- */

/* Scope everything under the salesfision-ai page wrapper. Tokens (--red, --red-glow, --border, --bg-surface, --radius-xl, --space-*, --text-*, etc.) are defined :root in salesfisionai.css so they resolve here. The cards layout markup is .features-section > .features-inner > (.features-title: span.section-badge + h2 + p) + .features-grid > .feature-card (.f-icon + h3 + p [+ optional a/.feature-card__link]). We restyle those generic classes to match the bespoke .section--surface / .service-card design. */

.sf-salesfisionai .features-section {
  background-color: var(--bg-surface);
  padding-block: var(--space-32);
}
.sf-salesfisionai .features-inner {
  max-width: 1200px;            /* match .container */
  margin-inline: auto;
  padding-inline: var(--space-6, 24px);
}

/* Centered header == .section-header--center */
.sf-salesfisionai .features-title {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

/* Eyebrow badge -> sai .section-tag (override the cards-layout inline background:var(--sf-accent)) */
.sf-salesfisionai .features-title .section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow) !important;  /* beat inline style="background:var(--sf-accent)" */
  border: 1px solid var(--border-red);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.sf-salesfisionai .features-title .section-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;     /* @keyframes pulse already defined in salesfisionai.css */
}

.sf-salesfisionai .features-title h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.sf-salesfisionai .features-title p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
}

/* Grid: fixed 3 cols with responsive fallback (matches sai .services-grid) */
.sf-salesfisionai .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1024px) {
  .sf-salesfisionai .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sf-salesfisionai .features-grid { grid-template-columns: 1fr; }
}

/* Card -> sai .service-card (works whether render emits <div> or <a> wrapper) */
.sf-salesfisionai .feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  text-decoration: none;
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}
.sf-salesfisionai .feature-card:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

/* Emoji icon tile -> .service-card__icon */
.sf-salesfisionai .feature-card .f-icon {
  width: 52px; height: 52px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.sf-salesfisionai .feature-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.sf-salesfisionai .feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
}

/* Trailing 'Explore solution →' row -> .service-card__link */
.sf-salesfisionai .feature-card .feature-card__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--red);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--duration-fast);
}
.sf-salesfisionai .feature-card:hover .feature-card__link { gap: var(--space-2); }


/* -----------------------------------------------------------------------------
   SECTION: how-teaser-salesfisionai  ->  sf-process-steps
   ----------------------------------------------------------------------------- */

/* Site-scoped reskin so sf-process-steps pixel-matches the bespoke how-teaser.
   Scope under the salesfision-ai page wrapper (.sf-salesfisionai). Relies on
   the existing salesfisionai.css design tokens (--red, --bg-subtle, etc.).
   NOTE: the sai timeline uses a horizontal connector line, centered red-ringed
   number circles, dark subtle section band, and a trailing ghost CTA — these
   override the generic dark .process-section / .step-num styling. */

/* Section band — mirrors .how-section (subtle bg + top/bottom borders) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-section {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
  max-width: none;
  padding: var(--space-24) 0;
}
/* Re-center + constrain the inner content like .container + .section-header--center */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-title {
  max-width: 680px;
  margin: 0 auto var(--space-16);
  text-align: center;
  padding-inline: var(--space-6);
}

/* Badge -> .section-tag look (red pill + pulsing dot) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .section-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); background: var(--red-glow);
  border: 1px solid var(--border-red);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .section-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--red);
  border-radius: 50%; animation: pulse 2s infinite;
}

/* Heading -> .heading-lg */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-title h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold); line-height: var(--leading-tight);
  letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 0;
}
/* Sub line -> .section-header__sub */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-sub {
  font-size: var(--text-lg); color: var(--text-muted);
  line-height: var(--leading-relaxed); margin-top: var(--space-4);
}

/* Steps grid -> .timeline (4 cols, horizontal connector line) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding-inline: var(--space-6);
  grid-template-columns: repeat(4, 1fr); gap: 0;
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), transparent);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-step {
  padding: var(--space-6); position: relative;
}
/* Number circle -> .timeline-step__number (red ring, glow, NOT solid fill) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-elevated); border: 2px solid var(--border-red);
  font-size: var(--text-lg); font-weight: var(--weight-bold);
  color: var(--red); margin: 0 auto var(--space-5);
  position: relative; z-index: 1; box-shadow: 0 0 20px var(--red-glow);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-step h3 {
  font-size: var(--text-base); font-weight: var(--weight-semibold);
  color: var(--text-primary); margin-bottom: var(--space-2);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-step p {
  font-size: var(--text-sm); color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* Trailing CTA -> .how-cta + .btn .btn-ghost .btn-lg */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-cta {
  text-align: center; margin-top: var(--space-16);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-cta a {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: var(--weight-semibold); font-size: var(--text-lg); padding: 16px 40px;
  border-radius: var(--radius-md); background: transparent;
  color: var(--text-secondary); border: 1px solid var(--border-light);
  transition: all var(--duration-base) var(--ease);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-cta a:hover {
  border-color: var(--text-muted); color: var(--text-primary); background: var(--bg-elevated);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-cta .btn-icon {
  font-size: 1.1em; transition: transform var(--duration-fast) var(--ease);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-cta a:hover .btn-icon {
  transform: translateX(3px);
}

/* Responsive parity with .timeline breakpoints */
@media (max-width: 1024px) {
  .sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps { grid-template-columns: repeat(2, 1fr); }
  .sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps { grid-template-columns: 1fr; }
}


/* -----------------------------------------------------------------------------
   SECTION: steps-salesfisionai  ->  sf-process-steps
   ----------------------------------------------------------------------------- */

/* Site-scoped under the SAI page wrapper so other sites are untouched.
   Pixel-matches the bespoke steps-salesfisionai (vertical timeline, red theming,
   tokens from salesfisionai.css: --red #e31515, --border-red rgba(227,21,21,.3),
   --bg-elevated #1F1F1F, --text-muted #888, --text-primary #F8F8F8). */

/* 1. Retheme the shared CSS custom props (defaults are white/teal) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] {
  --sf-process-heading-color: var(--text-primary, #F8F8F8);
  --sf-process-step-title-color: var(--text-primary, #F8F8F8);
  --sf-process-step-desc-color: var(--text-muted, #888888);
  --sf-process-num-color: var(--red, #e31515);
}

/* 2. Eyebrow badge -> reuse the site .section-tag pill (red glow + pulse dot, centered) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-title { margin-bottom: 0; }
.sf-salesfisionai [data-sf-block="sf-process-steps"] .section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red, #e31515); background: var(--red-glow, rgba(227,21,21,.15));
  border: 1px solid var(--border-red, rgba(227,21,21,.3));
  padding: 4px 16px; border-radius: 9999px; margin: 0 auto 40px;
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .section-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--red, #e31515);
  border-radius: 50%; animation: pulse 2s infinite;
}

/* 3. Heading sizing to match .heading-md */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700;
  line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 0;
}

/* 4. VERTICAL TIMELINE layout (when render.php emits layout=vertical markup).
   Assumes a wrapper class .process-steps--vertical on the stack; adjust to the
   final markup chosen. Mirrors bespoke .mini-steps / .mini-step / __num / __body. */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps--vertical {
  display: flex; flex-direction: column; gap: 0;
  max-width: 640px; margin-inline: auto;
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps--vertical .process-step {
  display: flex; gap: 24px; padding-bottom: 32px; position: relative; text-align: left;
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps--vertical .process-step:not(:last-child)::before {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--border-red, rgba(227,21,21,.3)), transparent);
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps--vertical .step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-elevated, #1F1F1F); border: 2px solid var(--border-red, rgba(227,21,21,.3));
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700; color: var(--red, #e31515);
  flex-shrink: 0; margin: 0;
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps--vertical .process-step h3 {
  font-size: 1rem; font-weight: 600; color: var(--text-primary, #F8F8F8);
  margin: 0 0 8px; padding-top: 8px;
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps--vertical .process-step p {
  font-size: .875rem; color: var(--text-muted, #888888); line-height: 1.75; margin: 0;
}

/* 5. Center the title block (bespoke uses .section-header--center) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-section { text-align: center; padding: 100px 40px; }


/* -----------------------------------------------------------------------------
   SECTION: timeline-salesfisionai  ->  sf-process-steps
   ----------------------------------------------------------------------------- */

/* Scope to the library block instance on the salesfision-ai page.
   Mirrors how blocks/sf-process-steps/style.css already scopes via
   [data-sf-block="sf-process-steps"]. Site tokens (--red etc.) are
   defined globally in assets/css/salesfisionai.css :root, so they are
   in scope here. Body-level scope (body.sf-bundle-salesfisionai or
   the sf-hide-chrome body) keeps this from leaking to other sites that
   share the library block. */

.sf-salesfisionai [data-sf-block="sf-process-steps"] {
  /* Re-point the block's CSS custom props at the brand tokens */
  --sf-process-heading-color: var(--text-primary);   /* #F8F8F8 */
  --sf-process-step-title-color: var(--text-primary);
  --sf-process-step-desc-color: var(--text-muted);   /* #888 */
  --sf-process-num-color: var(--red);                /* #e31515 */
}

/* Section frame: bespoke used .section.section--surface (padding 96px block,
   bg #161616). Library .process-section is 100px 40px / transparent. Match it. */
.sf-salesfisionai [data-sf-block="sf-process-steps"] {
  background-color: var(--bg-surface);               /* #161616 */
}
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-section {
  max-width: var(--max-width);
  padding-block: var(--space-24);                    /* 96px, was 100px */
  padding-inline: var(--space-6);                    /* 24px */
}

/* Heading: bespoke .heading-md clamp + snug leading + tracking */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-title { margin-bottom: var(--space-16); /* 64px */ }
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-title h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

/* NEW subheading paragraph (from fieldsToAdd: subheading) — bespoke .section-header__sub */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .sf-process-sub {
  max-width: 680px;
  margin: var(--space-4) auto 0;
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  text-align: center;
}

/* Grid: bespoke is a fixed repeat(4,1fr); library uses auto-fill minmax(220px,1fr).
   Force 4 columns and remove the inter-column gap (bespoke gap:0, padding per step). */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
/* Horizontal connector line behind the number circles (bespoke .timeline::before) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps::before {
  content: '';
  position: absolute;
  top: calc(var(--space-6) + 28px);   /* step padding-top (24px) + half of 56px circle */
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), transparent);
}

/* Each step cell (bespoke .timeline-step) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-step {
  padding: var(--space-6);
  position: relative;
}

/* Number circle (bespoke .timeline-step__number): outlined circle, NOT filled.
   The library .step-num normally takes a filled bg via inline accent_style.
   We override to the bespoke outlined look (transparent fill, red border+glow). */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .step-num {
  width: 56px; height: 56px;
  background: var(--bg-elevated) !important;  /* beat inline accent bg */
  border: 2px solid var(--border-red);
  color: var(--red);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px var(--red-glow);
}

/* Step title (bespoke .timeline-step__title) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-step h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
/* Step desc (bespoke .timeline-step__desc) */
.sf-salesfisionai [data-sf-block="sf-process-steps"] .process-step p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Responsive (bespoke breakpoints) */
@media (max-width: 1024px) {
  .sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps { grid-template-columns: repeat(2, 1fr); }
  .sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .sf-salesfisionai [data-sf-block="sf-process-steps"] .process-steps { grid-template-columns: 1fr; }
}


/* -----------------------------------------------------------------------------
   SECTION: cases-salesfisionai  ->  sf-cases-grid
   ----------------------------------------------------------------------------- */

/* ===========================================================================
   sf-cases-grid → salesfision-ai reskin (overlay-tile, static/imageless variant)
   IMPORTANT scoping note: the blueprint wrapper class is derived from slug parts
   matching assets/css/{part}.css. 'sf-cases-grid' has NO part matching
   'salesfisionai.css', so a page containing ONLY library blocks will NOT get the
   .sf-salesfisionai wrapper. On salesfision-ai the home page still has many
   '-salesfisionai' blocks, so the wrapper IS present — scope under it. If a page
   ever became all-library, add a 'salesfisionai' slug-part bearer or a body class.
   All selectors below assume the wrapper .sf-salesfisionai is on the page.
   Place this in assets/css/salesfisionai.css so it ships with the bundle.
   =========================================================================== */

/* The library block sets --sf-cases-bg / --sf-cases-accent on its root; we let
   accent_color=#e31515 + section_bg=#0D0D0D flow through, but pin tokens here too
   so it matches even if seeded with library defaults. */
.sf-salesfisionai [data-sf-block="sf-cases-grid"]{
  --sf-cases-bg: var(--bg-base);          /* #0D0D0D */
  --sf-cases-accent: var(--red);          /* #e31515 */
}

/* Section frame — bespoke used <section class="section" id="cases"> + .container.
   Match the section vertical rhythm and constrain width like .container. */
.sf-salesfisionai .cases-page-section.cases-section{
  background: transparent;                /* bespoke section had no own bg */
  padding-block: var(--space-32);
}
.sf-salesfisionai .cases-section .section-inner{
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Header → mirror .section-header--center + .section-tag + .heading-lg + sub */
.sf-salesfisionai .cases-section .cases-header{
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}
.sf-salesfisionai .cases-section .cases-header .section-badge{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.sf-salesfisionai .cases-section .cases-header .section-badge::before{
  content:''; width:6px; height:6px; background:var(--red);
  border-radius:50%; display:inline-block; animation:pulse 2s infinite;
}
.sf-salesfisionai .cases-section .cases-header h2{
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.sf-salesfisionai .cases-section .cases-header h2 > span{ display:inline; }
.sf-salesfisionai .cases-section .cases-header p{
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
}

/* Grid → bespoke .case-grid: 3 cols, gap space-6, 2 cols ≤1024, 1 col ≤768 */
.sf-salesfisionai .cases-section .cases-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width:1024px){
  .sf-salesfisionai .cases-section .cases-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:768px){
  .sf-salesfisionai .cases-section .cases-grid{ grid-template-columns: 1fr; }
}

/* Card → bespoke .case-card. STATIC variant: kill the anchor/overlay/image look,
   restyle the <a> (or <div> if card_style=static implemented) as a panel. */
.sf-salesfisionai .cases-section .case-tile{
  position: static;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 0;
  aspect-ratio: auto;
  background-image: none !important;   /* defensive: no card image in this layout */
  color: inherit;
  text-decoration: none;
  cursor: default;                     /* not a link */
  overflow: visible;
}
/* If card_style=static is NOT implemented and cards stay <a>, also disable hover. */
.sf-salesfisionai .cases-section .case-tile:hover{ transform:none; box-shadow:none; }

/* Remove the dark gradient overlay element used by the image layout */
.sf-salesfisionai .cases-section .case-tile .case-overlay{ display:none !important; }

/* Content block sits in normal flow, not absolutely positioned over an image */
.sf-salesfisionai .cases-section .case-tile .case-content{
  position: static;
  inset: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* item_client chip → .case-card__tag */
.sf-salesfisionai .cases-section .case-tile .case-label{
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  width: fit-content;
}
/* item_metric → .case-card__result (big red) */
.sf-salesfisionai .cases-section .case-tile .case-metric{
  order: 2;
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--weight-black);
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
/* item_title → .case-card__title */
.sf-salesfisionai .cases-section .case-tile h3{
  order: 3;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}
/* item_summary → .case-card__body */
.sf-salesfisionai .cases-section .case-tile p{
  order: 4;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}
/* Belt-and-braces: hide read link if hide_read_link/static not honored */
.sf-salesfisionai .cases-section .case-tile .case-read{ display:none !important; }

/* Reveal animation parity: bespoke applied .reveal / .reveal-delay-2/-3 per card.
   The library block does NOT emit reveal classes. To match the staggered fade-in,
   either (a) add reveal/reveal-delay classes in render for this layout (out of
   scope here), or (b) accept cards appear without stagger. If the global .reveal
   IntersectionObserver (salesfisionai-ui.js) requires the class, cards will simply
   be visible (no opacity:0 start) — visually acceptable, NOT byte-identical motion. */


/* -----------------------------------------------------------------------------
   SECTION: cta-salesfisionai  ->  sf-cta
   ----------------------------------------------------------------------------- */

/* Scope everything under the salesfision-ai page wrapper AND the block selector so other sites' sf-cta is untouched. sai pages render with body bundle 'salesfisionai'; wrap rules in .sf-salesfisionai (or body.sf-bundle-salesfisionai). Tokens (--red #e31515, --bg-surface #161616, --border #2A2A2A, --radius-2xl 24px, Inter) come from salesfisionai.css. */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-section {
  background: var(--bg-surface);
  padding: var(--space-24) 0;            /* match sai .section default block padding */
}
/* Reproduce sai .cta-block card exactly */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-card {
  max-width: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-card:hover {
  border-color: var(--border);          /* sai card does NOT change border on hover */
  box-shadow: none;
}
/* Red radial glow behind the card (sai .cta-block::before) */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-card > * { position: relative; }
/* Eyebrow (new field) -> .cta-block__eyebrow */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
/* Heading -> sai .heading-md, centered, capped */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-section h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 640px;
  margin: 0 auto;
}
/* Description -> sai inline-styled <p> */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-section p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  margin: var(--space-5) auto 0;
  line-height: var(--leading-relaxed);
}
/* Actions row -> .cta-block__actions */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
/* Buttons -> sai .btn .btn-lg primary + ghost */
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-primary,
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  padding: 16px 40px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease);
}
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
  box-shadow: 0 0 20px var(--red-glow);
}
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 0 32px var(--red-glow-strong);
  transform: translateY(-1px);
}
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-outline {       /* sai .btn-ghost */
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: var(--bg-elevated);
}
/* Arrow icon (new button_icon field) */
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-icon {
  font-size: 1.1em;
  transition: transform var(--duration-fast) var(--ease);
}
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-primary:hover .btn-icon,
.sf-salesfisionai [data-sf-block="sf-cta"] .btn-outline:hover .btn-icon { transform: translateX(3px); }
/* Sub microcopy (new field) -> .cta-block__sub */
.sf-salesfisionai [data-sf-block="sf-cta"] .cta-sub {
  font-size: var(--text-sm);
  color: var(--text-faint);
  margin-top: var(--space-4);
}
/* Mobile parity with sai @media: stack buttons, tighten card padding */
@media (max-width: 768px) {
  .sf-salesfisionai [data-sf-block="sf-cta"] .cta-card { padding: var(--space-10) var(--space-6); }
  .sf-salesfisionai [data-sf-block="sf-cta"] .cta-actions { flex-direction: column; }
}

