/* Isolated visual-review layer. Loaded only by EN/NL home and Cue product pages. */
.oc-review-preview .cue-flow-visual {
  --cue-flow-ink: #112f2c;
  --cue-flow-paper: #fffefa;
  --cue-flow-peach: #fdd4bd;
  --cue-flow-line: #d8d8ce;
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  margin: 0;
  padding: clamp(14px, 1.5vw, 19px);
  border: 1px solid rgb(17 47 44 / 18%);
  border-radius: 5px;
  background: var(--cue-flow-paper);
  color: var(--cue-flow-ink);
  box-shadow: 9px 9px 0 rgb(253 212 189 / 72%);
  text-align: left;
}

.oc-review-preview .cue-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--cue-flow-line);
}

.oc-review-preview .cue-flow-brand {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.oc-review-preview .cue-flow-brand strong {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.oc-review-preview .cue-flow-kicker,
.oc-review-preview .cue-stage-label,
.oc-review-preview .cue-flow-concept,
.oc-review-preview .cue-review-kicker,
.oc-review-preview .cue-loop-label {
  margin: 0;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.oc-review-preview .cue-flow-kicker { color: #69746b; }

.oc-review-preview .cue-flow-concept {
  max-width: 145px;
  padding: 5px 7px;
  border: 1px solid #c8a58f;
  color: #714f3e;
  text-align: right;
  letter-spacing: .08em;
}

.oc-review-preview .cue-flow-sequence {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 17px minmax(68px, .68fr) 17px minmax(0, 1.2fr);
  align-items: center;
  gap: 7px;
  padding: 15px 0 11px;
}

.oc-review-preview .cue-stage { min-width: 0; align-self: stretch; }

.oc-review-preview .cue-stage-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 19px;
  margin: 0 0 9px;
  color: #68746b;
  font-size: 7px;
  letter-spacing: .105em;
  white-space: nowrap;
}

.oc-review-preview .cue-stage-number {
  position: relative;
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border: 1px solid #a8b4a8;
  border-radius: 50%;
  background: #f7f6f0;
  color: var(--cue-flow-ink);
  font-size: 8px;
  letter-spacing: 0;
}

.oc-review-preview .cue-stage-number::after {
  position: absolute;
  inset: -3px;
  border: 1px solid transparent;
  border-radius: 50%;
  content: "";
  animation: cue-process-beat 8s ease-in-out infinite;
}

.oc-review-preview .cue-stage-agent .cue-stage-number::after { animation-delay: 2s; }
.oc-review-preview .cue-stage-outputs .cue-stage-number::after { animation-delay: 4s; }
.oc-review-preview .cue-review-panel .cue-stage-number::after { animation-delay: 6s; }

@keyframes cue-process-beat {
  0%, 20%, 100% { border-color: transparent; transform: scale(.92); }
  8%, 16% { border-color: #b2785f; transform: scale(1.16); }
}

.oc-review-preview .cue-input-stack,
.oc-review-preview .cue-output-stack {
  display: grid;
  gap: 6px;
}

.oc-review-preview .cue-source-card {
  position: relative;
  min-height: 59px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 8px 8px 10px;
  border: 1px solid #e0dfd6;
  border-left: 2px solid #c48c6c;
  background: #f9f8f2;
}

.oc-review-preview .cue-source-card strong,
.oc-review-preview .cue-output-card strong {
  display: block;
  font-size: 9px;
  line-height: 1.25;
}

.oc-review-preview .cue-source-card small,
.oc-review-preview .cue-output-card small {
  display: block;
  color: #6b726b;
  font-size: 8px;
  line-height: 1.3;
}

.oc-review-preview .cue-paper-lines {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}

.oc-review-preview .cue-paper-lines i {
  display: block;
  width: 38%;
  height: 2px;
  background: #cfd3c8;
}

.oc-review-preview .cue-paper-lines i:first-child { width: 60%; background: #e0c0a9; }

.oc-review-preview .cue-flow-arrow {
  display: grid;
  place-items: center;
  color: #a36f54;
  font-size: 20px;
  line-height: 1;
}

.oc-review-preview .cue-agent-core {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.oc-review-preview .cue-agent-seal {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid #b2785f;
  border-radius: 50%;
  background: #f8e3d5;
  color: var(--cue-flow-ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.06em;
}

.oc-review-preview .cue-agent-seal::before,
.oc-review-preview .cue-agent-seal::after {
  position: absolute;
  inset: 6px;
  border: 1px solid rgb(17 47 44 / 22%);
  border-radius: 50%;
  content: "";
}

.oc-review-preview .cue-agent-seal::after { inset: -6px; border-style: dashed; border-color: #c5cbbf; }

.oc-review-preview .cue-agent-caption {
  max-width: 86px;
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
}

.oc-review-preview .cue-output-card {
  min-height: 42px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid #dfe1d7;
  background: #fff;
}

.oc-review-preview .cue-output-index {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  background: #e5ebdf;
  color: #365346;
  font-size: 7px;
  font-weight: 750;
}

.oc-review-preview .cue-review-connector {
  width: 1px;
  height: 18px;
  margin: 0 auto;
  background: #9ca99b;
}

.oc-review-preview .cue-review-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--cue-flow-ink);
  color: var(--cue-flow-paper);
}

.oc-review-preview .cue-review-heading {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.oc-review-preview .cue-person-mark {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #d9b49e;
  border-radius: 50%;
  color: #f5d3bd;
  font-size: 10px;
}

.oc-review-preview .cue-review-kicker { margin-bottom: 3px; color: #e5c1a9; font-size: 7px; }
.oc-review-preview .cue-review-heading strong { display: block; font-size: 10px; line-height: 1.25; }

.oc-review-preview .cue-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oc-review-preview .cue-review-actions li {
  padding: 0;
  color: #fff6ed;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.oc-review-preview .cue-review-actions li + li::before {
  margin-inline: 2px 5px;
  color: #e5b999;
  content: "→";
  font-weight: 400;
}

.oc-review-preview .cue-loop-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0 7px;
  color: #59685e;
  font-size: 8px;
  line-height: 1.4;
}

.oc-review-preview .cue-loop-symbol {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 1px solid #c5b5a8;
  border-radius: 50%;
  color: #a36f54;
  font-size: 14px;
}

.oc-review-preview .cue-loop-note strong {
  color: var(--cue-flow-ink);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.oc-review-preview .cue-flow-visual figcaption {
  padding-top: 7px;
  border-top: 1px solid #e4e2d9;
  color: #636c64;
  font-size: 8px;
  line-height: 1.45;
}

.oc-review-preview .hero-home .hero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 70px);
}

.oc-review-preview .hero-home .cue-flow-visual,
.oc-review-preview .hero-agent .cue-flow-visual {
  justify-self: end;
}

.oc-review-preview .hero-agent .agent-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
}

.oc-review-preview .hero-agent .cue-flow-visual { width: min(100%, 660px); }

.oc-review-preview .hero-home .hero-note {
  max-width: 500px;
  padding-left: 12px;
  border-left: 2px solid #e6bda3;
  letter-spacing: .015em;
}

.oc-review-preview .hero-agent .hero-note {
  max-width: 460px;
  padding-left: 12px;
  border-left: 2px solid #b2785f;
}

.oc-review-preview .workflow-section {
  position: relative;
  background: #f1efe7;
}

.oc-review-preview .workflow-section::before {
  position: absolute;
  top: 0;
  left: max(24px, calc((100vw - 1240px) / 2));
  width: 42px;
  height: 3px;
  background: #c48c6c;
  content: "";
}

.oc-review-preview .outbound-process-section .outbound-steps {
  position: relative;
}

.oc-review-preview .outbound-process-section .outbound-step > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d4b09a;
  border-radius: 50%;
}

.oc-review-preview .outbound-process-section .outbound-step h3 {
  text-wrap: balance;
}

@media (max-width: 960px) {
  .oc-review-preview .hero-home .hero-grid,
  .oc-review-preview .hero-agent .agent-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
    gap: 28px;
    padding-block: 46px 64px;
  }

  .oc-review-preview .hero-home .cue-flow-visual,
  .oc-review-preview .hero-agent .cue-flow-visual {
    width: min(100%, 680px);
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .oc-review-preview .cue-flow-visual {
    padding: 12px;
    box-shadow: 5px 5px 0 rgb(253 212 189 / 72%);
  }

  .oc-review-preview .cue-flow-header { align-items: flex-start; gap: 7px; padding-bottom: 10px; }
  .oc-review-preview .cue-flow-brand strong { font-size: 12px; }
  .oc-review-preview .cue-flow-concept { max-width: 116px; padding: 4px 5px; font-size: 7px; }

  .oc-review-preview .cue-flow-sequence {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-top: 12px;
  }

  .oc-review-preview .cue-stage-label { margin-bottom: 6px; font-size: 7px; }
  .oc-review-preview .cue-input-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-review-preview .cue-source-card { min-height: 65px; padding: 7px; }
  .oc-review-preview .cue-source-card strong { font-size: 8px; }
  .oc-review-preview .cue-source-card small { font-size: 7px; }
  .oc-review-preview .cue-flow-arrow { height: 14px; transform: rotate(90deg); font-size: 17px; }
  .oc-review-preview .cue-agent-core { min-height: 96px; flex-direction: row; justify-content: flex-start; gap: 12px; padding-left: 5px; text-align: left; }
  .oc-review-preview .cue-agent-seal { width: 55px; height: 55px; flex: 0 0 55px; font-size: 15px; }
  .oc-review-preview .cue-agent-caption { max-width: 135px; font-size: 9px; }
  .oc-review-preview .cue-output-stack { grid-template-columns: 1fr; }
  .oc-review-preview .cue-output-card { min-height: 38px; }
  .oc-review-preview .cue-review-panel { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .oc-review-preview .cue-review-actions { justify-content: flex-start; }
  .oc-review-preview .cue-review-actions li { font-size: 7px; }
  .oc-review-preview .cue-loop-note { align-items: flex-start; }
  .oc-review-preview .cue-loop-note strong { min-width: max-content; }
  .oc-review-preview .hero-home .hero-grid,
  .oc-review-preview .hero-agent .agent-hero-grid { gap: 23px; padding-block: 32px 54px; }
  .oc-review-preview .hero-home h1,
  .oc-review-preview .hero-agent h1 { max-width: 520px; font-size: clamp(39px, 11vw, 53px); }
  .oc-review-preview .hero-home .hero-lede,
  .oc-review-preview .hero-agent .hero-lede { font-size: 15px; }
  .oc-review-preview .hero-edge { right: 18px; bottom: 15px; left: 18px; font-size: 7px; }
}

@media (max-width: 360px) {
  .oc-review-preview .cue-flow-visual { padding: 10px; }
  .oc-review-preview .cue-flow-concept { max-width: 100px; font-size: 6px; }
  .oc-review-preview .cue-input-stack { grid-template-columns: 1fr; }
  .oc-review-preview .cue-source-card { min-height: 51px; }
  .oc-review-preview .cue-loop-note { flex-wrap: wrap; }
  .oc-review-preview .cue-loop-note strong { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .oc-review-preview .cue-stage-number::after { animation: none !important; }
}
