/* ═══════════════════════════════════════════════════
   MedTech Integration — audience-specific overrides
   Shared base: assets/css/integration.css
   ═══════════════════════════════════════════════════ */

/* ── WEBHOOK RESPONSE CARDS ── */
.step-response-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

.step-response-card {
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
}

.step-response-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-response-card p {
  font-size: 13px;
  margin-bottom: 0;
}

.step-response-accept {
  background: oklch(96% 0.04 145);
  border-color: oklch(84% 0.08 145);
}

.step-response-accept .step-response-label {
  color: oklch(38% 0.14 145);
}

.step-response-redirect {
  background: var(--teal-light);
  border-color: oklch(84% 0.06 192);
}

.step-response-redirect .step-response-label {
  color: var(--teal-dark);
}

.step-response-reject {
  background: oklch(97% 0.02 25);
  border-color: oklch(88% 0.04 25);
}

.step-response-reject .step-response-label {
  color: oklch(45% 0.14 25);
}

/* ── RESULT TYPE CARDS ── */
.result-types-grid {
  grid-template-columns: 1fr;
}

.result-type-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.result-type-header .result-type-icon {
  margin-bottom: 0;
}

.result-type-header h4 {
  margin-bottom: 0;
}

.result-type-example {
  margin: 12px 0 0;
  background: oklch(96% 0.02 192);
  border: 1px solid oklch(88% 0.04 192);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}

.result-type-example code {
  margin: 0;
  padding: 0;
  font-family: 'DM Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--teal-dark);
  white-space: pre;
  border: none;
}

/* ── SECURITY NOTE ── */
.step-security-note {
  background: oklch(27% 0.03 240);
  border-radius: 10px;
  padding: 20px 22px;
  margin-top: 4px;
}

.step-security-note strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 12px;
}

.step-security-note ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-security-note li {
  font-size: 13px;
  color: oklch(72% 0.02 240);
  line-height: 1.5;
}

/* ── SESSION LIFECYCLE ── */
.intg-lifecycle {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.intg-lifecycle .section-sub {
  margin-bottom: 48px;
}

.lifecycle-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--navy);
  border-radius: 16px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.lifecycle-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    oklch(42% 0.11 192 / 0.18),
    transparent 70%
  );
  pointer-events: none;
}

.lifecycle-state {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lifecycle-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: oklch(56% 0.13 192);
  border: 2px solid var(--teal-mid);
  margin: 0 auto 10px;
}

.lifecycle-state-start .lifecycle-dot {
  background: oklch(60% 0.04 240);
  border-color: oklch(50% 0.04 240);
}

.lifecycle-state-end .lifecycle-dot {
  background: oklch(60% 0.18 145);
  border-color: oklch(55% 0.18 145);
}

.lifecycle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 5px;
}

.lifecycle-who {
  font-size: 11px;
  color: oklch(55% 0.03 240);
  line-height: 1.4;
}

.lifecycle-arrow {
  font-size: 18px;
  color: oklch(38% 0.06 240);
  padding: 0 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.lifecycle-end-states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lifecycle-end-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lifecycle-end-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.lifecycle-end-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 2px;
}

.lifecycle-end-label.cancelled {
  background: oklch(96% 0.02 25);
  color: oklch(45% 0.14 25);
  border: 1px solid oklch(88% 0.04 25);
}

.lifecycle-end-label.stopped {
  background: oklch(96% 0.04 60);
  color: oklch(42% 0.12 60);
  border: 1px solid oklch(88% 0.06 60);
}

/* ── CTA: centered single-column override ── */
.cta-inner {
  display: block;
}

.cta-content {
  text-align: center;
}

.cta-actions {
  justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .step-response-grid {
    grid-template-columns: 1fr;
  }

  .lifecycle-end-states {
    grid-template-columns: 1fr;
  }

  .lifecycle-row {
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
  }

  .lifecycle-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}
