/* ============================================================
   ASSURA LANDING - feature-page components
   ------------------------------------------------------------
   Shared building blocks for the per-feature product pages
   (/integrations, and the rest as they roll out). Loads AFTER
   theme.css + styles.css and reuses their primitives: .hero,
   .hero-split, .eyebrow, .btn, .reveal, .chip, .map-link,
   .float-card, .mock, .faq, .finale, .capture.

   Structure:
     1. Breadcrumb + hero add-ons
     2. Pipeline (how it runs)
     3. Deep dives (alternating text/visual rows)
     4. Logo chip + connector grid
     5. Capability grid
     6. Related-feature cards
     7. Responsive
   ============================================================ */

/* ---------- 1. Breadcrumb + hero add-ons ---------- */

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.crumb a { color: var(--muted); text-decoration: none; transition: color 0.18s ease; }
.crumb a:hover { color: var(--azure-bright); }
.crumb .crumb-sep { color: var(--muted); }
.crumb .crumb-here { color: var(--azure-bright); display: inline-flex; align-items: center; gap: 10px; }
.crumb .crumb-here::before { content: ''; width: 7px; height: 7px; background: var(--azure); flex-shrink: 0; }

/* Feature hero is shorter than the homepage's full viewport. The bottom
   padding is the hero's own close now that the stat band is gone. */
.hero.fp-hero { min-height: auto; padding: clamp(130px, 15vh, 180px) 0 clamp(56px, 7vw, 84px); }

/* ---------- 2. Pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: pipe;
}
.pipe {
  position: relative;
  padding: 26px 26px 4px 0;
}
/* the drafting rule the steps hang from */
.pipe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  border-top: 1px dashed var(--line-strong);
}
/* the control point on the rule */
.pipe::after {
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 8px; height: 8px;
  background: var(--azure);
}
.pipe-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--azure-bright);
}
.pipe h3 { font-size: 17.5px; font-weight: 700; margin: 10px 0 8px; }
.pipe p { font-size: 13.5px; color: var(--slate); line-height: 1.62; }

/* ---------- 3. Deep dives ---------- */

.dives { display: grid; gap: clamp(56px, 7vw, 88px); }
.dive {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.dive.flip { grid-template-columns: 1fr minmax(320px, 460px); }
.dive.flip .dive-copy { order: 2; }
.dive.flip .dive-viz { order: 1; }

.dive-copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.16;
  margin: 14px 0 12px;
}
.dive-copy p { font-size: 15.5px; color: var(--slate); line-height: 1.7; max-width: 52ch; }
.dive-copy ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.dive-copy li {
  font-size: 14px;
  color: var(--body);
  padding-left: 20px;
  position: relative;
}
.dive-copy li::before {
  content: '';
  position: absolute;
  left: 2px; top: 7px;
  width: 6px; height: 6px;
  background: var(--azure);
}

.dive-viz {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(26px, 3.5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
}

/* ---------- 4. Logo chip + connector grid ---------- */

/* White chip behind every brand mark - same convention as in the product */
.logo-chip {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-chip svg { display: block; }
.logo-chip.sm { width: 30px; height: 30px; border-radius: 8px; }

.conn-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.conn-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 12px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.conn-tile:hover { border-color: rgba(59, 130, 246, 0.45); transform: translateY(-2px); }
.conn-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
}
.conn-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.conn-note { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }

/* tiles assemble as the grid reveals */
.conn-grid.reveal .conn-tile { opacity: 0; }
.conn-grid.reveal.in .conn-tile { animation: vizPop 0.45s ease both; }

/* ---------- 5. Capability grid ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.cap-card:hover { border-color: rgba(59, 130, 246, 0.45); }
.cap-head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure-bright);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.cap-head::before { content: ''; width: 6px; height: 6px; background: var(--azure); flex-shrink: 0; }
.cap-card > p { font-size: 13.5px; color: var(--slate); line-height: 1.62; }
.cap-card ul { list-style: none; display: grid; gap: 9px; margin-bottom: 18px; }
.cap-card li {
  font-size: 13.5px;
  color: var(--body);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
/* each capability line reads as a passing check */
.cap-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--good);
  border-radius: 50%;
  opacity: 0.85;
}
.cap-card li::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 7.5px;
  width: 5px; height: 3px;
  border-left: 1.5px solid var(--good);
  border-bottom: 1.5px solid var(--good);
  transform: rotate(-45deg);
}
.cap-logos { margin-top: auto; display: flex; align-items: center; gap: 8px; }

/* a card's click-through link pins to the bottom so links align across the row */
.cap-card > .feature-link { margin-top: auto; padding-top: 14px; }
.cap-card > p + .feature-link { margin-top: auto; }

/* ---------- 6. Related-feature cards ---------- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rel-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.rel-card:hover { border-color: rgba(59, 130, 246, 0.45); transform: translateY(-2px); }
.rel-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.rel-card p { font-size: 13.5px; color: var(--slate); line-height: 1.62; margin-bottom: 16px; }
.rel-go {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-bright);
}

/* ---------- 7. Responsive ---------- */

@media (max-width: 1100px) {
  .dive, .dive.flip { grid-template-columns: 1fr; }
  .dive.flip .dive-copy { order: 1; }
  .dive.flip .dive-viz { order: 2; }
  .conn-grid { grid-template-columns: repeat(4, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}

@media (max-width: 960px) {
  .cap-grid, .related-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 620px) {
  .conn-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .conn-grid.reveal .conn-tile { opacity: 1; }
}
