/* XAE Landing v1.7 — UI-035..038 • scoped to XAE. */
body[data-xae-landing] .xp-contact-dialog .xp-modal-card{
 width:min(522px,calc(100vw - 22px))!important;
 max-height:min(88dvh,760px)!important;
 padding:14px 17px calc(15px + env(safe-area-inset-bottom))!important;
 border:1px solid #7191c25c;
 border-radius:18px!important;
 box-shadow:0 22px 56px #020c248c;
 scrollbar-gutter:auto!important;
}
body[data-xae-landing] .xp-contact-dialog .xp-modal-head{
 display:flex;align-items:center;margin:0 0 8px!important;
}
body[data-xae-landing] .xp-contact-dialog .xp-modal-head span{
 font-size:clamp(18px,4.7vw,23px);font-weight:800;color:#f3f7ff;line-height:1.2;
}
body[data-xae-landing] .xp-contact-dialog .contact-panel{padding:0!important;background:transparent!important}
body[data-xae-landing] .xp-contact-dialog .contact-panel>h3{display:none!important}
body[data-xae-landing] .xp-contact-dialog .contact-panel>p[data-i18n="formIntro"]{
 margin:4px 0 9px!important;font-size:13px;line-height:1.4;color:#c5d8f8!important;
}
body[data-xae-landing] .xp-contact-dialog .contact-panel .field{margin:5px 0 7px!important;min-width:0}
body[data-xae-landing] .xp-contact-dialog .contact-panel .field label{
 font-size:13px;line-height:1.25;margin:0 0 5px;font-weight:650;color:#e1edff;
}
body[data-xae-landing] .xp-contact-dialog .contact-panel .field input,
body[data-xae-landing] .xp-contact-dialog .contact-panel .field select,
body[data-xae-landing] .xp-contact-dialog .contact-panel .field textarea{
 width:100%;min-width:0;min-height:42px;height:42px;
 padding:9px 10px;background:#edf5ff;border:1px solid transparent;
 border-bottom-color:#83a6cf;border-radius:9px;color:#14385f;
 font-size:16px;line-height:1.25;box-shadow:none;outline-offset:2px;
}
body[data-xae-landing] .xp-contact-dialog .contact-panel .field :is(input,select,textarea):focus-visible{
 border-color:#558ce0;outline:2px solid #75a8ff;
}
body[data-xae-landing] .xae-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px;align-items:end;
}
body[data-xae-landing] #xae-comments-content[hidden]{display:none!important}
body[data-xae-landing] .xae-toggle-comments{
 display:flex;align-items:center;gap:9px;min-height:37px;margin:2px 0;
 color:#eaf2ff;font-size:14px;cursor:pointer;font-weight:630;
}
body[data-xae-landing] .xae-toggle-comments input{
 width:18px;height:18px;min-width:18px;accent-color:#458dfb;margin:0;
}
body[data-xae-landing] .xp-contact-dialog .contact-panel textarea#needs{
 resize:none;overflow-y:hidden;min-height:42px;height:42px;max-height:105px;
}
body[data-xae-landing] .xae-char-counter{
 display:block;margin-top:3px;color:#c7d9fa;font-size:12px;text-align:right;
 font-variant-numeric:tabular-nums;
}
body[data-xae-landing] .xp-contact-dialog .consent{
 margin:6px 0 9px;font-size:12px;line-height:1.4;color:#d9e7fa;
}
body[data-xae-landing] .xp-contact-dialog .xp-contact-buttons{gap:4px}
body[data-xae-landing] .xp-contact-dialog .xp-contact-buttons .btn{min-height:44px;padding:10px;font-size:14px}
body[data-xae-landing] .xp-contact-dialog .form-note{
 font-size:11px!important;line-height:1.4;margin:7px 0 0;color:#b3c9e9!important;
}
body[data-xae-landing] .xp-modal .xp-pref select{min-height:44px;font-size:14px}
body[data-xae-landing] #xp-modal .xp-modal-card{max-height:88dvh}
/* UI-036: compact XAE Intelligence scene at the central junction.
   It is entirely decorative and never intercepts card gestures. */
body[data-xae-landing] #ecosistema .arch-mark.xae-intelligence-mark{
 width:91px;height:91px;position:absolute;left:50%;top:50%;
 transform:translate(-50%,-50%);border-radius:19px;
 background:linear-gradient(140deg,#1a4d9a,#081c42);
 border:1px solid #8cbaff;
 box-shadow:0 0 0 5px #102e56,0 0 25px #3175dc91;
 pointer-events:none;isolation:isolate;z-index:4;
 animation:xae-center-float 6s ease-in-out infinite;
 overflow:visible;
}
body[data-xae-landing] #ecosistema .xae-intelligence-core{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 position:relative;z-index:2;color:#fff;text-align:center;
}
body[data-xae-landing] #ecosistema .xae-intelligence-core strong{
 font-size:26px;letter-spacing:.08em;font-weight:880;line-height:1.1;
}
body[data-xae-landing] #ecosistema .xae-intelligence-core small{
 font-size:7px;letter-spacing:.1em;color:#deecff;font-weight:650;
}
body[data-xae-landing] #ecosistema .xae-intelligence-orbit{
 position:absolute;inset:-11px;border-radius:24px;border:1px solid #70a9ed94;
 pointer-events:none;z-index:1;
}
body[data-xae-landing] #ecosistema .xae-intelligence-orbit-a{
 animation:xae-intelligence-spin 16s linear infinite;transform:rotate(0deg);
}
body[data-xae-landing] #ecosistema .xae-intelligence-orbit-b{
 inset:-17px;border-radius:30px;border-style:dashed;opacity:.4;
 animation:xae-intelligence-spin 23s linear infinite reverse;
}
@keyframes xae-center-float{
 0%,100%{transform:translate(-50%,-50%) translateY(0)}
 50%{transform:translate(-50%,-50%) translateY(-5px)}
}
@keyframes xae-intelligence-spin{to{transform:rotate(360deg)}}
/* UI-037: two-arm process trees; final node is the only green outcome. */
body[data-xae-landing] .steps.xae-workflow{
 height:865px!important;min-height:0;margin-top:18px;max-width:100%;
}
body[data-xae-landing] .steps.xae-workflow.xae-full-workflow{height:1010px!important}
body[data-xae-landing] .xae-graph.is-enhanced .xae-node[data-final=true]{
 min-height:78px;
}
body[data-xae-landing] .xae-graph.is-enhanced .xae-node[data-final=true] strong{
 font-size:clamp(12px,2vw,16px);line-height:1.25;
}
body[data-xae-landing] .xae-graph .xae-flow-success{display:none!important}
body[data-xae-landing] .xae-graph.xae-flow-complete .xae-node[data-final=true]{
 border-color:#079463!important;background:linear-gradient(145deg,#e4fff0,#c7f1df)!important;
 box-shadow:0 0 0 3px #2ece9956,0 7px 25px #0b946144!important;
 color:#0b543c!important;
}
body[data-xae-landing] .xae-graph.xae-flow-complete .xae-node[data-final=true]::after{
 content:"✓";position:absolute;top:-10px;right:-7px;
 width:23px;height:23px;display:grid;place-items:center;
 border-radius:50%;background:#0c9867;color:#fff;font-size:16px;font-weight:800;
 border:2px solid #e7fff3;
}
body[data-xae-landing] .xae-graph.xae-flow-complete .xae-node[data-final=true] small{
 color:#136b51!important;
}
body[data-xae-landing] .xae-graph .xae-node[data-final=true]{
 padding-inline:6px;
}
body[data-xae-landing] .flow-board{min-width:0}
body[data-xae-landing] .xae-flow-scrolltrack{max-width:100%;min-width:0}
@media(max-width:690px){
 body[data-xae-landing] .xp-contact-dialog .xp-modal-card{
  width:min(500px,calc(100vw - 16px))!important;
  max-height:calc(100dvh - 54px)!important;
  padding:12px 12px calc(12px + env(safe-area-inset-bottom))!important;
  border-radius:16px!important;
 }
 body[data-xae-landing] .xp-contact-dialog .xp-modal-head{margin-bottom:5px!important}
 body[data-xae-landing] .xae-form-grid{gap:8px}
 body[data-xae-landing] .steps.xae-workflow{height:930px!important}
 body[data-xae-landing] .steps.xae-workflow.xae-full-workflow{height:1090px!important}
 body[data-xae-landing] .xae-graph .xae-node strong{font-size:12px!important}
 body[data-xae-landing] .xae-graph .xae-node small{font-size:11px!important}
 body[data-xae-landing] .xae-graph .xae-node[data-final=true] strong{font-size:12px!important}
 body[data-xae-landing] #ecosistema .arch-mark.xae-intelligence-mark{width:79px;height:79px;border-radius:17px}
 body[data-xae-landing] #ecosistema .xae-intelligence-core strong{font-size:23px}
 body[data-xae-landing] #ecosistema .xae-intelligence-core small{font-size:6px}
}
@media(max-width:355px){
 body[data-xae-landing] .xae-form-grid-identity,body[data-xae-landing] .xae-form-grid-process{
  grid-template-columns:minmax(0,1fr);
 }
 body[data-xae-landing] .xp-contact-dialog .xp-modal-card{max-height:calc(100dvh - 24px)!important}
 body[data-xae-landing] .steps.xae-workflow{height:1000px!important}
 body[data-xae-landing] .steps.xae-workflow.xae-full-workflow{height:1170px!important}
}
@media(prefers-reduced-motion:reduce){
 body[data-xae-landing] #ecosistema .arch-mark.xae-intelligence-mark,
 body[data-xae-landing] #ecosistema .xae-intelligence-orbit{animation:none!important}
}
