/* Shared mobile layout for the home page and product pages. */
html{scroll-padding-top:90px;-webkit-text-size-adjust:100%}
body{overflow-wrap:break-word}
.wrap>*{min-width:0}
button,a,input,select,textarea{touch-action:manipulation}
[hidden]{display:none!important}
@media(max-width:1000px) and (min-width:761px){
  .nav{gap:15px}.navlinks{gap:13px;font-size:13px}.nav>.btn{padding:10px 14px}
  .hero{gap:24px;padding:50px 0}.hero h1{font-size:48px}
  .product-intro{gap:24px}.product-nav{gap:15px}
}
@media(max-width:760px){
  .wrap{width:calc(100% - 32px);max-width:600px}
  body{font-size:16px;line-height:1.8}
  h1,h2,h3{letter-spacing:0!important}
  .section{padding:36px 0}.heading{display:block;margin-bottom:20px}
  .sec-label{font-size:12px;margin-bottom:6px}.sec-title{font-size:28px;line-height:1.45}
  .sec-desc{font-size:14px;line-height:1.9;margin-top:8px}
  .btn{min-height:46px;padding:11px 16px;font-size:14px;border-radius:12px;white-space:normal;text-align:center}
  .brand{gap:8px;font-size:15px}.brand img{width:43px;height:43px;border-radius:9px}
  .brand small{font-size:8px;letter-spacing:1px}
  /* A full-width header follows its actual height instead of a fixed strip. */
  .top:after{display:none}.top .nav{min-height:72px;gap:10px;isolation:isolate}
  .top .nav:before{content:"";position:absolute;inset:0 -30px;background:#300d3d;z-index:-1;border-bottom:1px solid #ffffff1c}
  .nav>.btn{display:none}.menu{display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff35;border-radius:11px;background:#ffffff0a;flex-shrink:0}
  .navlinks{display:none;position:absolute;top:calc(100% + 8px);right:0;left:0;gap:4px;padding:10px;background:#300d3d;border:1px solid #ffffff30;border-radius:15px;box-shadow:0 15px 35px #16091c66;z-index:30;max-height:75dvh;overflow-y:auto}
  .navlinks.open{display:flex;flex-direction:column}.navlinks a{display:flex;align-items:center;gap:8px;padding:11px 13px;min-height:46px;border-radius:9px;font-size:15px}.navlinks a:hover{background:#ffffff0e}.navlinks .products-nav-link{background:#ffd33f12}
  .hero{grid-template-columns:1fr;min-height:0;padding:30px 0 26px;gap:22px}
  .hero h1{font-size:clamp(32px,8.8vw,43px);line-height:1.4;margin:14px 0}
  .hero p{font-size:15px;line-height:1.9}.hero .eyebrow{font-size:11px}
  .hero .actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}
  .mini{margin-top:18px;gap:8px 15px;font-size:11px}.visual{display:none}
  .platforms{padding:15px 0;gap:10px;flex-direction:column;align-items:flex-start}
  .platforms strong{font-size:12px}.platforms .items{gap:12px 20px}.platforms .items span{font-size:12px}
  .showcase-nav{grid-template-columns:1fr 1fr;gap:9px;padding-top:18px}
  .showcase-link{padding:13px 11px;gap:8px;align-items:flex-start;border-radius:13px}
  .showcase-link>svg{width:22px;height:22px;margin-top:3px}.showcase-link span{font-size:14px;line-height:1.5}
  .showcase-link small{font-size:10px;margin-top:5px;line-height:1.7}.showcase-link b,.showcase-link>svg:last-child:not(:first-child){display:none}
  #products{padding:27px 0 32px}.products{grid-template-columns:1fr;gap:17px}
  #products .sec-title{font-size:27px}#products .sec-title svg{width:25px;height:25px}
  .products .product-card{border-radius:17px;box-shadow:0 6px 22px #5d167409}
  .products .product-teaser-image{height:200px;padding:12px 16px 30px;min-height:0}
  .products .product-teaser-image img{height:auto;max-height:160px;width:100%;object-fit:contain}
  .products .accounting-teaser .product-teaser-image img{height:165px;width:auto;max-width:43%}
  .products .projectbody{padding:19px}.products h3{font-size:24px;margin:6px 0}
  .products .product-badge{font-size:11px;padding:3px 10px}.products .kind{font-size:12px}
  .products .product-price-summary{gap:8px;align-items:baseline;margin:8px 0 12px}
  .products .product-price-summary strong{font-size:29px}.products .product-price-summary span{font-size:12px}
  .products .product-card p{font-size:14px;line-height:1.8;margin-bottom:14px}
  .product-highlights{gap:6px}.product-highlights li{font-size:11px;padding:4px 8px}
  .products .product-actions{width:100%;margin-top:5px}.products .product-actions .btn{width:100%;font-size:14px}
  .desktop-teaser-caption{font-size:11px}
  .service-grid{grid-template-columns:1fr 1fr;gap:11px}.service{padding:18px 14px;border-radius:14px}
  .serviceicon{width:42px;height:42px;margin-bottom:12px}.service h3{font-size:16px}.service p{font-size:13px}.service .tech{font-size:10px}
  /* Scrollable category pills keep every filter reachable without a tall block. */
  .filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding:8px;scrollbar-width:thin;scrollbar-color:#c7aed3 transparent;scroll-padding-inline:8px;-webkit-overflow-scrolling:touch}
  .filter{flex:0 0 auto;min-height:44px;padding:9px 12px;gap:6px;white-space:nowrap;font-size:13px;border-radius:10px}.filter svg{width:17px;height:17px}
  .projects{grid-template-columns:1fr;gap:16px}.project{border-radius:15px}
  .project .art{height:170px;gap:24px}.project .appicon{width:65px;height:65px;border-radius:15px}.project .mockphone{width:83px;height:160px}
  .project .projectbody{padding:18px}.project h3{font-size:19px;margin:6px 0}.project p{font-size:14px;line-height:1.8;margin-bottom:14px}.project .kind{font-size:12px}
  .projectlinks{gap:8px}.projectlinks a{min-height:44px;padding:9px 12px;font-size:12px;border-radius:9px}.app-platforms span{font-size:11px;padding:3px 9px}
  .work-more{margin-top:22px}.work-more .btn{width:100%}.storestrip{align-items:stretch;padding:18px;gap:15px}.storestrip .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.storestrip .btn{padding-inline:10px;font-size:12px}
  .aboutgrid,.contactgrid{grid-template-columns:1fr;gap:24px}.aboutcopy p{font-size:14px}.step{padding:15px;gap:12px}.step p{font-size:13px}
  .contact{padding:35px 0}.contact p{font-size:14px}.contactlinks{gap:8px}.contactlinks a{min-height:44px;display:inline-flex;align-items:center;margin:0;padding:9px 12px}
  .contactform{padding:18px;gap:14px}.contactform input,.contactform select,.contactform textarea{font-size:16px;min-height:46px;padding:10px}
  .footer .wrap{gap:12px}.footer .wrap>div{display:flex;flex-wrap:wrap;gap:6px 15px}.footer a{margin:0;min-height:36px;display:inline-flex;align-items:center}
  /* Product pages */
  .product-nav{padding:12px 0;flex-wrap:nowrap;gap:10px}.product-nav .brand{font-size:13px}.product-nav .brand small{font-size:7px}.product-nav .brand img{width:37px;height:37px}.product-nav>.btn{font-size:12px;min-height:42px;padding:8px 10px;flex-shrink:0}
  .product-hero{padding:26px 0 30px}.product-intro{grid-template-columns:1fr;gap:23px}
  .product-intro h1{font-size:clamp(29px,8vw,37px);line-height:1.45;margin:12px 0}
  .product-intro p{font-size:15px;line-height:1.9}.product-intro .product-badge{font-size:11px;margin-bottom:0}
  .product-intro .product-price{margin:13px 0 18px}.product-price strong{font-size:38px}.product-price p{font-size:13px}
  .product-intro .actions{display:grid;grid-template-columns:1.35fr 1fr;gap:9px;margin-top:20px}.product-intro .actions .btn{padding:11px 10px;min-height:48px}
  .product-intro .product-cover{display:block;max-width:420px;padding:7px;border-radius:13px}.product-intro .product-cover img{height:auto!important;max-height:195px;object-fit:contain}
  .product-intro .accounting-cover{display:grid;max-width:300px;gap:10px;padding:12px 12px 6px}.product-intro .accounting-cover img{height:210px!important;max-height:210px}
  .desktop-cover-caption{font-size:11px}
  .feature-list{grid-template-columns:1fr 1fr;gap:10px}.feature-item{padding:16px 13px;border-radius:13px}.feature-item h3{font-size:16px;line-height:1.6}.feature-item p{font-size:13px;line-height:1.85}.feature-item b{font-size:16px;margin-bottom:8px}
  .full-product-details summary{padding:17px 15px;font-size:15px;line-height:1.7}.full-product-details summary span{display:block;margin:4px 0 0;font-size:12px}.full-details-content{padding:0 15px 18px}.full-details-grid{grid-template-columns:1fr;gap:17px}.full-details-grid p{font-size:14px}
  .gallery-stage{padding:9px;border-radius:14px}.gallery-stage img{height:auto;max-height:350px;min-height:200px;object-fit:contain}.gallery-caption{font-size:13px;margin:12px 0}
  .gallery-thumbs{display:flex;flex-wrap:nowrap;gap:9px;max-height:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:5px 2px 10px;scrollbar-width:thin;scrollbar-color:#c7aed3 transparent;-webkit-overflow-scrolling:touch}
  .gallery-thumb{flex:0 0 106px;scroll-snap-align:start;min-width:0;padding:7px;border-radius:11px}.gallery-thumb img{height:82px}.gallery-thumb span{font-size:11px;line-height:1.6;margin-top:6px}
  .product-share-details{padding:15px;margin-bottom:25px}.product-sharing{grid-template-columns:1fr;gap:12px}.share-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.share-buttons .btn{min-height:44px;font-size:13px}.share-link{display:block}.share-link input{display:block;width:100%;min-width:0;max-width:100%;padding:12px;font-size:16px;margin-top:7px}.share-link #share-status{margin-top:8px}
  /* The enlarged image uses the viewport; arrows overlay it instead of shrinking it. */
  body:has(.image-dialog[open]){overflow:hidden}
  .image-dialog[open]{display:flex;flex-direction:column;width:100%;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:14px 10px calc(14px + env(safe-area-inset-bottom));overflow:hidden}
  .dialog-tools{flex:0 0 auto;gap:10px;margin-bottom:12px;min-height:44px}.dialog-heading{flex:1;min-width:0;font-size:13px;line-height:1.6}.dialog-heading #dialog-counter{font-family:inherit;font-size:13px;padding:3px 10px}.dialog-tools #close-preview{min-height:44px;min-width:70px;font-family:inherit;font-size:14px;border-radius:10px}
  .dialog-viewer{flex:1;min-height:0;width:100%;padding:0;touch-action:pan-y}.dialog-viewer #dialog-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.dialog-viewer .dialog-arrow{width:44px;height:48px;border-radius:12px;font-size:24px;background:#ffffffd9;box-shadow:0 3px 15px #0005}.dialog-next{left:2px}.dialog-prev{right:2px}
}
@media(max-width:360px){
  .wrap{width:calc(100% - 24px)}.brand{font-size:13px}.showcase-nav{gap:7px}.showcase-link{gap:6px;padding:11px 8px}.showcase-link span{font-size:13px}.showcase-link>svg{width:18px;height:18px}.service-grid,.feature-list{grid-template-columns:1fr}.hero .actions{grid-template-columns:1fr}.product-nav .brand span small{display:none}.product-nav>.btn{font-size:11px;padding:7px 8px}.product-intro .actions{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
