/* Aristonet: mobile layer. Applies only to phones and small tablets (max-width 900px); desktop is unaffected. */
@media (max-width:900px){
  a,button,summary,[role="button"]{-webkit-tap-highlight-color:rgba(34,211,238,.18);touch-action:manipulation}

  /* homepage: short chip intro (one swipe to the hero instead of three screens) */
  .open{height:170vh!important}
  .hero.bloom-hero,section.hero.bloom-hero{margin-top:-170vh!important;min-height:calc(70vh + var(--hi,100vh))!important}

  /* tap targets: at least 44px tall */
  .crumbs a{display:inline-block;padding:11px 2px;margin:-11px 0}
  .sf-links a{min-height:44px}
  .jtoggle,.cl-more,.tc-cta,.pdet,.ps-back{min-height:44px;display:inline-flex;align-items:center}
  .chipbtn,.ask{min-height:40px}
  .sf-contact a,.gcard p a{display:inline-block;padding:11px 0;margin:-11px 0}

  /* small labels stay readable */
  .ptag,.trytag{font-size:12.5px!important}

  /* form fields at 16px so iPhones do not zoom in when a field is tapped */
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px!important}

  /* mobile menu: Academy / Cloud / Resources fold open on tap */
  .mnav button.m-grp{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0;padding:16px 10px;min-height:54px;border:0;border-bottom:1px solid var(--line);background:none;cursor:pointer;
    font-family:inherit;font-weight:700;font-size:17px;line-height:1.2;letter-spacing:0;text-transform:none;color:#fff;text-align:left}
  .mnav button.m-grp::after{content:"";width:9px;height:9px;margin-right:6px;border-right:2px solid #67E8F9;border-bottom:2px solid #67E8F9;transform:rotate(45deg) translateY(-3px);transition:transform .25s}
  .mnav button.m-grp[aria-expanded="true"]{color:#67E8F9}
  .mnav button.m-grp[aria-expanded="true"]::after{transform:rotate(-135deg) translateY(-2px)}
  .mnav .m-acc{display:flex;flex-direction:column;gap:0;padding:2px 0 8px}
  .mnav .m-acc[hidden]{display:none}
  .mnav .m-acc a.m-sub{padding:13px 10px 13px 22px;min-height:46px;font-size:16px;border-bottom:1px solid rgba(148,163,184,.1)}

  /* ===== phone layout v2 ===== */
  /* content is visible immediately (no fade-in while scrolling) */
  .rv,.rv.in,.on-reveal{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}
  .tilt{transform:none!important}

  /* compact page heroes: the decorative illustration is hidden on phones, the heading and buttons fill the first screen */
  .phero .phi,.aihero .phi,.aihero .brain-stage,.ab-hero .phi{display:none!important}
  .phero,.aihero{padding-bottom:8px!important}
  .phero .phg,.aihero .aig{gap:0!important}

  /* long card lists become swipeable rows (the next card peeks in) */
  .pgrid,.topics,.cgrid,.careers,.teach-grid,.cl-tracks{
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    gap:12px!important;margin-inline:-16px!important;padding:4px 16px 18px!important;scroll-padding-inline:16px;scrollbar-width:none;grid-template-columns:none!important}
  .pgrid::-webkit-scrollbar,.topics::-webkit-scrollbar,.cgrid::-webkit-scrollbar,.careers::-webkit-scrollbar,.teach-grid::-webkit-scrollbar,.cl-tracks::-webkit-scrollbar{display:none}
  .pgrid>*,.topics>*,.cgrid>*,.careers>*,.teach-grid>*,.cl-tracks>*{flex:0 0 84%!important;max-width:84%!important;min-width:0;scroll-snap-align:start;margin:0!important}
  .swipe-hint{display:flex;align-items:center;justify-content:center;gap:6px;margin:-6px 0 6px;font-size:12.5px;font-weight:600;color:#7DD3FC;letter-spacing:.3px}
  .swipe-hint i{display:inline-block;width:6px;height:6px;border-radius:50%;background:rgba(125,211,252,.35)}
  .swipe-hint i.on{background:#22D3EE;width:16px;border-radius:4px;transition:width .2s}

  /* short cards two per row */
  .ben,.whys,.facts,.cgrid4,.kpis{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  .ben>*,.whys>*,.facts>*,.cgrid4>*,.kpis>*{min-width:0;padding:16px 14px!important}
  .ben h3,.whys h3,.facts h3,.cgrid4 h3,.kpis h3{font-size:15.5px!important;line-height:1.25!important}
  .ben p,.whys p,.facts p,.cgrid4 p,.kpis p{font-size:13.5px!important;line-height:1.45!important}

  /* tighter section rhythm */
  main .sec,main .psec{padding-top:44px!important;padding-bottom:44px!important}
  main h2{font-size:27px!important;line-height:1.15!important}

  /* footer: link columns side by side */
  .sf-grid{grid-template-columns:1fr 1fr!important;gap:26px 16px!important}
  .sf-grid>.sf-col:first-child,.sf-grid>.sf-col:last-child{grid-column:1/-1}

  /* bottom action bar replaces the floating chat bubble */
  .fab{display:none!important}
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  .mbar{position:fixed;left:0;right:0;bottom:0;z-index:160;display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    background:#030a20;border-top:1px solid rgba(103,232,249,.16);box-shadow:0 -10px 30px rgba(0,0,0,.45)}
  .mbar a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;border-radius:12px;font-size:14.5px;font-weight:700;color:#E2E8F0;background:rgba(255,255,255,.06);border:1px solid rgba(148,163,184,.18)}
  .mbar a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .mbar a.wa{color:#4ADE80}
  .mbar a.go{color:#fff;border:0;background:linear-gradient(100deg,#0891B2,#6D28D9)}
  .mnav.open~.mbar,body.menu-open .mbar{display:none}
}
