/* MAC / Nirva Life. Typography, brass and charcoal materials are taken from
   frontend/src/index.css. Original brand artwork is used without alteration. */
:root {
  color-scheme: dark;
  --bg: #0d0c0b;
  --surface: #161514;
  --text: #f5f0e8;
  --muted: #b8ad9d;
  --quiet: #9c9283;
  --line: #2a2724;
  --brass: #d9bd8b;
  --brass-highlight: #e5c47c;
  --brass-midtone: #d9af6c;
  --brass-interactive-rest: linear-gradient(160deg, rgba(217,175,108,.12), rgba(180,139,63,.08) 50%, rgba(112,88,42,.10));
  --brass-interactive-hover: linear-gradient(160deg, rgba(229,196,124,.20), rgba(217,175,108,.15) 50%, rgba(180,139,63,.12));
  --brass-glow: 0 0 16px rgba(180,139,63,.20), 0 0 32px rgba(180,139,63,.08);
  --ease: cubic-bezier(.25,.46,.45,.94);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); overscroll-behavior: none; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button,input,textarea,select { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button { transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid var(--brass-highlight); outline-offset: 5px; }
h1,h2,h3,p,figure,blockquote { margin: 0; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; }
::selection { color: var(--text); background: #70582a; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 18px; z-index: 20; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }
#demo-root { max-width: 1600px; margin: auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 clamp(24px,5vw,80px); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 116px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 17px; justify-self: start; }
.brand-mark { width: 64px; height: 64px; object-fit: contain; }
.brand-type { display: flex; flex-direction: column; }
.wordmark { font: 500 43px/.95 var(--serif); letter-spacing: .055em; color: var(--brass); }
.brand-name { margin-top: 10px; font-size: 9px; letter-spacing: .23em; text-transform: uppercase; color: var(--muted); }
.brand-provenance { font: italic 16px var(--serif); color: var(--muted); }
.brand-provenance span { margin-left: 6px; font: 400 17px var(--serif); letter-spacing: .12em; color: var(--brass); }
.brand-provenance sup { font: 9px var(--sans); letter-spacing: 0; }
.masthead-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.demo-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.founder-link { font-size: 12px; color: var(--muted); min-height: 26px; }
.founder-link span { margin-left: 12px; color: var(--brass); }
.founder-link:hover { color: var(--brass-highlight); }
.demo-layout { flex: 1; min-width: 0; }
.chapters { display: flex; justify-content: center; gap: clamp(12px,3.1vw,48px); border-bottom: 1px solid var(--line); padding: 0 3px; overflow-x: auto; scrollbar-width: none; }
.chapters::-webkit-scrollbar { display: none; }
.chapters button { position: relative; flex: 0 0 auto; min-height: 63px; border: 0; background: transparent; color: var(--quiet); font-size: 12px; padding: 12px 0; white-space: nowrap; }
.chapters button::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: transparent; }
.chapters button:hover,.chapters button[aria-current] { color: var(--brass); }
.chapters button[aria-current]::after { background: linear-gradient(90deg, transparent, var(--brass-highlight), transparent); }
.stage { min-width: 0; }
.scene { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); align-items: center; gap: clamp(36px,6vw,92px); min-height: 660px; padding: 66px 0 76px; animation: arrive .5s var(--ease) both; }
.story { min-width: 0; }
.eyebrow { margin-bottom: 24px; font-size: 10px; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
h1 { font-size: clamp(43px,4.4vw,70px); line-height: 1.08; letter-spacing: -.028em; text-wrap: balance; }
h1:focus { outline: none; }
h1 em { font-weight: 400; color: var(--brass); }
.story-copy { margin-top: 28px; color: var(--muted); max-width: 450px; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 34px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 12px 25px; border-radius: 999px; border: 0; font: 500 16px/1.3 var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.button.primary { background: var(--brass-interactive-rest); color: var(--text); box-shadow: inset 0 0 0 1px rgba(180,139,63,.4), inset 0 1px 0 rgba(217,175,108,.15), 0 2px 8px rgba(0,0,0,.3); }
.button.primary:hover { background: var(--brass-interactive-hover); color: var(--brass-highlight); box-shadow: inset 0 0 0 1px rgba(217,175,108,.6), inset 0 1px 0 rgba(229,196,124,.2), var(--brass-glow), 0 4px 16px rgba(0,0,0,.4); transform: translateY(-1px); }
.button.secondary { padding-right: 0; padding-left: 0; border-radius: 0; background: transparent; color: var(--muted); font: 400 12px/1.5 var(--sans); letter-spacing: 0; text-transform: none; }
.button.secondary:hover { color: var(--brass-highlight); }
.button span { font: 400 17px var(--sans); }
.small-note { font-size: 11px; line-height: 1.7; color: var(--quiet); margin-top: 17px; }
.welcome-scene { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px 66px; padding-top: 55px; padding-bottom: 46px; }
.welcome-scene h1 { font-size: clamp(44px,4.4vw,72px); }
.brand-portrait { min-width: 0; align-self: center; }
.brand-portrait img { display: block; width: 100%; height: auto; box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); }
.brand-portrait figcaption { margin-top: 20px; text-align: center; font: italic 20px/1.4 var(--serif); color: var(--brass); }
.experience-notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px; border-top: 1px solid var(--line); padding-top: 30px; }
.experience-notes h2 { font-size: 29px; color: var(--brass); }
.experience-notes p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 9px; max-width: 290px; }
.experience-notes .text-button { margin-top: 9px; min-height: 32px; }
.text-button { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font: 400 12px/1.5 var(--sans); color: var(--brass); text-align: left; }
.text-button:hover { color: var(--brass-highlight); }
.how-to { margin-top: 35px; padding: 0 0 0 22px; border-left: 1px solid rgba(217,189,139,.5); max-width: 405px; }
.how-to-mark { display: none; }
.how-to strong { display: block; font-weight: 500; color: var(--text); font-size: 12px; }
.how-to p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.boundary-note { font-size: 11px; color: var(--quiet); line-height: 1.8; max-width: 390px; margin-top: 23px; }
.product-window { position: relative; min-width: 0; width: 100%; background: linear-gradient(145deg,#1e2024 0%,#16181b 45%,#101215 100%); border: 1px solid rgba(229,196,124,.3); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,225,155,.2), 0 24px 60px -26px rgba(0,0,0,.7); overflow: hidden; }
.workspace-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 28px; border-bottom: 1px solid rgba(217,189,139,.13); }
.workspace-brand { min-width: 0; display: flex; align-items: center; gap: 14px; }
.workspace-mark { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; }
.workspace-brand strong { display: block; font: 500 25px/1.15 var(--serif); overflow-wrap: anywhere; }
.workspace-brand div>span { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.sample-badge { color: var(--brass); font-size: 9px; letter-spacing: .17em; flex: 0 0 auto; }
.brief-form { padding: 26px 30px 24px; }
.brief-form>label { display: block; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.brief-form>label:not(:first-child) { margin-top: 21px; }
input,select,textarea { display: block; width: 100%; border: 1px solid #49423a; border-radius: 4px; padding: 12px 14px; min-height: 47px; background: #0d0c0b; color: var(--text); font-size: 14px; }
select { padding-right: 30px; }
.field-help { font-size: 10px; color: var(--quiet); margin-top: 9px; }
.brief-preview { margin: 26px 0; border-top: 1px solid rgba(217,189,139,.15); border-bottom: 1px solid rgba(217,189,139,.15); padding: 21px 0; }
.brief-lines { margin: 0; display: grid; gap: 17px; }
.brief-lines>div { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 18px; }
.brief-lines dt { color: var(--brass); font: italic 17px/1.5 var(--serif); }
.brief-lines dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.inline-feedback { color: var(--brass); font-size: 12px; margin-top: 15px; }
.inline-feedback:empty { display: none; }
.board-scene { grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: 55px; }
.board-scene h1 { font-size: clamp(42px,3.6vw,57px); }
.board { padding: 26px; }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.small-label { display: block; font: 400 9px/1.6 var(--sans); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.board-heading h2 { margin-top: 6px; font-size: 28px; line-height: 1.15; }
.count-pill { font-size: 11px; color: var(--brass); white-space: nowrap; }
.domain-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.domain { position: relative; display: flex; flex-direction: column; min-height: 123px; padding: 17px 14px 12px; text-align: left; background: linear-gradient(145deg,#1e2024,#16181b 45%,#101215); border: 1px solid rgba(229,196,124,.22); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,225,155,.12), 0 4px 8px rgba(0,0,0,.24); }
.domain-label { font: 500 19px/1.12 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.domain-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 7px; margin-top: auto; padding-top: 13px; }
.domain-status { font-size: 9px; color: var(--quiet); }
.domain-bottom strong { font: 400 22px/1 var(--serif); color: var(--brass); }
.domain.awaiting_review { border-color: rgba(229,196,124,.55); }
.domain.awaiting_review .domain-status { color: var(--brass-highlight); }
.domain.active .domain-status { color: #b8c4ce; }
.domain:hover,.domain.selected { border-color: var(--brass-highlight); box-shadow: inset 0 1px 0 rgba(255,225,155,.23),0 4px 14px rgba(0,0,0,.35); }
.domain.selected::before { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--brass-highlight); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; font-size: 10px; color: var(--muted); }
.legend>span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 100%; background: var(--brass); }
.legend-active::before { background: #b8c4ce !important; }
.legend-clear::before { background: #746e65 !important; }
.category-detail { margin-top: 25px; border-top: 1px solid rgba(217,189,139,.17); padding-top: 20px; }
.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.category-heading h3 { font-size: 23px; }
.category-heading>span { font-size: 10px; color: var(--quiet); white-space: nowrap; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 61px; padding: 14px 0; background: transparent; border: 0; border-top: 1px solid #313033; text-align: left; }
.task-row strong { display: block; font-size: 12px; font-weight: 400; color: var(--text); }
.task-row small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.task-row>span:last-child { font-size: 22px; color: var(--brass); }
.empty-state { color: var(--quiet); font-size: 12px; padding: 8px 0; }
.result-detail { border-left: 1px solid #777d85; margin: 6px 0 17px; padding: 8px 0 8px 18px; }
.result-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; }
.result-title>strong { font-weight: 500; }
.receipt { margin: 18px 0 0; display: grid; gap: 17px; }
.receipt>div { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 16px; }
.receipt dt { color: var(--muted); font-size: 10px; }
.receipt dd { margin: 0; color: var(--text); font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.quiet { color: var(--quiet); }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.status { color: var(--brass); font-size: 10px; font-weight: 400; }
.status.completed { color: #c8ced5; }
.messenger { align-self: center; }
.conversation { height: 290px; overflow-y: auto; padding: 28px; scrollbar-width: thin; scrollbar-color: #6a6255 transparent; }
.message { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 25px; }
.mac-avatar { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.message.mac-message>div { flex: 1; min-width: 0; }
.mac-message strong { font: 500 20px var(--serif); color: var(--brass); }
.mac-message strong span { font: 400 10px var(--sans); color: var(--quiet); }
.message p { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 8px; }
.user-message { display: block; margin: 15px 0 25px 52px; padding: 15px 20px; border-left: 1px solid rgba(217,189,139,.35); background: rgba(217,189,139,.035); }
.message-speaker { font-size: 10px; color: var(--brass); }
.user-message p { margin-top: 4px; color: var(--text); }
.handoff { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0 16px; margin-left: 52px; color: var(--brass); font-size: 10px; }
.handoff>span:last-child { color: var(--quiet); }
.composer { padding: 0 28px 20px; border-top: 1px solid rgba(217,189,139,.13); }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 4px 19px; padding: 14px 0 16px; }
.prompt-chips button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid rgba(217,189,139,.3); border-radius: 0; background: transparent; min-height: 35px; color: var(--brass); font-size: 10px; padding: 5px 0; }
.prompt-chips button:hover { color: var(--brass-highlight); }
#ask-form { position: relative; }
#prompt { resize: vertical; min-height: 91px; max-height: 200px; padding-right: 65px; line-height: 1.7; }
.send-button { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border: 1px solid rgba(229,196,124,.45); border-radius: 50%; color: var(--brass); background: var(--brass-interactive-rest); font-size: 21px; }
.composer>p { color: var(--quiet); font-size: 9px; margin-top: 10px; }
.review-content { padding: 28px; }
.review-content>select { margin: 10px 0 24px; font-size: 12px; }
.review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--quiet); }
.review-content h2 { font-size: 33px; line-height: 1.15; margin: 22px 0; }
.draft-body { background: #f5f0e8; color: #342f29; font: 400 18px/1.8 var(--serif); padding: 28px; box-shadow: 0 9px 25px -12px #000; }
.evidence-note { font-size: 10px; line-height: 1.8; color: var(--quiet); margin: 20px 0; }
.review-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 23px; }
.review-actions .button.primary { font-size: 14px; padding: 12px 20px; }
.success-note { display: flex; gap: 13px; font-size: 12px; color: #c8ced5; margin-top: 25px; }
.success-note>span { color: var(--brass); }
.perspective-switch { display: flex; gap: 28px; padding: 17px 26px 0; }
.perspective-switch button { min-height: 40px; padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--quiet); font-size: 12px; }
.perspective-switch button[aria-pressed=true] { color: var(--text); border-color: var(--brass); }
.shadow-board { --brass: #b8bfc7; --brass-highlight: #d8dde3; }
.shadow-board .domain { background: linear-gradient(145deg,#252a31,#1b1f25 45%,#13171c); border-color: rgba(168,176,184,.32); box-shadow: inset 0 1px 0 rgba(216,221,227,.16),0 4px 8px rgba(0,0,0,.3); }
.shadow-board .domain-label { color: #c8ced5; }
.shadow-board .domain-status { color: #a8b0b8; }
.shadow-board .domain.selected,.shadow-board .domain:hover { border-color: #b8bfc7; }
.shadow-quote { margin: 30px 0 0; color: #c8ced5; font: italic 27px/1.4 var(--serif); }
.shadow-quote cite { display: block; margin-top: 12px; font: 400 10px var(--sans); color: var(--quiet); }
.takeaway-content { padding: 32px; }
.demo-tally { display: flex; gap: 22px; align-items: center; padding: 15px 0 25px; border-bottom: 1px solid rgba(217,189,139,.16); }
.demo-tally+.demo-tally { padding-top: 25px; }
.demo-tally strong { font: 400 56px/1 var(--serif); color: var(--brass); min-width: 48px; }
.demo-tally>span { max-width: 250px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.takeaway-points { padding: 22px 0; font: 400 22px/1.8 var(--serif); color: var(--text); }
.storage-note { font-size: 10px; color: var(--quiet); }
.quiet-actions { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 20px; }
.tour-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 96px; border-top: 1px solid var(--line); padding: 18px 0 max(18px,env(safe-area-inset-bottom)); }
.footer-note>span { display: block; color: var(--muted); font: italic 18px var(--serif); }
.footer-note small { display: block; color: var(--quiet); font-size: 9px; margin-top: 5px; letter-spacing: .03em; }
.tour-controls { display: flex; align-items: center; gap: 26px; }
.icon-button { width: 44px; height: 44px; font-size: 20px; border: 0; background: transparent; color: var(--brass); }
#progress { min-width: 37px; font-size: 11px; color: var(--quiet); letter-spacing: .1em; }
.next-button { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-width: 100px; min-height: 44px; padding: 0; border: 0; background: transparent; font: 500 20px var(--serif); color: var(--brass); }
.next-button>span { font: 400 18px var(--sans); }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1550px) { .scene { min-height: 760px; } }
@media (max-width: 1100px) {
  #demo-root { padding: 0 32px; }
  .scene { gap: 36px; }
  .welcome-scene { gap: 36px; }
  .hero-actions { gap: 12px 20px; }
  .board-scene { grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr); }
  .board { padding: 20px; }
  .board-heading h2 { font-size: 25px; }
  .domain-grid { gap: 9px; }
  .domain { padding: 14px 11px 11px; }
  .domain-label { font-size: 17px; }
}
@media (max-width: 850px) {
  .masthead { min-height: 100px; grid-template-columns: 1fr 1fr; }
  .brand-provenance { display: none; }
  .chapters { justify-content: flex-start; gap: 30px; }
  .chapters button { min-height: 58px; }
  .scene,.board-scene { grid-template-columns: 1fr; padding: 45px 0; gap: 36px; min-height: auto; }
  .story { max-width: 610px; }
  h1,.welcome-scene h1,.board-scene h1 { font-size: 56px; }
  .story-copy { max-width: 560px; margin-top: 20px; }
  .eyebrow { margin-bottom: 18px; }
  .welcome-scene { grid-template-columns: 1fr 1fr; align-items: start; gap: 36px 30px; }
  .welcome-scene h1 { font-size: 43px; }
  .welcome-scene .story-copy { font-size: 13px; }
  .welcome-scene .hero-actions { margin-top: 25px; }
  .brand-portrait { align-self: center; }
  .brand-portrait figcaption { font-size: 17px; }
  .experience-notes { gap: 25px; }
  .experience-notes h2 { font-size: 26px; }
  .how-to { margin-top: 24px; }
  .domain { min-height: 122px; padding: 18px; }
  .domain-label { font-size: 22px; }
  .board { padding: 26px; }
  .conversation { height: 300px; }
}
@media (max-width: 600px) {
  #demo-root { padding: 0 22px; }
  .masthead { min-height: 98px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 45px; height: 45px; }
  .wordmark { font-size: 34px; }
  .brand-name { font-size: 7px; letter-spacing: .17em; margin-top: 7px; }
  .demo-label { font-size: 8px; letter-spacing: .06em; max-width: 140px; }
  .founder-link { font-size: 10px; }
  .founder-link span { margin-left: 5px; }
  .chapters { gap: 24px; margin-right: -22px; padding-right: 22px; }
  .chapters button { font-size: 11px; min-height: 52px; }
  .scene,.welcome-scene,.board-scene { display: grid; grid-template-columns: minmax(0,1fr); padding: 36px 0 38px; gap: 30px; }
  h1,.welcome-scene h1,.board-scene h1 { font-size: clamp(39px,10.8vw,58px); line-height: 1.06; }
  .eyebrow { font-size: 9px; letter-spacing: .18em; margin-bottom: 18px; }
  .story-copy,.welcome-scene .story-copy { font-size: 13px; line-height: 1.85; margin-top: 22px; }
  .hero-actions { gap: 10px 22px; margin-top: 27px; }
  .button { font-size: 14px; min-height: 48px; padding: 12px 21px; }
  .button.secondary { font-size: 11px; }
  .small-note { font-size: 10px; }
  .brand-portrait { margin-top: 5px; }
  .brand-portrait figcaption { font-size: 19px; margin-top: 15px; }
  .experience-notes { display: block; padding-top: 24px; }
  .experience-notes>div { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 0 12px; margin-bottom: 20px; }
  .experience-notes>div:last-child { margin-bottom: 0; }
  .experience-notes h2 { font-size: 24px; }
  .experience-notes p { font-size: 11px; margin-top: 2px; }
  .experience-notes .text-button { grid-column: 2; margin-top: 0; }
  .how-to { padding-left: 17px; }
  .how-to p { font-size: 11px; }
  .boundary-note { font-size: 10px; }
  .product-window { border-radius: 13px; }
  .workspace-head { padding: 17px 18px; gap: 10px; }
  .workspace-brand { gap: 10px; }
  .workspace-brand strong { font-size: 23px; }
  .workspace-brand div>span { font-size: 9px; }
  .workspace-mark { width: 39px; height: 39px; }
  .brief-form,.review-content,.takeaway-content { padding: 22px 20px; }
  input,textarea,select { font-size: 16px; }
  .brief-lines>div { grid-template-columns: 70px minmax(0,1fr); gap: 14px; }
  .brief-lines dt { font-size: 16px; }
  .brief-lines dd { font-size: 11px; }
  .board { padding: 20px 14px; }
  .board-heading { gap: 12px; margin-bottom: 20px; }
  .board-heading h2 { font-size: 26px; }
  .small-label { font-size: 8px; }
  .count-pill { font-size: 9px; }
  .domain-grid { gap: 8px; }
  .domain { min-height: 115px; padding: 13px 9px 10px; border-radius: 8px; }
  .domain-label { font-size: 16px; }
  .domain-status { font-size: 8px; }
  .domain-bottom { gap: 4px; }
  .domain-bottom strong { font-size: 19px; }
  .category-heading { gap: 10px; }
  .category-heading h3 { font-size: 22px; }
  .category-heading>span { font-size: 9px; }
  .task-row strong { font-size: 11px; }
  .receipt>div { grid-template-columns: 1fr; gap: 5px; }
  .receipt dt { color: var(--brass); }
  .conversation { padding: 22px 18px; height: 310px; }
  .mac-avatar { width: 31px; height: 31px; }
  .message { gap: 10px; }
  .message p { font-size: 12px; }
  .user-message { margin-left: 40px; padding: 13px 15px; }
  .handoff { margin-left: 40px; }
  .composer { padding: 0 18px 18px; }
  .prompt-chips { gap: 4px 14px; }
  .prompt-chips button { font-size: 10px; }
  .draft-body { padding: 23px; font-size: 18px; }
  .review-content h2 { font-size: 30px; }
  .review-actions { gap: 12px; }
  .review-actions .button.primary { font-size: 13px; padding: 12px 17px; gap: 12px; }
  .perspective-switch { padding-left: 19px; }
  .shadow-quote { font-size: 25px; }
  .tour-footer { gap: 12px; min-height: 94px; }
  .footer-note>span { font-size: 15px; }
  .footer-note small { font-size: 8px; }
  .tour-controls { gap: 10px; }
  .icon-button { width: 30px; }
  #progress { min-width: 33px; font-size: 10px; }
  .next-button { min-width: 65px; gap: 16px; font-size: 19px; }
}
@media (max-width: 360px) {
  #demo-root { padding: 0 16px; }
  .chapters { margin-right: -16px; padding-right: 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .masthead-actions .demo-label { max-width: 90px; text-align: right; }
  .hero-actions { gap: 8px; }
  .experience-notes>div { grid-template-columns: 118px minmax(0,1fr); }
  .experience-notes h2 { font-size: 22px; }
  .domain-grid { gap: 6px; }
  .domain { padding: 11px 7px; }
  .domain-label { font-size: 15px; }
  .domain-status { font-size: 7px; }
  .board { padding: 18px 11px; }
  .count-pill { white-space: normal; text-align: right; }
  .tour-controls { gap: 7px; }
  .footer-note>span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }

/* Existing-AI context is the first step of the public onboarding example. */
.context-scene { align-items: start; }
.context-scene .story { padding-top: 36px; }
.context-intro { padding: 20px 30px 0; }
.context-instructions summary,.context-editor summary,.attached-context summary { cursor: pointer; color: var(--brass); font-size: 12px; min-height: 36px; padding: 7px 0; }
.context-instructions>p,.attached-context>p { margin: 10px 0 15px; font-size: 12px; line-height: 1.8; color: var(--muted); }
#context-request { font-size: 12px; line-height: 1.65; }
.context-editor { margin-bottom: 24px; }
.context-editor label { display: block; margin: 13px 0 10px; color: var(--muted); font-size: 12px; }
#business-context { min-height: 185px; max-height: 450px; resize: vertical; font-size: 13px; line-height: 1.8; }
.copy-feedback { color: var(--brass); font-size: 11px; }
.copy-feedback:empty { display: none; }
.context-scene .brief-form { padding-top: 12px; }
.context-scene .brief-form>.button.primary { margin-top: 22px; }
.context-scene .brief-preview+.button.primary { margin-top: 0; }
.attached-context { border-top: 1px solid rgba(217,189,139,.2); padding: 8px 0 12px; }
.receipt details summary { color: var(--brass); cursor: pointer; }
.receipt details p { margin-top: 12px; }
@media (max-width: 600px) { .context-scene .story { padding-top: 0; } .context-intro { padding: 18px 20px 0; } #business-context,#context-request { font-size: 16px; } .context-scene .button.primary { font-size: 13px; } }
