/* Allie prep pages: the Blue Seas document kit (bs-doc.css) plus the chat. BS-O2 Web page. 1 Oct 2026. */
.page.app{max-width:980px;padding:0 20px 40px}
@media(min-width:720px){.page.app{padding:0 32px 56px}}
.masthead .meta b{display:block;color:var(--bs-ink);font-family:var(--bs-font-display);font-weight:700;font-size:14px}

.hero{margin-top:30px}
.hero h1{font-size:clamp(2rem,5vw,3.1rem)}
.hero .dek{font-size:17.5px;margin-top:14px}
.hero .voice{margin-top:10px;font-size:13.5px;color:var(--bs-ink-faint)}

/* the chat card */
.chatcard{margin-top:26px;padding:0;display:flex;flex-direction:column;height:min(72vh,680px);min-height:440px;overflow:hidden}
.log{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}
@media(min-width:720px){.log{padding:26px 28px}}
.msg{display:flex;align-items:flex-end;gap:10px}
.msg.me{justify-content:flex-end}
.msg .av{width:38px;height:38px;flex:0 0 38px;border-radius:50%;border:2px solid var(--bs-ink);overflow:hidden;background:var(--bs-blue-soft)}
.msg .av img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;display:block}
.bub{padding:12px 16px;border-radius:16px;font-size:15.5px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}
@media(min-width:720px){.bub{font-size:16px}}
.msg.ai .bub{margin-right:2%}
.msg.me .bub{margin-left:12%}
@media(max-width:520px){.msg .av{display:none}}
@media(min-width:720px){.msg.ai .bub{margin-right:20%}.msg.me .bub{margin-left:24%}}
.msg.ai .bub{background:var(--bs-paper);border:1.5px solid var(--bs-rule);border-bottom-left-radius:6px}
.msg.me .bub{background:var(--bs-blue);color:#fff;border-bottom-right-radius:6px}
.bub .who{font-family:var(--bs-font-display);font-weight:700;font-size:12px;letter-spacing:.8px;text-transform:uppercase;color:var(--bs-blue-deep);margin-bottom:4px}
.dots{display:inline-flex;gap:5px;align-items:center;padding:4px 0}
.dots i{width:7px;height:7px;border-radius:999px;background:var(--bs-ink-soft);opacity:.4;animation:allie-pulse 1.2s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.18s}.dots i:nth-child(3){animation-delay:.36s}
@keyframes allie-pulse{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:.9;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.dots i{animation:none;opacity:.5}}

.composer{border-top:2px solid var(--bs-ink);padding:12px;display:flex;align-items:flex-end;gap:10px;background:var(--bs-paper-card)}
@media(min-width:720px){.composer{padding:14px 18px}}
#input{flex:1;font-family:var(--bs-font-body);font-size:16px;color:var(--bs-ink);background:var(--bs-paper);border:1.5px solid var(--bs-rule);border-radius:14px;padding:12px 14px;min-height:48px;max-height:160px;resize:none;line-height:1.5}
#input:focus{outline:none;border-color:var(--bs-blue-deep);background:#fff}
#input:disabled{opacity:.6}
.round{width:48px;height:48px;flex:0 0 48px;border-radius:999px;cursor:pointer;display:flex;align-items:center;justify-content:center;border:2px solid var(--bs-ink);background:#fff;color:var(--bs-ink);box-shadow:3px 3px 0 var(--bs-ink);transition:transform .12s ease,box-shadow .12s ease}
.round:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--bs-ink)}
.round svg{width:20px;height:20px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.round.send{background:var(--bs-blue);color:#fff}
.round.mic.on{background:var(--bs-green);color:var(--bs-ink)}
.round:disabled{opacity:.5;cursor:default;box-shadow:none}
.hint{font-size:13px;color:var(--bs-ink-soft);padding:0 14px 12px;background:var(--bs-paper-card)}
@media(min-width:720px){.hint{padding:0 18px 14px}}

.next{margin-top:30px}
.next h2{font-size:22px;margin-bottom:12px}

/* the locked page: no valid private link */
body.locked .chatcard,body.locked .next,body.locked .voice,body.locked .prepfor{display:none}
.lockcard{margin-top:26px}
body:not(.locked) .lockcard{display:none}

[data-firm]:empty::before{content:"your firm"}
.netlify-form{position:absolute;left:-9999px;top:0;height:0;overflow:hidden}

/* the finish: a clear "All done" card with the next step (1 Oct 2026) */
.donecard{margin-top:22px;border-color:var(--bs-green-deep)}
.done-head{display:flex;gap:14px;align-items:center}
.done-head h3{margin:0}
.done-sub{margin:2px 0 0;color:var(--bs-ink-soft)}
.tick{width:46px;height:46px;flex:0 0 46px;border-radius:999px;background:var(--bs-green);border:2px solid var(--bs-ink);display:flex;align-items:center;justify-content:center}
.tick svg{width:24px;height:24px;stroke:var(--bs-ink);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.done-label{margin-top:18px;font-family:var(--bs-font-display);font-weight:700;font-size:12px;letter-spacing:.8px;text-transform:uppercase;color:var(--bs-blue-deep)}
.done-next{margin-top:6px;white-space:pre-wrap;font-size:16px;line-height:1.6}
.done-actions{margin-top:16px}
.done-btn{font-family:var(--bs-font-display);font-weight:700;font-size:15px;padding:11px 20px;border-radius:999px;border:2px solid var(--bs-ink);background:var(--bs-blue);color:#fff;box-shadow:3px 3px 0 var(--bs-ink);cursor:pointer}
.done-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--bs-ink)}
.done-note{margin-top:10px;font-size:13.5px;color:var(--bs-ink-soft)}
@media print{
  body.printing-done *{visibility:hidden}
  body.printing-done .donecard,body.printing-done .donecard *{visibility:visible}
  body.printing-done .donecard{position:absolute;left:0;top:0;right:0;box-shadow:none}
  body.printing-done .done-actions,body.printing-done .done-note{display:none}
}
