/* URL demo page (public/demo.html). Uses the DESIGN.md tokens from pw-tokens.css. */
.demo-wrap { max-width:760px; }
.demo-form { margin-top:var(--pw-heading-gap, 48px); display:grid; gap:.75rem; }
.demo-form label[for], .demo-form legend { font-weight:600; color:var(--pw-navy-950); }
.demo-form input[type=text] { font:inherit; min-height:48px; padding:.7rem .9rem; border:1px solid var(--pw-control-border); border-radius:var(--pw-radius-control); }
.demo-form input[type=text]:focus-visible, .demo-choice input:focus-visible { outline:3px solid var(--pw-focus-light); outline-offset:2px; }
.demo-form fieldset { border:0; padding:0; margin:.5rem 0 0; display:grid; gap:.4rem; }
.demo-choice { display:flex; gap:.6rem; align-items:center; min-height:44px; color:var(--pw-slate); }
.demo-choice input { width:20px; height:20px; accent-color:var(--pw-blue-600); }
.demo-error { color:var(--pw-danger); min-height:1.2em; margin:0; font-weight:500; }
#demoProgress, #demoResult { margin-top:var(--pw-heading-gap, 48px); }
.demo-label { background:var(--pw-mist); border-left:4px solid var(--pw-navy-800); padding:1rem 1.25rem; border-radius:var(--pw-radius-control); color:var(--pw-navy-950); }
.demo-group { margin-top:2rem; }
.demo-group h3 { font-size:1rem; margin:0 0 .75rem; }
.demo-fact { list-style:none; padding:.75rem 0; margin:0; border-top:1px solid var(--pw-border); }
.demo-fact:first-child { border-top:0; }
.demo-fact p { margin:0 0 .25rem; }
.demo-source { font-size:.8125rem; color:var(--pw-slate); word-break:break-all; }
.demo-source a { color:var(--pw-blue-600); }
.demo-facts { padding:0; margin:0; }

/* "Put it on my real website" under the notice (a preview without a homepage picture), and the "choose your plan" panel it opens (owner-approved
   mock-up: a white card with one bordered card per plan, a teal note on what carries over, fine print).
   The plans' names, prices and limits are filled in by demo.js from the server, never written here. */
.demo-go { margin:1.25rem 0 2rem; }
.choose { margin:0 0 2.5rem; scroll-margin-top:1rem; }
.choose-box { padding:1.5rem; box-shadow:0 1px 2px rgba(7,29,58,.04), 0 14px 34px rgba(7,29,58,.08); }
.choose h2 { font:700 1.35rem/1.2 var(--pw-font-display); margin:0 0 .25rem; overflow-wrap:anywhere; }
.choose h2:focus { outline:none; }   /* focus is moved here by the button so a screen reader starts at the title; it is not a control */
.choose-lede { margin:0 0 1.1rem; color:var(--pw-slate); }
/* Two plans side by side where there is room, one above the other on a phone. */
.choose-plans { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap:1rem; }
.choose-plan { display:flex; flex-direction:column; gap:.4rem; min-width:0; padding:1.1rem; border:1px solid var(--pw-border); border-radius:14px; }
.choose-plan p { margin:0; color:var(--pw-slate); font-size:.9375rem; }
.choose-plan .pw-card-label { font-size:.8125rem; letter-spacing:.04em; color:var(--pw-blue-600); }
.choose-plan h3 { margin:0; font:700 1.1rem/1.3 var(--pw-font-ui); }
.choose-plan .pw-price { font-size:.95rem; font-weight:500; }
.choose-plan .pw-price b { font-size:1.9rem; }
.choose-plan .pw-btn { margin-top:.6rem; align-self:flex-start; }
.choose-keeps { margin:1.1rem 0 0; padding:.8rem 1rem; background:#E6F6F7; border:1px solid #b3e3e7; border-radius:10px; font-size:.9375rem; color:var(--pw-navy-950); overflow-wrap:anywhere; }
.choose-fine { margin:.75rem 0 0; font-size:.875rem; color:var(--pw-slate); }
.choose-fine a { color:var(--pw-blue-600); }
@media (max-width:640px) { .choose-box { padding:1.1rem; } }

/* Preview assistant (text and voice). */
.demo-assistant { margin-top:var(--pw-heading-gap, 48px); display:grid; grid-template-columns:minmax(0, 1fr); gap:1rem; }
.demo-assistant h2 { overflow-wrap:anywhere; }
.demo-assistant h2 { margin:0; }
.demo-log { list-style:none; padding:0; margin:0; display:grid; gap:.6rem; max-height:420px; overflow-y:auto; }
.demo-log:empty { display:none; }
.demo-turn { padding:.7rem .9rem; border-radius:var(--pw-radius-control); max-width:90%; }
.demo-turn.user { background:var(--pw-mist); justify-self:end; }
.demo-turn.assistant { border:1px solid var(--pw-border); }
.demo-turn.notice { border-left:4px solid var(--pw-danger); background:#fff; color:var(--pw-navy-950); font-weight:500; }
.demo-turn .demo-who { display:block; font-size:.75rem; font-weight:600; color:var(--pw-slate); margin-bottom:.2rem; }
.demo-turn p { margin:0; }
.demo-basis { display:block; margin-top:.35rem; font-size:.8125rem; color:var(--pw-slate); word-break:break-word; }
.demo-basis a { color:var(--pw-blue-600); }
.demo-chat { display:grid; grid-template-columns:minmax(0, 1fr); gap:.4rem; }
.demo-chat label { font-weight:600; color:var(--pw-navy-950); }
.demo-chat-row { display:flex; gap:.5rem; }
.demo-chat-row input { flex:1; min-width:0; font:inherit; min-height:48px; padding:.7rem .9rem; border:1px solid var(--pw-control-border); border-radius:var(--pw-radius-control); }
.demo-chat-row input:focus-visible, .demo-voice input:focus-visible { outline:3px solid var(--pw-focus-light); outline-offset:2px; }
.demo-lead { background:var(--pw-mist); border-left:4px solid var(--pw-navy-800); padding:.8rem 1rem; border-radius:var(--pw-radius-control); color:var(--pw-navy-950); }
.demo-lead-see { all:unset; display:inline; cursor:pointer; color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.demo-lead-see:focus-visible { outline:3px solid var(--pw-focus-light); outline-offset:2px; border-radius:4px; }
/* The request card: what the preview assistant saved, as the team would receive it (owner mock-up
   preview-request-card.html). Under the assistant; with a homepage picture, under the picture (demo-shot.css). */
.req-wrap { margin:1.5rem 0 0; scroll-margin-top:1rem; }
.req { border:1px solid var(--pw-border); border-radius:var(--pw-radius-card); overflow:hidden; background:var(--pw-white); color:var(--pw-navy-950); box-shadow:0 1px 2px rgba(7,29,58,.04), 0 10px 28px rgba(7,29,58,.07); }
.req-top { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .6rem; padding:.8rem 1.1rem; background:var(--pw-navy-950); color:var(--pw-white); }
.req-top h2 { margin:0; font:700 1rem/1.25 var(--pw-font-ui); color:var(--pw-white); }
.req-top h2:focus { outline:none; }   /* focus is moved here by the button so a screen reader starts at the title; it is not a control */
.req-tag { font-size:.75rem; font-weight:700; line-height:1.4; padding:.15rem .6rem; border-radius:999px; white-space:nowrap; }
.req-sim { background:#E6F6F7; color:#00626A; }
.req-urgent { background:#FDECEA; color:var(--pw-danger); }
.req-when { margin-left:auto; color:var(--pw-on-dark-muted); font-size:.8125rem; }
.req-body { padding:1rem 1.1rem .25rem; }
.req-summary { margin:0 0 .75rem; font-weight:600; color:var(--pw-navy-950); overflow-wrap:anywhere; }
.req dl { display:grid; grid-template-columns:minmax(0, 9.5rem) minmax(0, 1fr); gap:.35rem .75rem; margin:0 0 .9rem; font-size:.9375rem; }
.req dt { color:var(--pw-slate); }
.req dd { margin:0; font-weight:500; overflow-wrap:anywhere; }
.req-how { border-top:1px solid var(--pw-border); background:#F7FAFC; padding:.8rem 1.1rem; font-size:.875rem; color:var(--pw-slate); }
.req-how strong { color:var(--pw-navy-950); }
.req-how ul { margin:.35rem 0 .5rem; padding-left:1.1rem; }
.req-how p { margin:0; }
/* "Test its limits" prompts, "What to watch for" and the Knowledge gaps hint (URL demo and /hvac.html). */
.demo-limits { display:grid; gap:.6rem; border:1px solid var(--pw-border); border-radius:var(--pw-radius-control); padding:1rem; }
.demo-limits :is(h3, h4) { margin:0; font-size:1rem; }
.demo-limits p { margin:0; }
.demo-limit-list { display:grid; gap:.5rem; }
.demo-limit { text-align:left; white-space:normal; height:auto; justify-content:flex-start; }
.demo-limit-name { display:block; font-weight:600; }
.demo-watch { margin:0; padding-left:1.1rem; display:grid; gap:.4rem; color:var(--pw-slate); }
.demo-watch b { color:var(--pw-navy-950); }
.demo-gap { display:block; margin-top:.35rem; font-size:.8125rem; color:var(--pw-navy-950); border-left:3px solid var(--pw-warning); padding-left:.5rem; }
.demo-voice { border-top:1px solid var(--pw-border); padding-top:1rem; display:grid; gap:.6rem; }
.demo-voice h3 { margin:0; font-size:1rem; }
.demo-voice p { margin:0; }
[hidden] { display:none !important; }   /* component display rules (grid, flex) must never override the hidden attribute */
