/* Mobile home: scoped so dashboard, other pages and desktop keep their layouts. */
@media (max-width: 767.98px) {
  .allo-home-reference { background: #f5f9ff; }
  .allo-home-reference .navbar-landing { background: #031426; }
  .allo-home-reference .navbar-landing__brand img { width: 145px; height: auto; }
  .allo-home-reference .navbar-landing__toggle { min-width: 44px; min-height: 44px; border: 1px solid #487198; border-radius: 12px; }
  .allo-home-reference .allo-home-hero { min-height: 0; overflow: hidden; background: #031426; }
  .allo-home-reference .allo-home-hero__content { padding-top: 112px; padding-bottom: 45px; }
  .allo-home-reference .allo-home-hero__image { background-position: 65% center; opacity: .8; }
  .allo-home-reference .allo-home-hero__shade { background: linear-gradient(90deg,#031426 0%,rgba(3,20,38,.91) 36%,rgba(3,20,38,.25) 100%),linear-gradient(0deg,#031426,transparent 60%); }
  .allo-home-reference .allo-home-hero__title { max-width: 340px; font-size: clamp(32px,8.7vw,49px); line-height: 1.04; letter-spacing: -.035em; }
  .allo-home-reference .allo-home-hero__title span { color: #0099ff; }
  .allo-home-reference .allo-home-hero__lead { max-width: 310px; font-size: 15px; line-height: 1.55; color: #edf5ff; }
  .allo-home-reference .allo-home-hero__actions { display: grid; gap: 12px; max-width: 350px; }
  .allo-home-reference .allo-home-btn { min-height: 50px; border-radius: 13px; font-size: 15px; }
  .allo-home-reference .allo-home-btn--primary { background: #007bff; box-shadow: 0 8px 25px #007bff38; }
  .allo-home-reference .allo-home-hero__reassurance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 360px; gap: 10px; margin-top: 24px; }
  .allo-home-reference .allo-home-hero__reassurance li { display: flex; flex-direction: column; text-align: center; font-size: 12px; line-height: 1.4; }
  .allo-home-reference .allo-home-hero__reassurance i { color: #0099ff; font-size: 26px; }
  .allo-home-reference .allo-home-phone,.allo-home-reference .allo-home-hero__signals { display: none; }
  .allo-home-reference .allo-ref-main { position: relative; z-index: 2; margin-top: -20px; padding: 20px 0 35px; border-radius: 25px 25px 0 0; background: #f5f9ff; color: #0a2054; }
  .allo-home-reference .allo-ref-main > .container { display: flex; flex-direction: column; gap: 0; padding-inline: 16px; }
  .allo-home-reference .allo-ref-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; overflow: visible; }
  .allo-home-reference .allo-ref-service { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 165px; padding: 16px; border: 1px solid #e3efff; border-radius: 17px; background: #eaf4ff; }
  .allo-home-reference .allo-ref-service:nth-child(2) { background: #e8faf5; }
  .allo-home-reference .allo-ref-service:nth-child(3) { background: #fff4e9; }
  .allo-home-reference .allo-ref-service:nth-child(4) { background: #f1edff; }
  .allo-home-reference .allo-ref-service:last-child { grid-column: 1 / -1; min-height: 65px; flex-direction: row; align-items: center; }
  .allo-home-reference .allo-ref-service h2 { color: #0a2054; font-size: 16px; }
  .allo-home-reference .allo-ref-service p { color: #466385; font-size: 13px; }
  .allo-home-reference .allo-ref-service > span { color: #008aff; background: #d6eaff; border: none; box-shadow: none; }
  .allo-home-reference .allo-ref-service:nth-child(2) > span { color: #00b99a; background: #c9f3e9; }
  .allo-home-reference .allo-ref-service:nth-child(3) > span { color: #ff8837; background: #ffe5d0; }
  .allo-home-reference .allo-ref-service:nth-child(4) > span { color: #8856ff; background: #e5dcff; }
  .allo-home-reference .allo-ref-download { display: block; min-height: 310px; margin-top: 18px; padding: 24px 20px; border: 0; background: linear-gradient(115deg,#031426 15%,#054899 75%,#007dff); box-shadow: none; }
  .allo-home-reference .allo-ref-download__copy { max-width: 75%; }
  .allo-home-reference .allo-ref-download__copy h2 { font-size: 25px; }
  .allo-home-reference .allo-ref-download__copy ul { display: grid; font-size: 13px; color: #eaf4ff; }
  .allo-home-reference .allo-ref-download__visual { position: absolute; left: auto; right: -20px; bottom: -45px; width: 135px; height: 230px; opacity: .85; }
  .allo-home-reference .allo-ref-download__visual > img { width: 130px; top: 0; }
  .allo-home-reference .allo-ref-download > .allo-ref-stores { position: relative; inset: auto; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; max-width: 80%; }
  .allo-home-reference .allo-ref-stores a { min-height: 44px; min-width: 132px; }
  .allo-home-reference .allo-ref-heading h2 { color: #0a2054; font-size: 25px; }
  .allo-home-reference .allo-ref-kicker { color: #007bff; }
  .allo-home-reference .allo-ref-journey__grid { gap: 20px; grid-template-columns: 1fr; }
  .allo-home-reference .allo-ref-journey__grid article { background: #fff; border: 1px solid #e0ecff; box-shadow: 0 10px 25px #1d62a008; padding: 22px 18px; }
  .allo-home-reference .allo-ref-journey__grid h3 { color: #0a2054; font-size: 16px; }
  .allo-home-reference .allo-ref-journey__grid p { color: #466385; font-size: 14px; }
  .allo-home-reference .allo-ref-advantages { order: 1; }
  .allo-home-reference .allo-ref-audiences,.allo-home-reference .allo-ref-area,.allo-home-reference .allo-ref-testimonials,.allo-home-reference .allo-ref-final-cta { order: 2; }
  .allo-home-reference .allo-ref-advantages__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .allo-home-reference .allo-ref-advantages article { padding: 12px; border: 0; text-align: center; background: transparent; }
  .allo-home-reference .allo-ref-advantages article:last-child { grid-column: 1 / -1; }
  .allo-home-reference .allo-ref-advantages h3 { color: #0a2054; }
  .allo-home-reference .allo-ref-advantages p { color: #466385; font-size: 13px; }
  .allo-home-reference .allo-ref-testimonials__grid article { background: #fff; color: #203c62; }
  .allo-home-reference .allo-ref-testimonials__grid article p,.allo-home-reference .allo-ref-testimonials__grid strong { color: #203c62; }
  .allo-home-reference :where(a,button):focus-visible { outline: 3px solid #0099ff; outline-offset: 4px; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .allo-home-reference .allo-ref-services { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .allo-home-reference .allo-ref-service { padding: 12px; }
  .allo-home-reference .allo-ref-journey__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .allo-home-reference .allo-ref-journey__grid article { display: flex; flex-direction: column; }
}
@media (max-width: 767.98px) {
  .allo-home-reference .allo-home-hero__content { text-align: left; }
  .allo-home-reference .allo-home-hero__title { margin-left: 0; margin-right: 0; }
  .allo-home-reference .allo-home-hero__lead { margin-left: 0; margin-right: 0; }
  .allo-home-reference .allo-home-hero__actions { margin-left: 0; margin-right: 0; justify-items: stretch; }
  .allo-home-reference .allo-home-hero__actions .allo-home-btn { width: 100%; }
}
/* Reference composition: four pastel services, rider and compact header. */
@media (max-width: 767.98px) {
 .allo-home-reference .allo-home-hero__image { background-image: url('/images/allomoto-driver-hero-v2.webp'); background-position: 62% center; opacity: 1; }
 .allo-home-reference .allo-home-hero__shade { background: linear-gradient(90deg,#031426 0%,rgba(3,20,38,.92) 30%,rgba(3,20,38,.1) 100%); }
 .allo-home-reference .allo-home-hero__content { padding-inline: 22px; }
 .allo-home-reference .allo-home-hero__title { max-width: 70%; font-size: clamp(29px,7.1vw,48px); }
 .allo-home-reference .allo-home-hero__lead { max-width: 64%; font-size: 14px; line-height: 1.45; }
 .allo-home-reference .allo-home-hero__actions { max-width: 66%; display: flex; flex-direction: column; align-items: stretch; }
 .allo-home-reference .allo-home-hero__actions .allo-home-btn { padding-inline: 10px; font-size: 12px; }
 .allo-home-reference .allo-home-hero__reassurance { max-width: 70%; }
 .allo-home-reference .allo-home-hero__reassurance li { font-size: 10px; }
 .allo-home-reference .allo-ref-services { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
 .allo-home-reference .allo-ref-service { min-height: 135px; padding: 10px 8px; gap: 8px; border-radius: 12px; }
 .allo-home-reference .allo-ref-service h2 { font-size: 11px; }
 .allo-home-reference .allo-ref-service p { font-size: 10px; line-height: 1.4; }
 .allo-home-reference .allo-ref-service > span { width: 32px; height: 32px; font-size: 20px; }
 .allo-home-reference .allo-ref-service:last-child { display: none; }
 .allo-home-reference .allo-ref-download__copy h2 { font-size: 23px; }
 .allo-home-reference .allo-ref-journey__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
 .allo-home-reference .allo-ref-journey__grid article { display: flex; flex-direction: column; padding: 16px 10px; gap: 8px; }
 .allo-home-reference .allo-ref-journey__grid h3 { font-size: 12px; }
 .allo-home-reference .allo-ref-journey__grid p { font-size: 11px; }
 .allo-home-reference .allo-ref-step-number { left: 34px; }
 .allo-home-reference .allo-ref-heading h2 { font-size: 23px; }
}
@media (max-width: 359.98px) {
 .allo-home-reference .allo-ref-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .allo-home-reference .allo-ref-service h2 { font-size: 14px; }
 .allo-home-reference .allo-ref-service p { font-size: 12px; }
 .allo-home-reference .allo-ref-journey__grid { grid-template-columns: 1fr; }
 .allo-home-reference .allo-home-hero__lead { max-width: 80%; }
 .allo-home-reference .allo-home-hero__actions { max-width: 85%; }
}
/* Mobile readability and balanced cards — audit 2026-10-04. */
@media (max-width: 767.98px) {
 .allo-home-reference .navbar-landing__collapse:not(.show):not(.collapsing) { display:none !important; }
 .allo-home-reference .navbar-landing__toggle:focus:not(:focus-visible) { outline:none; box-shadow:none; }
 .allo-home-reference .allo-home-hero__actions .allo-home-btn { font-size:14px; min-height:50px; }
 .allo-home-reference .allo-ref-services { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .allo-home-reference .allo-ref-service { min-height:155px; padding:16px; }
 .allo-home-reference .allo-ref-service h2 { font-size:15px; }
 .allo-home-reference .allo-ref-service p { font-size:13px; line-height:1.5; }
 .allo-home-reference .allo-ref-journey__grid { grid-template-columns:1fr; gap:20px; }
 .allo-home-reference .allo-ref-journey__grid article { display:grid; grid-template-columns:44px 1fr; padding:20px 16px; gap:6px 12px; }
 .allo-home-reference .allo-ref-journey__grid h3 { font-size:16px; }
 .allo-home-reference .allo-ref-journey__grid p { font-size:14px; line-height:1.5; }
 .allo-home-reference .allo-ref-advantages__grid article { display:flex; flex-direction:column; align-items:center; gap:12px; }
 .allo-home-reference .allo-ref-advantages__grid article:last-child { grid-column:auto; }
 .allo-home-reference .allo-ref-advantages__grid h3 { font-size:14px; }
 .allo-home-reference .allo-ref-advantages__grid p { font-size:13px; line-height:1.5; }
 .allo-home-reference .allo-ref-download { min-height:340px; }
 .allo-home-reference .allo-ref-download__copy { max-width:100%; }
 .allo-home-reference .allo-ref-download__copy ul { max-width:75%; }
 .allo-home-reference .allo-ref-download__visual { right:-8px; bottom:-10px; height:190px; width:115px; }
 .allo-home-reference .allo-ref-download__visual > img { width:110px; }
 .allo-home-reference .allo-ref-download > .allo-ref-stores { max-width:65%; }
 .allo-home-reference .allo-ref-stores a span { font-size:10px; }
 .allo-home-reference .allo-ref-stores a strong { font-size:14px; }
}
@media (min-width:576px) and (max-width:767.98px) {
 .allo-home-reference .allo-ref-services { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .allo-home-reference .allo-ref-service { padding:12px; }
 .allo-home-reference .allo-ref-service h2 { font-size:13px; }
 .allo-home-reference .allo-ref-journey__grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .allo-home-reference .allo-ref-journey__grid article { display:flex; }
}
/* Recover unavailable CMS image paths using bundled site assets. */
.allo-home-reference .allo-ref-download__visual img[src$="/website/images/service.png"] { content:url('/images/allomoto-app-phone-v3.webp'); }
.allo-home-reference img[src$="/website/images/1.png"] { content:url('/images/allomoto-testimonial-aminata.webp'); }
.allo-home-reference img[src$="/website/images/2.jpg"] { content:url('/images/allomoto-testimonial-moussa.webp'); }
.allo-home-reference img[src$="/website/images/3.jpg"] { content:url('/images/allomoto-testimonial-ibrahim.webp'); }
