/* The original mark forms the first letter of the wordmark. */
.brand{gap:0;align-items:center;letter-spacing:-.055em}
.brand .brand-mark{width:1.12em;height:1.24em;margin:0 .005em 0 0;transform:none;border-radius:0;overflow:hidden}
.brand-mark img{width:100%;height:100%;max-width:none;position:static;object-fit:contain}
.brand>span:last-child{margin-left:-.015em}
.small-logo{overflow:visible}
.live-demo{transform:rotate(-1deg);max-width:none;width:100%}
.live-demo .product-core{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.live-demo .conversation{display:flex;flex-direction:column;min-width:0}
.live-demo .crm-context{display:block;padding:1rem .8rem;min-width:0}
.live-demo .chat-header{padding:.85rem .8rem}
.hero-chat-scroll{height:280px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#59412d transparent;padding:.85rem .75rem}
#hero-messages{display:flex;flex-direction:column;gap:.7rem}
.live-demo .bubble{font-size:.875rem;max-width:95%;padding:.65rem .75rem}
.live-demo .customer{align-self:flex-start;background:#30271d;border-radius:1rem 1rem 1rem 3px}
.live-demo .assistant{align-self:flex-end;background:#56402d;border-radius:1rem 1rem 3px 1rem}
.live-demo .chat-date{margin-bottom:.8rem}
.live-demo .chat-input{margin:.4rem .7rem .8rem;line-height:1.4}
.live-demo .crm-context h3{font-size:1.1rem}
.crm-identity{margin-top:1.1rem;display:flex;align-items:center;gap:.5rem}
.crm-identity .contact-avatar{margin:0;width:30px;height:32px;border-radius:8px;flex-shrink:0}
.crm-identity strong{font-size:.875rem;font-weight:550;display:block}
.crm-identity .crm-status{line-height:1.4;font-size:.75rem;margin:.2rem 0 0}
.hero-pipeline{display:flex;gap:3px;padding:0;margin:1.15rem 0 .7rem;list-style:none}
.hero-pipeline li{flex:1;min-width:0;font-size:.6875rem;letter-spacing:-.02em;padding:.35rem 0;border-top:3px solid #493829;color:var(--muted)}
.hero-pipeline li.current{border-color:var(--accent);color:var(--text)}
.hero-pipeline li.complete{border-color:#8e6949}
.live-demo .crm-context dl{margin:.7rem 0}
.live-demo .crm-context dd{font-size:.8125rem;line-height:1.4;overflow-wrap:anywhere}
.crm-event{font-size:.75rem;line-height:1.5;color:var(--accent);padding:.6rem;border-radius:.5rem;background:rgba(214,138,95,.08)}
.hero-typing{display:flex;gap:4px;align-items:center;margin:.75rem 0 0 auto;width:max-content;color:var(--muted);font-size:.75rem;background:#56402d;padding:.55rem .7rem;border-radius:1rem}
.hero-typing i{width:4px;height:4px;border-radius:50%;background:var(--accent);animation:typing-hop 1.2s cubic-bezier(.22,1,.36,1) infinite}
.hero-typing[hidden]{display:none}
.hero-typing i:nth-child(2){animation-delay:.15s}.hero-typing i:nth-child(3){animation-delay:.3s}.hero-typing span{margin-left:.25rem}
.hero-controls{display:flex;gap:.2rem;flex-shrink:0}.hero-controls button{padding:.35rem .45rem;min-height:36px;background:transparent;border:1px solid var(--line);border-radius:.5rem;font-size:.75rem;white-space:nowrap}.hero-controls button:hover{background:var(--raised)}.hero-controls button:disabled{opacity:.65;cursor:default}
.live-demo .stage-foot{align-items:center;justify-content:space-between;gap:.4rem;padding:.65rem .35rem .2rem;min-height:68px}.live-demo .stage-foot>span{font-size:.75rem;line-height:1.5;max-width:31ch}
.message-arrives{animation:message-enter .45s cubic-bezier(.22,1,.36,1) both}
@keyframes message-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes typing-hop{0%,65%,100%{opacity:.5;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(min-width:761px) and (max-width:1100px){.hero-grid{grid-template-columns:1fr}.hero-copy{max-width:680px}.live-demo{max-width:700px;margin:0}.hero-chat-scroll{height:340px}}
@media(max-width:760px){.live-demo .product-core{grid-template-columns:1fr}.hero-chat-scroll{height:320px}.live-demo .crm-context{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:.5rem .8rem;padding:1rem}.live-demo .crm-context>h3{display:none}.live-demo .crm-context>.overline{grid-column:1/-1}.crm-identity{margin:0}.hero-pipeline{margin:0;align-self:center}.live-demo .crm-context dl{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:.2rem 1rem;margin:0}.crm-event{grid-column:1/-1}.live-demo .bubble{max-width:90%;font-size:.9375rem}.live-demo .stage-foot{min-height:72px}.live-demo .demo-label{font-size:.6875rem}.hero-controls button{min-height:44px}.brand .brand-mark{transform:none}}
@media(prefers-reduced-motion:reduce){.message-arrives,.hero-typing i{animation:none!important}}
@media(max-width:760px){.live-demo{transform:rotate(-1deg)}.hero-chat-scroll{height:280px}}
@media(prefers-reduced-motion:reduce){.live-demo{transform:none}}
/* Portrait proportions for the opening WhatsApp demonstration. */
.live-demo{max-width:390px;margin-left:auto}
.live-demo .product-core{grid-template-columns:1fr}
.hero-chat-scroll{height:360px}
.live-demo .whatsapp-brand{padding:4px;background:transparent;flex-shrink:0}
.whatsapp-brand img{width:100%;height:100%;object-fit:contain}
.live-demo .crm-context{border-left:0;border-top:1px solid var(--line);padding:.8rem;display:grid;grid-template-columns:1fr 1fr;gap:.4rem .7rem}
.live-demo .crm-context>h3,.live-demo .crm-event{display:none}
.live-demo .crm-context>.overline{grid-column:1/-1}
.live-demo .crm-identity{margin:0}
.live-demo .hero-pipeline{margin:0;align-self:center}
.live-demo .crm-context dl{grid-column:1/-1;margin:0}
.live-demo .stage-foot{flex-wrap:wrap;gap:.5rem}
@media(max-width:1100px){.live-demo{max-width:390px;margin-inline:auto}.hero-chat-scroll{height:360px}}
/* Keep the tall conversation beside its CRM on wider screens. */
@media(min-width:761px){
  .live-demo{max-width:560px}
  .live-demo .product-core{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
  .live-demo .crm-context{display:block;border-top:0;border-left:1px solid var(--line);padding:1rem .8rem}
  .live-demo .crm-context>h3{display:block;margin-top:.7rem}
  .live-demo .crm-identity{margin-top:1.1rem}
  .live-demo .hero-pipeline{margin:1.15rem 0 .7rem}
  .live-demo .crm-context dl{margin:.7rem 0}
  .live-demo .crm-event{display:block}
}
/* Shared bubble geometry; keep the animation accessible and replayable. */
.live-demo .bubble{max-width:82%;border-radius:14px;white-space:pre-line}
.live-demo .bubble.customer{border-radius:14px 14px 4px 14px}
.live-demo .bubble.assistant{border-radius:14px 14px 14px 4px}
.live-demo .bubble-file{display:flex;align-items:center;gap:.6rem;padding:.5rem .8rem;font-size:.82rem;white-space:normal;flex-wrap:wrap}
.bubble-file .file-icon{font-size:1.4rem;line-height:1}
.bubble-file .file-info{display:flex;flex-direction:column}
.bubble-file .file-name{font-weight:600;color:var(--text)}
.bubble-file .file-size{font-size:.72rem;color:var(--muted)}
.demo-paused .hero-typing i{animation-play-state:paused}
.live-demo .hero-pipeline{flex-wrap:wrap}
.live-demo .hero-pipeline li{flex:1 0 43%}
/* Niche conversations mirror the opening demo without growing the page. */
.niche-scroll{height:26rem;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#59412d transparent;padding:.9rem .25rem .9rem 0}
.niche-layout .demo-messages{min-height:0;padding:0;gap:.8rem}
.niche-layout .bubble.customer{align-self:flex-start;background:#30271d;border-radius:14px 14px 4px 14px}
.niche-layout .bubble.assistant{align-self:flex-end;background:#56402d;border-radius:14px 14px 14px 4px}
.niche-layout .bubble{max-width:85%;overflow-wrap:anywhere}
.niche-controls{justify-content:flex-end;padding:.6rem 0 .9rem}
.niche-controls button{min-height:44px}
.niche-layout .next-step{min-height:6.5rem}
@media(max-width:760px){.niche-scroll{height:25rem}.niche-layout .practice-core{padding:1rem}.niche-layout .bubble{max-width:90%}}
/* WhatsApp-inspired dark chat colors across every demonstration. */
.live-demo .bubble.customer,.niche-layout .bubble.customer{background:#202c33;color:#e9edef}
.live-demo .bubble.assistant,.niche-layout .bubble.assistant{background:#005c4b;color:#e9edef}
.live-demo .bubble small,.niche-layout .bubble small,.bubble-file .file-size{color:#b6c2c8}
.bubble-file .file-name{color:#e9edef}
.hero-typing{background:#005c4b;color:#e9edef}
.hero-typing i{background:#b6c2c8}
