/* ==========================================================================
   STORYBOARD: AUTOMATION SUITE (2026-11-09)
   Page-specific layer on top of storyboard.css (the sb3 system from the
   Clinic storyboard, APPLE-STANDARD.md grammar). Loaded after
   storyboard.css on automation-story.html only. Everything here is an
   addition: staged presentation panels for the flagship run, the video
   slot, the certificate card, and the guided-journey exit.
   ========================================================================== */

/* Flagship sequence: the run, staged in one glass panel ------------------ */
.sau-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: min(620px, calc(100vw - 48px));
  max-height: 88vh;
  overflow: hidden;
  background: rgba(7, 12, 24, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 26px 28px 24px;
  opacity: 0;
}
.sau-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.sau-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 7px 0;
}
.sau-field .f-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: none;
}
.sau-field .f-v {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}
.sau-plan {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0;
}
.sau-plan strong { color: var(--text-primary); font-weight: 700; }
.sau-msg {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  opacity: 0;
}
.sau-msg p { margin: 0; }
.sau-log {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0;
}
.sau-log b { color: var(--text-secondary); font-weight: 600; }

/* The video slot: the flagship walkthrough's proof position -------------- */
.sau-video-slot {
  aspect-ratio: 16 / 9;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.sau-video-slot .sau-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(186, 230, 253, 0.45);
  position: relative;
  flex: none;
}
.sau-video-slot .sau-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
}
/* Inside the dark pinned stage the slot starts hidden; scroll stages it. */
.sb3-edu .sau-video-slot {
  width: 100%;
  max-width: 680px;
  margin: 40px 0 0;
  opacity: 0;
}

/* Chapter two: one certificate, presented as our own document ----------- */
.sau-cert {
  margin: 52px 0 8px;
  max-width: 680px;
  border: 1px solid rgba(186, 230, 253, 0.22);
  border-radius: 16px;
  padding: 44px 40px 38px;
  text-align: center;
  background: linear-gradient(160deg, rgba(14, 26, 48, 0.85), rgba(7, 12, 24, 0.9));
}
.sau-cert .c-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.sau-cert .c-name {
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.sau-cert .c-course {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
  margin: 0 0 26px;
}
.sau-cert .c-id {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0;
}

/* Guided-journey exit ------------------------------------------------------ */
.sb3-exit { padding: 40px 0 10px; }
.sb3-exit-link {
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}
.sb3-exit-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.sb3-exit .sb3-support { margin-top: 12px; }

@media (max-width: 820px) {
  .sau-cert { padding: 34px 22px 30px; }
  .sau-panel { padding: 22px 20px 20px; }
}
