/* Illustrations used on the Amazon Connect product pages. Loaded only by those pages. */

/* Width and height helpers. The CSP forbids inline styles, so sizes are classes. */
.w5 { width: 5%; } .w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w35 { width: 35%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w75 { width: 75%; } .w90 { width: 90%; }

/* ---------- Wallboard ---------- */
.wallboard { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.wb-bar { display: flex; justify-content: space-between; margin-bottom: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.wb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.wb-tile { padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: var(--radius-sm); }
.wb-tile.is-ok { border-top-color: var(--ok); }
.wb-tile.is-warn { border-top-color: var(--warn); }
.wb-tile span { display: block; min-height: 2.5em; color: var(--muted); font-size: .76rem; line-height: 1.25; }
.wb-tile strong { display: block; margin-top: 4px; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.wb-lower { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.wb-chart, .wb-leader { padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wb-title { display: block; margin-bottom: 10px; color: var(--muted); font-size: .76rem; }
.wb-bars { display: flex; align-items: flex-end; gap: 5px; height: 92px; }
.wb-bars i { flex: 1; height: 100%; border-radius: 3px 3px 0 0; background: var(--signal); opacity: .78; transform-origin: bottom; }
.b35 { transform: scaleY(.35); } .b40 { transform: scaleY(.4); } .b45 { transform: scaleY(.45); } .b50 { transform: scaleY(.5); } .b55 { transform: scaleY(.55); }
.b60 { transform: scaleY(.6); } .b65 { transform: scaleY(.65); } .b70 { transform: scaleY(.7); } .b75 { transform: scaleY(.75); } .b80 { transform: scaleY(.8); } .b85 { transform: scaleY(.85); }
.wb-leader div { margin-bottom: 10px; font-size: .78rem; }
.wb-leader div:last-child { margin-bottom: 0; }
.wb-leader i { display: block; height: 7px; margin-top: 4px; border-radius: 4px; background: var(--accent); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .is-live .wb-tile { animation: wb-tick 6s ease-in-out infinite; }
  .is-live .wb-tile:nth-child(2) { animation-delay: 1.5s; }
  .is-live .wb-tile:nth-child(3) { animation-delay: 3s; }
  .is-live .wb-tile:nth-child(4) { animation-delay: 4.5s; }
  .is-live .wb-bars i:nth-child(3n) { animation: wb-bar 3.6s ease-in-out infinite alternate; }
  .is-live .live::before { animation: pulse 2s ease-in-out infinite; }
}
@keyframes wb-tick { 0%, 80%, 100% { opacity: 1; } 88% { opacity: .55; } }
@keyframes wb-bar { to { transform: scaleY(.9); } }
@media (max-width: 520px) { .wb-tiles { grid-template-columns: 1fr 1fr; } .wb-lower { grid-template-columns: 1fr; } }

/* ---------- Report ---------- */
.report { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; font-size: .88rem; line-height: 1.35; }
.report-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.report-head strong { display: block; font-weight: 600; }
.report-head div span { color: var(--muted); font-size: .78rem; }
.report-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--signal-soft); color: var(--accent); }
.report-tag { margin-left: auto; padding: 2px 9px; border-radius: 99px; background: var(--signal-soft); font-size: .73rem; font-weight: 550; }
.report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.report-kpis div { padding: 14px 16px; }
.report-kpis div + div { border-left: 1px solid var(--line); }
.report-kpis strong { display: block; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.report-kpis span { color: var(--muted); font-size: .76rem; }
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.report-th { padding-block: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.report-idle { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; }
.report-idle i { display: block; flex: none; height: 7px; border-radius: 4px; background: var(--signal); }
.report-send { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--muted); font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .is-live .report-send .led::after { animation: ping 1.8s var(--ease) infinite; }
  .is-live .report-row:nth-child(2) { animation: report-row 7s linear infinite; }
  .is-live .report-row:nth-child(3) { animation: report-row 7s linear infinite 1s; }
  .is-live .report-row:nth-child(4) { animation: report-row 7s linear infinite 2s; }
  .is-live .report-row:nth-child(5) { animation: report-row 7s linear infinite 3s; }
}
@keyframes report-row { 0% { background: transparent; } 4% { background: var(--signal-soft); } 14%, 100% { background: transparent; } }

/* ---------- Survey ---------- */
.survey { margin: 0; display: grid; gap: 12px; }
.survey-call, .survey-results { padding: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.survey-ended { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.survey-ended .icon { width: 18px; height: 18px; }
.survey-call p { margin: 10px 0 14px; font-size: 1.02rem; font-weight: 500; line-height: 1.4; }
.survey-keys { display: flex; gap: 8px; }
.survey-keys span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--mono); font-weight: 500; }
.survey-keys .is-picked { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.survey-results { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px 18px; align-items: center; }
.survey-score { grid-row: 1 / span 5; }
.survey-score strong { display: block; font-size: 2.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.survey-score span { color: var(--muted); font-size: .78rem; }
.survey-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.survey-row i { display: block; height: 8px; border-radius: 4px; background: var(--signal); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .is-live .survey-keys .is-picked { animation: survey-pick 4s ease-in-out infinite; }
  .is-live .survey-row i { animation: survey-grow 4s var(--ease) infinite; }
}
@keyframes survey-pick { 0%, 20% { transform: scale(1); } 28% { transform: scale(1.14); } 36%, 100% { transform: scale(1); } }
@keyframes survey-grow { 0%, 28% { transform: scaleX(.75); } 46%, 100% { transform: scaleX(1); } }

/* ---------- Benefit graphics specific to these pages ---------- */
.g-pulse-line { stroke-dasharray: 100; }
@media (prefers-reduced-motion: no-preference) {
  .is-live .g-pulse-line { animation: g-pulse-line 3.4s linear infinite; }
}
@keyframes g-pulse-line { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: 0; } }

/* ---------- Video ---------- */
.video-wrap { max-width: 900px; }
.video-facade { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.video-play::after { content: ""; position: absolute; left: 28px; top: 21px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--on-accent); }
.video-facade:hover .video-play { transform: scale(1.07); }
.video-wrap iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* ---------- Sync hero: one agent, two systems (templates/demos/sync-pair.php) ---------- */
.sync-pair { position: relative; margin: 0; padding: 56px 28px 84px; background: radial-gradient(46% 52% at 50% 44%, var(--signal-soft), transparent 74%), var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.sp-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); align-items: center; column-gap: 44px; }
.sh-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sh-line { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.sh-wire { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.sh-node { position: relative; display: grid; justify-items: center; gap: 9px; padding: 18px 12px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); text-align: center; }
/* The plate takes each logo's shape: square for Teams, wide for NiCE and Genesys. */
.sh-icon { display: grid; place-items: center; min-width: 58px; height: 50px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sh-icon.is-aws { min-width: 0; padding: 0; border: 0; background: none; }
.sh-icon img { width: auto; height: auto; max-width: 96px; max-height: 36px; }
.sh-icon.is-aws img { width: 50px; height: 50px; }
.sh-name { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.sh-states { display: grid; justify-items: center; }
.sh-states > *, .sh-event > * { grid-area: 1 / 1; }
.sh-states .pill { width: fit-content; background: var(--surface); }
.sync-pair .sh-s2, .sync-pair .sh-s3 { opacity: 0; }
.sh-core { position: relative; display: grid; justify-items: center; gap: 5px; }
.sh-face { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 7px var(--surface), var(--shadow); }
.sh-face .icon { width: 34px; height: 34px; }
.sh-who { position: relative; z-index: 1; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sh-ring { position: absolute; left: 15px; top: 0; width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; }
.sh-event { position: absolute; left: 0; right: 0; bottom: 24px; display: grid; justify-items: center; font-size: .86rem; font-weight: 550; color: var(--ink-2); text-align: center; }
.sh-event span { padding: 5px 13px; border-radius: 99px; background: var(--signal-soft); }
@media (prefers-reduced-motion: no-preference) {
  .is-live.sync-pair .sh-s1 { animation: sh-s1 15s linear infinite; }
  .is-live.sync-pair .sh-s2 { animation: sh-s2 15s linear infinite; }
  .is-live.sync-pair .sh-s3 { animation: sh-s3 15s linear infinite; }
  .is-live.sync-pair .sh-in2 { animation: sh-in2 15s linear infinite; }
  .is-live.sync-pair .sh-out2 { animation: sh-out2 15s linear infinite; }
  .is-live.sync-pair .sh-in3 { animation: sh-in3 15s linear infinite; }
  .is-live.sync-pair .sh-out3 { animation: sh-out3 15s linear infinite; }
  .is-live.sync-pair .sh-ring { animation: sh-ring 5s var(--ease) -1.5s infinite; }
  .is-live.sync-pair .sh-ring-b { animation-delay: -1.1s; }
}
/* Idle to 25%, an Amazon Connect call to 62%, a call on the other platform to 97%. Pills change as the signal arrives. */
@keyframes sh-s1 { 0%, 24.5% { opacity: 1; } 25%, 99.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sh-s2 { 0%, 25% { opacity: 0; } 25.5%, 62% { opacity: 1; } 62.5%, 100% { opacity: 0; } }
@keyframes sh-s3 { 0%, 62.5% { opacity: 0; } 63%, 99.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sh-in2 { 0%, 17% { stroke-dashoffset: 100; opacity: 0; } 17.5% { opacity: 1; } 21%, 24% { stroke-dashoffset: 0; opacity: 1; } 28%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sh-out2 { 0%, 21% { stroke-dashoffset: 100; opacity: 0; } 21.5% { opacity: 1; } 25%, 27% { stroke-dashoffset: 0; opacity: 1; } 31%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sh-in3 { 0%, 54.5% { stroke-dashoffset: 100; opacity: 0; } 55% { opacity: 1; } 58.5%, 61% { stroke-dashoffset: 0; opacity: 1; } 65%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sh-out3 { 0%, 58.5% { stroke-dashoffset: 100; opacity: 0; } 59% { opacity: 1; } 62.5%, 64.5% { stroke-dashoffset: 0; opacity: 1; } 68.5%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sh-ring { 0% { transform: scale(1); opacity: .65; } 45%, 100% { transform: scale(1.75); opacity: 0; } }
@media (max-width: 620px) {
  .sync-pair { padding: 34px 12px 70px; }
  .sp-row { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); column-gap: 12px; }
  .sh-node { padding: 14px 8px 12px; gap: 7px; }
  .sh-icon { min-width: 48px; height: 42px; padding: 5px 7px; }
  .sh-icon img { max-width: 76px; max-height: 30px; }
  .sh-icon.is-aws img { width: 42px; height: 42px; }
  .sh-name { font-size: .78rem; }
  .sh-face { width: 58px; height: 58px; }
  .sh-face .icon { width: 28px; height: 28px; }
  .sh-ring { left: 9px; width: 58px; height: 58px; }
}
