/* ─── CLAROSI SERVICES VISUAL ENHANCEMENTS ────────────────────────── */
/* 3-Layer Audit Anatomy Diagram & Interactive Sample Report Explorer */

/* ─── 1. 3-LAYER AUDIT ANATOMY DIAGRAM ─── */
.audit-anatomy-container {
  margin-top: 36px;
  background: #fff;
  border: 1px solid #dbe2eb;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 10px 30px -10px rgba(10, 24, 56, 0.07);
}

.anatomy-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e7ebf2;
}

.anatomy-title-group h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  color: #0a1838;
}

.anatomy-title-group p {
  margin: 0;
  font-size: 14.5px;
  color: #4a5468;
}

.anatomy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e3ecff;
  color: #0d47c9;
  font-size: 13px;
  font-weight: 700;
}

/* 3-Layer Navigation Tabs */
.anatomy-layers-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.layer-nav-btn {
  appearance: none;
  background: #f7f9fd;
  border: 2px solid #dbe2eb;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: inherit;
}

.layer-nav-btn:hover {
  border-color: #0d47c9;
  background: #fff;
  transform: translateY(-2px);
}

.layer-nav-btn.is-active {
  background: #fff;
  border-color: #0d47c9;
  box-shadow: 0 8px 24px -6px rgba(13, 71, 201, 0.16);
}

.layer-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layer-num {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #626b79;
}

.layer-nav-btn.is-active .layer-num {
  color: #0d47c9;
}

.layer-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}

.pill-layer-1 { background: #e3ecff; color: #0d47c9; }
.pill-layer-2 { background: #dcf3e6; color: #157347; }
.pill-layer-3 { background: #fdeed2; color: #8a5a00; }

.layer-name {
  font-size: 17px;
  font-weight: 700;
  color: #0a1838;
}

.layer-subtitle {
  font-size: 12.5px;
  color: #556073;
  line-height: 1.35;
}

/* Layer Detail Panels */
.anatomy-stage {
  border: 1px solid #dbe2eb;
  border-radius: 14px;
  background: #f7f9fd;
  padding: clamp(20px, 3vw, 28px);
}

.layer-panel {
  display: none;
  animation: fadeInLayer 0.28s ease forwards;
}

.layer-panel.is-active {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
}

@keyframes fadeInLayer {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.layer-info-left h4 {
  font-size: 20px;
  font-weight: 700;
  color: #0a1838;
  margin: 0 0 10px;
}

.layer-info-left p {
  font-size: 14.5px;
  color: #434b57;
  line-height: 1.55;
  margin: 0 0 18px;
}

.checkpoints-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.checkpoint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  font-size: 13.5px;
}

.checkpoint-row b {
  color: #0a1838;
  font-weight: 600;
}

.checkpoint-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

.tag-pass { background: #dcf3e6; color: #157347; }
.tag-check { background: #fdeed2; color: #8a5a00; }
.tag-live { background: #e3ecff; color: #0d47c9; }

/* Interactive Telemetry / Inspection Card */
.telemetry-inspect-card {
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(10, 24, 56, 0.08);
}

.inspect-card-head {
  padding: 12px 16px;
  background: #0a1838;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
}

.inspect-card-body {
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  background: #111520;
  color: #94a3b8;
}

.inspect-card-footer {
  padding: 12px 16px;
  background: #f7f9fd;
  border-top: 1px solid #e1e6ee;
  font-size: 12.5px;
  color: #4a5468;
}

.inspect-card-footer strong {
  color: #0a1838;
}

/* ─── 2. INTERACTIVE SAMPLE REPORT EXPLORER (#report-example) ─── */
.sample-explorer-container {
  margin-top: 24px;
  border: 1px solid #d8dce3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 45px -12px rgba(10, 24, 56, 0.1);
  overflow: hidden;
}

.explorer-report-banner {
  padding: 18px 24px;
  background: #0a1838;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.explorer-client-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.explorer-report-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.explorer-meta-line {
  font-size: 12.5px;
  color: #c7d2e7;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Video Explainer Button */
.report-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0d47c9;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.report-video-btn:hover {
  background: #1958e0;
  transform: translateY(-1px);
}

.report-video-btn svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.report-video-btn span {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* Report Explorer Navigation Tabs */
.explorer-tabs-bar {
  display: flex;
  border-bottom: 1px solid #e1e6ee;
  background: #f7f9fd;
  padding: 0 16px;
  overflow-x: auto;
}

.explorer-tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #626b79;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.explorer-tab-btn:hover {
  color: #0a1838;
}

.explorer-tab-btn.is-active {
  color: #0d47c9;
  border-bottom-color: #0d47c9;
  background: #fff;
}

/* Report Explorer Tab Content Panels */
.explorer-panels-stage {
  padding: clamp(20px, 3vw, 28px);
}

.explorer-panel {
  display: none;
  animation: fadeInLayer 0.25s ease forwards;
}

.explorer-panel.is-active {
  display: block;
}

/* Tab 1: Executive Overview */
.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.overview-stat-card {
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  padding: 16px;
  background: #fcfdfe;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #626b79;
  margin-bottom: 4px;
  display: block;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0a1838;
}

.stat-sub {
  font-size: 12px;
  color: #556073;
  margin-top: 4px;
  display: block;
}

.executive-summary-box {
  background: #f7f9fd;
  border: 1px solid #dbe2eb;
  border-left: 4px solid #0d47c9;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.executive-summary-box h5 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #0a1838;
}

.executive-summary-box p {
  margin: 0;
  font-size: 14px;
  color: #434b57;
  line-height: 1.55;
}

/* Tab 2: 12-Point Technical Matrix */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.matrix-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f0f3f8;
  color: #0a1838;
  font-weight: 700;
  border-bottom: 2px solid #dbe2eb;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7ebf2;
  color: #434b57;
  vertical-align: middle;
}

.matrix-table tr:hover td {
  background: #fafbfe;
}

.matrix-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.matrix-pass { background: #dcf3e6; color: #157347; }
.matrix-warn { background: #fdeed2; color: #8a5a00; }
.matrix-crit { background: #fee2e2; color: #991b1b; }

.evidence-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eef2f7;
  color: #556073;
  font-size: 11.5px;
  font-family: monospace;
}

/* Tab 3: Prioritized Action Ledger */
.action-ledger-list {
  display: grid;
  gap: 12px;
}

.action-ledger-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e1e6ee;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.18s ease;
}

.action-ledger-item:hover {
  border-color: #0d47c9;
}

.action-priority-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0a1838;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.action-body h6 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0a1838;
}

.action-body p {
  margin: 0;
  font-size: 13px;
  color: #556073;
  line-height: 1.4;
}

.action-gate-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.gate-pending { background: #fdeed2; color: #8a5a00; }
.gate-ready { background: #e3ecff; color: #0d47c9; }
.gate-approved { background: #dcf3e6; color: #157347; }

/* Explorer Footer Note */
.explorer-footer-note {
  padding: 14px 24px;
  background: #f7f9fd;
  border-top: 1px solid #e1e6ee;
  font-size: 13px;
  color: #626b79;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explorer-footer-note b {
  color: #0a1838;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .anatomy-layers-nav {
    grid-template-columns: 1fr;
  }
  .layer-panel.is-active {
    grid-template-columns: 1fr;
  }
  .overview-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .action-ledger-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* ─── 3. VIDEO EXPLAINER MODAL & PLAYER ─── */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 24, 56, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-dialog {
  width: min(840px, 100%);
  border-radius: 20px;
  background: #0a1838;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.is-open .video-modal-dialog {
  transform: scale(1);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-header-copy h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.video-modal-header-copy p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.video-modal-close-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.18s ease;
}

.video-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.video-player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #182b52 0%, #071228 100%);
  padding: 24px;
  text-align: center;
}

.report-overview-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #0d47c9;
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 10px rgba(13, 71, 201, 0.35);
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
  font-family: Georgia, serif;
}

.video-poster-fallback h4 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.video-poster-fallback p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 44ch;
}

.video-modal-footer {
  padding: 18px 24px;
  background: #060e22;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-takeaways-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.video-takeaways-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-takeaways-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  position: relative;
  padding-left: 18px;
}

.video-takeaways-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -2px;
  color: #38bdf8;
  font-size: 18px;
}
