/* "Hear it work" section: segmented call picker, synced story player, waveform seek bar and the live diagram. */
.listen{background:var(--night);color:var(--night-text);padding:150px 0 40px}
.listen .head .dim{color:var(--night-muted)}
.listen .head p{color:var(--night-muted)}

.tabs{display:flex;justify-content:center;gap:4px;margin:0 auto 28px;padding:4px;border-radius:999px;background:#ffffff0d;width:max-content;max-width:100%}
.tab{padding:9px 20px;border-radius:999px;color:var(--night-muted);font-size:14.5px;transition:background .25s,color .25s;white-space:nowrap}
.tab b{font-weight:500}
.tab small{display:none}
.tab:hover{color:#fff}
.tab[aria-selected=true]{background:var(--night-text);color:var(--ink)}

.stage{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);border-radius:32px;overflow:hidden;background:var(--night-2);min-height:600px;box-shadow:0 0 0 1px #ffffff10}
.story{display:flex;flex-direction:column;padding:34px 38px 30px;background:#fdfcfa;color:var(--ink);min-width:0}
.story-biz{display:flex;align-items:center;gap:12px;min-width:0}
.story-avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--ink);color:#fff;font-weight:600;flex:none}
.story-biz small{display:block;font-size:13px;color:var(--muted)}
.story-biz b{display:block;font-size:18px;letter-spacing:-.02em;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:26px 0 0}
.phase{display:flex;flex-direction:column;gap:6px;text-align:left;padding:12px 0 0;border-top:2px solid var(--line);color:var(--muted);font-size:13px;line-height:1.25;position:relative;transition:color .3s}
.phase span{display:none}
.phase b{font-weight:500}
.phase::before{content:"";position:absolute;top:-2px;left:0;height:2px;width:var(--p,0%);background:var(--coral-deep);transition:width .2s linear}
.phase.current,.phase.done{color:var(--ink)}
.quote{flex:1;display:flex;flex-direction:column;justify-content:center;padding:36px 0 28px;min-height:300px}
.speaker{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:500;color:var(--muted)}
.speaker i{width:7px;height:7px;border-radius:50%;background:var(--muted)}
.speaker.agent{color:var(--coral-deep)}.speaker.agent i{background:var(--coral-deep)}
.speaker.customer{color:#5b4fd6}.speaker.customer i{background:#5b4fd6}
.quote blockquote{margin:14px 0 0;font-size:clamp(24px,2.15vw,33px);line-height:1.22;letter-spacing:-.03em;font-weight:500;text-wrap:pretty;transition:opacity .3s}
.quote blockquote.fade{opacity:0}
.doing{margin:20px 0 0;font-size:15px;color:var(--muted);line-height:1.55;min-height:46px;padding-left:14px;border-left:2px solid var(--coral)}
.player{display:grid;grid-template-columns:52px minmax(0,1fr) 40px;gap:16px;align-items:center;padding-top:22px;border-top:1px solid var(--line)}
.play{width:52px;height:52px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;transition:transform .3s var(--ease),background .25s}
.play:hover{background:#000;transform:scale(1.05)}
.play svg{width:20px;height:20px}
.play[disabled]{opacity:.5;cursor:progress}
.replay{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.replay:hover{color:var(--ink)}
.replay svg{width:18px;height:18px}
.wave{position:relative;height:48px;cursor:pointer;touch-action:none}
.wave canvas{width:100%;height:100%;display:block}
.wave-times{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--muted);margin-top:4px}
.wave input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}
.wave:focus-within{outline:2px solid var(--coral);outline-offset:4px;border-radius:8px}
.story-note{font-size:12.5px;color:var(--muted);margin:14px 0 0;line-height:1.45}

/* Diagram */
.diagram{position:relative;padding:28px 32px;display:flex;flex-direction:column;min-width:0}
.diagram-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:var(--night-muted)}
.diagram-top .now{color:var(--coral-2);text-align:right}
.arch{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 0 4px}
.node{display:flex;align-items:center;gap:12px;padding:8px 18px 8px 8px;border-radius:14px;background:#ffffff08;min-width:210px;transition:background .3s,box-shadow .3s}
.node .ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#ffffff0d;color:#d2d2d7;flex:none;transition:background .3s,color .3s}
.node .ico svg{width:17px;height:17px}
.node b{font-size:15px;font-weight:500;color:#e8e8ed}
.wire{position:relative;width:1px;height:22px;background:#ffffff1f;overflow:hidden;flex:none}
.wire::after{content:"";position:absolute;left:0;top:-12px;width:1px;height:12px;background:var(--coral-2);opacity:0}
.wire.on::after{opacity:1;animation:pulseDown .9s linear infinite}
@keyframes pulseDown{to{transform:translateY(34px)}}
.router{width:100%;border-radius:18px;background:#ffffff06;box-shadow:0 0 0 1px #ffffff12 inset;padding:12px;transition:box-shadow .3s,background .3s}
.router-head{display:flex;align-items:baseline;justify-content:center;gap:8px;padding:2px 0 10px}
.router-head b{font-size:14.5px;font-weight:500;color:#e8e8ed}
.router-head small{font-size:12.5px;color:var(--night-muted)}
.routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.route{border-radius:10px;padding:9px 6px;text-align:center;font-size:12.5px;color:var(--night-muted);background:#ffffff06;line-height:1.2;transition:all .3s}
.route.on{background:var(--night-text);color:var(--ink);font-weight:500}
.tools{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tool{position:relative;border-radius:12px;background:#ffffff06;box-shadow:0 0 0 1px #ffffff10 inset;padding:13px 6px;text-align:center;transition:all .3s;min-width:0}
.tool b{display:block;font-size:13px;font-weight:500;color:#a1a1a6}
.tool .dir{position:absolute;top:5px;right:7px;font-family:var(--mono);font-size:8.5px;letter-spacing:.06em;color:var(--coral-2);opacity:0;transition:opacity .3s}
.tool.on{background:#ff6b571f;box-shadow:0 0 0 1px #ff8d7c88 inset}
.tool.on b{color:#fff}
.tool.on .dir{opacity:1}
.tool.seen b{color:#d2d2d7}
.ends{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.end{display:flex;align-items:center;gap:10px;padding:8px 12px 8px 8px;border-radius:14px;background:#ffffff06;transition:all .3s}
.end .ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#ffffff0d;flex:none;color:#d2d2d7}
.end .ico svg{width:15px;height:15px}
.end b{font-size:13.5px;font-weight:500;color:#e8e8ed}
.node.on,.router.on{background:#ff6b5714;box-shadow:0 0 0 1px #ff8d7c55 inset}
.node.on .ico{background:var(--coral);color:#140806}
.node.listening{background:#a495ff14}
.node.listening .ico{background:var(--violet);color:#120c2a}
.end.on{background:#4fd6b01a;box-shadow:0 0 0 1px #4fd6b066 inset}
.end.on .ico{background:var(--mint);color:#062a20}
.end.idle{opacity:.5}
.disclosure{margin:22px auto 0;font-size:12.5px;color:#6e6e73;line-height:1.5;text-align:center;max-width:760px}

@media (max-width:1100px){
  .stage{grid-template-columns:1fr}
  .diagram{min-height:520px}
}
@media (max-width:720px){
  .listen{padding:100px 0 30px}
  .tabs{width:100%;justify-content:space-between}
  .tabs{border-radius:18px}
  .tab{padding:9px 6px;font-size:12.5px;flex:1;white-space:normal;line-height:1.2;border-radius:14px}
  .stage{border-radius:24px}
  .story{padding:24px 20px}
  .quote{min-height:250px;padding:26px 0 20px}
  .quote blockquote{font-size:23px}
  .player{grid-template-columns:48px minmax(0,1fr) 36px;gap:12px}.play{width:48px;height:48px}
  .diagram{padding:22px 16px}
  .node{min-width:0;width:100%}
  .route{font-size:11.5px;padding:8px 3px}
  .phase{font-size:12px}
}
