/* mobile.css (11 Nov 2026, Yahia: "the phone experience is not the best, fix it before we launch").
   Phone-only overrides, loaded last on every page. What was wrong at 390 px: the home page was 30 screens long (one robot card per
   row, 500 px each), the hero's words sat on top of the robot in the film, sections were spaced as on a desktop, and many buttons
   were smaller than a fingertip (44 px). Nothing here changes the desktop. */
@media (max-width: 700px) {
  /* ---- rhythm: phone-sized gaps between sections and under headings */
  section { padding-block: 60px; }
  .head { gap: 12px; margin-bottom: 30px; }
  h2 { font-size: 29px; line-height: 1.32; }

  /* ---- the opening. 15 Nov 2026 (Yahia: "remove the robot in the landing page of the phones"): no film on phones, the words stand
     alone on the dark ground with a soft glow. index.html's scene picker does not download the film at this width either.
     Before: .hero .film { inset: 0 0 auto 0; height: 58%; } with object-position 70% 30% and a bottom-up gradient in ::after. */
  .hero .film, .film-toggle { display: none !important; }
  .hero { background: radial-gradient(120% 70% at 50% 0%, rgba(74, 213, 253, .16) 0%, rgba(74, 213, 253, 0) 70%), var(--black); }
  .hero::after { display: none; }
  .hero, .hero .copy { min-height: 86svh; }
  .hero .copy { justify-content: center; padding-top: 104px; }
  .hero h1 { font-size: 38px; line-height: 1.28; margin-top: 12px; }
  .hero .lede { margin-top: 14px; font-size: 16px; line-height: 1.75; }
  .hero .cta { margin-top: 22px; gap: 10px; }
  .hero .cta .btn { flex: 1 1 100%; justify-content: center; min-height: 52px; }
  .hero .copy { padding-bottom: 48px; }
  .badge5 { margin-bottom: 12px; }

  /* ---- the robots: two to a row, compact, so the whole range is a few thumb-scrolls, not fifteen screens */
  .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fleet .group { margin: 22px 0 0; padding-top: 18px; font-size: 16px; }
  .tile, .tile.q { min-height: 0; border-radius: 14px; }
  .fleet .tile:not(.feature) .pic { height: 150px; padding: 14px 8px 0; }
  .fleet .tile:not(.feature) .pic img { height: 132px; }
  .fleet .tile:not(.feature) .txt { padding: 12px 12px 14px; gap: 2px; }
  .fleet .tile:not(.feature) h3 { font-size: 18px; }
  .fleet .tile:not(.feature) small { font-size: 12.5px; }
  .fleet .tile:not(.feature) p { font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .tile .txt::after { display: none; }
  /* the two featured robots keep a full row each, with the photo beside the words */
  .tile.feature { grid-column: 1 / -1; grid-template-columns: 38% 1fr; }
  .tile.feature .pic { padding: 14px 6px 14px 10px; }
  .tile.feature .pic img { max-height: 210px; }
  .tile.feature .txt { padding: 16px 16px 16px 12px; gap: 4px; }
  .tile.feature h3 { font-size: 24px; }
  .tile.feature p { font-size: 14px; line-height: 1.6; }
  .tile .specs { margin: 8px 0 2px; padding-top: 8px; gap: 4px; }
  .tile .specs li { font-size: 13px; gap: 8px; }
  .tile .ask { display: inline-flex; align-items: center; min-height: 44px; }
  .filter { gap: 8px; margin: -6px 0 22px; }
  .filter button { min-height: 44px; padding: 8px 16px; font-size: 14.5px; }

  /* ---- "what the robots do": each chapter shorter, its picture small beside the number */
  .chapter { padding-block: 22px; gap: 10px; }
  .chapter .num { font-size: 44px; }
  .chapter h3 { font-size: 26px; }
  .chapter p { font-size: 16px; line-height: 1.75; }
  .chapter img.inline { max-height: 170px; margin-top: 4px; }
  .chapter li { padding: 8px 14px; }

  /* ---- numbers, steps, questions */
  .stats { margin-top: 40px; }
  .stats b { font-size: 58px; }
  .step { padding-top: 22px; padding-inline-end: 0; gap: 8px; }
  .step .n { font-size: 42px; }
  .faq summary { padding: 18px 0; font-size: 17px; min-height: 56px; }
  .faq details p { font-size: 15.5px; padding-bottom: 20px; }

  /* ---- the AR viewer and its links: fingertip-sized */
  .ar-others a, .ar-kinds button { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 16px; }
  /* 14 Nov 2026, the robots showroom: the filters and the cards become one swipeable row each, so the stage stays close */
  .ar-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .ar-cats::-webkit-scrollbar, .ar-cards::-webkit-scrollbar { display: none; }
  .ar-cats button { flex: none; min-height: 44px; }
  .ar-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
  .ar-card { scroll-snap-align: start; padding: 10px 6px; }
  .ar-pic { height: 70px; }
  .ar-g1 .ar-stage { min-height: 400px; }
  .ar-hs { position: relative; }
  .ar-hs::after { content: ""; position: absolute; inset: -8px; }

  /* ---- the header's three buttons: fingertip-sized */
  .bar .theme, .bar .lang, .bar .btn.small { min-width: 44px; min-height: 44px; }
  .bar { gap: 8px; }

  /* ---- contact details: numbers start where the labels start, and are easy to press */
  .contact { margin-top: 44px; }
  .contact div { padding-top: 14px; }
  .contact a, .contact b { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }

  /* ---- the field section: tighter gaps, bigger pins */
  .fwall-head { margin: 44px 0 16px; }
  .fpin { min-height: 36px; }
  .clients { margin-bottom: 30px; padding: 12px 0; }
  /* ---- the robot pages (robots/*.html) */
  .rhero { padding-bottom: 44px; }
  .rhero h1 { font-size: 46px; }
  .rhero.hub h1 { font-size: 36px; }
  .rhero .lede { margin-top: 14px; font-size: 16.5px; }
  .rhero .cta { margin-top: 22px; gap: 10px; }
  .rhero .cta .btn { flex: 1 1 100%; justify-content: center; min-height: 52px; }
  .crumbs { margin-bottom: 14px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  /* the list of robots: two to a row, compact, as on the home page */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards .tile { min-height: 0; border-radius: 14px; }
  .cards .tile .pic { height: 150px; padding: 14px 8px 0; }
  .cards .tile .pic img { height: 132px; max-height: none; max-width: 100%; object-fit: contain; object-position: center bottom; }
  .cards .tile .txt { padding: 12px 12px 14px; gap: 2px; }
  .cards .tile h3 { font-size: 18px; }
  .cards .tile small { font-size: 12.5px; }
  .cards .tile p { font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .cards .tile .more { font-size: 13.5px; min-height: 30px; display: inline-flex; align-items: center; }
  /* the figures: two to a row */
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div { padding: 16px 0 18px; padding-inline-end: 12px; gap: 4px; }
  .specs dt { font-size: 14px; }
  .specs dd b { font-size: 26px; }
  .specs dd b.long { font-size: 19px; }
  .specs dd i { font-size: 13px; margin-inline-start: 5px; }
  .uses li { padding: 18px 18px 20px; gap: 6px; grid-template-columns: auto 1fr; align-items: center; }
  .uses .n { font-size: 30px; }
  .uses p { font-size: 16.5px; }
  .know li { padding: 16px 0; gap: 12px; }
  .know p { font-size: 16px; }
  .ar-open { min-height: 48px; }
}