/* Save & Pave concept preview — AI receptionist. Uses the tokens in style.css. */
.spr { --spr-paper: #fbfaf7; --spr-rule: #d9d6cf; --spr-soft: #66707b; font-family: var(--font-body); color: var(--ink); }
.spr *, .spr *::before, .spr *::after { box-sizing: border-box; }

/* launcher */
.spr-launch { position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 44; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 15px/1 var(--font-body); cursor: pointer;
  box-shadow: 0 2px 4px rgba(16,24,40,.12), 0 14px 34px rgba(16,24,40,.28); transition: transform .2s cubic-bezier(.2,.8,.2,1), background-color .2s; }
.spr-launch:hover { background: var(--navy-2); transform: translateY(-2px); }
.spr-launch:active { transform: translateY(0) scale(.98); }
.spr-launch svg { width: 22px; height: 22px; }
.spr-launch__dot { position: absolute; top: 8px; left: 30px; width: 9px; height: 9px; border-radius: 50%; background: #9aa3ad; box-shadow: 0 0 0 2px var(--navy); }
.spr-launch__dot[data-open="true"] { background: #3ccf72; }
.spr.is-open .spr-launch { opacity: 0; pointer-events: none; transform: translateY(8px); }
body.has-sticky .spr-launch { bottom: 92px; }
@media (min-width: 961px) { body.has-sticky .spr-launch { bottom: clamp(16px, 2.4vw, 28px); } }

/* panel */
.spr-panel { display: flex; flex-direction: column; background: var(--spr-paper); overflow: hidden; }
.spr--float .spr-panel { position: fixed; z-index: 45; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); width: min(400px, calc(100vw - 32px));
  height: min(640px, calc(100svh - 110px)); border-radius: 16px; box-shadow: 0 2px 6px rgba(16,24,40,.12), 0 30px 80px rgba(16,24,40,.35);
  transform-origin: bottom right; animation: spr-in .28s cubic-bezier(.2,.8,.2,1); }
.spr--float .spr-panel[hidden] { display: none; }
@keyframes spr-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.spr--inline .spr-panel { height: 620px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 600px) {
  .spr--float .spr-panel { inset: 0; width: auto; height: 100svh; border-radius: 0; animation-name: spr-up; }
  .spr--inline .spr-panel { height: 560px; }
  .spr-launch span { display: none; }
  .spr-launch { padding: 14px; }
  .spr-launch__dot { left: auto; right: 9px; top: 9px; }
}
@keyframes spr-up { from { transform: translateY(24px); opacity: 0; } }

.spr-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--navy); color: #fff; }
.spr-mark { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green); font: 600 12px/1 var(--font-head); letter-spacing: .02em; }
.spr-who { min-width: 0; flex: 1; }
.spr-who b { display: block; font: 500 16px/1.2 var(--font-head); }
.spr-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cdd3da; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spr-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #9aa3ad; }
.spr-status i[data-open="true"] { background: #3ccf72; }
.spr-human { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  border-radius: 999px; padding: 7px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.spr-human:hover { background: rgba(255,255,255,.12); }
.spr-human svg { width: 15px; height: 15px; }
.spr-close, .spr-reset { flex: none; width: 34px; height: 34px; border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 8px; }
.spr-reset { font-size: 18px; }
.spr-close:hover, .spr-reset:hover { background: rgba(255,255,255,.12); }
@media (max-width: 380px) { .spr-human { padding: 7px 9px; font-size: 0; gap: 0; } .spr-human svg { width: 18px; height: 18px; } }

.spr-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 8px; outline: none; }
.spr-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: spr-pop .25s ease-out; overflow-wrap: anywhere; }
@keyframes spr-pop { from { opacity: 0; transform: translateY(5px); } }
.spr-msg--ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.spr-msg--user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.spr-msg--card { align-self: stretch; max-width: 100%; padding: 0; background: transparent; }
.spr-msg--typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.spr-msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3ad; animation: spr-blink 1.1s infinite; }
.spr-msg--typing i:nth-child(2) { animation-delay: .18s; } .spr-msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes spr-blink { 50% { opacity: .25; } }
.spr-src { display: block; margin-top: 6px; font-size: 11px; color: var(--spr-soft); }
.spr-src::before { content: "↳ "; }

.spr-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 14px 10px; }
.spr-chips:empty { display: none; }
.spr-chip { border: 1px solid #c9cfd6; background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .1s; }
.spr-chip:hover { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.spr-chip:active { transform: scale(.97); }

.spr-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--spr-rule); background: #fff; }
.spr-form input { flex: 1; min-width: 0; border: 1px solid #cfd5dc; border-radius: 999px; padding: 11px 16px; font-size: 15px; background: #fff; }
.spr-form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(1,103,196,.18); }
.spr-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.spr-form button:hover { background: #18652f; }
.spr-form button svg { width: 20px; height: 20px; }
.spr-foot { margin: 0; padding: 8px 14px 10px; font-size: 11px; line-height: 1.45; color: var(--spr-soft); background: #fff; }
.spr-foot b { color: var(--ink); }

/* the enquiry ticket: same paper as the patio receipt */
.spr-ticket { position: relative; background: #fff; border-radius: 10px 10px 0 0; padding: 14px 14px 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 26px rgba(16,24,40,.10); font-variant-numeric: tabular-nums; }
.spr-ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: linear-gradient(-45deg, transparent 5px, #fff 0) 0 0 / 10px 8px repeat-x, linear-gradient(45deg, transparent 5px, #fff 0) 0 0 / 10px 8px repeat-x; }
.spr-ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--spr-rule); }
.spr-ticket__head b { font: 500 17px/1.2 var(--font-head); }
.spr-tier { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.spr-tier--hot { background: var(--green-soft); color: var(--green); }
.spr-tier--warm { background: #e6f0fa; color: var(--blue-dark); }
.spr-tier--cool { background: #f0f1f3; color: var(--muted); }
.spr-tier--call { background: #fff4e5; color: #7a3d00; }
.spr-ticket dl { margin: 0; display: grid; gap: 0; }
.spr-ticket dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #ebe8e1; font-size: 13px; }
.spr-ticket dt { color: var(--spr-soft); }
.spr-ticket dd { margin: 0; }
.spr-flags { margin: 10px 0 0; font-size: 12.5px; color: #7a3d00; background: #fff4e5; padding: 7px 9px; border-radius: 6px; }
.spr-ticket__cta { display: grid; gap: 8px; margin-top: 12px; }
.spr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 14px; font-weight: 600; font-size: 14.5px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, transform .1s; }
.spr-btn:active { transform: translateY(1px); }
.spr-btn svg { width: 18px; height: 18px; }
.spr-btn--wa { background: var(--green); color: #fff; }
.spr-btn--wa:hover { background: #18652f; }
.spr-btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.spr-btn--ghost:hover { border-color: #c5cbd2; }
.spr-muted { display: block; margin: 8px 0 0; font-size: 12px; color: var(--spr-soft); line-height: 1.45; }

.spr-samples { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.spr-samples b { font: 500 15px/1.2 var(--font-head); }
.spr-sample { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px 6px 6px; cursor: pointer; font-size: 14px; transition: border-color .15s; }
.spr-sample:hover { border-color: var(--green); }
.spr-sample img { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; }
.spr-sample small { display: block; font-size: 12px; color: var(--spr-soft); }

.spr .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spr :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .spr-panel, .spr-msg, .spr-launch { animation: none !important; transition: none !important; }
  .spr-msg--typing i { animation: none; }
}
