/* The Try it pages (/try/lead-bot, /try/support-bot). Shared by both; uses site.css for colors, fonts, header and buttons. */
body { background: var(--mist); }
.top { background: var(--night); }
.top .btn-small { display: none; }
@media (min-width: 560px) { .top .btn-small { display: inline-flex; } }
.demo { display: grid; gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; transition: color .15s; }
.back::before { content: "←"; transition: transform .2s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover::before { transform: translateX(-3px); }
.demo h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); line-height: 1.02; max-width: 14ch; }
.demo .lede { font-size: 1.1rem; color: var(--ink-soft); margin-top: 12px; }
.demo-about { font-size: 1.05rem; color: var(--ink); margin-bottom: 20px; max-width: 34em; }
.facts-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.facts-list li { padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; }
.facts-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
      background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.4 2.2 4.6-5' fill='none' stroke='%230a5c47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.note { font-size: .95rem; color: var(--ink-soft); margin-top: 20px; }
/* this agent's pricing (numbers from site.json) */
.demo .offer { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px 22px 26px; box-shadow: var(--shadow);
               display: flex; flex-direction: column; align-items: flex-start; gap: 0; grid-template-columns: none; }   /* a simple box, not the home page's price band */
.demo .offer .offer-usage { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); align-self: stretch; flex: none; max-width: none; }
.demo .offer .btn { margin-top: 22px; }
.demo .offer .btn { align-self: flex-start; background: var(--accent); color: #fff; border-color: var(--accent); }
.demo .offer .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.phone { width: 100%; max-width: 420px; height: min(680px, calc(100svh - 110px)); min-height: 480px; justify-self: center; background: var(--paper); border-radius: 30px;
         box-shadow: 0 0 0 1px var(--line), 0 0 0 8px rgba(13, 31, 26, .04), 0 40px 80px -36px rgba(13, 31, 26, .5); display: flex; flex-direction: column; overflow: hidden; }
.phone-top { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 1rem/1 var(--display); flex: none; position: relative; }
.avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); border: 2px solid var(--paper); }
.who { min-width: 0; }
.who b { display: block; font-size: 1rem; font-weight: 600; }
.who span { font-size: .84rem; color: var(--ink-soft); }
.who .role::before { content: " · "; }
@media (max-width: 480px) { .who .role { display: block; } .who .role::before { content: none; } }
.reset { white-space: nowrap; flex: none; margin-left: auto; font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-wash); border: 0; border-radius: 999px; cursor: pointer; padding: 9px 12px; transition: background .15s; }
.reset:hover { background: #cfeadd; }
.chat { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 1rem; line-height: 1.4; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.lead { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 6px; }
.msg.human { align-self: flex-start; background: #fff4d9; border-bottom-left-radius: 6px; }
.msg a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
.tag { display: block; font-size: .75rem; color: var(--ink-soft); margin-bottom: 2px; }
.typing { align-self: flex-start; color: var(--ink-soft); font-size: .9rem; padding: 4px 6px; }
.empty { margin: auto; text-align: center; color: var(--ink-soft); font-size: .95rem; padding: 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chips-hint { flex-basis: 100%; margin: 0 0 2px 2px; font: 500 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.chip { font: 500 .88rem/1.2 var(--body); border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 12px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); background: var(--accent-wash); }
.phone form { display: flex; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.phone input { flex: 1; min-width: 0; font: 1rem var(--body); padding: 11px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); color: var(--ink); }
.phone input:focus { outline: none; border-color: var(--accent); }
.send { font: 600 1rem/1 var(--body); border: 0; border-radius: 999px; padding: 0 18px; background: var(--accent); color: #fff; cursor: pointer; transition: background .15s; }
.send:hover { background: var(--accent-deep); }
.send:disabled { opacity: .5; cursor: default; }
.err { color: #b3261e; font-size: .88rem; padding: 0 16px 8px; }
@media (prefers-reduced-motion: no-preference) { .msg { animation: arrive .3s var(--ease) both; } }
/* Layout. Phones: title + one line, chat, your team's view, then description, features and price.
   Wide screens: the title on top, the chat and your team's view side by side, the rest below in two columns. */
@media (min-width: 900px) {
  .demo { grid-template-columns: 420px minmax(0, 1fr); gap: 36px 40px; padding-top: 48px; padding-bottom: 88px; }
  .demo-intro, .demo-more { grid-column: 1 / -1; }
  .demo-intro { max-width: 46rem; }
  .phone, .team-view { height: min(680px, calc(100svh - 110px)); }
  .demo-more { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .demo-more > * { grid-column: 1; }
  .demo .demo-more .offer { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
@media (min-width: 1100px) { .demo { gap: 40px 56px; } }

/* ---- "Your team's view": a live preview of the Yemote Inbox for this chat (same look as /admin) ---- */
.team-view { width: 100%; max-width: 640px; justify-self: center; background: var(--paper); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
             box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(13, 31, 26, .45); font-size: .95rem; }
@media (min-width: 900px) { .team-view { max-width: none; } }
.tv-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--night); color: var(--on-night); }
.tv-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem/1 var(--display); letter-spacing: -0.02em; margin-right: auto; }
.tv-brand i { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; font: 800 .8rem/1 var(--display); font-style: normal; color: #fff; }
.tv-brand { white-space: nowrap; }
.tv-live { display: inline-flex; align-items: center; gap: 6px; font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.tv-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
@media (prefers-reduced-motion: no-preference) { .tv-live::before { animation: pulse 2.4s ease-out infinite; } }
.tv-preview { display: inline-block; font: 500 .66rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-wash); border-radius: 999px; padding: 5px 10px; margin-bottom: 8px; }
.tv-title { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.tv-title h2 { font-size: 1.15rem; line-height: 1.2; }
.tv-title p { color: var(--ink-soft); font-size: .84rem; margin-top: 2px; }
.tv-empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 14px; padding: 40px 28px; text-align: center; color: var(--ink-soft); min-height: 200px; }
.tv-empty-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5c47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v10H8l-4 4z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E") center / 24px no-repeat; }
.tv-empty p { max-width: 22em; }
.tv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tv-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; font: 700 1rem/1 var(--display); flex: none; }
.tv-who { flex: 1 1 180px; min-width: 0; }
.tv-who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-who span { font-size: .8rem; color: var(--ink-soft); }
.tv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tv-badge { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.tv-badge.warn { background: #fdf1df; color: #a35a00; box-shadow: inset 0 0 0 1px #f0c88d; }
.tv-badge.bad { background: #fdecea; color: #b42318; }
.tv-tag { font: 500 .64rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; white-space: nowrap; }
.tv-section { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tv-section h3 { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
/* status pipeline */
.tv-pipe { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tv-pipe li { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bubble-in); color: var(--ink-soft); position: relative; transition: background .4s, color .4s, box-shadow .4s; }
.tv-pipe li:not(.alt):not(.last)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); font-size: .7rem; color: #b9c8c0; }
.tv-pipe li:not(.alt) { margin-right: 6px; }
.tv-pipe li.done { background: var(--accent-wash); color: var(--accent-deep); }
.tv-pipe li.now { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(15, 123, 95, .15); }
.tv-pipe li.alt { margin-left: auto; background: none; border: 1px dashed #c9d6cf; }
.tv-pipe li.alt.off { color: #a9b8b1; }
.tv-pipe li.alt.warn { border: 0; background: #fdf1df; color: #a35a00; box-shadow: 0 0 0 4px rgba(240, 166, 64, .18); }
.tv-pipe li.alt.bad { border: 0; background: #fdecea; color: #b42318; }
/* contact card */
.tv-fields { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.tv-fields div { border-radius: 8px; padding: 2px 4px; margin: -2px -4px; }
.tv-fields dt { font-size: .74rem; color: var(--ink-soft); }
.tv-fields dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.tv-fields dd.missing { color: #a9b8b1; font-weight: 400; font-style: italic; }
/* activity timeline */
.tv-activity { flex: 1; min-height: 0; overflow-y: auto; border-bottom: 0; }
.tv-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ev { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.ev:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 26px; bottom: -6px; width: 1px; background: var(--line); }
.ev-dot { width: 13px; height: 13px; border-radius: 50%; margin-top: 4px; flex: none; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.ev-handoff .ev-dot, .ev-unanswered .ev-dot { background: #f0a640; box-shadow: 0 0 0 3px #fdf1df; }
.ev-booked .ev-dot { background: var(--night); box-shadow: 0 0 0 3px var(--bubble-in); }
.ev p { font-weight: 500; line-height: 1.35; }
.ev q { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.ev time { display: block; font: 500 .68rem/1.4 var(--mono); color: var(--ink-soft); margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .ev.new { animation: ev-in .55s var(--ease) both; }
  .ev.new .ev-dot { animation: ev-pop .7s var(--ease) both; }
  .tv-fields .flash { animation: field-flash 1.6s ease both; }
}
@keyframes ev-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes ev-pop { 0% { transform: scale(.3); } 60% { transform: scale(1.25); } 100% { transform: none; } }
@keyframes field-flash { 0%, 40% { background: var(--accent-wash); } 100% { background: transparent; } }

/* the privacy note under the demo chat */
.demo-privacy { margin: 0; padding: 0 16px 12px; font-size: .74rem; line-height: 1.4; color: var(--ink-soft); text-align: center; }
.demo-privacy a { color: var(--accent-deep); }
/* the footer on the Try pages */
.demo ~ .foot { padding-top: 0; }
.demo ~ .foot .foot-row { border-top: 0; }   /* the line is for footers under a dark section */
