/* Ask Sprout — floating finance friend. Plain "Ask Sprout" pill button + compact chat panel.
   Loaded on every page by site.js. Keep it self-contained: fixed colours, not theme vars,
   so the panel reads the same in Light, Dark and Paper. */
.sp-float-wrap{position:fixed;right:16px;bottom:16px;z-index:90}
.sp-float{position:relative;display:inline-flex;align-items:center;gap:.4rem;border-radius:999px;border:2px solid #e0b04f;background:linear-gradient(160deg,#fdf6dd,#f3df9a);color:#6b5312;font:inherit;font-size:.92rem;font-weight:700;padding:.62rem 1rem;box-shadow:0 6px 20px rgba(224,176,79,.5),0 0 0 3px rgba(224,176,79,.16);cursor:pointer;animation:spbob 3s ease-in-out infinite;-webkit-tap-highlight-color:transparent}
.sp-float::after{content:"";position:absolute;inset:-6px;border-radius:999px;border:2px solid rgba(224,176,79,.55);animation:spping 2.6s ease-out infinite;pointer-events:none}
@keyframes spbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes spping{0%{opacity:.8;transform:scale(.94)}70%,100%{opacity:0;transform:scale(1.12)}}
.sp-float:focus-visible{outline:3px solid #0f7b55;outline-offset:2px}
/* Welcome nudge: the floating button pops in once per session, and a small
   bubble says hello above it. The bubble closes itself after 5 seconds. */
.sp-float-wrap.sp-pop-in{animation:spwrapin .55s cubic-bezier(.2,1.4,.4,1) both}
@keyframes spwrapin{from{opacity:0;transform:scale(.6) translateY(16px)}to{opacity:1;transform:scale(1) translateY(0)}}
.sp-nudge{position:absolute;right:0;bottom:calc(100% + 12px);width:max-content;max-width:min(250px,calc(100vw - 48px));background:#fffdf6;border:2px solid #e0b04f;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.22);padding:.6rem 2rem .6rem .8rem;font-size:.9rem;line-height:1.35;color:#14201b;animation:spnudgein .4s cubic-bezier(.2,1.4,.4,1) both;z-index:92}
.sp-nudge::after{content:"";position:absolute;right:18px;bottom:-7px;width:12px;height:12px;background:#fffdf6;border-right:2px solid #e0b04f;border-bottom:2px solid #e0b04f;transform:rotate(45deg)}
.sp-nudge.closing{animation:spnudgeout .3s ease both}
.sp-nudge-x{position:absolute;top:4px;right:6px;border:0;background:none;color:#6b5312;font-size:1rem;line-height:1;cursor:pointer;padding:2px 4px}
@keyframes spnudgein{from{opacity:0;transform:translateY(8px) scale(.95)}to{opacity:1;transform:none}}
@keyframes spnudgeout{to{opacity:0;transform:translateY(6px) scale(.96)}}
@media(prefers-reduced-motion:reduce){.sp-float-wrap.sp-pop-in,.sp-nudge,.sp-nudge.closing{animation:none}}
.sp-chat{position:fixed;right:16px;bottom:82px;z-index:91;width:min(340px,calc(100vw - 32px));height:min(640px,calc(100dvh - 120px));background:#fffdf6;border:2px solid #e0b04f;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.28);display:none;flex-direction:column;overflow:hidden;font-family:Inter,system-ui,sans-serif;color:#14201b}
.sp-chat.on{display:flex;animation:sppop .3s cubic-bezier(.2,1.4,.4,1) both}
@keyframes sppop{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.sp-chat .sp-head{display:flex;align-items:center;gap:.6rem;background:#0f3d2e;color:#fff;padding:.7rem .9rem}
.sp-chat .sp-head b{font-size:.98rem;display:block}
.sp-chat .sp-head small{display:block;font-size:.72rem;color:#bfe3cf;font-weight:400}
.sp-chat .sp-head .x{margin-left:auto;border:0;background:none;color:#fff;font-size:20px;line-height:1;cursor:pointer;padding:4px}
.sp-chat .sp-msgs{position:relative;flex:1;overflow-y:auto;padding:.8rem;display:flex;flex-direction:column;gap:.55rem}
.sp-chat .msg{max-width:88%;padding:.55rem .75rem;border-radius:12px;font-size:.92rem;line-height:1.5;overflow-wrap:break-word;animation:spmsgin .25s ease backwards}
@keyframes spmsgin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.sp-chat .msg.bot{background:#f3efe0;border:1px solid #e3dcc8;border-bottom-left-radius:4px;align-self:flex-start}
.sp-chat .msg.user{background:#0f7b55;color:#fff;border-bottom-right-radius:4px;align-self:flex-end;transition:opacity .6s ease}
.sp-chat .msg.user.faded{opacity:.32}
.sp-chat .msg a{display:inline-block;padding:.5rem .95rem;border:1.5px solid #0f7b55;border-radius:999px;font:700 .82rem Inter,sans-serif;color:#0f7b55;text-decoration:none}
.sp-chat .msg.user a{display:inline-block;padding:.5rem .95rem;border:1.5px solid #fff;border-radius:999px;font:700 .82rem Inter,sans-serif;color:#fff;text-decoration:none}
.sp-chat .chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 .8rem .6rem}
.sp-chat .chip{border:1.5px solid #e0b04f;background:#fdf6dd;color:#6b5312;border-radius:999px;padding:.3rem .65rem;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}
/* Tappable options inside an answer (the "One-time / Monthly SIP" question). Same
   pill look as the chips, so they read as something to tap, not plain text. */
.sp-chat .sp-opt{display:inline-block;margin:.2rem .3rem .2rem 0;border:1.5px solid #0f8a5f;background:#eaf7f0;color:#0b5c40;border-radius:999px;padding:.35rem .8rem;font:inherit;font-size:.85rem;font-weight:700;cursor:pointer}
.sp-chat .sp-opt:hover{background:#d3efe1}
.sp-chat .sp-in{display:flex;gap:.5rem;padding:.6rem .8rem;border-top:1px solid #e3dcc8;background:#fff}
.sp-chat .sp-in input{flex:1;min-width:0;border:1.5px solid #e3dcc8;border-radius:999px;padding:.55rem .8rem;font:inherit;font-size:.92rem;outline:none;color:#14201b;background:#fff}
.sp-chat .sp-in input:focus{border-color:#0f7b55}
.sp-chat .sp-in button{border:0;background:#0f7b55;color:#fff;border-radius:999px;padding:.55rem .95rem;font:inherit;font-weight:700;cursor:pointer;flex:none}
.sp-chat .sp-disc{font-size:.7rem;color:#5c6b64;text-align:center;padding:.35rem .8rem .6rem;background:#fff}
.sp-chat .dots3{display:inline-flex;gap:4px;vertical-align:middle}
.sp-chat .dots3 i{width:6px;height:6px;border-radius:50%;background:#5c6b64;animation:spbob2 1.1s infinite}
.sp-chat .dots3 i:nth-child(2){animation-delay:.15s}.sp-chat .dots3 i:nth-child(3){animation-delay:.3s}
.sp-chat .brew{display:inline-flex;align-items:center;gap:.45rem}
.sp-chat .brew-txt{font-size:.88rem;color:#5c6b64}
@keyframes spbob2{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-3px);opacity:1}}
@media(max-width:640px){.sp-float-wrap{right:12px;bottom:12px}.sp-float{padding:.55rem .9rem;font-size:.9rem}.sp-chat{left:8px;right:8px;bottom:8px;width:auto;height:min(88dvh,680px);max-height:88dvh}.sp-chat .sp-msgs{padding:.9rem;gap:.65rem}.sp-chat .msg{font-size:.95rem;max-width:92%}.sp-chat .sp-in input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.sp-float,.sp-float::after,.sp-chat.on,.sp-chat .dots3 i{animation:none}}
