/* ==========================================================================
   blocks.css — the section blocks the design comps are built from:
   icon chips, feature rows, tiles, action cards, detail cards, statement
   banners, outcome stats and the dark inset panel.

   Every block works on light ground by default; wrapping it in `.on-dark`
   flips the borders, chips and text for use over a navy section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icon chip — the pale circular badge the comps put beside copy and on cards
   -------------------------------------------------------------------------- */
.chip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(15, 140, 201, 0.1);
  color: var(--c-accent-text);
}

.chip-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.chip-icon--sm {
  width: 2.5rem;
  height: 2.5rem;
}

.chip-icon--sm svg {
  width: 1.25rem;
  height: 1.25rem;
}

.on-dark .chip-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-accent-light);
}

/* --------------------------------------------------------------------------
   Feature rows — icon beside a paragraph, hairline between (Challenge, About)
   -------------------------------------------------------------------------- */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 0.6rem + 1vw, 1.5rem);
  padding-block: clamp(1rem, 0.7rem + 0.9vw, 1.4rem);
}

.feature-row + .feature-row {
  border-top: 1px solid var(--c-line);
}

.on-dark .feature-row + .feature-row {
  border-top-color: var(--c-line-inverse);
}

.feature-row__text {
  align-self: center;
  color: var(--c-ink-soft);
  line-height: 1.6;
}

.on-dark .feature-row__text {
  color: rgba(255, 255, 255, 0.86);
}

.feature-row__text strong {
  color: var(--c-accent-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tiles — a compact icon + label grid (capabilities, industries)
   -------------------------------------------------------------------------- */
.tile-grid {
  display: grid;
  gap: clamp(0.6rem, 0.4rem + 0.6vw, 0.9rem);
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem) 0.75rem;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface);
  text-align: center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 140, 201, 0.4);
  box-shadow: 0 6px 18px rgba(20, 16, 86, 0.08);
}

.tile__label {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--c-heading);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Action cards — icon beside a title and a qualifier (what agents do)
   -------------------------------------------------------------------------- */
.action-grid {
  display: grid;
  gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.1rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.action {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1rem, 0.85rem + 0.5vw, 1.3rem);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface);
}

.action__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-heading);
}

.action__sub {
  display: block;
  font-weight: 400;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Detail cards — icon chip, title, accent rule, body (benefits, enterprise)
   -------------------------------------------------------------------------- */
.detail-grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.detail {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
}

.detail__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.detail__title {
  align-self: center;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-heading);
  text-wrap: balance;
}

.detail__rule {
  width: 2.25rem;
  height: 2px;
  margin-bottom: 0.9rem;
  background: var(--c-accent);
}

.detail__body {
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.on-dark .detail {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.on-dark .detail__title {
  color: var(--c-inverse);
}

.on-dark .detail__body {
  color: rgba(255, 255, 255, 0.78);
}

.on-dark .detail__rule {
  background: var(--c-accent-light);
}

/* --------------------------------------------------------------------------
   Statement banner — the closing line each comp section ends on
   -------------------------------------------------------------------------- */
.banner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.7rem + 1vw, 1.6rem);
  margin-top: var(--block);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem) clamp(1.25rem, 1rem + 1vw, 2rem);
  border-radius: 10px;
  background: rgba(15, 140, 201, 0.07);
}

.on-dark .banner {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.banner__text {
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  line-height: 1.45;
  color: var(--c-heading);
}

.banner__text em {
  display: block;
  font-style: normal;
  color: var(--c-accent-text);
}

.on-dark .banner__text {
  color: var(--c-inverse);
}

.on-dark .banner__text em {
  color: var(--c-accent-light);
}

/* --------------------------------------------------------------------------
   Outcome stats — the icon row that closes the demo call to action
   -------------------------------------------------------------------------- */
.stat-row {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
  margin-top: var(--block);
  padding-top: var(--block);
  border-top: 1px solid var(--c-line-inverse);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.stat__label {
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

/* --------------------------------------------------------------------------
   Dark inset panel — "One platform. Configured to your business."
   -------------------------------------------------------------------------- */
.inset {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  margin-top: var(--block);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: 12px;
  background: var(--c-brand);
  color: var(--c-inverse);
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
  .inset {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.inset img {
  width: 100%;
  border-radius: 8px;
}

/* Without a paired image the panel runs full width. */
.inset--text {
  grid-template-columns: 1fr;
}

.inset__title {
  color: var(--c-inverse);
}

.inset__rule {
  width: 2.75rem;
  height: 2px;
  margin-block: 1rem;
  background: var(--c-accent-light);
}

.inset__body {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Centred heading with flanking rules
   -------------------------------------------------------------------------- */
.rule-head {
  margin-bottom: var(--block);
  text-align: center;
}

.rule-head__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
}

.rule-head__title::before,
.rule-head__title::after {
  content: '';
  flex: 1;
  max-width: 8rem;
  height: 1px;
  background: var(--c-line);
}

.rule-head__sub {
  margin-top: 0.6rem;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   Eyebrow with the short rule beneath it, as drawn in the comps
   -------------------------------------------------------------------------- */
.t-eyebrow--ruled::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.6rem;
  background: currentColor;
}
