/* Xicorta V2_30 — Public Site Mobile Foundation.
   Scope: public website and demo preview only. Operational CRM is not converted
   into a mobile web product by this layer. */
:root{
  --x-mobile-edge:18px;
  --x-mobile-nav-h:64px;
  --x-safe-bottom:max(18px, env(safe-area-inset-bottom));
}
.x-mobile-controls,.x-mobile-menu,.x-mobile-menu-backdrop,.x-cta-mobile{display:none}
.x-cta-desktop{display:inline}

/* Mobile demo preview is usable on desktop too, but is designed phone-first. */
.x-mobile-demo-page{position:relative;padding:52px 0 80px;overflow:hidden}
.x-mobile-demo-page:before{content:"";position:absolute;inset:-10% 0 auto;height:520px;background:radial-gradient(circle at 54% 15%,rgba(20,108,255,.2),transparent 52%),radial-gradient(circle at 86% 20%,rgba(103,60,255,.16),transparent 42%);pointer-events:none}
.x-mobile-demo-shell{position:relative;z-index:1;max-width:1180px}
.x-mobile-demo-gate{display:flex;gap:18px;align-items:flex-start;padding:18px 20px;margin:0 auto 34px;border:1px solid rgba(68,138,255,.34);border-radius:20px;background:linear-gradient(135deg,rgba(16,36,72,.7),rgba(8,16,31,.92));max-width:960px}
.x-mobile-demo-gate__icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:14px;background:rgba(30,111,255,.16);color:#3f96ff;font-size:22px}
.x-mobile-demo-gate strong{display:block;font-size:17px;margin:1px 0 4px}
.x-mobile-demo-gate p{margin:0;color:#aebbd3;line-height:1.55}
.x-mobile-demo-hero{display:grid;grid-template-columns:minmax(360px,1fr) minmax(300px,386px);gap:64px;align-items:center;max-width:1000px;margin:0 auto 50px}
.x-mobile-demo-copy h1{font-size:clamp(40px,4.2vw,58px);line-height:1.03;letter-spacing:-.055em;margin:0 0 20px}
.x-mobile-demo-lead{font-size:17px;line-height:1.72;color:#aebad0;margin:0 0 28px}
.x-mobile-demo-actions{display:flex;gap:12px;flex-wrap:wrap}
.x-mobile-demo-copy-status{height:22px;margin:10px 0 0;color:#40d292;font-weight:700;font-size:13px}
.x-mobile-demo-phone{border:1px solid rgba(64,133,255,.34);padding:13px;border-radius:34px;background:linear-gradient(180deg,rgba(12,23,43,.98),rgba(5,10,21,.98));box-shadow:0 38px 100px rgba(0,0,0,.5),0 0 80px rgba(29,102,255,.12);overflow:hidden}
.x-mobile-demo-phone__top{height:43px;display:flex;align-items:center;gap:9px;font-size:12px;color:#cbd6e9;padding:0 5px}.x-mobile-demo-phone__top span{width:9px;height:9px;border-radius:50%;background:#41d78b;box-shadow:0 0 12px #41d78b}.x-mobile-demo-phone__top b{font-weight:850}.x-mobile-demo-phone__top em{margin-left:auto;font-style:normal;color:#7790b5}
.x-mobile-demo-phone img{width:100%;height:434px;object-fit:cover;object-position:left top;border-radius:19px;border:1px solid rgba(255,255,255,.08)}
.x-mobile-demo-phone__bar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:12px}.x-mobile-demo-phone__bar div{padding:9px 7px;text-align:center;border-radius:13px;background:rgba(255,255,255,.04)}.x-mobile-demo-phone__bar strong{display:block;font-size:16px}.x-mobile-demo-phone__bar span{display:block;font-size:10px;color:#8f9db5}
.x-mobile-demo-directions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1000px;margin:0 auto 24px}
.x-mobile-demo-directions article{padding:24px;border:1px solid rgba(255,255,255,.1);border-radius:22px;background:rgba(10,19,35,.8)}
.x-mobile-demo-directions article > span{color:#2f86ff;font-size:12px;font-weight:900;letter-spacing:.12em}.x-mobile-demo-directions h2{font-size:25px;margin:16px 0 10px}.x-mobile-demo-directions p{min-height:54px;color:#a8b5cb;line-height:1.55;margin:0 0 18px}.x-mobile-demo-directions a{color:#2f86ff;font-weight:850}
.x-mobile-demo-features{display:grid;grid-template-columns:.92fr 1.08fr;gap:34px;align-items:center;max-width:1000px;margin:40px auto 24px;padding:34px;border:1px solid rgba(255,255,255,.1);border-radius:28px;background:linear-gradient(135deg,rgba(10,21,42,.88),rgba(5,10,20,.92))}
.x-mobile-demo-features h2{font-size:32px;line-height:1.12;margin:0}.x-mobile-demo-feature-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.x-mobile-demo-feature-list div{display:flex;gap:10px;align-items:center;padding:13px;border-radius:14px;background:rgba(255,255,255,.045);color:#38c883;font-weight:800}.x-mobile-demo-feature-list span{color:#dae4f5;font-weight:650}
.x-mobile-demo-final{text-align:center;max-width:820px;margin:44px auto 0;padding:39px;border:1px solid rgba(49,122,255,.34);border-radius:28px;background:radial-gradient(circle at 50% 0,rgba(36,116,255,.19),transparent 60%),rgba(8,15,30,.8)}
.x-mobile-demo-final h2{font-size:35px;margin:0 0 12px}.x-mobile-demo-final p{max-width:630px;margin:0 auto 26px;color:#a8b6ca;font-size:16px;line-height:1.65}.x-mobile-demo-final .x-mobile-demo-actions{justify-content:center}

@media (max-width:1023px){
  html{overflow-x:hidden}
  body.x-body{overflow-x:hidden}
  .x-container{width:min(100% - calc(var(--x-mobile-edge) * 2),720px)}
  .x-nav{height:var(--x-mobile-nav-h);z-index:80}
  .x-nav__inner{gap:14px}
  .x-brand__logo{width:154px!important;max-height:42px!important}
  .x-menu,.x-actions--desktop{display:none!important}
  .x-mobile-controls{display:flex;align-items:center;gap:9px;margin-left:auto}
  .x-lang-switch--mobile{display:flex!important;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.03);border-radius:10px;padding:3px;gap:2px}
  .x-lang-switch--mobile a{min-width:29px;padding:6px 4px;border-radius:7px;font-size:11px;font-weight:800;color:#96a4bd;text-align:center}
  .x-lang-switch--mobile a.active{color:#fff;background:rgba(30,111,255,.22)}
  .x-mobile-nav-toggle{display:grid;align-content:center;gap:5px;width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.035);padding:0 12px;cursor:pointer}
  .x-mobile-nav-toggle span{display:block;width:100%;height:2px;border-radius:5px;background:#ecf3ff;transition:.18s ease}
  body.x-mobile-menu-open{overflow:hidden}
  .x-mobile-menu-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:89;backdrop-filter:blur(3px)}
  .x-mobile-menu-backdrop.is-open{display:block}
  .x-mobile-menu{display:flex;flex-direction:column;position:fixed;z-index:90;right:0;top:0;bottom:0;width:min(92vw,380px);padding:20px 18px calc(18px + var(--x-safe-bottom));background:linear-gradient(180deg,#091326,#050a13);border-left:1px solid rgba(255,255,255,.11);box-shadow:-32px 0 84px rgba(0,0,0,.5);transform:translateX(102%);visibility:hidden;transition:transform .24s ease,visibility .24s ease}
  .x-mobile-menu.is-open{transform:translateX(0);visibility:visible}
  .x-mobile-menu__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;color:#889bb8;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
  .x-mobile-menu__head button{display:grid;place-items:center;height:42px;width:42px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:transparent;color:#fff;font-size:27px;line-height:1}
  .x-mobile-menu__links{display:grid;border-top:1px solid rgba(255,255,255,.08)}
  .x-mobile-menu__links a{display:flex;align-items:center;min-height:53px;border-bottom:1px solid rgba(255,255,255,.08);font-size:17px;font-weight:700;color:#dce7f8}
  .x-mobile-menu__links a:after{content:"→";margin-left:auto;color:#3a8dff}
  .x-mobile-menu__actions{display:grid;gap:10px;margin-top:auto;padding-top:24px}
  .x-mobile-menu__actions .x-btn{width:100%;min-height:52px}
  .x-mobile-menu__note{color:#8495b0;font-size:12px;line-height:1.5;margin:16px 2px 0}
  .x-cta-desktop{display:none!important}.x-cta-mobile{display:inline!important}
  .x-btn{min-height:50px;padding:13px 20px}
  .x-hero__actions{gap:10px;flex-direction:column;align-items:stretch}.x-hero__actions .x-btn{width:100%}
  .x-breadcrumb{margin-bottom:28px}
  .x-section{padding:42px 0}
  .x-footer{padding-top:38px}
  .x-footer__grid{grid-template-columns:1fr!important;gap:28px!important}.x-footer__brand{max-width:none!important}.x-footer__bottom{display:grid!important;gap:8px!important;padding-bottom:calc(22px + var(--x-safe-bottom))!important}

  /* Public home page. */
  .x-product-hero-cinematic{padding:0!important;min-height:auto!important}
  .x-product-hero-cinematic--edge .x-container.x-product-hero-grid{width:min(100% - calc(var(--x-mobile-edge) * 2),720px)!important;padding:38px 0 34px!important;display:block!important}
  .x-product-hero-copy{max-width:none!important;padding:0!important}
  .x-product-hero-copy .x-eyebrow{margin-bottom:16px!important;font-size:11px!important}
  .x-product-hero-copy .x-title{font-size:clamp(37px,11.2vw,54px)!important;line-height:1.02!important;margin-bottom:18px!important}
  .x-product-hero-copy .x-lead{font-size:15.5px!important;line-height:1.65!important;margin-bottom:22px!important}
  .x-product-hero-copy .x-hero__actions{margin:0 0 28px!important}
  .x-product-hero-copy .x-hero-metrics{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:0!important;max-width:none!important}
  .x-product-hero-copy .x-metric-mini,.x-product-hero-copy .x-metric-mini:nth-child(2),.x-product-hero-copy .x-metric-mini:last-child{display:grid!important;grid-template-columns:46px auto 1fr!important;align-items:center!important;gap:13px!important;padding:12px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:16px!important;background:rgba(8,17,34,.58)!important}
  .x-product-hero-copy .x-metric-mini .icon{margin:0!important;width:43px!important;height:43px!important}
  .x-product-hero-copy .x-metric-mini strong{font-size:23px!important}
  .x-product-hero-copy .x-metric-mini span{margin:0!important;font-size:12px!important}
  .x-product-interactive-panel{margin-top:24px!important}
  .x-product-hero-cinematic--edge .x-product-switcher-wrap{margin-top:0!important;padding:8px!important;border-radius:20px!important}
  .x-product-hero-cinematic--edge .x-product-switcher-label{padding:8px 9px 9px!important;font-size:10px!important}
  .x-product-hero-cinematic--edge .x-product-switcher--vertical{--dock-item-h:78px!important}
  .x-product-hero-cinematic--edge .x-product-switcher--vertical button{grid-template-columns:47px minmax(0,1fr) 32px!important;gap:10px!important;padding:9px!important}
  .x-product-hero-cinematic--edge .x-product-switcher--vertical .switch-icon{width:43px!important;height:43px!important;border-radius:12px!important}
  .x-product-hero-cinematic--edge .x-product-switcher--vertical strong{font-size:17px!important}
  .x-product-hero-cinematic--edge .x-product-switcher--vertical em{font-size:11px!important}
  .x-product-hero-cinematic--edge .x-solution-preview{padding:21px!important;border-radius:21px!important}
  .x-product-hero-cinematic--edge .x-solution-preview h3{font-size:28px!important}.x-product-hero-cinematic--edge .x-solution-preview p{font-size:14px!important}
  .why-section .reasons,.reasons--large{grid-template-columns:1fr!important;gap:10px!important}
  .why-section .reason,.reasons--large .reason{display:grid!important;grid-template-columns:50px 1fr!important;column-gap:14px!important;align-items:center!important;text-align:left!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:17px!important;padding:15px!important}
  .why-section .reason__icon,.reasons--large .reason__icon{grid-row:1/3;margin:0!important}.why-section .reason h3,.reasons--large .reason h3{margin:0!important}.why-section .reason p,.reasons--large .reason p{margin-top:3px!important}
  .cta-wide,.cta-wide--large{padding:28px 20px!important;border-radius:22px!important;display:block!important;text-align:left!important}.cta-wide .x-btn,.cta-wide--large .x-btn{width:100%;margin-top:18px!important}

  /* Modules, solutions and detail pages. */
  .x-modules-marketplace-page,.x-module-product-page,.plan-page,.pricing-page,.enterprise-page,.simple-page{overflow:hidden}
  .x-modules-market-hero,.x-module-product-hero,.plan-detail-hero,.pricing-hero{grid-template-columns:1fr!important;gap:25px!important;padding:30px 0!important}
  .x-module-hero-actions,.x-module-detail-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.x-module-hero-actions .x-btn,.x-module-detail-actions .x-btn{width:100%}
  .x-module-filter{display:flex!important;overflow-x:auto!important;gap:8px!important;scrollbar-width:none!important;padding-bottom:5px!important}.x-module-filter::-webkit-scrollbar{display:none}.x-module-filter button,.x-module-chip{flex:0 0 auto!important;white-space:nowrap!important}
  .x-module-flip-grid,.x-module-category-stack,.x-module-feature-grid,.x-module-price-grid,.x-addon-chip-grid,.x-module-bundle-split,.x-plan-matrix-block{grid-template-columns:1fr!important}
  .x-module-flip-card{min-height:auto!important}.x-module-flip-front,.x-module-flip-back{position:relative!important;transform:none!important;min-height:auto!important}.x-module-flip-back{display:none!important}
  .x-module-addons-block,.x-module-addons-block--premium,.x-module-demo-band,.x-module-bundle-split,.x-module-feature-section,.x-plan-matrix-block{display:block!important;padding:20px!important;border-radius:21px!important}
  .x-module-price-grid{display:grid!important;gap:10px!important}.x-module-price-card{min-height:auto!important;padding:16px!important}
  .x-plan-matrix-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;margin:0 -4px!important}.x-plan-matrix{min-width:680px!important}
  .x-module-demo-band--final h2{font-size:28px!important}

  /* Pricing and purchase decision pages. */
  .pricing-hero-premium,.pricing-pro-grid,.pricing-panels,.addon-grid,.hosting,.pricing-segment-tabs__buttons,.plan-compare-grid,.plan-section-grid,.plan-result-grid,.plan-feature-grid,.plan-flow-steps{grid-template-columns:1fr!important}
  .pricing-hero,.pricing-hero--premium{padding:36px 0 20px!important}.pricing-hero-copy h1,.pricing-page h1{font-size:clamp(34px,10vw,46px)!important;line-height:1.08!important}
  .billing-switch,.billing-switch--pricing{display:flex!important;overflow-x:auto!important;scrollbar-width:none!important;gap:7px!important;padding:5px!important}.billing-switch::-webkit-scrollbar{display:none}.billing-switch button{flex:0 0 auto!important;min-width:98px!important}
  .pricing-pro-card{padding:21px!important;border-radius:20px!important}.pricing-pro-card .x-btn{width:100%!important}
  .lifetime-offer,.lifetime-offer--page{display:block!important;padding:25px 20px!important}.lifetime-price-list{margin-top:20px!important}
  .plan-hero-actions{display:grid!important;gap:10px!important}.plan-hero-actions .x-btn{width:100%!important}
  .plan-calculator,.plan-hero-card,.plan-panel{padding:20px!important;border-radius:21px!important}
  .calc-periods{display:flex!important;overflow-x:auto!important;gap:8px!important;scrollbar-width:none!important}.calc-periods button{flex:0 0 auto!important}
  .compare-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}.compare-table{min-width:680px!important}

  /* Demo launch page remains safe if opened from a desktop emulation; physical phone is redirected server-side. */
  .x-demo-page{padding:26px 0!important}.x-demo-shell{grid-template-columns:1fr!important;gap:16px!important}.x-demo-card{padding:22px!important;border-radius:22px!important}.x-demo-card h1{font-size:32px!important}.x-demo-main-btn{width:100%!important}.x-demo-value-grid{grid-template-columns:1fr!important}

  /* Mobile Demo Preview. */
  .x-mobile-demo-page{padding:28px 0 55px}
  .x-mobile-demo-gate{padding:14px;gap:12px;margin-bottom:25px;border-radius:17px}.x-mobile-demo-gate__icon{flex-basis:40px;height:40px}.x-mobile-demo-gate strong{font-size:14px}.x-mobile-demo-gate p{font-size:12.5px}
  .x-mobile-demo-hero{display:flex;flex-direction:column;gap:27px;margin-bottom:24px}
  .x-mobile-demo-copy h1{font-size:clamp(34px,10.2vw,46px);line-height:1.04;margin-bottom:14px}.x-mobile-demo-lead{font-size:15px;line-height:1.63;margin-bottom:22px}
  .x-mobile-demo-actions{display:grid;grid-template-columns:1fr;gap:9px}.x-mobile-demo-actions .x-btn{width:100%}
  .x-mobile-demo-phone{width:100%;max-width:390px;margin:0 auto;padding:10px;border-radius:26px}.x-mobile-demo-phone img{height:min(105vw,430px);border-radius:17px}.x-mobile-demo-phone__bar{gap:6px}
  .x-mobile-demo-directions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:26px}.x-mobile-demo-directions article{padding:19px;border-radius:17px}.x-mobile-demo-directions h2{font-size:22px;margin:9px 0 7px}.x-mobile-demo-directions p{min-height:0;margin-bottom:12px;font-size:14px}
  .x-mobile-demo-features{grid-template-columns:1fr;gap:20px;margin:26px auto 16px;padding:20px;border-radius:21px}.x-mobile-demo-features h2{font-size:28px}.x-mobile-demo-feature-list{grid-template-columns:1fr;gap:8px}.x-mobile-demo-feature-list div{padding:12px}
  .x-mobile-demo-final{margin-top:27px;padding:24px 18px;border-radius:21px;text-align:left}.x-mobile-demo-final h2{font-size:29px}.x-mobile-demo-final p{font-size:14px}.x-mobile-demo-final .x-mobile-demo-actions{justify-content:stretch}
}

@media (max-width:520px){
  :root{--x-mobile-edge:16px}
  .x-brand__logo{width:136px!important}
  .x-lang-switch--mobile a{min-width:27px;font-size:10px}
  .x-mobile-nav-toggle{height:42px;width:42px}
  .x-product-hero-copy .x-title{font-size:clamp(35px,11.3vw,44px)!important}
}
