/* ==========================================================================
   flowio — HOMEPAGE: CORE SERVICES + AI AUTOMATIONS
   File: css/sections.css       Loaded by: index.html
   --------------------------------------------------------------------------
   Replaces the old .services-section rows and the .autogrid-section grid with:
     · one core services section — four columns, big type
     · one expanded section per automation category, alternating, each with a
       pure-CSS product mockup opposite the copy

   Prefixes:
     .si-*   section furniture (headings, eyebrows, links, cases)
     .svc-*  the core services columns
     .sm-*   the CSS product mockups (tinted panel + floating white app card),
             the same visual language as the solution cards on
             business-solutions.html, reimplemented here because those rules
             are inline and page-scoped to that file.

   Everything is additive. The only existing selectors touched are
   .integrations-section > .container (z-index lift for the grid background).
   ========================================================================== */

.si-block {
  --si-coral: #f95730;
  --si-amber: #fa8928;
  --si-ink: hsl(220 25% 7%);
  --si-ink-2: hsl(220 24% 9.5%);
  --si-line: hsla(0, 0%, 100%, 0.09);
  --si-text: hsla(0, 0%, 100%, 0.64);
  --si-faint: hsla(0, 0%, 100%, 0.42);
  --si-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SHARED TYPE
   ========================================================================== */

.si-eyebrow {
  display: block;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--si-faint);
  margin-bottom: 0.9rem;
}

.si-num {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--si-coral);
  margin-bottom: 1rem;
}
.si-num::after { content: ""; width: 2.25rem; height: 1px; background: hsla(16, 100%, 60%, 0.4); }

.si-h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin: 0 0 0.8rem; }
.si-h2--sec { font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
/* one size for every section sub-description (core services and the automations
   carousel both use this), and lighter than --si-text for contrast on the ink */
.si-sub { font-size: 1.1875rem; line-height: 1.7; color: hsla(0, 0%, 100%, 0.75); margin: 0; }
.si-lede { font-size: 1rem; line-height: 1.72; color: var(--si-text); margin: 0 0 1.6rem; max-width: 36rem; }

.si-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--si-coral);
  transition: gap 0.25s ease, color 0.25s ease;
}
.si-link:hover { gap: 0.85rem; color: var(--si-amber); }
.si-link svg { flex-shrink: 0; }

/* ==========================================================================
   INTEGRATIONS SECTION — same blueprint grid as the homepage hero
   Mirrors .hf-grid-bg in css/hero-flow.css (132px pitch, same line colour and
   radial fade) so the two light bands read as a pair.
   A real element rather than a pseudo-element, because
   .integrations-section::before/::after are already the hairline rules.
   ========================================================================== */

.si-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(hsla(220, 14%, 45%, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, hsla(220, 14%, 45%, 0.08) 1px, transparent 1px);
  background-size: 132px 132px;
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 45% 40%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 80% at 45% 40%, #000 45%, transparent 100%);
}
.integrations-section > .container { position: relative; z-index: 1; }

/* ==========================================================================
   CORE SERVICES — four big-type columns
   ========================================================================== */

.si-svc-sec { background: var(--si-ink); padding: 4.5rem 0 4rem; border-top: 1px solid var(--si-line); }
.si-svc-head { max-width: 820px; margin: 0 0 3rem; }

.si-svc-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1rem;
}
.si-svc-h2 em {
  font-style: normal;
  background: linear-gradient(135deg, hsl(16 100% 58%) 0%, hsl(30 100% 55%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* gap (not per-column margin/padding) so all four columns, and the coral rule
   above each, are exactly the same width — the last column used to be wider */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }

/* flex column so the Explore link is pinned to the bottom of every column —
   the copy lengths differ, and left to flow they land at ragged heights */
.svc-col {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 0 0;
  border-top: 2px solid hsla(16, 100%, 60%, 0.55);
}
.svc-col .si-link { margin-top: auto; align-self: flex-start; }

.svc-n {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--si-coral);
  margin-bottom: 1.1rem;
}
.svc-col h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; margin: 0 0 0.7rem; }
.svc-col h3 a { color: #fff; transition: color 0.25s ease; }
.svc-col h3 a:hover { color: var(--si-coral); }
/* larger and lighter than the shared --si-text/--si-faint tokens: this section
   sits on the darkest ink and the smaller sizes did not carry enough contrast */
.svc-col > p { font-size: 0.9375rem; line-height: 1.65; color: hsla(0, 0%, 100%, 0.78); margin: 0 0 1rem; }

.svc-list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.5rem; }
.svc-list li { display: flex; gap: 0.55rem; font-size: 0.875rem; line-height: 1.5; color: hsla(0, 0%, 100%, 0.68); }
.svc-list li::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; margin-top: 0.45rem; border-radius: 1px; background: var(--si-coral); }

.si-svc-cta { display: flex; justify-content: center; margin-top: 3rem; }

/* ==========================================================================
   AI AUTOMATIONS — one expanded section per category
   ========================================================================== */

.si-auto-sec { background: var(--si-ink); padding: 3.75rem 0; border-top: 1px solid var(--si-line); }
.si-auto-sec--flip { background: var(--si-ink-2); }
.si-auto-sec--head { padding-bottom: 0.75rem; }
.si-head-left { max-width: 780px; margin: 0; }

.si-auto-row { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) {
  .si-auto-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .si-auto-sec--flip .si-auto-copy { order: 2; }
}

.si-cases { display: grid; gap: 1rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.si-case { display: flex; gap: 0.85rem; align-items: flex-start; }
.si-case-n {
  flex-shrink: 0;
  width: 1.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--si-coral);
  padding-top: 0.1rem;
}
/* h4 — the category title above it is an h3, under the block's h2 */
.si-case h4 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: #fff; margin: 0 0 0.2rem; }
.si-case p { font-size: 0.875rem; line-height: 1.6; color: var(--si-text); margin: 0; }

/* ==========================================================================
   CSS PRODUCT MOCKUPS — tinted panel + floating app card
   ========================================================================== */

.sm-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 1.75rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, hsla(16, 100%, 50%, 0.16) 0%, hsla(220, 60%, 30%, 0.24) 100%);
}
.sm-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, hsla(16, 100%, 50%, 0.22) 0%, transparent 62%);
  pointer-events: none;
}
.sm-panel.t-green { background: linear-gradient(135deg, hsla(142, 76%, 36%, 0.18) 0%, hsla(142, 60%, 25%, 0.24) 100%); }
.sm-panel.t-green::before { background: radial-gradient(circle at 30% 25%, hsla(142, 76%, 40%, 0.22) 0%, transparent 62%); }
.sm-panel.t-blue { background: linear-gradient(135deg, hsla(217, 91%, 55%, 0.18) 0%, hsla(220, 60%, 28%, 0.24) 100%); }
.sm-panel.t-blue::before { background: radial-gradient(circle at 30% 25%, hsla(217, 91%, 60%, 0.22) 0%, transparent 62%); }
.sm-panel.t-purple { background: linear-gradient(135deg, hsla(262, 83%, 55%, 0.18) 0%, hsla(262, 50%, 25%, 0.24) 100%); }
.sm-panel.t-purple::before { background: radial-gradient(circle at 30% 25%, hsla(262, 83%, 60%, 0.22) 0%, transparent 62%); }
.sm-panel.t-amber { background: linear-gradient(135deg, hsla(38, 95%, 50%, 0.18) 0%, hsla(28, 60%, 25%, 0.24) 100%); }
.sm-panel.t-amber::before { background: radial-gradient(circle at 30% 25%, hsla(38, 95%, 55%, 0.22) 0%, transparent 62%); }
.sm-panel.t-teal { background: linear-gradient(135deg, hsla(174, 70%, 40%, 0.18) 0%, hsla(190, 55%, 25%, 0.24) 100%); }
.sm-panel.t-teal::before { background: radial-gradient(circle at 30% 25%, hsla(174, 70%, 45%, 0.22) 0%, transparent 62%); }

.sm-card {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  background: #fff;
  border-radius: 0.875rem;
  box-shadow: 0 16px 40px hsla(220, 40%, 3%, 0.5);
  padding: 1rem;
  text-align: left;
}

.sm-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(220 15% 25%);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid hsl(220 15% 92%);
  margin-bottom: 0.625rem;
}
.sm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(142 76% 45%);
  box-shadow: 0 0 0 3px hsla(142, 76%, 45%, 0.2);
  flex-shrink: 0;
}
.sm-status {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: hsla(142, 76%, 45%, 0.12);
  color: hsl(142 76% 32%);
  white-space: nowrap;
}

.sm-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: hsl(220 15% 30%);
}
.sm-row + .sm-row { border-top: 1px dashed hsl(220 15% 92%); }
.sm-row svg { width: 14px; height: 14px; flex-shrink: 0; }
.sm-row b { font-weight: 700; color: hsl(220 15% 20%); }
.sm-sub { display: block; font-size: 0.5625rem; color: hsl(220 10% 55%); margin-top: 0.15rem; font-weight: 400; }

.sm-tag {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.sm-tag.green { background: hsla(142, 76%, 45%, 0.12); color: hsl(142 76% 32%); }
.sm-tag.blue { background: hsla(217, 91%, 60%, 0.12); color: hsl(217 91% 45%); }
.sm-tag.purple { background: hsla(262, 83%, 58%, 0.12); color: hsl(262 83% 50%); }
.sm-tag.amber { background: hsla(38, 95%, 50%, 0.15); color: hsl(32 95% 38%); }
.sm-tag.grey { background: hsl(220 15% 94%); color: hsl(220 10% 45%); }
.sm-tag.coral { background: hsla(16, 100%, 55%, 0.13); color: hsl(16 85% 42%); }

/* timeline rail */
.sm-track { position: relative; padding-left: 1.1rem; }
.sm-track::before { content: ""; position: absolute; left: 4px; top: 0.7rem; bottom: 0.7rem; width: 1px; background: hsl(220 15% 88%); }
.sm-track .sm-row { position: relative; }
.sm-track .sm-row::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.85rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid hsl(142 76% 45%);
}
.sm-track .sm-row.pending::before { border-color: hsl(220 15% 78%); }

/* sparkline bars */
.sm-bars { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-left: auto; }
.sm-bars i { width: 4px; border-radius: 1px; background: hsl(217 91% 62%); display: block; }
.sm-bars.warm i { background: hsl(16 90% 58%); }

/* data grid */
.sm-grid { border: 1px solid hsl(220 15% 90%); border-radius: 0.5rem; overflow: hidden; }
.sm-grid > div { display: grid; grid-template-columns: 1.4fr 1fr 0.9fr; gap: 0.5rem; padding: 0.42rem 0.55rem; font-size: 0.6875rem; color: hsl(220 15% 32%); }
.sm-grid > div + div { border-top: 1px solid hsl(220 15% 93%); }
.sm-grid .sm-th { background: hsl(220 15% 96%); font-weight: 700; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em; color: hsl(220 10% 45%); }

/* big stat */
.sm-big { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.35rem 0 0.55rem; }
.sm-big strong { font-size: 2.15rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: hsl(16 85% 45%); }
.sm-big span { font-size: 0.6875rem; color: hsl(220 10% 50%); font-weight: 600; }

/* coverage bar */
.sm-cover { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 0.15rem 0 0.6rem; }
.sm-cover i { display: block; height: 100%; }
.sm-cover .on { background: hsl(174 70% 42%); }
.sm-cover .off { background: hsl(220 15% 88%); }
.sm-scale { display: flex; justify-content: space-between; font-size: 0.5625rem; color: hsl(220 10% 55%); margin-bottom: 0.4rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-col { padding-bottom: 1.5rem; }
}
@media (max-width: 640px) {
  .si-svc-sec { padding: 3rem 0 2.75rem; }
  .si-svc-head { margin-bottom: 2rem; }
  .si-auto-sec { padding: 2.5rem 0; }
  .svc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .si-svc-cta { margin-top: 2rem; }
  .sm-panel { min-height: 0; padding: 1.25rem; }
  .si-sub { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .si-link, .svc-col h3 a { transition: none; }
}


/* ==========================================================================
   AI AUTOMATIONS — horizontal carousel
   One dark section; the six category rows become snap-scroll slides.
   ========================================================================== */

.si-car-sec {
  /* container-equivalent inset, measured from the section's own edge — mirrors
     .container (max-width 1236px + responsive gutters) without any vw units,
     so it stays correct with scrollbars and through resizes */
  --si-gutter: 1rem;
  --si-edge: max(var(--si-gutter), calc((100% - 1236px) / 2 + var(--si-gutter)));
  padding: 3.75rem 0 3.25rem;
  overflow-x: clip;
}
@media (min-width: 768px) { .si-car-sec { --si-gutter: 2rem; } }
@media (min-width: 1024px) { .si-car-sec { --si-gutter: 2.5rem; } }
.si-car-head { margin-bottom: 2.25rem; max-width: 860px; }

/* the shell positions the big overlay arrows against the track */
.si-car-shell { position: relative; }

.si-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: none; color: hsl(220 25% 12%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.si-car-btn svg { width: 22px; height: 22px; }
.si-car-btn--prev { left: calc(var(--si-edge) - 1.625rem); }
.si-car-btn--next { right: calc(var(--si-edge) - 1.625rem); }
.si-car-btn:hover:not(:disabled) { background: var(--si-coral); color: #fff; }
.si-car-btn:disabled { opacity: 0; pointer-events: none; }

.si-car-track {
  display: flex; gap: 1.75rem;
  overflow-x: auto;
  /* the shell spans the full section width; this padding keeps the snapped
     card aligned with the .container while the track bleeds to the edges */
  padding-inline: var(--si-edge);
  scroll-padding-left: var(--si-edge);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
}
.si-car-track::-webkit-scrollbar { display: none; }

/* the track is focusable (tabindex) for keyboard scrolling — suppress the site's
   universal purple focus outline on click; keyboard focus keeps a coral ring */
.si-car-track:focus { outline: none; }
.si-car-track:focus-visible { outline: 2px solid hsla(16, 100%, 55%, 0.7); outline-offset: -2px; }
.si-car-btn:focus { outline: none; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.si-car-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px hsla(16, 100%, 55%, 0.5), 0 6px 24px rgba(0, 0, 0, 0.45); }
.si-car-dot:focus { outline: none; }
.si-car-dot:focus-visible { outline: 2px solid hsla(16, 100%, 55%, 0.7); outline-offset: 2px; }

/* each slide is an obvious card, so the peeking next card reads as intended */
.si-car-slide {
  flex: 0 0 calc(100% - 2rem); min-width: 0; scroll-snap-align: start;
  background: var(--si-ink-2);
  border: 1px solid var(--si-line);
  border-radius: 1.25rem;
  padding: 2.25rem 2.5rem;
}
@media (min-width: 900px) { .si-car-slide { flex-basis: calc(100% - 2.5rem); } }

/* the active card is full strength; upcoming/previous cards sit dimmed */
.si-car-track.si-car-ready .si-car-slide { opacity: 0.45; transition: opacity 0.35s ease; }
.si-car-track.si-car-ready .si-car-slide.is-active { opacity: 1; }

.si-car-slide .si-lede { font-size: 1.0625rem; }
.si-car-slide .si-case h4 { font-size: 1rem; }
.si-car-slide .si-case p { font-size: 0.9375rem; }

.si-car-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 2rem; }
.si-car-dot {
  width: 0.625rem; height: 0.625rem; padding: 0; border: none; border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.22); cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.si-car-dot:hover { background: hsla(0, 0%, 100%, 0.4); }
.si-car-dot.active { width: 2rem; background: var(--si-coral); }

@media (max-width: 640px) {
  .si-car-sec { padding: 2.5rem 0; }
  .si-car-head { margin-bottom: 1.5rem; }
  .si-car-slide { padding: 1.5rem 1.25rem; }
  .si-car-btn { width: 2.75rem; height: 2.75rem; }
  .si-car-btn--prev { left: max(0.25rem, calc(var(--si-edge) - 1.375rem)); }
  .si-car-btn--next { right: max(0.25rem, calc(var(--si-edge) - 1.375rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .si-car-track { scroll-behavior: auto; }
}

/* ==========================================================================
   SECURITY / COMPLIANCE BAR — compact on small screens
   (base styles are inline in index.html, hence the !important overrides)
   ========================================================================== */

@media (max-width: 700px) {
  .security-bar { padding: 2rem 0; }
  .security-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 1.25rem 0.75rem !important; }
  .security-grid .trust-stat { gap: 0.45rem !important; }
  .security-grid .trust-stat-icon { padding: 8px !important; }
  .security-grid .trust-stat-icon svg { width: 18px; height: 18px; }
  .security-grid .trust-stat-label { font-size: 0.8125rem !important; }
  .security-grid .trust-stat > div > div + div { font-size: 0.6875rem !important; }
}
@media (max-width: 400px) {
  .security-grid { gap: 1rem 0.5rem !important; }
  .security-grid .trust-stat > div > div + div { display: none; }
}


/* ==========================================================================
   WHY CHOOSE — credential bento
   Replaces the six uniform .feature-card tiles with a mixed-size grid in the
   manner of the about page bento. Light band; the tall tile carries the n8n
   photo, the wide tile carries the OpenAI Select Partner badge.
   ========================================================================== */

.wc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.15rem; margin-top: 3rem; }
.wc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.6rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.wc-card:hover { border-color: hsla(16, 100%, 50%, .35); box-shadow: 0 24px 50px -24px hsla(16, 100%, 50%, .25); transform: translateY(-4px); }
.wc-span2 { grid-column: span 2; }
.wc-span4 { grid-column: span 4; }

/* tall tile: media stacked over its caption, two rows deep */
.wc-tall { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.wc-media {
  position: relative; flex: 1; min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(220 25% 16%) 0%, hsl(220 25% 9%) 100%);
}
/* the tile is proportionally wider than the source photo, so cover crops
   vertically — bias the crop upward to keep the subject's head clear */
.wc-media .wc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.wc-media-logo { width: 74px; height: auto; opacity: .92; }
.wc-cap { padding: 1.5rem 1.6rem 1.7rem; }

.wc-title { font-size: 1.08rem; font-weight: 750; letter-spacing: -.01em; color: var(--foreground); margin: 0 0 .45rem; line-height: 1.25; }
.wc-desc { font-size: .9rem; line-height: 1.6; color: var(--muted-foreground); margin: 0; }
.wc-proof { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; font-size: .8rem; font-weight: 700; color: hsl(142 60% 32%); }
.wc-proof::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: hsl(142 70% 42%); }

.wc-badge-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.wc-oai { height: 58px; width: auto; flex-shrink: 0; }
.wc-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: .6rem;
  background: hsl(220 20% 97%); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 650; color: hsl(220 20% 28%);
}
.wc-chip img { height: 17px; width: auto; }

.wc-num { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.wc-stat {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, hsl(16 100% 50%), hsl(30 100% 55%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wc-stat-l { font-size: .8rem; font-weight: 600; color: var(--muted-foreground); margin-top: .35rem; }

@media (max-width: 1024px) {
  .wc-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-span2 { grid-column: span 1; }
  .wc-span4, .wc-tall { grid-column: span 2; }
  .wc-tall { grid-row: auto; }
  .wc-media { min-height: 220px; }
}
@media (max-width: 640px) {
  .wc-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .wc-span2, .wc-span4, .wc-tall { grid-column: span 1; }
  .wc-card { padding: 1.35rem; }
  .wc-oai { height: 46px; }
  .wc-media { min-height: 190px; }
  /* pack the credential chips so they do not wrap one per line */
  .wc-badge-row { gap: 0.5rem; }
  .wc-chip { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
}

/* last row sits taller than the rows above it, with the dark case-study card
   spanning the two tiles that used to be there */
.wc-rowtall { min-height: 245px; display: flex; flex-direction: column; justify-content: center; }

.wc-cta {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  text-decoration: none;
  background: linear-gradient(135deg, hsl(220 25% 8%) 0%, hsl(220 25% 13%) 100%);
  border-color: hsla(0, 0%, 100%, 0.1);
}
.wc-cta:hover { border-color: hsla(16, 100%, 50%, 0.45); box-shadow: 0 26px 55px -24px hsla(16, 100%, 50%, 0.35); }
.wc-cta .wc-title { color: #fff; }
.wc-cta .wc-desc { color: hsla(0, 0%, 100%, 0.68); }

.wc-stars { display: flex; gap: 0.15rem; margin-bottom: 0.55rem; }
.wc-stars svg { width: 18px; height: 18px; color: hsl(45 93% 55%); }
.wc-cta-rating { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: hsla(0, 0%, 100%, 0.55); margin-bottom: 0.7rem; }

.wc-cta-arrow {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: hsla(0, 0%, 100%, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}
.wc-cta-arrow svg { width: 22px; height: 22px; color: #fff; }
.wc-cta:hover .wc-cta-arrow { background: hsl(16 100% 50%); transform: translateX(3px); }

@media (max-width: 1024px) { .wc-cta { grid-column: span 2; } }
@media (max-width: 640px) {
  .wc-cta { grid-column: span 1; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .wc-rowtall { min-height: 0; }
}



/* the marquee transform is driven by scripts/slider_new.js; pan-y keeps
   vertical page scrolling working while the strip captures horizontal drags */
.integrations-slider { touch-action: pan-y; }

/* ==========================================================================
   SUCCESS STORIES — featured hero + supporting cards
   Replaces the three equal .case-study-card tiles. The hero carries image,
   metrics, description and tags; supporting cards keep all of the same
   ingredients at two-up rather than being reduced to stubs.
   ========================================================================== */

.cs-wrap { margin-top: 3rem; }

/* --- shared --- */
.cs-ind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .7rem; }
.cs-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.15rem; }
.cs-tag { display: inline-block; padding: .28rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.cs-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; color: hsl(16 100% 55%); transition: gap .25s ease; }
.cs-link svg { flex-shrink: 0; }

/* --- hero card --- */
.cs-big {
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: hsl(220 25% 7%);
  border: 1px solid hsla(0, 0%, 100%, .1);
  border-radius: 1.25rem; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.cs-big:hover { border-color: hsla(16, 100%, 50%, .45); box-shadow: 0 26px 60px -28px hsla(16, 100%, 50%, .4); transform: translateY(-4px); }
.cs-big-img { position: relative; min-height: 320px; background-size: cover; background-position: center; background-color: hsl(220 25% 12%); }
.cs-big-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, hsla(220, 25%, 7%, .88) 100%); }
/* client logos are contained on a white plate rather than cropped like a photo */
.cs-big-img.is-logo { background-size: contain; background-repeat: no-repeat; background-color: #fff; }
.cs-big-img.is-logo::after { display: none; }
.cs-flag { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: linear-gradient(135deg, hsl(16 100% 50%), hsl(30 100% 55%)); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cs-big-body { padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.cs-big-body .cs-ind { color: hsl(16 100% 60%); }
.cs-big-body h3 { font-size: 1.55rem; line-height: 1.2; color: #fff; letter-spacing: -.02em; margin: 0 0 .7rem; }
.cs-big-body p { font-size: .95rem; line-height: 1.65; color: hsla(0, 0%, 100%, .68); margin: 0 0 1.3rem; }
.cs-big-m { display: flex; gap: 2.5rem; padding: 1.05rem 0; border-top: 1px solid hsla(0, 0%, 100%, .13); border-bottom: 1px solid hsla(0, 0%, 100%, .13); margin-bottom: 1.1rem; }
.cs-big-m .v { font-size: 2.1rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, hsl(16 100% 50%), hsl(30 100% 55%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-big-m .l { font-size: .73rem; font-weight: 600; color: hsla(0, 0%, 100%, .5); margin-top: .3rem; text-transform: uppercase; letter-spacing: .06em; }
.cs-big .cs-tag { background: hsla(0, 0%, 100%, .08); border: 1px solid hsla(0, 0%, 100%, .14); color: hsla(0, 0%, 100%, .75); }
.cs-big:hover .cs-link { gap: .8rem; }

/* --- supporting cards --- */
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.cs-mid {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.15rem; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cs-mid:hover { border-color: hsla(16, 100%, 50%, .4); box-shadow: 0 22px 45px -24px hsla(16, 100%, 50%, .32); transform: translateY(-4px); }
.cs-mid-img { height: 165px; background-size: cover; background-position: center; background-color: hsl(220 25% 12%); }
.cs-mid-img.is-logo { background-size: contain; background-repeat: no-repeat; background-color: #fff; }
.cs-mid-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.cs-mid-body .cs-ind { color: hsl(16 100% 45%); }
.cs-mid-body h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .5rem; color: var(--foreground); }
.cs-mid-body p { font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); margin: 0 0 1rem; }
.cs-mid-m { display: flex; gap: 2rem; margin-top: auto; padding: .9rem 0; border-top: 1px solid var(--border); margin-bottom: .9rem; }
.cs-mid-m .v { font-size: 1.5rem; font-weight: 800; line-height: 1; color: hsl(16 100% 45%); }
.cs-mid-m .l { font-size: .68rem; font-weight: 600; color: var(--muted-foreground); margin-top: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.cs-mid .cs-tag { background: hsl(220 20% 96%); border: 1px solid var(--border); color: hsl(220 15% 38%); }
.cs-mid .cs-link { color: hsl(16 100% 45%); font-size: .875rem; }
.cs-mid:hover .cs-link { gap: .8rem; }

@media (max-width: 900px) {
  .cs-big { grid-template-columns: 1fr; }
  .cs-big-img { min-height: 220px; }
  .cs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cs-wrap { margin-top: 2rem; }
  .cs-big-body { padding: 1.5rem; }
  .cs-big-body h3 { font-size: 1.3rem; }
  .cs-big-m { gap: 1.75rem; }
  .cs-big-m .v { font-size: 1.75rem; }
}

/* "View All Case Studies" — matches the hero's primary button (.hf-btn in
   css/hero-flow.css). The values are repeated rather than reusing that class
   because its --hf-* tokens are scoped to .hero-flow and resolve to nothing
   outside it. The old .btn-outline treatment read as non-clickable here. */
.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 6px;
  background: hsl(220 25% 18%);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cs-cta-btn:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 28px hsla(220, 30%, 20%, .22); }
.cs-cta-btn:focus-visible { outline: 2px solid hsl(16 100% 50%); outline-offset: 3px; }
.cs-cta-btn svg { flex-shrink: 0; }
.cs-cta-marker { width: 9px; height: 9px; background: #f95730; flex-shrink: 0; }
