.demo-shell { max-width: 1180px; margin: 0 auto; padding: 0 28px 64px; }
.demo-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.demo-brand { color: var(--ink); padding: 0; }
.demo-header-actions { display: flex; align-items: center; gap: 10px; }
.demo-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.demo-hero { padding: 54px 0 34px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 38px; align-items: end; }
.demo-hero h1 { max-width: 820px; margin: 0 0 18px; font-family: "Newsreader", serif; font-size: clamp(36px, 5vw, 60px); line-height: .98; }
.demo-hero > div > p:last-child { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.safety-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.safety-card b { font-size: 12px; }
.safety-card ul { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 9px; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.tour { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.tour-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.tour-heading h2 { margin: 0 0 5px; font-family: "Newsreader", serif; font-size: 29px; }
.tour-heading p:last-child { margin: 0; color: var(--ink-soft); font-size: 11px; }
.progress-wrap { min-width: 170px; text-align: right; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.progress-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 20px; background: var(--paper); }
.progress-track i { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.tour-steps { margin: 24px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tour-step { min-width: 0; padding: 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); cursor: pointer; text-align: left; }
.tour-step span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: white; font-size: 9px; }
.tour-step b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.tour-step.active { border-color: #e6b9a4; background: var(--accent-soft); }
.tour-step.active span { background: var(--accent); color: white; }
.tour-panel { min-height: 410px; padding: 6px 0; }
.story-grid { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 18px; }
.story-grid > article, .story-grid > aside { padding: 24px; border: 1px solid var(--line); border-radius: 15px; }
.story-grid > article { background: #fbfcfa; }
.story-grid > aside { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: #f3f6f3; }
.story-grid h3 { margin: 2px 0 16px; font-family: "Newsreader", serif; font-size: 27px; }
.story-grid blockquote { margin: 22px 0; padding: 18px; border-left: 3px solid var(--accent); background: white; color: var(--ink); font-family: "Newsreader", serif; font-size: 20px; line-height: 1.45; }
.story-grid aside b { font-size: 13px; }
.story-grid aside p { color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.fact-row { padding: 11px 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 10px; }
.fact-row span { color: var(--ink-soft); }
.safe-pill { margin-top: 10px; padding: 6px 9px; border-radius: 20px; background: var(--success-soft); color: var(--success); font-size: 9px; font-weight: 700; }
.evidence-list { margin: 18px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.evidence-list li { padding: 14px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.evidence-list b { font-size: 10px; }
.evidence-list span { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.draft-card, .digest-card { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.draft-card p, .digest-card p, .digest-card li { font-size: 11px; line-height: 1.65; }
.draft-card label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 700; }
.draft-card textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfcfa; font: inherit; font-size: 11px; line-height: 1.65; }
.draft-card textarea:focus { outline: 2px solid #e6b9a4; outline-offset: 2px; }
.draft-card small { color: var(--ink-soft); font-size: 9px; }
.review-check { margin-top: 16px; display: flex; gap: 8px; align-items: center; font-size: 10px; }
.digest-card ul { margin: 12px 0 0; padding-left: 18px; }
.tour-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.sandbox-callout { margin-top: 24px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #d7e9de; border-radius: 18px; background: #f1f8f4; }
.sandbox-callout h2 { margin: 0 0 7px; font-family: "Newsreader", serif; font-size: 27px; }
.sandbox-callout p:last-child { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.sandbox-callout .primary-button { flex: 0 0 auto; }
@media (max-width: 780px) {
  .demo-shell { padding: 0 16px 42px; }
  .demo-header { align-items: flex-start; padding: 18px 0; }
  .demo-header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .demo-hero, .story-grid { grid-template-columns: 1fr; }
  .demo-hero { padding-top: 28px; }
  .tour { padding: 18px; }
  .tour-heading { align-items: flex-start; flex-direction: column; }
  .progress-wrap { width: 100%; text-align: left; }
  .tour-steps { grid-template-columns: repeat(2, 1fr); }
  .tour-panel, .story-grid { min-height: 0; }
  .sandbox-callout { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .prototype-banner { height: auto; min-height: 30px; padding: 7px 10px; text-align: center; }
  .demo-header { flex-direction: column; }
  .demo-header-actions { width: 100%; justify-content: flex-start; }
  .demo-hero h1 { font-size: 38px; }
  .tour-steps { grid-template-columns: 1fr; }
  .story-grid > article, .story-grid > aside { padding: 18px; }
  .story-grid blockquote { font-size: 18px; }
  .tour-actions { justify-content: stretch; }
  .tour-actions button { flex: 1; }
}
