/* Small, self-contained previews inside the product window. */
.demo-window{container-type:inline-size}
#demo-panel{overflow-wrap:anywhere}
#demo-panel h4{margin:0;font-weight:650}
.demo-label{display:flex;align-items:center;gap:6px;font-size:9px;line-height:1.6;color:#909584;margin-bottom:18px}
.demo-dot{width:5px;height:5px;border-radius:50%;background:#91b97d;flex:none}
.demo-photo-grid{display:grid;grid-template-columns:1.13fr 1fr;grid-template-rows:96px 96px;gap:8px;height:200px}
.demo-photo{position:relative;min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:8px;background:#e8eedf;isolation:isolate}
.demo-photo-main{grid-row:span 2;transform:rotate(-2deg);margin:1px 3px 1px 0}
.demo-photo img{width:100%;height:100%;max-height:200px;object-fit:cover;transition:transform .4s}
.demo-photo:hover img{transform:scale(1.05)}
.demo-photo:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#1a251e70);z-index:0}
.demo-photo figcaption{position:absolute;z-index:1;left:10px;right:7px;bottom:9px;color:white;font-size:9px;line-height:1.4;text-shadow:0 1px 3px #17221950}
.demo-photo-main figcaption{font-size:12px;font-weight:600;bottom:13px;left:13px;max-width:115px}
.demo-caption{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:16px;font-size:10px;color:#6e7765;line-height:1.65}
.demo-caption>span:first-child{font-size:16px}
.demo-caption p{flex:1;min-width:120px}
.demo-photo-count{font-size:8px;color:#8f9786;border-radius:4px;background:#f4f6ef;padding:3px 6px;margin-left:24px}
.demo-conversation{display:flex;flex-direction:column;gap:16px}
.demo-user-message{max-width:87%;align-self:flex-end;background:#ecf5e5;border:1px solid #dcebd2;border-radius:13px 13px 3px 13px;padding:12px 14px;font-size:11px;line-height:1.8;color:#476044}
.demo-agent-message{display:flex;align-items:flex-start;gap:10px;min-width:0}
.demo-agent-message>div{flex:1;min-width:0}
.demo-avatar{width:29px;height:29px;border-radius:8px;flex:none}
.demo-agent-name{display:block;font-size:8px;letter-spacing:.8px;color:#919785;margin:0 0 6px}
.demo-agent-message h4{font-size:13px;line-height:1.7;color:#3a4231}
.demo-agent-message p{font-size:10px;line-height:1.8;color:#959b8c;margin-top:4px}
.demo-idea-card{margin-left:39px;background:#f7f8f1;border:1px solid #e9edde;border-radius:10px;padding:13px 15px}
.demo-idea-card>span{font-size:8px;letter-spacing:.8px;color:#789068;display:block;margin-bottom:8px}
.demo-idea-card h4{font-size:12px;line-height:1.7}
.demo-idea-card p{font-size:9px;line-height:1.8;color:#979e89;margin-top:6px}
.demo-voice-options{display:grid;gap:8px}
.demo-voice-card{display:flex;align-items:center;gap:11px;padding:10px 13px;text-align:left;font-size:11px;font-weight:500;border:1px solid #e9eade;background:#fcfcf9;border-radius:10px;min-height:43px;transition:background .2s,border-color .2s,transform .2s}
.demo-voice-card:hover{background:#f0f7ea;border-color:#c9dec0;transform:translateX(2px)}
.demo-voice-card.is-selected{background:#e8f3df;border-color:#91bc87;color:#2d6b41}
.demo-voice-emoji{font-size:19px;line-height:1;flex:none}
.demo-voice-check{margin-left:auto;color:#c4cab9;font-size:13px}
.demo-voice-card.is-selected .demo-voice-check{background:var(--red);color:white;font-size:9px;border-radius:50%;width:15px;height:15px;display:grid;place-items:center}
.demo-voice-response{font-size:10px;line-height:1.8;color:#7f8973;border-left:2px solid #bed3ae;padding-left:11px;min-height:36px}
#demo-panel[data-active-step="chat"]{min-height:360px}
.demo-note{display:grid;grid-template-columns:minmax(85px,.77fr) minmax(0,1fr);gap:19px;margin-top:23px;align-items:start}
.demo-note-cover{position:relative;overflow:hidden;border-radius:9px;min-width:0;background:#e7efdc}
.demo-note-cover img{height:200px;max-height:200px;width:100%;object-fit:cover;border-radius:0}
.demo-note-cover:after{content:"";position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#26251f99)}
.demo-note-cover>span{position:absolute;z-index:1;bottom:14px;left:13px;right:10px;color:white;font-size:16px;font-weight:650;line-height:1.6;max-width:90px}
.demo-note-copy{min-width:0}
.demo-note-kicker{font-size:8px;letter-spacing:.4px;color:#9da18e;display:block;margin:1px 0 10px}
.demo-note-copy h4{font-size:14px;line-height:1.65;margin:0 0 11px!important;letter-spacing:-.2px}
.demo-note-copy p{font-size:10px;line-height:1.9;color:#858d79;margin:0}
.demo-note-copy .demo-note-tags{font-size:9px;color:#4a8051;margin-top:12px;line-height:1.8}
.demo-note-link{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid #edf0e6;padding-top:12px;margin-top:17px;font-size:9px;line-height:1.7;color:#5b6650;font-weight:600}
.demo-note-link:hover{color:var(--red)}
.demo-note-link>span{font-size:18px;font-weight:400;flex:none}
@container(max-width:330px){
  .demo-label{font-size:8px;gap:5px;margin-bottom:15px}
  .demo-photo-grid{grid-template-rows:83px 83px;height:174px;gap:8px}
  .demo-photo-main figcaption{font-size:11px;left:10px;bottom:10px}
  .demo-photo figcaption{font-size:8px;left:8px;bottom:8px}
  .demo-caption{font-size:9px;gap:6px}
  .demo-photo-count{margin-left:22px}
  .demo-user-message{font-size:10px;max-width:95%;padding:10px 12px}
  .demo-agent-message{gap:8px}
  .demo-avatar{width:25px;height:25px}
  .demo-agent-message h4{font-size:12px}
  .demo-agent-message p{font-size:9px}
  .demo-idea-card{margin-left:0;padding:12px}
  .demo-idea-card h4{font-size:11px}
  .demo-voice-card{padding:9px 10px;gap:9px;font-size:10px}
  .demo-voice-emoji{font-size:17px}
  .demo-voice-response{font-size:9px}
  .demo-note{grid-template-columns:minmax(66px,.65fr) minmax(0,1fr);gap:12px;margin-top:18px}
  .demo-note-cover img{width:100%;height:160px}
  .demo-note-cover>span{left:9px;right:8px;bottom:10px;font-size:12px}
  .demo-note-copy h4{font-size:12px}
  .demo-note-copy p{font-size:9px;line-height:1.75}
  .demo-note-kicker{font-size:7px}
  .demo-note-copy .demo-note-tags{font-size:8px;margin-top:8px}
  .demo-note-link{font-size:8px;gap:4px;margin-top:12px;padding-top:10px}
}
@media(prefers-reduced-motion:reduce){.demo-photo img,.demo-voice-card{transition:none}.demo-voice-card:hover{transform:none}}

/* One real graduation story connects the four demo steps. */
.demo-case-summary{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0;color:#53755b;font-size:10px}
.demo-case-summary span{padding:7px 10px;border:1px solid #dce8d6;border-radius:20px;background:#f8fcf5}
.demo-graduation-photos{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;height:auto;gap:10px;align-items:start}
.demo-graduation-photos .demo-photo{grid-row:auto;transform:none;margin:0;aspect-ratio:2/3;background:#eef4e9}
.demo-graduation-photos .demo-photo img{object-fit:contain;max-height:none}
.demo-graduation-photos .demo-photo figcaption{font-size:9px;left:8px;right:6px;bottom:10px;font-weight:500}
.demo-note-cover-real{display:block;width:100%;padding:0;border:0;cursor:pointer;aspect-ratio:3/4}
.demo-note-cover-real img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:3/4;object-fit:contain}
.demo-note-cover-real:after{display:none}
.demo-note-copy button.demo-note-link{background:none;width:100%;text-align:left;border:0;border-top:1px solid #e0e9dc;cursor:pointer;padding-bottom:0;min-height:44px}
.demo-note-cover-real:focus-visible,.demo-note-copy button.demo-note-link:focus-visible{outline:2px solid #287e66;outline-offset:3px}
@container(max-width:330px){
  .demo-graduation-photos{grid-template-rows:auto;height:auto;gap:6px}
  .demo-graduation-photos .demo-photo figcaption{font-size:7px;left:5px;bottom:6px}
  .demo-graduation-note{grid-template-columns:minmax(0,1fr);gap:16px}
  .demo-note-cover-real{max-width:185px;margin:0 auto}
  .demo-note-cover-real img{height:auto;max-height:none}
  .demo-graduation-note .demo-note-copy h4{font-size:14px}
  .demo-graduation-note .demo-note-copy p{font-size:11px}
  .demo-graduation-note .demo-note-kicker{font-size:9px}
  .demo-graduation-note .demo-note-copy .demo-note-tags{font-size:10px}
  .demo-graduation-note .demo-note-link{font-size:11px}
}
