/* AI Security Governance page: builds on optimisation.css and sentinel.css (shared .opt-page sections). */
@media (max-width: 960px) {
  .opt-page.ai-page .pa-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Six stages: each stage's result goes green in turn */
.opt-page .ai-stages .mk-stage {
  background: #fff;
  box-shadow: 0 10px 22px -16px rgba(60, 35, 10, 0.35);
}
.opt-page .ai-stages .svc-stage-result {
  display: inline-block;
  border-radius: 8px;
  padding: 4px 8px;
  margin-top: 2px;
  background: #f3f1ec;
  color: #6f6b63;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}
.opt-page .ai-stages .mk-stage.on .svc-stage-result {
  background: var(--go-bg);
  color: var(--go);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--go-line);
  animation: opt-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.opt-page .ai-stages .mk-stage.on .svc-stage-result::before {
  content: "✓ ";
}

/* WatchTower: a light card instead of the black strip */
.opt-page .ai-watchtower {
  margin-top: 26px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-left: 4px solid var(--orange);
}
.opt-page .ai-watchtower > b {
  font: 700 12px "JetBrains Mono";
  letter-spacing: 0.08em;
  color: var(--orange-text);
}
.opt-page .ai-watchtower p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #4b4842;
}
.opt-page .ai-watchtower strong {
  color: var(--ink);
}

/* Data loss prevention in a prompt: a configured policy flags sensitive data */
.opt-page .dlp-body {
  padding: 14px 16px 8px;
  font: 13px/1.45 var(--ui-ms);
}
.opt-page .dlp-prompt {
  border: 1px solid #e1dfdd;
  border-radius: 10px;
  padding: 10px 12px;
  background: #faf9f8;
}
.opt-page .dlp-hit {
  border-radius: 3px;
  padding: 0 2px;
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.opt-page .ai-dlp.go .dlp-hit {
  background: #fde7e9;
  box-shadow: 0 0 0 1px #f2c4c8;
}
.opt-page .dlp-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f2c4c8;
  background: var(--bad-bg);
  color: var(--bad);
  display: grid;
  gap: 2px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.opt-page .dlp-notice b {
  font-size: 13px;
}
.opt-page .dlp-notice span {
  color: #6b2a31;
}
.opt-page .ai-dlp.go .dlp-notice {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}
.opt-page .dlp-log {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #616161;
  background: #f6f5f4;
  opacity: 0.3;
  transition:
    opacity 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}
.opt-page .dlp-log em {
  font-style: normal;
  font-weight: 700;
}
.opt-page .ai-dlp.done .dlp-log {
  opacity: 1;
  background: var(--go-bg);
  color: var(--go);
}

@media (max-width: 760px) {
  .opt-page .ai-watchtower {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-page .ai-stages .svc-stage-result,
  .opt-page .dlp-hit,
  .opt-page .dlp-notice,
  .opt-page .dlp-log {
    transition: none !important;
    animation: none !important;
  }
}

/* AI discovery: tool name pills that stand out, counter beside the panel, tighter rhythm */
.opt-page .ai-discovery {
  align-items: start;
}
.opt-page .ai-discovery .plain {
  margin-bottom: 12px;
}
.opt-page.ai-page .ai-tools {
  gap: 7px;
  margin-bottom: 8px;
}
.opt-page.ai-page .ai-tools li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  background: #fff4e6;
  border: 1px solid rgba(242, 157, 29, 0.55);
  box-shadow: 0 4px 12px -8px rgba(190, 95, 10, 0.55);
  font: 700 13px/1.25 "Plus Jakarta Sans";
  color: #2a2117;
}
.opt-page.ai-page .ai-tools li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.opt-page.ai-page .ai-tools-note {
  margin-bottom: 12px;
}
.opt-page .ai-discovery .sec-lede {
  margin-top: 0;
}
.opt-page .ai-discovery .pa-points {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}
.opt-page .ai-side .snt-big {
  margin: 0 0 4px;
}
.opt-page.ai-page .ai-side .snt-big b {
  font-size: clamp(56px, 6vw, 84px);
}
.opt-page .ai-side .snt-big .arrow {
  font-size: 34px;
}
.opt-page .ai-side .pa-caption {
  margin: 0 0 14px;
}
@media (max-width: 760px) {
  .opt-page .ai-discovery .pa-points {
    grid-template-columns: minmax(0, 1fr);
  }
  .opt-page.ai-page .ai-side .snt-big b {
    font-size: clamp(40px, 13vw, 60px);
  }
}

/* Four things you can say: top-aligned rows, tighter rhythm, plain pills */
.opt-page .ai-four .sec-lede {
  margin-bottom: 0;
}
.opt-page .ai-four .zz {
  align-items: start;
  padding: 32px 0;
}
.opt-page .ai-four .zz:first-of-type {
  padding-top: 24px;
}
.opt-page .ai-four .zz-copy h3 {
  margin-bottom: 10px;
}
.opt-page .ai-four .zz-copy .plain {
  margin-bottom: 12px;
}
.opt-page.ai-page .ai-covers {
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .opt-page .ai-four .zz {
    gap: 18px;
    padding: 24px 0;
  }
  .opt-page.ai-page .ai-covers li {
    padding: 5px 10px 5px 9px;
    font-size: 12.5px;
  }
}

/* Shadow, the WatchTower mascot: small upright accents placed in existing empty space, so they add no height.
   js/ai-governance.js hides any pose that would sit over text at the current width. */
.opt-page .shadow-pose {
  display: block;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 8px 12px rgba(40, 20, 5, 0.16));
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-ready .shadow-pose:not(.in) {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}
/* Discovery: beside the counter, feet on the panel's top edge */
.opt-page .ai-side-top {
  position: relative;
}
.opt-page .sp-laptop {
  position: absolute;
  right: 10px;
  bottom: -2px;
  height: 112px;
}
/* Four things: bottom-right corner of the text column, in the space beside the taller panel */
.opt-page .ai-four .zz-copy {
  align-self: stretch;
  position: relative;
}
.opt-page .sp-row {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 118px;
}
/* WatchTower card: Shadow sits in the right-hand padding, labelled */
.opt-page .ai-watchtower {
  position: relative;
  padding-right: 128px;
}
.opt-page .ai-shadow-tag {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 96px;
  display: grid;
  justify-items: center;
  gap: 3px;
}
.opt-page .sp-wt {
  height: 58px;
  filter: none;
}
.opt-page .ai-shadow-tag figcaption {
  font: 600 10px/1.25 "Plus Jakarta Sans";
  color: var(--muted);
  text-align: center;
}
/* FAQ: in the empty column to the right of the questions */
.opt-page .faq-sec .faq-list {
  position: relative;
}
.opt-page .sp-faq {
  position: absolute;
  left: calc(100% + 48px);
  top: 4px;
  height: 110px;
}
@media (max-width: 1240px) {
  .opt-page .sp-faq {
    display: none;
  }
}
@media (max-width: 1140px) {
  .opt-page .ai-watchtower {
    padding-right: 24px;
  }
  .opt-page .ai-shadow-tag {
    display: none;
  }
}
@media (max-width: 960px) {
  .opt-page .sp-row {
    display: none;
  }
}
@media (max-width: 760px) {
  .opt-page .sp-laptop {
    height: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-page .shadow-pose {
    transition: none;
  }
}
.opt-page .shadow-pose.sp-nofit {
  display: none;
}
