/* The fictional customer website around the chat demo (chat-on-website.html). */
html, body.sm-site { background: #fbfaf7; }
.sm-site { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2329; }
.sm-note { margin: 0; padding: 8px 16px; background: #fff4d6; color: #5c4400; font-size: .8125rem; text-align: center; }
.sm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #ece8df; flex-wrap: wrap; }
.sm-logo { font-weight: 800; letter-spacing: .06em; color: #b5452b; }
.sm-logo b { color: #1d2329; margin-left: 6px; }
.sm-nav { display: flex; gap: 20px; font-size: .9rem; color: #4a525a; }
.sm-hero { max-width: 980px; margin: 0 auto; padding: 48px 24px 140px; }
.sm-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.sm-hero > p { max-width: 560px; color: #4a525a; }
.sm-track { display: flex; max-width: 520px; margin: 24px 0 40px; border: 2px solid #1d2329; border-radius: 12px; overflow: hidden; background: #fff; }
.sm-track span { padding: 14px 16px; color: #8a9096; flex: 1; }
.sm-track .sm-track__btn { flex: 0 0 auto; background: #1d2329; color: #fff; font-weight: 700; }
.sm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sm-cards div { background: #fff; border: 1px solid #ece8df; border-radius: 12px; padding: 18px; }
.sm-cards h2 { font-size: 1.05rem; font-weight: 700; }
.sm-cards p { color: #4a525a; margin: 0; font-size: .925rem; }

/* the Landfall chat window and button, as widget.js draws them */
.sm-chat { position: fixed; right: 20px; bottom: 90px; width: 380px; height: 600px; max-height: calc(100vh - 200px); max-width: calc(100vw - 40px);
  border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); background: #fff; z-index: 1500; }
.sm-chat[hidden] { display: none; }
.sm-chat .lfp-chat { min-height: 0; height: 100%; }
.sm-chat .lfp-thread { min-height: 0; }
.sm-launcher { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #074764; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; z-index: 1501; }
.lf-has-dock .sm-chat { bottom: 170px; max-height: calc(100vh - 260px); }
.lf-has-dock .sm-launcher { bottom: 100px; }
@media (max-width: 520px) { .sm-chat { right: 8px; left: 8px; width: auto; } }

/* Short screens: compact the composer and footer so the conversation keeps its room. */
@media (max-height: 800px) {
  .sm-chat .lfp-composer textarea { height: 44px; min-height: 44px; }
  .sm-chat .lfp-foot { font-size: 11px; line-height: 1.35; margin: 6px 16px 8px; }
  .lf-has-dock .sm-chat { bottom: 150px; max-height: calc(100vh - 220px); }
}
