/**
 * Phase 12H.4 — Authority & enterprise perception
 */

/* —— OS Map —— */
.eb-os-map__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .eb-os-map__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2rem;
  }
}
.eb-os-map__stage {
  position: relative;
  aspect-ratio: 1 / 0.72;
  min-height: 280px;
  border-radius: var(--eb-radius-lg, 16px);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(99, 102, 241, 0.22);
  overflow: hidden;
}
.eb-os-map__svg {
  position: absolute;
  inset: 8% 6%;
  width: 88%;
  height: 84%;
  pointer-events: none;
}
.eb-os-map__edge {
  stroke: rgba(99, 102, 241, 0.25);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}
.eb-os-map__edge.is-os-lit {
  stroke: url(#eb-os-edge-grad);
  stroke-width: 0.55;
  opacity: 1;
}
.eb-os-map__nodes {
  position: absolute;
  inset: 0;
}
.eb-os-map__node {
  position: absolute;
  left: calc(var(--node-x) * 1%);
  top: calc(var(--node-y) * 1%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--eb-text, #e2e8f0);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease;
}
.eb-os-map__node:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
  border-radius: 8px;
}
.eb-os-map__node-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.eb-os-map__node.is-os-active .eb-os-map__node-ring,
.eb-os-map__node.is-os-lit .eb-os-map__node-ring {
  border-color: #818cf8;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.55);
  transform: scale(1.15);
}
.eb-os-map__node.is-os-active {
  color: #fff;
}
.eb-os-map__panel {
  padding: 1.25rem 1.35rem;
}
.eb-os-map__panel-title {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.eb-os-map__panel-desc,
.eb-os-map__panel-matters {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--eb-text-muted, #94a3b8);
  line-height: 1.5;
}
.eb-os-map__relation-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.eb-os-map__relation-list li {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

/* —— Proof dashboard —— */
.eb-proof-dashboard__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .eb-proof-dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 640px) {
  .eb-proof-dashboard__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .eb-proof-dashboard__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .eb-proof-dashboard__grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.eb-migration-merged__process-title {
  margin-bottom: 0.75rem;
}
.eb-enterprise-trust__pilot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
}
@media (max-width: 639px) {
  .eb-enterprise-trust__pilot {
    flex-direction: column;
    align-items: stretch;
  }
  .eb-enterprise-trust__pilot .eb-pilot__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
.eb-proof-dashboard__tile {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.65), rgba(30, 41, 59, 0.4));
}
.eb-proof-dashboard__source {
  margin: 0.5rem 0 0;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
}

/* —— Product surface —— */
.eb-product-surface__explorer {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .eb-product-surface__explorer {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    align-items: start;
  }
}
.eb-product-surface__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
@media (min-width: 900px) {
  .eb-product-surface__nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}
.eb-product-surface__nav-item {
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(30, 41, 59, 0.5);
  color: var(--eb-text-muted, #94a3b8);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.eb-product-surface__nav-item.is-active,
.eb-product-surface__nav-item[aria-selected='true'] {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #e0e7ff;
}
.eb-product-surface__nav-item:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}
.eb-product-surface__panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.eb-product-surface__panel.is-active {
  display: grid;
}
@media (min-width: 900px) {
  .eb-product-surface__panel.is-active {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}
.eb-product-surface__panel.is-switching {
  opacity: 0.6;
  transition: opacity 0.18s ease;
}
.eb-product-surface__module-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.eb-product-surface__lists {
  display: grid;
  gap: 1rem;
}
@media (min-width: 600px) {
  .eb-product-surface__lists {
    grid-template-columns: repeat(3, 1fr);
  }
}
.eb-product-surface__list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--eb-text-muted, #94a3b8);
  line-height: 1.45;
}
.eb-product-surface__list--outcomes li {
  color: #c7d2fe;
}
.eb-product-surface__preview {
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
}
.eb-product-surface__preview-placeholder {
  min-height: 220px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.eb-product-surface__preview-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
  animation: eb-surface-shimmer 1.2s ease-in-out infinite;
}
@keyframes eb-surface-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .eb-product-surface__preview-shimmer { animation: none; }
}

/* —— Industry gallery —— */
.eb-industry-gallery__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .eb-industry-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .eb-industry-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
.eb-industry-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.eb-industry-card__icon svg {
  width: 28px;
  height: 28px;
  color: #818cf8;
}
.eb-industry-card__title {
  margin: 0;
  font-size: 1.05rem;
}
.eb-industry-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}
.eb-industry-card__chip {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
}
.eb-industry-card__list {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: var(--eb-text-muted, #94a3b8);
}
.eb-industry-card__list--compact { font-size: 0.78rem; }
.eb-industry-card__foot { margin-top: 1rem; }
.eb-industry-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  text-decoration: none;
}
.eb-industry-card__link:hover { text-decoration: underline; }

/* —— Why switch —— */
.eb-why-switch__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 1.25rem;
}
.eb-why-switch__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.eb-why-switch__table th,
.eb-why-switch__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.eb-why-switch__table thead th {
  background: rgba(30, 41, 59, 0.65);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}
.eb-why-switch__table tbody th[scope='row'] {
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}
.eb-why-switch__table td[data-col='excelbills'] {
  color: #c7d2fe;
}
.eb-why-switch__table td[data-col='legacy'] {
  color: var(--eb-text-muted, #94a3b8);
}
.eb-why-switch__note { margin-top: 0.75rem; }
.eb-why-switch__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* —— Enterprise trust —— */
.eb-enterprise-trust__header {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}
.eb-enterprise-trust__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .eb-enterprise-trust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .eb-enterprise-trust__grid { grid-template-columns: repeat(3, 1fr); }
}
.eb-enterprise-trust__card {
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.eb-enterprise-trust__icon svg {
  width: 32px;
  height: 32px;
  color: #818cf8;
  margin-bottom: 0.65rem;
}
.eb-enterprise-trust__card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.eb-enterprise-trust__card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--eb-text-muted, #94a3b8);
  line-height: 1.5;
}
.eb-enterprise-trust__band {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--eb-radius-lg, 16px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(79, 70, 229, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.eb-enterprise-trust__band-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.eb-enterprise-trust__band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
