/* Theme-consistent surfaces: text and its background change together. */
html[data-theme="light"]{--bg:#f7f5ef;--panel:#ffffff;--panel2:#edf2ee;--text:#142b25;--muted:#465f56;--accent:#087b58;--accent2:#087b58}
html[data-theme="dark"]{--bg:#000;--panel:#121614;--panel2:#19221e;--text:#f0f5f2;--muted:#b0c1b8;--accent:#65f0b5}
html body{background:var(--bg)!important}
html .td-story .td-media{border:0;background:transparent;box-shadow:none}
html .td-story .td-future .td-copy,html .td-story .td-contact .td-copy{background:var(--bg);color:var(--text);border:0}
html .td-story .td-copy h2{color:var(--text)}
html .td-story .td-image-legend,html .td-story .td-flow,html .td-story .td-server-status,html .td-story .td-media figcaption{background:var(--panel);color:var(--text);border:0;border-radius:12px}
html .td-story .td-image-legend span,html .td-story .td-flow span,html .td-story .td-server-status span,html .td-story .td-media figcaption span{color:var(--text)}
html .td-story .td-image-legend b,html .td-story .td-server-status p,html .td-story .td-media figcaption b{color:var(--accent)}
html[data-theme="light"] .button:not(.button-ghost){color:#fff;background:#087b58}
html[data-theme="light"] .button-ghost{color:var(--text);background:transparent;border-color:var(--line)}
html .td-hero{background:var(--bg)}
html .td-hero .td-copy h1,html[data-theme="light"] .td-hero .td-copy h1{color:var(--text);text-shadow:none}
html .td-hero .td-copy h1 em,html[data-theme="light"] .td-hero .td-copy h1 em{color:var(--accent);text-shadow:none}
html .td-hero .td-copy .lead,html .td-hero .td-copy .td-commercial{color:var(--text)!important}
html .td-hero .td-copy .eyebrow,html .td-hero .td-direct-contact a{color:var(--accent)}
html .td-hero .td-direct-contact small{color:var(--muted)}
html .td-hero .td-proofline .service-shortcut{background:var(--panel);color:var(--text);border-color:var(--line);border-radius:8px}
html .td-hero .service-shortcut .service-icon{color:var(--accent)}
html .td-hero .td-proofline .shortcut-tip{padding:12px;background:var(--panel);color:var(--text)!important;border-color:var(--accent);font-size:.8rem;letter-spacing:0}
html[data-theme="light"] .td-hero .button-ghost{color:var(--text);border-color:var(--line)}
/* Fade the whole scene, including its overlays, to the surrounding theme. */
.td-story .td-media>picture,.td-story .td-media>.td-image-stage{mask-image:radial-gradient(ellipse 74% 77% at 50% 49%,#000 55%,transparent 99%)}
.td-story .td-media-hero>picture{mask-image:none}
@media(min-width:901px){
 html .td-hero .td-media-hero:before{background:linear-gradient(90deg,var(--bg) 0%,var(--bg) 31%,transparent 90%);opacity:.98}
 html[data-theme="light"] .td-hero .td-media-hero:before{background:linear-gradient(90deg,#f7f5ef 0%,rgba(247,245,239,.98) 38%,rgba(247,245,239,.42) 69%,rgba(247,245,239,.05) 100%)}
 html .td-hero .td-media-hero:after{display:block;background:linear-gradient(0deg,var(--bg),transparent 22%);box-shadow:none;z-index:2}
 html .td-story .td-hero .td-media-hero figcaption{background:var(--panel)}
}
.td-services{gap:20px;border:0;align-items:stretch}
html .td-services article{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:24px;box-shadow:none}
.td-services .mini-diagram{margin-bottom:14px}.td-services h3{margin-top:16px}
html .td-services article:target{outline:2px solid var(--accent);outline-offset:3px}
html .td-story .hardware-cutout{mask-image:none;background:transparent}
html .hardware-cutout img{object-fit:contain;max-height:620px}
.hardware-cutout-label{font-size:.8rem;color:var(--muted);text-align:center;padding:12px}
@media(max-width:900px){html .td-hero .td-media-hero:after{box-shadow:none}}
.td-story .td-media>picture,.td-story .td-media>.td-image-stage{mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent),linear-gradient(0deg,transparent,#000 12%,#000 88%,transparent);mask-composite:intersect}.td-story .td-media-hero>picture,html .td-story .hardware-cutout{mask-image:none}
html[data-theme="light"] .td-story .td-hero .td-copy .td-commercial{color:var(--text)!important}

/* Shared card treatment across service, example and process grids. */
html .td-three,html .td-offers,html .service-scenarios{gap:20px;border:0;align-items:stretch}
html .td-three>article,html .td-offers>article,html .service-scenarios>article{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:24px;min-width:0}
.ecr-icon{display:block;width:72px;height:72px;color:var(--accent);margin-bottom:18px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:16px}
.pos-screen-label{position:absolute;z-index:4;left:48%;top:34%;transform:translate(-50%,-50%);color:#f2fff9;text-align:center;pointer-events:none;text-shadow:0 2px 8px #003d39}
.pos-screen-label b{display:block;font:750 clamp(16px,4vw,42px)/1.1 'Segoe UI',sans-serif;letter-spacing:.08em}
.pos-screen-label small{display:block;font:500 clamp(8px,1.3vw,14px)/1.5 'Segoe UI',sans-serif}

/* Consolidated update: navigation and header spacing. */
.return-options{position:fixed;bottom:20px;right:20px;z-index:40;border:1px solid currentColor;border-radius:999px;padding:12px 18px;background:var(--surface,#14231e);color:var(--text,#eef8f3);box-shadow:0 4px 20px #0003;cursor:pointer;font:inherit}
.return-options[hidden]{display:none!important}
.theme-control select{border-radius:999px;padding:10px 30px 10px 14px;font:inherit;max-width:130px}
.site-header .brand small{line-height:1.4}
@media(min-width:701px) and (max-width:1100px){.site-header{gap:14px;padding-inline:24px}.site-header .brand small{display:none}#main-nav{gap:16px}.theme-control>span{display:none}}
#contact{margin-bottom:clamp(32px,5vw,64px)}

.contact-qr{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;margin:32px 0}.contact-qr a{display:grid;justify-items:center;gap:8px;text-decoration:none;color:inherit}.contact-qr img{width:144px;height:144px;background:white;border-radius:8px}.contact-qr span{font-size:.8rem}
.mini-diagram svg{min-height:150px}.mini-diagram svg text{font-size:14px!important}.mini-diagram{margin-bottom:12px}
.switch-lights{position:absolute;inset:0;pointer-events:none}.switch-lights i{position:absolute;width:4px;height:3px;background:#50ef8b;box-shadow:0 0 5px #50ef8b;animation:switchblink 2.7s steps(1) infinite}.switch-lights i.amber{background:#ffc33a;box-shadow:0 0 5px #ffc33a;animation-duration:1.7s}
@keyframes switchblink{0%,35%,65%,100%{opacity:1}40%,60%{opacity:.2}}
.motion-paused .switch-lights i{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.switch-lights i{animation:none}}


.contact-qr{gap:clamp(64px,12vw,160px);align-items:start}.contact-qr a{padding:24px;gap:12px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:20px}.qr-channel-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:color-mix(in srgb,currentColor 10%,transparent)}.qr-channel-icon svg{width:34px;height:34px}.qr-whatsapp{color:#168b52}.qr-phone{color:inherit}.contact-qr img{width:160px;height:160px}@media(max-width:600px){.contact-qr{gap:32px}.contact-qr a{width:min(100%,260px)}}

#diagnostic{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto}
#diagnostic .dialog-shell{padding:24px 28px;margin:0}#diagnostic .question{padding:0;margin:0}#diagnostic .question h2{font-size:clamp(24px,3vw,32px);margin:12px 0}#diagnostic .question>p{margin:10px 0;line-height:1.45}#diagnostic .eyebrow{font-size:11px}#diagnostic .request-modes{margin:14px 0;gap:8px}#diagnostic .request-field{margin:12px 0}#diagnostic label{display:block;margin-bottom:6px}#diagnostic textarea{min-height:68px;padding:10px 12px;margin:0;box-sizing:border-box}#diagnostic input[data-key]{width:100%;padding:10px 12px;border:1px solid #70807870;border-radius:10px;background:transparent;color:inherit;font:inherit;box-sizing:border-box}#diagnostic .privacy-note,#diagnostic #delivery-note{font-size:12px}#diagnostic .dialog-actions{margin-top:12px;gap:10px}#diagnostic .button{padding:10px 16px}#diagnostic #whatsapp-message{min-height:180px}#diagnostic .edit-answers{margin:12px 0}#diagnostic summary{cursor:pointer;padding:8px 0}#diagnostic .progress{margin-bottom:16px}
@media(max-width:600px){#diagnostic .dialog-shell{padding:20px 16px}#diagnostic{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#diagnostic .dialog-actions{display:flex;flex-wrap:wrap}}

/* Device presentation: bounded text, manual controls and mobile companion. */
.pos-fitted{position:absolute;z-index:4;box-sizing:border-box;padding:8% 3% 3%;color:#effff8;text-align:center;overflow:hidden;transform:skew(9deg,1deg);transform-origin:center;pointer-events:none;display:flex;flex-direction:column;justify-content:center;gap:6px}
.pos-fitted b{font-size:1em;line-height:1.15;letter-spacing:0;overflow-wrap:anywhere}
.pos-fitted small{font-size:.52em;line-height:1.35;overflow-wrap:anywhere}
.device-controls{display:flex;justify-content:center;align-items:center;gap:14px;padding:18px;flex-wrap:wrap}
.device-controls button{border:1px solid #426759;border-radius:12px;background:#13231d;color:#e8fff4;padding:10px 16px;cursor:pointer;min-height:44px}
.device-controls button:focus-visible{outline:3px solid #5ff2bc;outline-offset:3px}
.mobile-demo{display:flex;align-items:center;justify-content:center;gap:32px;margin:24px auto 44px;max-width:620px;padding:20px;color:var(--text)}
.phone-frame{position:relative;box-sizing:border-box;flex:0 0 190px;width:190px;min-height:330px;border:7px solid #39423e;border-radius:30px;padding:42px 16px 32px;background:linear-gradient(145deg,#11372e,#081512);color:#e9fff5;box-shadow:0 12px 28px #0005;overflow:hidden}
.phone-camera{position:absolute;top:10px;left:calc(50% - 20px);width:40px;height:8px;background:#020504;border-radius:9px}
.phone-frame small{font-size:10px;color:#5cf0b9}.phone-frame strong{display:block;font-size:21px;line-height:1.2;margin:20px 0;overflow-wrap:anywhere}.phone-frame p{font-size:13px;line-height:1.5}.phone-home{position:absolute;bottom:10px;left:35%;width:30%;height:3px;background:#a7b8ae;border-radius:4px}
.kds-demo{max-width:650px;margin:24px auto;padding:22px;border:7px solid #38443d;border-radius:16px;background:#11231c;color:#ebfff3}.kds-demo>small{color:#5ff2bc}.kds-demo>div{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}.kds-demo span{flex:1;padding:12px;background:#234337;border-radius:8px;font-size:14px}.kds-demo p{font-size:12px}
@media(max-width:520px){.mobile-demo{flex-direction:column;text-align:center}.phone-frame{text-align:left;flex-basis:auto}.pos-fitted{gap:3px}.device-controls{gap:8px}.kds-demo>div{flex-direction:column}}
.pos-fitted{padding:8px 12px;transform:skew(9deg,1deg)}

.pos-fitted{pointer-events:auto;padding:5px 10px;gap:3px}
.pos-fitted b{font-size:.85em}.pos-fitted small{font-size:.46em}
.pos-fitted .device-controls{padding:3px 0 0;gap:5px;flex-wrap:nowrap;font-size:8px}
.pos-fitted .device-controls button{min-height:0;padding:2px 6px;border-radius:4px;font-size:11px;line-height:1.2}
.pos-fitted .device-controls span{font-size:8px}
.phone-frame{flex:0 0 300px;width:300px;height:404px;min-height:404px;border:0;border-radius:0;box-shadow:none;background:transparent url("assets/phone-realistic.webp?v=c52c80c554eb8326") center/100% 100% no-repeat;padding:85px 82px 40px;overflow:hidden}.phone-camera,.phone-home{display:none}.phone-frame strong{font-size:17px;margin:16px 0}.phone-frame p{font-size:11px}.phone-frame small{font-size:8px}@media(max-width:520px){.phone-frame{flex-basis:auto}}

picture.hardware-cutout>.mobile-demo{position:absolute;z-index:5;left:77%;top:1%;width:22%;height:49%;margin:0;padding:0;display:block;max-width:none;pointer-events:none}
picture.hardware-cutout>.mobile-demo>p{display:none}
picture.hardware-cutout .phone-frame{position:absolute;width:100%;height:100%;min-height:0;padding:24% 27% 12%;box-sizing:border-box;transform:rotate(-4deg);background-size:100% 100%;font-size:clamp(4px,.7vw,9px)}
picture.hardware-cutout .phone-frame small{font-size:.7em}
picture.hardware-cutout .phone-frame strong{font-size:1.3em;margin:10% 0;line-height:1.15}
picture.hardware-cutout .phone-frame p{font-size:.85em;line-height:1.25;margin:0}

picture.hardware-cutout>.mobile-demo{left:70%;top:-4%;width:30%}
picture.hardware-cutout>.mobile-demo{height:64%}
picture.hardware-cutout .phone-frame{font-size:clamp(9px,1.4vw,16px);padding:27% 27% 12%;transform:rotate(-6deg)}
picture.hardware-cutout .phone-frame p{display:none}
picture.hardware-cutout .phone-frame strong{font-size:1.15em;line-height:1.2;margin:15% 0}
picture.hardware-cutout .phone-frame small{font-size:.6em;line-height:1.2}
.pos-fitted .device-controls{gap:6px;padding-top:4px}
.pos-fitted .device-controls button{font-size:clamp(14px,1.9vw,22px);padding:3px 9px;min-width:30px;min-height:28px}
.pos-fitted .device-controls span{display:none}
.pos-fitted b{font-size:.75em}.pos-fitted small{font-size:.43em}


.pos-fitted{justify-content:space-between;padding:6px 9px;gap:3px}
.pos-fitted b{font-size:.82em;line-height:1.08;flex:0 0 auto}
.pos-fitted>small{font-size:.46em;line-height:1.15;flex:1;display:flex;align-items:center;justify-content:center}
.pos-fitted .device-controls{flex:0 0 auto;margin:0;gap:7px;padding:0}
.pos-fitted .device-controls button{font-size:clamp(14px,2.2vw,26px);padding:2px 10px;min-height:26px;line-height:1.1}
picture.hardware-cutout .phone-frame{padding-top:22%}
picture.hardware-cutout .phone-frame>strong{font-size:1em;margin:9% 0 6%}
.phone-dashboard{width:100%;color:#ddfff0}
.phone-dashboard>small{display:block!important;font-size:.43em!important;letter-spacing:0}
.phone-metric{display:grid;grid-template-columns:1fr 1fr;gap:2px 5px;margin:7px 0}
.phone-metric b{font-size:1.05em;grid-row:1}.phone-metric span{font-size:.45em;grid-row:2}
.phone-dashboard svg{display:block;width:100%;height:auto}
.phone-bars{height:24px;display:flex;align-items:end;gap:4px;margin-top:4px}
.phone-bars i{display:block;flex:1;background:#58cdaa;height:45%;border-radius:2px}.phone-bars i:nth-child(2){height:80%}.phone-bars i:nth-child(3){height:65%}.phone-bars i:nth-child(4){height:100%}.phone-bars i:nth-child(5){height:75%}

/* Audit correction: scale within the physical display, offer a readable detail. */
.pos-fitted{box-sizing:border-box;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);padding:3% 2%;padding:4px;gap:1px;overflow:hidden}
.pos-fitted>b{font-size:.64em;min-width:0;overflow-wrap:anywhere;align-self:center}
.pos-fitted>small{font-size:.34em;min-height:0;line-height:1.1;align-self:center}
.pos-fitted .device-controls{min-height:0;height:100%;gap:3px;align-items:center;justify-content:center}
.pos-fitted .device-controls button{box-sizing:border-box;min-height:0;min-width:0;height:90%;max-height:32px;padding:0 6px;font-size:clamp(9px,calc(var(--screen-height)*.13),20px);line-height:1}
picture.hardware-cutout .phone-frame{display:flex;flex-direction:column;padding:22% 27% 12%;gap:2px;overflow:hidden}
picture.hardware-cutout .phone-frame>small{flex:none;font-size:.5em}
picture.hardware-cutout .phone-frame>strong{flex:none;font-size:.75em;line-height:1.1;margin:1px 0}
picture.hardware-cutout .phone-dashboard{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.phone-dashboard svg{min-height:0;flex:1}.phone-metric{margin:2px 0;flex:none}.phone-bars{display:none}
.device-expand{display:block;margin:12px auto 28px;padding:12px 18px;border:1px solid var(--line,#52645b);border-radius:12px;background:var(--panel,#11231c);color:var(--text,#eafff3);cursor:pointer;font:inherit}
.device-detail{max-width:620px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;padding:24px;background:#101713;color:#ebfff3;border:1px solid #527a6c;border-radius:18px}
.device-detail::backdrop{background:#000b}.device-detail-close{float:right;min-width:44px;min-height:44px;font-size:28px;background:#234337;color:white;border:0;border-radius:8px}
.device-detail-content .pos-fitted{position:static!important;transform:none!important;width:100%!important;height:210px!important;font-size:32px!important;padding:14px;--screen-height:210px!important;border:5px solid #40574c;border-radius:12px}
.device-detail-content .device-controls button{min-width:44px;min-height:44px;max-height:none}
.device-detail-content .mobile-demo{position:static;width:100%;height:auto;margin:22px 0;display:block}
.device-detail-content .phone-frame{position:static;transform:none;box-sizing:border-box;width:100%;height:auto;min-height:0;padding:22px;background:#173327;border:1px solid #527a6c;border-radius:18px;font-size:18px}
.device-detail-content .phone-frame>small{font-size:14px}.device-detail-content .phone-frame>strong{font-size:22px;margin:12px 0}.device-detail-content .phone-frame p{font-size:16px}
.device-detail-content .phone-dashboard>small{font-size:13px!important}.device-detail-content .phone-dashboard svg{max-height:110px}.device-detail-content .phone-metric span{font-size:14px}.device-detail-content .phone-metric b{font-size:24px}

body .device-detail-content .pos-fitted{background:#102f29!important;color:#edfff7!important}
body .device-detail-content .pos-fitted>b,body .device-detail-content .pos-fitted>small{color:#edfff7!important}
.operator-info{flex-basis:100%;font-size:14px;line-height:1.6}.operator-info p{margin:6px 0}footer{flex-wrap:wrap}
.studio-scene{margin:0 0 24px;overflow:hidden;border-radius:14px;background:#101513}.studio-scene img{display:block;width:100%;height:auto;object-fit:contain;max-height:none}
.studio-story-caption{margin:0;padding:12px 16px;font-size:.85rem;line-height:1.5;color:var(--muted);text-align:center}.studio-scene+ b{display:block}
.pos-fitted{grid-template-rows:32% 36% 32%;align-content:stretch}.pos-fitted>b,.pos-fitted>small{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:0;min-height:0}.pos-fitted .device-controls{width:100%;justify-self:center;justify-content:center;align-self:end;flex-wrap:nowrap;box-sizing:border-box}.device-detail-content .pos-fitted{grid-template-rows:32% 36% 32%}
.print-studio-photo{display:block;width:100%;height:auto;border-radius:12px}.print-story-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.print-story-steps span{display:flex;flex-direction:column;gap:8px;font-size:.9rem}.print-story-steps b{color:var(--mint,#60edb8)}
html picture.studio-hardware>img{width:100%;height:auto;max-height:none;object-fit:contain}picture.studio-hardware{container-type:inline-size}
picture.studio-hardware>.pos-fitted{left:32.8%!important;top:18.3%!important;width:36.2%!important;height:29.8%!important;transform:none!important;font-size:clamp(12px,3cqw,28px)!important;padding:2%;grid-template-rows:32% 36% 32%;box-sizing:border-box}
picture.studio-hardware .pos-fitted>b{font-size:1em}picture.studio-hardware .pos-fitted>small{font-size:.56em}picture.studio-hardware .pos-fitted .device-controls button{font-size:clamp(10px,1.8cqw,22px);padding:0 5px;max-height:32px;width:22%;height:90%}
picture.studio-hardware>.mobile-demo{left:86.8%;top:42%;width:7.5%;height:21.5%;transform:none}picture.studio-hardware .phone-frame{background:none;transform:none;padding:2px;font-size:clamp(3px,.65cqw,9px);border:0;box-shadow:none;border-radius:0}picture.studio-hardware .phone-camera,picture.studio-hardware .phone-home{display:none}picture.studio-hardware .phone-frame>strong{font-size:1em}picture.studio-hardware .phone-frame>small{font-size:.7em}
@media(max-width:600px){.print-story-steps{grid-template-columns:1fr}.print-story-steps span{padding:12px;border-top:1px solid #345047}picture.studio-hardware>.pos-fitted{padding:1%;font-size:clamp(9px,3cqw,18px)!important}}
picture.studio-hardware>.pos-fitted{gap:0}.switch-lights{display:none!important}html .td-story picture.studio-hardware{mask-image:none!important;filter:none!important}html .td-story picture.studio-hardware>img{mask-image:none!important;filter:none!important}
picture.studio-hardware>.pos-fitted,.device-detail-content .pos-fitted{grid-template-columns:minmax(0,1fr);justify-content:stretch}.pos-fitted>.device-controls{justify-self:stretch;width:100%}
/* Contain keeps every photographed subject inside its card at all widths. */
.studio-scene.studio-cutout{display:block;margin:0 0 24px;padding:0;background:#101713;border:0;overflow:visible}
.studio-scene.studio-cutout img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:10px;max-height:none}
.studio-cutout .studio-story-caption{margin:0;padding:12px 4px 4px;text-align:center;line-height:1.6;font-size:.8rem;color:#c5ddd5;overflow-wrap:anywhere}
.studio-cutout-print{object-fit:contain;max-height:none;width:100%;height:auto}
.studio-ecr{display:block;max-width:640px;width:100%;height:auto;object-fit:contain;margin:16px 0 24px;border-radius:12px}
@media(max-width:600px){.studio-scene.studio-cutout{margin-bottom:20px}.studio-cutout .studio-story-caption{font-size:.85rem}}

