.scap-story-demo{--story-white:#ffffff;--story-text:#c6d9eb;--story-muted:#9eb8cf;--story-subtle:#7896b3;--story-accent:#b4ddff;--story-line:#ffffff20;width:100%;max-width:1440px;margin:0 auto;padding:20px 24px;color:var(--story-white);display:grid;grid-template-columns:minmax(0,23fr) minmax(0,77fr);grid-template-rows:auto minmax(0,1fr) auto auto auto;grid-column-gap:clamp(28px,3.5vw,56px);column-gap:clamp(28px,3.5vw,56px);grid-row-gap:8px;row-gap:8px;align-items:start}.scap-story-demo,.scap-story-demo *,.scap-story-demo :after,.scap-story-demo :before{box-sizing:border-box}.scap-story-demo .story-intro{grid-column:1;grid-row:1;width:100%;margin:0;padding:0;text-align:left}.scap-story-demo .story-intro h2{color:var(--story-white)!important;font-size:clamp(26px,2.2vw,34px);font-weight:500;letter-spacing:-1px;line-height:1.18;margin:0 0 14px}.scap-story-demo .story-intro .story-description{color:var(--story-text)!important;font-size:13px;font-weight:400;line-height:1.6;margin:0}.scap-story-demo .story-intro .story-suitability{color:var(--story-muted)!important;font-size:11px;font-weight:400;line-height:1.7;margin:12px 0 0}.scap-story-demo .story-stages{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;width:100%;gap:5px;margin:14px 0 0;padding:0}.scap-story-demo .story-stages>button{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:flex-start;position:relative;width:100%;min-width:0;min-height:34px;padding:6px 12px;gap:10px;background:transparent;border:0;border-left:2px solid #ffffff15;border-radius:0;box-shadow:none;font-family:inherit;font-weight:400;text-align:left;cursor:pointer;transition:border-color .2s ease}.scap-story-demo .story-stages>button.active{border-left-color:var(--story-accent)}.scap-story-demo .story-stages>button:hover{border-left-color:#8fb5d8}.scap-story-demo .story-stages>button:focus-visible{outline:1px solid #ffffffcc;outline-offset:3px}.story-step-number{display:block;flex-shrink:0;width:18px;font-size:10px;font-weight:400;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--story-subtle)}.story-step-name{display:block;font-size:13px;font-weight:400;line-height:1.4;color:var(--story-muted)}.story-step-arrow{width:6px;height:6px;margin-left:auto;border-top:1px solid var(--story-accent);border-right:1px solid var(--story-accent);transform:rotate(45deg);opacity:0}.story-stages>button.active .story-step-name{color:var(--story-white);font-weight:500}.story-stages>button.active .story-step-number{color:var(--story-accent)}.story-stages>button.active .story-step-arrow{opacity:1}.scap-story-demo .story-stage{grid-column:2;grid-row:1/3;position:relative;display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;height:clamp(400px,calc(100dvh - 230px),580px);overflow:visible}.scap-story-demo .story-stage>*{flex-shrink:0;width:100%;margin-top:auto;margin-bottom:auto;transform-origin:center center}.scap-story-demo .story-stage>.story-layout{margin-top:0;margin-bottom:0;transform-origin:top left;scale:none!important}.story-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start;grid-gap:clamp(16px,1.8vw,28px);gap:clamp(16px,1.8vw,28px)}.scap-story-demo .story-paper{position:relative;align-self:start;padding:clamp(20px,2vw,32px);background:#fffefa!important;color:#242424!important;border:1px solid #e5e2da;border-radius:1px;box-shadow:3px 4px 0 #e4e6e9,6px 8px 0 #c7d0dc,0 8px 20px #00000012;transform:none;transition:none}.scap-story-demo .story-paper h3{font-family:Georgia,serif;font-size:clamp(18px,1.5vw,23px);font-weight:500;line-height:1.4;text-align:center;color:#242424!important;margin:0 0 18px}.scap-story-demo .story-paper p{font-family:Georgia,serif;font-size:clamp(11px,.9vw,13px);line-height:1.75;color:#303030!important;margin:0 0 10px}.scap-story-demo .story-paper p:last-child{margin-bottom:0}.story-sentence{color:#111111!important;opacity:1;padding:0;margin:0;border:0;border-radius:2px;font-weight:inherit;line-height:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}.story-sentence.done{background:#e8f1fa}.story-sentence.scanning{background-color:#b4d9ff;background-image:linear-gradient(90deg,transparent,#f4faff,transparent);background-size:200% 100%;box-shadow:0 2px 0 #2377bb;animation:story-scan .45s linear infinite}.scap-story-demo .story-analysis-side{min-width:0;align-self:start;transform-origin:top center;scale:none!important;transform:none;transition:none}.story-analysis{--status-height:28px;--sentence-height:40px;--result-height:36px;display:grid;grid-template-rows:var(--status-height) var(--sentence-height) var(--result-height);grid-gap:4px;gap:4px;height:calc(var(--status-height) + var(--sentence-height) + var(--result-height) + 8px);padding:0;margin:0;transition:opacity .2s}.story-analysis.waiting,.story-waiting-table{opacity:0;visibility:hidden}.story-ai-status{display:flex;align-items:center;height:var(--status-height);gap:8px;margin:0;font-size:11px;font-weight:600;line-height:1.4;color:var(--story-white)}.story-ai-loader{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;padding:5px;background:#ffffff;border-radius:50%;box-shadow:0 2px 8px #00000014}.story-ai-loader svg{max-width:26px;max-height:26px}.story-current{height:var(--sentence-height);padding:2px 0;margin:0;color:#e3effa;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.story-result{height:var(--result-height);padding:0;margin:0}.story-result small{display:block;color:#c3daef;font-size:8px;line-height:1.3;letter-spacing:1.4px;margin:0 0 2px}.story-result strong{display:block;color:var(--story-white);font-size:14px;font-weight:500;line-height:1.35;margin:0}.story-transfer{display:flex;align-items:center;justify-content:center;height:16px;margin:2px 0 6px;color:#c3f4df;font-size:9px;opacity:0;transition:opacity .15s}.story-transfer.active{opacity:1}.scap-story-demo .story-csv{width:100%;margin:0;background:#ffffff;color:#182330;border-radius:8px;overflow:hidden}.story-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;background:#edf3f9;color:#173f65;font-size:11px;border-bottom:1px solid #d5e1ed}.story-table-wrap{max-height:none;overflow:visible}.scap-story-demo .story-csv table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;font-size:10px;text-align:left}.scap-story-demo .story-csv td,.scap-story-demo .story-csv th{padding:4px 6px;font-size:10px;line-height:1.35;overflow-wrap:anywhere;vertical-align:top}.story-csv th{background:#f2f5f9;color:#293d52;font-weight:600;border-bottom:1px solid #dce4ed}.story-csv th:first-child{width:30px}.story-csv th:nth-child(2){width:48%}.story-csv td{color:#182330;border-bottom:1px solid #e1e7ee}.story-analysis-side .story-csv td{line-height:1.3}.story-csv .story-code-cell{color:#174f80;font-weight:600}.story-csv-footer,.story-table-footer{color:#40566d;font-size:10px;padding:6px 10px;border-top:1px solid #dfe7ef}.story-new-row{animation:story-insert .3s ease}.story-expanded{width:100%;padding-top:12px}.story-expanded .story-table-wrap{max-height:none;overflow:visible}.story-expanded th:nth-child(2){width:35%}.story-phase-title{color:#e0edf8;font-size:13px;margin-bottom:15px}.story-theme{display:inline-block;background:#e4eef8;color:#174f80;font-weight:600;padding:5px 8px;border-radius:4px;font-size:11px}.story-reveal{animation:story-reveal .25s ease both}.story-progress{grid-column:2;grid-row:3;width:100%;height:1px;margin:4px 0;background:#ffffff25;border-radius:5px;opacity:.65;overflow:hidden}.story-progress>div{height:100%;background:#c1e3ff;transition:width .15s}.story-bottom-bar{grid-column:2;grid-row:4;display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:0;padding:0;margin:0}.story-metrics{display:grid;grid-template-columns:repeat(4,84px);width:-moz-fit-content;width:fit-content;max-width:100%;grid-gap:6px;gap:6px;padding:0;margin:0;text-align:center}.story-metrics>div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;height:54px;padding:6px 4px;gap:3px;background:#ffffff0d;border:1px solid #ffffff17;border-radius:4px}.story-metrics strong{display:block;font-size:19px;font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1.1;color:var(--story-white);margin:0;transition:color .25s ease}.story-metrics strong[data-zero=true]{color:var(--story-subtle)}.story-metrics span{color:#afc5da;font-size:10px;font-weight:400;line-height:1.4;opacity:.8}.story-note{grid-column:2;grid-row:5;color:var(--story-subtle);font-size:9px;line-height:1.4;text-align:left;opacity:.65;margin:2px 0 0;padding:0}@keyframes story-scan{0%{background-position:200% 0}to{background-position:0 0}}@keyframes story-insert{0%{background:#a7e4cc;opacity:.6}to{background:#ffffff;opacity:1}}@keyframes story-reveal{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media (min-width:1001px){.scap-story-demo{width:94vw;max-width:none;margin-left:calc(50% - 47vw);margin-right:calc(50% - 47vw);padding:24px 0}.story-layout{height:100%}}@media (max-width:1200px){.story-analysis{--sentence-height:56px;--result-height:44px}}@media (max-width:1000px){.scap-story-demo{display:flex;flex-direction:column;gap:16px;padding:20px 16px}.scap-story-demo .story-intro{text-align:center}.scap-story-demo .story-intro .story-suitability{max-width:600px;margin:12px auto 0}.scap-story-demo .story-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;grid-gap:5px;gap:5px}.scap-story-demo .story-stages>button{flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:8px 4px;border-left:0;border-bottom:1px solid var(--story-line);text-align:center}.scap-story-demo .story-stages>button.active{border-bottom-color:var(--story-accent)}.story-step-number{width:auto}.story-step-name{font-size:11px}.story-step-arrow{display:none}.scap-story-demo .story-stage{height:auto}.story-bottom-bar{justify-content:center}.story-note{width:100%;text-align:center}}@media (max-width:760px){.story-layout{height:auto;grid-template-columns:minmax(0,1fr);gap:24px}.story-analysis{--sentence-height:56px;--result-height:44px}}@media (max-width:480px){.story-metrics{grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:354px;gap:5px}.story-metrics span{font-size:9px}}@media (prefers-reduced-motion:reduce){.scap-story-demo *,.scap-story-demo :after,.scap-story-demo :before{animation:none!important;transition:none!important}}.scap-insights{width:100%;max-width:1020px;margin:0 auto;animation:insights-enter .35s ease both}.insights-heading{text-align:center;margin-bottom:20px}.insights-heading h3{color:#ffffff!important;font-size:21px;font-weight:500;letter-spacing:-.5px;line-height:1.3;margin:0 0 5px}.insights-heading p{color:#b9cfe3!important;font-size:12px;margin:0}.insights-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;grid-gap:12px;gap:12px}.insights-card{box-sizing:border-box;min-width:0;width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:15px 12px 12px;background:#ffffff;color:#153e65;border:none;border-radius:6px;box-shadow:none;overflow:hidden}.insights-card h4{color:#153e65!important;font-size:12px;font-weight:600;line-height:1.4;margin:0 0 6px;text-align:left}.insights-card>svg{display:block;width:100%;height:auto;aspect-ratio:4/3;flex-shrink:0;overflow:visible}.insights-card>p{color:#64748b!important;font-size:10px;line-height:1.5;margin:8px 0 0;text-align:center}.insights-axis{font-size:9px;fill:#64748b;font-weight:400}.insights-value{font-size:11px;font-weight:500;fill:#153e65}.insights-legend{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 20px;margin-top:16px}.insights-legend>span{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#c5d9eb}.insights-legend i{display:inline-block;width:7px;height:7px;border-radius:1px}.insights-legend strong{color:#ffffff;font-size:10px;font-weight:500}.insights-appear{animation:insights-enter .4s ease both}.insights-bar{transform-box:fill-box;transform-origin:center bottom;animation:insights-grow .55s ease both}@keyframes insights-enter{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes insights-grow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@media (max-width:760px){.insights-grid{grid-template-columns:1fr;max-width:360px;margin:0 auto}.insights-card{padding:16px}.insights-legend{gap:8px 12px}}@media (prefers-reduced-motion:reduce){.scap-insights,.scap-insights *{animation:none!important}}.scap-story-demo .insights-card>svg{max-height:220px}@media (min-width:1001px){.scap-story-demo .scap-insights{max-width:none}.scap-story-demo .insights-grid{gap:14px}.scap-story-demo .insights-card{padding:16px 12px}.scap-story-demo .insights-card>svg{max-height:clamp(160px,28vh,250px)}}