/* A guided client-agent journey in the existing Golubev visual language. */
.demo-hero { display:grid; grid-template-columns:1.15fr 1fr; gap:5%; align-items:center; padding-block:2rem 3.5rem; }
.demo-hero-copy { min-width:0; }
.demo-hero .expert-breadcrumb { margin-bottom:1.8rem; }
.demo-hero .eyebrow { margin-bottom:1.25rem; }
.demo-hero h1 { font-size:clamp(2.8rem,4.5vw,4.25rem); line-height:1.08; letter-spacing:-.055em; }
.demo-hero h1 em { color:#a23e19; font-style:normal; }
.demo-lead { max-width:650px; margin-top:1.5rem; font-size:1.2rem; line-height:1.8; color:var(--muted); }
.demo-hero-actions,.demo-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.4rem; margin-top:1.65rem; }
.demo-hero-actions .button,.demo-actions .button,.demo-pagination .button { font:inherit; font-weight:600; cursor:pointer; min-height:48px; }
.demo-hero-caption { color:var(--muted); font-size:.875rem; line-height:1.75; margin-top:1.1rem; max-width:560px; }
.demo-hero-art { min-width:0; margin:2rem 0 0; }
.demo-hero-art img { display:block; width:100%; height:auto; max-height:290px; object-fit:contain; }
.demo-hero-art figcaption { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; border-top:1px solid var(--line); padding-top:1rem; margin-top:1rem; text-align:center; font-size:.875rem; line-height:1.6; color:var(--muted); }
.demo-client { display:grid; grid-template-columns:1fr 1.05fr; gap:8%; border-block:1px solid var(--line); padding-block:2.75rem; }
.demo-client h2 { font-size:clamp(2rem,3vw,2.75rem); line-height:1.12; margin-block:1rem; }
.demo-client-story>p:not(.eyebrow) { font-size:1rem; line-height:1.8; color:var(--muted); max-width:530px; }
.demo-client-quote { margin:0 0 1.75rem; padding:0 0 0 1.3rem; border-left:2px solid var(--orange); }
.demo-client-quote>p { font-size:1.35rem; line-height:1.6; color:var(--ink); }
.demo-client-quote>footer { font-size:.875rem; line-height:1.7; color:var(--muted); margin-top:.75rem; }
.demo-client-facts dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:0; padding-top:1.2rem; border-top:1px solid var(--line); }
.demo-client-facts dt { font-size:.875rem; color:var(--muted); line-height:1.6; }
.demo-client-facts dd { font-size:1.2rem; font-weight:500; line-height:1.5; margin:.35rem 0 0; }
.demo-fact-note { font-size:.875rem; line-height:1.75; color:var(--muted); margin-top:1rem; }
.demo-overview { padding-block:3.5rem 4rem; }
.demo-overview-heading { display:grid; grid-template-columns:1fr 1fr; gap:1rem 8%; align-items:end; }
.demo-overview-heading .eyebrow { grid-column:1/-1; }
.demo-overview-heading h2 { font-size:clamp(2rem,3.3vw,3rem); line-height:1.15; }
.demo-overview-heading>p:not(.eyebrow) { font-size:1.05rem; line-height:1.8; color:var(--muted); max-width:520px; }
.demo-overview>ol { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2.5%; list-style:none; padding:0; margin:2.25rem 0; }
.demo-overview li { border-top:1px solid var(--line); padding-top:1.2rem; min-width:0; }
.demo-overview-symbol { display:block; font-size:2rem; line-height:1.3; color:#a23e19; margin-bottom:.9rem; }
.demo-overview h3 { font-size:1.15rem; line-height:1.4; }
.demo-overview li p { font-size:.9375rem; line-height:1.75; color:var(--muted); margin-top:.65rem; }
.demo-loading { font-size:.875rem; line-height:1.75; color:var(--muted); max-width:700px; }
.demo-workspace { display:grid; grid-template-columns:225px minmax(0,1fr); gap:6%; align-items:start; padding-block:3rem 4rem; scroll-margin-top:1.5rem; }
.demo-workspace[hidden],.demo-overview[hidden],.demo-loading[hidden],.demo-hero-actions [hidden] { display:none; }
.demo-rail { position:sticky; top:1.5rem; }
.demo-rail>.eyebrow { font-size:.8125rem; color:var(--muted); }
.demo-stages { padding:0; margin:1rem 0 1.75rem; list-style:none; }
.demo-stages li { border-bottom:1px solid var(--line); }
.demo-stages button { display:flex; align-items:center; gap:1rem; width:100%; min-height:84px; padding:1rem 0; text-align:left; font:inherit; background:none; border:0; color:var(--ink); cursor:pointer; }
.demo-stage-symbol { flex:0 0 33px; text-align:center; color:#77766d; font-size:1.9rem; line-height:1; }
.demo-stages strong { display:block; font-size:1rem; font-weight:600; line-height:1.5; }
.demo-stages small { display:block; font-size:.875rem; line-height:1.5; color:var(--muted); margin-top:.1rem; }
.demo-stages button[aria-current="step"] { color:#a23e19; }
.demo-stages button[aria-current="step"] .demo-stage-symbol,.demo-stages button.is-complete .demo-stage-symbol { color:#b8471e; }
.demo-stages button:disabled { cursor:default; }
.demo-stages button:disabled strong { color:#6e6c65; font-weight:400; }
.demo-stages button:disabled .demo-stage-symbol { color:#aaa69a; }
.demo-stages button:not(:disabled):hover strong { text-decoration:underline; text-underline-offset:4px; }
.demo-rail-note { font-size:.875rem; line-height:1.8; color:var(--muted); }
.demo-rail-note strong { display:block; font-weight:500; color:var(--ink); }
.demo-rail-note span { display:block; }
.demo-rail-note p { margin-top:.8rem; }
.demo-text-button { border:0; background:none; color:var(--ink); padding:.5rem 0; min-height:44px; font:inherit; font-size:.875rem; line-height:1.6; text-decoration:underline; text-underline-offset:4px; cursor:pointer; text-align:left; }
.demo-rail>.demo-text-button { margin-top:1rem; }
.demo-main,.demo-panel { min-width:0; }
.demo-panel { border-top:2px solid var(--ink); padding-top:1.75rem; scroll-margin-top:1.5rem; }
.demo-panel:focus { outline:none; }
.demo-panel-heading { margin-bottom:1.75rem; }
.demo-panel-heading h2 { font-size:clamp(2rem,3.4vw,3rem); line-height:1.12; margin-top:.9rem; letter-spacing:-.045em; }
.demo-panel-intro { font-size:1.1rem; line-height:1.8; color:var(--muted); margin-block:1rem 1.6rem; max-width:760px; }
#demo-stage-content>p:not([class]) { font-size:1rem; line-height:1.8; margin-block:1rem; color:var(--muted); }
#demo-stage-content>h3 { font-size:1.35rem; line-height:1.4; margin-block:1.75rem .75rem; }
.demo-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-block:1.5rem; }
.demo-card { min-width:0; border:1px solid var(--line); background:var(--soft); padding:1.25rem; }
.demo-card h3 { font-size:1.25rem; line-height:1.35; margin-bottom:.9rem; }
.demo-card p { font-size:.9375rem; line-height:1.8; color:var(--muted); margin-top:.75rem; }
.demo-card strong { color:var(--ink); }
.demo-card .demo-price { display:block; font-size:1.4rem; font-weight:500; color:var(--ink); line-height:1.4; margin-block:1rem; }
.demo-card a { font-size:.9375rem; line-height:1.8; text-underline-offset:4px; }
.demo-note { border-left:2px solid #b8471e; background:#f6eee1; padding:1rem 1.25rem; margin-block:1.5rem; font-size:.9375rem; line-height:1.8; color:#5f4631; }
.demo-note p+p { margin-top:.75rem; }
.demo-note-text { font-size:.9375rem; line-height:1.8; color:var(--muted); margin-block:1rem; }
.demo-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; border-block:1px solid var(--line); padding-block:1.5rem; margin-block:1.5rem; }
.demo-metric { min-width:0; }
.demo-metric strong { display:block; font-size:clamp(1.7rem,2.5vw,2.25rem); font-weight:500; line-height:1.3; letter-spacing:-.04em; overflow-wrap:anywhere; }
.demo-metric span { display:block; color:var(--muted); font-size:.875rem; line-height:1.6; margin-top:.55rem; }
.demo-table-wrap { width:100%; overflow-x:auto; border:1px solid var(--line); margin-block:1.5rem; overscroll-behavior-inline:contain; }
.demo-table-wrap table { width:100%; border-collapse:collapse; font-size:.9375rem; line-height:1.65; text-align:left; }
.demo-table-wrap th,.demo-table-wrap td { padding:.9rem 1rem; border-bottom:1px solid var(--line); vertical-align:top; }
.demo-table-wrap th { font-weight:500; background:var(--soft); color:var(--ink); }
.demo-table-wrap td { color:var(--muted); }
.demo-table-wrap tr.is-selected td,.demo-table-wrap tr.is-selected th { background:#f6eee1; color:var(--ink); }
.demo-table-wrap tr:last-child td,.demo-table-wrap tr:last-child th { border-bottom:0; }
.demo-table-wrap caption { text-align:left; padding:1rem; font-weight:500; color:var(--ink); }
.demo-scenario-controls { display:flex; flex-wrap:wrap; gap:.65rem; margin-block:1.5rem; }
.demo-scenario-controls button { padding:.7rem 1rem; min-height:44px; border:1px solid #8c887c; border-radius:3px; background:transparent; color:var(--ink); font:inherit; font-size:.9375rem; line-height:1.5; cursor:pointer; }
.demo-scenario-controls button[aria-pressed="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.demo-scenario-controls button:hover { border-color:#a23e19; }
.demo-disclosure { margin-block:1.5rem; border-block:1px solid var(--line); }
.demo-disclosure summary { padding:1.15rem 0; font-size:1rem; font-weight:500; line-height:1.6; cursor:pointer; }
.demo-disclosure>div { padding-bottom:1.25rem; }
.demo-disclosure p { font-size:.9375rem; line-height:1.8; color:var(--muted); margin-top:.75rem; }
.demo-disclosure ul,.demo-disclosure ol { padding-left:1.3rem; font-size:.9375rem; line-height:1.8; color:var(--muted); }
.demo-tool-output { margin-block:1rem; border:1px solid var(--line); padding:1.1rem; background:#eeece5; color:var(--ink); font: .875rem/1.8 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; overflow-wrap:anywhere; white-space:pre-wrap; }
.demo-tool-output pre { margin:0; font:inherit; overflow-wrap:anywhere; white-space:pre-wrap; }
.demo-source-links { display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; margin-block:1rem; }
.demo-source-links a { font-size:.9375rem; line-height:1.8; text-decoration:underline; text-underline-offset:4px; }
.demo-approval { margin-block:1.5rem; border:1px solid #b49c7e; padding:1.25rem 1.4rem; background:#faf0e2; }
.demo-approval strong { display:block; font-size:1.05rem; color:#713e1d; font-weight:500; line-height:1.6; }
.demo-approval p { color:#644c36; font-size:.9375rem; line-height:1.8; margin-top:.5rem; }
.demo-checklist { list-style:none; padding:0; margin-block:1rem 1.5rem; }
.demo-checklist li { position:relative; padding:.6rem 0 .6rem 1.65rem; border-bottom:1px solid var(--line); font-size:1rem; line-height:1.8; color:var(--muted); }
.demo-checklist li::before { content:""; position:absolute; left:0; top:1.1rem; width:.4rem; height:.4rem; border:1px solid #b8471e; transform:rotate(45deg); }
.demo-pagination { display:flex; align-items:center; justify-content:space-between; gap:1rem; border-top:1px solid var(--line); padding-top:1.5rem; margin-top:2rem; }
.demo-pagination>p { font-size:.875rem; line-height:1.7; color:var(--muted); flex:1; text-align:center; }
.demo-pagination button:disabled { opacity:.45; cursor:default; }
.demo-receipt { margin-top:2rem; }
.demo-receipt summary { color:var(--muted); font-size:.9375rem; font-weight:400; }
#demo-activity { margin-block:.9rem 0; }
#demo-activity li { padding-block:.35rem; }
.demo-error { border-left:3px solid #9a3020; padding:1rem 1.25rem; margin-top:1.5rem; background:#fff0e5; color:#722c20; font-size:.9375rem; line-height:1.75; }
.demo-error[hidden] { display:none; }
.demo-workspace button:focus-visible,.demo-hero button:focus-visible,.demo-close a:focus-visible,.demo-table-wrap:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.demo-explanation { background:var(--soft); border-block:1px solid var(--line); padding-block:3rem; }
.demo-explanation>.wrap { display:grid; grid-template-columns:1fr 1fr; gap:8%; }
.demo-explanation h2 { font-size:clamp(1.9rem,2.8vw,2.7rem); line-height:1.2; margin-top:1rem; }
.demo-explanation-copy>p { font-size:1rem; line-height:1.85; color:var(--muted); }
.demo-explanation-copy>p+p { margin-top:1rem; }
.demo-explanation-copy .demo-disclosure { margin-bottom:0; }
.demo-close { display:grid; grid-template-columns:1fr 1fr; gap:8%; padding-block:3.5rem; }
.demo-close h2 { font-size:clamp(2.2rem,3.4vw,3rem); line-height:1.15; margin-top:1rem; }
.demo-close>div>p:not(.eyebrow) { color:var(--muted); line-height:1.8; font-size:1.05rem; }
@media(max-width:1000px) {
 .demo-hero { gap:3%; }
 .demo-workspace { grid-template-columns:190px minmax(0,1fr); gap:4%; }
 .demo-cards { grid-template-columns:1fr; }
 .demo-card { padding:1.25rem 1.5rem; }
 .demo-card h3 { font-size:1.3rem; }
 .demo-overview>ol { gap:3%; }
 .demo-client-facts dd { font-size:1.05rem; }
 .demo-hero-art figcaption { gap:.5rem; font-size:.8125rem; }
}
@media(max-width:760px) {
 .demo-hero { grid-template-columns:1fr; gap:1rem; padding-block:1.75rem 2.5rem; }
 .demo-hero h1 { font-size:clamp(2.6rem,7.4vw,4rem); }
 .demo-hero-art { max-width:580px; margin:1rem auto 0; }
 .demo-hero-art img { max-height:220px; }
 .demo-client { gap:6%; padding-block:2rem; }
 .demo-client-facts dl { grid-template-columns:1fr; gap:.65rem; }
 .demo-client-facts dl>div { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; }
 .demo-client-facts dd { margin:0; font-size:1rem; }
 .demo-client-quote { padding-left:1rem; }
 .demo-client-quote>p { font-size:1.1rem; }
 .demo-overview>ol { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
 .demo-workspace { grid-template-columns:1fr; gap:1.5rem; padding-block:2rem 3rem; }
 .demo-rail { position:static; }
 .demo-rail>.eyebrow,.demo-rail-note { display:none; }
 .demo-stages { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.4rem; margin:0; }
 .demo-stages li { min-width:0; }
 .demo-stages button { flex-direction:column; gap:.6rem; justify-content:flex-start; text-align:center; padding:.75rem .2rem; min-height:91px; }
 .demo-stage-symbol { flex-basis:auto; font-size:1.6rem; }
 .demo-stages strong { font-size:.875rem; font-weight:500; }
 .demo-stages small { display:none; }
 .demo-rail>.demo-text-button { display:block; margin:1rem 0 0 auto; }
 .demo-panel { padding-top:1.5rem; }
 .demo-panel-heading { margin-bottom:1.3rem; }
 .demo-panel-heading h2 { font-size:2.25rem; }
 .demo-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .demo-card { padding:1rem; }
 .demo-card h3 { font-size:1.1rem; }
 .demo-metrics { gap:1rem; }
 .demo-metric strong { font-size:1.75rem; }
 .demo-explanation>.wrap,.demo-close { gap:5%; }
}
@media(max-width:540px) {
 .demo-hero .expert-breadcrumb { margin-bottom:1.4rem; }
 .demo-hero h1 { font-size:clamp(2.4rem,9vw,3.5rem); }
 .demo-lead { font-size:1.1rem; line-height:1.8; margin-top:1.25rem; }
 .demo-hero-actions { gap:.7rem; }
 .demo-hero-actions>.button { width:100%; }
 .demo-hero-actions>.text-link { min-height:44px; display:flex; align-items:center; }
 .demo-hero-art { margin-top:.5rem; }
 .demo-hero-art img { max-height:180px; }
 .demo-hero-art figcaption { font-size:.8125rem; }
 .demo-client { grid-template-columns:1fr; gap:1.75rem; }
 .demo-client h2 { font-size:2rem; }
 .demo-client-facts dl { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
 .demo-client-facts dl>div { display:block; }
 .demo-client-facts dd { margin-top:.3rem; }
 .demo-client-quote>p { font-size:1.25rem; }
 .demo-overview { padding-block:2.5rem; }
 .demo-overview-heading { grid-template-columns:1fr; gap:1rem; }
 .demo-overview-heading h2 { font-size:2.1rem; }
 .demo-overview>ol { grid-template-columns:1fr; gap:1rem; margin-block:1.75rem; }
 .demo-overview li { display:flex; gap:1rem; align-items:start; padding-top:1rem; }
 .demo-overview-symbol { flex:0 0 35px; text-align:center; margin-bottom:0; font-size:1.7rem; }
 .demo-overview li p { margin-top:.3rem; }
 .demo-stages { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.3rem .7rem; }
 .demo-stages strong { font-size:.875rem; }
 .demo-stages button { min-height:76px; }
 .demo-panel-heading h2 { font-size:2rem; }
 .demo-panel-intro { font-size:1rem; }
 .demo-cards { grid-template-columns:1fr; gap:.9rem; }
 .demo-card { padding:1.2rem; }
 .demo-card h3 { font-size:1.25rem; }
 .demo-metrics { grid-template-columns:1fr; gap:1.2rem; }
 .demo-metric strong { font-size:2rem; }
 .demo-metric span { margin-top:.3rem; }
 .demo-table-wrap th,.demo-table-wrap td { padding:.75rem; min-width:100px; }
 .demo-scenario-controls { gap:.5rem; }
 .demo-scenario-controls button { flex:1 1 100px; font-size:.875rem; padding:.7rem .65rem; }
 .demo-pagination { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
 .demo-pagination>p { grid-column:1/-1; grid-row:1; text-align:left; }
 .demo-pagination>.button { padding:.8rem .65rem; font-size:.9375rem; }
 .demo-actions { align-items:stretch; flex-direction:column; gap:.75rem; }
 .demo-actions>.button { text-align:center; }
 .demo-actions>.text-link { align-self:flex-start; min-height:44px; display:flex; align-items:center; }
 .demo-explanation { padding-block:2.25rem; }
 .demo-explanation>.wrap,.demo-close { grid-template-columns:1fr; gap:1.5rem; }
 .demo-explanation h2 { font-size:1.9rem; }
 .demo-close { padding-block:2.75rem; }
 .demo-close h2 { font-size:2.2rem; }
}
@media(prefers-reduced-motion:reduce) {
 .demo-workspace *, .demo-hero * { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
@media print {
 .demo-workspace { display:block; }
 .demo-rail,.demo-pagination,.demo-hero-actions,.demo-actions { display:none; }
 .demo-panel,.demo-card,.demo-client { break-inside:avoid; }
 .demo-tool-output { white-space:pre-wrap; }
}

.demo-pagination [hidden] { display:none; }
