/* "Just ask Sona" as one live chat (owner 2026-11-09): the heading and a list
   of questions on the left, one chat window on the right that plays the chosen
   conversation (question, typing, answer: the existing .is-active animation in
   landing-conversations.css). The cards themselves are unchanged, so Georgian
   and the Worker's Georgia-only cards keep working. Loaded after
   landing-conversations.css; everything is scoped to .chat-demo. */
.chat-demo{padding:110px 0 100px}
.chat-demo-grid{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:70px;align-items:center}
.chat-demo-grid>*{min-width:0}
.chat-demo .conversation-heading{text-align:left}
.chat-demo .conversation-heading h2{margin:0}

/* The questions: icon, the feature as a heading, the person's own question
   under it; a bar on the active row until the next one plays. */
.chat-demo-chips{display:grid;gap:7px;margin-top:28px;max-width:480px}
.chat-chip{position:relative;display:flex;align-items:flex-start;gap:14px;width:100%;text-align:left;border:1px solid #ffffff14;background:#ffffff06;color:#d7d9d2;border-radius:18px;padding:10px 16px;overflow:hidden;transition:background .25s,border-color .25s,color .25s}
.chat-chip:hover{border-color:#ffffff30;background:#ffffff0b}
.chat-chip:focus-visible{outline:2px solid #c2f622;outline-offset:2px}
.chip-icon{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#ffffff0d;color:#c2f622;transition:background .25s,color .25s}
.chip-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chip-body{display:flex;flex-direction:column;min-width:0;padding-top:1px}
.chip-label{font-size:15px;font-weight:600;letter-spacing:-.2px;line-height:1.3;color:#f2f3ee}
.chip-question{margin-top:2px;font-size:13px;font-weight:400;line-height:1.4;color:#9a9d96;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-chip[aria-selected=true]{background:#c2f622;border-color:#c2f622}
.chat-chip[aria-selected=true] .chip-icon{background:#0b0d12;color:#c2f622}
.chat-chip[aria-selected=true] .chip-label{color:#0b0d12}
.chat-chip[aria-selected=true] .chip-question{color:#0b0d12b3}
/* How long until the next one plays (only while it rotates on its own). */
.chat-chip .chip-progress{position:absolute;left:0;bottom:0;height:3px;width:100%;background:#0b0d1233;transform-origin:left;transform:scaleX(0)}
.chat-demo.is-rotating .chat-chip[aria-selected=true] .chip-progress{animation:chip-progress var(--dwell,7s) linear both}
@keyframes chip-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* Ask your own: example questions type themselves; a click opens Get the app. */
.chat-ask{display:flex;align-items:center;gap:12px;width:100%;max-width:480px;margin-top:14px;padding:8px 8px 8px 18px;border:1px dashed #ffffff26;border-radius:999px;background:transparent;color:#d7d9d2;text-align:left;transition:border-color .25s}
.chat-ask:hover{border-color:#c2f622}
.chat-ask:focus-visible{outline:2px solid #c2f622;outline-offset:2px}
.chat-ask-label{flex:none;font-size:12px;font-weight:600;color:#8c8e98}
.chat-ask-text{flex:1;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-ask-text:after{content:attr(data-text);color:#f8f6f4;border-right:2px solid #c2f622;padding-right:2px;animation:ask-caret 1s steps(1) infinite}
@keyframes ask-caret{50%{border-color:transparent}}
.chat-ask-icon{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#c2f622;color:#0b0d12}
.chat-ask-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* The chat window. 660 px holds the tallest conversation (the brief, 567 px at
   the 380 px window width) with room to spare; check with every change. */
.chat-demo-window{position:relative;height:660px;display:flex;flex-direction:column;border-radius:36px;background:#efeee6;color:#192018;box-shadow:0 40px 90px #0008,0 0 0 1px #ffffff14;overflow:hidden}
.chat-demo-bar{flex:none;display:flex;align-items:center;gap:11px;padding:18px 22px;border-bottom:1px solid #1920180f;background:#f7f6f0}
.chat-demo-bar img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#e4e4da}
.chat-demo-bar b{display:block;font-size:15px}
.chat-demo-bar small{display:flex;align-items:center;gap:6px;font-size:11px;color:#6b7363}
.chat-demo-bar small:before{content:'';width:7px;height:7px;border-radius:50%;background:#5bbf3a}

/* The rail becomes a stack: one conversation at a time, no tilt, no scroll. */
.chat-demo .conversation-rail{flex:1;display:grid;overflow:hidden;padding:0;cursor:default;scroll-snap-type:none;touch-action:auto}
.chat-demo .conversation-card{grid-area:1/1;min-height:0;margin:0;padding:24px 22px 24px;border-radius:0;background:transparent!important;box-shadow:none;transform:none;opacity:0;visibility:hidden;transition:opacity .35s,visibility 0s .35s}
.chat-demo .conversation-card.is-active{opacity:1;visibility:visible;transition:opacity .35s}
.chat-demo .conversation-card header,.chat-demo .conversation-card footer{display:none}

@media(max-width:1000px){.chat-demo-grid{grid-template-columns:minmax(0,1fr) 380px;gap:40px}}
@media(max-width:800px){
  .chat-demo{padding:64px 0}
  .chat-demo-grid{grid-template-columns:1fr;gap:26px}
  .chat-demo .conversation-heading{padding:0;text-align:center}
  /* Questions become one swipeable row above the chat. */
  .chat-demo-chips{display:flex;gap:8px;margin:24px -24px 0;padding:0 24px 4px;max-width:none;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
  .chat-demo-chips::-webkit-scrollbar{display:none}
  .chat-chip{flex:none;width:auto;max-width:78vw;align-items:center;padding:8px 14px 8px 8px;border-radius:30px}
  .chip-label{display:none!important}
  .chip-question{margin:0;font-size:13px;color:inherit}
  .chip-icon{width:30px;height:30px;border-radius:50%}
  .chat-chip[aria-selected=true] .chip-question{white-space:nowrap}
  .chat-ask{margin-top:12px}
  .chat-demo-window{height:610px;border-radius:28px}
  .chat-demo .conversation-card{padding:20px 14px}
}
@media(prefers-reduced-motion:reduce){.chat-demo .conversation-card{transition:none}.chat-chip .chip-progress{display:none}}
