/* Light mode uses ink text and clearly separated surfaces. */
:root:not([data-theme=dark]){--page:#f3f6f8;--surface:#fff;--surface2:#e6edf2;--surface3:#d7e3ea;--text:#172b38;--secondary:#3d5363;--subtle:#4b6272;--border:#acbdc9;--accent:#235e71;--accent-soft:#dcebf0;--button:#173745;--on-button:#fff;--ink:var(--text);--muted:var(--secondary);--line:var(--border)}
:root:not([data-theme=dark]) .site-header{background:#fff;border-bottom-color:#bccbd5}
:root:not([data-theme=dark]) :is(.section-heading>p,.integration-copy p,.case-copy p,footer a,footer p,.pricing-plan li,.plan-description){color:var(--secondary)}
:root:not([data-theme=dark]) :is(.case-nav button,.case-nav button>.step-index,.case-nav button>.step-title){color:#3d5363}
:root:not([data-theme=dark]) .case-nav button.active{background:#173745;color:white;border-color:#173745}
:root:not([data-theme=dark]) .case-nav button.active :is(.step-index,.step-title){color:white}
:root:not([data-theme=dark]) :is(.context-reveal-list>div,.case-workflow li){opacity:1;background:#f2f6f8;border-color:#bdcbd4}
:root:not([data-theme=dark]) :is(.context-reveal-list>div.done,.case-workflow li.done){background:#e9f5f0;border-color:#6d9f8c}
:root:not([data-theme=dark]) :is(.context-reveal-list small,.context-reveal-list b,.case-workflow small,.case-workflow b,.processed-field label,.processed-field b,.inbox-arrival b,.channel-source b){color:#243e4d}
:root:not([data-theme=dark]) :is(.processed-field>i,.field-check,.raw-message>small,.identity-avatar,.case-identity small){color:#365867}
:root:not([data-theme=dark]) :is(.case-identity,.draft-card,.next-action,.raw-message,.processed-fields,.channel-source,.central-inbox,.integration-grid>div){background:#fff;border-color:#adbfcb}
:root:not([data-theme=dark]) :is(.raw-message p,.draft-card>p,.next-action b,.case-identity b,.prepared-dossier-heading>b,.integration-grid b){color:#172b38}
:root:not([data-theme=dark]) .draft-actions button{color:#173745;border-color:#607f90;background:#fff}
:root:not([data-theme=dark]) #case-approve{background:#173745;color:#fff}
:root:not([data-theme=dark]) :is(.tia-tag,.case-identity>span){color:#1d5264;background:#dcebf0}
:root:not([data-theme=dark]) .case-progress{background:#c0cfd8}
:root:not([data-theme=dark]) .case-progress>span{background:#235e71}
:root:not([data-theme=dark]) .processing-routes path{stroke:#98aeba}
:root:not([data-theme=dark]) .processing-routes .active-path{stroke:#2c7185;filter:none}
/* The original app captures are used without redrawing or recoloring their UI. */
.capture-desktop{display:none}
@media(min-width:761px){
 .scroll-story .product-window.capture-product,.scroll-story .product-window.capture-product.open-ticket{height:auto!important;aspect-ratio:8/5!important;min-height:0!important;background:#f6f7f9;border:1px solid #cbd4db;border-radius:24px;overflow:hidden;position:relative;display:block;padding:0}
 .capture-product>.product-sidebar,.capture-product>.product-content{display:none!important}
 .capture-desktop{display:flex;position:absolute;inset:0;gap:0;background:#f6f7f9;overflow:hidden}
 .capture-sidebar{width:14%;height:100%;padding:0;flex:none;background:#f6f7f9}
 .capture-sidebar img{display:block;width:100%;height:100%;object-fit:contain;object-position:top}
 .capture-main{position:relative;width:86%;height:100%;overflow:hidden;background:#f6f7f9}
 .capture-dashboard,.capture-detail{position:absolute;inset:0;overflow:hidden}
 .capture-desktop img{max-width:none}
 .capture-main img{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
 .capture-dashboard{opacity:1;visibility:visible}
 .open-ticket .capture-dashboard{opacity:0;visibility:hidden;pointer-events:none}
 .capture-detail{opacity:0;visibility:hidden;pointer-events:none}
 .open-ticket .capture-detail{opacity:1;visibility:visible;pointer-events:auto}
 .capture-ticket-scroll{position:relative;will-change:transform}
 .capture-hit{position:absolute;background:transparent;border:0;padding:0;border-radius:20px;cursor:pointer;box-shadow:none;z-index:2}
 .capture-open{left:3.3%;width:93.1%}
 .capture-open.focus-ticket{outline:2px solid #3a8c7b;outline-offset:-2px;background:#5d9c8510}
 .capture-back{left:3.1%;width:15%}
 .capture-hit:focus-visible{outline:3px solid #276d80;outline-offset:2px}
 .capture-product .demo-cursor{z-index:5}
}
/* Phone layout keeps readable native-sized cards instead of shrinking a desktop capture. */
@media(max-width:760px){
 .capture-product>.product-sidebar{display:none!important}
 .capture-product .mobile-summary{display:grid;grid-template-columns:1fr 1.15fr;gap:8px;margin:13px 0}
 .capture-product .mobile-summary>div{padding:13px;background:#f0f2f4;border:1px solid #dce2e7;border-radius:13px;color:#24333d}
 .capture-product .mobile-summary svg{width:19px;height:19px;vertical-align:middle}
 .capture-product .mobile-summary b{display:block;font-size:12px;margin-top:9px}
 .capture-product .mobile-summary label{display:block;font-size:9px;letter-spacing:1px;color:#536373}
 .capture-product .mobile-summary strong{display:block;font-size:23px;margin-top:6px}
 .capture-product .mobile-counts{display:flex;gap:6px;margin-bottom:15px}
 .capture-product .mobile-counts span{flex:1;border:1px solid #c7e2d7;background:#edf8f2;color:#245a47;border-radius:8px;padding:8px 6px;font-size:9px;line-height:1.5}
 .capture-product .mobile-counts span:nth-child(2){background:#fff4e1;color:#7e5015;border-color:#e4d0ab}
 .capture-product .mobile-counts span:nth-child(3){background:#ffe9e9;color:#9c3030;border-color:#eabcbc}
 .capture-product .mobile-counts b{display:block;font-size:15px}
 .capture-product .product-ticket{height:75px}
 .capture-product .ticket-surface{padding:14px}
 .capture-product .ticket-title p{font-size:11px}
 .capture-product .search-line svg{width:14px;height:14px;vertical-align:middle;margin-right:6px}
 .capture-product .detail-ticket-heading .back-ticket{border-radius:30px}
 .capture-product .detail-decisions>div{display:flex;gap:9px;align-items:center}
 .capture-product .detail-decisions svg{width:17px;height:17px}
}
/* Connections accumulate: no travelling dash and no laser glow. */
.scroll-story .flow-routes .flow-highlight{stroke-width:2.5;stroke-linecap:round;filter:none;transition:none!important}
.scroll-story .channel-source.connected{border-color:var(--channel,var(--accent));box-shadow:0 0 0 1px color-mix(in srgb,var(--channel,var(--accent)) 22%,transparent)}
.scroll-story .inbox-arrival{opacity:1!important;color:var(--text)}
.scroll-story .inbox-arrival.received{background:color-mix(in srgb,var(--channel,var(--accent)) 9%,var(--surface));box-shadow:inset 3px 0 var(--channel,var(--accent))}
.scroll-story .inbox-arrival>span{font-size:10px;color:var(--accent)}
.scroll-story .central-hub.receiving{border-color:#447f77;box-shadow:0 0 0 2px #447f7726,0 16px 28px -20px #183d4e70}
/* SYNET completes a 360-degree charge as the visitor advances. */
.scroll-story .synet-engine .engine-ring{display:none}
.scroll-story .engine-orbit{position:absolute;inset:-25%;width:150%;height:150%;overflow:visible;pointer-events:none;z-index:2;opacity:clamp(0,var(--energy),1)}
.engine-orbit circle{fill:none}
.engine-orbit .orbit-track{stroke:#6d999c;stroke-width:.8;opacity:.38}
.engine-orbit .orbit-progress{stroke:#287e75;stroke-width:2;stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:1;transform:rotate(-90deg);transform-origin:120px 120px}
.engine-orbit .orbit-head{transform-origin:120px 120px}
.engine-orbit .orbit-head circle{fill:#25766e;stroke:#d9fff0;stroke-width:1.4;filter:drop-shadow(0 0 4px #65c9b5)}
[data-theme=dark] .engine-orbit .orbit-progress{stroke:#94dfce}
[data-theme=dark] .engine-orbit .orbit-head circle{fill:#c7fff1;stroke:#8edccc}
.scroll-story .synet-engine.cycle-complete{box-shadow:0 0 0 1px #8cc8bb66,0 0 45px #74c2ac38,inset 0 0 32px #8cc8bb33}
.scroll-story .synet-engine.cycle-complete .orbit-head{opacity:0}
.scroll-story .case-nav{margin-bottom:0}
@media(prefers-reduced-motion:reduce){.engine-orbit{display:none}.capture-ticket-scroll{transform:none!important}}
