/* GENERATED by scripts/build-widget-css.js from studio/studio.css. Do not edit by hand. */
/* =============================================================================
   Assistant demo page + chat widget
   ========================================================================== */
.st-demo-note {
  font-size: 13px;
  color: var(--st-muted);
  border: 1px solid var(--st-line);
  background: var(--st-panel);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 20px;
}

.chat {
  display: flex;
  flex-direction: column;
  height: min(70vh, 560px);
  padding: 0;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--st-line);
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #221C2B;
  font-weight: 800;
}
.chat-head .chat-title {
  font-weight: 700;
  color: var(--st-ink);
  font-size: 15px;
}
.chat-head .chat-status {
  font-size: 12px;
  color: var(--st-muted);
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #221C2B;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--st-line);
  color: #e7ecff;
  border-bottom-left-radius: 4px;
}
.msg.error {
  align-self: flex-start;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.4);
  color: #ffd9d9;
}

/* --- Static example transcript (preview above the live demo) -------------- */
.st-transcript {
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}
.st-transcript-log {
  overflow-y: visible;
}
.st-transcript-note {
  max-width: 480px;
  margin: 10px auto 26px;
  text-align: center;
  font-size: 13px;
  color: var(--st-muted);
}

/* typing indicator */
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-muted);
  animation: st-bounce 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes st-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* example-question chips */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}
.chat-chip {
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.chat-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* composer */
.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--st-line);
}
.chat-form input {
  flex: 1;
  /* Without this an input refuses to shrink past its default ~20-character
     width, and the Send button gets pushed off a phone screen. */
  min-width: 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--st-ink);
  font-size: 15px;
  font-family: inherit;
}
.chat-form input::placeholder {
  color: #A79CB4;
}
.chat-send {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #221C2B;
  font-family: inherit;
}
.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================================================
   AI assistants showcase (pill selector + one demo frame)
   Add an assistant later = one more .st-pill + one more .st-asst-frame panel.
   ========================================================================== */
.st-asst-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
  color: #cfd6ff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.st-pill:hover {
  background: rgba(255, 255, 255, 0.09);
}
.st-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  color: #221C2B;
}
.st-pill-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #CFC5D9;
}
.st-pill-badge--live {
  background: rgba(255, 255, 255, 0.08);
  color: var(--st-muted);
}
.st-pill.is-active .st-pill-badge,
.st-pill.is-active .st-pill-badge--live {
  background: rgba(0, 0, 0, 0.22);
  color: #221C2B;
}

/* The single demo frame — keeps a stable footprint as you switch assistants */
.st-asst-frame:focus-visible {
  outline: 2px solid var(--st-accent-2);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Standalone-page link is now a share action */
.st-asst-share {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--st-muted);
}
.st-asst-share a {
  font-weight: 600;
}
.st-asst-share-note {
  display: block;
  font-size: 13px;
  color: var(--st-muted);
  margin-top: 2px;
}

/* Coming-soon panel — reads as a deliberate "next in the line", not broken */
.st-soon {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  border: 1px dashed var(--st-line);
  border-radius: 16px;
  background: var(--st-panel);
}
.st-soon-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--st-accent-2);
  margin-bottom: 14px;
}
.st-soon h3 {
  font-size: 20px;
  color: var(--st-ink);
  margin-bottom: 8px;
}
.st-soon p {
  color: var(--st-muted);
  margin: 0 0 16px;
  max-width: 52ch;
}
.st-soon-link {
  font-weight: 600;
}

/* --- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .studio *,
  .studio *::before,
  .studio *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Small screens --------------------------------------------------------- */
@media (max-width: 480px) {
  .st-hero {
    padding: 44px 16px 20px;
  }
  .st-section {
    padding: 32px 16px;
  }
  .msg {
    max-width: 92%;
  }
}

/* =============================================================================
   Floating enquiry assistant (SparkLab's own — /api/studio-assistant)
   Lives under body.studio, so it inherits :focus-visible + reduced-motion rules.
   ========================================================================== */
.sl-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: #221C2B;
  max-width: calc(100vw - 28px);
  background: var(--st-accent-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sl-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}
.sl-fab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a3d2f;
  box-shadow: 0 0 0 0 rgba(10, 61, 47, 0.5);
  animation: sl-pulse 2.2s infinite;
}
@keyframes sl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 28, 43, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(34, 28, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 28, 43, 0); }
}

.sl-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 1000;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: #2A2236f7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  /* hidden until opened */
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sl-panel.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--st-line);
}
.sl-title { font-weight: 800; color: var(--st-ink); font-size: 15px; }
.sl-sub { font-size: 12px; color: var(--st-muted); }
.sl-close {
  border: 0;
  background: transparent;
  color: var(--st-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
}
.sl-close:hover { color: var(--st-ink); }

.sl-offline {
  margin: 0;
  padding: 10px 16px;
  font-size: 13px;
  color: #ffe7c2;
  background: rgba(245, 200, 66, 0.1);
  border-bottom: 1px solid var(--st-line);
}

.sl-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sl-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.sl-msg.user {
  align-self: flex-end;
  background: var(--st-accent-2);
  color: #221C2B;
  border-bottom-right-radius: 4px;
}
.sl-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--st-line);
  color: #e7ecff;
  border-bottom-left-radius: 4px;
}
.sl-msg.error {
  align-self: flex-start;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 120, 120, 0.4);
  color: #ffd9d9;
}

.sl-typing { display: inline-flex; gap: 4px; align-items: center; }
.sl-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st-muted);
  animation: st-bounce 1.2s infinite ease-in-out;
}
.sl-typing span:nth-child(2) { animation-delay: .15s; }
.sl-typing span:nth-child(3) { animation-delay: .3s; }

.sl-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--st-line);
}
.sl-input {
  flex: 1;
  min-width: 0; /* keeps Send inside the panel on narrow screens */
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--st-ink);
  font-size: 14.5px;
  font-family: inherit;
}
.sl-input::placeholder { color: #A79CB4; }
.sl-send {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  color: #221C2B;
  font-family: inherit;
  background: var(--st-accent-2);
}
.sl-send:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
  .sl-fab { right: 14px; bottom: 14px; padding: 11px 15px; font-size: 13px; }
  .sl-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 76px;
    height: min(70vh, calc(100vh - 100px));
  }
}

/* =============================================================================
   "Find your treatment" matcher — guided flow (studio showcase + client sites)
   Lives under body.studio, so it inherits :focus-visible + reduced-motion.
   ========================================================================== */
.tm {
  min-height: 360px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.tm-progress {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--st-muted);
}
.tm-q {
  margin: 0 0 4px;
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--st-ink);
}
.tm-hint {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--st-muted);
}
.tm-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 4px;
}
.tm-opt {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
  color: #e7ecff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.tm-opt:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
@media (max-width: 420px) {
  .tm-opts { grid-template-columns: 1fr; }
}

.tm-textarea {
  width: 100%;
  resize: vertical;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--st-ink);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
}
.tm-textarea::placeholder { color: #A79CB4; }

.tm-go {
  align-self: flex-start;
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #221C2B;
  font-family: inherit;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}

.tm-back,
.tm-restart {
  align-self: flex-start;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--st-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.tm-back:hover,
.tm-restart:hover { color: var(--st-ink); }

.tm-loading {
  margin-top: 8px;
}

/* Recommendation card */
.tm-result {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: var(--st-panel);
  overflow: hidden;
}
.tm-result::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--st-accent), var(--st-accent-2));
}
.tm-result.is-caution::before {
  background: #f5c842; /* amber edge for the "check first" case */
}
.tm-result-kicker {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--st-muted);
}
.tm-result-name {
  margin: 0 0 8px;
  font-size: clamp(21px, 3vw, 26px);
  color: var(--st-ink);
}
.tm-result-reason {
  margin: 0;
  color: #d8def5;
  font-size: 15.5px;
  line-height: 1.5;
}
.tm-caution {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--st-muted);
  line-height: 1.5;
}
.tm-book {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  color: #221C2B;
  text-decoration: none;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}
.tm-book:hover { text-decoration: none; filter: brightness(1.05); }

/* =============================================================================
   Social content generator (private back-office tool: taster + /studio/tools/content)
   Lives under body.studio, so it inherits :focus-visible + reduced-motion.
   ========================================================================== */
.cg {
  padding: 24px;
}
.cg-intro {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--st-muted);
  line-height: 1.5;
}
.cg-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.cg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* A <select> is as wide as its longest option ("New clients (not sure what to
     book)"), which used to push the whole page sideways on a phone. Let the
     field shrink and cap the control to the row instead. */
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--st-muted);
  font-weight: 600;
}
.cg-field select {
  font-family: inherit;
  font-size: 14px;
  color: var(--st-ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.cg-go {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #221C2B;
  font-family: inherit;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}
.cg-go:disabled { opacity: .55; cursor: not-allowed; }

.cg-status {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--st-muted);
  min-height: 1.2em;
}
.cg-status.is-error { color: #ffd9d9; }

.cg-results {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
@media (min-width: 760px) {
  .cg-results { grid-template-columns: 1fr 1fr; }
}
.cg-card {
  padding: 18px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-panel);
}
.cg-card-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 8px;
}
.cg-caption {
  margin: 0;
  color: var(--st-ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere; /* a long link or hashtag can't widen the card */
}
.cg-hashtags {
  margin: 10px 0 0;
  color: var(--st-muted);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.cg-photo {
  margin: 10px 0 0;
  color: var(--st-muted);
  font-size: 13.5px;
}
.cg-photo strong { color: #d8def5; }
.cg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cg-copy {
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6ff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cg-copy:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cg-copy.is-copied {
  background: rgba(201, 169, 218, 0.16);
  color: var(--st-accent-2);
  border-color: transparent;
}

/* "private tool" flag inside the studio taster */
.cg-private-flag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.12);
  border: 1px solid rgba(245, 200, 66, 0.35);
  color: #ffe7c2;
}

/* =============================================================================
   Review collector — guided flow (studio showcase)
   Lives under body.studio, so it inherits :focus-visible + reduced-motion.
   ========================================================================== */
.rc {
  min-height: 360px;
  padding: 26px 24px;
}

/* Step 1: the "recent appointment" trigger card */
.rc-appt {
  padding: 20px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-panel);
}
.rc-appt-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--st-muted);
}
.rc-appt-name {
  margin: 0 0 4px;
  font-size: clamp(19px, 2.6vw, 22px);
  color: var(--st-ink);
}
.rc-appt-detail {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--st-muted);
}

.rc-go {
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #221C2B;
  font-family: inherit;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}

.rc-hint {
  margin: 14px 0 12px;
  font-size: 14px;
  color: var(--st-muted);
}

/* Step 2: the private message preview, styled like a text message */
.rc-sms {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
}
.rc-sms-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--st-muted);
}
.rc-sms-body {
  margin: 0;
  color: var(--st-ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Simulated reply buttons */
.rc-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.rc-reply {
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
  color: #e7ecff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.rc-reply:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Step 4: outcome cards */
.rc-result {
  position: relative;
  padding: 22px 24px 24px;
  margin-bottom: 22px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: var(--st-panel);
  overflow: hidden;
}
.rc-result::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--st-accent), var(--st-accent-2));
}
.rc-result--private::before {
  background: #f5c842;
}
.rc-result-kicker {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--st-muted);
}
.rc-result--private .rc-result-kicker {
  color: #f5c842;
}
.rc-result-title {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.8vw, 23px);
  color: var(--st-ink);
}
.rc-result-body {
  margin: 0;
  color: #d8def5;
  font-size: 15px;
  line-height: 1.55;
}

/* The "gathered in one place" reviews wall */
.rc-wall-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--st-muted);
}
.rc-wall-list {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .rc-wall-list { grid-template-columns: 1fr 1fr; }
}
.rc-wall-item {
  padding: 14px 16px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.rc-wall-item--new {
  border-style: dashed;
  border-color: rgba(201, 169, 218, 0.4);
  background: rgba(201, 169, 218, 0.06);
}
.rc-stars {
  display: block;
  color: var(--st-muted);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.rc-wall-text {
  margin: 0;
  color: #d8def5;
  font-size: 14px;
  line-height: 1.5;
}
.rc-wall-who {
  color: var(--st-muted);
  font-weight: 600;
}

/* =============================================================================
   FAQ / "is this for me?" answerer (lightweight single-page Q&A)
   Reuses .chat-chips/.chat-chip for the starter questions and .sl-typing for
   the pending indicator; only the ask form and Q&A list are its own.
   ========================================================================== */
.faq {
  padding: 26px 24px;
}
.faq-intro {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--st-muted);
}
.faq-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.faq-form input {
  flex: 1;
  min-width: 0; /* let the input shrink so "Ask" stays on screen — see .chat-form */
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--st-ink);
  font-size: 15px;
  font-family: inherit;
}
.faq-form input::placeholder { color: #A79CB4; }
.faq-form input:focus-visible {
  outline: none;
  border-color: var(--st-accent-2);
  box-shadow: 0 0 0 3px rgba(201, 169, 218, 0.16);
}
.faq-ask {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #221C2B;
  font-family: inherit;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.faq-ask:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 169, 218, 0.18);
}
.faq-ask:disabled { opacity: 0.5; cursor: not-allowed; }

/* The .chat-chips composer has bottom padding meant for the chat frame; here
   the chips sit inline, so pull that padding back. */
.faq .chat-chips { padding: 0 0 6px; }

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

/* Each answered question is a small Q&A card. A Q/A badge pair gives the flat
   stack some rhythm; a soft top-light and entrance keep it feeling alive. */
.faq-item {
  padding: 15px 18px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  animation: faqIn .28s ease both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.faq-q,
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.faq-q { margin: 0 0 10px; }
.faq-a { margin: 0; }

/* Q / A badges */
.faq-q::before,
.faq-a::before {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}
.faq-q::before {
  content: "Q";
  color: #221C2B;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}
.faq-a::before {
  content: "A";
  color: var(--st-accent-2);
  background: rgba(201, 169, 218, 0.09);
  border: 1px solid rgba(201, 169, 218, 0.28);
}

.faq-q > .faq-qtext {
  font-size: 15px;
  font-weight: 700;
  color: var(--st-ink);
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}
.faq-a > .faq-atext {
  font-size: 14.5px;
  line-height: 1.6;
  color: #d8def5;
  white-space: pre-wrap;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* =============================================================================
   Reply drafter widget — the one demo that runs on the visitor's own business
   ========================================================================== */
.rd {
  min-height: 360px;
  padding: 26px 24px;
}
.rd-intro {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--st-muted);
}
.rd-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rd-preset {
  border: 1px solid var(--st-line);
  border-radius: 999px;
  background: transparent;
  color: var(--st-ink);
  font-family: inherit;
  font-size: 13.5px;
  padding: 6px 14px;
  cursor: pointer;
}
.rd-preset:hover,
.rd-preset:focus-visible {
  border-color: var(--st-accent);
  color: var(--st-accent);
}
.rd-hint {
  margin: 10px 0 18px;
  font-size: 13px;
  color: var(--st-muted);
}

.rd-field {
  margin-bottom: 14px;
}
.rd-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--st-muted);
}
.rd-field input,
.rd-field textarea,
.rd-field select {
  width: 100%;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: var(--st-panel);
  color: var(--st-ink);
  font-family: inherit;
  font-size: 14.5px;
  padding: 10px 12px;
}
.rd-field textarea {
  resize: vertical;
}
.rd-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.rd-row > .rd-field {
  flex: 1 1 12rem;
  min-width: 0; /* inputs inside must be allowed to shrink below their default width */
}

.rd-go {
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #221C2B;
  font-family: inherit;
  background: linear-gradient(135deg, var(--st-accent), var(--st-accent-2));
}
.rd-go[disabled] {
  opacity: 0.55;
  cursor: default;
}
.rd-err {
  margin: 12px 0 0;
  font-size: 14px;
  color: #ffc14d;
}

.rd-out {
  margin-top: 22px;
}
.rd-out-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--st-muted);
}
.rd-reply {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--st-line);
  background: rgba(255, 255, 255, 0.04);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14.5px;
  color: var(--st-ink);
}
.rd-gaps-label {
  margin: 18px 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffc14d;
}
.rd-gaps {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--st-muted);
}
.rd-gaps li {
  margin-bottom: 4px;
}
.rd-ready {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--st-muted);
}

/* =============================================================================
   Phones — the demo widgets
   Kept at the end of the file on purpose: these override the widget rules
   above, and everything here is same-specificity, so source order decides.
   ========================================================================== */
@media (max-width: 480px) {
  /* The section already gives 16px of gutter, so the widget's own 24-26px of
     padding was eating a third of the screen. */
  .chat-log,
  .chat-form {
    padding-left: 14px;
    padding-right: 14px;
  }
  .chat-chips {
    padding: 0 14px 12px;
  }
  .faq,
  .rc,
  .rd,
  .cg,
  .tm {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* One field per row, so the two dropdowns don't end up different widths. */
  .cg-field {
    flex-basis: 100%;
  }

  /* A button alone on its row reads better full width than stranded. */
  .cg-go,
  .rd-go {
    width: 100%;
  }

  /* iOS zooms the page in when a focused control is under 16px, which leaves
     the visitor panned sideways with the demo half off screen. */
  .chat-form input,
  .faq-form input,
  .sl-input,
  .cg-field select,
  .rd-field input,
  .rd-field textarea,
  .rd-field select,
  .tm-textarea {
    font-size: 16px;
  }
}

