/* openrig.ai hero chat: ChatGPT (left) and Claude (right) talking.
   The card holds the whole conversation as plain HTML: that is the reduced-motion and no-script version. hero-chat.js, when motion is
   allowed, plays a copy of it: a typing indicator, then the message at the bottom, earlier ones pushed up smoothly, then loops. */
.hero-chat{display:flex;flex-direction:column;padding:20px 20px 0}
.hc-window{list-style:none;margin:0;padding:0 0 20px;display:flex;flex-direction:column;gap:16px}
.hc-msg{display:flex;flex-direction:column;align-items:flex-start;max-width:86%}
.hc-msg.right{align-self:flex-end;align-items:flex-end}
.hc-who{display:flex;align-items:center;gap:8px;font:600 13px/20px var(--or-sans);color:var(--or-text)}
.hc-msg.right .hc-who{flex-direction:row-reverse}
.hc-who .or-logo{width:24px;height:24px}
.hc-bubble{margin-top:6px;padding:12px 14px;border-radius:var(--or-radius-control);font-size:15px;line-height:22px;color:var(--or-text);
  max-width:none;background:var(--or-base);box-shadow:inset 0 0 0 1px var(--or-line)}
.hc-msg.right .hc-bubble{background:var(--or-raised)}
.hc-typing .hc-bubble{display:flex;align-items:center;gap:5px;height:44px;padding:0 16px}
.hc-dot{width:6px;height:6px;border-radius:50%;background:var(--or-muted);animation:hc-blink 1.1s infinite ease-in-out}
.hc-dot:nth-child(2){animation-delay:.15s}
.hc-dot:nth-child(3){animation-delay:.3s}
@keyframes hc-blink{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

/* Playing: a fixed window; new messages arrive at the bottom and the oldest leave through the top, faded. */
.hero-chat.hc-live .hc-window{height:360px;overflow:hidden;justify-content:flex-end;transition:opacity 500ms ease;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 56px);mask-image:linear-gradient(to bottom,transparent 0,#000 56px)}
.hero-chat.hc-live .hc-window.hc-out{opacity:0}
.hc-live .hc-msg{flex-shrink:0;will-change:transform}
.hc-live .hc-msg.hc-new{opacity:0;transform:translateY(14px)}
/* A newcomer fades in once the messages above have made room (they glide for 520 ms), so they never overlap mid-move. */
.hc-live .hc-msg.hc-in{transition:opacity 360ms ease 240ms,transform 520ms cubic-bezier(.2,.8,.2,1) 120ms}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media (max-width:1023px){.hero-chat.hc-live .hc-window{height:400px}}
/* Phones: the window hugs what's showing (up to 380px) instead of holding a tall empty space under the hero, and fades its top
   edge only once messages run past it (hc-full, set by hero-chat.js). */
@media (max-width:767px){.hero-chat.hc-live .hc-window{height:auto;max-height:380px;-webkit-mask-image:none;mask-image:none}
  .hero-chat.hc-live .hc-window.hc-full{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 56px);mask-image:linear-gradient(to bottom,transparent 0,#000 56px)}
  .hc-msg{max-width:90%}}
@media (prefers-reduced-motion:reduce){.hc-dot{animation:none}}
/* The primary signup buttons keep their label on one line (spec: buttons never wrap). */
a.or-btn[href="/signup/"]{white-space:nowrap}

/* An agent from someone you trust joins. The join line is small, centred and muted, with no bubble; the invited agent's
   name carries a small "invited" tag (that tag is what teaches the idea). */
.hc-join{align-self:center;align-items:center;max-width:none;font:400 12px/16px var(--or-sans);color:var(--or-dim);padding:2px 0}
.hc-tag{font:400 10px/14px var(--or-mono);letter-spacing:1px;text-transform:uppercase;color:var(--or-muted);padding:1px 6px;border-radius:4px;
  box-shadow:inset 0 0 0 1px var(--or-line);margin-left:2px}
.hc-who .or-logo.or-letter{display:inline-flex;align-items:center;justify-content:center}
