/* Shared geometry for both colour schemes. The public page has no app chrome. */
.direction-icon{display:inline-block;width:20px;height:20px;flex:0 0 auto;vertical-align:middle;pointer-events:none}
.film-paper small .direction-icon{width:12px;height:12px;margin-inline:2px}
.film-play .direction-icon{width:24px;height:24px}
.composer-ghost .direction-icon,.file-result .direction-icon,.demo-actions .direction-icon{width:16px;height:16px}
.demo-actions a,.demo-actions button,.capability-heading a{display:inline-flex;align-items:center;gap:7px}
.demo-actions span{display:inline-flex;margin-left:0}
.story-controls button,.library-controls button{color:var(--text)}
.faq p a .direction-icon{width:18px;height:18px;margin-left:4px}
:root{color-scheme:light dark;--bg:#141413;--surface:#262624;--raised:#30302e;--text:#faf9f5;--muted:#a6a69b;--paper:#1f1f1d;--pattern-ink:#aaa99f}
.hero{height:100svh;min-height:660px;max-height:none;display:flex;justify-content:center;align-items:center}
.hero-copy{width:min(1194px,calc(100% - 200px));max-width:none;background:none;padding:0;will-change:transform}
.hero h1{font-size:clamp(48px,5.55vw,106px);line-height:1.1;max-width:none}
.hero-copy p{font-size:clamp(18px,1.75vw,30px);max-width:760px;margin:32px auto 48px;color:var(--muted)}
.hero .actions{gap:12px}.hero .button{font-size:clamp(15px,1.35vw,23px);min-height:44px}
.orbit{max-width:none;mask-image:linear-gradient(#000 67%,transparent 99%)}
.orbit-card{position:absolute;left:50%;top:50%;animation:none;opacity:1;will-change:transform;border-radius:8px}
.orbit-card img{height:100%;aspect-ratio:1;object-fit:cover;border-radius:7.5%}
.orbit-card.pattern:before{height:100%;border-radius:7.5%;background:#262624}
.orbit-card.pattern:after{content:"";position:absolute;inset:0;border-radius:7.5%;background:var(--pattern-ink);opacity:.35;mask:url('/product/overview/assets/squiggle.svg') center/160% no-repeat}
.orbit-card:nth-child(3n):after{transform:rotate(90deg)}.orbit-card:nth-child(4n):after{transform:rotate(180deg)}
.orbit-card span{position:absolute;top:100%;left:0;width:100%;min-width:96px;font:12px/18px var(--sans);color:var(--muted);margin-top:9px}
.intro{position:relative;padding-top:0}.film{width:min(640px,100%);min-height:0;aspect-ratio:16/9;will-change:transform,opacity}
.film-layout p{font-size:36px}.film-top{padding:20px 24px}.film-paper{min-height:200px;padding:18px}.film-paper h2{font-size:26px;margin:16px 0}
.library{background:var(--surface);padding:120px 0;overflow:clip}
.library .wrap{width:min(1440px,calc(100% - 96px))}
.scroll-sequence{height:var(--sequence-height);position:relative;overflow-anchor:none}
.sequence-panel{position:sticky;top:var(--sequence-top,24px)}
.work-stage.sequence-panel{padding-block:24px}
.sequence-panel .demo-card{transition:background-color .3s ease}
.library-scroll-track .wrap{margin-inline:auto}
.library h2{font-size:clamp(30px,3.45vw,56px);line-height:1.28;max-width:1120px;margin:0 auto 80px;text-wrap:balance}
.library-slot{position:relative;display:inline}
.library-slot>button{font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit;background:none;border:0;border-radius:0;padding:0;text-decoration:underline;text-underline-offset:.16em;text-decoration-thickness:1px}
.library-slot>button:hover{opacity:.72}
.library-menu{position:absolute;top:calc(100% + 12px);left:0;z-index:10;display:flex;flex-direction:column;gap:5px;width:max-content;max-width:min(540px,calc(100vw - 32px));padding:8px;border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:0 8px 32px #0002;max-height:350px;overflow-y:auto}
.library-menu button{font:24px/1.2 var(--serif);letter-spacing:-.02em;text-align:left;white-space:normal;background:transparent;padding:9px 14px;border-radius:12px;color:var(--text)}
.library-menu button[aria-selected=true]{background:var(--surface)}
.library-menu button:hover,.library-menu button:focus-visible{background:var(--raised);outline:0}
.library-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,652px) minmax(180px,1fr);align-items:start;gap:40px}
.library-rail{display:flex;flex-direction:column;text-align:left;gap:10px;padding-top:28px;min-width:0}
.library-rail:before{content:'Направление';font:26px/1.25 var(--serif);margin-bottom:12px}.library-rail:last-child:before{content:'Задача'}
.library-rail button{padding:0;background:none;text-align:left;font-size:15px;line-height:1.5;color:var(--muted)}
.library-rail button[aria-pressed=true],.library-rail button:hover{color:var(--text)}.library-rail button[aria-pressed=true]{font-weight:600}
.library-cards{width:100%;aspect-ratio:652/594;position:relative;margin:0;outline-offset:8px}
.stack-card{border-radius:8px;inset:auto;left:50%;position:absolute;border:0;background-image:url('/product/overview/assets/flow.svg');opacity:1;transform:translateX(-50%)}
.stack-back{top:0;width:81%;height:71%;background-color:#d97757;transform:translateX(-50%)}
.stack-middle{top:5.7%;width:91%;height:79.4%;background-color:#cbcadd;transform:translateX(-50%)}
.library-main{position:absolute;top:12.8%;left:0;width:100%;height:87.2%;min-height:0;padding:9%;border:0;border-radius:8px;background:#bcd1ca url('/product/overview/assets/flow.svg') center/cover;display:grid;place-items:center}
.library-main .document{width:100%;min-height:0;max-height:100%;overflow:hidden;border-radius:6px;animation:artifact-reveal .45s ease-out}
.library-main .document-body{padding:22px;font-size:11px}.library-main .document h4{font-size:clamp(20px,2vw,32px)}
.library-main .slide .document-body{min-height:230px;margin:10px}.library-main .document p{font-size:10px}
.library-controls{margin:28px 0 24px}
.closing{width:100%;background:var(--surface);padding:150px 24px;display:flex;justify-content:center;text-align:center}
.closing-inner{width:min(744px,100%)}.closing h2{font-size:clamp(38px,4vw,64px);line-height:1.1;letter-spacing:-.04em;margin:0 auto;max-width:704px}
.closing p{font-size:20px;line-height:1.5;color:var(--muted);margin:28px auto 40px}
.closing form{display:flex;align-items:flex-end;gap:8px;width:min(560px,100%);margin:0 auto;padding:8px 8px 8px 24px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:none}
.closing textarea{width:100%;flex:1;min-width:0;height:36px;min-height:36px;max-height:150px;padding:7px 0;border:0;resize:none;line-height:22px;font-size:15px;background:none;color:var(--text)}
.closing textarea:focus-visible{outline:none}.closing form:focus-within{box-shadow:0 0 0 2px var(--muted)}
.closing textarea::placeholder{color:var(--muted)}
.closing .brand-button{flex-shrink:0;min-height:36px;gap:8px;font-size:15px;line-height:20px;padding:8px 12px 8px 16px;border:0;background:#c6613f;color:#fff;border-radius:8px;white-space:nowrap}
.closing .brand-button:hover{background:#ad5135;transform:none}
.company-requisites{display:flex;gap:6px 18px;flex-wrap:wrap;justify-content:center;padding:24px;font-size:12px;line-height:1.7;color:var(--muted);background:var(--surface)}.company-requisites span{white-space:nowrap}
.reveal-on-scroll{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.16,1,.3,1)}
.reveal-on-scroll.is-revealed{opacity:1;transform:none}
@keyframes artifact-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1199px){.hero{height:110svh}.hero-copy{width:calc(100% - 160px)}.hero h1{font-size:clamp(48px,5.55vw,80px)}.hero-copy p{max-width:550px}.film{width:min(480px,100%)}.film-layout{gap:20px;padding:0 24px 26px}.film-layout p{font-size:30px}.film-paper{min-height:160px;padding:14px}.film-paper h2{font-size:22px}.film-paper .paper-chart{height:40px}.library-row{gap:24px;grid-template-columns:130px minmax(0,1fr) 170px}.library .wrap{width:calc(100% - 64px)}.closing{padding-block:112px}}
@media(max-width:1103px){.library-row{display:block;max-width:652px;margin:auto}.library-rail{display:none}.library h2{margin-bottom:64px}}
@media(max-width:760px){.hero-copy{width:calc(100% - 48px);padding:0}.hero h1{font-size:48px;line-height:1.1}.hero-copy p{font-size:18px;max-width:440px;margin:28px auto 32px}.orbit-card span{display:none}.library .wrap{width:calc(100% - 40px)}.library h2{font-size:32px;line-height:1.35}.library-menu button{font-size:22px}.library-main .document-body{padding:16px}.library-main .slide .document-body{min-height:170px}.library-main .document h4{font-size:24px}.closing{padding:80px 24px}.closing h2{font-size:40px}.closing p{font-size:18px;margin:24px auto 32px}.closing form{padding:12px 16px;flex-direction:column;align-items:stretch;gap:12px}.closing textarea{flex:auto;width:100%}.closing .brand-button{justify-content:center}.film-layout{padding:0 20px 24px}.film-layout .film-paper{min-height:160px}.film{aspect-ratio:auto}}
@media(max-width:566px){.hero{height:auto;min-height:0;padding:100px 0 64px;display:flex;flex-direction:column}.hero h1{font-size:clamp(30px,7.28vw,42px)}.hero-copy{order:0}.hero-copy p{font-size:18px}.orbit{position:relative;inset:auto;margin:64px 0 0;order:1;width:100%;height:clamp(88px,27vw,128px);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}.orbit-card{top:50%;left:50%}.hero .button{font-size:15px}.intro{padding-top:0}.library{padding-block:80px}.library h2{font-size:30px;margin-bottom:48px}.library-main{padding:8%}.library-main .document h4{font-size:20px}.library-main .document-body{padding:12px}.library-main .slide .document-body{min-height:130px}.library-main .document .paper-chart{height:25px;margin-bottom:8px}.library-main .document p{font-size:8px}.library-main .document .doc-label{font-size:6px}.library-main .document-bar{font-size:8px;padding:6px}.library-main .document table{font-size:8px;margin:8px 0}.library-main .document td,.library-main .document th{padding:5px 3px}.library-main .document ul{font-size:9px}.library-main .doc-divider{margin:8px 0}.library-main .document h4{margin-bottom:12px}}
@media(prefers-color-scheme:light){:root{--bg:#faf9f5;--surface:#f0eee6;--raised:#e8e6dc;--paper:#fff;--text:#141413;--muted:#6b6b62;--line:#14141326;--pattern-ink:#6b6b62;color-scheme:light}}
html[data-theme=light]{--bg:#faf9f5;--surface:#f0eee6;--raised:#e8e6dc;--paper:#fff;--text:#141413;--muted:#6b6b62;--line:#14141326;--pattern-ink:#6b6b62;color-scheme:light}
html[data-theme=dark]{--bg:#141413;--surface:#262624;--raised:#30302e;--text:#faf9f5;--muted:#a6a69b;--paper:#1f1f1d;--line:#ffffff21;--pattern-ink:#aaa99f;color-scheme:dark}
html[data-theme=light]{
  .primary{color:#faf9f5;background:#141413;border-color:#141413}.primary:hover{background:#33332d}
  .secondary{color:var(--text);background:#e8e6dc;border-color:#1414131a}.secondary:hover{background:#dddbd1}
  .orbit-card.pattern:before{background:#e8e6dc}.orbit-card span{color:var(--muted)}
  .roles button,.timeline button,.sample-note,.story-copy>span:not(.eyebrow),.story-controls span,.tools-row{color:var(--muted)}
  .roles strong,.timeline button[aria-pressed=true],.tools-row a:hover,.map-groups a:hover{color:var(--text)}
  .demo-tabs button[aria-pressed=true]{background:#dedcd3;color:#141413}.demo-tabs button{color:var(--muted)}
  .demo-actions a,.demo-actions button{background:var(--paper);color:var(--muted);border-color:var(--line)}
  .story-controls button,.library-controls button{border-color:var(--line)}.story-controls button:hover,.library-controls button:hover{background:#1414130a}
  .map-brand:before{background:repeating-radial-gradient(ellipse at left,transparent 0 38px,#14141324 39px 40px,transparent 41px 66px)}
  .conversation .brand{color:#ecebe5}.document .document-bar{color:#fff}.film .brand{color:#263128}
}
@media(prefers-reduced-motion:reduce){.orbit-card,.hero-copy,.film{will-change:auto}.reveal-on-scroll{opacity:1;transform:none;transition:none}.library-main .document{animation:none}}
@media(max-width:1103px){
  .library-cards{max-width:min(652px,55svh);margin-inline:auto}
  .library h2{margin-bottom:32px}
  .library-controls{margin:16px 0}
}
@media(max-width:1000px){
  .work-stage.sequence-panel{grid-template-columns:1fr;gap:12px;padding-block:16px;min-height:0}
  .work-stage .timeline{height:auto;flex-direction:row;gap:28px}
  .work-stage .timeline>span{display:none}
  .work-stage .scenario-copy .chip{margin-bottom:8px;padding:3px 8px}
  .work-stage .scenario-copy h3{font-size:26px;line-height:1.12;margin-bottom:10px}
  .work-stage .scenario-copy>p{font-size:14px;line-height:1.4}
  .work-stage .demo-card{min-height:0;padding:12px}
  .work-stage .conversation{padding:0 12px 10px}
  .work-stage .prompt{padding:10px 12px;font-size:12px}
  .work-stage .assistant{margin:12px 0;gap:8px}
  .work-stage .assistant ol{display:none}
  .work-stage .composer-ghost{padding:5px 10px}
  .work-stage .demo-actions{margin-top:8px}
}
