
/* ARCHIETALICINFO MOBILE CONVERSION V5 URGENT FIX
   Mobile-first readability + shorter visual path to CTA.
   Design-only. No DB/API/payment/AI logic changes.
*/
:root{
  --m5-bg:#040b16;
  --m5-card:#08172b;
  --m5-line:rgba(112,213,255,.18);
  --m5-line2:rgba(112,213,255,.32);
  --m5-text:#eef8ff;
  --m5-muted:#b9d0e9;
  --m5-cyan:#2cc9ff;
  --m5-purple:#7357ff;
  --m5-green:#3cffb1;
  --m5-radius:24px;
}
html,body{max-width:100%;overflow-x:hidden}
body{color:var(--m5-text)!important}
p,li,label,small,span,div{
  -webkit-font-smoothing:antialiased;
}
a,button,input,textarea,select{font:inherit}
.btn,.button,a.btn,button,input[type="submit"]{
  border-radius:16px!important;
  font-weight:950!important;
}
.btn:not(.secondary):not(.btn-secondary),
button[type="submit"],
input[type="submit"],
.btn.full{
  background:linear-gradient(135deg,var(--m5-cyan),var(--m5-purple))!important;
  color:#061121!important;
  border:0!important;
}

/* Page top conversion block for book demo and order */
.m5-mobile-hero{
  width:min(1120px,94vw);
  margin:18px auto;
  padding:22px;
  border-radius:28px;
  border:1px solid var(--m5-line2);
  background:
    radial-gradient(circle at top right,rgba(44,201,255,.18),transparent 38%),
    linear-gradient(135deg,rgba(44,201,255,.10),rgba(115,87,255,.16));
}
.m5-mobile-hero b{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(60,255,177,.10);
  border:1px solid rgba(60,255,177,.22);
  color:#baffdc;
  margin-bottom:10px;
}
.m5-mobile-hero h1{
  margin:0 0 8px;
  font-size:clamp(30px,6vw,52px);
  line-height:1.04;
  letter-spacing:-.04em;
}
.m5-mobile-hero p{
  margin:0;
  color:var(--m5-muted);
  font-size:17px;
  line-height:1.65;
}
.m5-quick-benefits{
  width:min(1120px,94vw);
  margin:16px auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.m5-quick-benefits div{
  padding:15px;
  border-radius:20px;
  border:1px solid var(--m5-line);
  background:rgba(255,255,255,.045);
  color:#dff3ff;
  font-weight:850;
}
.m5-quick-benefits span{
  display:block;
  color:var(--m5-muted);
  font-size:13px;
  font-weight:600;
  margin-top:4px;
}

/* Sticky mobile CTA */
.m5-sticky-cta{
  display:none;
}

/* Universal mobile readability */
@media(max-width:820px){
  body{
    font-size:15.5px!important;
    line-height:1.6!important;
    padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;
  }
  p,li,.muted,.lead,.desc,.section-text{
    font-size:15px!important;
    line-height:1.62!important;
    color:var(--m5-muted)!important;
  }
  label{
    font-size:14px!important;
    line-height:1.35!important;
    color:#dff3ff!important;
    font-weight:850!important;
  }
  small{
    font-size:12.5px!important;
    line-height:1.45!important;
  }
  h1{
    font-size:clamp(32px,10vw,48px)!important;
    line-height:1.04!important;
  }
  h2{
    font-size:clamp(24px,7vw,34px)!important;
    line-height:1.12!important;
  }
  h3{
    font-size:18px!important;
    line-height:1.25!important;
  }
  .wrap,.container{
    width:min(100% - 22px,1120px)!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .section,.section-pad,.hero{
    padding-top:34px!important;
    padding-bottom:34px!important;
  }
  .card,.panel,.feature,.step,.demo-item,.solution-card,.portal-card,.faq-card,.contact-widget-band,.partner-ads-band{
    border-radius:22px!important;
    padding:18px!important;
  }
  .grid,.hero-grid,.plans,.pricing-grid,.benefits,.form-grid,.checks,.demo-grid,.trust,.faq,.feature-grid,.solutions-grid,.portal-grid{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  input,select,textarea,.input{
    min-height:46px!important;
    font-size:15px!important;
    line-height:1.35!important;
    padding:12px 13px!important;
    border-radius:15px!important;
  }
  textarea{
    min-height:92px!important;
  }
  .btn,.button,a.btn,button,input[type="submit"]{
    width:100%!important;
    min-height:48px!important;
    font-size:15px!important;
    padding:13px 16px!important;
  }
  .nav,.navlinks{
    gap:8px!important;
  }
  .nav a,.navlinks a{
    font-size:14px!important;
    padding:10px 12px!important;
  }

  /* Book demo page urgent fix */
  body.m5-book-demo .nav{
    margin-bottom:18px!important;
  }
  body.m5-book-demo .hero{
    padding:22px 12px 32px!important;
  }
  body.m5-book-demo .hero > .wrap > .grid{
    display:flex!important;
    flex-direction:column!important;
  }
  body.m5-book-demo .hero > .wrap > .grid > div:first-child{
    order:1!important;
  }
  body.m5-book-demo .hero > .wrap > .grid > .card,
  body.m5-book-demo .hero > .wrap > .grid > section.card{
    order:3!important;
  }
  body.m5-book-demo .benefits{
    order:2!important;
    margin:14px 0!important;
  }
  body.m5-book-demo .hero h1{
    font-size:34px!important;
    margin:12px 0 10px!important;
  }
  body.m5-book-demo .lead{
    font-size:15.5px!important;
    margin-bottom:12px!important;
  }
  body.m5-book-demo .card form,
  body.m5-book-demo form{
    display:block!important;
  }
  body.m5-book-demo .form-grid{
    gap:8px!important;
  }
  body.m5-book-demo .checks{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    max-height:240px!important;
    overflow-y:auto!important;
    border:1px solid rgba(112,213,255,.13)!important;
    border-radius:16px!important;
    padding:8px!important;
    background:rgba(4,11,22,.42)!important;
  }
  body.m5-book-demo .checks label{
    min-height:44px!important;
    padding:10px!important;
    font-size:14px!important;
  }
  body.m5-book-demo .demo-grid,
  body.m5-book-demo .benefits,
  body.m5-book-demo .widget-feature-grid{
    grid-template-columns:1fr!important;
  }
  body.m5-book-demo .demo-item,
  body.m5-book-demo .benefits div,
  body.m5-book-demo .widget-feature-grid div{
    padding:14px!important;
    font-size:14.5px!important;
    line-height:1.55!important;
  }
  body.m5-book-demo .contact-widget-band{
    margin-top:14px!important;
    grid-template-columns:1fr!important;
  }
  body.m5-book-demo .section{
    padding-top:30px!important;
    padding-bottom:30px!important;
  }

  /* Order mobile conversion */
  body.m5-order .wrap{
    padding-top:14px!important;
  }
  body.m5-order .brand{
    margin-bottom:10px!important;
  }
  body.m5-order .edv3-order-steps,
  body.m5-order .v4-order-steps{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin:12px auto!important;
  }
  body.m5-order .edv3-order-step,
  body.m5-order .v4-order-step{
    font-size:13px!important;
    padding:10px!important;
  }
  body.m5-order .grid{
    display:flex!important;
    flex-direction:column!important;
  }
  body.m5-order .grid aside.card{
    order:1!important;
  }
  body.m5-order .grid section.card{
    order:2!important;
  }
  body.m5-order .badge{
    font-size:12px!important;
    padding:7px 10px!important;
  }
  body.m5-order .price{
    font-size:36px!important;
  }

  /* Pricing mobile */
  body.m5-pricing .hero{
    padding-top:34px!important;
  }
  body.m5-pricing .hero h1{
    font-size:36px!important;
  }
  body.m5-pricing .plans .card{
    min-height:0!important;
    padding:20px!important;
  }
  body.m5-pricing .plans .card.featured{
    transform:none!important;
  }
  body.m5-pricing .price{
    font-size:38px!important;
  }
  body.m5-pricing .compare{
    padding-top:10px!important;
  }

  /* Sticky CTA visible only on mobile */
  .m5-sticky-cta{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(82px + env(safe-area-inset-bottom));
    z-index:2147481800;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:9px;
    border-radius:22px;
    border:1px solid rgba(112,213,255,.18);
    background:rgba(4,11,22,.92);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    box-shadow:0 18px 50px rgba(0,0,0,.38);
  }
  .m5-sticky-cta a{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    text-decoration:none;
    font-weight:950;
    font-size:13px;
    color:var(--m5-text);
    background:rgba(255,255,255,.06);
    border:1px solid rgba(112,213,255,.15);
  }
  .m5-sticky-cta a:first-child{
    background:linear-gradient(135deg,var(--m5-cyan),var(--m5-purple));
    color:#061121;
    border:0;
  }
}

/* Very small screens */
@media(max-width:390px){
  body{font-size:14.5px!important}
  p,li,.muted,.lead,.desc{font-size:14.2px!important}
  .m5-sticky-cta{
    bottom:calc(78px + env(safe-area-inset-bottom));
  }
}
