/* UX-review refinements for the Cue-first Outbound Chef pages. */
.oc-review-preview .hero-process-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-width: 560px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.oc-review-preview .hero-process-summary li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #e1e8e0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}
.oc-review-preview .hero-process-number {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid #98a99a;
  border-radius: 50%;
  color: #fffefa;
  font-size: 10px;
  line-height: 1;
}
.oc-review-preview .hero-agent .hero-process-summary li { color: #42534a; }
.oc-review-preview .hero-agent .hero-process-number { color: #112f2c; border-color: #819283; }
.oc-review-preview .hero-home .hero-process-number { border-color: #9bb2a1; }

/* Contact is the only solid high-emphasis action; product exploration stays quiet. */
.oc-review-preview .hero-home .hero-actions .button,
.oc-review-preview .hero-agent .hero-actions .button {
  min-height: 54px;
  padding-inline: 21px;
  background: #fdd4bd;
  color: #112f2c;
  font-size: 15px;
  font-weight: 750;
}
.oc-review-preview .hero-home .hero-actions .button:hover,
.oc-review-preview .hero-agent .hero-actions .button:hover { background: #ffe5d6; }

/* Raise uppercase labels where the localized text still fits without wrapping. */
.oc-review-preview .cue-flow-kicker,
.oc-review-preview .cue-stage-label,
.oc-review-preview .cue-review-kicker {
  font-size: 11px;
  line-height: 1.35;
}
.oc-review-preview .cue-flow-concept,
.oc-review-preview .cue-loop-label { font-size: 10px; line-height: 1.35; }
.oc-review-preview .cue-flow-kicker { color: #526157; }
.oc-review-preview .cue-flow-brand strong { font-size: 15px; }
.oc-review-preview .cue-flow-concept {
  max-width: 230px;
  padding: 6px 8px;
  color: #604332;
  text-align: left;
  letter-spacing: .045em;
}
.oc-review-preview .cue-flow-sequence { gap: 8px; }
.oc-review-preview .cue-stage-label {
  align-items: flex-start;
  min-height: 25px;
  margin-bottom: 10px;
  color: #4f5d53;
  letter-spacing: .06em;
  white-space: normal;
}
.oc-review-preview .cue-stage-number {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  border-color: #829184;
  font-size: 10px;
}
.oc-review-preview .cue-stage-number::after {
  display: none;
  content: none;
  animation: none;
}
.oc-review-preview .cue-source-card strong,
.oc-review-preview .cue-output-card strong { font-size: 12px; line-height: 1.3; }
.oc-review-preview .cue-source-card small,
.oc-review-preview .cue-output-card small {
  color: #4f5b52;
  font-size: 11px;
  line-height: 1.35;
}
.oc-review-preview .cue-source-card { gap: 4px; padding: 9px; }
.oc-review-preview .cue-output-card { min-height: 48px; padding: 7px; }
.oc-review-preview .cue-output-index { width: 20px; height: 20px; font-size: 10px; }
.oc-review-preview .cue-agent-caption { max-width: 130px; font-size: 12px; line-height: 1.4; }
.oc-review-preview .cue-review-kicker { margin-bottom: 4px; color: #f1c8ad; }
.oc-review-preview .cue-review-heading strong { font-size: 13px; line-height: 1.35; }
.oc-review-preview .cue-review-actions li { font-size: 11px; }
.oc-review-preview .cue-loop-note { color: #4c5c51; font-size: 11px; line-height: 1.45; }
.oc-review-preview .cue-loop-note strong { color: #112f2c; font-size: 11px; }
.oc-review-preview .cue-flow-visual figcaption {
  padding-top: 9px;
  color: #4f5b52;
  font-size: 12px;
  line-height: 1.5;
}

/* One purposeful sequence, then a complete static process board. */
@keyframes cue-stage-highlight {
  0%, 100% { box-shadow: none; }
  35%, 70% { box-shadow: 0 0 0 3px rgb(178 120 95 / 30%); }
}
@keyframes cue-connector-sweep {
  0%, 100% { color: #a36f54; filter: none; }
  45%, 75% { color: #733f2e; filter: drop-shadow(0 0 4px rgb(178 120 95 / 45%)); }
}
@keyframes cue-output-arrive {
  0% { opacity: .72; box-shadow: 0 0 0 0 rgb(178 120 95 / 0%); }
  45%, 78% { opacity: 1; box-shadow: 0 0 0 2px rgb(178 120 95 / 28%); }
  100% { opacity: 1; box-shadow: none; }
}
@keyframes cue-review-highlight {
  0%, 100% { box-shadow: none; }
  35%, 72% { box-shadow: 0 0 0 3px rgb(229 193 169 / 46%); }
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-stage-input {
  animation: cue-stage-highlight .46s ease-out 0s both;
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-flow-arrow:first-of-type {
  animation: cue-connector-sweep .34s ease-out .42s both;
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-stage-agent {
  animation: cue-stage-highlight .46s ease-out .68s both;
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-flow-arrow:nth-of-type(2) {
  animation: cue-connector-sweep .34s ease-out 1.02s both;
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-output-card:nth-child(1) {
  animation: cue-output-arrive .36s ease-out 1.25s both;
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-output-card:nth-child(2) {
  animation: cue-output-arrive .36s ease-out 1.52s both;
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-output-card:nth-child(3) {
  animation: cue-output-arrive .36s ease-out 1.79s both;
}
.oc-review-preview .cue-flow-visual.is-flow-playing .cue-review-panel {
  animation: cue-review-highlight .44s ease-out 1.94s both;
}

/* Keep the FAQ reachable when clear; hide only the collapsed launcher if it would cover content. */
.oc-review-preview .chat-widget {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 101;
  width: min(420px, calc(100vw - 32px));
}
.oc-review-preview .chat-widget:not(.chat-position-ready) .chat-launcher {
  visibility: hidden;
  pointer-events: none;
}
.oc-review-preview .chat-widget.is-chat-open .chat-launcher,
.oc-review-preview .chat-widget.is-launcher-obscured .chat-launcher {
  visibility: hidden;
  pointer-events: none;
}
.oc-review-preview .chat-panel {
  right: 0;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 24px));
  gap: 9px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: #fffefa;
  border: 1px solid #d8d8ce;
  box-shadow: 0 14px 44px rgb(17 47 44 / 20%);
  scrollbar-gutter: stable;
}
.oc-review-preview .chat-panel[hidden] { display: none !important; }
.oc-review-preview .chat-header {
  position: sticky;
  top: -1px;
  z-index: 2;
  align-items: center;
  padding: 3px 0 9px;
  background: #fffefa;
  border-bottom: 1px solid #e3e1d9;
}
.oc-review-preview .chat-header .tiny-label { margin-bottom: 3px; color: #566359; font-size: 11px; }
.oc-review-preview .chat-header h2 { margin: 0; font-size: 19px; line-height: 1.2; }
.oc-review-preview .chat-close { min-width: 64px; min-height: 40px; font-size: 12px; }
.oc-review-preview .chat-disclosure { margin: 0; color: #48564c; font-size: 11px; line-height: 1.45; }
.oc-review-preview .chat-messages { min-height: 82px; max-height: 160px; overflow: auto; }
.oc-review-preview .chat-welcome,
.oc-review-preview .chat-answer { color: #35463c; font-size: 12px; line-height: 1.5; }
.oc-review-preview .chat-prompts { max-height: 96px; overflow: auto; }
.oc-review-preview .chat-prompts button { min-height: 38px; font-size: 11px; }
.oc-review-preview .chat-form {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  padding: 5px 0;
  background: #fffefa;
}
.oc-review-preview .chat-form input { min-height: 44px; font-size: 14px; }
.oc-review-preview .chat-form button { min-height: 44px; font-size: 13px; }
.oc-review-preview .chat-feedback { min-height: 1em; color: #48564c; font-size: 10px; }
.oc-review-preview .chat-book { min-height: 44px; font-size: 13px; }
.oc-review-preview .chat-panel :focus-visible { outline: 3px solid #a24f34; outline-offset: 3px; }

@media (min-width: 621px) {
  .oc-review-preview .eyebrow { font-size: 11px; }
}
@media (max-width: 960px) {
  .oc-review-preview .hero-home .hero-grid,
  .oc-review-preview .hero-agent .agent-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 40px 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 .hero-process-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
    max-width: 420px;
    margin-top: 13px;
  }
  .oc-review-preview .hero-process-summary li { font-size: 12px; }
  .oc-review-preview .hero-process-number { width: 24px; height: 24px; flex-basis: 24px; }
  .oc-review-preview .cue-flow-visual { width: 100%; padding: 12px; box-shadow: 5px 5px 0 rgb(253 212 189 / 72%); }
  .oc-review-preview .cue-flow-header { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .oc-review-preview .cue-flow-brand strong { font-size: 14px; }
  .oc-review-preview .cue-flow-concept { max-width: 100%; font-size: 11px; }
  .oc-review-preview .cue-flow-sequence { grid-template-columns: minmax(0, 1fr); gap: 5px; padding-top: 12px; }
  .oc-review-preview .cue-stage-label { min-height: 22px; margin-bottom: 7px; font-size: 11px; }
  .oc-review-preview .cue-input-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .oc-review-preview .cue-source-card { min-height: 78px; padding: 8px; }
  .oc-review-preview .cue-source-card strong,
  .oc-review-preview .cue-output-card strong { font-size: 12px; }
  .oc-review-preview .cue-source-card small,
  .oc-review-preview .cue-output-card small { font-size: 11px; }
  .oc-review-preview .cue-flow-arrow { height: 16px; transform: rotate(90deg); font-size: 18px; }
  .oc-review-preview .cue-agent-core { min-height: 82px; flex-direction: row; justify-content: flex-start; gap: 12px; padding-left: 5px; text-align: left; }
  .oc-review-preview .cue-agent-seal { width: 54px; height: 54px; flex: 0 0 54px; font-size: 15px; }
  .oc-review-preview .cue-agent-caption { max-width: 190px; font-size: 12px; }
  .oc-review-preview .cue-output-stack { grid-template-columns: 1fr; gap: 7px; }
  .oc-review-preview .cue-output-card { min-height: 45px; }
  .oc-review-preview .cue-review-panel { grid-template-columns: 1fr; gap: 8px; padding: 11px; }
  .oc-review-preview .cue-review-heading strong { font-size: 13px; }
  .oc-review-preview .cue-review-actions { justify-content: flex-start; }
  .oc-review-preview .cue-review-actions li { font-size: 11px; }
  .oc-review-preview .cue-loop-note { align-items: flex-start; font-size: 11px; }
  .oc-review-preview .cue-loop-note strong { min-width: 0; font-size: 11px; }
  .oc-review-preview .cue-flow-visual figcaption { font-size: 12px; }
  .oc-review-preview .hero-home .hero-grid,
  .oc-review-preview .hero-agent .agent-hero-grid { gap: 20px; padding-block: 30px 56px; }
  .oc-review-preview .hero-home h1,
  .oc-review-preview .hero-agent h1 { max-width: 520px; font-size: clamp(39px, 10.7vw, 52px); }
  .oc-review-preview .hero-home .hero-lede,
  .oc-review-preview .hero-agent .hero-lede { max-width: 620px; font-size: 15px; line-height: 1.48; margin-bottom: 17px; }
  .oc-review-preview .hero-actions { align-items: stretch; gap: 11px 18px; }
  .oc-review-preview .hero-actions .button,
  .oc-review-preview .hero-actions .quiet-link { width: 100%; justify-content: center; }
  .oc-review-preview .hero-note { margin-top: 13px; font-size: 11px; }
  .oc-review-preview .hero-edge { right: 18px; bottom: 15px; left: 18px; font-size: 8px; }
  .oc-review-preview .chat-widget { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 24px)); }
  .oc-review-preview .chat-panel {
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    width: min(420px, calc(100vw - 24px));
    max-height: min(620px, calc(100dvh - 78px));
    padding: 14px;
  }
}
@media (min-width: 961px) and (max-width: 1139px) {
  .oc-review-preview .cue-flow-kicker,
  .oc-review-preview .cue-stage-input .cue-stage-label { font-size: 10px; }
}
@media (max-width: 360px) {
  .oc-review-preview .hero-process-summary { gap: 9px 5px; }
  .oc-review-preview .hero-process-summary li { gap: 5px; font-size: 11px; }
  .oc-review-preview .cue-flow-visual { padding: 10px; }
  .oc-review-preview .cue-flow-sequence { gap: 4px; }
  .oc-review-preview .cue-input-stack { grid-template-columns: 1fr; }
  .oc-review-preview .cue-source-card { min-height: 62px; }
  .oc-review-preview .chat-widget { right: 10px; width: calc(100vw - 20px); }
  .oc-review-preview .chat-panel { width: calc(100vw - 20px); padding: 12px; }
}
@media (max-height: 520px) {
  .oc-review-preview .chat-panel { max-height: calc(100dvh - 20px); bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .oc-review-preview .chat-header,
  .oc-review-preview .chat-form { position: sticky; }
  .oc-review-preview .chat-messages { max-height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-review-preview .cue-flow-visual.is-flow-playing *,
  .oc-review-preview .cue-flow-visual.is-flow-playing *::before,
  .oc-review-preview .cue-flow-visual.is-flow-playing *::after {
    animation: none !important;
    transition: none !important;
    transform: none;
  }
  .oc-review-preview .cue-stage-number::after { animation: none !important; display: none; content: none; }
  html.oc-preview.oc-review-preview { scroll-behavior: auto !important; }
}
