/* The inline assistant in the homepage hero. Builds on the .hc card in home.css; adds the conversation area, the visitor's bubbles and the guided setup. */
/* The transcript is a chat window of its own fixed height (320 to 380px by viewport height), not as tall as its content: it shows about two visitor
   messages and two replies at once, keeps that size from the opening line on, and scrolls inside itself when a conversation runs longer. */
.hc-body { display: flex; flex-direction: column; flex: none; gap: 10px; height: clamp(320px, 52vh, 380px); min-height: 320px; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.hc-body .hc-msg { flex: none; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; padding: 11px 16px; font-size: 1rem; line-height: 1.45; }
.hc-body .hc-msg .hc-msg-who { margin-bottom: 2px; }
.hc-body .hc-msg.hc-me { align-self: flex-end; background: var(--lm-surface-2); color: var(--lm-ink); border: 1.5px solid var(--lm-line); border-radius: 18px 18px 4px 18px; }
.hc-body .hc-msg.hc-me .hc-msg-who { color: var(--lm-muted); }
.hc-body .hc-msg.hc-typing { opacity: .85; }
.hc-body .hc-msg.hc-typing .hc-dots span { display: inline-block; animation: hc-blink 1.2s infinite both; }
.hc-body .hc-msg.hc-typing .hc-dots span:nth-child(2) { animation-delay: .2s; }
.hc-body .hc-msg.hc-typing .hc-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes hc-blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.hc-form { padding-top: 6px; }
.hc-row input:focus-visible, .hc-assist input:focus-visible, .hc-assist textarea:focus-visible { outline: 3px solid var(--lm-accent); outline-offset: 2px; }
.hc-note { padding-top: 8px; padding-bottom: 8px; min-height: 0; }
.hc-note:empty { display: none; }
.hc-note.hc-error { color: #8B1E1E; font-weight: 600; }
.hc-note.hc-ok { color: #1F5F2E; font-weight: 600; }
.hc-fine { font-size: .85rem; padding-bottom: 18px; }
.hc-fine a { color: inherit; text-decoration: underline; }
.hc-row input { font-size: 16px; }
#assist, #sample, #assistant { scroll-margin-top: 96px; }
.hc-opt { font-weight: 400; color: var(--lm-muted); }

/* ---- guided setup, inside the chat (19 October 2026): a bar while setting up, review card, buttons */
.hc-setupbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0; padding: 9px 22px; background: var(--lm-surface-2); border-bottom: 1.5px solid var(--lm-line); color: var(--lm-ink); font-size: .92rem; line-height: 1.35; }
.hc-setupbar[hidden] { display: none; }
.hc-body .hc-msg.hc-card { width: 100%; max-width: 100%; box-sizing: border-box; }
.hc-review { margin: 8px 0 12px; padding: 0; display: grid; gap: 2px; }
.hc-review dt { margin: 8px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lm-on-ink); }
.hc-review dd { margin: 0; font-size: 1rem; line-height: 1.4; color: #FFFFFF; overflow-wrap: anywhere; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hc-act { min-height: 44px; padding: 8px 16px; border: 1.5px solid #FFFFFF; border-radius: 999px; background: transparent; color: #FFFFFF; font: inherit; font-size: .98rem; font-weight: 600; cursor: pointer; }
.hc-act:hover { background: rgba(255, 255, 255, .12); }
.hc-act-primary { background: var(--lm-accent); border-color: var(--lm-accent); color: var(--lm-ink); }
.hc-act-primary:hover { background: var(--lm-accent-2); border-color: var(--lm-accent-2); }
.hc-act:focus-visible, .hc-link:focus-visible { outline: 3px solid var(--lm-accent); outline-offset: 2px; }
.hc-link { display: inline; padding: 2px 4px; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 24px; }
.hc-review .hc-link { color: var(--lm-accent); margin-left: 4px; }
.hc-setupbar .hc-link { color: var(--lm-ink); }
.hc-send[disabled], #hc-send[disabled] { opacity: .6; cursor: progress; }

/* ---- the short form: a collapsed fallback only (chat not working, or no script) */
.lm-fallback { margin: 14px 0 0; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #FFFFFF; }
.lm-fallback > summary { padding: 12px 16px; cursor: pointer; font-size: .95rem; font-weight: 600; list-style-position: inside; }
.lm-fallback > summary:focus-visible { outline: 3px solid var(--lm-accent); outline-offset: 2px; border-radius: 12px; }
.lm-fallback .hc-assist { margin: 0; padding: 4px 16px 14px; border-top: 0; display: grid; gap: 6px; background: transparent; }
.lm-fallback .hc-assist label { font-size: .95rem; font-weight: 600; color: #FFFFFF; margin-top: 6px; }
.lm-fallback .hc-assist .hc-opt { color: var(--lm-on-ink); }
.lm-fallback .hc-assist input, .lm-fallback .hc-assist textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1.5px solid var(--lm-ink); border-radius: 12px; background: #FFFFFF; color: var(--lm-ink); font: inherit; font-size: 16px; }
.lm-fallback .hc-assist textarea { resize: vertical; min-height: 84px; }
.lm-fallback .hc-assist input:focus-visible, .lm-fallback .hc-assist textarea:focus-visible { outline: 3px solid var(--lm-accent); outline-offset: 2px; }
.lm-fallback .hc-assist [aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 2px #C0392B; }
.lm-fallback .hc-assist-actions { display: flex; margin-top: 8px; }
.lm-fallback .hc-note { color: #FFFFFF; padding: 6px 0 0; }
.lm-fallback .hc-note.hc-error { color: #FFD3CE; }
.lm-fallback .hc-note.hc-ok { color: #CFF5D6; }

/* ---- the sample inquiry: a designed owner card, written by engine/selfserve/inquiry.js (the same facts as the real e-mails) */
body.lm .lm-sample { padding-top: 72px; padding-bottom: 72px; }
.lm-sample-head h2 { margin: 12px 0 0; }
.lm-sample-head { max-width: 760px; margin-left: auto; margin-right: auto; }
.lm-sample-card { margin: 32px auto 0; max-width: 760px; border: 1.5px solid var(--lm-ink); border-radius: 20px; background: var(--lm-surface); box-shadow: var(--lm-shadow); overflow: hidden; }
.lm-sample-tag { margin: 0; padding: 12px 24px; background: var(--lm-accent); color: var(--lm-ink); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.lm-inq-head { padding: 22px 24px 20px; background: var(--lm-ink); color: #FFFFFF; }
.lm-inq-head p { margin: 0; }
.lm-inq-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lm-accent); }
.lm-inq-name { margin-top: 6px !important; font-size: 1.9rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.lm-inq-sub { margin-top: 4px !important; font-size: .9rem; color: var(--lm-on-ink); }
.lm-inq-body { padding: 8px 24px 24px; color: var(--lm-ink); }
.lm-inq-contact { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.lm-inq-contact li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border: 1.5px solid var(--lm-line); border-radius: 12px; background: var(--lm-surface-2); }
.lm-inq-contact li span { min-width: 3.5em; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lm-muted); }
.lm-inq-contact a { font-size: 1.05rem; font-weight: 700; color: var(--lm-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lm-inq-contact a:focus-visible, .lm-inq-convo summary:focus-visible { outline: 3px solid var(--lm-ink); outline-offset: 3px; border-radius: 6px; }
.lm-inq-h { margin: 22px 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lm-muted); font-family: inherit; }
.lm-inq-said { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lm-inq-said li { padding: 2px 0 2px 16px; border-left: 4px solid var(--lm-ink); font-size: 1.12rem; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.lm-inq-none { margin: 0; font-size: 1rem; color: var(--lm-muted); }
.lm-inq-open { margin-top: 22px; padding: 4px 18px 14px; background: #FFF4D1; border-left: 6px solid var(--lm-accent); border-radius: 8px; }
.lm-inq-open .lm-inq-h { margin: 12px 0 8px; color: var(--lm-ink); }
.lm-inq-open ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.lm-inq-convo { margin-top: 22px; border-top: 1.5px solid var(--lm-line); padding-top: 14px; }
.lm-inq-convo summary { cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--lm-ink); padding: 4px 0; }
.lm-inq-thread { margin-top: 12px; display: grid; gap: 8px; }
.lm-inq-line { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: .98rem; line-height: 1.5; overflow-wrap: anywhere; }
.lm-inq-line strong { display: block; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.lm-inq-visitor { background: var(--lm-surface-2); border: 1.5px solid var(--lm-line); color: var(--lm-ink); }
.lm-inq-visitor strong { color: var(--lm-muted); }
.lm-inq-assistant { background: var(--lm-ink); color: #FFFFFF; }
.lm-inq-assistant strong { color: var(--lm-on-ink); }
@media (max-width: 860px) { body.lm .lm-sample { padding-top: 56px; padding-bottom: 56px; } }
@media (max-width: 480px) {
  .hc-setupbar { padding-left: 16px; padding-right: 16px; }
  .hc-body { height: clamp(260px, 46vh, 340px); min-height: 260px; }
  .lm-sample-tag { padding-left: 16px; padding-right: 16px; }
  .lm-inq-head { padding: 18px 16px 16px; }
  .lm-inq-name { font-size: 1.55rem; }
  .lm-inq-body { padding: 4px 16px 20px; }
  .lm-inq-open { padding-left: 14px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hc-body .hc-msg.hc-typing .hc-dots span { animation: none; } }
